@flamingo-stack/openframe-frontend-core 0.0.643 → 0.0.644-2208.6319.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/chat-protocol/index.cjs +20 -3
  2. package/dist/chat-protocol/index.cjs.map +1 -1
  3. package/dist/chat-protocol/index.js +20 -3
  4. package/dist/chat-protocol/index.js.map +1 -1
  5. package/dist/chat-protocol/source-metadata.d.ts +7 -1
  6. package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
  7. package/dist/{chunk-B42INNRA.cjs → chunk-2UA3DT5O.cjs} +199 -199
  8. package/dist/{chunk-B42INNRA.cjs.map → chunk-2UA3DT5O.cjs.map} +1 -1
  9. package/dist/{chunk-KX2FT7AS.cjs → chunk-2ZGEXLQW.cjs} +28 -28
  10. package/dist/{chunk-KX2FT7AS.cjs.map → chunk-2ZGEXLQW.cjs.map} +1 -1
  11. package/dist/{chunk-2NRLRRMR.cjs → chunk-3HSRNCDV.cjs} +226 -203
  12. package/dist/chunk-3HSRNCDV.cjs.map +1 -0
  13. package/dist/{chunk-64KDKDYC.js → chunk-5ELZ2NQ5.js} +6 -6
  14. package/dist/{chunk-2DJH6KHA.cjs → chunk-B46Q4DTN.cjs} +382 -386
  15. package/dist/chunk-B46Q4DTN.cjs.map +1 -0
  16. package/dist/{chunk-N7UYD57Q.js → chunk-C7RU466R.js} +3 -3
  17. package/dist/{chunk-2NODQ7FO.js → chunk-DSJZYRS6.js} +17 -21
  18. package/dist/{chunk-2NODQ7FO.js.map → chunk-DSJZYRS6.js.map} +1 -1
  19. package/dist/{chunk-26D6FM6L.cjs → chunk-EKSCVXA3.cjs} +6 -6
  20. package/dist/{chunk-26D6FM6L.cjs.map → chunk-EKSCVXA3.cjs.map} +1 -1
  21. package/dist/{chunk-7HL2PNQ3.js → chunk-GEGE3JXC.js} +5 -5
  22. package/dist/{chunk-7T673MHJ.cjs → chunk-GUB6BR26.cjs} +22 -22
  23. package/dist/{chunk-7T673MHJ.cjs.map → chunk-GUB6BR26.cjs.map} +1 -1
  24. package/dist/{chunk-3IPL6G7S.js → chunk-GXNQPCL4.js} +164 -141
  25. package/dist/chunk-GXNQPCL4.js.map +1 -0
  26. package/dist/{chunk-D6TWJEFW.cjs → chunk-GZXW5QWQ.cjs} +15 -15
  27. package/dist/{chunk-D6TWJEFW.cjs.map → chunk-GZXW5QWQ.cjs.map} +1 -1
  28. package/dist/{chunk-4TE53O6U.js → chunk-HAQRGJFL.js} +4 -4
  29. package/dist/{chunk-TIOHTWDA.js → chunk-INISTVWK.js} +6 -6
  30. package/dist/{chunk-IU3IYXMM.js → chunk-IRV2W7GN.js} +7 -7
  31. package/dist/{chunk-R2IU2Y2O.cjs → chunk-JWCAWGLG.cjs} +33 -33
  32. package/dist/{chunk-R2IU2Y2O.cjs.map → chunk-JWCAWGLG.cjs.map} +1 -1
  33. package/dist/{chunk-77EO26XV.cjs → chunk-LNLNPCII.cjs} +5 -5
  34. package/dist/{chunk-77EO26XV.cjs.map → chunk-LNLNPCII.cjs.map} +1 -1
  35. package/dist/{chunk-42NXGOTG.cjs → chunk-N3M56EE5.cjs} +3 -3
  36. package/dist/{chunk-42NXGOTG.cjs.map → chunk-N3M56EE5.cjs.map} +1 -1
  37. package/dist/{chunk-O7JMF5OT.js → chunk-O47SGDBV.js} +3 -3
  38. package/dist/{chunk-EWQI5MV6.cjs → chunk-OANRA5ML.cjs} +20 -20
  39. package/dist/{chunk-EWQI5MV6.cjs.map → chunk-OANRA5ML.cjs.map} +1 -1
  40. package/dist/{chunk-NCHLLTAR.js → chunk-PR6IR22M.js} +3 -3
  41. package/dist/{chunk-6MQBLFUM.js → chunk-Q7JDIDE2.js} +5 -5
  42. package/dist/{chunk-YG7KLZE7.js → chunk-R5EIFOW2.js} +4 -4
  43. package/dist/{chunk-5E6Y6766.cjs → chunk-S2E4I3WP.cjs} +29 -29
  44. package/dist/{chunk-5E6Y6766.cjs.map → chunk-S2E4I3WP.cjs.map} +1 -1
  45. package/dist/{chunk-SE6YRE3R.cjs → chunk-SAD5IUSO.cjs} +32 -32
  46. package/dist/{chunk-SE6YRE3R.cjs.map → chunk-SAD5IUSO.cjs.map} +1 -1
  47. package/dist/{chunk-3LXJEXPH.js → chunk-TAP4MJPF.js} +2 -2
  48. package/dist/{chunk-M3W5Y5DK.cjs → chunk-TEKH3J65.cjs} +11 -11
  49. package/dist/{chunk-M3W5Y5DK.cjs.map → chunk-TEKH3J65.cjs.map} +1 -1
  50. package/dist/{chunk-HA2U7WHU.js → chunk-TXNWDP3M.js} +3 -3
  51. package/dist/{chunk-IIZX3K2R.js → chunk-URGDDCJL.js} +2 -2
  52. package/dist/{chunk-TQ7KTANJ.js → chunk-V52INSJH.js} +3 -3
  53. package/dist/{chunk-FO7SD2IQ.cjs → chunk-VA6N7IVZ.cjs} +6 -6
  54. package/dist/{chunk-FO7SD2IQ.cjs.map → chunk-VA6N7IVZ.cjs.map} +1 -1
  55. package/dist/{chunk-CWHLVXUW.cjs → chunk-WYS66RIO.cjs} +10 -10
  56. package/dist/{chunk-CWHLVXUW.cjs.map → chunk-WYS66RIO.cjs.map} +1 -1
  57. package/dist/{chunk-XJLWGYL4.cjs → chunk-XVGWYNRY.cjs} +81 -81
  58. package/dist/{chunk-XJLWGYL4.cjs.map → chunk-XVGWYNRY.cjs.map} +1 -1
  59. package/dist/{chunk-ZU2JBBOE.cjs → chunk-XYJ3URIN.cjs} +59 -59
  60. package/dist/{chunk-ZU2JBBOE.cjs.map → chunk-XYJ3URIN.cjs.map} +1 -1
  61. package/dist/{chunk-FVIT23I5.js → chunk-Z5KAIEZ4.js} +3 -3
  62. package/dist/{chunk-YT6RGA3X.js → chunk-ZPLT4XLC.js} +3 -3
  63. package/dist/components/case-studies/index.cjs +16 -16
  64. package/dist/components/case-studies/index.js +4 -4
  65. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  66. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  67. package/dist/components/chat/index.cjs +3 -9
  68. package/dist/components/chat/index.cjs.map +1 -1
  69. package/dist/components/chat/index.js +2 -8
  70. package/dist/components/chat/types/entities/program-types.d.ts +29 -18
  71. package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
  72. package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
  73. package/dist/components/contact/index.cjs +5 -5
  74. package/dist/components/contact/index.js +4 -4
  75. package/dist/components/docs/index.cjs +8 -8
  76. package/dist/components/docs/index.js +7 -7
  77. package/dist/components/embeds/index.cjs +5 -5
  78. package/dist/components/embeds/index.js +4 -4
  79. package/dist/components/faq/index.cjs +5 -5
  80. package/dist/components/faq/index.js +4 -4
  81. package/dist/components/features/index.cjs +4 -4
  82. package/dist/components/features/index.js +3 -3
  83. package/dist/components/help-center-pages/index.cjs +24 -24
  84. package/dist/components/help-center-pages/index.js +15 -15
  85. package/dist/components/index.cjs +53 -59
  86. package/dist/components/index.cjs.map +1 -1
  87. package/dist/components/index.js +15 -21
  88. package/dist/components/index.js.map +1 -1
  89. package/dist/components/meeting-scheduler/index.cjs +34 -34
  90. package/dist/components/meeting-scheduler/index.js +3 -3
  91. package/dist/components/navigation/index.cjs +7 -7
  92. package/dist/components/navigation/index.js +6 -6
  93. package/dist/components/onboarding-guides/index.cjs +7 -7
  94. package/dist/components/onboarding-guides/index.js +6 -6
  95. package/dist/components/related-content/index.cjs +3 -3
  96. package/dist/components/related-content/index.js +2 -2
  97. package/dist/components/tickets/index.cjs +8 -8
  98. package/dist/components/tickets/index.js +7 -7
  99. package/dist/components/ui/index.cjs +4 -10
  100. package/dist/components/ui/index.cjs.map +1 -1
  101. package/dist/components/ui/index.js +3 -9
  102. package/dist/index.cjs +24 -8
  103. package/dist/index.cjs.map +1 -1
  104. package/dist/index.js +30 -14
  105. package/dist/index.js.map +1 -1
  106. package/dist/utils/format.d.ts +127 -4
  107. package/dist/utils/format.d.ts.map +1 -1
  108. package/dist/utils/index.cjs +113 -5
  109. package/dist/utils/index.cjs.map +1 -1
  110. package/dist/utils/index.d.ts +4 -1
  111. package/dist/utils/index.d.ts.map +1 -1
  112. package/dist/utils/index.js +103 -6
  113. package/dist/utils/index.js.map +1 -1
  114. package/dist/utils/program-instant.d.ts +171 -0
  115. package/dist/utils/program-instant.d.ts.map +1 -0
  116. package/dist/utils/program-meta-renderers.d.ts +3 -0
  117. package/dist/utils/program-meta-renderers.d.ts.map +1 -0
  118. package/dist/utils/url-safety.d.ts +35 -0
  119. package/dist/utils/url-safety.d.ts.map +1 -0
  120. package/package.json +1 -1
  121. package/src/chat-protocol/__tests__/source-metadata.test.ts +76 -0
  122. package/src/chat-protocol/source-metadata.ts +40 -6
  123. package/src/components/chat/entity-cards/.program-card.md +1 -1
  124. package/src/components/chat/entity-cards/dispatch.tsx +9 -27
  125. package/src/components/chat/entity-cards/program-card.tsx +42 -81
  126. package/src/components/chat/types/entities/program-types.ts +29 -89
  127. package/src/components/chat/utils/.compact-card-classes.md +1 -1
  128. package/src/components/chat/utils/compact-card-classes.ts +5 -3
  129. package/src/utils/.format.md +5 -2
  130. package/src/utils/__tests__/format-program-dates.test.ts +180 -0
  131. package/src/utils/__tests__/program-instant.test.ts +170 -0
  132. package/src/utils/__tests__/url-safety.test.ts +44 -0
  133. package/src/utils/format.ts +228 -13
  134. package/src/utils/index.ts +22 -0
  135. package/src/utils/program-instant.ts +211 -0
  136. package/src/utils/program-meta-renderers.ts +18 -0
  137. package/src/utils/url-safety.ts +45 -0
  138. package/dist/chunk-2DJH6KHA.cjs.map +0 -1
  139. package/dist/chunk-2NRLRRMR.cjs.map +0 -1
  140. package/dist/chunk-3IPL6G7S.js.map +0 -1
  141. /package/dist/{chunk-64KDKDYC.js.map → chunk-5ELZ2NQ5.js.map} +0 -0
  142. /package/dist/{chunk-N7UYD57Q.js.map → chunk-C7RU466R.js.map} +0 -0
  143. /package/dist/{chunk-7HL2PNQ3.js.map → chunk-GEGE3JXC.js.map} +0 -0
  144. /package/dist/{chunk-4TE53O6U.js.map → chunk-HAQRGJFL.js.map} +0 -0
  145. /package/dist/{chunk-TIOHTWDA.js.map → chunk-INISTVWK.js.map} +0 -0
  146. /package/dist/{chunk-IU3IYXMM.js.map → chunk-IRV2W7GN.js.map} +0 -0
  147. /package/dist/{chunk-O7JMF5OT.js.map → chunk-O47SGDBV.js.map} +0 -0
  148. /package/dist/{chunk-NCHLLTAR.js.map → chunk-PR6IR22M.js.map} +0 -0
  149. /package/dist/{chunk-6MQBLFUM.js.map → chunk-Q7JDIDE2.js.map} +0 -0
  150. /package/dist/{chunk-YG7KLZE7.js.map → chunk-R5EIFOW2.js.map} +0 -0
  151. /package/dist/{chunk-3LXJEXPH.js.map → chunk-TAP4MJPF.js.map} +0 -0
  152. /package/dist/{chunk-HA2U7WHU.js.map → chunk-TXNWDP3M.js.map} +0 -0
  153. /package/dist/{chunk-IIZX3K2R.js.map → chunk-URGDDCJL.js.map} +0 -0
  154. /package/dist/{chunk-TQ7KTANJ.js.map → chunk-V52INSJH.js.map} +0 -0
  155. /package/dist/{chunk-FVIT23I5.js.map → chunk-Z5KAIEZ4.js.map} +0 -0
  156. /package/dist/{chunk-YT6RGA3X.js.map → chunk-ZPLT4XLC.js.map} +0 -0
@@ -171,7 +171,9 @@ var _chunkYRTMAXLEcjs = require('./chunk-YRTMAXLE.cjs');
171
171
 
172
172
 
173
173
 
174
- var _chunk2NRLRRMRcjs = require('./chunk-2NRLRRMR.cjs');
174
+
175
+
176
+ var _chunk3HSRNCDVcjs = require('./chunk-3HSRNCDV.cjs');
175
177
 
176
178
 
177
179
  var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
@@ -4789,7 +4791,7 @@ function MspOrganizationCard({
4789
4791
  className
4790
4792
  ),
4791
4793
  children: [
4792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4794
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4793
4795
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
4794
4796
  /* @__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
4797
  website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
@@ -4922,7 +4924,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
4922
4924
  ] })
4923
4925
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
4924
4926
  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,
4927
+ _chunk3HSRNCDVcjs.SquareAvatar,
4926
4928
  {
4927
4929
  src: userAvatar,
4928
4930
  alt: userName,
@@ -7306,7 +7308,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7306
7308
  // Host-supplied brand icon (e.g. Mingo): render it directly,
7307
7309
  // no filled pill — the icon carries its own brand accent.
7308
7310
  /* @__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 })),
7311
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.SquareAvatar, { ...avatarProps })),
7310
7312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7311
7313
  "span",
7312
7314
  {
@@ -8102,7 +8104,7 @@ ChatMessageList.displayName = "ChatMessageList";
8102
8104
  // src/components/chat/hooks/use-proxied-image-url.ts
8103
8105
  function useProxiedImageUrl(url) {
8104
8106
  const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
8105
- return _nullishCoalesce(_chunk2NRLRRMRcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8107
+ return _nullishCoalesce(_chunk3HSRNCDVcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8106
8108
  proxyPrefix: r.endpoints.imageProxyUrlPrefix,
8107
8109
  skipDomains: r.endpoints.imageProxySkipDomains,
8108
8110
  directHttps: true
@@ -8128,7 +8130,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
8128
8130
  height: 40,
8129
8131
  onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
8130
8132
  }
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) || "?" }),
8133
+ ) : /* @__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: _chunk3HSRNCDVcjs.personInitials.call(void 0, displayName) || "?" }),
8132
8134
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
8133
8135
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
8134
8136
  /* @__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 +9434,7 @@ function MingoChatHistoryRow({
9432
9434
  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
9435
  ),
9434
9436
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9435
- _chunk2NRLRRMRcjs.SquareAvatar,
9437
+ _chunk3HSRNCDVcjs.SquareAvatar,
9436
9438
  {
9437
9439
  variant: "round",
9438
9440
  sizePx: 24,
@@ -10573,7 +10575,7 @@ function ChatPanelHeader({
10573
10575
  avatar && (avatar.name || avatar.avatarUrl) ? (
10574
10576
  // Owner avatar at the title cell's right edge (Figma 113:63273).
10575
10577
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10576
- _chunk2NRLRRMRcjs.SquareAvatar,
10578
+ _chunk3HSRNCDVcjs.SquareAvatar,
10577
10579
  {
10578
10580
  variant: "round",
10579
10581
  sizePx: 32,
@@ -10787,8 +10789,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
10787
10789
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
10788
10790
  (!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
10789
10791
  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),
10792
+ status === "uploading" && `${progress}% \xB7 ${_chunk3HSRNCDVcjs.formatFileSize.call(void 0, file.size)}`,
10793
+ status === "ready" && _chunk3HSRNCDVcjs.formatFileSize.call(void 0, file.size),
10792
10794
  status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
10793
10795
  ] })
10794
10796
  ] }),
@@ -11585,10 +11587,10 @@ function resolveExternalNavigation(args) {
11585
11587
 
11586
11588
  // src/components/chat/utils/execute-navigation.ts
11587
11589
  function isForeignOriginHref(href) {
11588
- return /^https?:\/\//i.test(href) && !_chunk2NRLRRMRcjs.isSameOriginAbsoluteHref.call(void 0, href);
11590
+ return /^https?:\/\//i.test(href) && !_chunk3HSRNCDVcjs.isSameOriginAbsoluteHref.call(void 0, href);
11589
11591
  }
11590
11592
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11591
- const isNewTab = runtime ? _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11593
+ const isNewTab = runtime ? _chunk3HSRNCDVcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11592
11594
  if (isNewTab) {
11593
11595
  if (_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.openExternal])) runtime.navigation.openExternal(href);
11594
11596
  else window.open(href, "_blank", NEW_TAB_FEATURES);
@@ -11647,7 +11649,7 @@ function NavLinkAnchorViaRuntime({
11647
11649
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
11648
11650
  const panel = useChatPanel();
11649
11651
  const resolvedHref = resolveHrefForRuntime(href, runtime);
11650
- const isNewTab = _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11652
+ const isNewTab = _chunk3HSRNCDVcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11651
11653
  const onClick = (e) => {
11652
11654
  const handled = executeNavigation({
11653
11655
  event: e,
@@ -11659,7 +11661,7 @@ function NavLinkAnchorViaRuntime({
11659
11661
  });
11660
11662
  if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
11661
11663
  };
11662
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11664
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunk3HSRNCDVcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11663
11665
  }
11664
11666
 
11665
11667
  // src/components/chat/source-action-button.tsx
@@ -12962,9 +12964,9 @@ function UserDisplay({
12962
12964
  }) {
12963
12965
  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
12966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12965
- _chunk2NRLRRMRcjs.SquareAvatar,
12967
+ _chunk3HSRNCDVcjs.SquareAvatar,
12966
12968
  {
12967
- src: avatarUrl ? _chunk2NRLRRMRcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12969
+ src: avatarUrl ? _chunk3HSRNCDVcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12968
12970
  fallback: name,
12969
12971
  alt: name,
12970
12972
  sizePx: size2,
@@ -13464,7 +13466,7 @@ function VideoHoverPreviewSurface({
13464
13466
  return () => io.disconnect();
13465
13467
  }, [gateControlled]);
13466
13468
  const showMedia = continuation || (gateControlled ? playerMounted : isNear);
13467
- const { src: posterSrc, onError: onPosterError } = _chunk2NRLRRMRcjs.useCoverImageFallback.call(void 0, posterUrl);
13469
+ const { src: posterSrc, onError: onPosterError } = _chunk3HSRNCDVcjs.useCoverImageFallback.call(void 0, posterUrl);
13468
13470
  const facadeSkipped = preload === "none" && !posterSrc;
13469
13471
  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
13472
  posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13582,7 +13584,7 @@ function groupByAspectRatio(items, getAspectRatio) {
13582
13584
 
13583
13585
  function VideoBitesStrip({
13584
13586
  bites,
13585
- title = _chunk2NRLRRMRcjs.DEFAULT_VIDEO_BITES_TITLE,
13587
+ title = _chunk3HSRNCDVcjs.DEFAULT_VIDEO_BITES_TITLE,
13586
13588
  showTitle = true,
13587
13589
  filterPublished = true,
13588
13590
  profile = null,
@@ -13595,7 +13597,7 @@ function VideoBitesStrip({
13595
13597
  cardHeightMobile = 300,
13596
13598
  showChevrons = true,
13597
13599
  onBiteNavigate,
13598
- sortComparator = _chunk2NRLRRMRcjs.sortBitesByCreatedAtDesc,
13600
+ sortComparator = _chunk3HSRNCDVcjs.sortBitesByCreatedAtDesc,
13599
13601
  className
13600
13602
  }) {
13601
13603
  const items = _react.useMemo.call(void 0, () => {
@@ -13820,7 +13822,7 @@ function EntityVideoSection({
13820
13822
  title = "Video",
13821
13823
  videoSummary,
13822
13824
  videoBites,
13823
- bitesTitle = _chunk2NRLRRMRcjs.DEFAULT_VIDEO_BITES_TITLE,
13825
+ bitesTitle = _chunk3HSRNCDVcjs.DEFAULT_VIDEO_BITES_TITLE,
13824
13826
  filterPublishedBites = true,
13825
13827
  bitesProfile = null,
13826
13828
  bitesHref,
@@ -14059,7 +14061,7 @@ function ReviewStateBadge({ state, className = "" }) {
14059
14061
  function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
14060
14062
  const kind = _nullishCoalesce(item.kind, () => ( "commit"));
14061
14063
  const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
14062
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14064
+ const dateText = _chunk3HSRNCDVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14063
14065
  const idLabel = formatActivityId(item.id, kind);
14064
14066
  const { display: title, reviewState } = parseGithubTitle(item.title, kind);
14065
14067
  const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
@@ -14093,26 +14095,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
14093
14095
  metaParts.push(
14094
14096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14095
14097
  );
14096
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14098
+ const href = _chunk3HSRNCDVcjs.safeHref.call(void 0, item.url);
14097
14099
  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: [
14100
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
14101
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14102
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
14101
14103
  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 })
14104
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE, children: primaryText })
14103
14105
  ] }),
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: [
14106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14105
14107
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14106
14108
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14107
14109
  ] }, 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 }) })
14110
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUMMARY, children: _chunk3HSRNCDVcjs.COMPACT_CARD_ROW_FILLER }) })
14109
14111
  ] }),
14110
14112
  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
14113
  ] });
14112
14114
  if (anchorProps) {
14113
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14115
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14114
14116
  }
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 });
14117
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14116
14118
  }
14117
14119
  function GitHubActivityCardSkeleton({
14118
14120
  variant = "compact",
@@ -14129,12 +14131,12 @@ function GitHubActivityCardSkeleton({
14129
14131
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14130
14132
  ] });
14131
14133
  }
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 }) })
14134
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14135
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14136
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14137
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14138
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14139
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUMMARY, children: _chunk3HSRNCDVcjs.COMPACT_CARD_ROW_FILLER }) })
14138
14140
  ] }),
14139
14141
  /* @__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
14142
  ] });
@@ -14158,7 +14160,7 @@ function parseChannelFromUrl(url) {
14158
14160
  }
14159
14161
  function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
14160
14162
  const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
14161
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14163
+ const dateText = _chunk3HSRNCDVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14162
14164
  if (variant === "row") {
14163
14165
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14164
14166
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
@@ -14184,23 +14186,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14184
14186
  metaParts.push(
14185
14187
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14186
14188
  );
14187
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14189
+ const href = _chunk3HSRNCDVcjs.safeHref.call(void 0, item.url);
14188
14190
  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: [
14191
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14192
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14193
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunk3HSRNCDVcjs.COMPACT_CARD_ROW_FILLER }) }),
14195
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14194
14196
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14195
14197
  /* @__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 }) }) })
14198
+ ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUMMARY, children: _chunk3HSRNCDVcjs.COMPACT_CARD_ROW_FILLER }) }) })
14197
14199
  ] }),
14198
14200
  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
14201
  ] });
14200
14202
  if (anchorProps) {
14201
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14203
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14202
14204
  }
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 });
14205
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14204
14206
  }
14205
14207
  function SlackMessageCardSkeleton({
14206
14208
  variant = "compact",
@@ -14215,12 +14217,12 @@ function SlackMessageCardSkeleton({
14215
14217
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14216
14218
  ] });
14217
14219
  }
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" }) })
14220
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14221
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14222
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14223
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14225
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.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
14226
  ] }),
14225
14227
  /* @__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
14228
  ] });
@@ -14251,12 +14253,12 @@ function statusScheme(status) {
14251
14253
  function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
14252
14254
  const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
14253
14255
  const priorityText = formatToken(item.priority);
14254
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14256
+ const dateText = _chunk3HSRNCDVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14255
14257
  if (variant === "row") {
14256
14258
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14257
14259
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
14258
14260
  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,
14261
+ statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14260
14262
  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
14263
  ] });
14262
14264
  }
@@ -14270,13 +14272,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14270
14272
  metaParts.push(
14271
14273
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14272
14274
  );
14273
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14275
+ const href = _chunk3HSRNCDVcjs.safeHref.call(void 0, item.url);
14274
14276
  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: [
14277
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14276
14278
  /* @__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 }),
14279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14278
14280
  priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14279
- _chunk2NRLRRMRcjs.StatusBadge,
14281
+ _chunk3HSRNCDVcjs.StatusBadge,
14280
14282
  {
14281
14283
  text: priorityText,
14282
14284
  variant: "button",
@@ -14285,7 +14287,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14285
14287
  }
14286
14288
  ) : null,
14287
14289
  statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14288
- _chunk2NRLRRMRcjs.StatusBadge,
14290
+ _chunk3HSRNCDVcjs.StatusBadge,
14289
14291
  {
14290
14292
  text: statusText,
14291
14293
  variant: "button",
@@ -14299,7 +14301,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14299
14301
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
14300
14302
  ] }) : null,
14301
14303
  /* @__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: [
14304
+ metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14303
14305
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14304
14306
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14305
14307
  ] }, i)) }) }) : null
@@ -14307,9 +14309,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14307
14309
  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
14310
  ] });
14309
14311
  if (anchorProps) {
14310
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14312
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14311
14313
  }
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 });
14314
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14313
14315
  }
14314
14316
  function HubspotTicketCardSkeleton({
14315
14317
  variant = "compact",
@@ -14323,8 +14325,8 @@ function HubspotTicketCardSkeleton({
14323
14325
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14324
14326
  ] });
14325
14327
  }
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: [
14328
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14329
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14328
14330
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14329
14331
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14330
14332
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
@@ -14337,7 +14339,7 @@ function HubspotTicketCardSkeleton({
14337
14339
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
14338
14340
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
14339
14341
  ] }),
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" }) })
14342
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.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
14343
  ] }),
14342
14344
  /* @__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
14345
  ] });
@@ -14348,10 +14350,10 @@ function HubspotTicketCardSkeleton({
14348
14350
 
14349
14351
  function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14350
14352
  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: [
14353
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14352
14354
  /* @__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" })
14355
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14356
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14355
14357
  ] }),
14356
14358
  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
14359
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
@@ -14362,13 +14364,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14362
14364
  _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
14365
  ] });
14364
14366
  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 });
14367
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14366
14368
  }
14367
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14369
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14368
14370
  }
14369
14371
  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: [
14372
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14373
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14372
14374
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14373
14375
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14374
14376
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14389,29 +14391,29 @@ function DataRoomDocCardSkeleton({ className }) {
14389
14391
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
14390
14392
  const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
14391
14393
  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,
14394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14395
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14396
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUBTITLE, children: [
14398
+ campaign.start_date ? _chunk3HSRNCDVcjs.formatDateShort.call(void 0, campaign.start_date) : null,
14397
14399
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
14398
14400
  "Marketing campaign"
14399
14401
  ].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 }) })
14402
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk3HSRNCDVcjs.COMPACT_CARD_ROW_FILLER }) })
14401
14403
  ] })
14402
14404
  ] });
14403
14405
  if (anchorProps) {
14404
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14406
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14405
14407
  }
14406
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14408
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14407
14409
  }
14408
14410
  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" }) })
14411
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14412
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14413
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14414
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14415
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14416
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.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
14417
  ] })
14416
14418
  ] });
14417
14419
  }
@@ -14420,14 +14422,14 @@ function CampaignCardAdminSkeleton({ className }) {
14420
14422
 
14421
14423
 
14422
14424
  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" });
14425
+ const href = _chunk3HSRNCDVcjs.safeHref.call(void 0, item.url);
14426
+ const dateText = _chunk3HSRNCDVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14425
14427
  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: [
14428
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14427
14429
  /* @__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 }),
14430
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14429
14431
  item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14430
- _chunk2NRLRRMRcjs.StatusBadge,
14432
+ _chunk3HSRNCDVcjs.StatusBadge,
14431
14433
  {
14432
14434
  text: item.badge.text,
14433
14435
  variant: "button",
@@ -14445,18 +14447,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
14445
14447
  ] }),
14446
14448
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
14447
14449
  ] }, 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
14450
+ dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14449
14451
  ] }),
14450
14452
  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
14453
  ] });
14452
14454
  if (anchorProps) {
14453
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14455
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14454
14456
  }
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 });
14457
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14456
14458
  }
14457
14459
  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: [
14460
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14461
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14460
14462
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14461
14463
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14462
14464
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14505,8 +14507,8 @@ function useChatCardItem(type, id) {
14505
14507
  const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
14506
14508
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
14507
14509
  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);
14510
+ const items = _chunk3HSRNCDVcjs.extractItems.call(void 0, data);
14511
+ const match = items.find((it) => _chunk3HSRNCDVcjs.extractItemId.call(void 0, type, it) === id);
14510
14512
  return _nullishCoalesce(match, () => ( null));
14511
14513
  },
14512
14514
  enabled: !!url && id.length > 0,
@@ -14539,7 +14541,7 @@ function useChatCardItem(type, id) {
14539
14541
  function CardMedia({ imageSrc, imageAlt, icon }) {
14540
14542
  if (imageSrc) {
14541
14543
  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) || "?" }),
14544
+ /* @__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: _chunk3HSRNCDVcjs.personInitials.call(void 0, imageAlt) || "?" }),
14543
14545
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14544
14546
  _chunkWLSFBRT5cjs.next_image_default,
14545
14547
  {
@@ -14697,7 +14699,7 @@ function resolveFetchedCardHref({
14697
14699
  composeContentUrl
14698
14700
  }) {
14699
14701
  if (!composeContentUrl || !contentRefType || !id) return null;
14700
- const canonicalType = _chunk2NRLRRMRcjs.canonicalContentRefType.call(void 0, contentRefType);
14702
+ const canonicalType = _chunk3HSRNCDVcjs.canonicalContentRefType.call(void 0, contentRefType);
14701
14703
  return composeContentUrl({
14702
14704
  // The card registry keys some entries by the legacy rail vocabulary
14703
14705
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -14907,16 +14909,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
14907
14909
  if (docTarget) {
14908
14910
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
14909
14911
  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));
14912
+ href = _nullishCoalesce(_chunk3HSRNCDVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14911
14913
  targetPlatform = docTarget.platform;
14912
14914
  } else if (ctx.chipBasePlatform) {
14913
14915
  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));
14916
+ href = _nullishCoalesce(_chunk3HSRNCDVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14915
14917
  targetPlatform = ctx.chipBasePlatform;
14916
14918
  } else if (ctx.baseRoute) {
14917
14919
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
14918
14920
  const absolute = new URL(safePath, synthetic).toString();
14919
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14921
+ href = _nullishCoalesce(_chunk3HSRNCDVcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14920
14922
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
14921
14923
  }
14922
14924
  }
@@ -14925,15 +14927,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
14925
14927
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
14926
14928
  // `hostedTypes` / `overrides` and fall through to the seam's default
14927
14929
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
14928
- type: _chunk2NRLRRMRcjs.canonicalContentRefType.call(void 0, row.documentType),
14930
+ type: _chunk3HSRNCDVcjs.canonicalContentRefType.call(void 0, row.documentType),
14929
14931
  identifier: idValue,
14930
14932
  externalUrl: row.externalUrl,
14931
14933
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
14932
14934
  });
14933
- href = composed.href ? _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14935
+ href = composed.href ? _nullishCoalesce(_chunk3HSRNCDVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14934
14936
  targetPlatform = composed.targetPlatform;
14935
14937
  } else if (row.externalUrl) {
14936
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14938
+ href = _nullishCoalesce(_chunk3HSRNCDVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14937
14939
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
14938
14940
  }
14939
14941
  const documentType = row.documentType;
@@ -14968,11 +14970,11 @@ function resolveSourceIcon(input, ctx = {}) {
14968
14970
 
14969
14971
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
14970
14972
  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: [
14973
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14974
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14975
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TEXT_COL, children: [
14976
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3HSRNCDVcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14977
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3HSRNCDVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14976
14978
  label,
14977
14979
  " deleted",
14978
14980
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -15018,7 +15020,7 @@ function GitHubChatCard({
15018
15020
  const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
15019
15021
  const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
15020
15022
  const idLabel = formatActivityId(chatRef.id, kind);
15021
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
15023
+ const dateText = _chunk3HSRNCDVcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
15022
15024
  const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
15023
15025
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15024
15026
  MingoInfoCard,
@@ -15027,7 +15029,7 @@ function GitHubChatCard({
15027
15029
  description,
15028
15030
  icon: githubKindIcon(kind),
15029
15031
  status,
15030
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15032
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15031
15033
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15032
15034
  menuAriaLabel: "Activity actions"
15033
15035
  }
@@ -15174,7 +15176,7 @@ function HubspotTicketChatCard({
15174
15176
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15175
15177
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TagIcon, { size: 24 }),
15176
15178
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
15177
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15179
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15178
15180
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
15179
15181
  label: "Open Ticket Details",
15180
15182
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TagIcon, { size: 20 })
@@ -15197,7 +15199,7 @@ function FaqChatCard({
15197
15199
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15198
15200
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.QuestionCircleIcon, { size: 24 }),
15199
15201
  status: { label: statusLabel, variant: "grey" },
15200
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15202
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15201
15203
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15202
15204
  menuAriaLabel: "FAQ actions"
15203
15205
  }
@@ -15217,7 +15219,7 @@ function SlackChatCard({
15217
15219
  title,
15218
15220
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15219
15221
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.SlackLogoGreyIcon, { size: 24 }),
15220
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15222
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15221
15223
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15222
15224
  menuAriaLabel: "Message actions"
15223
15225
  }
@@ -15235,7 +15237,7 @@ function GlyphChatCard({
15235
15237
  title: chatRef.title,
15236
15238
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15237
15239
  icon,
15238
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15240
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15239
15241
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15240
15242
  menuAriaLabel: "Card actions"
15241
15243
  }
@@ -15254,7 +15256,7 @@ function DataRoomDocChatCard({
15254
15256
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15255
15257
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.FileContentIcon, { size: 24 }),
15256
15258
  status: { label: badgeText, variant: "grey" },
15257
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15259
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15258
15260
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15259
15261
  menuAriaLabel: "Document actions"
15260
15262
  }
@@ -15273,7 +15275,7 @@ function GenericFinancialChatCard({
15273
15275
  title: chatRef.title,
15274
15276
  description: subtitle,
15275
15277
  icon,
15276
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15278
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15277
15279
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15278
15280
  menuAriaLabel: "Document actions"
15279
15281
  }
@@ -15359,7 +15361,7 @@ function CampaignChatCard({
15359
15361
  }) {
15360
15362
  const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _378 => _378.goals])) ? item.goals.length : 0;
15361
15363
  const meta = [
15362
- _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunk2NRLRRMRcjs.formatDateShort.call(void 0, item.start_date) : null,
15364
+ _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunk3HSRNCDVcjs.formatDateShort.call(void 0, item.start_date) : null,
15363
15365
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
15364
15366
  "Marketing campaign"
15365
15367
  ].filter(Boolean).join(" \xB7 ");
@@ -15398,7 +15400,7 @@ function EntityMingoCard({
15398
15400
  imageAlt: typeof title === "string" ? title : void 0,
15399
15401
  icon: fallbackIcon,
15400
15402
  status,
15401
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15403
+ anchorProps: _chunk3HSRNCDVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15402
15404
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
15403
15405
  menuAriaLabel
15404
15406
  }
@@ -15410,7 +15412,7 @@ function entityCover(image, ogPlaceholder) {
15410
15412
  function statusPill(status) {
15411
15413
  const s = typeof status === "string" ? status.trim() : "";
15412
15414
  if (!s) return void 0;
15413
- const scheme = _chunk2NRLRRMRcjs.getStatusColorScheme.call(void 0, s);
15415
+ const scheme = _chunk3HSRNCDVcjs.getStatusColorScheme.call(void 0, s);
15414
15416
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
15415
15417
  return { label: s, variant };
15416
15418
  }
@@ -15497,7 +15499,7 @@ function InvestorUpdateChatCard({
15497
15499
  EntityMingoCard,
15498
15500
  {
15499
15501
  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,
15502
+ description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunk3HSRNCDVcjs.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
15503
  cover: entityCover(_optionalChain([item, 'optionalAccess', _411 => _411.featured_image]), ogPlaceholder),
15502
15504
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.PresentationLineIcon, { size: 24 }),
15503
15505
  status: { label: "Investor update", variant: "grey" },
@@ -15541,25 +15543,13 @@ function ProgramChatCard({
15541
15543
  discuss
15542
15544
  }) {
15543
15545
  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 ");
15546
+ const { line: meta } = _chunk3HSRNCDVcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk3HSRNCDVcjs.programMetaFormatters.call(void 0, _chunk3HSRNCDVcjs.PROGRAM_META_RENDERERS));
15557
15547
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15558
15548
  EntityMingoCard,
15559
15549
  {
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),
15550
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _418 => _418.title]), () => ( "")),
15551
+ description: meta || _optionalChain([item, 'optionalAccess', _419 => _419.description]) || void 0,
15552
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _420 => _420.cover_url]), ogPlaceholder),
15563
15553
  fallbackIcon: icon,
15564
15554
  status: { label, variant: "grey" },
15565
15555
  chatRef,
@@ -15576,10 +15566,10 @@ function RoadmapChatCard({
15576
15566
  cardType,
15577
15567
  discuss
15578
15568
  }) {
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;
15569
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _421 => _421.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15570
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _422 => _422.customItemId]) != null;
15581
15571
  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 ? (
15572
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _423 => _423.customItemId]), className: "size-6" }) : logoUrl ? (
15583
15573
  // Contained (not full-bleed) so the integration logo keeps its aspect
15584
15574
  // ratio inside the bordered icon box — matches RoadmapCard.
15585
15575
  /* @__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 +15580,10 @@ function RoadmapChatCard({
15590
15580
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15591
15581
  EntityMingoCard,
15592
15582
  {
15593
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _429 => _429.title]), () => ( "")),
15594
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _430 => _430.description]), () => ( void 0)),
15583
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.title]), () => ( "")),
15584
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _425 => _425.description]), () => ( void 0)),
15595
15585
  fallbackIcon: icon,
15596
- status: statusPill(_optionalChain([item, 'optionalAccess', _431 => _431.status])),
15586
+ status: statusPill(_optionalChain([item, 'optionalAccess', _426 => _426.status])),
15597
15587
  chatRef,
15598
15588
  isNewTab,
15599
15589
  discuss,
@@ -15609,7 +15599,7 @@ function refHydratedEntry(docType, label, renderRef) {
15609
15599
  bareInline: true,
15610
15600
  contentRefType: docType,
15611
15601
  noComposedHref: true,
15612
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _432 => _432.url]), () => ( null)),
15602
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _427 => _427.url]), () => ( null)),
15613
15603
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15614
15604
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
15615
15605
  };
@@ -15666,8 +15656,8 @@ function refGlyphRegistryEntries() {
15666
15656
  title: displayRef.title,
15667
15657
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
15668
15658
  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))
15659
+ _optionalChain([displayRef, 'access', _428 => _428.metadata, 'optionalAccess', _429 => _429.videoPoster]),
15660
+ _nullishCoalesce(_optionalChain([opts, 'access', _430 => _430.extras, 'optionalAccess', _431 => _431.buildOgPlaceholderUrl, 'optionalCall', _432 => _432(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
15671
15661
  ),
15672
15662
  fallbackIcon: cfg.icon(),
15673
15663
  status: { label: cfg.label, variant: "grey" },
@@ -15682,9 +15672,9 @@ function refGlyphRegistryEntries() {
15682
15672
  }
15683
15673
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15684
15674
  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() : "";
15675
+ const title = typeof _optionalChain([it, 'optionalAccess', _433 => _433.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15676
+ const author = typeof _optionalChain([it, 'optionalAccess', _434 => _434.author, 'optionalAccess', _435 => _435.full_name]) === "string" ? it.author.full_name.trim() : "";
15677
+ const summary = typeof _optionalChain([it, 'optionalAccess', _436 => _436.summary]) === "string" ? it.summary.trim() : "";
15688
15678
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
15689
15679
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
15690
15680
  }
@@ -15726,7 +15716,7 @@ function programRegistryEntries() {
15726
15716
  label: cfg.label,
15727
15717
  contentRefType: cfg.contentRefType,
15728
15718
  bareInline: true,
15729
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.ProgramCardSkeleton, { size: "sm" }),
15719
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.ProgramCardSkeleton, { size: "sm" }),
15730
15720
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15731
15721
  ProgramChatCard,
15732
15722
  {
@@ -15736,7 +15726,7 @@ function programRegistryEntries() {
15736
15726
  discuss: opts.discuss,
15737
15727
  configKey: cfg.configKey,
15738
15728
  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))
15729
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _437 => _437.extras, 'optionalAccess', _438 => _438.buildOgPlaceholderUrl, 'optionalCall', _439 => _439(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _440 => _440.title]), () => ( "")))]), () => ( null))
15740
15730
  }
15741
15731
  )
15742
15732
  }));
@@ -15757,7 +15747,7 @@ var ROADMAP_CARD_CONFIGS = {
15757
15747
  // The card's destination IS the ClickUp deep link, derived from the
15758
15748
  // task id post-fetch (the refs frame used to carry it).
15759
15749
  noComposedHref: true,
15760
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? clickupTaskUrl(String(item.id)) : null
15750
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _441 => _441.id]) != null ? clickupTaskUrl(String(item.id)) : null
15761
15751
  }
15762
15752
  };
15763
15753
  function roadmapRegistryEntries() {
@@ -15767,7 +15757,7 @@ function roadmapRegistryEntries() {
15767
15757
  bareInline: true,
15768
15758
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
15769
15759
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
15770
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.RoadmapCardSkeleton, { size: "sm" }),
15760
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.RoadmapCardSkeleton, { size: "sm" }),
15771
15761
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15772
15762
  RoadmapChatCard,
15773
15763
  {
@@ -15799,8 +15789,8 @@ var CHAT_CARD_REGISTRY = {
15799
15789
  DeletedDataCard,
15800
15790
  {
15801
15791
  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))
15792
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _442 => _442.metadata, 'optionalAccess', _443 => _443.entity_label]), () => ( null)),
15793
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _444 => _444.metadata, 'optionalAccess', _445 => _445.recovery_note]), () => ( null))
15804
15794
  }
15805
15795
  )
15806
15796
  },
@@ -15817,7 +15807,7 @@ var CHAT_CARD_REGISTRY = {
15817
15807
  bareInline: true,
15818
15808
  contentRefType: "faq",
15819
15809
  noComposedHref: true,
15820
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _451 => _451.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15810
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15821
15811
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15822
15812
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
15823
15813
  },
@@ -15843,7 +15833,7 @@ var CHAT_CARD_REGISTRY = {
15843
15833
  label: "Blog post",
15844
15834
  contentRefType: "blog_post_existing",
15845
15835
  bareInline: true,
15846
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.BlogCardSkeleton, { size: "sm" }),
15836
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.BlogCardSkeleton, { size: "sm" }),
15847
15837
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15848
15838
  BlogChatCard,
15849
15839
  {
@@ -15851,8 +15841,8 @@ var CHAT_CARD_REGISTRY = {
15851
15841
  chatRef,
15852
15842
  isNewTab: opts.isNewTab,
15853
15843
  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
15844
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _447 => _447.extras, 'optionalAccess', _448 => _448.buildOgPlaceholderUrl, 'optionalCall', _449 => _449(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _450 => _450.title]), () => ( "")))]), () => ( null)),
15845
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _451 => _451.metadata, 'optionalAccess', _452 => _452.hasEmbeddedVideo]) === true
15856
15846
  }
15857
15847
  )
15858
15848
  },
@@ -15860,7 +15850,7 @@ var CHAT_CARD_REGISTRY = {
15860
15850
  label: "Case study",
15861
15851
  contentRefType: "case_study",
15862
15852
  bareInline: true,
15863
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.CaseStudyCardSkeleton, { size: "sm" }),
15853
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.CaseStudyCardSkeleton, { size: "sm" }),
15864
15854
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15865
15855
  CaseStudyChatCard,
15866
15856
  {
@@ -15868,7 +15858,7 @@ var CHAT_CARD_REGISTRY = {
15868
15858
  chatRef,
15869
15859
  isNewTab: opts.isNewTab,
15870
15860
  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))
15861
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _453 => _453.extras, 'optionalAccess', _454 => _454.buildOgPlaceholderUrl, 'optionalCall', _455 => _455(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _456 => _456.title]), () => ( "")))]), () => ( null))
15872
15862
  }
15873
15863
  )
15874
15864
  },
@@ -15876,7 +15866,7 @@ var CHAT_CARD_REGISTRY = {
15876
15866
  label: "Customer interview",
15877
15867
  contentRefType: "customer_interview",
15878
15868
  bareInline: true,
15879
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15869
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15880
15870
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15881
15871
  CustomerInterviewChatCard,
15882
15872
  {
@@ -15884,7 +15874,7 @@ var CHAT_CARD_REGISTRY = {
15884
15874
  chatRef,
15885
15875
  isNewTab: opts.isNewTab,
15886
15876
  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))
15877
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _457 => _457.extras, 'optionalAccess', _458 => _458.buildOgPlaceholderUrl, 'optionalCall', _459 => _459(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _460 => _460.title]), () => ( "")))]), () => ( null))
15888
15878
  }
15889
15879
  )
15890
15880
  },
@@ -15892,9 +15882,9 @@ var CHAT_CARD_REGISTRY = {
15892
15882
  label: "Product release",
15893
15883
  contentRefType: "product_release",
15894
15884
  bareInline: true,
15895
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15885
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15896
15886
  render: (item, chatRef, opts) => {
15897
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _466 => _466.extras, 'optionalAccess', _467 => _467.buildProductReleaseCardProps]), () => ( _chunk2NRLRRMRcjs.defaultBuildProductReleaseCardProps));
15887
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _461 => _461.extras, 'optionalAccess', _462 => _462.buildProductReleaseCardProps]), () => ( _chunk3HSRNCDVcjs.defaultBuildProductReleaseCardProps));
15898
15888
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15899
15889
  ProductReleaseChatCard,
15900
15890
  {
@@ -15912,7 +15902,7 @@ var CHAT_CARD_REGISTRY = {
15912
15902
  label: "Investor update",
15913
15903
  contentRefType: "investor_update",
15914
15904
  bareInline: true,
15915
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15905
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15916
15906
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15917
15907
  InvestorUpdateChatCard,
15918
15908
  {
@@ -15920,7 +15910,7 @@ var CHAT_CARD_REGISTRY = {
15920
15910
  chatRef,
15921
15911
  isNewTab: opts.isNewTab,
15922
15912
  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))
15913
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _463 => _463.extras, 'optionalAccess', _464 => _464.buildOgPlaceholderUrl, 'optionalCall', _465 => _465(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _466 => _466.title]), () => ( "")))]), () => ( null))
15924
15914
  }
15925
15915
  )
15926
15916
  },
@@ -15930,7 +15920,7 @@ var CHAT_CARD_REGISTRY = {
15930
15920
  bareInline: true,
15931
15921
  // "Display" affordance (verbatim guide body) instead of "Ask".
15932
15922
  displayAction: true,
15933
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15923
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HSRNCDVcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15934
15924
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15935
15925
  OnboardingGuideChatCard,
15936
15926
  {
@@ -15938,7 +15928,7 @@ var CHAT_CARD_REGISTRY = {
15938
15928
  chatRef,
15939
15929
  isNewTab: opts.isNewTab,
15940
15930
  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))
15931
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _467 => _467.extras, 'optionalAccess', _468 => _468.buildOgPlaceholderUrl, 'optionalCall', _469 => _469(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _470 => _470.title]), () => ( "")))]), () => ( null))
15942
15932
  }
15943
15933
  )
15944
15934
  },
@@ -15949,13 +15939,13 @@ var CHAT_CARD_REGISTRY = {
15949
15939
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
15950
15940
  // No public viewer — synthesize the hub-internal admin URL post-fetch
15951
15941
  // 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,
15942
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _471 => _471.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
15953
15943
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
15954
15944
  },
15955
15945
  ...roadmapRegistryEntries()
15956
15946
  };
15957
15947
  function chatCardLabel(docType) {
15958
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _477 => _477[docType], 'optionalAccess', _478 => _478.label]);
15948
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _472 => _472[docType], 'optionalAccess', _473 => _473.label]);
15959
15949
  }
15960
15950
  function ChatCardNavWrap({
15961
15951
  href,
@@ -15971,13 +15961,13 @@ function ChatCardNavWrap({
15971
15961
  if (!href) return;
15972
15962
  const targetEl = e.target;
15973
15963
  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;
15964
+ if (!_optionalChain([host, 'optionalAccess', _474 => _474.contains, 'call', _475 => _475(targetEl)])) return;
15965
+ if (_optionalChain([targetEl, 'optionalAccess', _476 => _476.closest, 'optionalCall', _477 => _477("button")])) return;
15966
+ if (!_optionalChain([targetEl, 'optionalAccess', _478 => _478.closest, 'optionalCall', _479 => _479("a")])) return;
15977
15967
  const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
15978
15968
  if (!handled) return;
15979
15969
  e.stopPropagation();
15980
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _485 => _485.closeChat])) panel.closeChat();
15970
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _480 => _480.closeChat])) panel.closeChat();
15981
15971
  };
15982
15972
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
15983
15973
  }
@@ -15999,7 +15989,7 @@ function ChatCardLoader({
15999
15989
  title: chatRef.title,
16000
15990
  externalUrl: chatRef.url,
16001
15991
  targetPlatform: chatRef.targetPlatform,
16002
- path: typeof _optionalChain([chatRef, 'access', _486 => _486.metadata, 'optionalAccess', _487 => _487.path]) === "string" ? chatRef.metadata.path : null
15992
+ path: typeof _optionalChain([chatRef, 'access', _481 => _481.metadata, 'optionalAccess', _482 => _482.path]) === "string" ? chatRef.metadata.path : null
16003
15993
  },
16004
15994
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
16005
15995
  );
@@ -16013,11 +16003,11 @@ function ChatCardLoader({
16013
16003
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
16014
16004
  const fetchEntry = entry && entry.contentRefType ? entry : null;
16015
16005
  const { item, isLoading, isError, isFetched } = useChatCardItem(
16016
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _488 => _488.contentRefType]), () => ( "")),
16006
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _483 => _483.contentRefType]), () => ( "")),
16017
16007
  fetchEntry ? resolvedChatRef.id : ""
16018
16008
  );
16019
16009
  if (!entry) return null;
16020
- const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _489 => _489.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
16010
+ const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _484 => _484.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
16021
16011
  contentRefType: fetchEntry.contentRefType,
16022
16012
  id: resolvedChatRef.id,
16023
16013
  item,
@@ -16025,18 +16015,18 @@ function ChatCardLoader({
16025
16015
  }) : null;
16026
16016
  const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
16027
16017
  composed: composedHref,
16028
- itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _490 => _490.fallbackHref, 'optionalCall', _491 => _491(item)]), () => ( null)),
16018
+ itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _485 => _485.fallbackHref, 'optionalCall', _486 => _486(item)]), () => ( null)),
16029
16019
  allowComposed: !fetchEntry.noComposedHref
16030
16020
  }) : null;
16031
16021
  const hrefResolvedChatRef = hrefChoice ? {
16032
16022
  ...resolvedChatRef,
16033
- url: _chunk2NRLRRMRcjs.safeHref.call(void 0, hrefChoice.href),
16023
+ url: _chunk3HSRNCDVcjs.safeHref.call(void 0, hrefChoice.href),
16034
16024
  // The `item` branch carries no platform of its own — keep the ref's.
16035
16025
  targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
16036
16026
  } : resolvedChatRef;
16037
16027
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
16038
16028
  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)));
16029
+ const isNewTab = _chunk3HSRNCDVcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
16040
16030
  const useDisplay = !!entry.displayAction && !!onDisplay;
16041
16031
  const discussFn = useDisplay ? onDisplay : onDiscuss;
16042
16032
  const discuss = discussFn ? {
@@ -16059,7 +16049,7 @@ function ChatCardLoader({
16059
16049
  isNewTab,
16060
16050
  discuss
16061
16051
  };
16062
- const path = typeof _optionalChain([finalChatRef, 'access', _492 => _492.metadata, 'optionalAccess', _493 => _493.path]) === "string" ? finalChatRef.metadata.path : null;
16052
+ const path = typeof _optionalChain([finalChatRef, 'access', _487 => _487.metadata, 'optionalAccess', _488 => _488.path]) === "string" ? finalChatRef.metadata.path : null;
16063
16053
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16064
16054
  ChatCardNavWrap,
16065
16055
  {
@@ -16083,7 +16073,7 @@ function ChatCardLoader({
16083
16073
  if (!fetchEntry) {
16084
16074
  return finish(entry.render(void 0, finalChatRef, renderOpts));
16085
16075
  }
16086
- if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _494 => _494.skeleton, 'optionalCall', _495 => _495()]), () => ( null)) });
16076
+ if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _489 => _489.skeleton, 'optionalCall', _490 => _490()]), () => ( null)) });
16087
16077
  if (!item) {
16088
16078
  if (isError) {
16089
16079
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
@@ -16446,7 +16436,7 @@ function useChunkCatchup({
16446
16436
  if (catchupRun.current === run) {
16447
16437
  if (currentDialogId !== dialogIdRef.current) {
16448
16438
  catchupRun.current = null;
16449
- if (_optionalChain([pendingCatchupRef, 'access', _496 => _496.current, 'optionalAccess', _497 => _497.dialogId]) === currentDialogId) {
16439
+ if (_optionalChain([pendingCatchupRef, 'access', _491 => _491.current, 'optionalAccess', _492 => _492.dialogId]) === currentDialogId) {
16450
16440
  pendingCatchupRef.current = null;
16451
16441
  }
16452
16442
  } else {
@@ -16457,7 +16447,7 @@ function useChunkCatchup({
16457
16447
  if (pending.dialogId === currentDialogId) {
16458
16448
  rearmForQueuedCatchup();
16459
16449
  try {
16460
- await _optionalChain([catchUpChunksRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499(pending.fromSequenceId)]);
16450
+ await _optionalChain([catchUpChunksRef, 'access', _493 => _493.current, 'optionalCall', _494 => _494(pending.fromSequenceId)]);
16461
16451
  } catch (rerunError) {
16462
16452
  console.error("Queued catch-up re-run failed:", rerunError);
16463
16453
  }
@@ -16524,7 +16514,7 @@ function useChunkCatchup({
16524
16514
 
16525
16515
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
16526
16516
  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;
16517
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _495 => _495.matchMedia, 'optionalCall', _496 => _496("(prefers-reduced-motion: reduce)"), 'access', _497 => _497.matches]) === true;
16528
16518
  }
16529
16519
  function useScriptedStream(frames, resetKey, enabled = true) {
16530
16520
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -16535,7 +16525,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
16535
16525
  setIndex(0);
16536
16526
  }
16537
16527
  _react.useEffect.call(void 0, () => {
16538
- const mq = _optionalChain([window, 'access', _503 => _503.matchMedia, 'optionalCall', _504 => _504("(prefers-reduced-motion: reduce)")]);
16528
+ const mq = _optionalChain([window, 'access', _498 => _498.matchMedia, 'optionalCall', _499 => _499("(prefers-reduced-motion: reduce)")]);
16539
16529
  const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
16540
16530
  sync();
16541
16531
  if (!mq) return void 0;
@@ -16678,7 +16668,7 @@ function useJetStreamDialogSubscription({
16678
16668
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16679
16669
  conn: sharedConn,
16680
16670
  wsUrl,
16681
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _505 => _505.current, 'optionalCall', _506 => _506()]),
16671
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _500 => _500.current, 'optionalCall', _501 => _501()]),
16682
16672
  backoff: reconnectionBackoffRef.current,
16683
16673
  getFreshUrl: () => getNatsWsUrlRef.current(),
16684
16674
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -16693,7 +16683,7 @@ function useJetStreamDialogSubscription({
16693
16683
  setReconnectionCount((c) => c + 1);
16694
16684
  }
16695
16685
  hadConnectionBeforeRef.current = true;
16696
- _optionalChain([onConnectRef, 'access', _507 => _507.current, 'optionalCall', _508 => _508()]);
16686
+ _optionalChain([onConnectRef, 'access', _502 => _502.current, 'optionalCall', _503 => _503()]);
16697
16687
  }
16698
16688
  if (status === "error") {
16699
16689
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -16703,7 +16693,7 @@ function useJetStreamDialogSubscription({
16703
16693
  setIsConnected(false);
16704
16694
  setIsSubscribed(false);
16705
16695
  tearDownSubscription();
16706
- _optionalChain([onDisconnectRef, 'access', _509 => _509.current, 'optionalCall', _510 => _510()]);
16696
+ _optionalChain([onDisconnectRef, 'access', _504 => _504.current, 'optionalCall', _505 => _505()]);
16707
16697
  }
16708
16698
  }
16709
16699
  });
@@ -16829,7 +16819,7 @@ function useJetStreamDialogSubscription({
16829
16819
  }
16830
16820
  subscriptionRef.current = handle;
16831
16821
  setIsSubscribed(true);
16832
- _optionalChain([onSubscribedRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]);
16822
+ _optionalChain([onSubscribedRef, 'access', _506 => _506.current, 'optionalCall', _507 => _507()]);
16833
16823
  } catch (e50) {
16834
16824
  if (!cancelled) {
16835
16825
  setIsSubscribed(false);
@@ -16945,20 +16935,20 @@ function useNatsDialogSubscription({
16945
16935
  const tearDownSubscriptions = () => {
16946
16936
  subscriptionRefs.current.forEach((sub) => {
16947
16937
  try {
16948
- _optionalChain([sub, 'optionalAccess', _513 => _513.unsubscribe, 'call', _514 => _514()]);
16938
+ _optionalChain([sub, 'optionalAccess', _508 => _508.unsubscribe, 'call', _509 => _509()]);
16949
16939
  } catch (e52) {
16950
16940
  }
16951
16941
  });
16952
16942
  subscriptionRefs.current.clear();
16953
16943
  lastSubscribedDialogIdRef.current = null;
16954
- _optionalChain([abortControllerRef, 'access', _515 => _515.current, 'optionalAccess', _516 => _516.abort, 'call', _517 => _517()]);
16944
+ _optionalChain([abortControllerRef, 'access', _510 => _510.current, 'optionalAccess', _511 => _511.abort, 'call', _512 => _512()]);
16955
16945
  abortControllerRef.current = null;
16956
16946
  };
16957
16947
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
16958
16948
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16959
16949
  conn: sharedConn,
16960
16950
  wsUrl,
16961
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _518 => _518.current, 'optionalCall', _519 => _519()]),
16951
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _513 => _513.current, 'optionalCall', _514 => _514()]),
16962
16952
  backoff: reconnectionBackoffRef.current,
16963
16953
  getFreshUrl: () => getNatsWsUrlRef.current(),
16964
16954
  shouldRetryOn: isDisconnectStatus,
@@ -16969,7 +16959,7 @@ function useNatsDialogSubscription({
16969
16959
  setReconnectionCount((c) => c + 1);
16970
16960
  }
16971
16961
  hadConnectionBeforeRef.current = true;
16972
- _optionalChain([onConnectRef, 'access', _520 => _520.current, 'optionalCall', _521 => _521()]);
16962
+ _optionalChain([onConnectRef, 'access', _515 => _515.current, 'optionalCall', _516 => _516()]);
16973
16963
  }
16974
16964
  if (status === "error") {
16975
16965
  console.warn("[NATS] protocol error:", evt.data);
@@ -16979,7 +16969,7 @@ function useNatsDialogSubscription({
16979
16969
  setIsConnected(false);
16980
16970
  setIsSubscribed(false);
16981
16971
  tearDownSubscriptions();
16982
- _optionalChain([onDisconnectRef, 'access', _522 => _522.current, 'optionalCall', _523 => _523()]);
16972
+ _optionalChain([onDisconnectRef, 'access', _517 => _517.current, 'optionalCall', _518 => _518()]);
16983
16973
  }
16984
16974
  }
16985
16975
  });
@@ -17010,13 +17000,13 @@ function useNatsDialogSubscription({
17010
17000
  setIsSubscribed(false);
17011
17001
  subscriptionRefs.current.forEach((sub) => {
17012
17002
  try {
17013
- _optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
17003
+ _optionalChain([sub, 'optionalAccess', _519 => _519.unsubscribe, 'call', _520 => _520()]);
17014
17004
  } catch (e53) {
17015
17005
  }
17016
17006
  });
17017
17007
  subscriptionRefs.current.clear();
17018
17008
  lastSubscribedDialogIdRef.current = null;
17019
- _optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
17009
+ _optionalChain([abortControllerRef, 'access', _521 => _521.current, 'optionalAccess', _522 => _522.abort, 'call', _523 => _523()]);
17020
17010
  abortControllerRef.current = null;
17021
17011
  }
17022
17012
  return void 0;
@@ -17028,12 +17018,12 @@ function useNatsDialogSubscription({
17028
17018
  if (subscriptionRefs.current.size > 0) {
17029
17019
  subscriptionRefs.current.forEach((sub) => {
17030
17020
  try {
17031
- _optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
17021
+ _optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
17032
17022
  } catch (e54) {
17033
17023
  }
17034
17024
  });
17035
17025
  subscriptionRefs.current.clear();
17036
- _optionalChain([abortControllerRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.abort, 'call', _533 => _533()]);
17026
+ _optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
17037
17027
  }
17038
17028
  abortControllerRef.current = new AbortController();
17039
17029
  const abort = abortControllerRef.current;
@@ -17063,7 +17053,7 @@ function useNatsDialogSubscription({
17063
17053
  });
17064
17054
  lastSubscribedDialogIdRef.current = dialogId;
17065
17055
  setIsSubscribed(true);
17066
- _optionalChain([onSubscribedRef, 'access', _534 => _534.current, 'optionalCall', _535 => _535()]);
17056
+ _optionalChain([onSubscribedRef, 'access', _529 => _529.current, 'optionalCall', _530 => _530()]);
17067
17057
  };
17068
17058
  if (isConnectedRef.current) {
17069
17059
  createSubscriptions();
@@ -17074,7 +17064,7 @@ function useNatsDialogSubscription({
17074
17064
  abort.abort();
17075
17065
  subscriptions.forEach((sub) => {
17076
17066
  try {
17077
- _optionalChain([sub, 'optionalAccess', _536 => _536.unsubscribe, 'call', _537 => _537()]);
17067
+ _optionalChain([sub, 'optionalAccess', _531 => _531.unsubscribe, 'call', _532 => _532()]);
17078
17068
  } catch (e56) {
17079
17069
  }
17080
17070
  });
@@ -17113,7 +17103,7 @@ function useNatsDialogSubscription({
17113
17103
  });
17114
17104
  lastSubscribedDialogIdRef.current = currentDialogId;
17115
17105
  setIsSubscribed(true);
17116
- _optionalChain([onSubscribedRef, 'access', _538 => _538.current, 'optionalCall', _539 => _539()]);
17106
+ _optionalChain([onSubscribedRef, 'access', _533 => _533.current, 'optionalCall', _534 => _534()]);
17117
17107
  } else if (subscriptionRefs.current.size > 0) {
17118
17108
  setIsSubscribed(true);
17119
17109
  }
@@ -17121,10 +17111,10 @@ function useNatsDialogSubscription({
17121
17111
  return { isConnected, isSubscribed, reconnectionCount };
17122
17112
  }
17123
17113
  function buildNatsWsUrl(apiBaseUrl, options) {
17124
- const path = _optionalChain([options, 'optionalAccess', _540 => _540.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17114
+ const path = _optionalChain([options, 'optionalAccess', _535 => _535.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17125
17115
  const u = new URL(path, apiBaseUrl);
17126
17116
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
17127
- if (_optionalChain([options, 'optionalAccess', _541 => _541.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _542 => _542.token])) {
17117
+ if (_optionalChain([options, 'optionalAccess', _536 => _536.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _537 => _537.token])) {
17128
17118
  u.searchParams.set("authorization", options.token);
17129
17119
  }
17130
17120
  return u.toString();
@@ -17142,7 +17132,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17142
17132
  const data = await res.json();
17143
17133
  return _nullishCoalesce(data.commands, () => ( []));
17144
17134
  } catch (err) {
17145
- if (_optionalChain([err, 'optionalAccess', _543 => _543.name]) === "AbortError") throw err;
17135
+ if (_optionalChain([err, 'optionalAccess', _538 => _538.name]) === "AbortError") throw err;
17146
17136
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
17147
17137
  return [];
17148
17138
  }
@@ -17150,8 +17140,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17150
17140
  var NO_COMMANDS = [];
17151
17141
  function useSlashCommands(prefix, commandsUrl) {
17152
17142
  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;
17143
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _539 => _539.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17144
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _540 => _540.prefix]) !== prefix;
17155
17145
  _react.useEffect.call(void 0, () => {
17156
17146
  if (prefix == null) return void 0;
17157
17147
  let cancelled = false;
@@ -17161,7 +17151,7 @@ function useSlashCommands(prefix, commandsUrl) {
17161
17151
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
17162
17152
  if (!cancelled) setAnswered({ prefix, commands: next });
17163
17153
  } catch (err) {
17164
- if (!cancelled && _optionalChain([err, 'optionalAccess', _546 => _546.name]) !== "AbortError") {
17154
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _541 => _541.name]) !== "AbortError") {
17165
17155
  console.warn("[use-slash-commands] fetch failed:", err);
17166
17156
  setAnswered({ prefix, commands: NO_COMMANDS });
17167
17157
  }
@@ -17184,7 +17174,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
17184
17174
  const query = _reactquery.useQuery.call(void 0, {
17185
17175
  queryKey: ["chat-slash-commands", commandsUrl],
17186
17176
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
17187
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _547 => _547.enabled]), () => ( true)),
17177
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _542 => _542.enabled]), () => ( true)),
17188
17178
  staleTime: Infinity,
17189
17179
  gcTime: Infinity,
17190
17180
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -17223,21 +17213,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
17223
17213
  }
17224
17214
  const data = await res.json();
17225
17215
  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]), () => ( []))
17216
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _543 => _543.name]), () => ( null)),
17217
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _544 => _544.icon]), () => ( null)),
17218
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _545 => _545.greeting]), () => ( null)),
17219
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _546 => _546.enabledRagTableIds]), () => ( [])),
17220
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _547 => _547.quickActions]), () => ( [])),
17221
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _548 => _548.suggestedQueries]), () => ( []))
17232
17222
  };
17233
17223
  } catch (err) {
17234
- if (_optionalChain([err, 'optionalAccess', _554 => _554.name]) === "AbortError") throw err;
17224
+ if (_optionalChain([err, 'optionalAccess', _549 => _549.name]) === "AbortError") throw err;
17235
17225
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
17236
17226
  return EMPTY_STATE_FALLBACK;
17237
17227
  }
17238
17228
  }
17239
17229
  function useEmptyStateConfig(emptyStateUrl, options) {
17240
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _555 => _555.enabled]), () => ( true))) && !!emptyStateUrl;
17230
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _550 => _550.enabled]), () => ( true))) && !!emptyStateUrl;
17241
17231
  const query = _reactquery.useQuery.call(void 0, {
17242
17232
  queryKey: ["chat-empty-state", emptyStateUrl],
17243
17233
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -17266,7 +17256,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
17266
17256
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
17267
17257
  function uploadWithProgress(url, file, token, onProgress, signal) {
17268
17258
  return new Promise((resolve, reject) => {
17269
- if (_optionalChain([signal, 'optionalAccess', _556 => _556.aborted])) {
17259
+ if (_optionalChain([signal, 'optionalAccess', _551 => _551.aborted])) {
17270
17260
  reject(new Error("Upload cancelled"));
17271
17261
  return;
17272
17262
  }
@@ -17308,7 +17298,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
17308
17298
  const handleSignalAbort = () => {
17309
17299
  xhr.abort();
17310
17300
  };
17311
- _optionalChain([signal, 'optionalAccess', _557 => _557.addEventListener, 'call', _558 => _558("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17301
+ _optionalChain([signal, 'optionalAccess', _552 => _552.addEventListener, 'call', _553 => _553("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17312
17302
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
17313
17303
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
17314
17304
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -17352,10 +17342,10 @@ function useChatAttachments() {
17352
17342
  try {
17353
17343
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
17354
17344
  } catch (err) {
17355
- if (_optionalChain([ctrl, 'optionalAccess', _559 => _559.signal, 'access', _560 => _560.aborted])) return;
17345
+ if (_optionalChain([ctrl, 'optionalAccess', _554 => _554.signal, 'access', _555 => _555.aborted])) return;
17356
17346
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
17357
17347
  }
17358
- if (_optionalChain([ctrl, 'optionalAccess', _561 => _561.signal, 'access', _562 => _562.aborted])) return;
17348
+ if (_optionalChain([ctrl, 'optionalAccess', _556 => _556.signal, 'access', _557 => _557.aborted])) return;
17359
17349
  if (!sniffed) {
17360
17350
  throw new Error("Unrecognized file format");
17361
17351
  }
@@ -17369,7 +17359,7 @@ function useChatAttachments() {
17369
17359
  const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17370
17360
  method: "POST",
17371
17361
  headers: { "Content-Type": "application/json" },
17372
- signal: _optionalChain([ctrl, 'optionalAccess', _563 => _563.signal]),
17362
+ signal: _optionalChain([ctrl, 'optionalAccess', _558 => _558.signal]),
17373
17363
  body: JSON.stringify({
17374
17364
  fileName: att.file.name,
17375
17365
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -17398,9 +17388,9 @@ function useChatAttachments() {
17398
17388
  (pct) => {
17399
17389
  updateOne(att.id, { progress: pct });
17400
17390
  },
17401
- _optionalChain([ctrl, 'optionalAccess', _564 => _564.signal])
17391
+ _optionalChain([ctrl, 'optionalAccess', _559 => _559.signal])
17402
17392
  );
17403
- if (_optionalChain([ctrl, 'optionalAccess', _565 => _565.signal, 'access', _566 => _566.aborted])) return;
17393
+ if (_optionalChain([ctrl, 'optionalAccess', _560 => _560.signal, 'access', _561 => _561.aborted])) return;
17404
17394
  updateOne(att.id, {
17405
17395
  status: "ready",
17406
17396
  progress: 100,
@@ -17408,7 +17398,7 @@ function useChatAttachments() {
17408
17398
  viewToken: mintData.viewToken
17409
17399
  });
17410
17400
  } catch (err) {
17411
- if (_optionalChain([ctrl, 'optionalAccess', _567 => _567.signal, 'access', _568 => _568.aborted])) return;
17401
+ if (_optionalChain([ctrl, 'optionalAccess', _562 => _562.signal, 'access', _563 => _563.aborted])) return;
17412
17402
  const message = err instanceof Error ? err.message : String(err);
17413
17403
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
17414
17404
  } finally {
@@ -17530,7 +17520,7 @@ function useChatAttachmentImageGallery() {
17530
17520
  return () => root.removeEventListener("click", onClick);
17531
17521
  }, [viewUrlPrefix]);
17532
17522
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17533
- _chunk2NRLRRMRcjs.ImageGalleryModal,
17523
+ _chunk3HSRNCDVcjs.ImageGalleryModal,
17534
17524
  {
17535
17525
  images: state.images,
17536
17526
  isOpen: state.isOpen,
@@ -17557,11 +17547,11 @@ var ANON_DEFAULTS = {
17557
17547
  function useResolveChatIdentity(enabled) {
17558
17548
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17559
17549
  const url = runtime.endpoints.identityUrl;
17560
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _569 => _569.email]), () => ( null));
17550
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _564 => _564.email]), () => ( null));
17561
17551
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
17562
17552
  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;
17553
+ const data = _optionalChain([resolved, 'optionalAccess', _565 => _565.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17554
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _566 => _566.key]) !== requestKey;
17565
17555
  _react.useEffect.call(void 0, () => {
17566
17556
  if (requestKey === null) return void 0;
17567
17557
  let cancelled = false;
@@ -17708,7 +17698,7 @@ function useChat({
17708
17698
  onMessagesChangeRef.current = onMessagesChange;
17709
17699
  });
17710
17700
  _react.useEffect.call(void 0, () => {
17711
- _optionalChain([onMessagesChangeRef, 'access', _572 => _572.current, 'optionalCall', _573 => _573(messages)]);
17701
+ _optionalChain([onMessagesChangeRef, 'access', _567 => _567.current, 'optionalCall', _568 => _568(messages)]);
17712
17702
  }, [messages]);
17713
17703
  const {
17714
17704
  streamMessage,
@@ -17745,7 +17735,7 @@ function useChat({
17745
17735
  name: "You",
17746
17736
  content: text2,
17747
17737
  timestamp: /* @__PURE__ */ new Date(),
17748
- ..._optionalChain([options, 'optionalAccess', _574 => _574.hidden]) ? { hidden: true } : {}
17738
+ ..._optionalChain([options, 'optionalAccess', _569 => _569.hidden]) ? { hidden: true } : {}
17749
17739
  };
17750
17740
  addMessage(userMessage);
17751
17741
  setIsTyping(true);
@@ -17959,7 +17949,7 @@ function buildConfirmToolBody(request) {
17959
17949
  async function readServerErrorMessage(response) {
17960
17950
  try {
17961
17951
  const body = await response.json();
17962
- if (typeof _optionalChain([body, 'optionalAccess', _575 => _575.error]) === "string" && body.error.length > 0) return body.error;
17952
+ if (typeof _optionalChain([body, 'optionalAccess', _570 => _570.error]) === "string" && body.error.length > 0) return body.error;
17963
17953
  } catch (e58) {
17964
17954
  }
17965
17955
  return null;
@@ -18249,13 +18239,19 @@ function nullableText(value) {
18249
18239
  }
18250
18240
  function httpsUrl(value) {
18251
18241
  const candidate = text(value);
18252
- if (!candidate) return void 0;
18242
+ if (!candidate || _chunk3HSRNCDVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
18253
18243
  try {
18254
18244
  return new URL(candidate).protocol === "https:" ? candidate : void 0;
18255
18245
  } catch (e62) {
18256
18246
  return void 0;
18257
18247
  }
18258
18248
  }
18249
+ function linkUrl(value) {
18250
+ const candidate = text(value);
18251
+ if (!candidate || _chunk3HSRNCDVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
18252
+ if (candidate.startsWith("/")) return _chunk3HSRNCDVcjs.isSameOriginPath.call(void 0, candidate) ? candidate : void 0;
18253
+ return httpsUrl(candidate);
18254
+ }
18259
18255
  function youtubeVideoId(value) {
18260
18256
  const candidate = text(value);
18261
18257
  if (!candidate) return void 0;
@@ -18266,7 +18262,7 @@ function youtubeVideoId(value) {
18266
18262
  const hostname = parsed.hostname.toLowerCase();
18267
18263
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
18268
18264
  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]]);
18265
+ 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
18266
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
18271
18267
  return id && YOUTUBE_ID.test(id) ? id : void 0;
18272
18268
  }
@@ -18277,7 +18273,7 @@ function sourceItems(value) {
18277
18273
  const documentType = text(item.documentType);
18278
18274
  const name = text(item.name);
18279
18275
  if (!id || !documentType || !name) return [];
18280
- const externalUrl = httpsUrl(item.externalUrl);
18276
+ const externalUrl = linkUrl(item.externalUrl);
18281
18277
  const targetPlatform = nullableText(item.targetPlatform);
18282
18278
  const path = nullableText(item.path);
18283
18279
  return [
@@ -18306,7 +18302,7 @@ function sources(value) {
18306
18302
  claimed.add(index);
18307
18303
  const path = text(candidate.path);
18308
18304
  const documentType = text(candidate.documentType);
18309
- const externalUrl = httpsUrl(candidate.externalUrl);
18305
+ const externalUrl = linkUrl(candidate.externalUrl);
18310
18306
  const targetPlatform = nullableText(candidate.targetPlatform);
18311
18307
  const id = text(candidate.id);
18312
18308
  const sourceRepo = text(candidate.sourceRepo);
@@ -18385,11 +18381,11 @@ function cards(value, decodedSources) {
18385
18381
  {
18386
18382
  type,
18387
18383
  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 } } : {}
18384
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _574 => _574.name]), () => ( id)),
18385
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _575 => _575.externalUrl]), () => ( null)),
18386
+ ..._optionalChain([source, 'optionalAccess', _576 => _576.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18387
+ ..._optionalChain([source, 'optionalAccess', _577 => _577.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18388
+ ..._optionalChain([source, 'optionalAccess', _578 => _578.path]) ? { metadata: { path: source.path } } : {}
18393
18389
  }
18394
18390
  ];
18395
18391
  });
@@ -18415,11 +18411,11 @@ function sourceMetadataEvent(payload) {
18415
18411
  }
18416
18412
  function mergeSourceMetadata(previous, event) {
18417
18413
  const byIndex = /* @__PURE__ */ new Map();
18418
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _584 => _584.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18414
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _579 => _579.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18419
18415
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
18420
18416
  }
18421
18417
  const byIdentity = /* @__PURE__ */ new Map();
18422
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _585 => _585.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18418
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _580 => _580.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18423
18419
  const identity = `${ref.type}:${ref.id}`;
18424
18420
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
18425
18421
  }
@@ -18505,9 +18501,9 @@ function appendToTrailingAssistant(prev, segments) {
18505
18501
  for (const seg of segments) {
18506
18502
  const tail = merged[merged.length - 1];
18507
18503
  const key = upsertKey(seg);
18508
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _586 => _586.type]) === "text") {
18504
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _581 => _581.type]) === "text") {
18509
18505
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
18510
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _587 => _587.type]) === "thinking") {
18506
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _582 => _582.type]) === "thinking") {
18511
18507
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
18512
18508
  } else if (key) {
18513
18509
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -18548,7 +18544,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18548
18544
  }
18549
18545
  if (s.type !== "approval_batch") return s;
18550
18546
  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)]);
18547
+ const hasRow = _optionalChain([s, 'access', _583 => _583.data, 'access', _584 => _584.toolCalls, 'optionalAccess', _585 => _585.some, 'call', _586 => _586((c) => c.toolExecutionRequestId === requestId)]);
18552
18548
  if (!isAnchor && !hasRow) return s;
18553
18549
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
18554
18550
  const nextExecutions = hasRow ? {
@@ -18570,8 +18566,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18570
18566
  };
18571
18567
  }
18572
18568
  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]) };
18569
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _587 => _587.status]) === "done") return null;
18570
+ 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
18571
  }
18576
18572
  function withBatchExecution(seg, execId, state) {
18577
18573
  return {
@@ -18588,11 +18584,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
18588
18584
  }
18589
18585
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
18590
18586
  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)])) {
18587
+ 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
18588
  return s;
18593
18589
  }
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;
18590
+ const existing = _optionalChain([s, 'access', _594 => _594.data, 'access', _595 => _595.executions, 'optionalAccess', _596 => _596[rowRequestId]]);
18591
+ if (_optionalChain([existing, 'optionalAccess', _597 => _597.status]) === "done") return s;
18596
18592
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
18597
18593
  });
18598
18594
  }
@@ -18628,7 +18624,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
18628
18624
  for (let j = message.segments.length - 1; j >= 0; j--) {
18629
18625
  const seg = message.segments[j];
18630
18626
  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]]);
18627
+ const prevExec = _optionalChain([seg, 'access', _598 => _598.data, 'access', _599 => _599.executions, 'optionalAccess', _600 => _600[execId]]);
18632
18628
  const nextExec = nextBatchExecution(prevExec, toolData);
18633
18629
  if (nextExec === null) return prev;
18634
18630
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -18801,9 +18797,9 @@ var MessageSegmentAccumulator = class {
18801
18797
  type: "tool_execution",
18802
18798
  data: {
18803
18799
  ...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])
18800
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _601 => _601.data, 'access', _602 => _602.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _603 => _603.toolTitle]))),
18801
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _604 => _604.data, 'access', _605 => _605.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _606 => _606.toolExplanation]))),
18802
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _607 => _607.parameters])
18807
18803
  }
18808
18804
  };
18809
18805
  if (existingIndex !== -1) {
@@ -18827,7 +18823,7 @@ var MessageSegmentAccumulator = class {
18827
18823
  if (seg.type !== "approval_batch") return seg;
18828
18824
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
18829
18825
  if (!hasCall) return seg;
18830
- const prev = _optionalChain([seg, 'access', _613 => _613.data, 'access', _614 => _614.executions, 'optionalAccess', _615 => _615[execId]]);
18826
+ const prev = _optionalChain([seg, 'access', _608 => _608.data, 'access', _609 => _609.executions, 'optionalAccess', _610 => _610[execId]]);
18831
18827
  const next = nextBatchExecution(prev, toolData);
18832
18828
  matched = true;
18833
18829
  if (next === null) return seg;
@@ -18961,8 +18957,8 @@ var MessageSegmentAccumulator = class {
18961
18957
  requestId,
18962
18958
  {
18963
18959
  ...pendingApproval,
18964
- command: _optionalChain([pendingApproval, 'optionalAccess', _616 => _616.command]) || "",
18965
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _617 => _617.approvalType]) || approvalType
18960
+ command: _optionalChain([pendingApproval, 'optionalAccess', _611 => _611.command]) || "",
18961
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _612 => _612.approvalType]) || approvalType
18966
18962
  },
18967
18963
  status
18968
18964
  );
@@ -18987,9 +18983,9 @@ var MessageSegmentAccumulator = class {
18987
18983
  type: "escalation_offer",
18988
18984
  // The resolved chunk carries no text/origin — a redelivered offer must
18989
18985
  // 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]))) },
18986
+ 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
18987
  status,
18992
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _622 => _622.resolvedByName]))),
18988
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _617 => _617.resolvedByName]))),
18993
18989
  onApprove: this.callbacks.onEscalationApprove,
18994
18990
  onReject: this.callbacks.onEscalationReject
18995
18991
  };
@@ -19314,7 +19310,7 @@ function createChatStreamReducer(options = {}) {
19314
19310
  let stateCache = null;
19315
19311
  function invalidate() {
19316
19312
  stateCache = null;
19317
- _optionalChain([onChange, 'optionalCall', _623 => _623()]);
19313
+ _optionalChain([onChange, 'optionalCall', _618 => _618()]);
19318
19314
  }
19319
19315
  function getState() {
19320
19316
  if (!stateCache) {
@@ -19330,7 +19326,7 @@ function createChatStreamReducer(options = {}) {
19330
19326
  return stateCache;
19331
19327
  }
19332
19328
  function emit(name, ...args) {
19333
- _optionalChain([onEffect, 'optionalCall', _624 => _624({ name, args })]);
19329
+ _optionalChain([onEffect, 'optionalCall', _619 => _619({ name, args })]);
19334
19330
  }
19335
19331
  function setMessagesInternal(next) {
19336
19332
  if (next !== messages) {
@@ -19373,12 +19369,12 @@ function createChatStreamReducer(options = {}) {
19373
19369
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
19374
19370
  }
19375
19371
  function applySegmentsToState(segments, meta) {
19376
- const seq = _optionalChain([meta, 'optionalAccess', _625 => _625.streamSeq]);
19377
- if (_optionalChain([meta, 'optionalAccess', _626 => _626.append]) && meta.isCompacting) {
19372
+ const seq = _optionalChain([meta, 'optionalAccess', _620 => _620.streamSeq]);
19373
+ if (_optionalChain([meta, 'optionalAccess', _621 => _621.append]) && meta.isCompacting) {
19378
19374
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
19379
19375
  return;
19380
19376
  }
19381
- if (_optionalChain([meta, 'optionalAccess', _627 => _627.append])) {
19377
+ if (_optionalChain([meta, 'optionalAccess', _622 => _622.append])) {
19382
19378
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
19383
19379
  return;
19384
19380
  }
@@ -19390,7 +19386,7 @@ function createChatStreamReducer(options = {}) {
19390
19386
  adoptTrailingAssistant = false;
19391
19387
  const last = messages[messages.length - 1];
19392
19388
  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 !== "";
19389
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _623 => _623.segments, 'optionalAccess', _624 => _624.length]), () => ( 0))) > 0 || last.content !== "";
19394
19390
  if (!hasContent) return;
19395
19391
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
19396
19392
  }
@@ -19609,13 +19605,13 @@ function createChatStreamReducer(options = {}) {
19609
19605
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
19610
19606
  pendingEscalated.set(requestId, {
19611
19607
  command: summary,
19612
- explanation: _optionalChain([required, 'optionalAccess', _630 => _630.toolExplanation]),
19608
+ explanation: _optionalChain([required, 'optionalAccess', _625 => _625.toolExplanation]),
19613
19609
  approvalType,
19614
19610
  toolCalls
19615
19611
  });
19616
19612
  emit("onEscalatedApproval", requestId, {
19617
19613
  command: summary,
19618
- explanation: _optionalChain([required, 'optionalAccess', _631 => _631.toolExplanation]),
19614
+ explanation: _optionalChain([required, 'optionalAccess', _626 => _626.toolExplanation]),
19619
19615
  approvalType
19620
19616
  });
19621
19617
  break;
@@ -19999,7 +19995,7 @@ function createChatStreamReducer(options = {}) {
19999
19995
  const resolveBatch = (status, confirm) => async () => {
20000
19996
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
20001
19997
  for (const id of ids) {
20002
- const ok = await _optionalChain([confirm, 'optionalCall', _632 => _632(id)]);
19998
+ const ok = await _optionalChain([confirm, 'optionalCall', _627 => _627(id)]);
20003
19999
  if (ok === false) {
20004
20000
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
20005
20001
  }
@@ -20135,8 +20131,8 @@ function createChatStreamReducer(options = {}) {
20135
20131
  }
20136
20132
  }
20137
20133
  }
20138
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _633 => _633.resumed]), () => ( messages.length > 0)));
20139
- if (_optionalChain([extras, 'optionalAccess', _634 => _634.agentBusy])) agentBusyState();
20134
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _628 => _628.resumed]), () => ( messages.length > 0)));
20135
+ if (_optionalChain([extras, 'optionalAccess', _629 => _629.agentBusy])) agentBusyState();
20140
20136
  invalidate();
20141
20137
  }
20142
20138
  return {
@@ -20221,7 +20217,7 @@ function createChatStreamReducer(options = {}) {
20221
20217
  },
20222
20218
  endSseTurn() {
20223
20219
  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 === "") {
20220
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _630 => _630.segments, 'optionalAccess', _631 => _631.length]), () => ( 0))) === 0 && last.content === "") {
20225
20221
  messages = messages.slice(0, -1);
20226
20222
  }
20227
20223
  sseCurrentText = "";
@@ -20374,10 +20370,10 @@ function createChatDialogStore(options = {}) {
20374
20370
  if (onEvict) {
20375
20371
  const sep = key.indexOf(KEY_SEP);
20376
20372
  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))
20373
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _632 => _632.state, 'access', _633 => _633.messages]), () => ( EMPTY_STATE.messages)),
20374
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _634 => _634.state, 'access', _635 => _635.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20375
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _636 => _636.getLastAppliedSeq, 'call', _637 => _637()]), () => ( Number.NEGATIVE_INFINITY)),
20376
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _638 => _638.getPendingEchoes, 'call', _639 => _639()]), () => ( EMPTY_PENDING_ECHOES))
20381
20377
  });
20382
20378
  }
20383
20379
  }
@@ -20387,12 +20383,12 @@ function createChatDialogStore(options = {}) {
20387
20383
  const key = keyOf(dialogId, side);
20388
20384
  let reducer = reducers.get(key);
20389
20385
  if (!reducer) {
20390
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _645 => _645(dialogId, side)]), () => ( {}));
20386
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _640 => _640(dialogId, side)]), () => ( {}));
20391
20387
  const userOnChange = base.onChange;
20392
20388
  reducer = createChatStreamReducer({
20393
20389
  ...base,
20394
20390
  onChange: () => {
20395
- _optionalChain([userOnChange, 'optionalCall', _646 => _646()]);
20391
+ _optionalChain([userOnChange, 'optionalCall', _641 => _641()]);
20396
20392
  notify();
20397
20393
  }
20398
20394
  });
@@ -20437,7 +20433,7 @@ function createChatDialogStore(options = {}) {
20437
20433
  };
20438
20434
  }
20439
20435
  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));
20436
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _642 => _642.get, 'call', _643 => _643(keyOf(dialogId, side)), 'optionalAccess', _644 => _644.state]), () => ( EMPTY_STATE));
20441
20437
  }
20442
20438
  function getServerSnapshot2() {
20443
20439
  return EMPTY_STATE;
@@ -20529,7 +20525,7 @@ function createDeltaBatcher({
20529
20525
  pending = [];
20530
20526
  const key = pendingKey;
20531
20527
  for (const delta of batch) applyOne(delta, key);
20532
- _optionalChain([onFlushed, 'optionalCall', _650 => _650(batch.length)]);
20528
+ _optionalChain([onFlushed, 'optionalCall', _645 => _645(batch.length)]);
20533
20529
  }
20534
20530
  function schedule() {
20535
20531
  if (raf !== null || timer !== null) return;
@@ -20553,7 +20549,7 @@ function createDeltaBatcher({
20553
20549
  }
20554
20550
  if (!isDeltaEvent(event)) return false;
20555
20551
  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;
20552
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _646 => _646.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20557
20553
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
20558
20554
  pending[pending.length - 1] = {
20559
20555
  ...tail,
@@ -20584,7 +20580,7 @@ function useChatStreamReducer({
20584
20580
  side = DEFAULT_DIALOG_SIDE,
20585
20581
  createReducerOptions
20586
20582
  }) {
20587
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _652 => _652()]), () => ( {})));
20583
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _647 => _647()]), () => ( {})));
20588
20584
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
20589
20585
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
20590
20586
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -20623,7 +20619,7 @@ var STORAGE_KEY = "conversation";
20623
20619
  var namespaceFor = (source) => {
20624
20620
  const base = `mingo-chat-${source}`;
20625
20621
  const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
20626
- return _optionalChain([auth, 'optionalAccess', _653 => _653.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20622
+ return _optionalChain([auth, 'optionalAccess', _648 => _648.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20627
20623
  };
20628
20624
  function createChatConversationStorage(source) {
20629
20625
  return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
@@ -20735,7 +20731,7 @@ function formatSingularLookupInvocation(cmdId, value) {
20735
20731
  return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
20736
20732
  }
20737
20733
  function extractEntityIdFilter(override, expectedTableId) {
20738
- const f = _optionalChain([override, 'optionalAccess', _654 => _654.entityIdFilter]);
20734
+ const f = _optionalChain([override, 'optionalAccess', _649 => _649.entityIdFilter]);
20739
20735
  if (!f) return null;
20740
20736
  const tableId = typeof f.tableId === "string" ? f.tableId : "";
20741
20737
  const id = typeof f.id === "string" ? f.id : "";
@@ -20774,7 +20770,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
20774
20770
  function buildAutoContinuationDirective(toolName, opts = {}) {
20775
20771
  const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
20776
20772
  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";
20773
+ const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _650 => _650.status, 'optionalAccess', _651 => _651.toUpperCase, 'call', _652 => _652()]) === "CLOSED";
20778
20774
  if (toolName === "create_ticket") {
20779
20775
  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
20776
  }
@@ -20824,7 +20820,7 @@ function useChatHistoryHydration({
20824
20820
  if (cancelled) return;
20825
20821
  if (rows.length === 0) {
20826
20822
  const found = isRecord(body) ? body.found : void 0;
20827
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _658 => _658(conversationId)]);
20823
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _653 => _653(conversationId)]);
20828
20824
  return;
20829
20825
  }
20830
20826
  const hydrated = [];
@@ -20968,7 +20964,7 @@ function useManagedDialogList({
20968
20964
  try {
20969
20965
  await deleteDialogCallback(id);
20970
20966
  removeLocal(id);
20971
- _optionalChain([onDialogRemovedRef, 'access', _659 => _659.current, 'optionalCall', _660 => _660(id, "deleted")]);
20967
+ _optionalChain([onDialogRemovedRef, 'access', _654 => _654.current, 'optionalCall', _655 => _655(id, "deleted")]);
20972
20968
  } catch (err) {
20973
20969
  console.error(`${logTag} deleteDialog failed:`, err);
20974
20970
  throw err;
@@ -20979,7 +20975,7 @@ function useManagedDialogList({
20979
20975
  const renameDialog = _react.useCallback.call(void 0,
20980
20976
  async (id, title) => {
20981
20977
  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]);
20978
+ const previous = _optionalChain([dialogsRef, 'access', _656 => _656.current, 'access', _657 => _657.find, 'call', _658 => _658((d) => d.id === id), 'optionalAccess', _659 => _659.title]);
20983
20979
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
20984
20980
  try {
20985
20981
  await renameDialogCallback(id, title);
@@ -20998,7 +20994,7 @@ function useManagedDialogList({
20998
20994
  try {
20999
20995
  await archiveDialogCallback(id);
21000
20996
  removeLocal(id);
21001
- _optionalChain([onDialogRemovedRef, 'access', _665 => _665.current, 'optionalCall', _666 => _666(id, "archived")]);
20997
+ _optionalChain([onDialogRemovedRef, 'access', _660 => _660.current, 'optionalCall', _661 => _661(id, "archived")]);
21002
20998
  } catch (err) {
21003
20999
  console.error(`${logTag} archiveDialog failed:`, err);
21004
21000
  throw err;
@@ -21090,7 +21086,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21090
21086
  const { active = true } = runtimeOptions;
21091
21087
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
21092
21088
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
21093
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _667 => _667.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21089
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _662 => _662.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21094
21090
  const sendMessageRef = _react.useRef.call(void 0,
21095
21091
  () => Promise.resolve(true)
21096
21092
  );
@@ -21126,7 +21122,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21126
21122
  if (!restoredConversationRef.current) {
21127
21123
  restoredConversationRef.current = true;
21128
21124
  pruneStaleChatConversationStorage(source);
21129
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _668 => _668.load, 'call', _669 => _669(), 'optionalAccess', _670 => _670.conversationId]), () => ( null));
21125
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _663 => _663.load, 'call', _664 => _664(), 'optionalAccess', _665 => _665.conversationId]), () => ( null));
21130
21126
  }
21131
21127
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
21132
21128
  const commitConversationId = _react.useCallback.call(void 0,
@@ -21217,7 +21213,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21217
21213
  const abortControllerRef = _react.useRef.call(void 0, null);
21218
21214
  const switchConversation = _react.useCallback.call(void 0,
21219
21215
  (id) => {
21220
- _optionalChain([abortControllerRef, 'access', _671 => _671.current, 'optionalAccess', _672 => _672.abort, 'call', _673 => _673()]);
21216
+ _optionalChain([abortControllerRef, 'access', _666 => _666.current, 'optionalAccess', _667 => _667.abort, 'call', _668 => _668()]);
21221
21217
  flushDeltas();
21222
21218
  mutate((r) => r.reset());
21223
21219
  hydrationSendCountRef.current = 0;
@@ -21254,8 +21250,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21254
21250
  } = useManagedDialogList({
21255
21251
  autoLoad: active,
21256
21252
  fetchDialogs: fetchActiveDialogs,
21257
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _674 => _674.renameDialog]),
21258
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _675 => _675.archiveDialog]),
21253
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _669 => _669.renameDialog]),
21254
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _670 => _670.archiveDialog]),
21259
21255
  pageSize: 20,
21260
21256
  search: conversationsApi ? dialogSearch : void 0,
21261
21257
  logTag: "[useSseChatAdapter]",
@@ -21319,7 +21315,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21319
21315
  const serverMessage = await readServerErrorMessage(response);
21320
21316
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
21321
21317
  }
21322
- const reader = _optionalChain([response, 'access', _676 => _676.body, 'optionalAccess', _677 => _677.getReader, 'call', _678 => _678()]);
21318
+ const reader = _optionalChain([response, 'access', _671 => _671.body, 'optionalAccess', _672 => _672.getReader, 'call', _673 => _673()]);
21323
21319
  if (!reader) throw new Error("No response body");
21324
21320
  const frameDecoder = createSseFrameDecoder();
21325
21321
  let finished = false;
@@ -21348,7 +21344,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21348
21344
  }
21349
21345
  return true;
21350
21346
  } catch (err) {
21351
- if (_optionalChain([err, 'optionalAccess', _679 => _679.name]) === "AbortError" || ctrl.signal.aborted) {
21347
+ if (_optionalChain([err, 'optionalAccess', _674 => _674.name]) === "AbortError" || ctrl.signal.aborted) {
21352
21348
  return true;
21353
21349
  }
21354
21350
  flushDeltas();
@@ -21384,7 +21380,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21384
21380
  );
21385
21381
  sendMessageRef.current = sendMessage;
21386
21382
  const stopMessage = _react.useCallback.call(void 0, () => {
21387
- _optionalChain([abortControllerRef, 'access', _680 => _680.current, 'optionalAccess', _681 => _681.abort, 'call', _682 => _682()]);
21383
+ _optionalChain([abortControllerRef, 'access', _675 => _675.current, 'optionalAccess', _676 => _676.abort, 'call', _677 => _677()]);
21388
21384
  flushDeltas();
21389
21385
  mutate((r) => r.setPhase("idle"));
21390
21386
  }, [mutate, flushDeltas]);
@@ -21420,7 +21416,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21420
21416
  let sendIdx = -1;
21421
21417
  return state.messages.map((m) => {
21422
21418
  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("")]), () => ( ""));
21419
+ 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
21420
  let sources2;
21425
21421
  let scrollAnchor;
21426
21422
  if (m.role === "user" && !m.hidden) {
@@ -21429,7 +21425,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21429
21425
  if (m.role === "assistant") {
21430
21426
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
21431
21427
  sources2 = sourcesMap.get(lookupIdx);
21432
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _689 => _689.get, 'call', _690 => _690(lookupIdx), 'optionalAccess', _691 => _691.scrollAnchor]), () => ( void 0));
21428
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _684 => _684.get, 'call', _685 => _685(lookupIdx), 'optionalAccess', _686 => _686.scrollAnchor]), () => ( void 0));
21433
21429
  }
21434
21430
  return {
21435
21431
  id: m.id,
@@ -21456,7 +21452,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21456
21452
  );
21457
21453
  return;
21458
21454
  }
21459
- const refSlug = typeof _optionalChain([reference, 'access', _692 => _692.metadata, 'optionalAccess', _693 => _693.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21455
+ const refSlug = typeof _optionalChain([reference, 'access', _687 => _687.metadata, 'optionalAccess', _688 => _688.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21460
21456
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
21461
21457
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
21462
21458
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -21502,18 +21498,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21502
21498
  /** True while the mount-time rebuild from the server transcript runs. */
21503
21499
  isHydratingHistory,
21504
21500
  /** 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)),
21501
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _689 => _689.provider]), () => ( null)),
21502
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _690 => _690.modelLabel]), () => ( null)),
21503
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _691 => _691.contextWindowMaxTokens]), () => ( null)),
21508
21504
  /** Input tokens (known after server's message_start frame; null until). */
21509
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _697 => _697.inputTokens]), () => ( null)),
21505
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _692 => _692.inputTokens]), () => ( null)),
21510
21506
  /** Output tokens (known only after server's trailing usage frame). */
21511
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _698 => _698.outputTokens]), () => ( null)),
21507
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _693 => _693.outputTokens]), () => ( null)),
21512
21508
  /** Cache hit % (read / total-input × 100). null during streaming. */
21513
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _699 => _699.cacheHitRatePct]), () => ( null)),
21509
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _694 => _694.cacheHitRatePct]), () => ( null)),
21514
21510
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
21515
21511
  * token counts). null until the trailing usage frame lands. */
21516
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _700 => _700.breakdown]), () => ( null)),
21512
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _695 => _695.breakdown]), () => ( null)),
21517
21513
  // ─── Dialog management ───────────────────────────────────────────────
21518
21514
  // With `chatConversationsUrl` the server transcript store IS the dialog
21519
21515
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -21768,7 +21764,7 @@ function decodeNatsChunk(chunk) {
21768
21764
  userId: typeof data.userId === "string" ? data.userId : void 0,
21769
21765
  // Wire shape carries no label; fall back to the id (parity with
21770
21766
  // 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) => ({
21767
+ 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
21768
  type: it.type,
21773
21769
  id: it.id,
21774
21770
  label: it.id
@@ -21859,7 +21855,7 @@ function extractIncompleteMessageState(lastMessage) {
21859
21855
  }
21860
21856
  break;
21861
21857
  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");
21858
+ 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
21859
  if (segment.status !== "rejected" && !allDone) {
21864
21860
  hasIncompleteState = true;
21865
21861
  }
@@ -21921,11 +21917,11 @@ function extractIncompleteMessageState(lastMessage) {
21921
21917
  function extractIncompleteTailState(messages) {
21922
21918
  if (!messages || messages.length === 0) return void 0;
21923
21919
  let start = messages.length;
21924
- while (start > 0 && _optionalChain([messages, 'access', _707 => _707[start - 1], 'optionalAccess', _708 => _708.role]) === "assistant") start -= 1;
21920
+ while (start > 0 && _optionalChain([messages, 'access', _702 => _702[start - 1], 'optionalAccess', _703 => _703.role]) === "assistant") start -= 1;
21925
21921
  if (start === messages.length) return void 0;
21926
21922
  const segments = [];
21927
21923
  for (let i = start; i < messages.length; i += 1) {
21928
- const content = _optionalChain([messages, 'access', _709 => _709[i], 'optionalAccess', _710 => _710.content]);
21924
+ const content = _optionalChain([messages, 'access', _704 => _704[i], 'optionalAccess', _705 => _705.content]);
21929
21925
  if (Array.isArray(content)) segments.push(...content);
21930
21926
  }
21931
21927
  if (segments.length === 0) return void 0;
@@ -21938,15 +21934,15 @@ function extractIncompleteTailState(messages) {
21938
21934
 
21939
21935
  // src/components/chat/utils/process-historical-messages.ts
21940
21936
  function getOwnerDisplayName(owner) {
21941
- if (_optionalChain([owner, 'optionalAccess', _711 => _711.type]) === OWNER_TYPE.ADMIN && owner.user) {
21937
+ if (_optionalChain([owner, 'optionalAccess', _706 => _706.type]) === OWNER_TYPE.ADMIN && owner.user) {
21942
21938
  const { firstName, lastName } = owner.user;
21943
21939
  const name = [firstName, lastName].filter(Boolean).join(" ");
21944
21940
  if (name) return name;
21945
21941
  }
21946
- return _optionalChain([owner, 'optionalAccess', _712 => _712.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21942
+ return _optionalChain([owner, 'optionalAccess', _707 => _707.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21947
21943
  }
21948
21944
  function getOwnerAvatar(owner) {
21949
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _713 => _713.user, 'optionalAccess', _714 => _714.image, 'optionalAccess', _715 => _715.imageUrl]), () => ( void 0));
21945
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _708 => _708.user, 'optionalAccess', _709 => _709.image, 'optionalAccess', _710 => _710.imageUrl]), () => ( void 0));
21950
21946
  }
21951
21947
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
21952
21948
  messageDataArray.forEach((data) => {
@@ -22136,7 +22132,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22136
22132
  event.offerId,
22137
22133
  event.text,
22138
22134
  event.origin,
22139
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _716 => _716[event.offerId]]), () => ( "pending"))
22135
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _711 => _711[event.offerId]]), () => ( "pending"))
22140
22136
  );
22141
22137
  break;
22142
22138
  case "ticket-escalated":
@@ -22170,7 +22166,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22170
22166
  );
22171
22167
  break;
22172
22168
  case "escalation-offer-resolved":
22173
- _optionalChain([offerResolutions, 'optionalAccess', _717 => _717.set, 'call', _718 => _718(event.offerId, {
22169
+ _optionalChain([offerResolutions, 'optionalAccess', _712 => _712.set, 'call', _713 => _713(event.offerId, {
22174
22170
  status: event.status,
22175
22171
  resolvedByName: event.resolvedByName
22176
22172
  })]);
@@ -22234,7 +22230,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22234
22230
  }
22235
22231
  }
22236
22232
  } else {
22237
- _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.set, 'call', _720 => _720(event.requestId, {
22233
+ _optionalChain([escalatedApprovals, 'optionalAccess', _714 => _714.set, 'call', _715 => _715(event.requestId, {
22238
22234
  command: event.command || "",
22239
22235
  explanation: event.explanation,
22240
22236
  approvalType,
@@ -22249,8 +22245,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22249
22245
  const existingStatus = approvalStatuses[requestId];
22250
22246
  const status = existingStatus || event.status;
22251
22247
  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) {
22248
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _716 => _716.get, 'call', _717 => _717(requestId)]);
22249
+ if (_optionalChain([escalatedData, 'optionalAccess', _718 => _718.toolCalls]) && escalatedData.toolCalls.length > 0) {
22254
22250
  if (batchApprovalsEnabled) {
22255
22251
  accumulator.addApprovalBatch(
22256
22252
  requestId,
@@ -22272,7 +22268,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22272
22268
  );
22273
22269
  }
22274
22270
  }
22275
- _optionalChain([escalatedApprovals, 'optionalAccess', _724 => _724.delete, 'call', _725 => _725(requestId)]);
22271
+ _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.delete, 'call', _720 => _720(requestId)]);
22276
22272
  break;
22277
22273
  }
22278
22274
  if (escalatedData) {
@@ -22281,7 +22277,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22281
22277
  explanation: escalatedData.explanation,
22282
22278
  approvalType: escalatedData.approvalType
22283
22279
  });
22284
- _optionalChain([escalatedApprovals, 'optionalAccess', _726 => _726.delete, 'call', _727 => _727(requestId)]);
22280
+ _optionalChain([escalatedApprovals, 'optionalAccess', _721 => _721.delete, 'call', _722 => _722(requestId)]);
22285
22281
  }
22286
22282
  const before = accumulator.getSegments();
22287
22283
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -22373,14 +22369,14 @@ function processHistoricalMessages(messages, options = {}) {
22373
22369
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
22374
22370
  return;
22375
22371
  }
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;
22372
+ 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
22373
  if (isUserMessage) {
22378
22374
  flushAssistantMessage();
22379
- const userAuthorType = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22375
+ const userAuthorType = _optionalChain([msg, 'access', _727 => _727.owner, 'optionalAccess', _728 => _728.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22380
22376
  messageDataArray.forEach((data) => {
22381
22377
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
22382
22378
  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;
22379
+ 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
22380
  processedMessages.push({
22385
22381
  id: msg.id,
22386
22382
  role: "user",
@@ -22427,7 +22423,7 @@ function processHistoricalMessages(messages, options = {}) {
22427
22423
  });
22428
22424
  const nextMsg = messages[index + 1];
22429
22425
  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);
22426
+ 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
22427
  if (isLastMessage || nextIsFromUser) {
22432
22428
  flushAssistantMessage();
22433
22429
  }
@@ -22810,7 +22806,7 @@ function useNatsChatAdapter(config, options = {}) {
22810
22806
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
22811
22807
  const sendMessage = _react.useCallback.call(void 0,
22812
22808
  async (text2, sendOptions) => {
22813
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _740 => _740.hidden]), () => ( false));
22809
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _735 => _735.hidden]), () => ( false));
22814
22810
  mutate((r) => r.pushOptimisticSend(text2, hidden));
22815
22811
  await publishUserMessage(text2, { hidden, dialogId });
22816
22812
  },
@@ -22903,11 +22899,11 @@ function useNatsChatAdapter(config, options = {}) {
22903
22899
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
22904
22900
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
22905
22901
  // 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)),
22902
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _736 => _736.provider]), () => ( modelProvider)), () => ( null)),
22903
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _737 => _737.modelLabel]), () => ( modelLabel)), () => ( null)),
22904
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _738 => _738.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _739 => _739.contextWindowMaxTokens]))), () => ( null)),
22905
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _740 => _740.inputTokensSize]), () => ( null)),
22906
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _741 => _741.outputTokensSize]), () => ( null)),
22911
22907
  currentCacheHitRatePct: null,
22912
22908
  currentUsageBreakdown: null,
22913
22909
  // Dialog management
@@ -23029,7 +23025,7 @@ function useUnifiedChat(options) {
23029
23025
  []
23030
23026
  );
23031
23027
  const displayRefForward = _react.useCallback.call(void 0,
23032
- (ref) => _optionalChain([activeStateRef, 'access', _747 => _747.current, 'access', _748 => _748.displayRef, 'optionalCall', _749 => _749(ref)]),
23028
+ (ref) => _optionalChain([activeStateRef, 'access', _742 => _742.current, 'access', _743 => _743.displayRef, 'optionalCall', _744 => _744(ref)]),
23033
23029
  []
23034
23030
  );
23035
23031
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -23039,7 +23035,7 @@ function useUnifiedChat(options) {
23039
23035
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
23040
23036
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
23041
23037
  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)]), []);
23038
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _745 => _745.current, 'access', _746 => _746.setDialogScope, 'optionalCall', _747 => _747(scope)]), []);
23043
23039
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
23044
23040
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
23045
23041
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -23147,19 +23143,19 @@ function turnRequestKeys(content) {
23147
23143
  if (!Array.isArray(content)) return keys;
23148
23144
  for (const seg of content) {
23149
23145
  if (seg.type === "tool_execution") {
23150
- const id = _optionalChain([seg, 'access', _753 => _753.data, 'optionalAccess', _754 => _754.toolExecutionRequestId]);
23146
+ const id = _optionalChain([seg, 'access', _748 => _748.data, 'optionalAccess', _749 => _749.toolExecutionRequestId]);
23151
23147
  if (id) keys.add(id);
23152
23148
  } else if (seg.type === "approval_request") {
23153
- const id = _optionalChain([seg, 'access', _755 => _755.data, 'optionalAccess', _756 => _756.requestId]);
23149
+ const id = _optionalChain([seg, 'access', _750 => _750.data, 'optionalAccess', _751 => _751.requestId]);
23154
23150
  if (id) keys.add(id);
23155
23151
  } else if (seg.type === "escalation_offer") {
23156
- const id = _optionalChain([seg, 'access', _757 => _757.data, 'optionalAccess', _758 => _758.offerId]);
23152
+ const id = _optionalChain([seg, 'access', _752 => _752.data, 'optionalAccess', _753 => _753.offerId]);
23157
23153
  if (id) keys.add(id);
23158
23154
  } else if (seg.type === "approval_batch") {
23159
23155
  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);
23156
+ if (_optionalChain([data, 'optionalAccess', _754 => _754.approvalRequestId])) keys.add(data.approvalRequestId);
23157
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _755 => _755.toolCalls]), () => ( []))) {
23158
+ if (_optionalChain([call, 'optionalAccess', _756 => _756.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23163
23159
  }
23164
23160
  }
23165
23161
  }
@@ -23243,18 +23239,18 @@ function mergeHistoryWithRealtime(input) {
23243
23239
  }
23244
23240
  }
23245
23241
  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;
23242
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _757 => _757.role]) === "assistant" ? trailing : null;
23243
+ 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
23244
  let processedToUse = processedHistory;
23249
23245
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
23250
23246
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
23251
23247
  if (historyBatchId) {
23252
23248
  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)
23249
+ (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
23250
  );
23255
23251
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
23256
23252
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
23257
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _770 => _770.content])) ? historyTrailingAssistant.content.length : 0;
23253
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _765 => _765.content])) ? historyTrailingAssistant.content.length : 0;
23258
23254
  const realtimeSize = existingWithSameBatch.content.length;
23259
23255
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
23260
23256
  processedToUse = processedHistory.slice(0, -1);
@@ -23287,9 +23283,9 @@ function mergeHistoryWithRealtime(input) {
23287
23283
  const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
23288
23284
  const windowSignals = collectTwinSignals(processedToUse);
23289
23285
  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)));
23286
+ const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _766 => _766.has, 'call', _767 => _767(m.id)]), () => ( false)));
23291
23287
  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;
23288
+ const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _768 => _768.timestamp, 'optionalAccess', _769 => _769.getTime, 'call', _770 => _770()]), () => ( 0))) <= historyFetchedAt;
23293
23289
  let lastOlderPersistedIndex = -1;
23294
23290
  if (firstWindowIndex < 0) {
23295
23291
  for (const [index, m] of existingMessages.entries()) {
@@ -23307,7 +23303,7 @@ function mergeHistoryWithRealtime(input) {
23307
23303
  } else if (pm.role === "assistant") {
23308
23304
  windowHasUnstampedAssistant = true;
23309
23305
  }
23310
- const time = _optionalChain([pm, 'access', _776 => _776.timestamp, 'optionalAccess', _777 => _777.getTime, 'call', _778 => _778()]);
23306
+ const time = _optionalChain([pm, 'access', _771 => _771.timestamp, 'optionalAccess', _772 => _772.getTime, 'call', _773 => _773()]);
23311
23307
  if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
23312
23308
  }
23313
23309
  const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
@@ -23325,14 +23321,14 @@ function mergeHistoryWithRealtime(input) {
23325
23321
  const verdict = twinVerdict(windowSignals, m);
23326
23322
  return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
23327
23323
  }
23328
- const time = _optionalChain([m, 'access', _779 => _779.timestamp, 'optionalAccess', _780 => _780.getTime, 'call', _781 => _781()]);
23324
+ const time = _optionalChain([m, 'access', _774 => _774.timestamp, 'optionalAccess', _775 => _775.getTime, 'call', _776 => _776()]);
23329
23325
  if (typeof time !== "number" || time > historyFetchedAt) return false;
23330
23326
  if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
23331
23327
  return twinVerdict(windowSignals, m) === "distinct";
23332
23328
  };
23333
23329
  const keepRealtime = (m) => {
23334
23330
  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;
23331
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _777 => _777.timestamp, 'optionalAccess', _778 => _778.getTime, 'call', _779 => _779()]), () => ( 0))) <= historyFetchedAt;
23336
23332
  return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
23337
23333
  }
23338
23334
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -23356,7 +23352,7 @@ function mergeHistoryWithRealtime(input) {
23356
23352
  } else if (typeof m.streamSeq === "number") {
23357
23353
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
23358
23354
  } else {
23359
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _785 => _785.timestamp, 'optionalAccess', _786 => _786.getTime, 'call', _787 => _787()]), () => ( 0))) <= historyFetchedAt;
23355
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _780 => _780.timestamp, 'optionalAccess', _781 => _781.getTime, 'call', _782 => _782()]), () => ( 0))) <= historyFetchedAt;
23360
23356
  }
23361
23357
  if (covered) return false;
23362
23358
  }
@@ -23465,7 +23461,7 @@ function normalizeHistoricalMessageData(md) {
23465
23461
  function isHistoricalUserTurn(m) {
23466
23462
  return !!m.owner;
23467
23463
  }
23468
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _788 => _788.type]) === "TEXT" && typeof d.text === "string";
23464
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _783 => _783.type]) === "TEXT" && typeof d.text === "string";
23469
23465
  var THINK_MS = 550;
23470
23466
  var TOKEN_MS = 55;
23471
23467
  var USER_MS = 480;
@@ -24098,7 +24094,7 @@ function useChatDialogManager({
24098
24094
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
24099
24095
  if (restoreTarget) {
24100
24096
  try {
24101
- await _optionalChain([unarchiveDialog, 'optionalCall', _789 => _789(restoreTarget.id)]);
24097
+ await _optionalChain([unarchiveDialog, 'optionalCall', _784 => _784(restoreTarget.id)]);
24102
24098
  } catch (err) {
24103
24099
  console.error("[useChatDialogManager] unarchive failed:", err);
24104
24100
  return;
@@ -24347,7 +24343,7 @@ function SourceChip({
24347
24343
  const Icon = cta.icon;
24348
24344
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
24349
24345
  const chipClass = chatChipClass({ tone: "secondary" });
24350
- const decideTab = (href, targetPlatform) => _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24346
+ const decideTab = (href, targetPlatform) => _chunk3HSRNCDVcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24351
24347
  if (src.items && src.items.length > 0) {
24352
24348
  const dropdownItems = src.items.map((item) => {
24353
24349
  const itemCta = resolveSourceRowCTA(
@@ -24436,7 +24432,7 @@ function SourceChip({
24436
24432
  "a",
24437
24433
  {
24438
24434
  href: resolvedHref,
24439
- ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24435
+ ..._chunk3HSRNCDVcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24440
24436
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24441
24437
  className: chipClass,
24442
24438
  children: chipBody(src.name)
@@ -24452,7 +24448,7 @@ function SourceChip({
24452
24448
  "a",
24453
24449
  {
24454
24450
  href: resolvedHref,
24455
- ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24451
+ ..._chunk3HSRNCDVcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24456
24452
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24457
24453
  className: chipClass,
24458
24454
  title: displayName,
@@ -24644,7 +24640,7 @@ function EmbeddableChatInner({
24644
24640
  }),
24645
24641
  [commandsUrl]
24646
24642
  );
24647
- 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;
24643
+ 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;
24648
24644
  const effectiveModes = _react.useMemo.call(void 0, () => {
24649
24645
  if (modes) return modes;
24650
24646
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -24659,7 +24655,7 @@ function EmbeddableChatInner({
24659
24655
  if (controlledActiveMode === void 0) {
24660
24656
  setUncontrolledActiveMode(next);
24661
24657
  }
24662
- _optionalChain([onActiveModeChange, 'optionalCall', _797 => _797(next)]);
24658
+ _optionalChain([onActiveModeChange, 'optionalCall', _792 => _792(next)]);
24663
24659
  },
24664
24660
  [controlledActiveMode, onActiveModeChange]
24665
24661
  );
@@ -24686,7 +24682,7 @@ function EmbeddableChatInner({
24686
24682
  );
24687
24683
  const effectiveAssistantName = emptyStateConfig.name;
24688
24684
  const effectiveAssistantIcon = emptyStateConfig.icon;
24689
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _798 => _798.title]) === "string" ? guideWelcome.title : null)));
24685
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _793 => _793.title]) === "string" ? guideWelcome.title : null)));
24690
24686
  const {
24691
24687
  messages: rawMessages,
24692
24688
  isLoading: chatLoading,
@@ -24729,8 +24725,8 @@ function EmbeddableChatInner({
24729
24725
  const mingoCaps = _react.useMemo.call(void 0,
24730
24726
  () => ({
24731
24727
  ...dialogCapabilities,
24732
- canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _799 => _799.canRename]), () => ( false)),
24733
- canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _800 => _800.canArchive]), () => ( false))
24728
+ canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _794 => _794.canRename]), () => ( false)),
24729
+ canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _795 => _795.canArchive]), () => ( false))
24734
24730
  }),
24735
24731
  [dialogCapabilities]
24736
24732
  );
@@ -24745,7 +24741,7 @@ function EmbeddableChatInner({
24745
24741
  void sendMessage(guidePendingPrompt).catch((err) => {
24746
24742
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
24747
24743
  });
24748
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _801 => _801()]);
24744
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _796 => _796()]);
24749
24745
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
24750
24746
  const {
24751
24747
  attachments: stagedAttachments,
@@ -24756,7 +24752,7 @@ function EmbeddableChatInner({
24756
24752
  clear: clearAttachments
24757
24753
  } = useChatAttachments();
24758
24754
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
24759
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _802 => _802.maxItems]), () => ( 10));
24755
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _797 => _797.maxItems]), () => ( 10));
24760
24756
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
24761
24757
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
24762
24758
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -24777,10 +24773,10 @@ function EmbeddableChatInner({
24777
24773
  }, [activeDialogId, activeMode]);
24778
24774
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
24779
24775
  const m = /* @__PURE__ */ new Map();
24780
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _803 => _803.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24776
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _798 => _798.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24781
24777
  return m;
24782
- }, [_optionalChain([contextPicker, 'optionalAccess', _804 => _804.entityTypes])]);
24783
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _805 => _805.entityTypes]);
24778
+ }, [_optionalChain([contextPicker, 'optionalAccess', _799 => _799.entityTypes])]);
24779
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _800 => _800.entityTypes]);
24784
24780
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
24785
24781
  const byType = /* @__PURE__ */ new Map();
24786
24782
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -24792,7 +24788,7 @@ function EmbeddableChatInner({
24792
24788
  if (mentionActiveRef.current) {
24793
24789
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
24794
24790
  if (contextItems.length >= contextMaxItems) return;
24795
- _optionalChain([chatInputRef, 'access', _806 => _806.current, 'optionalAccess', _807 => _807.commitMention, 'call', _808 => _808(mentionTokenOf(key, mentionMarkerByType), {
24791
+ _optionalChain([chatInputRef, 'access', _801 => _801.current, 'optionalAccess', _802 => _802.commitMention, 'call', _803 => _803(mentionTokenOf(key, mentionMarkerByType), {
24796
24792
  label: item.label,
24797
24793
  icon: resolveContextIcon(item)
24798
24794
  })]);
@@ -24815,9 +24811,9 @@ function EmbeddableChatInner({
24815
24811
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
24816
24812
  if (mentionKeysRef.current.has(key)) {
24817
24813
  mentionKeysRef.current.delete(key);
24818
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _809 => _809.current, 'optionalAccess', _810 => _810.getValue, 'call', _811 => _811()]), () => ( ""));
24814
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _804 => _804.current, 'optionalAccess', _805 => _805.getValue, 'call', _806 => _806()]), () => ( ""));
24819
24815
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
24820
- _optionalChain([chatInputRef, 'access', _812 => _812.current, 'optionalAccess', _813 => _813.setValue, 'call', _814 => _814(next)]);
24816
+ _optionalChain([chatInputRef, 'access', _807 => _807.current, 'optionalAccess', _808 => _808.setValue, 'call', _809 => _809(next)]);
24821
24817
  }
24822
24818
  },
24823
24819
  [mentionMarkerByType]
@@ -24839,7 +24835,7 @@ function EmbeddableChatInner({
24839
24835
  }, []);
24840
24836
  const closeContextPicker = _react.useCallback.call(void 0, () => {
24841
24837
  if (mentionActiveRef.current) {
24842
- _optionalChain([chatInputRef, 'access', _815 => _815.current, 'optionalAccess', _816 => _816.removeMentionTrigger, 'call', _817 => _817()]);
24838
+ _optionalChain([chatInputRef, 'access', _810 => _810.current, 'optionalAccess', _811 => _811.removeMentionTrigger, 'call', _812 => _812()]);
24843
24839
  }
24844
24840
  setContextPickerOpen(false);
24845
24841
  setMentionQuery(null);
@@ -24873,8 +24869,8 @@ function EmbeddableChatInner({
24873
24869
  [effectiveAssistantIcon]
24874
24870
  );
24875
24871
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
24876
- 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;
24877
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _823 => _823.avatarUrl, 'optionalAccess', _824 => _824.trim, 'call', _825 => _825()]) || void 0 : void 0;
24872
+ 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;
24873
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _818 => _818.avatarUrl, 'optionalAccess', _819 => _819.trim, 'call', _820 => _820()]) || void 0 : void 0;
24878
24874
  const messages = _react.useMemo.call(void 0, () => {
24879
24875
  const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
24880
24876
  const mapped = rawMessages.map((m) => mapHostMessage(m, options));
@@ -25048,7 +25044,7 @@ function EmbeddableChatInner({
25048
25044
  _react.useEffect.call(void 0, () => {
25049
25045
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
25050
25046
  const ro = new ResizeObserver((entries) => {
25051
- const w = _optionalChain([entries, 'access', _826 => _826[0], 'optionalAccess', _827 => _827.contentRect, 'optionalAccess', _828 => _828.width]);
25047
+ const w = _optionalChain([entries, 'access', _821 => _821[0], 'optionalAccess', _822 => _822.contentRect, 'optionalAccess', _823 => _823.width]);
25052
25048
  if (typeof w === "number") setPanelWidth(w);
25053
25049
  });
25054
25050
  ro.observe(panelBoundary);
@@ -25092,17 +25088,17 @@ function EmbeddableChatInner({
25092
25088
  const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
25093
25089
  const headerShowBack = hasConversation || guideCanReturnToMingo;
25094
25090
  const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
25095
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _829 => _829.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25091
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _824 => _824.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25096
25092
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
25097
25093
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
25098
25094
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
25099
25095
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
25100
25096
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
25101
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _830 => _830.onCopyLink, 'optionalCall', _831 => _831(activeDialog)]) : void 0;
25097
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _825 => _825.onCopyLink, 'optionalCall', _826 => _826(activeDialog)]) : void 0;
25102
25098
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
25103
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _832 => _832.owner]) : void 0;
25104
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _833 => _833.name, 'optionalAccess', _834 => _834.trim, 'call', _835 => _835()]) || headerUserName;
25105
- 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;
25099
+ const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _827 => _827.owner]) : void 0;
25100
+ const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _828 => _828.name, 'optionalAccess', _829 => _829.trim, 'call', _830 => _830()]) || headerUserName;
25101
+ 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;
25106
25102
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
25107
25103
  const handleNewChat = _react.useCallback.call(void 0, () => {
25108
25104
  resetToNewChat();
@@ -25248,7 +25244,7 @@ function EmbeddableChatInner({
25248
25244
  headerAvatar ? (
25249
25245
  // Owner avatar at the title cell's right edge (Figma 113:63273).
25250
25246
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25251
- _chunk2NRLRRMRcjs.SquareAvatar,
25247
+ _chunk3HSRNCDVcjs.SquareAvatar,
25252
25248
  {
25253
25249
  variant: "round",
25254
25250
  sizePx: 32,
@@ -25420,9 +25416,9 @@ function EmbeddableChatInner({
25420
25416
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
25421
25417
  subtitleLoading: emptyStateLoading,
25422
25418
  ...guideWelcome,
25423
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _844 => _844.title]))),
25424
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _845 => _845.icon]))),
25425
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _846 => _846.quickActions]), () => ( guideSuggestedActions)),
25419
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _839 => _839.title]))),
25420
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _840 => _840.icon]))),
25421
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _841 => _841.quickActions]), () => ( guideSuggestedActions)),
25426
25422
  onQuickAction: (action) => {
25427
25423
  setQuickActionPreview(null);
25428
25424
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -25496,8 +25492,8 @@ function EmbeddableChatInner({
25496
25492
  selectedContextItems: contextItems,
25497
25493
  onToggleContextItem: toggleContextItem,
25498
25494
  onRemoveContextItem: removeContextItem,
25499
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _847 => _847.items]),
25500
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _848 => _848.onRemove]),
25495
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _842 => _842.items]),
25496
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _843 => _843.onRemove]),
25501
25497
  contextPickerOpen,
25502
25498
  onOpenContextPicker: openContextPicker,
25503
25499
  onCloseContextPicker: closeContextPicker,
@@ -25967,4 +25963,4 @@ function EmbeddableChatInner({
25967
25963
 
25968
25964
 
25969
25965
  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;
25970
- //# sourceMappingURL=chunk-2DJH6KHA.cjs.map
25966
+ //# sourceMappingURL=chunk-B46Q4DTN.cjs.map