@flamingo-stack/openframe-frontend-core 0.0.619 → 0.0.620

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 (135) hide show
  1. package/dist/{chunk-S44BHDOI.js → chunk-43JQ3SJS.js} +3 -2
  2. package/dist/{chunk-S44BHDOI.js.map → chunk-43JQ3SJS.js.map} +1 -1
  3. package/dist/{chunk-UWPZT3FY.cjs → chunk-4NKJRJU4.cjs} +6 -6
  4. package/dist/{chunk-UWPZT3FY.cjs.map → chunk-4NKJRJU4.cjs.map} +1 -1
  5. package/dist/{chunk-HPIRQWNK.js → chunk-4SH2L3HO.js} +3 -3
  6. package/dist/{chunk-3Z5ZIKDX.js → chunk-5AB6QLIQ.js} +3 -3
  7. package/dist/{chunk-QVOS4BPC.cjs → chunk-5NYMTTUB.cjs} +57 -57
  8. package/dist/{chunk-QVOS4BPC.cjs.map → chunk-5NYMTTUB.cjs.map} +1 -1
  9. package/dist/{chunk-65SWJSQX.js → chunk-7FPWMX26.js} +39 -7
  10. package/dist/chunk-7FPWMX26.js.map +1 -0
  11. package/dist/{chunk-JA2SIJ7T.js → chunk-BR5PVFWG.js} +4 -4
  12. package/dist/{chunk-OD4JKGQG.js → chunk-CKH4SLD5.js} +6 -6
  13. package/dist/{chunk-EYKTKDRK.cjs → chunk-CS7MVDUF.cjs} +3 -2
  14. package/dist/chunk-CS7MVDUF.cjs.map +1 -0
  15. package/dist/{chunk-U7MQS4CR.cjs → chunk-CSQZMK3O.cjs} +80 -80
  16. package/dist/{chunk-U7MQS4CR.cjs.map → chunk-CSQZMK3O.cjs.map} +1 -1
  17. package/dist/{chunk-ZPJ6KYAW.js → chunk-DJVN7IW6.js} +3 -3
  18. package/dist/{chunk-M4V2O2MT.cjs → chunk-ECOJUPXO.cjs} +10 -10
  19. package/dist/{chunk-M4V2O2MT.cjs.map → chunk-ECOJUPXO.cjs.map} +1 -1
  20. package/dist/{chunk-P3I5KY4A.cjs → chunk-FCMCCPQI.cjs} +20 -20
  21. package/dist/{chunk-P3I5KY4A.cjs.map → chunk-FCMCCPQI.cjs.map} +1 -1
  22. package/dist/{chunk-5DUTXG6P.js → chunk-G6LYVK64.js} +3 -3
  23. package/dist/{chunk-I7RWVDN4.js → chunk-GMBETTTE.js} +5 -5
  24. package/dist/{chunk-RTC3H5RW.js → chunk-GZFVTFMU.js} +4 -4
  25. package/dist/{chunk-GNWKLE7O.cjs → chunk-HC6FZJMM.cjs} +32 -32
  26. package/dist/{chunk-GNWKLE7O.cjs.map → chunk-HC6FZJMM.cjs.map} +1 -1
  27. package/dist/{chunk-XRWY5ETC.cjs → chunk-IVFU4RFK.cjs} +22 -22
  28. package/dist/{chunk-XRWY5ETC.cjs.map → chunk-IVFU4RFK.cjs.map} +1 -1
  29. package/dist/{chunk-MJRXGAXS.js → chunk-KLAL4FTU.js} +5 -5
  30. package/dist/{chunk-EIFU6N5L.cjs → chunk-KMWB52KV.cjs} +29 -29
  31. package/dist/{chunk-EIFU6N5L.cjs.map → chunk-KMWB52KV.cjs.map} +1 -1
  32. package/dist/{chunk-3BNNYHP2.js → chunk-LNF5W3QJ.js} +3 -3
  33. package/dist/{chunk-J27HVNT2.js → chunk-POSO6GYC.js} +3 -3
  34. package/dist/{chunk-UP2OB7RI.cjs → chunk-PTANIWHA.cjs} +11 -11
  35. package/dist/{chunk-UP2OB7RI.cjs.map → chunk-PTANIWHA.cjs.map} +1 -1
  36. package/dist/{chunk-AU2Q75HU.cjs → chunk-RBV63HZO.cjs} +6 -6
  37. package/dist/{chunk-AU2Q75HU.cjs.map → chunk-RBV63HZO.cjs.map} +1 -1
  38. package/dist/{chunk-YNA7ZCDS.cjs → chunk-RSGFPFSM.cjs} +28 -28
  39. package/dist/{chunk-YNA7ZCDS.cjs.map → chunk-RSGFPFSM.cjs.map} +1 -1
  40. package/dist/{chunk-HF4EZICZ.cjs → chunk-SGAMQ4G7.cjs} +3 -3
  41. package/dist/{chunk-HF4EZICZ.cjs.map → chunk-SGAMQ4G7.cjs.map} +1 -1
  42. package/dist/{chunk-4ZGUSO7M.cjs → chunk-T5ZKUSVJ.cjs} +5 -5
  43. package/dist/{chunk-4ZGUSO7M.cjs.map → chunk-T5ZKUSVJ.cjs.map} +1 -1
  44. package/dist/{chunk-D4ARG53E.js → chunk-T7FTSJM2.js} +6 -6
  45. package/dist/{chunk-7HWVD42H.js → chunk-TMGTVVE2.js} +2 -2
  46. package/dist/{chunk-SKRI6QJ5.js → chunk-UY4EFV3P.js} +2 -2
  47. package/dist/{chunk-GAPXVAS6.cjs → chunk-VRN27OMD.cjs} +400 -368
  48. package/dist/chunk-VRN27OMD.cjs.map +1 -0
  49. package/dist/{chunk-JBXNDB5U.js → chunk-XGVWMJQD.js} +7 -7
  50. package/dist/{chunk-NOW7NGUH.cjs → chunk-YKHVTESH.cjs} +15 -15
  51. package/dist/{chunk-NOW7NGUH.cjs.map → chunk-YKHVTESH.cjs.map} +1 -1
  52. package/dist/{chunk-KQDGZS3U.cjs → chunk-Z5OZCZYH.cjs} +33 -33
  53. package/dist/{chunk-KQDGZS3U.cjs.map → chunk-Z5OZCZYH.cjs.map} +1 -1
  54. package/dist/{chunk-LPGBA4UZ.js → chunk-ZBXPNBKB.js} +3 -3
  55. package/dist/{chunk-DXR23SLZ.cjs → chunk-ZLILFOPN.cjs} +198 -198
  56. package/dist/{chunk-DXR23SLZ.cjs.map → chunk-ZLILFOPN.cjs.map} +1 -1
  57. package/dist/components/case-studies/index.cjs +10 -10
  58. package/dist/components/case-studies/index.js +4 -4
  59. package/dist/components/chat/entity-cards/dispatch.d.ts +6 -0
  60. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  61. package/dist/components/chat/entity-cards/index.d.ts +1 -1
  62. package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
  63. package/dist/components/chat/index.cjs +5 -3
  64. package/dist/components/chat/index.cjs.map +1 -1
  65. package/dist/components/chat/index.js +4 -2
  66. package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
  67. package/dist/components/contact/index.cjs +5 -5
  68. package/dist/components/contact/index.js +4 -4
  69. package/dist/components/docs/index.cjs +8 -8
  70. package/dist/components/docs/index.js +7 -7
  71. package/dist/components/embeds/index.cjs +5 -5
  72. package/dist/components/embeds/index.js +4 -4
  73. package/dist/components/faq/index.cjs +5 -5
  74. package/dist/components/faq/index.js +4 -4
  75. package/dist/components/features/index.cjs +4 -4
  76. package/dist/components/features/index.js +3 -3
  77. package/dist/components/help-center-pages/index.cjs +24 -24
  78. package/dist/components/help-center-pages/index.js +15 -15
  79. package/dist/components/index.cjs +55 -53
  80. package/dist/components/index.cjs.map +1 -1
  81. package/dist/components/index.js +17 -15
  82. package/dist/components/index.js.map +1 -1
  83. package/dist/components/meeting-scheduler/index.cjs +34 -34
  84. package/dist/components/meeting-scheduler/index.js +3 -3
  85. package/dist/components/navigation/index.cjs +7 -7
  86. package/dist/components/navigation/index.js +6 -6
  87. package/dist/components/onboarding-guides/index.cjs +7 -7
  88. package/dist/components/onboarding-guides/index.js +6 -6
  89. package/dist/components/related-content/index.cjs +3 -3
  90. package/dist/components/related-content/index.js +2 -2
  91. package/dist/components/tickets/index.cjs +8 -8
  92. package/dist/components/tickets/index.js +7 -7
  93. package/dist/components/ui/index.cjs +6 -4
  94. package/dist/components/ui/index.cjs.map +1 -1
  95. package/dist/components/ui/index.js +5 -3
  96. package/dist/index.cjs +10 -8
  97. package/dist/index.cjs.map +1 -1
  98. package/dist/index.js +9 -7
  99. package/dist/index.js.map +1 -1
  100. package/dist/types/video-processing.d.ts +1 -1
  101. package/dist/types/video-processing.d.ts.map +1 -1
  102. package/dist/utils/index.cjs +8 -3
  103. package/dist/utils/index.cjs.map +1 -1
  104. package/dist/utils/index.js +9 -4
  105. package/dist/utils/index.js.map +1 -1
  106. package/dist/utils/list-url.d.ts.map +1 -1
  107. package/dist/utils/source-icons.d.ts.map +1 -1
  108. package/package.json +1 -1
  109. package/src/__tests__/chat-card-label.test.tsx +24 -0
  110. package/src/components/chat/entity-cards/dispatch.tsx +40 -4
  111. package/src/components/chat/entity-cards/index.ts +1 -0
  112. package/src/components/chat/utils/icon-registry.ts +3 -0
  113. package/src/types/video-processing.ts +2 -1
  114. package/src/utils/__tests__/list-url.test.ts +1 -0
  115. package/src/utils/list-url.ts +1 -0
  116. package/src/utils/source-icons.ts +3 -0
  117. package/dist/chunk-65SWJSQX.js.map +0 -1
  118. package/dist/chunk-EYKTKDRK.cjs.map +0 -1
  119. package/dist/chunk-GAPXVAS6.cjs.map +0 -1
  120. /package/dist/{chunk-HPIRQWNK.js.map → chunk-4SH2L3HO.js.map} +0 -0
  121. /package/dist/{chunk-3Z5ZIKDX.js.map → chunk-5AB6QLIQ.js.map} +0 -0
  122. /package/dist/{chunk-JA2SIJ7T.js.map → chunk-BR5PVFWG.js.map} +0 -0
  123. /package/dist/{chunk-OD4JKGQG.js.map → chunk-CKH4SLD5.js.map} +0 -0
  124. /package/dist/{chunk-ZPJ6KYAW.js.map → chunk-DJVN7IW6.js.map} +0 -0
  125. /package/dist/{chunk-5DUTXG6P.js.map → chunk-G6LYVK64.js.map} +0 -0
  126. /package/dist/{chunk-I7RWVDN4.js.map → chunk-GMBETTTE.js.map} +0 -0
  127. /package/dist/{chunk-RTC3H5RW.js.map → chunk-GZFVTFMU.js.map} +0 -0
  128. /package/dist/{chunk-MJRXGAXS.js.map → chunk-KLAL4FTU.js.map} +0 -0
  129. /package/dist/{chunk-3BNNYHP2.js.map → chunk-LNF5W3QJ.js.map} +0 -0
  130. /package/dist/{chunk-J27HVNT2.js.map → chunk-POSO6GYC.js.map} +0 -0
  131. /package/dist/{chunk-D4ARG53E.js.map → chunk-T7FTSJM2.js.map} +0 -0
  132. /package/dist/{chunk-7HWVD42H.js.map → chunk-TMGTVVE2.js.map} +0 -0
  133. /package/dist/{chunk-SKRI6QJ5.js.map → chunk-UY4EFV3P.js.map} +0 -0
  134. /package/dist/{chunk-JBXNDB5U.js.map → chunk-XGVWMJQD.js.map} +0 -0
  135. /package/dist/{chunk-LPGBA4UZ.js.map → chunk-ZBXPNBKB.js.map} +0 -0
@@ -120,6 +120,7 @@ var _chunkKOQCA5X5cjs = require('./chunk-KOQCA5X5.cjs');
120
120
 
121
121
 
122
122
 
123
+
123
124
 
124
125
 
125
126
  var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
@@ -171,7 +172,7 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
171
172
 
172
173
 
173
174
 
174
- var _chunkEYKTKDRKcjs = require('./chunk-EYKTKDRK.cjs');
175
+ var _chunkCS7MVDUFcjs = require('./chunk-CS7MVDUF.cjs');
175
176
 
176
177
 
177
178
  var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
@@ -4782,7 +4783,7 @@ function MspOrganizationCard({
4782
4783
  className
4783
4784
  ),
4784
4785
  children: [
4785
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4786
4787
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
4787
4788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
4788
4789
  website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
@@ -4915,7 +4916,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
4915
4916
  ] })
4916
4917
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
4917
4918
  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,
4918
- _chunkEYKTKDRKcjs.SquareAvatar,
4919
+ _chunkCS7MVDUFcjs.SquareAvatar,
4919
4920
  {
4920
4921
  src: userAvatar,
4921
4922
  alt: userName,
@@ -5208,6 +5209,7 @@ function MingoOnboardingCard({
5208
5209
 
5209
5210
 
5210
5211
 
5212
+
5211
5213
 
5212
5214
 
5213
5215
  var OpenFrameLogoIcon = ({ className }) => _react.createElement.call(void 0, _chunk63QUMV72cjs.OpenFrameLogo, { className, upperPathColor: "currentColor" });
@@ -5248,6 +5250,7 @@ var ICON_REGISTRY = {
5248
5250
  newspaper: _lucidereact.Newspaper,
5249
5251
  package: _lucidereact.Package,
5250
5252
  "pen-square": _lucidereact.PenSquare,
5253
+ phone: _lucidereact.Phone,
5251
5254
  rocket: _lucidereact.Rocket,
5252
5255
  search: _lucidereact.Search,
5253
5256
  send: _lucidereact.Send,
@@ -5297,6 +5300,7 @@ var PASCAL_TO_KEBAB_ALIASES = {
5297
5300
  Newspaper: "newspaper",
5298
5301
  Package: "package",
5299
5302
  PenSquare: "pen-square",
5303
+ Phone: "phone",
5300
5304
  Rocket: "rocket",
5301
5305
  Search: "search",
5302
5306
  Send: "send",
@@ -7296,7 +7300,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7296
7300
  // Host-supplied brand icon (e.g. Mingo): render it directly,
7297
7301
  // no filled pill — the icon carries its own brand accent.
7298
7302
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: assistantIcon })
7299
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.SquareAvatar, { ...avatarProps })),
7303
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.SquareAvatar, { ...avatarProps })),
7300
7304
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7301
7305
  "span",
7302
7306
  {
@@ -8092,7 +8096,7 @@ ChatMessageList.displayName = "ChatMessageList";
8092
8096
  // src/components/chat/hooks/use-proxied-image-url.ts
8093
8097
  function useProxiedImageUrl(url) {
8094
8098
  const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
8095
- return _nullishCoalesce(_chunkEYKTKDRKcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8099
+ return _nullishCoalesce(_chunkCS7MVDUFcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8096
8100
  proxyPrefix: r.endpoints.imageProxyUrlPrefix,
8097
8101
  skipDomains: r.endpoints.imageProxySkipDomains,
8098
8102
  directHttps: true
@@ -8118,7 +8122,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
8118
8122
  height: 40,
8119
8123
  onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
8120
8124
  }
8121
- ) : /* @__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: _chunkEYKTKDRKcjs.personInitials.call(void 0, displayName) || "?" }),
8125
+ ) : /* @__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: _chunkCS7MVDUFcjs.personInitials.call(void 0, displayName) || "?" }),
8122
8126
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
8123
8127
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
8124
8128
  /* @__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 }),
@@ -9422,7 +9426,7 @@ function MingoChatHistoryRow({
9422
9426
  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")
9423
9427
  ),
9424
9428
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9425
- _chunkEYKTKDRKcjs.SquareAvatar,
9429
+ _chunkCS7MVDUFcjs.SquareAvatar,
9426
9430
  {
9427
9431
  variant: "round",
9428
9432
  sizePx: 24,
@@ -10563,7 +10567,7 @@ function ChatPanelHeader({
10563
10567
  avatar && (avatar.name || avatar.avatarUrl) ? (
10564
10568
  // Owner avatar at the title cell's right edge (Figma 113:63273).
10565
10569
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10566
- _chunkEYKTKDRKcjs.SquareAvatar,
10570
+ _chunkCS7MVDUFcjs.SquareAvatar,
10567
10571
  {
10568
10572
  variant: "round",
10569
10573
  sizePx: 32,
@@ -10777,8 +10781,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
10777
10781
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
10778
10782
  (!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
10779
10783
  status === "sniffing" && "Checking\u2026",
10780
- status === "uploading" && `${progress}% \xB7 ${_chunkEYKTKDRKcjs.formatFileSize.call(void 0, file.size)}`,
10781
- status === "ready" && _chunkEYKTKDRKcjs.formatFileSize.call(void 0, file.size),
10784
+ status === "uploading" && `${progress}% \xB7 ${_chunkCS7MVDUFcjs.formatFileSize.call(void 0, file.size)}`,
10785
+ status === "ready" && _chunkCS7MVDUFcjs.formatFileSize.call(void 0, file.size),
10782
10786
  status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
10783
10787
  ] })
10784
10788
  ] }),
@@ -11575,10 +11579,10 @@ function resolveExternalNavigation(args) {
11575
11579
 
11576
11580
  // src/components/chat/utils/execute-navigation.ts
11577
11581
  function isForeignOriginHref(href) {
11578
- return /^https?:\/\//i.test(href) && !_chunkEYKTKDRKcjs.isSameOriginAbsoluteHref.call(void 0, href);
11582
+ return /^https?:\/\//i.test(href) && !_chunkCS7MVDUFcjs.isSameOriginAbsoluteHref.call(void 0, href);
11579
11583
  }
11580
11584
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11581
- const isNewTab = runtime ? _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11585
+ const isNewTab = runtime ? _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11582
11586
  if (isNewTab) {
11583
11587
  if (_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.openExternal])) runtime.navigation.openExternal(href);
11584
11588
  else window.open(href, "_blank", NEW_TAB_FEATURES);
@@ -11637,7 +11641,7 @@ function NavLinkAnchorViaRuntime({
11637
11641
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
11638
11642
  const panel = useChatPanel();
11639
11643
  const resolvedHref = resolveHrefForRuntime(href, runtime);
11640
- const isNewTab = _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11644
+ const isNewTab = _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11641
11645
  const onClick = (e) => {
11642
11646
  const handled = executeNavigation({
11643
11647
  event: e,
@@ -11649,7 +11653,7 @@ function NavLinkAnchorViaRuntime({
11649
11653
  });
11650
11654
  if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
11651
11655
  };
11652
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11656
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11653
11657
  }
11654
11658
 
11655
11659
  // src/components/chat/source-action-button.tsx
@@ -12891,9 +12895,9 @@ function UserDisplay({
12891
12895
  }) {
12892
12896
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
12893
12897
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12894
- _chunkEYKTKDRKcjs.SquareAvatar,
12898
+ _chunkCS7MVDUFcjs.SquareAvatar,
12895
12899
  {
12896
- src: avatarUrl ? _chunkEYKTKDRKcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12900
+ src: avatarUrl ? _chunkCS7MVDUFcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12897
12901
  fallback: name,
12898
12902
  alt: name,
12899
12903
  sizePx: size2,
@@ -13393,7 +13397,7 @@ function VideoHoverPreviewSurface({
13393
13397
  return () => io.disconnect();
13394
13398
  }, [gateControlled]);
13395
13399
  const showMedia = continuation || (gateControlled ? playerMounted : isNear);
13396
- const { src: posterSrc, onError: onPosterError } = _chunkEYKTKDRKcjs.useCoverImageFallback.call(void 0, posterUrl);
13400
+ const { src: posterSrc, onError: onPosterError } = _chunkCS7MVDUFcjs.useCoverImageFallback.call(void 0, posterUrl);
13397
13401
  const facadeSkipped = preload === "none" && !posterSrc;
13398
13402
  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: [
13399
13403
  posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13511,7 +13515,7 @@ function groupByAspectRatio(items, getAspectRatio) {
13511
13515
 
13512
13516
  function VideoBitesStrip({
13513
13517
  bites,
13514
- title = _chunkEYKTKDRKcjs.DEFAULT_VIDEO_BITES_TITLE,
13518
+ title = _chunkCS7MVDUFcjs.DEFAULT_VIDEO_BITES_TITLE,
13515
13519
  showTitle = true,
13516
13520
  filterPublished = true,
13517
13521
  profile = null,
@@ -13524,7 +13528,7 @@ function VideoBitesStrip({
13524
13528
  cardHeightMobile = 300,
13525
13529
  showChevrons = true,
13526
13530
  onBiteNavigate,
13527
- sortComparator = _chunkEYKTKDRKcjs.sortBitesByCreatedAtDesc,
13531
+ sortComparator = _chunkCS7MVDUFcjs.sortBitesByCreatedAtDesc,
13528
13532
  className
13529
13533
  }) {
13530
13534
  const items = _react.useMemo.call(void 0, () => {
@@ -13749,7 +13753,7 @@ function EntityVideoSection({
13749
13753
  title = "Video",
13750
13754
  videoSummary,
13751
13755
  videoBites,
13752
- bitesTitle = _chunkEYKTKDRKcjs.DEFAULT_VIDEO_BITES_TITLE,
13756
+ bitesTitle = _chunkCS7MVDUFcjs.DEFAULT_VIDEO_BITES_TITLE,
13753
13757
  filterPublishedBites = true,
13754
13758
  bitesProfile = null,
13755
13759
  bitesHref,
@@ -13988,7 +13992,7 @@ function ReviewStateBadge({ state, className = "" }) {
13988
13992
  function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
13989
13993
  const kind = _nullishCoalesce(item.kind, () => ( "commit"));
13990
13994
  const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
13991
- const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
13995
+ const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
13992
13996
  const idLabel = formatActivityId(item.id, kind);
13993
13997
  const { display: title, reviewState } = parseGithubTitle(item.title, kind);
13994
13998
  const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
@@ -14022,26 +14026,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
14022
14026
  metaParts.push(
14023
14027
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14024
14028
  );
14025
- const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
14029
+ const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
14026
14030
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14027
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
14028
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14029
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
14031
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
14032
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14033
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
14030
14034
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
14031
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: primaryText })
14035
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: primaryText })
14032
14036
  ] }),
14033
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14034
14038
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14035
14039
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14036
14040
  ] }, i)) }) }),
14037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
14041
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
14038
14042
  ] }),
14039
14043
  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
14040
14044
  ] });
14041
14045
  if (anchorProps) {
14042
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14046
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14043
14047
  }
14044
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14048
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14045
14049
  }
14046
14050
  function GitHubActivityCardSkeleton({
14047
14051
  variant = "compact",
@@ -14058,12 +14062,12 @@ function GitHubActivityCardSkeleton({
14058
14062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14059
14063
  ] });
14060
14064
  }
14061
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14062
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14063
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14064
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14065
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14066
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
14065
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14067
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14068
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14069
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14070
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
14067
14071
  ] }),
14068
14072
  /* @__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" }) })
14069
14073
  ] });
@@ -14087,7 +14091,7 @@ function parseChannelFromUrl(url) {
14087
14091
  }
14088
14092
  function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
14089
14093
  const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
14090
- const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14094
+ const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14091
14095
  if (variant === "row") {
14092
14096
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14093
14097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
@@ -14113,23 +14117,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14113
14117
  metaParts.push(
14114
14118
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14115
14119
  );
14116
- const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
14120
+ const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
14117
14121
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14118
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14119
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14120
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14121
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) }),
14122
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14122
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14123
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14124
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14125
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) }),
14126
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14123
14127
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14124
14128
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14125
- ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) }) })
14129
+ ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) }) })
14126
14130
  ] }),
14127
14131
  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
14128
14132
  ] });
14129
14133
  if (anchorProps) {
14130
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14134
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14131
14135
  }
14132
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14136
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14133
14137
  }
14134
14138
  function SlackMessageCardSkeleton({
14135
14139
  variant = "compact",
@@ -14144,12 +14148,12 @@ function SlackMessageCardSkeleton({
14144
14148
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14145
14149
  ] });
14146
14150
  }
14147
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14148
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14149
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14150
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14151
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14152
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14151
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14152
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14153
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14154
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14156
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14153
14157
  ] }),
14154
14158
  /* @__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" }) })
14155
14159
  ] });
@@ -14180,12 +14184,12 @@ function statusScheme(status) {
14180
14184
  function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
14181
14185
  const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
14182
14186
  const priorityText = formatToken(item.priority);
14183
- const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14187
+ const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14184
14188
  if (variant === "row") {
14185
14189
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14186
14190
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
14187
14191
  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,
14188
- statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14192
+ statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14189
14193
  dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
14190
14194
  ] });
14191
14195
  }
@@ -14199,13 +14203,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14199
14203
  metaParts.push(
14200
14204
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14201
14205
  );
14202
- const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
14206
+ const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
14203
14207
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14204
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14208
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14205
14209
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14210
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14207
14211
  priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14208
- _chunkEYKTKDRKcjs.StatusBadge,
14212
+ _chunkCS7MVDUFcjs.StatusBadge,
14209
14213
  {
14210
14214
  text: priorityText,
14211
14215
  variant: "button",
@@ -14214,7 +14218,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14214
14218
  }
14215
14219
  ) : null,
14216
14220
  statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14217
- _chunkEYKTKDRKcjs.StatusBadge,
14221
+ _chunkCS7MVDUFcjs.StatusBadge,
14218
14222
  {
14219
14223
  text: statusText,
14220
14224
  variant: "button",
@@ -14228,7 +14232,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14228
14232
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
14229
14233
  ] }) : null,
14230
14234
  /* @__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." }) }) }),
14231
- metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14235
+ metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14232
14236
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14233
14237
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14234
14238
  ] }, i)) }) }) : null
@@ -14236,9 +14240,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14236
14240
  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
14237
14241
  ] });
14238
14242
  if (anchorProps) {
14239
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14243
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14240
14244
  }
14241
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14245
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14242
14246
  }
14243
14247
  function HubspotTicketCardSkeleton({
14244
14248
  variant = "compact",
@@ -14252,8 +14256,8 @@ function HubspotTicketCardSkeleton({
14252
14256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14253
14257
  ] });
14254
14258
  }
14255
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14256
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14259
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14260
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14257
14261
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14258
14262
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14259
14263
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
@@ -14266,7 +14270,7 @@ function HubspotTicketCardSkeleton({
14266
14270
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
14267
14271
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
14268
14272
  ] }),
14269
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14273
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14270
14274
  ] }),
14271
14275
  /* @__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" }) })
14272
14276
  ] });
@@ -14277,10 +14281,10 @@ function HubspotTicketCardSkeleton({
14277
14281
 
14278
14282
  function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14279
14283
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14280
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14284
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14281
14285
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14282
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14283
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14286
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14287
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14284
14288
  ] }),
14285
14289
  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: [
14286
14290
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
@@ -14291,13 +14295,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14291
14295
  _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
14292
14296
  ] });
14293
14297
  if (!anchorProps) {
14294
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14298
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14295
14299
  }
14296
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14300
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14297
14301
  }
14298
14302
  function DataRoomDocCardSkeleton({ className }) {
14299
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14300
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14303
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14304
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14301
14305
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14302
14306
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14303
14307
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14318,29 +14322,29 @@ function DataRoomDocCardSkeleton({ className }) {
14318
14322
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
14319
14323
  const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
14320
14324
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14321
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14322
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14323
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14324
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUBTITLE, children: [
14325
- campaign.start_date ? _chunkEYKTKDRKcjs.formatDateShort.call(void 0, campaign.start_date) : null,
14325
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14326
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14327
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14328
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUBTITLE, children: [
14329
+ campaign.start_date ? _chunkCS7MVDUFcjs.formatDateShort.call(void 0, campaign.start_date) : null,
14326
14330
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
14327
14331
  "Marketing campaign"
14328
14332
  ].filter(Boolean).join(" \xB7 ") }) }),
14329
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
14333
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
14330
14334
  ] })
14331
14335
  ] });
14332
14336
  if (anchorProps) {
14333
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14337
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14334
14338
  }
14335
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14339
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14336
14340
  }
14337
14341
  function CampaignCardAdminSkeleton({ className }) {
14338
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14339
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14340
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14341
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14342
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14343
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14342
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14343
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14344
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14345
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14346
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14344
14348
  ] })
14345
14349
  ] });
14346
14350
  }
@@ -14349,14 +14353,14 @@ function CampaignCardAdminSkeleton({ className }) {
14349
14353
 
14350
14354
 
14351
14355
  function GenericEntityCard({ item, className, anchorProps }) {
14352
- const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
14353
- const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14356
+ const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
14357
+ const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14354
14358
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14355
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14359
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14356
14360
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14357
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14361
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14358
14362
  item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14359
- _chunkEYKTKDRKcjs.StatusBadge,
14363
+ _chunkCS7MVDUFcjs.StatusBadge,
14360
14364
  {
14361
14365
  text: item.badge.text,
14362
14366
  variant: "button",
@@ -14374,18 +14378,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
14374
14378
  ] }),
14375
14379
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
14376
14380
  ] }, i)) }) : null,
14377
- dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14381
+ dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14378
14382
  ] }),
14379
14383
  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
14380
14384
  ] });
14381
14385
  if (anchorProps) {
14382
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14386
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14383
14387
  }
14384
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14388
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14385
14389
  }
14386
14390
  function GenericEntityCardSkeleton({ className }) {
14387
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14388
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14391
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14392
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14389
14393
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14390
14394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14391
14395
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14434,8 +14438,8 @@ function useChatCardItem(type, id) {
14434
14438
  const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
14435
14439
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
14436
14440
  const data = await res.json();
14437
- const items = _chunkEYKTKDRKcjs.extractItems.call(void 0, data);
14438
- const match = items.find((it) => _chunkEYKTKDRKcjs.extractItemId.call(void 0, type, it) === id);
14441
+ const items = _chunkCS7MVDUFcjs.extractItems.call(void 0, data);
14442
+ const match = items.find((it) => _chunkCS7MVDUFcjs.extractItemId.call(void 0, type, it) === id);
14439
14443
  return _nullishCoalesce(match, () => ( null));
14440
14444
  },
14441
14445
  enabled: !!url && id.length > 0,
@@ -14468,7 +14472,7 @@ function useChatCardItem(type, id) {
14468
14472
  function CardMedia({ imageSrc, imageAlt, icon }) {
14469
14473
  if (imageSrc) {
14470
14474
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
14471
- /* @__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: _chunkEYKTKDRKcjs.personInitials.call(void 0, imageAlt) || "?" }),
14475
+ /* @__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: _chunkCS7MVDUFcjs.personInitials.call(void 0, imageAlt) || "?" }),
14472
14476
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14473
14477
  _chunkWLSFBRT5cjs.next_image_default,
14474
14478
  {
@@ -14626,7 +14630,7 @@ function resolveFetchedCardHref({
14626
14630
  composeContentUrl
14627
14631
  }) {
14628
14632
  if (!composeContentUrl || !contentRefType || !id) return null;
14629
- const canonicalType = _chunkEYKTKDRKcjs.canonicalContentRefType.call(void 0, contentRefType);
14633
+ const canonicalType = _chunkCS7MVDUFcjs.canonicalContentRefType.call(void 0, contentRefType);
14630
14634
  return composeContentUrl({
14631
14635
  // The card registry keys some entries by the legacy rail vocabulary
14632
14636
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -14685,7 +14689,8 @@ var SOURCE_ICON_NAMES = {
14685
14689
  "ai-prompts": "message-square",
14686
14690
  // Product-hub internal
14687
14691
  "design-docs": "file-text",
14688
- "openframe-tenants": "globe"
14692
+ "openframe-tenants": "globe",
14693
+ "prospect-calls": "phone"
14689
14694
  };
14690
14695
  function getSourceIconName(tableId) {
14691
14696
  if (!tableId) return void 0;
@@ -14741,7 +14746,8 @@ var SOURCE_LABELS_BY_TABLE = {
14741
14746
  "ai-prompts": "Squawkbox",
14742
14747
  // Product-hub internal
14743
14748
  "design-docs": "Design Docs",
14744
- "openframe-tenants": "OpenFrame Tenants"
14749
+ "openframe-tenants": "OpenFrame Tenants",
14750
+ "prospect-calls": "Prospect calls"
14745
14751
  };
14746
14752
  function getSourceLabel(tableId) {
14747
14753
  return _nullishCoalesce(SOURCE_LABELS_BY_TABLE[tableId], () => ( tableId));
@@ -14790,7 +14796,8 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
14790
14796
  ai_prompt: "ai-prompts",
14791
14797
  // Product-hub internal
14792
14798
  design_doc: "design-docs",
14793
- openframe_tenant: "openframe-tenants"
14799
+ openframe_tenant: "openframe-tenants",
14800
+ prospect_call: "prospect-calls"
14794
14801
  };
14795
14802
  function defaultTableIdForDocumentType(documentType) {
14796
14803
  return _nullishCoalesce(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID[documentType], () => ( null));
@@ -14833,16 +14840,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
14833
14840
  if (docTarget) {
14834
14841
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
14835
14842
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
14836
- href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14843
+ href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14837
14844
  targetPlatform = docTarget.platform;
14838
14845
  } else if (ctx.chipBasePlatform) {
14839
14846
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
14840
- href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14847
+ href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14841
14848
  targetPlatform = ctx.chipBasePlatform;
14842
14849
  } else if (ctx.baseRoute) {
14843
14850
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
14844
14851
  const absolute = new URL(safePath, synthetic).toString();
14845
- href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14852
+ href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14846
14853
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
14847
14854
  }
14848
14855
  }
@@ -14851,15 +14858,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
14851
14858
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
14852
14859
  // `hostedTypes` / `overrides` and fall through to the seam's default
14853
14860
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
14854
- type: _chunkEYKTKDRKcjs.canonicalContentRefType.call(void 0, row.documentType),
14861
+ type: _chunkCS7MVDUFcjs.canonicalContentRefType.call(void 0, row.documentType),
14855
14862
  identifier: idValue,
14856
14863
  externalUrl: row.externalUrl,
14857
14864
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
14858
14865
  });
14859
- href = composed.href ? _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14866
+ href = composed.href ? _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14860
14867
  targetPlatform = composed.targetPlatform;
14861
14868
  } else if (row.externalUrl) {
14862
- href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14869
+ href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14863
14870
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
14864
14871
  }
14865
14872
  const documentType = row.documentType;
@@ -14894,11 +14901,11 @@ function resolveSourceIcon(input, ctx = {}) {
14894
14901
 
14895
14902
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
14896
14903
  const label = entityLabel || "Item";
14897
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14898
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14899
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
14900
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14901
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14904
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14905
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14906
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
14907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14908
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14902
14909
  label,
14903
14910
  " deleted",
14904
14911
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -14944,7 +14951,7 @@ function GitHubChatCard({
14944
14951
  const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
14945
14952
  const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
14946
14953
  const idLabel = formatActivityId(chatRef.id, kind);
14947
- const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14954
+ const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14948
14955
  const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
14949
14956
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14950
14957
  MingoInfoCard,
@@ -14953,7 +14960,7 @@ function GitHubChatCard({
14953
14960
  description,
14954
14961
  icon: githubKindIcon(kind),
14955
14962
  status,
14956
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
14963
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
14957
14964
  menuGroups: cardMenuGroups(chatRef.url, discuss),
14958
14965
  menuAriaLabel: "Activity actions"
14959
14966
  }
@@ -15100,7 +15107,7 @@ function HubspotTicketChatCard({
15100
15107
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15101
15108
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 24 }),
15102
15109
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
15103
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15110
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15104
15111
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
15105
15112
  label: "Open Ticket Details",
15106
15113
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 20 })
@@ -15123,7 +15130,7 @@ function FaqChatCard({
15123
15130
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15124
15131
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.QuestionCircleIcon, { size: 24 }),
15125
15132
  status: { label: statusLabel, variant: "grey" },
15126
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15133
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15127
15134
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15128
15135
  menuAriaLabel: "FAQ actions"
15129
15136
  }
@@ -15143,7 +15150,7 @@ function SlackChatCard({
15143
15150
  title,
15144
15151
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15145
15152
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.SlackLogoGreyIcon, { size: 24 }),
15146
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15153
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15147
15154
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15148
15155
  menuAriaLabel: "Message actions"
15149
15156
  }
@@ -15161,7 +15168,7 @@ function GlyphChatCard({
15161
15168
  title: chatRef.title,
15162
15169
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15163
15170
  icon,
15164
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15171
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15165
15172
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15166
15173
  menuAriaLabel: "Card actions"
15167
15174
  }
@@ -15180,7 +15187,7 @@ function DataRoomDocChatCard({
15180
15187
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15181
15188
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }),
15182
15189
  status: { label: badgeText, variant: "grey" },
15183
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15190
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15184
15191
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15185
15192
  menuAriaLabel: "Document actions"
15186
15193
  }
@@ -15199,7 +15206,7 @@ function GenericFinancialChatCard({
15199
15206
  title: chatRef.title,
15200
15207
  description: subtitle,
15201
15208
  icon,
15202
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15209
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15203
15210
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15204
15211
  menuAriaLabel: "Document actions"
15205
15212
  }
@@ -15285,7 +15292,7 @@ function CampaignChatCard({
15285
15292
  }) {
15286
15293
  const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _378 => _378.goals])) ? item.goals.length : 0;
15287
15294
  const meta = [
15288
- _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunkEYKTKDRKcjs.formatDateShort.call(void 0, item.start_date) : null,
15295
+ _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunkCS7MVDUFcjs.formatDateShort.call(void 0, item.start_date) : null,
15289
15296
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
15290
15297
  "Marketing campaign"
15291
15298
  ].filter(Boolean).join(" \xB7 ");
@@ -15324,7 +15331,7 @@ function EntityMingoCard({
15324
15331
  imageAlt: typeof title === "string" ? title : void 0,
15325
15332
  icon: fallbackIcon,
15326
15333
  status,
15327
- anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15334
+ anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15328
15335
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
15329
15336
  menuAriaLabel
15330
15337
  }
@@ -15336,7 +15343,7 @@ function entityCover(image, ogPlaceholder) {
15336
15343
  function statusPill(status) {
15337
15344
  const s = typeof status === "string" ? status.trim() : "";
15338
15345
  if (!s) return void 0;
15339
- const scheme = _chunkEYKTKDRKcjs.getStatusColorScheme.call(void 0, s);
15346
+ const scheme = _chunkCS7MVDUFcjs.getStatusColorScheme.call(void 0, s);
15340
15347
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
15341
15348
  return { label: s, variant };
15342
15349
  }
@@ -15423,7 +15430,7 @@ function InvestorUpdateChatCard({
15423
15430
  EntityMingoCard,
15424
15431
  {
15425
15432
  title,
15426
- description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunkEYKTKDRKcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
15433
+ description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunkCS7MVDUFcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
15427
15434
  cover: entityCover(_optionalChain([item, 'optionalAccess', _411 => _411.featured_image]), ogPlaceholder),
15428
15435
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.PresentationLineIcon, { size: 24 }),
15429
15436
  status: { label: "Investor update", variant: "grey" },
@@ -15470,15 +15477,15 @@ function ProgramChatCard({
15470
15477
  const isScheduled = _optionalChain([item, 'optionalAccess', _418 => _418.status]) === "scheduled";
15471
15478
  let typeMeta;
15472
15479
  if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _419 => _419.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
15473
- typeMeta = _chunkEYKTKDRKcjs.formatDurationCompact.call(void 0, item.duration_seconds);
15480
+ typeMeta = _chunkCS7MVDUFcjs.formatDurationCompact.call(void 0, item.duration_seconds);
15474
15481
  } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _420 => _420.location_name]) === "string" && item.location_name.trim().length > 0) {
15475
15482
  typeMeta = item.location_name;
15476
15483
  } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _421 => _421.start_at])) {
15477
- const time = _chunkEYKTKDRKcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
15478
- const dur = _chunkEYKTKDRKcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
15484
+ const time = _chunkCS7MVDUFcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
15485
+ const dur = _chunkCS7MVDUFcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
15479
15486
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
15480
15487
  }
15481
- const itemDate = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.date]), () => ( null)), { fallback: "", timezone: "local" });
15488
+ const itemDate = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.date]), () => ( null)), { fallback: "", timezone: "local" });
15482
15489
  const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
15483
15490
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15484
15491
  EntityMingoCard,
@@ -15505,7 +15512,7 @@ function RoadmapChatCard({
15505
15512
  const logoUrl = typeof _optionalChain([item, 'optionalAccess', _426 => _426.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15506
15513
  const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]) != null;
15507
15514
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.MapIcon, { size: 24 });
15508
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _428 => _428.customItemId]), className: "size-6" }) : logoUrl ? (
15515
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _428 => _428.customItemId]), className: "size-6" }) : logoUrl ? (
15509
15516
  // Contained (not full-bleed) so the integration logo keeps its aspect
15510
15517
  // ratio inside the bordered icon box — matches RoadmapCard.
15511
15518
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
@@ -15576,19 +15583,40 @@ var GITHUB_CARD_CONFIGS = {
15576
15583
  };
15577
15584
  var REF_GLYPH_CARD_CONFIGS = {
15578
15585
  design_doc: { label: "Design doc", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }) },
15579
- openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BuildingsIcon, { size: 24 }) }
15586
+ openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BuildingsIcon, { size: 24 }) },
15587
+ prospect_call: { label: "Prospect call", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CallIcon, { size: 24 }), media: true }
15580
15588
  };
15581
15589
  function refGlyphRegistryEntries() {
15582
15590
  return registryEntries(
15583
15591
  REF_GLYPH_CARD_CONFIGS,
15584
- (cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GlyphChatCard, { chatRef: displayRef, icon: cfg.icon(), isNewTab: opts.isNewTab, discuss: opts.discuss }))
15592
+ (cfg, docType) => refHydratedEntry(
15593
+ docType,
15594
+ cfg.label,
15595
+ (displayRef, opts) => cfg.media ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15596
+ EntityMingoCard,
15597
+ {
15598
+ title: displayRef.title,
15599
+ description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
15600
+ cover: entityCover(
15601
+ _optionalChain([displayRef, 'access', _433 => _433.metadata, 'optionalAccess', _434 => _434.videoPoster]),
15602
+ _nullishCoalesce(_optionalChain([opts, 'access', _435 => _435.extras, 'optionalAccess', _436 => _436.buildOgPlaceholderUrl, 'optionalCall', _437 => _437(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
15603
+ ),
15604
+ fallbackIcon: cfg.icon(),
15605
+ status: { label: cfg.label, variant: "grey" },
15606
+ chatRef: displayRef,
15607
+ isNewTab: opts.isNewTab,
15608
+ discuss: opts.discuss,
15609
+ menuAriaLabel: `${cfg.label} actions`
15610
+ }
15611
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GlyphChatCard, { chatRef: displayRef, icon: cfg.icon(), isNewTab: opts.isNewTab, discuss: opts.discuss })
15612
+ )
15585
15613
  );
15586
15614
  }
15587
15615
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15588
15616
  const it = item;
15589
- const title = typeof _optionalChain([it, 'optionalAccess', _433 => _433.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15590
- const author = typeof _optionalChain([it, 'optionalAccess', _434 => _434.author, 'optionalAccess', _435 => _435.full_name]) === "string" ? it.author.full_name.trim() : "";
15591
- const summary = typeof _optionalChain([it, 'optionalAccess', _436 => _436.summary]) === "string" ? it.summary.trim() : "";
15617
+ const title = typeof _optionalChain([it, 'optionalAccess', _438 => _438.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15618
+ const author = typeof _optionalChain([it, 'optionalAccess', _439 => _439.author, 'optionalAccess', _440 => _440.full_name]) === "string" ? it.author.full_name.trim() : "";
15619
+ const summary = typeof _optionalChain([it, 'optionalAccess', _441 => _441.summary]) === "string" ? it.summary.trim() : "";
15592
15620
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
15593
15621
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
15594
15622
  }
@@ -15630,7 +15658,7 @@ function programRegistryEntries() {
15630
15658
  label: cfg.label,
15631
15659
  contentRefType: cfg.contentRefType,
15632
15660
  bareInline: true,
15633
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.ProgramCardSkeleton, { size: "sm" }),
15661
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.ProgramCardSkeleton, { size: "sm" }),
15634
15662
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15635
15663
  ProgramChatCard,
15636
15664
  {
@@ -15640,7 +15668,7 @@ function programRegistryEntries() {
15640
15668
  discuss: opts.discuss,
15641
15669
  configKey: cfg.configKey,
15642
15670
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
15643
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _437 => _437.extras, 'optionalAccess', _438 => _438.buildOgPlaceholderUrl, 'optionalCall', _439 => _439(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _440 => _440.title]), () => ( "")))]), () => ( null))
15671
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _442 => _442.extras, 'optionalAccess', _443 => _443.buildOgPlaceholderUrl, 'optionalCall', _444 => _444(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _445 => _445.title]), () => ( "")))]), () => ( null))
15644
15672
  }
15645
15673
  )
15646
15674
  }));
@@ -15661,7 +15689,7 @@ var ROADMAP_CARD_CONFIGS = {
15661
15689
  // The card's destination IS the ClickUp deep link, derived from the
15662
15690
  // task id post-fetch (the refs frame used to carry it).
15663
15691
  noComposedHref: true,
15664
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _441 => _441.id]) != null ? clickupTaskUrl(String(item.id)) : null
15692
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? clickupTaskUrl(String(item.id)) : null
15665
15693
  }
15666
15694
  };
15667
15695
  function roadmapRegistryEntries() {
@@ -15671,7 +15699,7 @@ function roadmapRegistryEntries() {
15671
15699
  bareInline: true,
15672
15700
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
15673
15701
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
15674
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.RoadmapCardSkeleton, { size: "sm" }),
15702
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.RoadmapCardSkeleton, { size: "sm" }),
15675
15703
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15676
15704
  RoadmapChatCard,
15677
15705
  {
@@ -15703,8 +15731,8 @@ var CHAT_CARD_REGISTRY = {
15703
15731
  DeletedDataCard,
15704
15732
  {
15705
15733
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
15706
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _442 => _442.metadata, 'optionalAccess', _443 => _443.entity_label]), () => ( null)),
15707
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _444 => _444.metadata, 'optionalAccess', _445 => _445.recovery_note]), () => ( null))
15734
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _447 => _447.metadata, 'optionalAccess', _448 => _448.entity_label]), () => ( null)),
15735
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _449 => _449.metadata, 'optionalAccess', _450 => _450.recovery_note]), () => ( null))
15708
15736
  }
15709
15737
  )
15710
15738
  },
@@ -15721,7 +15749,7 @@ var CHAT_CARD_REGISTRY = {
15721
15749
  bareInline: true,
15722
15750
  contentRefType: "faq",
15723
15751
  noComposedHref: true,
15724
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15752
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _451 => _451.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15725
15753
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15726
15754
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
15727
15755
  },
@@ -15747,7 +15775,7 @@ var CHAT_CARD_REGISTRY = {
15747
15775
  label: "Blog post",
15748
15776
  contentRefType: "blog_post_existing",
15749
15777
  bareInline: true,
15750
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.BlogCardSkeleton, { size: "sm" }),
15778
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.BlogCardSkeleton, { size: "sm" }),
15751
15779
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15752
15780
  BlogChatCard,
15753
15781
  {
@@ -15755,8 +15783,8 @@ var CHAT_CARD_REGISTRY = {
15755
15783
  chatRef,
15756
15784
  isNewTab: opts.isNewTab,
15757
15785
  discuss: opts.discuss,
15758
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _447 => _447.extras, 'optionalAccess', _448 => _448.buildOgPlaceholderUrl, 'optionalCall', _449 => _449(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _450 => _450.title]), () => ( "")))]), () => ( null)),
15759
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _451 => _451.metadata, 'optionalAccess', _452 => _452.hasEmbeddedVideo]) === true
15786
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _452 => _452.extras, 'optionalAccess', _453 => _453.buildOgPlaceholderUrl, 'optionalCall', _454 => _454(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _455 => _455.title]), () => ( "")))]), () => ( null)),
15787
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _456 => _456.metadata, 'optionalAccess', _457 => _457.hasEmbeddedVideo]) === true
15760
15788
  }
15761
15789
  )
15762
15790
  },
@@ -15764,7 +15792,7 @@ var CHAT_CARD_REGISTRY = {
15764
15792
  label: "Case study",
15765
15793
  contentRefType: "case_study",
15766
15794
  bareInline: true,
15767
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.CaseStudyCardSkeleton, { size: "sm" }),
15795
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.CaseStudyCardSkeleton, { size: "sm" }),
15768
15796
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15769
15797
  CaseStudyChatCard,
15770
15798
  {
@@ -15772,7 +15800,7 @@ var CHAT_CARD_REGISTRY = {
15772
15800
  chatRef,
15773
15801
  isNewTab: opts.isNewTab,
15774
15802
  discuss: opts.discuss,
15775
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _453 => _453.extras, 'optionalAccess', _454 => _454.buildOgPlaceholderUrl, 'optionalCall', _455 => _455(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _456 => _456.title]), () => ( "")))]), () => ( null))
15803
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _458 => _458.extras, 'optionalAccess', _459 => _459.buildOgPlaceholderUrl, 'optionalCall', _460 => _460(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _461 => _461.title]), () => ( "")))]), () => ( null))
15776
15804
  }
15777
15805
  )
15778
15806
  },
@@ -15780,7 +15808,7 @@ var CHAT_CARD_REGISTRY = {
15780
15808
  label: "Customer interview",
15781
15809
  contentRefType: "customer_interview",
15782
15810
  bareInline: true,
15783
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15811
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15784
15812
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15785
15813
  CustomerInterviewChatCard,
15786
15814
  {
@@ -15788,7 +15816,7 @@ var CHAT_CARD_REGISTRY = {
15788
15816
  chatRef,
15789
15817
  isNewTab: opts.isNewTab,
15790
15818
  discuss: opts.discuss,
15791
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _457 => _457.extras, 'optionalAccess', _458 => _458.buildOgPlaceholderUrl, 'optionalCall', _459 => _459(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _460 => _460.title]), () => ( "")))]), () => ( null))
15819
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _462 => _462.extras, 'optionalAccess', _463 => _463.buildOgPlaceholderUrl, 'optionalCall', _464 => _464(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _465 => _465.title]), () => ( "")))]), () => ( null))
15792
15820
  }
15793
15821
  )
15794
15822
  },
@@ -15796,9 +15824,9 @@ var CHAT_CARD_REGISTRY = {
15796
15824
  label: "Product release",
15797
15825
  contentRefType: "product_release",
15798
15826
  bareInline: true,
15799
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15827
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15800
15828
  render: (item, chatRef, opts) => {
15801
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _461 => _461.extras, 'optionalAccess', _462 => _462.buildProductReleaseCardProps]), () => ( _chunkEYKTKDRKcjs.defaultBuildProductReleaseCardProps));
15829
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _466 => _466.extras, 'optionalAccess', _467 => _467.buildProductReleaseCardProps]), () => ( _chunkCS7MVDUFcjs.defaultBuildProductReleaseCardProps));
15802
15830
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15803
15831
  ProductReleaseChatCard,
15804
15832
  {
@@ -15816,7 +15844,7 @@ var CHAT_CARD_REGISTRY = {
15816
15844
  label: "Investor update",
15817
15845
  contentRefType: "investor_update",
15818
15846
  bareInline: true,
15819
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15847
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15820
15848
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15821
15849
  InvestorUpdateChatCard,
15822
15850
  {
@@ -15824,7 +15852,7 @@ var CHAT_CARD_REGISTRY = {
15824
15852
  chatRef,
15825
15853
  isNewTab: opts.isNewTab,
15826
15854
  discuss: opts.discuss,
15827
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _463 => _463.extras, 'optionalAccess', _464 => _464.buildOgPlaceholderUrl, 'optionalCall', _465 => _465(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _466 => _466.title]), () => ( "")))]), () => ( null))
15855
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _468 => _468.extras, 'optionalAccess', _469 => _469.buildOgPlaceholderUrl, 'optionalCall', _470 => _470(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _471 => _471.title]), () => ( "")))]), () => ( null))
15828
15856
  }
15829
15857
  )
15830
15858
  },
@@ -15834,7 +15862,7 @@ var CHAT_CARD_REGISTRY = {
15834
15862
  bareInline: true,
15835
15863
  // "Display" affordance (verbatim guide body) instead of "Ask".
15836
15864
  displayAction: true,
15837
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15865
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15838
15866
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15839
15867
  OnboardingGuideChatCard,
15840
15868
  {
@@ -15842,7 +15870,7 @@ var CHAT_CARD_REGISTRY = {
15842
15870
  chatRef,
15843
15871
  isNewTab: opts.isNewTab,
15844
15872
  discuss: opts.discuss,
15845
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _467 => _467.extras, 'optionalAccess', _468 => _468.buildOgPlaceholderUrl, 'optionalCall', _469 => _469(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _470 => _470.title]), () => ( "")))]), () => ( null))
15873
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _472 => _472.extras, 'optionalAccess', _473 => _473.buildOgPlaceholderUrl, 'optionalCall', _474 => _474(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _475 => _475.title]), () => ( "")))]), () => ( null))
15846
15874
  }
15847
15875
  )
15848
15876
  },
@@ -15853,11 +15881,14 @@ var CHAT_CARD_REGISTRY = {
15853
15881
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
15854
15882
  // No public viewer — synthesize the hub-internal admin URL post-fetch
15855
15883
  // so the wrapper + isNewTab computation see the actual destination.
15856
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _471 => _471.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
15884
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _476 => _476.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
15857
15885
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
15858
15886
  },
15859
15887
  ...roadmapRegistryEntries()
15860
15888
  };
15889
+ function chatCardLabel(docType) {
15890
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _477 => _477[docType], 'optionalAccess', _478 => _478.label]);
15891
+ }
15861
15892
  function ChatCardNavWrap({
15862
15893
  href,
15863
15894
  path,
@@ -15872,13 +15903,13 @@ function ChatCardNavWrap({
15872
15903
  if (!href) return;
15873
15904
  const targetEl = e.target;
15874
15905
  const host = e.currentTarget;
15875
- if (!_optionalChain([host, 'optionalAccess', _472 => _472.contains, 'call', _473 => _473(targetEl)])) return;
15876
- if (_optionalChain([targetEl, 'optionalAccess', _474 => _474.closest, 'optionalCall', _475 => _475("button")])) return;
15877
- if (!_optionalChain([targetEl, 'optionalAccess', _476 => _476.closest, 'optionalCall', _477 => _477("a")])) return;
15906
+ if (!_optionalChain([host, 'optionalAccess', _479 => _479.contains, 'call', _480 => _480(targetEl)])) return;
15907
+ if (_optionalChain([targetEl, 'optionalAccess', _481 => _481.closest, 'optionalCall', _482 => _482("button")])) return;
15908
+ if (!_optionalChain([targetEl, 'optionalAccess', _483 => _483.closest, 'optionalCall', _484 => _484("a")])) return;
15878
15909
  const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
15879
15910
  if (!handled) return;
15880
15911
  e.stopPropagation();
15881
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _478 => _478.closeChat])) panel.closeChat();
15912
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _485 => _485.closeChat])) panel.closeChat();
15882
15913
  };
15883
15914
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
15884
15915
  }
@@ -15900,7 +15931,7 @@ function ChatCardLoader({
15900
15931
  title: chatRef.title,
15901
15932
  externalUrl: chatRef.url,
15902
15933
  targetPlatform: chatRef.targetPlatform,
15903
- path: typeof _optionalChain([chatRef, 'access', _479 => _479.metadata, 'optionalAccess', _480 => _480.path]) === "string" ? chatRef.metadata.path : null
15934
+ path: typeof _optionalChain([chatRef, 'access', _486 => _486.metadata, 'optionalAccess', _487 => _487.path]) === "string" ? chatRef.metadata.path : null
15904
15935
  },
15905
15936
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
15906
15937
  );
@@ -15914,11 +15945,11 @@ function ChatCardLoader({
15914
15945
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
15915
15946
  const fetchEntry = entry && entry.contentRefType ? entry : null;
15916
15947
  const { item, isLoading, isError, isFetched } = useChatCardItem(
15917
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _481 => _481.contentRefType]), () => ( "")),
15948
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _488 => _488.contentRefType]), () => ( "")),
15918
15949
  fetchEntry ? resolvedChatRef.id : ""
15919
15950
  );
15920
15951
  if (!entry) return null;
15921
- const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _482 => _482.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
15952
+ const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _489 => _489.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
15922
15953
  contentRefType: fetchEntry.contentRefType,
15923
15954
  id: resolvedChatRef.id,
15924
15955
  item,
@@ -15926,18 +15957,18 @@ function ChatCardLoader({
15926
15957
  }) : null;
15927
15958
  const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
15928
15959
  composed: composedHref,
15929
- itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _483 => _483.fallbackHref, 'optionalCall', _484 => _484(item)]), () => ( null)),
15960
+ itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _490 => _490.fallbackHref, 'optionalCall', _491 => _491(item)]), () => ( null)),
15930
15961
  allowComposed: !fetchEntry.noComposedHref
15931
15962
  }) : null;
15932
15963
  const hrefResolvedChatRef = hrefChoice ? {
15933
15964
  ...resolvedChatRef,
15934
- url: _chunkEYKTKDRKcjs.safeHref.call(void 0, hrefChoice.href),
15965
+ url: _chunkCS7MVDUFcjs.safeHref.call(void 0, hrefChoice.href),
15935
15966
  // The `item` branch carries no platform of its own — keep the ref's.
15936
15967
  targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
15937
15968
  } : resolvedChatRef;
15938
15969
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
15939
15970
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
15940
- const isNewTab = _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
15971
+ const isNewTab = _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
15941
15972
  const useDisplay = !!entry.displayAction && !!onDisplay;
15942
15973
  const discussFn = useDisplay ? onDisplay : onDiscuss;
15943
15974
  const discuss = discussFn ? {
@@ -15960,7 +15991,7 @@ function ChatCardLoader({
15960
15991
  isNewTab,
15961
15992
  discuss
15962
15993
  };
15963
- const path = typeof _optionalChain([finalChatRef, 'access', _485 => _485.metadata, 'optionalAccess', _486 => _486.path]) === "string" ? finalChatRef.metadata.path : null;
15994
+ const path = typeof _optionalChain([finalChatRef, 'access', _492 => _492.metadata, 'optionalAccess', _493 => _493.path]) === "string" ? finalChatRef.metadata.path : null;
15964
15995
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15965
15996
  ChatCardNavWrap,
15966
15997
  {
@@ -15984,7 +16015,7 @@ function ChatCardLoader({
15984
16015
  if (!fetchEntry) {
15985
16016
  return finish(entry.render(void 0, finalChatRef, renderOpts));
15986
16017
  }
15987
- if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _487 => _487.skeleton, 'optionalCall', _488 => _488()]), () => ( null)) });
16018
+ if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _494 => _494.skeleton, 'optionalCall', _495 => _495()]), () => ( null)) });
15988
16019
  if (!item) {
15989
16020
  if (isError) {
15990
16021
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
@@ -16347,7 +16378,7 @@ function useChunkCatchup({
16347
16378
  if (catchupRun.current === run) {
16348
16379
  if (currentDialogId !== dialogIdRef.current) {
16349
16380
  catchupRun.current = null;
16350
- if (_optionalChain([pendingCatchupRef, 'access', _489 => _489.current, 'optionalAccess', _490 => _490.dialogId]) === currentDialogId) {
16381
+ if (_optionalChain([pendingCatchupRef, 'access', _496 => _496.current, 'optionalAccess', _497 => _497.dialogId]) === currentDialogId) {
16351
16382
  pendingCatchupRef.current = null;
16352
16383
  }
16353
16384
  } else {
@@ -16358,7 +16389,7 @@ function useChunkCatchup({
16358
16389
  if (pending.dialogId === currentDialogId) {
16359
16390
  rearmForQueuedCatchup();
16360
16391
  try {
16361
- await _optionalChain([catchUpChunksRef, 'access', _491 => _491.current, 'optionalCall', _492 => _492(pending.fromSequenceId)]);
16392
+ await _optionalChain([catchUpChunksRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499(pending.fromSequenceId)]);
16362
16393
  } catch (rerunError) {
16363
16394
  console.error("Queued catch-up re-run failed:", rerunError);
16364
16395
  }
@@ -16425,7 +16456,7 @@ function useChunkCatchup({
16425
16456
 
16426
16457
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
16427
16458
  function prefersReducedMotion() {
16428
- return typeof window !== "undefined" && _optionalChain([window, 'access', _493 => _493.matchMedia, 'optionalCall', _494 => _494("(prefers-reduced-motion: reduce)"), 'access', _495 => _495.matches]) === true;
16459
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _500 => _500.matchMedia, 'optionalCall', _501 => _501("(prefers-reduced-motion: reduce)"), 'access', _502 => _502.matches]) === true;
16429
16460
  }
16430
16461
  function useScriptedStream(frames, resetKey, enabled = true) {
16431
16462
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -16436,7 +16467,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
16436
16467
  setIndex(0);
16437
16468
  }
16438
16469
  _react.useEffect.call(void 0, () => {
16439
- const mq = _optionalChain([window, 'access', _496 => _496.matchMedia, 'optionalCall', _497 => _497("(prefers-reduced-motion: reduce)")]);
16470
+ const mq = _optionalChain([window, 'access', _503 => _503.matchMedia, 'optionalCall', _504 => _504("(prefers-reduced-motion: reduce)")]);
16440
16471
  const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
16441
16472
  sync();
16442
16473
  if (!mq) return void 0;
@@ -16579,7 +16610,7 @@ function useJetStreamDialogSubscription({
16579
16610
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16580
16611
  conn: sharedConn,
16581
16612
  wsUrl,
16582
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499()]),
16613
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _505 => _505.current, 'optionalCall', _506 => _506()]),
16583
16614
  backoff: reconnectionBackoffRef.current,
16584
16615
  getFreshUrl: () => getNatsWsUrlRef.current(),
16585
16616
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -16594,7 +16625,7 @@ function useJetStreamDialogSubscription({
16594
16625
  setReconnectionCount((c) => c + 1);
16595
16626
  }
16596
16627
  hadConnectionBeforeRef.current = true;
16597
- _optionalChain([onConnectRef, 'access', _500 => _500.current, 'optionalCall', _501 => _501()]);
16628
+ _optionalChain([onConnectRef, 'access', _507 => _507.current, 'optionalCall', _508 => _508()]);
16598
16629
  }
16599
16630
  if (status === "error") {
16600
16631
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -16604,7 +16635,7 @@ function useJetStreamDialogSubscription({
16604
16635
  setIsConnected(false);
16605
16636
  setIsSubscribed(false);
16606
16637
  tearDownSubscription();
16607
- _optionalChain([onDisconnectRef, 'access', _502 => _502.current, 'optionalCall', _503 => _503()]);
16638
+ _optionalChain([onDisconnectRef, 'access', _509 => _509.current, 'optionalCall', _510 => _510()]);
16608
16639
  }
16609
16640
  }
16610
16641
  });
@@ -16730,7 +16761,7 @@ function useJetStreamDialogSubscription({
16730
16761
  }
16731
16762
  subscriptionRef.current = handle;
16732
16763
  setIsSubscribed(true);
16733
- _optionalChain([onSubscribedRef, 'access', _504 => _504.current, 'optionalCall', _505 => _505()]);
16764
+ _optionalChain([onSubscribedRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]);
16734
16765
  } catch (e50) {
16735
16766
  if (!cancelled) {
16736
16767
  setIsSubscribed(false);
@@ -16846,20 +16877,20 @@ function useNatsDialogSubscription({
16846
16877
  const tearDownSubscriptions = () => {
16847
16878
  subscriptionRefs.current.forEach((sub) => {
16848
16879
  try {
16849
- _optionalChain([sub, 'optionalAccess', _506 => _506.unsubscribe, 'call', _507 => _507()]);
16880
+ _optionalChain([sub, 'optionalAccess', _513 => _513.unsubscribe, 'call', _514 => _514()]);
16850
16881
  } catch (e52) {
16851
16882
  }
16852
16883
  });
16853
16884
  subscriptionRefs.current.clear();
16854
16885
  lastSubscribedDialogIdRef.current = null;
16855
- _optionalChain([abortControllerRef, 'access', _508 => _508.current, 'optionalAccess', _509 => _509.abort, 'call', _510 => _510()]);
16886
+ _optionalChain([abortControllerRef, 'access', _515 => _515.current, 'optionalAccess', _516 => _516.abort, 'call', _517 => _517()]);
16856
16887
  abortControllerRef.current = null;
16857
16888
  };
16858
16889
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
16859
16890
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16860
16891
  conn: sharedConn,
16861
16892
  wsUrl,
16862
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]),
16893
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _518 => _518.current, 'optionalCall', _519 => _519()]),
16863
16894
  backoff: reconnectionBackoffRef.current,
16864
16895
  getFreshUrl: () => getNatsWsUrlRef.current(),
16865
16896
  shouldRetryOn: isDisconnectStatus,
@@ -16870,7 +16901,7 @@ function useNatsDialogSubscription({
16870
16901
  setReconnectionCount((c) => c + 1);
16871
16902
  }
16872
16903
  hadConnectionBeforeRef.current = true;
16873
- _optionalChain([onConnectRef, 'access', _513 => _513.current, 'optionalCall', _514 => _514()]);
16904
+ _optionalChain([onConnectRef, 'access', _520 => _520.current, 'optionalCall', _521 => _521()]);
16874
16905
  }
16875
16906
  if (status === "error") {
16876
16907
  console.warn("[NATS] protocol error:", evt.data);
@@ -16880,7 +16911,7 @@ function useNatsDialogSubscription({
16880
16911
  setIsConnected(false);
16881
16912
  setIsSubscribed(false);
16882
16913
  tearDownSubscriptions();
16883
- _optionalChain([onDisconnectRef, 'access', _515 => _515.current, 'optionalCall', _516 => _516()]);
16914
+ _optionalChain([onDisconnectRef, 'access', _522 => _522.current, 'optionalCall', _523 => _523()]);
16884
16915
  }
16885
16916
  }
16886
16917
  });
@@ -16911,13 +16942,13 @@ function useNatsDialogSubscription({
16911
16942
  setIsSubscribed(false);
16912
16943
  subscriptionRefs.current.forEach((sub) => {
16913
16944
  try {
16914
- _optionalChain([sub, 'optionalAccess', _517 => _517.unsubscribe, 'call', _518 => _518()]);
16945
+ _optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
16915
16946
  } catch (e53) {
16916
16947
  }
16917
16948
  });
16918
16949
  subscriptionRefs.current.clear();
16919
16950
  lastSubscribedDialogIdRef.current = null;
16920
- _optionalChain([abortControllerRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.abort, 'call', _521 => _521()]);
16951
+ _optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
16921
16952
  abortControllerRef.current = null;
16922
16953
  }
16923
16954
  return void 0;
@@ -16929,12 +16960,12 @@ function useNatsDialogSubscription({
16929
16960
  if (subscriptionRefs.current.size > 0) {
16930
16961
  subscriptionRefs.current.forEach((sub) => {
16931
16962
  try {
16932
- _optionalChain([sub, 'optionalAccess', _522 => _522.unsubscribe, 'call', _523 => _523()]);
16963
+ _optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
16933
16964
  } catch (e54) {
16934
16965
  }
16935
16966
  });
16936
16967
  subscriptionRefs.current.clear();
16937
- _optionalChain([abortControllerRef, 'access', _524 => _524.current, 'optionalAccess', _525 => _525.abort, 'call', _526 => _526()]);
16968
+ _optionalChain([abortControllerRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.abort, 'call', _533 => _533()]);
16938
16969
  }
16939
16970
  abortControllerRef.current = new AbortController();
16940
16971
  const abort = abortControllerRef.current;
@@ -16964,7 +16995,7 @@ function useNatsDialogSubscription({
16964
16995
  });
16965
16996
  lastSubscribedDialogIdRef.current = dialogId;
16966
16997
  setIsSubscribed(true);
16967
- _optionalChain([onSubscribedRef, 'access', _527 => _527.current, 'optionalCall', _528 => _528()]);
16998
+ _optionalChain([onSubscribedRef, 'access', _534 => _534.current, 'optionalCall', _535 => _535()]);
16968
16999
  };
16969
17000
  if (isConnectedRef.current) {
16970
17001
  createSubscriptions();
@@ -16975,7 +17006,7 @@ function useNatsDialogSubscription({
16975
17006
  abort.abort();
16976
17007
  subscriptions.forEach((sub) => {
16977
17008
  try {
16978
- _optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
17009
+ _optionalChain([sub, 'optionalAccess', _536 => _536.unsubscribe, 'call', _537 => _537()]);
16979
17010
  } catch (e56) {
16980
17011
  }
16981
17012
  });
@@ -17014,7 +17045,7 @@ function useNatsDialogSubscription({
17014
17045
  });
17015
17046
  lastSubscribedDialogIdRef.current = currentDialogId;
17016
17047
  setIsSubscribed(true);
17017
- _optionalChain([onSubscribedRef, 'access', _531 => _531.current, 'optionalCall', _532 => _532()]);
17048
+ _optionalChain([onSubscribedRef, 'access', _538 => _538.current, 'optionalCall', _539 => _539()]);
17018
17049
  } else if (subscriptionRefs.current.size > 0) {
17019
17050
  setIsSubscribed(true);
17020
17051
  }
@@ -17022,10 +17053,10 @@ function useNatsDialogSubscription({
17022
17053
  return { isConnected, isSubscribed, reconnectionCount };
17023
17054
  }
17024
17055
  function buildNatsWsUrl(apiBaseUrl, options) {
17025
- const path = _optionalChain([options, 'optionalAccess', _533 => _533.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17056
+ const path = _optionalChain([options, 'optionalAccess', _540 => _540.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17026
17057
  const u = new URL(path, apiBaseUrl);
17027
17058
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
17028
- if (_optionalChain([options, 'optionalAccess', _534 => _534.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _535 => _535.token])) {
17059
+ if (_optionalChain([options, 'optionalAccess', _541 => _541.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _542 => _542.token])) {
17029
17060
  u.searchParams.set("authorization", options.token);
17030
17061
  }
17031
17062
  return u.toString();
@@ -17043,7 +17074,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17043
17074
  const data = await res.json();
17044
17075
  return _nullishCoalesce(data.commands, () => ( []));
17045
17076
  } catch (err) {
17046
- if (_optionalChain([err, 'optionalAccess', _536 => _536.name]) === "AbortError") throw err;
17077
+ if (_optionalChain([err, 'optionalAccess', _543 => _543.name]) === "AbortError") throw err;
17047
17078
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
17048
17079
  return [];
17049
17080
  }
@@ -17051,8 +17082,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17051
17082
  var NO_COMMANDS = [];
17052
17083
  function useSlashCommands(prefix, commandsUrl) {
17053
17084
  const [answered, setAnswered] = _react.useState.call(void 0, null);
17054
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _537 => _537.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17055
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _538 => _538.prefix]) !== prefix;
17085
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _544 => _544.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17086
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _545 => _545.prefix]) !== prefix;
17056
17087
  _react.useEffect.call(void 0, () => {
17057
17088
  if (prefix == null) return void 0;
17058
17089
  let cancelled = false;
@@ -17062,7 +17093,7 @@ function useSlashCommands(prefix, commandsUrl) {
17062
17093
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
17063
17094
  if (!cancelled) setAnswered({ prefix, commands: next });
17064
17095
  } catch (err) {
17065
- if (!cancelled && _optionalChain([err, 'optionalAccess', _539 => _539.name]) !== "AbortError") {
17096
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _546 => _546.name]) !== "AbortError") {
17066
17097
  console.warn("[use-slash-commands] fetch failed:", err);
17067
17098
  setAnswered({ prefix, commands: NO_COMMANDS });
17068
17099
  }
@@ -17085,7 +17116,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
17085
17116
  const query = _reactquery.useQuery.call(void 0, {
17086
17117
  queryKey: ["chat-slash-commands", commandsUrl],
17087
17118
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
17088
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _540 => _540.enabled]), () => ( true)),
17119
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _547 => _547.enabled]), () => ( true)),
17089
17120
  staleTime: Infinity,
17090
17121
  gcTime: Infinity,
17091
17122
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -17124,21 +17155,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
17124
17155
  }
17125
17156
  const data = await res.json();
17126
17157
  return {
17127
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _541 => _541.name]), () => ( null)),
17128
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _542 => _542.icon]), () => ( null)),
17129
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _543 => _543.greeting]), () => ( null)),
17130
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _544 => _544.enabledRagTableIds]), () => ( [])),
17131
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _545 => _545.quickActions]), () => ( [])),
17132
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _546 => _546.suggestedQueries]), () => ( []))
17158
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _548 => _548.name]), () => ( null)),
17159
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _549 => _549.icon]), () => ( null)),
17160
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _550 => _550.greeting]), () => ( null)),
17161
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _551 => _551.enabledRagTableIds]), () => ( [])),
17162
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _552 => _552.quickActions]), () => ( [])),
17163
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _553 => _553.suggestedQueries]), () => ( []))
17133
17164
  };
17134
17165
  } catch (err) {
17135
- if (_optionalChain([err, 'optionalAccess', _547 => _547.name]) === "AbortError") throw err;
17166
+ if (_optionalChain([err, 'optionalAccess', _554 => _554.name]) === "AbortError") throw err;
17136
17167
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
17137
17168
  return EMPTY_STATE_FALLBACK;
17138
17169
  }
17139
17170
  }
17140
17171
  function useEmptyStateConfig(emptyStateUrl, options) {
17141
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _548 => _548.enabled]), () => ( true))) && !!emptyStateUrl;
17172
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _555 => _555.enabled]), () => ( true))) && !!emptyStateUrl;
17142
17173
  const query = _reactquery.useQuery.call(void 0, {
17143
17174
  queryKey: ["chat-empty-state", emptyStateUrl],
17144
17175
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -17167,7 +17198,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
17167
17198
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
17168
17199
  function uploadWithProgress(url, file, token, onProgress, signal) {
17169
17200
  return new Promise((resolve, reject) => {
17170
- if (_optionalChain([signal, 'optionalAccess', _549 => _549.aborted])) {
17201
+ if (_optionalChain([signal, 'optionalAccess', _556 => _556.aborted])) {
17171
17202
  reject(new Error("Upload cancelled"));
17172
17203
  return;
17173
17204
  }
@@ -17209,7 +17240,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
17209
17240
  const handleSignalAbort = () => {
17210
17241
  xhr.abort();
17211
17242
  };
17212
- _optionalChain([signal, 'optionalAccess', _550 => _550.addEventListener, 'call', _551 => _551("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17243
+ _optionalChain([signal, 'optionalAccess', _557 => _557.addEventListener, 'call', _558 => _558("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17213
17244
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
17214
17245
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
17215
17246
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -17253,10 +17284,10 @@ function useChatAttachments() {
17253
17284
  try {
17254
17285
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
17255
17286
  } catch (err) {
17256
- if (_optionalChain([ctrl, 'optionalAccess', _552 => _552.signal, 'access', _553 => _553.aborted])) return;
17287
+ if (_optionalChain([ctrl, 'optionalAccess', _559 => _559.signal, 'access', _560 => _560.aborted])) return;
17257
17288
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
17258
17289
  }
17259
- if (_optionalChain([ctrl, 'optionalAccess', _554 => _554.signal, 'access', _555 => _555.aborted])) return;
17290
+ if (_optionalChain([ctrl, 'optionalAccess', _561 => _561.signal, 'access', _562 => _562.aborted])) return;
17260
17291
  if (!sniffed) {
17261
17292
  throw new Error("Unrecognized file format");
17262
17293
  }
@@ -17270,7 +17301,7 @@ function useChatAttachments() {
17270
17301
  const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17271
17302
  method: "POST",
17272
17303
  headers: { "Content-Type": "application/json" },
17273
- signal: _optionalChain([ctrl, 'optionalAccess', _556 => _556.signal]),
17304
+ signal: _optionalChain([ctrl, 'optionalAccess', _563 => _563.signal]),
17274
17305
  body: JSON.stringify({
17275
17306
  fileName: att.file.name,
17276
17307
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -17299,9 +17330,9 @@ function useChatAttachments() {
17299
17330
  (pct) => {
17300
17331
  updateOne(att.id, { progress: pct });
17301
17332
  },
17302
- _optionalChain([ctrl, 'optionalAccess', _557 => _557.signal])
17333
+ _optionalChain([ctrl, 'optionalAccess', _564 => _564.signal])
17303
17334
  );
17304
- if (_optionalChain([ctrl, 'optionalAccess', _558 => _558.signal, 'access', _559 => _559.aborted])) return;
17335
+ if (_optionalChain([ctrl, 'optionalAccess', _565 => _565.signal, 'access', _566 => _566.aborted])) return;
17305
17336
  updateOne(att.id, {
17306
17337
  status: "ready",
17307
17338
  progress: 100,
@@ -17309,7 +17340,7 @@ function useChatAttachments() {
17309
17340
  viewToken: mintData.viewToken
17310
17341
  });
17311
17342
  } catch (err) {
17312
- if (_optionalChain([ctrl, 'optionalAccess', _560 => _560.signal, 'access', _561 => _561.aborted])) return;
17343
+ if (_optionalChain([ctrl, 'optionalAccess', _567 => _567.signal, 'access', _568 => _568.aborted])) return;
17313
17344
  const message = err instanceof Error ? err.message : String(err);
17314
17345
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
17315
17346
  } finally {
@@ -17431,7 +17462,7 @@ function useChatAttachmentImageGallery() {
17431
17462
  return () => root.removeEventListener("click", onClick);
17432
17463
  }, [viewUrlPrefix]);
17433
17464
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17434
- _chunkEYKTKDRKcjs.ImageGalleryModal,
17465
+ _chunkCS7MVDUFcjs.ImageGalleryModal,
17435
17466
  {
17436
17467
  images: state.images,
17437
17468
  isOpen: state.isOpen,
@@ -17458,11 +17489,11 @@ var ANON_DEFAULTS = {
17458
17489
  function useResolveChatIdentity(enabled) {
17459
17490
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17460
17491
  const url = runtime.endpoints.identityUrl;
17461
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _562 => _562.email]), () => ( null));
17492
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _569 => _569.email]), () => ( null));
17462
17493
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
17463
17494
  const [resolved, setResolved] = _react.useState.call(void 0, null);
17464
- const data = _optionalChain([resolved, 'optionalAccess', _563 => _563.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17465
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _564 => _564.key]) !== requestKey;
17495
+ const data = _optionalChain([resolved, 'optionalAccess', _570 => _570.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17496
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _571 => _571.key]) !== requestKey;
17466
17497
  _react.useEffect.call(void 0, () => {
17467
17498
  if (requestKey === null) return void 0;
17468
17499
  let cancelled = false;
@@ -17609,7 +17640,7 @@ function useChat({
17609
17640
  onMessagesChangeRef.current = onMessagesChange;
17610
17641
  });
17611
17642
  _react.useEffect.call(void 0, () => {
17612
- _optionalChain([onMessagesChangeRef, 'access', _565 => _565.current, 'optionalCall', _566 => _566(messages)]);
17643
+ _optionalChain([onMessagesChangeRef, 'access', _572 => _572.current, 'optionalCall', _573 => _573(messages)]);
17613
17644
  }, [messages]);
17614
17645
  const {
17615
17646
  streamMessage,
@@ -17646,7 +17677,7 @@ function useChat({
17646
17677
  name: "You",
17647
17678
  content: text2,
17648
17679
  timestamp: /* @__PURE__ */ new Date(),
17649
- ..._optionalChain([options, 'optionalAccess', _567 => _567.hidden]) ? { hidden: true } : {}
17680
+ ..._optionalChain([options, 'optionalAccess', _574 => _574.hidden]) ? { hidden: true } : {}
17650
17681
  };
17651
17682
  addMessage(userMessage);
17652
17683
  setIsTyping(true);
@@ -17860,7 +17891,7 @@ function buildConfirmToolBody(request) {
17860
17891
  async function readServerErrorMessage(response) {
17861
17892
  try {
17862
17893
  const body = await response.json();
17863
- if (typeof _optionalChain([body, 'optionalAccess', _568 => _568.error]) === "string" && body.error.length > 0) return body.error;
17894
+ if (typeof _optionalChain([body, 'optionalAccess', _575 => _575.error]) === "string" && body.error.length > 0) return body.error;
17864
17895
  } catch (e58) {
17865
17896
  }
17866
17897
  return null;
@@ -18167,7 +18198,7 @@ function youtubeVideoId(value) {
18167
18198
  const hostname = parsed.hostname.toLowerCase();
18168
18199
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
18169
18200
  if (!isYoutubeHost) return void 0;
18170
- const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _569 => _569.exec, 'call', _570 => _570(parsed.pathname), 'optionalAccess', _571 => _571[1]]);
18201
+ 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]]);
18171
18202
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
18172
18203
  return id && YOUTUBE_ID.test(id) ? id : void 0;
18173
18204
  }
@@ -18286,11 +18317,11 @@ function cards(value, decodedSources) {
18286
18317
  {
18287
18318
  type,
18288
18319
  id,
18289
- title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _572 => _572.name]), () => ( id)),
18290
- url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _573 => _573.externalUrl]), () => ( null)),
18291
- ..._optionalChain([source, 'optionalAccess', _574 => _574.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18292
- ..._optionalChain([source, 'optionalAccess', _575 => _575.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18293
- ..._optionalChain([source, 'optionalAccess', _576 => _576.path]) ? { metadata: { path: source.path } } : {}
18320
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _579 => _579.name]), () => ( id)),
18321
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _580 => _580.externalUrl]), () => ( null)),
18322
+ ..._optionalChain([source, 'optionalAccess', _581 => _581.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18323
+ ..._optionalChain([source, 'optionalAccess', _582 => _582.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18324
+ ..._optionalChain([source, 'optionalAccess', _583 => _583.path]) ? { metadata: { path: source.path } } : {}
18294
18325
  }
18295
18326
  ];
18296
18327
  });
@@ -18316,11 +18347,11 @@ function sourceMetadataEvent(payload) {
18316
18347
  }
18317
18348
  function mergeSourceMetadata(previous, event) {
18318
18349
  const byIndex = /* @__PURE__ */ new Map();
18319
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _577 => _577.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18350
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _584 => _584.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18320
18351
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
18321
18352
  }
18322
18353
  const byIdentity = /* @__PURE__ */ new Map();
18323
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _578 => _578.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18354
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _585 => _585.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18324
18355
  const identity = `${ref.type}:${ref.id}`;
18325
18356
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
18326
18357
  }
@@ -18406,9 +18437,9 @@ function appendToTrailingAssistant(prev, segments) {
18406
18437
  for (const seg of segments) {
18407
18438
  const tail = merged[merged.length - 1];
18408
18439
  const key = upsertKey(seg);
18409
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _579 => _579.type]) === "text") {
18440
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _586 => _586.type]) === "text") {
18410
18441
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
18411
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _580 => _580.type]) === "thinking") {
18442
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _587 => _587.type]) === "thinking") {
18412
18443
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
18413
18444
  } else if (key) {
18414
18445
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -18449,7 +18480,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18449
18480
  }
18450
18481
  if (s.type !== "approval_batch") return s;
18451
18482
  const isAnchor = s.data.approvalRequestId === requestId;
18452
- const hasRow = _optionalChain([s, 'access', _581 => _581.data, 'access', _582 => _582.toolCalls, 'optionalAccess', _583 => _583.some, 'call', _584 => _584((c) => c.toolExecutionRequestId === requestId)]);
18483
+ const hasRow = _optionalChain([s, 'access', _588 => _588.data, 'access', _589 => _589.toolCalls, 'optionalAccess', _590 => _590.some, 'call', _591 => _591((c) => c.toolExecutionRequestId === requestId)]);
18453
18484
  if (!isAnchor && !hasRow) return s;
18454
18485
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
18455
18486
  const nextExecutions = hasRow ? {
@@ -18471,8 +18502,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18471
18502
  };
18472
18503
  }
18473
18504
  function nextBatchExecution(prevExec, toolData) {
18474
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _585 => _585.status]) === "done") return null;
18475
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _586 => _586.result]), success: _optionalChain([prevExec, 'optionalAccess', _587 => _587.success]) };
18505
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _592 => _592.status]) === "done") return null;
18506
+ 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]) };
18476
18507
  }
18477
18508
  function withBatchExecution(seg, execId, state) {
18478
18509
  return {
@@ -18489,11 +18520,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
18489
18520
  }
18490
18521
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
18491
18522
  return mapSegments(prev, (s) => {
18492
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _588 => _588.data, 'access', _589 => _589.toolCalls, 'optionalAccess', _590 => _590.some, 'call', _591 => _591((c) => c.toolExecutionRequestId === rowRequestId)])) {
18523
+ 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)])) {
18493
18524
  return s;
18494
18525
  }
18495
- const existing = _optionalChain([s, 'access', _592 => _592.data, 'access', _593 => _593.executions, 'optionalAccess', _594 => _594[rowRequestId]]);
18496
- if (_optionalChain([existing, 'optionalAccess', _595 => _595.status]) === "done") return s;
18526
+ const existing = _optionalChain([s, 'access', _599 => _599.data, 'access', _600 => _600.executions, 'optionalAccess', _601 => _601[rowRequestId]]);
18527
+ if (_optionalChain([existing, 'optionalAccess', _602 => _602.status]) === "done") return s;
18497
18528
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
18498
18529
  });
18499
18530
  }
@@ -18529,7 +18560,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
18529
18560
  for (let j = message.segments.length - 1; j >= 0; j--) {
18530
18561
  const seg = message.segments[j];
18531
18562
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
18532
- const prevExec = _optionalChain([seg, 'access', _596 => _596.data, 'access', _597 => _597.executions, 'optionalAccess', _598 => _598[execId]]);
18563
+ const prevExec = _optionalChain([seg, 'access', _603 => _603.data, 'access', _604 => _604.executions, 'optionalAccess', _605 => _605[execId]]);
18533
18564
  const nextExec = nextBatchExecution(prevExec, toolData);
18534
18565
  if (nextExec === null) return prev;
18535
18566
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -18702,9 +18733,9 @@ var MessageSegmentAccumulator = class {
18702
18733
  type: "tool_execution",
18703
18734
  data: {
18704
18735
  ...toolData,
18705
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _599 => _599.data, 'access', _600 => _600.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _601 => _601.toolTitle]))),
18706
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _602 => _602.data, 'access', _603 => _603.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _604 => _604.toolExplanation]))),
18707
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _605 => _605.parameters])
18736
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _606 => _606.data, 'access', _607 => _607.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _608 => _608.toolTitle]))),
18737
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _609 => _609.data, 'access', _610 => _610.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _611 => _611.toolExplanation]))),
18738
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _612 => _612.parameters])
18708
18739
  }
18709
18740
  };
18710
18741
  if (existingIndex !== -1) {
@@ -18728,7 +18759,7 @@ var MessageSegmentAccumulator = class {
18728
18759
  if (seg.type !== "approval_batch") return seg;
18729
18760
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
18730
18761
  if (!hasCall) return seg;
18731
- const prev = _optionalChain([seg, 'access', _606 => _606.data, 'access', _607 => _607.executions, 'optionalAccess', _608 => _608[execId]]);
18762
+ const prev = _optionalChain([seg, 'access', _613 => _613.data, 'access', _614 => _614.executions, 'optionalAccess', _615 => _615[execId]]);
18732
18763
  const next = nextBatchExecution(prev, toolData);
18733
18764
  matched = true;
18734
18765
  if (next === null) return seg;
@@ -18862,8 +18893,8 @@ var MessageSegmentAccumulator = class {
18862
18893
  requestId,
18863
18894
  {
18864
18895
  ...pendingApproval,
18865
- command: _optionalChain([pendingApproval, 'optionalAccess', _609 => _609.command]) || "",
18866
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _610 => _610.approvalType]) || approvalType
18896
+ command: _optionalChain([pendingApproval, 'optionalAccess', _616 => _616.command]) || "",
18897
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _617 => _617.approvalType]) || approvalType
18867
18898
  },
18868
18899
  status
18869
18900
  );
@@ -18888,9 +18919,9 @@ var MessageSegmentAccumulator = class {
18888
18919
  type: "escalation_offer",
18889
18920
  // The resolved chunk carries no text/origin — a redelivered offer must
18890
18921
  // not blank the card the PENDING chunk already painted.
18891
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _611 => _611.data, 'access', _612 => _612.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _613 => _613.data, 'access', _614 => _614.origin]))) },
18922
+ 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]))) },
18892
18923
  status,
18893
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _615 => _615.resolvedByName]))),
18924
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _622 => _622.resolvedByName]))),
18894
18925
  onApprove: this.callbacks.onEscalationApprove,
18895
18926
  onReject: this.callbacks.onEscalationReject
18896
18927
  };
@@ -19215,7 +19246,7 @@ function createChatStreamReducer(options = {}) {
19215
19246
  let stateCache = null;
19216
19247
  function invalidate() {
19217
19248
  stateCache = null;
19218
- _optionalChain([onChange, 'optionalCall', _616 => _616()]);
19249
+ _optionalChain([onChange, 'optionalCall', _623 => _623()]);
19219
19250
  }
19220
19251
  function getState() {
19221
19252
  if (!stateCache) {
@@ -19231,7 +19262,7 @@ function createChatStreamReducer(options = {}) {
19231
19262
  return stateCache;
19232
19263
  }
19233
19264
  function emit(name, ...args) {
19234
- _optionalChain([onEffect, 'optionalCall', _617 => _617({ name, args })]);
19265
+ _optionalChain([onEffect, 'optionalCall', _624 => _624({ name, args })]);
19235
19266
  }
19236
19267
  function setMessagesInternal(next) {
19237
19268
  if (next !== messages) {
@@ -19274,12 +19305,12 @@ function createChatStreamReducer(options = {}) {
19274
19305
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
19275
19306
  }
19276
19307
  function applySegmentsToState(segments, meta) {
19277
- const seq = _optionalChain([meta, 'optionalAccess', _618 => _618.streamSeq]);
19278
- if (_optionalChain([meta, 'optionalAccess', _619 => _619.append]) && meta.isCompacting) {
19308
+ const seq = _optionalChain([meta, 'optionalAccess', _625 => _625.streamSeq]);
19309
+ if (_optionalChain([meta, 'optionalAccess', _626 => _626.append]) && meta.isCompacting) {
19279
19310
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
19280
19311
  return;
19281
19312
  }
19282
- if (_optionalChain([meta, 'optionalAccess', _620 => _620.append])) {
19313
+ if (_optionalChain([meta, 'optionalAccess', _627 => _627.append])) {
19283
19314
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
19284
19315
  return;
19285
19316
  }
@@ -19291,7 +19322,7 @@ function createChatStreamReducer(options = {}) {
19291
19322
  adoptTrailingAssistant = false;
19292
19323
  const last = messages[messages.length - 1];
19293
19324
  if (!last || last.role !== "assistant" || adoptTail) return;
19294
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _621 => _621.segments, 'optionalAccess', _622 => _622.length]), () => ( 0))) > 0 || last.content !== "";
19325
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _628 => _628.segments, 'optionalAccess', _629 => _629.length]), () => ( 0))) > 0 || last.content !== "";
19295
19326
  if (!hasContent) return;
19296
19327
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
19297
19328
  }
@@ -19510,13 +19541,13 @@ function createChatStreamReducer(options = {}) {
19510
19541
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
19511
19542
  pendingEscalated.set(requestId, {
19512
19543
  command: summary,
19513
- explanation: _optionalChain([required, 'optionalAccess', _623 => _623.toolExplanation]),
19544
+ explanation: _optionalChain([required, 'optionalAccess', _630 => _630.toolExplanation]),
19514
19545
  approvalType,
19515
19546
  toolCalls
19516
19547
  });
19517
19548
  emit("onEscalatedApproval", requestId, {
19518
19549
  command: summary,
19519
- explanation: _optionalChain([required, 'optionalAccess', _624 => _624.toolExplanation]),
19550
+ explanation: _optionalChain([required, 'optionalAccess', _631 => _631.toolExplanation]),
19520
19551
  approvalType
19521
19552
  });
19522
19553
  break;
@@ -19900,7 +19931,7 @@ function createChatStreamReducer(options = {}) {
19900
19931
  const resolveBatch = (status, confirm) => async () => {
19901
19932
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
19902
19933
  for (const id of ids) {
19903
- const ok = await _optionalChain([confirm, 'optionalCall', _625 => _625(id)]);
19934
+ const ok = await _optionalChain([confirm, 'optionalCall', _632 => _632(id)]);
19904
19935
  if (ok === false) {
19905
19936
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
19906
19937
  }
@@ -20036,8 +20067,8 @@ function createChatStreamReducer(options = {}) {
20036
20067
  }
20037
20068
  }
20038
20069
  }
20039
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _626 => _626.resumed]), () => ( messages.length > 0)));
20040
- if (_optionalChain([extras, 'optionalAccess', _627 => _627.agentBusy])) agentBusyState();
20070
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _633 => _633.resumed]), () => ( messages.length > 0)));
20071
+ if (_optionalChain([extras, 'optionalAccess', _634 => _634.agentBusy])) agentBusyState();
20041
20072
  invalidate();
20042
20073
  }
20043
20074
  return {
@@ -20122,7 +20153,7 @@ function createChatStreamReducer(options = {}) {
20122
20153
  },
20123
20154
  endSseTurn() {
20124
20155
  const last = messages[messages.length - 1];
20125
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _628 => _628.segments, 'optionalAccess', _629 => _629.length]), () => ( 0))) === 0 && last.content === "") {
20156
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _635 => _635.segments, 'optionalAccess', _636 => _636.length]), () => ( 0))) === 0 && last.content === "") {
20126
20157
  messages = messages.slice(0, -1);
20127
20158
  }
20128
20159
  sseCurrentText = "";
@@ -20275,10 +20306,10 @@ function createChatDialogStore(options = {}) {
20275
20306
  if (onEvict) {
20276
20307
  const sep = key.indexOf(KEY_SEP);
20277
20308
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
20278
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _630 => _630.state, 'access', _631 => _631.messages]), () => ( EMPTY_STATE.messages)),
20279
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _632 => _632.state, 'access', _633 => _633.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20280
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _634 => _634.getLastAppliedSeq, 'call', _635 => _635()]), () => ( Number.NEGATIVE_INFINITY)),
20281
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _636 => _636.getPendingEchoes, 'call', _637 => _637()]), () => ( EMPTY_PENDING_ECHOES))
20309
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _637 => _637.state, 'access', _638 => _638.messages]), () => ( EMPTY_STATE.messages)),
20310
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _639 => _639.state, 'access', _640 => _640.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20311
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _641 => _641.getLastAppliedSeq, 'call', _642 => _642()]), () => ( Number.NEGATIVE_INFINITY)),
20312
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _643 => _643.getPendingEchoes, 'call', _644 => _644()]), () => ( EMPTY_PENDING_ECHOES))
20282
20313
  });
20283
20314
  }
20284
20315
  }
@@ -20288,12 +20319,12 @@ function createChatDialogStore(options = {}) {
20288
20319
  const key = keyOf(dialogId, side);
20289
20320
  let reducer = reducers.get(key);
20290
20321
  if (!reducer) {
20291
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _638 => _638(dialogId, side)]), () => ( {}));
20322
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _645 => _645(dialogId, side)]), () => ( {}));
20292
20323
  const userOnChange = base.onChange;
20293
20324
  reducer = createChatStreamReducer({
20294
20325
  ...base,
20295
20326
  onChange: () => {
20296
- _optionalChain([userOnChange, 'optionalCall', _639 => _639()]);
20327
+ _optionalChain([userOnChange, 'optionalCall', _646 => _646()]);
20297
20328
  notify();
20298
20329
  }
20299
20330
  });
@@ -20338,7 +20369,7 @@ function createChatDialogStore(options = {}) {
20338
20369
  };
20339
20370
  }
20340
20371
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
20341
- return _nullishCoalesce(_optionalChain([reducers, 'access', _640 => _640.get, 'call', _641 => _641(keyOf(dialogId, side)), 'optionalAccess', _642 => _642.state]), () => ( EMPTY_STATE));
20372
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _647 => _647.get, 'call', _648 => _648(keyOf(dialogId, side)), 'optionalAccess', _649 => _649.state]), () => ( EMPTY_STATE));
20342
20373
  }
20343
20374
  function getServerSnapshot2() {
20344
20375
  return EMPTY_STATE;
@@ -20430,7 +20461,7 @@ function createDeltaBatcher({
20430
20461
  pending = [];
20431
20462
  const key = pendingKey;
20432
20463
  for (const delta of batch) applyOne(delta, key);
20433
- _optionalChain([onFlushed, 'optionalCall', _643 => _643(batch.length)]);
20464
+ _optionalChain([onFlushed, 'optionalCall', _650 => _650(batch.length)]);
20434
20465
  }
20435
20466
  function schedule() {
20436
20467
  if (raf !== null || timer !== null) return;
@@ -20454,7 +20485,7 @@ function createDeltaBatcher({
20454
20485
  }
20455
20486
  if (!isDeltaEvent(event)) return false;
20456
20487
  const tail = pending[pending.length - 1];
20457
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _644 => _644.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20488
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _651 => _651.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20458
20489
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
20459
20490
  pending[pending.length - 1] = {
20460
20491
  ...tail,
@@ -20485,7 +20516,7 @@ function useChatStreamReducer({
20485
20516
  side = DEFAULT_DIALOG_SIDE,
20486
20517
  createReducerOptions
20487
20518
  }) {
20488
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _645 => _645()]), () => ( {})));
20519
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _652 => _652()]), () => ( {})));
20489
20520
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
20490
20521
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
20491
20522
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -20524,7 +20555,7 @@ var STORAGE_KEY = "conversation";
20524
20555
  var namespaceFor = (source) => {
20525
20556
  const base = `mingo-chat-${source}`;
20526
20557
  const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
20527
- return _optionalChain([auth, 'optionalAccess', _646 => _646.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20558
+ return _optionalChain([auth, 'optionalAccess', _653 => _653.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20528
20559
  };
20529
20560
  function createChatConversationStorage(source) {
20530
20561
  return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
@@ -20636,7 +20667,7 @@ function formatSingularLookupInvocation(cmdId, value) {
20636
20667
  return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
20637
20668
  }
20638
20669
  function extractEntityIdFilter(override, expectedTableId) {
20639
- const f = _optionalChain([override, 'optionalAccess', _647 => _647.entityIdFilter]);
20670
+ const f = _optionalChain([override, 'optionalAccess', _654 => _654.entityIdFilter]);
20640
20671
  if (!f) return null;
20641
20672
  const tableId = typeof f.tableId === "string" ? f.tableId : "";
20642
20673
  const id = typeof f.id === "string" ? f.id : "";
@@ -20675,7 +20706,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
20675
20706
  function buildAutoContinuationDirective(toolName, opts = {}) {
20676
20707
  const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
20677
20708
  const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
20678
- const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _648 => _648.status, 'optionalAccess', _649 => _649.toUpperCase, 'call', _650 => _650()]) === "CLOSED";
20709
+ const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _655 => _655.status, 'optionalAccess', _656 => _656.toUpperCase, 'call', _657 => _657()]) === "CLOSED";
20679
20710
  if (toolName === "create_ticket") {
20680
20711
  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.`;
20681
20712
  }
@@ -20725,7 +20756,7 @@ function useChatHistoryHydration({
20725
20756
  if (cancelled) return;
20726
20757
  if (rows.length === 0) {
20727
20758
  const found = isRecord(body) ? body.found : void 0;
20728
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _651 => _651(conversationId)]);
20759
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _658 => _658(conversationId)]);
20729
20760
  return;
20730
20761
  }
20731
20762
  const hydrated = [];
@@ -20869,7 +20900,7 @@ function useManagedDialogList({
20869
20900
  try {
20870
20901
  await deleteDialogCallback(id);
20871
20902
  removeLocal(id);
20872
- _optionalChain([onDialogRemovedRef, 'access', _652 => _652.current, 'optionalCall', _653 => _653(id, "deleted")]);
20903
+ _optionalChain([onDialogRemovedRef, 'access', _659 => _659.current, 'optionalCall', _660 => _660(id, "deleted")]);
20873
20904
  } catch (err) {
20874
20905
  console.error(`${logTag} deleteDialog failed:`, err);
20875
20906
  throw err;
@@ -20880,7 +20911,7 @@ function useManagedDialogList({
20880
20911
  const renameDialog = _react.useCallback.call(void 0,
20881
20912
  async (id, title) => {
20882
20913
  if (!renameDialogCallback) return;
20883
- const previous = _optionalChain([dialogsRef, 'access', _654 => _654.current, 'access', _655 => _655.find, 'call', _656 => _656((d) => d.id === id), 'optionalAccess', _657 => _657.title]);
20914
+ const previous = _optionalChain([dialogsRef, 'access', _661 => _661.current, 'access', _662 => _662.find, 'call', _663 => _663((d) => d.id === id), 'optionalAccess', _664 => _664.title]);
20884
20915
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
20885
20916
  try {
20886
20917
  await renameDialogCallback(id, title);
@@ -20899,7 +20930,7 @@ function useManagedDialogList({
20899
20930
  try {
20900
20931
  await archiveDialogCallback(id);
20901
20932
  removeLocal(id);
20902
- _optionalChain([onDialogRemovedRef, 'access', _658 => _658.current, 'optionalCall', _659 => _659(id, "archived")]);
20933
+ _optionalChain([onDialogRemovedRef, 'access', _665 => _665.current, 'optionalCall', _666 => _666(id, "archived")]);
20903
20934
  } catch (err) {
20904
20935
  console.error(`${logTag} archiveDialog failed:`, err);
20905
20936
  throw err;
@@ -20991,7 +21022,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20991
21022
  const { active = true } = runtimeOptions;
20992
21023
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
20993
21024
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
20994
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _660 => _660.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21025
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _667 => _667.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
20995
21026
  const sendMessageRef = _react.useRef.call(void 0,
20996
21027
  () => Promise.resolve(true)
20997
21028
  );
@@ -21027,7 +21058,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21027
21058
  if (!restoredConversationRef.current) {
21028
21059
  restoredConversationRef.current = true;
21029
21060
  pruneStaleChatConversationStorage(source);
21030
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _661 => _661.load, 'call', _662 => _662(), 'optionalAccess', _663 => _663.conversationId]), () => ( null));
21061
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _668 => _668.load, 'call', _669 => _669(), 'optionalAccess', _670 => _670.conversationId]), () => ( null));
21031
21062
  }
21032
21063
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
21033
21064
  const commitConversationId = _react.useCallback.call(void 0,
@@ -21118,7 +21149,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21118
21149
  const abortControllerRef = _react.useRef.call(void 0, null);
21119
21150
  const switchConversation = _react.useCallback.call(void 0,
21120
21151
  (id) => {
21121
- _optionalChain([abortControllerRef, 'access', _664 => _664.current, 'optionalAccess', _665 => _665.abort, 'call', _666 => _666()]);
21152
+ _optionalChain([abortControllerRef, 'access', _671 => _671.current, 'optionalAccess', _672 => _672.abort, 'call', _673 => _673()]);
21122
21153
  flushDeltas();
21123
21154
  mutate((r) => r.reset());
21124
21155
  hydrationSendCountRef.current = 0;
@@ -21155,8 +21186,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21155
21186
  } = useManagedDialogList({
21156
21187
  autoLoad: active,
21157
21188
  fetchDialogs: fetchActiveDialogs,
21158
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _667 => _667.renameDialog]),
21159
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _668 => _668.archiveDialog]),
21189
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _674 => _674.renameDialog]),
21190
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _675 => _675.archiveDialog]),
21160
21191
  pageSize: 20,
21161
21192
  search: conversationsApi ? dialogSearch : void 0,
21162
21193
  logTag: "[useSseChatAdapter]",
@@ -21220,7 +21251,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21220
21251
  const serverMessage = await readServerErrorMessage(response);
21221
21252
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
21222
21253
  }
21223
- const reader = _optionalChain([response, 'access', _669 => _669.body, 'optionalAccess', _670 => _670.getReader, 'call', _671 => _671()]);
21254
+ const reader = _optionalChain([response, 'access', _676 => _676.body, 'optionalAccess', _677 => _677.getReader, 'call', _678 => _678()]);
21224
21255
  if (!reader) throw new Error("No response body");
21225
21256
  const frameDecoder = createSseFrameDecoder();
21226
21257
  let finished = false;
@@ -21249,7 +21280,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21249
21280
  }
21250
21281
  return true;
21251
21282
  } catch (err) {
21252
- if (_optionalChain([err, 'optionalAccess', _672 => _672.name]) === "AbortError" || ctrl.signal.aborted) {
21283
+ if (_optionalChain([err, 'optionalAccess', _679 => _679.name]) === "AbortError" || ctrl.signal.aborted) {
21253
21284
  return true;
21254
21285
  }
21255
21286
  flushDeltas();
@@ -21285,7 +21316,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21285
21316
  );
21286
21317
  sendMessageRef.current = sendMessage;
21287
21318
  const stopMessage = _react.useCallback.call(void 0, () => {
21288
- _optionalChain([abortControllerRef, 'access', _673 => _673.current, 'optionalAccess', _674 => _674.abort, 'call', _675 => _675()]);
21319
+ _optionalChain([abortControllerRef, 'access', _680 => _680.current, 'optionalAccess', _681 => _681.abort, 'call', _682 => _682()]);
21289
21320
  flushDeltas();
21290
21321
  mutate((r) => r.setPhase("idle"));
21291
21322
  }, [mutate, flushDeltas]);
@@ -21321,7 +21352,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21321
21352
  let sendIdx = -1;
21322
21353
  return state.messages.map((m) => {
21323
21354
  const segments = m.segments;
21324
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _676 => _676.filter, 'call', _677 => _677((s) => s.type === "text"), 'access', _678 => _678.map, 'call', _679 => _679((s) => s.text), 'access', _680 => _680.join, 'call', _681 => _681("")]), () => ( ""));
21355
+ 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("")]), () => ( ""));
21325
21356
  let sources2;
21326
21357
  let scrollAnchor;
21327
21358
  if (m.role === "user" && !m.hidden) {
@@ -21330,7 +21361,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21330
21361
  if (m.role === "assistant") {
21331
21362
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
21332
21363
  sources2 = sourcesMap.get(lookupIdx);
21333
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _682 => _682.get, 'call', _683 => _683(lookupIdx), 'optionalAccess', _684 => _684.scrollAnchor]), () => ( void 0));
21364
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _689 => _689.get, 'call', _690 => _690(lookupIdx), 'optionalAccess', _691 => _691.scrollAnchor]), () => ( void 0));
21334
21365
  }
21335
21366
  return {
21336
21367
  id: m.id,
@@ -21357,7 +21388,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21357
21388
  );
21358
21389
  return;
21359
21390
  }
21360
- const refSlug = typeof _optionalChain([reference, 'access', _685 => _685.metadata, 'optionalAccess', _686 => _686.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21391
+ const refSlug = typeof _optionalChain([reference, 'access', _692 => _692.metadata, 'optionalAccess', _693 => _693.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21361
21392
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
21362
21393
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
21363
21394
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -21403,18 +21434,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21403
21434
  /** True while the mount-time rebuild from the server transcript runs. */
21404
21435
  isHydratingHistory,
21405
21436
  /** Provider key for the lib's `<ModelDisplay>` icon. */
21406
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _687 => _687.provider]), () => ( null)),
21407
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _688 => _688.modelLabel]), () => ( null)),
21408
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _689 => _689.contextWindowMaxTokens]), () => ( null)),
21437
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _694 => _694.provider]), () => ( null)),
21438
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _695 => _695.modelLabel]), () => ( null)),
21439
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _696 => _696.contextWindowMaxTokens]), () => ( null)),
21409
21440
  /** Input tokens (known after server's message_start frame; null until). */
21410
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _690 => _690.inputTokens]), () => ( null)),
21441
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _697 => _697.inputTokens]), () => ( null)),
21411
21442
  /** Output tokens (known only after server's trailing usage frame). */
21412
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _691 => _691.outputTokens]), () => ( null)),
21443
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _698 => _698.outputTokens]), () => ( null)),
21413
21444
  /** Cache hit % (read / total-input × 100). null during streaming. */
21414
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _692 => _692.cacheHitRatePct]), () => ( null)),
21445
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _699 => _699.cacheHitRatePct]), () => ( null)),
21415
21446
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
21416
21447
  * token counts). null until the trailing usage frame lands. */
21417
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _693 => _693.breakdown]), () => ( null)),
21448
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _700 => _700.breakdown]), () => ( null)),
21418
21449
  // ─── Dialog management ───────────────────────────────────────────────
21419
21450
  // With `chatConversationsUrl` the server transcript store IS the dialog
21420
21451
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -21669,7 +21700,7 @@ function decodeNatsChunk(chunk) {
21669
21700
  userId: typeof data.userId === "string" ? data.userId : void 0,
21670
21701
  // Wire shape carries no label; fall back to the id (parity with
21671
21702
  // the history path in `process-historical-messages.ts`).
21672
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _694 => _694.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _695 => _695.id]) === "string").map((it) => ({
21703
+ 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) => ({
21673
21704
  type: it.type,
21674
21705
  id: it.id,
21675
21706
  label: it.id
@@ -21760,7 +21791,7 @@ function extractIncompleteMessageState(lastMessage) {
21760
21791
  }
21761
21792
  break;
21762
21793
  case "approval_batch": {
21763
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _696 => _696.data, 'access', _697 => _697.executions, 'optionalAccess', _698 => _698[c.toolExecutionRequestId], 'optionalAccess', _699 => _699.status]) === "done");
21794
+ 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");
21764
21795
  if (segment.status !== "rejected" && !allDone) {
21765
21796
  hasIncompleteState = true;
21766
21797
  }
@@ -21822,11 +21853,11 @@ function extractIncompleteMessageState(lastMessage) {
21822
21853
  function extractIncompleteTailState(messages) {
21823
21854
  if (!messages || messages.length === 0) return void 0;
21824
21855
  let start = messages.length;
21825
- while (start > 0 && _optionalChain([messages, 'access', _700 => _700[start - 1], 'optionalAccess', _701 => _701.role]) === "assistant") start -= 1;
21856
+ while (start > 0 && _optionalChain([messages, 'access', _707 => _707[start - 1], 'optionalAccess', _708 => _708.role]) === "assistant") start -= 1;
21826
21857
  if (start === messages.length) return void 0;
21827
21858
  const segments = [];
21828
21859
  for (let i = start; i < messages.length; i += 1) {
21829
- const content = _optionalChain([messages, 'access', _702 => _702[i], 'optionalAccess', _703 => _703.content]);
21860
+ const content = _optionalChain([messages, 'access', _709 => _709[i], 'optionalAccess', _710 => _710.content]);
21830
21861
  if (Array.isArray(content)) segments.push(...content);
21831
21862
  }
21832
21863
  if (segments.length === 0) return void 0;
@@ -21839,15 +21870,15 @@ function extractIncompleteTailState(messages) {
21839
21870
 
21840
21871
  // src/components/chat/utils/process-historical-messages.ts
21841
21872
  function getOwnerDisplayName(owner) {
21842
- if (_optionalChain([owner, 'optionalAccess', _704 => _704.type]) === OWNER_TYPE.ADMIN && owner.user) {
21873
+ if (_optionalChain([owner, 'optionalAccess', _711 => _711.type]) === OWNER_TYPE.ADMIN && owner.user) {
21843
21874
  const { firstName, lastName } = owner.user;
21844
21875
  const name = [firstName, lastName].filter(Boolean).join(" ");
21845
21876
  if (name) return name;
21846
21877
  }
21847
- return _optionalChain([owner, 'optionalAccess', _705 => _705.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21878
+ return _optionalChain([owner, 'optionalAccess', _712 => _712.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21848
21879
  }
21849
21880
  function getOwnerAvatar(owner) {
21850
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _706 => _706.user, 'optionalAccess', _707 => _707.image, 'optionalAccess', _708 => _708.imageUrl]), () => ( void 0));
21881
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _713 => _713.user, 'optionalAccess', _714 => _714.image, 'optionalAccess', _715 => _715.imageUrl]), () => ( void 0));
21851
21882
  }
21852
21883
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
21853
21884
  messageDataArray.forEach((data) => {
@@ -22037,7 +22068,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22037
22068
  event.offerId,
22038
22069
  event.text,
22039
22070
  event.origin,
22040
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _709 => _709[event.offerId]]), () => ( "pending"))
22071
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _716 => _716[event.offerId]]), () => ( "pending"))
22041
22072
  );
22042
22073
  break;
22043
22074
  case "ticket-escalated":
@@ -22071,7 +22102,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22071
22102
  );
22072
22103
  break;
22073
22104
  case "escalation-offer-resolved":
22074
- _optionalChain([offerResolutions, 'optionalAccess', _710 => _710.set, 'call', _711 => _711(event.offerId, {
22105
+ _optionalChain([offerResolutions, 'optionalAccess', _717 => _717.set, 'call', _718 => _718(event.offerId, {
22075
22106
  status: event.status,
22076
22107
  resolvedByName: event.resolvedByName
22077
22108
  })]);
@@ -22135,7 +22166,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22135
22166
  }
22136
22167
  }
22137
22168
  } else {
22138
- _optionalChain([escalatedApprovals, 'optionalAccess', _712 => _712.set, 'call', _713 => _713(event.requestId, {
22169
+ _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.set, 'call', _720 => _720(event.requestId, {
22139
22170
  command: event.command || "",
22140
22171
  explanation: event.explanation,
22141
22172
  approvalType,
@@ -22150,8 +22181,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22150
22181
  const existingStatus = approvalStatuses[requestId];
22151
22182
  const status = existingStatus || event.status;
22152
22183
  const resolvedByName = event.resolvedByName;
22153
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _714 => _714.get, 'call', _715 => _715(requestId)]);
22154
- if (_optionalChain([escalatedData, 'optionalAccess', _716 => _716.toolCalls]) && escalatedData.toolCalls.length > 0) {
22184
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _721 => _721.get, 'call', _722 => _722(requestId)]);
22185
+ if (_optionalChain([escalatedData, 'optionalAccess', _723 => _723.toolCalls]) && escalatedData.toolCalls.length > 0) {
22155
22186
  if (batchApprovalsEnabled) {
22156
22187
  accumulator.addApprovalBatch(
22157
22188
  requestId,
@@ -22173,7 +22204,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22173
22204
  );
22174
22205
  }
22175
22206
  }
22176
- _optionalChain([escalatedApprovals, 'optionalAccess', _717 => _717.delete, 'call', _718 => _718(requestId)]);
22207
+ _optionalChain([escalatedApprovals, 'optionalAccess', _724 => _724.delete, 'call', _725 => _725(requestId)]);
22177
22208
  break;
22178
22209
  }
22179
22210
  if (escalatedData) {
@@ -22182,7 +22213,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22182
22213
  explanation: escalatedData.explanation,
22183
22214
  approvalType: escalatedData.approvalType
22184
22215
  });
22185
- _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.delete, 'call', _720 => _720(requestId)]);
22216
+ _optionalChain([escalatedApprovals, 'optionalAccess', _726 => _726.delete, 'call', _727 => _727(requestId)]);
22186
22217
  }
22187
22218
  const before = accumulator.getSegments();
22188
22219
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -22274,14 +22305,14 @@ function processHistoricalMessages(messages, options = {}) {
22274
22305
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
22275
22306
  return;
22276
22307
  }
22277
- const isUserMessage = _optionalChain([msg, 'access', _721 => _721.owner, 'optionalAccess', _722 => _722.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _723 => _723.owner, 'optionalAccess', _724 => _724.type]) === OWNER_TYPE.ADMIN;
22308
+ 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;
22278
22309
  if (isUserMessage) {
22279
22310
  flushAssistantMessage();
22280
- const userAuthorType = _optionalChain([msg, 'access', _725 => _725.owner, 'optionalAccess', _726 => _726.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22311
+ const userAuthorType = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22281
22312
  messageDataArray.forEach((data) => {
22282
22313
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
22283
22314
  const rawContext = data.contextItems;
22284
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _727 => _727.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _728 => _728.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
22315
+ 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;
22285
22316
  processedMessages.push({
22286
22317
  id: msg.id,
22287
22318
  role: "user",
@@ -22328,7 +22359,7 @@ function processHistoricalMessages(messages, options = {}) {
22328
22359
  });
22329
22360
  const nextMsg = messages[index + 1];
22330
22361
  const isLastMessage = index === messages.length - 1;
22331
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _729 => _729.owner, 'optionalAccess', _730 => _730.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _731 => _731.owner, 'optionalAccess', _732 => _732.type]) === OWNER_TYPE.ADMIN);
22362
+ 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);
22332
22363
  if (isLastMessage || nextIsFromUser) {
22333
22364
  flushAssistantMessage();
22334
22365
  }
@@ -22711,7 +22742,7 @@ function useNatsChatAdapter(config, options = {}) {
22711
22742
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
22712
22743
  const sendMessage = _react.useCallback.call(void 0,
22713
22744
  async (text2, sendOptions) => {
22714
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _733 => _733.hidden]), () => ( false));
22745
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _740 => _740.hidden]), () => ( false));
22715
22746
  mutate((r) => r.pushOptimisticSend(text2, hidden));
22716
22747
  await publishUserMessage(text2, { hidden, dialogId });
22717
22748
  },
@@ -22804,11 +22835,11 @@ function useNatsChatAdapter(config, options = {}) {
22804
22835
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
22805
22836
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
22806
22837
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
22807
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _734 => _734.provider]), () => ( modelProvider)), () => ( null)),
22808
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _735 => _735.modelLabel]), () => ( modelLabel)), () => ( null)),
22809
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _736 => _736.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _737 => _737.contextWindowMaxTokens]))), () => ( null)),
22810
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _738 => _738.inputTokensSize]), () => ( null)),
22811
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _739 => _739.outputTokensSize]), () => ( null)),
22838
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _741 => _741.provider]), () => ( modelProvider)), () => ( null)),
22839
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _742 => _742.modelLabel]), () => ( modelLabel)), () => ( null)),
22840
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _743 => _743.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _744 => _744.contextWindowMaxTokens]))), () => ( null)),
22841
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _745 => _745.inputTokensSize]), () => ( null)),
22842
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _746 => _746.outputTokensSize]), () => ( null)),
22812
22843
  currentCacheHitRatePct: null,
22813
22844
  currentUsageBreakdown: null,
22814
22845
  // Dialog management
@@ -22930,7 +22961,7 @@ function useUnifiedChat(options) {
22930
22961
  []
22931
22962
  );
22932
22963
  const displayRefForward = _react.useCallback.call(void 0,
22933
- (ref) => _optionalChain([activeStateRef, 'access', _740 => _740.current, 'access', _741 => _741.displayRef, 'optionalCall', _742 => _742(ref)]),
22964
+ (ref) => _optionalChain([activeStateRef, 'access', _747 => _747.current, 'access', _748 => _748.displayRef, 'optionalCall', _749 => _749(ref)]),
22934
22965
  []
22935
22966
  );
22936
22967
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -22940,7 +22971,7 @@ function useUnifiedChat(options) {
22940
22971
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
22941
22972
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
22942
22973
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
22943
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _743 => _743.current, 'access', _744 => _744.setDialogScope, 'optionalCall', _745 => _745(scope)]), []);
22974
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _750 => _750.current, 'access', _751 => _751.setDialogScope, 'optionalCall', _752 => _752(scope)]), []);
22944
22975
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
22945
22976
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
22946
22977
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -23048,19 +23079,19 @@ function turnRequestKeys(content) {
23048
23079
  if (!Array.isArray(content)) return keys;
23049
23080
  for (const seg of content) {
23050
23081
  if (seg.type === "tool_execution") {
23051
- const id = _optionalChain([seg, 'access', _746 => _746.data, 'optionalAccess', _747 => _747.toolExecutionRequestId]);
23082
+ const id = _optionalChain([seg, 'access', _753 => _753.data, 'optionalAccess', _754 => _754.toolExecutionRequestId]);
23052
23083
  if (id) keys.add(id);
23053
23084
  } else if (seg.type === "approval_request") {
23054
- const id = _optionalChain([seg, 'access', _748 => _748.data, 'optionalAccess', _749 => _749.requestId]);
23085
+ const id = _optionalChain([seg, 'access', _755 => _755.data, 'optionalAccess', _756 => _756.requestId]);
23055
23086
  if (id) keys.add(id);
23056
23087
  } else if (seg.type === "escalation_offer") {
23057
- const id = _optionalChain([seg, 'access', _750 => _750.data, 'optionalAccess', _751 => _751.offerId]);
23088
+ const id = _optionalChain([seg, 'access', _757 => _757.data, 'optionalAccess', _758 => _758.offerId]);
23058
23089
  if (id) keys.add(id);
23059
23090
  } else if (seg.type === "approval_batch") {
23060
23091
  const data = seg.data;
23061
- if (_optionalChain([data, 'optionalAccess', _752 => _752.approvalRequestId])) keys.add(data.approvalRequestId);
23062
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _753 => _753.toolCalls]), () => ( []))) {
23063
- if (_optionalChain([call, 'optionalAccess', _754 => _754.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23092
+ if (_optionalChain([data, 'optionalAccess', _759 => _759.approvalRequestId])) keys.add(data.approvalRequestId);
23093
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _760 => _760.toolCalls]), () => ( []))) {
23094
+ if (_optionalChain([call, 'optionalAccess', _761 => _761.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23064
23095
  }
23065
23096
  }
23066
23097
  }
@@ -23144,18 +23175,18 @@ function mergeHistoryWithRealtime(input) {
23144
23175
  }
23145
23176
  }
23146
23177
  const trailing = processedHistory[processedHistory.length - 1];
23147
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _755 => _755.role]) === "assistant" ? trailing : null;
23148
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _756 => _756.content, 'access', _757 => _757.find, 'call', _758 => _758((s) => s.type === "approval_batch"), 'optionalAccess', _759 => _759.data, 'optionalAccess', _760 => _760.approvalRequestId]), () => ( null)) : null;
23178
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _762 => _762.role]) === "assistant" ? trailing : null;
23179
+ 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;
23149
23180
  let processedToUse = processedHistory;
23150
23181
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
23151
23182
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
23152
23183
  if (historyBatchId) {
23153
23184
  const batchTwins = existingMessages.filter(
23154
- (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _761 => _761.data, 'optionalAccess', _762 => _762.approvalRequestId]) === historyBatchId)
23185
+ (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)
23155
23186
  );
23156
23187
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
23157
23188
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
23158
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _763 => _763.content])) ? historyTrailingAssistant.content.length : 0;
23189
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _770 => _770.content])) ? historyTrailingAssistant.content.length : 0;
23159
23190
  const realtimeSize = existingWithSameBatch.content.length;
23160
23191
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
23161
23192
  processedToUse = processedHistory.slice(0, -1);
@@ -23188,9 +23219,9 @@ function mergeHistoryWithRealtime(input) {
23188
23219
  const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
23189
23220
  const windowSignals = collectTwinSignals(processedToUse);
23190
23221
  const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
23191
- const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _764 => _764.has, 'call', _765 => _765(m.id)]), () => ( false)));
23222
+ const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _771 => _771.has, 'call', _772 => _772(m.id)]), () => ( false)));
23192
23223
  const firstWindowIndex = existingMessages.findIndex(isInWindow);
23193
- const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _766 => _766.timestamp, 'optionalAccess', _767 => _767.getTime, 'call', _768 => _768()]), () => ( 0))) <= historyFetchedAt;
23224
+ const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _773 => _773.timestamp, 'optionalAccess', _774 => _774.getTime, 'call', _775 => _775()]), () => ( 0))) <= historyFetchedAt;
23194
23225
  let lastOlderPersistedIndex = -1;
23195
23226
  if (firstWindowIndex < 0) {
23196
23227
  for (const [index, m] of existingMessages.entries()) {
@@ -23208,7 +23239,7 @@ function mergeHistoryWithRealtime(input) {
23208
23239
  } else if (pm.role === "assistant") {
23209
23240
  windowHasUnstampedAssistant = true;
23210
23241
  }
23211
- const time = _optionalChain([pm, 'access', _769 => _769.timestamp, 'optionalAccess', _770 => _770.getTime, 'call', _771 => _771()]);
23242
+ const time = _optionalChain([pm, 'access', _776 => _776.timestamp, 'optionalAccess', _777 => _777.getTime, 'call', _778 => _778()]);
23212
23243
  if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
23213
23244
  }
23214
23245
  const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
@@ -23226,14 +23257,14 @@ function mergeHistoryWithRealtime(input) {
23226
23257
  const verdict = twinVerdict(windowSignals, m);
23227
23258
  return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
23228
23259
  }
23229
- const time = _optionalChain([m, 'access', _772 => _772.timestamp, 'optionalAccess', _773 => _773.getTime, 'call', _774 => _774()]);
23260
+ const time = _optionalChain([m, 'access', _779 => _779.timestamp, 'optionalAccess', _780 => _780.getTime, 'call', _781 => _781()]);
23230
23261
  if (typeof time !== "number" || time > historyFetchedAt) return false;
23231
23262
  if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
23232
23263
  return twinVerdict(windowSignals, m) === "distinct";
23233
23264
  };
23234
23265
  const keepRealtime = (m) => {
23235
23266
  if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
23236
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _775 => _775.timestamp, 'optionalAccess', _776 => _776.getTime, 'call', _777 => _777()]), () => ( 0))) <= historyFetchedAt;
23267
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _782 => _782.timestamp, 'optionalAccess', _783 => _783.getTime, 'call', _784 => _784()]), () => ( 0))) <= historyFetchedAt;
23237
23268
  return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
23238
23269
  }
23239
23270
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -23257,7 +23288,7 @@ function mergeHistoryWithRealtime(input) {
23257
23288
  } else if (typeof m.streamSeq === "number") {
23258
23289
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
23259
23290
  } else {
23260
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _778 => _778.timestamp, 'optionalAccess', _779 => _779.getTime, 'call', _780 => _780()]), () => ( 0))) <= historyFetchedAt;
23291
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _785 => _785.timestamp, 'optionalAccess', _786 => _786.getTime, 'call', _787 => _787()]), () => ( 0))) <= historyFetchedAt;
23261
23292
  }
23262
23293
  if (covered) return false;
23263
23294
  }
@@ -23366,7 +23397,7 @@ function normalizeHistoricalMessageData(md) {
23366
23397
  function isHistoricalUserTurn(m) {
23367
23398
  return !!m.owner;
23368
23399
  }
23369
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _781 => _781.type]) === "TEXT" && typeof d.text === "string";
23400
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _788 => _788.type]) === "TEXT" && typeof d.text === "string";
23370
23401
  var THINK_MS = 550;
23371
23402
  var TOKEN_MS = 55;
23372
23403
  var USER_MS = 480;
@@ -23986,7 +24017,7 @@ function useChatDialogManager({
23986
24017
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
23987
24018
  if (restoreTarget) {
23988
24019
  try {
23989
- await _optionalChain([unarchiveDialog, 'optionalCall', _782 => _782(restoreTarget.id)]);
24020
+ await _optionalChain([unarchiveDialog, 'optionalCall', _789 => _789(restoreTarget.id)]);
23990
24021
  } catch (err) {
23991
24022
  console.error("[useChatDialogManager] unarchive failed:", err);
23992
24023
  return;
@@ -24235,7 +24266,7 @@ function SourceChip({
24235
24266
  const Icon = cta.icon;
24236
24267
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
24237
24268
  const chipClass = chatChipClass({ tone: "secondary" });
24238
- const decideTab = (href, targetPlatform) => _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24269
+ const decideTab = (href, targetPlatform) => _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24239
24270
  if (src.items && src.items.length > 0) {
24240
24271
  const dropdownItems = src.items.map((item) => {
24241
24272
  const itemCta = resolveSourceRowCTA(
@@ -24324,7 +24355,7 @@ function SourceChip({
24324
24355
  "a",
24325
24356
  {
24326
24357
  href: resolvedHref,
24327
- ..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24358
+ ..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24328
24359
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24329
24360
  className: chipClass,
24330
24361
  children: chipBody(src.name)
@@ -24340,7 +24371,7 @@ function SourceChip({
24340
24371
  "a",
24341
24372
  {
24342
24373
  href: resolvedHref,
24343
- ..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24374
+ ..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24344
24375
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24345
24376
  className: chipClass,
24346
24377
  title: displayName,
@@ -24532,7 +24563,7 @@ function EmbeddableChatInner({
24532
24563
  }),
24533
24564
  [commandsUrl]
24534
24565
  );
24535
- const headerUserName = _optionalChain([identityUser, 'optionalAccess', _783 => _783.name, 'optionalAccess', _784 => _784.trim, 'call', _785 => _785()]) || [_optionalChain([identityUser, 'optionalAccess', _786 => _786.firstName]), _optionalChain([identityUser, 'optionalAccess', _787 => _787.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _788 => _788.trim, 'call', _789 => _789()]) || void 0;
24566
+ 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;
24536
24567
  const effectiveModes = _react.useMemo.call(void 0, () => {
24537
24568
  if (modes) return modes;
24538
24569
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -24547,7 +24578,7 @@ function EmbeddableChatInner({
24547
24578
  if (controlledActiveMode === void 0) {
24548
24579
  setUncontrolledActiveMode(next);
24549
24580
  }
24550
- _optionalChain([onActiveModeChange, 'optionalCall', _790 => _790(next)]);
24581
+ _optionalChain([onActiveModeChange, 'optionalCall', _797 => _797(next)]);
24551
24582
  },
24552
24583
  [controlledActiveMode, onActiveModeChange]
24553
24584
  );
@@ -24574,7 +24605,7 @@ function EmbeddableChatInner({
24574
24605
  );
24575
24606
  const effectiveAssistantName = emptyStateConfig.name;
24576
24607
  const effectiveAssistantIcon = emptyStateConfig.icon;
24577
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _791 => _791.title]) === "string" ? guideWelcome.title : null)));
24608
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _798 => _798.title]) === "string" ? guideWelcome.title : null)));
24578
24609
  const {
24579
24610
  messages: rawMessages,
24580
24611
  isLoading: chatLoading,
@@ -24617,8 +24648,8 @@ function EmbeddableChatInner({
24617
24648
  const mingoCaps = _react.useMemo.call(void 0,
24618
24649
  () => ({
24619
24650
  ...dialogCapabilities,
24620
- canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _792 => _792.canRename]), () => ( false)),
24621
- canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _793 => _793.canArchive]), () => ( false))
24651
+ canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _799 => _799.canRename]), () => ( false)),
24652
+ canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _800 => _800.canArchive]), () => ( false))
24622
24653
  }),
24623
24654
  [dialogCapabilities]
24624
24655
  );
@@ -24633,7 +24664,7 @@ function EmbeddableChatInner({
24633
24664
  void sendMessage(guidePendingPrompt).catch((err) => {
24634
24665
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
24635
24666
  });
24636
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _794 => _794()]);
24667
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _801 => _801()]);
24637
24668
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
24638
24669
  const {
24639
24670
  attachments: stagedAttachments,
@@ -24644,7 +24675,7 @@ function EmbeddableChatInner({
24644
24675
  clear: clearAttachments
24645
24676
  } = useChatAttachments();
24646
24677
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
24647
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _795 => _795.maxItems]), () => ( 10));
24678
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _802 => _802.maxItems]), () => ( 10));
24648
24679
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
24649
24680
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
24650
24681
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -24665,10 +24696,10 @@ function EmbeddableChatInner({
24665
24696
  }, [activeDialogId, activeMode]);
24666
24697
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
24667
24698
  const m = /* @__PURE__ */ new Map();
24668
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _796 => _796.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24699
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _803 => _803.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24669
24700
  return m;
24670
- }, [_optionalChain([contextPicker, 'optionalAccess', _797 => _797.entityTypes])]);
24671
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _798 => _798.entityTypes]);
24701
+ }, [_optionalChain([contextPicker, 'optionalAccess', _804 => _804.entityTypes])]);
24702
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _805 => _805.entityTypes]);
24672
24703
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
24673
24704
  const byType = /* @__PURE__ */ new Map();
24674
24705
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -24680,7 +24711,7 @@ function EmbeddableChatInner({
24680
24711
  if (mentionActiveRef.current) {
24681
24712
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
24682
24713
  if (contextItems.length >= contextMaxItems) return;
24683
- _optionalChain([chatInputRef, 'access', _799 => _799.current, 'optionalAccess', _800 => _800.commitMention, 'call', _801 => _801(mentionTokenOf(key, mentionMarkerByType), {
24714
+ _optionalChain([chatInputRef, 'access', _806 => _806.current, 'optionalAccess', _807 => _807.commitMention, 'call', _808 => _808(mentionTokenOf(key, mentionMarkerByType), {
24684
24715
  label: item.label,
24685
24716
  icon: resolveContextIcon(item)
24686
24717
  })]);
@@ -24703,9 +24734,9 @@ function EmbeddableChatInner({
24703
24734
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
24704
24735
  if (mentionKeysRef.current.has(key)) {
24705
24736
  mentionKeysRef.current.delete(key);
24706
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _802 => _802.current, 'optionalAccess', _803 => _803.getValue, 'call', _804 => _804()]), () => ( ""));
24737
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _809 => _809.current, 'optionalAccess', _810 => _810.getValue, 'call', _811 => _811()]), () => ( ""));
24707
24738
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
24708
- _optionalChain([chatInputRef, 'access', _805 => _805.current, 'optionalAccess', _806 => _806.setValue, 'call', _807 => _807(next)]);
24739
+ _optionalChain([chatInputRef, 'access', _812 => _812.current, 'optionalAccess', _813 => _813.setValue, 'call', _814 => _814(next)]);
24709
24740
  }
24710
24741
  },
24711
24742
  [mentionMarkerByType]
@@ -24727,7 +24758,7 @@ function EmbeddableChatInner({
24727
24758
  }, []);
24728
24759
  const closeContextPicker = _react.useCallback.call(void 0, () => {
24729
24760
  if (mentionActiveRef.current) {
24730
- _optionalChain([chatInputRef, 'access', _808 => _808.current, 'optionalAccess', _809 => _809.removeMentionTrigger, 'call', _810 => _810()]);
24761
+ _optionalChain([chatInputRef, 'access', _815 => _815.current, 'optionalAccess', _816 => _816.removeMentionTrigger, 'call', _817 => _817()]);
24731
24762
  }
24732
24763
  setContextPickerOpen(false);
24733
24764
  setMentionQuery(null);
@@ -24761,8 +24792,8 @@ function EmbeddableChatInner({
24761
24792
  [effectiveAssistantIcon]
24762
24793
  );
24763
24794
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
24764
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _811 => _811.firstName]), _optionalChain([identityUser, 'optionalAccess', _812 => _812.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _813 => _813.name, 'optionalAccess', _814 => _814.trim, 'call', _815 => _815()]) || void 0 : void 0;
24765
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _816 => _816.avatarUrl, 'optionalAccess', _817 => _817.trim, 'call', _818 => _818()]) || void 0 : void 0;
24795
+ 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;
24796
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _823 => _823.avatarUrl, 'optionalAccess', _824 => _824.trim, 'call', _825 => _825()]) || void 0 : void 0;
24766
24797
  const messages = _react.useMemo.call(void 0, () => {
24767
24798
  const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
24768
24799
  const mapped = rawMessages.map((m) => mapHostMessage(m, options));
@@ -24936,7 +24967,7 @@ function EmbeddableChatInner({
24936
24967
  _react.useEffect.call(void 0, () => {
24937
24968
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
24938
24969
  const ro = new ResizeObserver((entries) => {
24939
- const w = _optionalChain([entries, 'access', _819 => _819[0], 'optionalAccess', _820 => _820.contentRect, 'optionalAccess', _821 => _821.width]);
24970
+ const w = _optionalChain([entries, 'access', _826 => _826[0], 'optionalAccess', _827 => _827.contentRect, 'optionalAccess', _828 => _828.width]);
24940
24971
  if (typeof w === "number") setPanelWidth(w);
24941
24972
  });
24942
24973
  ro.observe(panelBoundary);
@@ -24980,17 +25011,17 @@ function EmbeddableChatInner({
24980
25011
  const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
24981
25012
  const headerShowBack = hasConversation || guideCanReturnToMingo;
24982
25013
  const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
24983
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _822 => _822.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25014
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _829 => _829.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
24984
25015
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
24985
25016
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
24986
25017
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
24987
25018
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
24988
25019
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
24989
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _823 => _823.onCopyLink, 'optionalCall', _824 => _824(activeDialog)]) : void 0;
25020
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _830 => _830.onCopyLink, 'optionalCall', _831 => _831(activeDialog)]) : void 0;
24990
25021
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
24991
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _825 => _825.owner]) : void 0;
24992
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _826 => _826.name, 'optionalAccess', _827 => _827.trim, 'call', _828 => _828()]) || headerUserName;
24993
- const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _829 => _829.avatarUrl, 'optionalAccess', _830 => _830.trim, 'call', _831 => _831()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _832 => _832.avatarUrl, 'optionalAccess', _833 => _833.trim, 'call', _834 => _834()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _835 => _835.trim, 'call', _836 => _836()]) || void 0;
25022
+ const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _832 => _832.owner]) : void 0;
25023
+ const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _833 => _833.name, 'optionalAccess', _834 => _834.trim, 'call', _835 => _835()]) || headerUserName;
25024
+ 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;
24994
25025
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
24995
25026
  const handleNewChat = _react.useCallback.call(void 0, () => {
24996
25027
  resetToNewChat();
@@ -25136,7 +25167,7 @@ function EmbeddableChatInner({
25136
25167
  headerAvatar ? (
25137
25168
  // Owner avatar at the title cell's right edge (Figma 113:63273).
25138
25169
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25139
- _chunkEYKTKDRKcjs.SquareAvatar,
25170
+ _chunkCS7MVDUFcjs.SquareAvatar,
25140
25171
  {
25141
25172
  variant: "round",
25142
25173
  sizePx: 32,
@@ -25308,9 +25339,9 @@ function EmbeddableChatInner({
25308
25339
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
25309
25340
  subtitleLoading: emptyStateLoading,
25310
25341
  ...guideWelcome,
25311
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _837 => _837.title]))),
25312
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _838 => _838.icon]))),
25313
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _839 => _839.quickActions]), () => ( guideSuggestedActions)),
25342
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _844 => _844.title]))),
25343
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _845 => _845.icon]))),
25344
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _846 => _846.quickActions]), () => ( guideSuggestedActions)),
25314
25345
  onQuickAction: (action) => {
25315
25346
  setQuickActionPreview(null);
25316
25347
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -25384,8 +25415,8 @@ function EmbeddableChatInner({
25384
25415
  selectedContextItems: contextItems,
25385
25416
  onToggleContextItem: toggleContextItem,
25386
25417
  onRemoveContextItem: removeContextItem,
25387
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _840 => _840.items]),
25388
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _841 => _841.onRemove]),
25418
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _847 => _847.items]),
25419
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _848 => _848.onRemove]),
25389
25420
  contextPickerOpen,
25390
25421
  onOpenContextPicker: openContextPicker,
25391
25422
  onCloseContextPicker: closeContextPicker,
@@ -25850,5 +25881,6 @@ function EmbeddableChatInner({
25850
25881
 
25851
25882
 
25852
25883
 
25853
- exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.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;
25854
- //# sourceMappingURL=chunk-GAPXVAS6.cjs.map
25884
+
25885
+ exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.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;
25886
+ //# sourceMappingURL=chunk-VRN27OMD.cjs.map