@flamingo-stack/openframe-frontend-core 0.0.647 → 0.0.648-snapshot.20260917211410

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 (155) hide show
  1. package/dist/chat-protocol/index.cjs.map +1 -1
  2. package/dist/chat-protocol/index.js.map +1 -1
  3. package/dist/{chunk-RXIFYEL7.js → chunk-4OAG7752.js} +5 -5
  4. package/dist/{chunk-MKGAIWQ5.cjs → chunk-742HTNAE.cjs} +3 -3
  5. package/dist/{chunk-MKGAIWQ5.cjs.map → chunk-742HTNAE.cjs.map} +1 -1
  6. package/dist/{chunk-IBTOED4M.cjs → chunk-C3CJJC2A.cjs} +7 -7
  7. package/dist/{chunk-IBTOED4M.cjs.map → chunk-C3CJJC2A.cjs.map} +1 -1
  8. package/dist/{chunk-ZNSBWM2D.js → chunk-C4VPCRSI.js} +4 -4
  9. package/dist/{chunk-RUEVZAPN.js → chunk-CZVFFD3P.js} +5 -5
  10. package/dist/{chunk-V33TSVUR.js → chunk-DVD4CMKB.js} +3 -3
  11. package/dist/{chunk-ABVOAYYS.cjs → chunk-EDDAU2BP.cjs} +44 -44
  12. package/dist/{chunk-ABVOAYYS.cjs.map → chunk-EDDAU2BP.cjs.map} +1 -1
  13. package/dist/{chunk-SS2RN4TU.cjs → chunk-EUGIXBAC.cjs} +13 -24
  14. package/dist/chunk-EUGIXBAC.cjs.map +1 -0
  15. package/dist/{chunk-IKMETQWQ.js → chunk-H6ND7FKB.js} +5 -5
  16. package/dist/{chunk-H3EJDISW.js → chunk-IEM2Z6K6.js} +10 -2
  17. package/dist/chunk-IEM2Z6K6.js.map +1 -0
  18. package/dist/{chunk-VXG43NJD.js → chunk-J2T3XDZX.js} +4 -4
  19. package/dist/{chunk-QPAQEPA3.js → chunk-J5VVA2KW.js} +2 -2
  20. package/dist/{chunk-AKM4AIZY.cjs → chunk-JYFCKQ2K.cjs} +22 -22
  21. package/dist/{chunk-AKM4AIZY.cjs.map → chunk-JYFCKQ2K.cjs.map} +1 -1
  22. package/dist/{chunk-T7NBMDDE.js → chunk-KQGTQXG2.js} +2 -2
  23. package/dist/{chunk-YCSYKAT2.cjs → chunk-KUCBDDQB.cjs} +248 -248
  24. package/dist/{chunk-YCSYKAT2.cjs.map → chunk-KUCBDDQB.cjs.map} +1 -1
  25. package/dist/{chunk-5XBO6URE.cjs → chunk-M2FFL6OG.cjs} +25 -25
  26. package/dist/{chunk-5XBO6URE.cjs.map → chunk-M2FFL6OG.cjs.map} +1 -1
  27. package/dist/{chunk-DLJHXLFG.js → chunk-MAFPT6GS.js} +6 -6
  28. package/dist/{chunk-ASPNYVGE.cjs → chunk-MB33V5S6.cjs} +51 -51
  29. package/dist/{chunk-ASPNYVGE.cjs.map → chunk-MB33V5S6.cjs.map} +1 -1
  30. package/dist/{chunk-ERLGZPCY.js → chunk-MXGGYW2R.js} +7 -7
  31. package/dist/{chunk-EG3PA7L2.cjs → chunk-N72F2XWZ.cjs} +10 -10
  32. package/dist/{chunk-EG3PA7L2.cjs.map → chunk-N72F2XWZ.cjs.map} +1 -1
  33. package/dist/{chunk-L6ES7O6B.js → chunk-O3B34KLC.js} +4 -4
  34. package/dist/{chunk-5YW3GAUR.cjs → chunk-OE6KUWRA.cjs} +424 -305
  35. package/dist/chunk-OE6KUWRA.cjs.map +1 -0
  36. package/dist/{chunk-DIGCERY4.js → chunk-OHNBWBZH.js} +7 -18
  37. package/dist/chunk-OHNBWBZH.js.map +1 -0
  38. package/dist/{chunk-VIAMEQM2.cjs → chunk-OWPMODYT.cjs} +5 -5
  39. package/dist/{chunk-VIAMEQM2.cjs.map → chunk-OWPMODYT.cjs.map} +1 -1
  40. package/dist/{chunk-DWJREJRA.cjs → chunk-PSXUY4K5.cjs} +10 -2
  41. package/dist/chunk-PSXUY4K5.cjs.map +1 -0
  42. package/dist/{chunk-TO4UY3P5.cjs → chunk-QFWZIXJ3.cjs} +75 -75
  43. package/dist/{chunk-TO4UY3P5.cjs.map → chunk-QFWZIXJ3.cjs.map} +1 -1
  44. package/dist/{chunk-GB2RYIVM.js → chunk-QG3ZNNKG.js} +2 -2
  45. package/dist/{chunk-5DCRDV7Y.js → chunk-QVAFZGCF.js} +7 -7
  46. package/dist/{chunk-N6ZYJXVJ.js → chunk-QVKRSUGB.js} +125 -6
  47. package/dist/chunk-QVKRSUGB.js.map +1 -0
  48. package/dist/{chunk-6Z4GSQPB.js → chunk-RHJ4NU3W.js} +2 -2
  49. package/dist/{chunk-RIOWS34T.js → chunk-UOOXFD74.js} +3 -3
  50. package/dist/{chunk-F4I46MKF.cjs → chunk-W554ING6.cjs} +12 -12
  51. package/dist/{chunk-F4I46MKF.cjs.map → chunk-W554ING6.cjs.map} +1 -1
  52. package/dist/{chunk-Q2XH3HW6.cjs → chunk-W7KFDHIU.cjs} +37 -37
  53. package/dist/{chunk-Q2XH3HW6.cjs.map → chunk-W7KFDHIU.cjs.map} +1 -1
  54. package/dist/{chunk-RSRYEVGZ.cjs → chunk-XIBBDYJK.cjs} +5 -5
  55. package/dist/{chunk-RSRYEVGZ.cjs.map → chunk-XIBBDYJK.cjs.map} +1 -1
  56. package/dist/{chunk-EZ6HGRLP.cjs → chunk-Y5EEPXT3.cjs} +33 -33
  57. package/dist/{chunk-EZ6HGRLP.cjs.map → chunk-Y5EEPXT3.cjs.map} +1 -1
  58. package/dist/{chunk-DBSU5RAE.cjs → chunk-YCBGEHWC.cjs} +3 -3
  59. package/dist/{chunk-DBSU5RAE.cjs.map → chunk-YCBGEHWC.cjs.map} +1 -1
  60. package/dist/components/case-studies/index.cjs +20 -20
  61. package/dist/components/case-studies/index.js +5 -5
  62. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  63. package/dist/components/chat/index.cjs +3 -3
  64. package/dist/components/chat/index.js +2 -2
  65. package/dist/components/chat/types/message.types.d.ts +5 -0
  66. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  67. package/dist/components/chat/utils/cited-sources.d.ts +5 -0
  68. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  69. package/dist/components/chat/utils/source-row-cta.d.ts +2 -7
  70. package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
  71. package/dist/components/contact/index.cjs +6 -6
  72. package/dist/components/contact/index.js +5 -5
  73. package/dist/components/docs/index.cjs +9 -9
  74. package/dist/components/docs/index.js +8 -8
  75. package/dist/components/embeds/index.cjs +6 -6
  76. package/dist/components/embeds/index.js +5 -5
  77. package/dist/components/faq/index.cjs +6 -6
  78. package/dist/components/faq/index.js +5 -5
  79. package/dist/components/features/index.cjs +5 -5
  80. package/dist/components/features/index.js +4 -4
  81. package/dist/components/help-center-pages/index.cjs +25 -25
  82. package/dist/components/help-center-pages/index.js +16 -16
  83. package/dist/components/icons/index.cjs +4 -2
  84. package/dist/components/icons/index.cjs.map +1 -1
  85. package/dist/components/icons/index.d.ts +1 -0
  86. package/dist/components/icons/index.d.ts.map +1 -1
  87. package/dist/components/icons/index.js +3 -1
  88. package/dist/components/icons/quickbooks-icon.d.ts +7 -0
  89. package/dist/components/icons/quickbooks-icon.d.ts.map +1 -0
  90. package/dist/components/index.cjs +44 -42
  91. package/dist/components/index.cjs.map +1 -1
  92. package/dist/components/index.js +17 -15
  93. package/dist/components/index.js.map +1 -1
  94. package/dist/components/meeting-scheduler/index.cjs +28 -28
  95. package/dist/components/meeting-scheduler/index.js +4 -4
  96. package/dist/components/navigation/index.cjs +8 -8
  97. package/dist/components/navigation/index.js +7 -7
  98. package/dist/components/onboarding-guides/index.cjs +8 -8
  99. package/dist/components/onboarding-guides/index.js +7 -7
  100. package/dist/components/shared/doc-search/map-doc-search-results.d.ts.map +1 -1
  101. package/dist/components/tickets/index.cjs +9 -9
  102. package/dist/components/tickets/index.js +8 -8
  103. package/dist/components/ui/index.cjs +5 -5
  104. package/dist/components/ui/index.js +4 -4
  105. package/dist/hooks/index.cjs +3 -3
  106. package/dist/hooks/index.js +2 -2
  107. package/dist/index.cjs +23 -9
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.js +22 -8
  110. package/dist/index.js.map +1 -1
  111. package/dist/utils/index.cjs +163 -0
  112. package/dist/utils/index.cjs.map +1 -1
  113. package/dist/utils/index.d.ts +1 -0
  114. package/dist/utils/index.d.ts.map +1 -1
  115. package/dist/utils/index.js +158 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/dist/utils/source-grouping.d.ts +86 -0
  118. package/dist/utils/source-grouping.d.ts.map +1 -0
  119. package/dist/utils/source-icons.d.ts +7 -0
  120. package/dist/utils/source-icons.d.ts.map +1 -1
  121. package/package.json +1 -1
  122. package/src/components/chat/embeddable-chat.tsx +10 -2
  123. package/src/components/chat/types/message.types.ts +5 -0
  124. package/src/components/chat/utils/cited-sources.ts +7 -1
  125. package/src/components/chat/utils/source-row-cta.ts +4 -7
  126. package/src/components/icons/index.ts +1 -0
  127. package/src/components/icons/quickbooks-icon.tsx +13 -0
  128. package/src/components/shared/doc-search/__tests__/map-doc-search-results.test.ts +48 -0
  129. package/src/components/shared/doc-search/map-doc-search-results.ts +6 -16
  130. package/src/components/ui/markdown/__tests__/mermaid-zoom.test.tsx +2 -0
  131. package/src/utils/__tests__/source-grouping.test.ts +240 -0
  132. package/src/utils/index.ts +11 -0
  133. package/src/utils/source-grouping.ts +215 -0
  134. package/src/utils/source-icons.ts +13 -0
  135. package/dist/chunk-5YW3GAUR.cjs.map +0 -1
  136. package/dist/chunk-DIGCERY4.js.map +0 -1
  137. package/dist/chunk-DWJREJRA.cjs.map +0 -1
  138. package/dist/chunk-H3EJDISW.js.map +0 -1
  139. package/dist/chunk-N6ZYJXVJ.js.map +0 -1
  140. package/dist/chunk-SS2RN4TU.cjs.map +0 -1
  141. /package/dist/{chunk-RXIFYEL7.js.map → chunk-4OAG7752.js.map} +0 -0
  142. /package/dist/{chunk-ZNSBWM2D.js.map → chunk-C4VPCRSI.js.map} +0 -0
  143. /package/dist/{chunk-RUEVZAPN.js.map → chunk-CZVFFD3P.js.map} +0 -0
  144. /package/dist/{chunk-V33TSVUR.js.map → chunk-DVD4CMKB.js.map} +0 -0
  145. /package/dist/{chunk-IKMETQWQ.js.map → chunk-H6ND7FKB.js.map} +0 -0
  146. /package/dist/{chunk-VXG43NJD.js.map → chunk-J2T3XDZX.js.map} +0 -0
  147. /package/dist/{chunk-QPAQEPA3.js.map → chunk-J5VVA2KW.js.map} +0 -0
  148. /package/dist/{chunk-T7NBMDDE.js.map → chunk-KQGTQXG2.js.map} +0 -0
  149. /package/dist/{chunk-DLJHXLFG.js.map → chunk-MAFPT6GS.js.map} +0 -0
  150. /package/dist/{chunk-ERLGZPCY.js.map → chunk-MXGGYW2R.js.map} +0 -0
  151. /package/dist/{chunk-L6ES7O6B.js.map → chunk-O3B34KLC.js.map} +0 -0
  152. /package/dist/{chunk-GB2RYIVM.js.map → chunk-QG3ZNNKG.js.map} +0 -0
  153. /package/dist/{chunk-5DCRDV7Y.js.map → chunk-QVAFZGCF.js.map} +0 -0
  154. /package/dist/{chunk-6Z4GSQPB.js.map → chunk-RHJ4NU3W.js.map} +0 -0
  155. /package/dist/{chunk-RIOWS34T.js.map → chunk-UOOXFD74.js.map} +0 -0
@@ -42,7 +42,7 @@ var _chunkSADRZ4YIcjs = require('./chunk-SADRZ4YI.cjs');
42
42
 
43
43
 
44
44
 
45
- var _chunkDWJREJRAcjs = require('./chunk-DWJREJRA.cjs');
45
+ var _chunkPSXUY4K5cjs = require('./chunk-PSXUY4K5.cjs');
46
46
 
47
47
 
48
48
 
@@ -5394,7 +5394,7 @@ var ICON_REGISTRY = {
5394
5394
  "dollar-sign": _lucidereact.DollarSign,
5395
5395
  // For brand-vs-lucide variants the kebab key is the BRAND (most-common
5396
5396
  // social-platform intent); `'<name>-lucide'` carries the lucide outline.
5397
- facebook: _chunkDWJREJRAcjs.FacebookIcon,
5397
+ facebook: _chunkPSXUY4K5cjs.FacebookIcon,
5398
5398
  "facebook-lucide": _lucidereact.Facebook,
5399
5399
  "file-text": _lucidereact.FileText,
5400
5400
  // `'github-lucide'` is the lucide outline glyph (used by
@@ -5403,13 +5403,13 @@ var ICON_REGISTRY = {
5403
5403
  // alias `'Github' → 'github-lucide'` routes the lucide glyph for
5404
5404
  // social-platform DB rows; `'GitHubIcon' → 'github'` keeps brand routing
5405
5405
  // consistent for callers that store the PascalCase component name.
5406
- github: _chunkDWJREJRAcjs.GitHubIcon,
5406
+ github: _chunkPSXUY4K5cjs.GitHubIcon,
5407
5407
  "github-lucide": _lucidereact.Github,
5408
5408
  globe: _lucidereact.Globe,
5409
5409
  "graduation-cap": _lucidereact.GraduationCap,
5410
5410
  headphones: _lucidereact.Headphones,
5411
5411
  info: _lucidereact.Info,
5412
- instagram: _chunkDWJREJRAcjs.InstagramIcon,
5412
+ instagram: _chunkPSXUY4K5cjs.InstagramIcon,
5413
5413
  "instagram-lucide": _lucidereact.Instagram,
5414
5414
  mail: _lucidereact.Mail,
5415
5415
  megaphone: _lucidereact.Megaphone,
@@ -5429,15 +5429,15 @@ var ICON_REGISTRY = {
5429
5429
  twitter: _lucidereact.Twitter,
5430
5430
  users: _lucidereact.Users,
5431
5431
  video: _lucidereact.Video,
5432
- whatsapp: _chunkDWJREJRAcjs.WhatsAppIcon,
5433
- youtube: _chunkDWJREJRAcjs.YouTubeIcon,
5432
+ whatsapp: _chunkPSXUY4K5cjs.WhatsAppIcon,
5433
+ youtube: _chunkPSXUY4K5cjs.YouTubeIcon,
5434
5434
  "youtube-lucide": _lucidereact.Youtube,
5435
5435
  // brand-only icons (no lucide variant in current use)
5436
- slack: _chunkDWJREJRAcjs.SlackIcon,
5437
- clickup: _chunkDWJREJRAcjs.ClickUpIcon,
5438
- hubspot: _chunkDWJREJRAcjs.HubspotIcon,
5439
- linkedin: _chunkDWJREJRAcjs.LinkedInIcon,
5440
- x: _chunkDWJREJRAcjs.XLogo,
5436
+ slack: _chunkPSXUY4K5cjs.SlackIcon,
5437
+ clickup: _chunkPSXUY4K5cjs.ClickUpIcon,
5438
+ hubspot: _chunkPSXUY4K5cjs.HubspotIcon,
5439
+ linkedin: _chunkPSXUY4K5cjs.LinkedInIcon,
5440
+ x: _chunkPSXUY4K5cjs.XLogo,
5441
5441
  openframe: OpenFrameLogoIcon
5442
5442
  };
5443
5443
  var PASCAL_TO_KEBAB_ALIASES = {
@@ -5544,8 +5544,8 @@ function sizedLogo(Logo) {
5544
5544
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { className, style: { width: size2, height: size2 } });
5545
5545
  };
5546
5546
  }
5547
- var OpenmspLogoIcon = sizedLogo(_chunkDWJREJRAcjs.OpenmspLogo);
5548
- var FlamingoLogoIcon = sizedLogo(_chunkDWJREJRAcjs.FlamingoLogo);
5547
+ var OpenmspLogoIcon = sizedLogo(_chunkPSXUY4K5cjs.OpenmspLogo);
5548
+ var FlamingoLogoIcon = sizedLogo(_chunkPSXUY4K5cjs.FlamingoLogo);
5549
5549
  function LogoOpenframeIcon({ size: size2 = 16, className, color }) {
5550
5550
  const tint = _nullishCoalesce(color, () => ( "currentColor"));
5551
5551
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8306,7 +8306,7 @@ var FAE_AVATAR_DATA_URI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAC
8306
8306
  // src/components/agent-mark.tsx
8307
8307
 
8308
8308
  function AgentMark({ agent, className = "", faeAvatarSrc = FAE_AVATAR_DATA_URI }) {
8309
- return agent === "mingo" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.MingoIcon, { className, "aria-hidden": "true", focusable: "false" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: faeAvatarSrc, alt: "", className });
8309
+ return agent === "mingo" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.MingoIcon, { className, "aria-hidden": "true", focusable: "false" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: faeAvatarSrc, alt: "", className });
8310
8310
  }
8311
8311
 
8312
8312
  // src/components/icon-display.tsx
@@ -9778,7 +9778,7 @@ function MingoWelcome({
9778
9778
  className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
9779
9779
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
9780
9780
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9781
- _chunkDWJREJRAcjs.MingoIcon,
9781
+ _chunkPSXUY4K5cjs.MingoIcon,
9782
9782
  {
9783
9783
  className: "h-12 w-12",
9784
9784
  color: "white",
@@ -9909,7 +9909,7 @@ function GuideWelcome({
9909
9909
  // match the default Mingo mark (48px).
9910
9910
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
9911
9911
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9912
- _chunkDWJREJRAcjs.MingoIcon,
9912
+ _chunkPSXUY4K5cjs.MingoIcon,
9913
9913
  {
9914
9914
  className: "h-12 w-12",
9915
9915
  color: "white",
@@ -12191,13 +12191,13 @@ function VideoPlayBadge({ size: size2 = "md", className }) {
12191
12191
  className
12192
12192
  ),
12193
12193
  style: { filter: GLYPH_SHADOW },
12194
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.PlayFilledIcon, { size: SIZES[size2], color: "currentColor" })
12194
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.PlayFilledIcon, { size: SIZES[size2], color: "currentColor" })
12195
12195
  }
12196
12196
  );
12197
12197
  }
12198
12198
  function VideoUnmuteGlyph({ size: size2 = "md", className }) {
12199
12199
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12200
- _chunkDWJREJRAcjs.VolumeOffFilledIcon,
12200
+ _chunkPSXUY4K5cjs.VolumeOffFilledIcon,
12201
12201
  {
12202
12202
  size: SIZES[size2],
12203
12203
  color: "currentColor",
@@ -14117,7 +14117,7 @@ function kindIcon(kind, className = "h-4 w-4") {
14117
14117
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Eye, { className: `${className} shrink-0` });
14118
14118
  case "commit":
14119
14119
  default:
14120
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.GitHubIcon, { className: `${className} shrink-0` });
14120
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.GitHubIcon, { className: `${className} shrink-0` });
14121
14121
  }
14122
14122
  }
14123
14123
  function kindLabel(kind) {
@@ -14299,7 +14299,7 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14299
14299
  const dateText = _chunkEX5PJGVAcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14300
14300
  if (variant === "row") {
14301
14301
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14302
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
14302
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
14303
14303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[180px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
14304
14304
  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,
14305
14305
  channel ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "max-w-[140px] shrink-0 truncate text-ods-text-secondary text-code", children: [
@@ -14324,7 +14324,7 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14324
14324
  );
14325
14325
  const href = _chunkEX5PJGVAcjs.safeHref.call(void 0, item.url);
14326
14326
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14327
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.SlackIcon, { className: "h-5 w-5" }) }),
14327
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14328
14328
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_TEXT_COL, children: [
14329
14329
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14330
14330
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEX5PJGVAcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkEX5PJGVAcjs.COMPACT_CARD_ROW_FILLER }) }),
@@ -15007,6 +15007,12 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
15007
15007
  function defaultTableIdForDocumentType(documentType) {
15008
15008
  return _nullishCoalesce(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID[documentType], () => ( null));
15009
15009
  }
15010
+ function defaultDocumentTypeForTableId(tableId) {
15011
+ for (const [documentType, table] of Object.entries(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID)) {
15012
+ if (table === tableId) return documentType;
15013
+ }
15014
+ return null;
15015
+ }
15010
15016
 
15011
15017
  // src/components/chat/utils/source-row-cta.ts
15012
15018
 
@@ -15182,6 +15188,110 @@ if (_orderIdx("flamingo") > _orderIdx("flamingo-teaser") || _orderIdx("flamingo"
15182
15188
  );
15183
15189
  }
15184
15190
 
15191
+ // src/utils/source-grouping.ts
15192
+ var DOC_TABLE_TYPES = ["markdown", "data_room_doc"];
15193
+ function groupsByTable(documentType) {
15194
+ return !DOC_TABLE_TYPES.includes(_nullishCoalesce(documentType, () => ( "")));
15195
+ }
15196
+ function recordCountLabel(count) {
15197
+ return `(${count} ${count === 1 ? "record" : "records"})`;
15198
+ }
15199
+ function buildGroupedSource(spec) {
15200
+ const first = spec.rows[0];
15201
+ const externalUrl = _nullishCoalesce(spec.externalUrl, () => ( _optionalChain([first, 'optionalAccess', _376 => _376.externalUrl])));
15202
+ const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : _optionalChain([first, 'optionalAccess', _377 => _377.targetPlatform]);
15203
+ return {
15204
+ index: spec.index,
15205
+ name: `${getSourceLabel(spec.sourceRepo)} ${recordCountLabel(spec.rows.length)}`,
15206
+ path: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _378 => _378.path]), () => ( "")),
15207
+ documentType: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _379 => _379.documentType]), () => ( "")),
15208
+ ...externalUrl ? { externalUrl } : {},
15209
+ targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
15210
+ sourceRepo: spec.sourceRepo,
15211
+ items: spec.rows
15212
+ };
15213
+ }
15214
+ function isGroupedChip(source) {
15215
+ return !!source.items && source.items.length > 0;
15216
+ }
15217
+ function typeOf(source) {
15218
+ return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
15219
+ }
15220
+ function joinsTableChip(source) {
15221
+ if (!source.sourceRepo) return false;
15222
+ return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
15223
+ }
15224
+ function rowsOf(source) {
15225
+ if (isGroupedChip(source)) return _nullishCoalesce(source.items, () => ( []));
15226
+ return [
15227
+ {
15228
+ index: source.index,
15229
+ id: _nullishCoalesce(source.id, () => ( "")),
15230
+ documentType: typeOf(source),
15231
+ name: source.name,
15232
+ ...source.externalUrl ? { externalUrl: source.externalUrl } : {},
15233
+ targetPlatform: _nullishCoalesce(source.targetPlatform, () => ( null)),
15234
+ path: source.path || null
15235
+ }
15236
+ ];
15237
+ }
15238
+ function uniqueRows(rows) {
15239
+ const seen = /* @__PURE__ */ new Set();
15240
+ return rows.filter((row) => {
15241
+ if (!row.id) return true;
15242
+ const identity = `${row.documentType}:${row.id}`;
15243
+ if (seen.has(identity)) return false;
15244
+ seen.add(identity);
15245
+ return true;
15246
+ });
15247
+ }
15248
+ function groupSourcesByTable(sources2) {
15249
+ const membersByTable = /* @__PURE__ */ new Map();
15250
+ for (const source of sources2) {
15251
+ if (!joinsTableChip(source)) continue;
15252
+ const members = _nullishCoalesce(membersByTable.get(source.sourceRepo), () => ( []));
15253
+ members.push(source);
15254
+ membersByTable.set(source.sourceRepo, members);
15255
+ }
15256
+ const emitted = /* @__PURE__ */ new Set();
15257
+ const chips = [];
15258
+ for (const source of sources2) {
15259
+ if (!joinsTableChip(source)) {
15260
+ chips.push(source);
15261
+ continue;
15262
+ }
15263
+ if (emitted.has(source.sourceRepo)) continue;
15264
+ emitted.add(source.sourceRepo);
15265
+ const members = _nullishCoalesce(membersByTable.get(source.sourceRepo), () => ( []));
15266
+ if (members.length === 1 && isGroupedChip(source)) {
15267
+ chips.push(source);
15268
+ continue;
15269
+ }
15270
+ const serverChip = members.find(isGroupedChip);
15271
+ chips.push(
15272
+ buildGroupedSource({
15273
+ index: source.index,
15274
+ sourceRepo: source.sourceRepo,
15275
+ rows: uniqueRows(members.flatMap(rowsOf)),
15276
+ ..._optionalChain([serverChip, 'optionalAccess', _380 => _380.externalUrl]) ? { externalUrl: serverChip.externalUrl } : {},
15277
+ ...serverChip && serverChip.targetPlatform !== void 0 ? { targetPlatform: serverChip.targetPlatform } : {}
15278
+ })
15279
+ );
15280
+ }
15281
+ return chips;
15282
+ }
15283
+ function formatCitationIndices(indices) {
15284
+ const sorted = [...new Set(indices)].sort((a, b) => a - b);
15285
+ const runs = [];
15286
+ for (let start = 0; start < sorted.length; ) {
15287
+ let end = start;
15288
+ while (end + 1 < sorted.length && sorted[end + 1] === sorted[end] + 1) end++;
15289
+ runs.push(end === start ? `${sorted[start]}` : `${sorted[start]}-${sorted[end]}`);
15290
+ start = end + 1;
15291
+ }
15292
+ return runs.join(", ");
15293
+ }
15294
+
15185
15295
  // src/components/chat/utils/source-row-cta.ts
15186
15296
  function sanitizePath(path) {
15187
15297
  return (path || "").replace(/[^a-zA-Z0-9/_\-.]/g, "");
@@ -15201,7 +15311,6 @@ function pickSourceIcon(sourceRepo, documentType) {
15201
15311
  const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
15202
15312
  return { icon, iconLabel };
15203
15313
  }
15204
- var DOC_TABLE_TYPES = ["markdown", "data_room_doc"];
15205
15314
  function shouldFallbackToPathNav(row) {
15206
15315
  return !!row.documentType && DOC_TABLE_TYPES.includes(row.documentType);
15207
15316
  }
@@ -15214,7 +15323,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
15214
15323
  if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
15215
15324
  const safePath = sanitizePath(row.path);
15216
15325
  if (safePath) {
15217
- const docTarget = row.documentType ? _optionalChain([ctx, 'access', _376 => _376.docPlatformTargets, 'optionalAccess', _377 => _377[row.documentType]]) : void 0;
15326
+ const docTarget = row.documentType ? _optionalChain([ctx, 'access', _381 => _381.docPlatformTargets, 'optionalAccess', _382 => _382[row.documentType]]) : void 0;
15218
15327
  if (docTarget) {
15219
15328
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
15220
15329
  const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
@@ -15357,8 +15466,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
15357
15466
  if (href) {
15358
15467
  items.push({
15359
15468
  id: "open-details",
15360
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _378 => _378.label]), () => ( "Open Details")),
15361
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _379 => _379.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.EyeIcon, { size: 20 }))),
15469
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _383 => _383.label]), () => ( "Open Details")),
15470
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _384 => _384.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.EyeIcon, { size: 20 }))),
15362
15471
  // Main row → open the entity (same tab, soft Link nav).
15363
15472
  href,
15364
15473
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -15418,18 +15527,18 @@ function itemVideoMetadata(item) {
15418
15527
  for (const v of vals) if (typeof v === "string" && v.length > 0) return v;
15419
15528
  return void 0;
15420
15529
  };
15421
- const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _380 => _380.metadata]), () => ( {}));
15530
+ const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _385 => _385.metadata]), () => ( {}));
15422
15531
  const out = {};
15423
- const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _381 => _381.custom_video_url]), _optionalChain([item, 'optionalAccess', _382 => _382.main_video_url]));
15424
- const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _383 => _383.youtube_url]), _optionalChain([item, 'optionalAccess', _384 => _384.testimonial_video_url]));
15425
- const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _385 => _385.highlight_video_url]));
15532
+ const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _386 => _386.custom_video_url]), _optionalChain([item, 'optionalAccess', _387 => _387.main_video_url]));
15533
+ const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _388 => _388.youtube_url]), _optionalChain([item, 'optionalAccess', _389 => _389.testimonial_video_url]));
15534
+ const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _390 => _390.highlight_video_url]));
15426
15535
  const videoPoster = pick(
15427
15536
  m.videoPoster,
15428
- _optionalChain([item, 'optionalAccess', _386 => _386.main_video_thumbnail]),
15429
- _optionalChain([item, 'optionalAccess', _387 => _387.highlight_video_thumbnail]),
15430
- _optionalChain([item, 'optionalAccess', _388 => _388.featured_image])
15537
+ _optionalChain([item, 'optionalAccess', _391 => _391.main_video_thumbnail]),
15538
+ _optionalChain([item, 'optionalAccess', _392 => _392.highlight_video_thumbnail]),
15539
+ _optionalChain([item, 'optionalAccess', _393 => _393.featured_image])
15431
15540
  );
15432
- const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _389 => _389.highlight_video_thumbnail]));
15541
+ const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _394 => _394.highlight_video_thumbnail]));
15433
15542
  if (videoUrl) out.videoUrl = videoUrl;
15434
15543
  if (youtubeUrl) out.youtubeUrl = youtubeUrl;
15435
15544
  if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
@@ -15459,15 +15568,15 @@ function fetchedItemDisplayRef(item, chatRef) {
15459
15568
  }
15460
15569
  function fetchedFaqDisplayRef(item, chatRef) {
15461
15570
  const it = item;
15462
- const answer = typeof _optionalChain([it, 'optionalAccess', _390 => _390.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
15571
+ const answer = typeof _optionalChain([it, 'optionalAccess', _395 => _395.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
15463
15572
  return {
15464
15573
  type: "faq",
15465
15574
  id: chatRef.id,
15466
15575
  sourceRepo: chatRef.sourceRepo,
15467
- title: typeof _optionalChain([it, 'optionalAccess', _391 => _391.question]) === "string" && it.question ? it.question : chatRef.id,
15576
+ title: typeof _optionalChain([it, 'optionalAccess', _396 => _396.question]) === "string" && it.question ? it.question : chatRef.id,
15468
15577
  url: _nullishCoalesce(chatRef.url, () => ( null)),
15469
15578
  ...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
15470
- metadata: typeof _optionalChain([it, 'optionalAccess', _392 => _392.section]) === "string" && it.section ? { section: it.section } : {}
15579
+ metadata: typeof _optionalChain([it, 'optionalAccess', _397 => _397.section]) === "string" && it.section ? { section: it.section } : {}
15471
15580
  };
15472
15581
  }
15473
15582
  function HubspotTicketChatCard({
@@ -15475,8 +15584,8 @@ function HubspotTicketChatCard({
15475
15584
  isNewTab,
15476
15585
  discuss
15477
15586
  }) {
15478
- const status = typeof _optionalChain([chatRef, 'access', _393 => _393.metadata, 'optionalAccess', _394 => _394.status]) === "string" ? chatRef.metadata.status : void 0;
15479
- const statusLabel = typeof _optionalChain([chatRef, 'access', _395 => _395.metadata, 'optionalAccess', _396 => _396.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
15587
+ const status = typeof _optionalChain([chatRef, 'access', _398 => _398.metadata, 'optionalAccess', _399 => _399.status]) === "string" ? chatRef.metadata.status : void 0;
15588
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _400 => _400.metadata, 'optionalAccess', _401 => _401.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
15480
15589
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
15481
15590
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15482
15591
  MingoInfoCard,
@@ -15499,7 +15608,7 @@ function FaqChatCard({
15499
15608
  isNewTab,
15500
15609
  discuss
15501
15610
  }) {
15502
- const section = typeof _optionalChain([chatRef, 'access', _397 => _397.metadata, 'optionalAccess', _398 => _398.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
15611
+ const section = typeof _optionalChain([chatRef, 'access', _402 => _402.metadata, 'optionalAccess', _403 => _403.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
15503
15612
  const statusLabel = section && section.length > 0 ? section : "FAQ";
15504
15613
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15505
15614
  MingoInfoCard,
@@ -15519,7 +15628,7 @@ function SlackChatCard({
15519
15628
  isNewTab,
15520
15629
  discuss
15521
15630
  }) {
15522
- const channelName = typeof _optionalChain([chatRef, 'access', _399 => _399.metadata, 'optionalAccess', _400 => _400.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
15631
+ const channelName = typeof _optionalChain([chatRef, 'access', _404 => _404.metadata, 'optionalAccess', _405 => _405.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
15523
15632
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
15524
15633
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
15525
15634
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15577,7 +15686,7 @@ function GenericFinancialChatCard({
15577
15686
  isNewTab,
15578
15687
  discuss
15579
15688
  }) {
15580
- const subtitle = typeof _optionalChain([chatRef, 'access', _401 => _401.metadata, 'optionalAccess', _402 => _402.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
15689
+ const subtitle = typeof _optionalChain([chatRef, 'access', _406 => _406.metadata, 'optionalAccess', _407 => _407.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
15581
15690
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15582
15691
  MingoInfoCard,
15583
15692
  {
@@ -15646,12 +15755,12 @@ function ProductReleaseChatCard({
15646
15755
  discuss
15647
15756
  }) {
15648
15757
  const releaseProps = buildProps(item);
15649
- const status = _optionalChain([item, 'optionalAccess', _403 => _403.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
15758
+ const status = _optionalChain([item, 'optionalAccess', _408 => _408.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
15650
15759
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15651
15760
  EntityMingoCard,
15652
15761
  {
15653
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _404 => _404.title]), () => ( "")),
15654
- description: _optionalChain([item, 'optionalAccess', _405 => _405.summary]) || releaseProps.formattedDate || void 0,
15762
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.title]), () => ( "")),
15763
+ description: _optionalChain([item, 'optionalAccess', _410 => _410.summary]) || releaseProps.formattedDate || void 0,
15655
15764
  cover: releaseProps.coverImage || void 0,
15656
15765
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.Rocket02Icon, { size: 24 }),
15657
15766
  status,
@@ -15668,17 +15777,17 @@ function CampaignChatCard({
15668
15777
  isNewTab,
15669
15778
  discuss
15670
15779
  }) {
15671
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _406 => _406.goals])) ? item.goals.length : 0;
15780
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _411 => _411.goals])) ? item.goals.length : 0;
15672
15781
  const meta = [
15673
- _optionalChain([item, 'optionalAccess', _407 => _407.start_date]) ? _chunkEX5PJGVAcjs.formatDateShort.call(void 0, item.start_date) : null,
15782
+ _optionalChain([item, 'optionalAccess', _412 => _412.start_date]) ? _chunkEX5PJGVAcjs.formatDateShort.call(void 0, item.start_date) : null,
15674
15783
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
15675
15784
  "Marketing campaign"
15676
15785
  ].filter(Boolean).join(" \xB7 ");
15677
15786
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15678
15787
  EntityMingoCard,
15679
15788
  {
15680
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _408 => _408.name]), () => ( "")),
15681
- description: meta || _optionalChain([item, 'optionalAccess', _409 => _409.description]) || void 0,
15789
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _413 => _413.name]), () => ( "")),
15790
+ description: meta || _optionalChain([item, 'optionalAccess', _414 => _414.description]) || void 0,
15682
15791
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.Megaphone01Icon, { size: 24 }),
15683
15792
  chatRef,
15684
15793
  isNewTab,
@@ -15733,14 +15842,14 @@ function BlogChatCard({
15733
15842
  hasEmbeddedVideo,
15734
15843
  discuss
15735
15844
  }) {
15736
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _410 => _410.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _411 => _411.categories, 'access', _412 => _412.find, 'call', _413 => _413((c) => _optionalChain([c, 'optionalAccess', _414 => _414.name])), 'optionalAccess', _415 => _415.name]), () => ( void 0)) : void 0;
15845
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _415 => _415.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _416 => _416.categories, 'access', _417 => _417.find, 'call', _418 => _418((c) => _optionalChain([c, 'optionalAccess', _419 => _419.name])), 'optionalAccess', _420 => _420.name]), () => ( void 0)) : void 0;
15737
15846
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
15738
15847
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15739
15848
  EntityMingoCard,
15740
15849
  {
15741
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _416 => _416.title]), () => ( "")),
15742
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _417 => _417.summary]), () => ( void 0)),
15743
- cover: entityCover(_optionalChain([item, 'optionalAccess', _418 => _418.featured_image]), ogPlaceholder),
15850
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _421 => _421.title]), () => ( "")),
15851
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.summary]), () => ( void 0)),
15852
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _423 => _423.featured_image]), ogPlaceholder),
15744
15853
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.NewspaperIcon, { size: 24 }),
15745
15854
  status,
15746
15855
  chatRef,
@@ -15757,13 +15866,13 @@ function CaseStudyChatCard({
15757
15866
  ogPlaceholder,
15758
15867
  discuss
15759
15868
  }) {
15760
- const meta = [_optionalChain([item, 'optionalAccess', _419 => _419.msp, 'optionalAccess', _420 => _420.name]), _optionalChain([item, 'optionalAccess', _421 => _421.user, 'optionalAccess', _422 => _422.full_name])].filter(Boolean).join(" \xB7 ");
15869
+ const meta = [_optionalChain([item, 'optionalAccess', _424 => _424.msp, 'optionalAccess', _425 => _425.name]), _optionalChain([item, 'optionalAccess', _426 => _426.user, 'optionalAccess', _427 => _427.full_name])].filter(Boolean).join(" \xB7 ");
15761
15870
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15762
15871
  EntityMingoCard,
15763
15872
  {
15764
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _423 => _423.title]), () => ( "")),
15765
- description: _optionalChain([item, 'optionalAccess', _424 => _424.summary]) || meta || void 0,
15766
- cover: entityCover(_optionalChain([item, 'optionalAccess', _425 => _425.featured_image]), ogPlaceholder),
15873
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _428 => _428.title]), () => ( "")),
15874
+ description: _optionalChain([item, 'optionalAccess', _429 => _429.summary]) || meta || void 0,
15875
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _430 => _430.featured_image]), ogPlaceholder),
15767
15876
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TrophyIcon, { size: 24 }),
15768
15877
  status: { label: "Case study", variant: "grey" },
15769
15878
  chatRef,
@@ -15780,13 +15889,13 @@ function CustomerInterviewChatCard({
15780
15889
  ogPlaceholder,
15781
15890
  discuss
15782
15891
  }) {
15783
- const meta = [_optionalChain([item, 'optionalAccess', _426 => _426.user, 'optionalAccess', _427 => _427.full_name]), _optionalChain([item, 'optionalAccess', _428 => _428.msp, 'optionalAccess', _429 => _429.name])].filter(Boolean).join(" \xB7 ");
15892
+ const meta = [_optionalChain([item, 'optionalAccess', _431 => _431.user, 'optionalAccess', _432 => _432.full_name]), _optionalChain([item, 'optionalAccess', _433 => _433.msp, 'optionalAccess', _434 => _434.name])].filter(Boolean).join(" \xB7 ");
15784
15893
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15785
15894
  EntityMingoCard,
15786
15895
  {
15787
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _430 => _430.title]), () => ( "")),
15788
- description: _optionalChain([item, 'optionalAccess', _431 => _431.video_summary]) || meta || void 0,
15789
- cover: entityCover(_optionalChain([item, 'optionalAccess', _432 => _432.featured_image]), ogPlaceholder),
15896
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _435 => _435.title]), () => ( "")),
15897
+ description: _optionalChain([item, 'optionalAccess', _436 => _436.video_summary]) || meta || void 0,
15898
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _437 => _437.featured_image]), ogPlaceholder),
15790
15899
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.MicrophoneIcon, { size: 24 }),
15791
15900
  status: { label: "Interview", variant: "grey" },
15792
15901
  chatRef,
@@ -15803,13 +15912,13 @@ function InvestorUpdateChatCard({
15803
15912
  ogPlaceholder,
15804
15913
  discuss
15805
15914
  }) {
15806
- const title = _optionalChain([item, 'optionalAccess', _433 => _433.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _434 => _434.update_number]), () => ( "?"))}`;
15915
+ const title = _optionalChain([item, 'optionalAccess', _438 => _438.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _439 => _439.update_number]), () => ( "?"))}`;
15807
15916
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15808
15917
  EntityMingoCard,
15809
15918
  {
15810
15919
  title,
15811
- description: _optionalChain([item, 'optionalAccess', _435 => _435.strategic_update]) || _optionalChain([item, 'optionalAccess', _436 => _436.content]) || _chunkEX5PJGVAcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _437 => _437.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _438 => _438.period_end]), () => ( null))) || void 0,
15812
- cover: entityCover(_optionalChain([item, 'optionalAccess', _439 => _439.featured_image]), ogPlaceholder),
15920
+ description: _optionalChain([item, 'optionalAccess', _440 => _440.strategic_update]) || _optionalChain([item, 'optionalAccess', _441 => _441.content]) || _chunkEX5PJGVAcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _442 => _442.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _443 => _443.period_end]), () => ( null))) || void 0,
15921
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _444 => _444.featured_image]), ogPlaceholder),
15813
15922
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.PresentationLineIcon, { size: 24 }),
15814
15923
  status: { label: "Investor update", variant: "grey" },
15815
15924
  chatRef,
@@ -15826,12 +15935,12 @@ function OnboardingGuideChatCard({
15826
15935
  ogPlaceholder,
15827
15936
  discuss
15828
15937
  }) {
15829
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _440 => _440.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _441 => _441.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _442 => _442.og_image_url]), ogPlaceholder)));
15938
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _445 => _445.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _446 => _446.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _447 => _447.og_image_url]), ogPlaceholder)));
15830
15939
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15831
15940
  EntityMingoCard,
15832
15941
  {
15833
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _443 => _443.title]), () => ( "")),
15834
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _444 => _444.summary]), () => ( _optionalChain([item, 'optionalAccess', _445 => _445.description]))), () => ( void 0)),
15942
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _448 => _448.title]), () => ( "")),
15943
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _449 => _449.summary]), () => ( _optionalChain([item, 'optionalAccess', _450 => _450.description]))), () => ( void 0)),
15835
15944
  cover,
15836
15945
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.CompassIcon, { size: 24 }),
15837
15946
  status: { label: "Guide", variant: "grey" },
@@ -15856,9 +15965,9 @@ function ProgramChatCard({
15856
15965
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15857
15966
  EntityMingoCard,
15858
15967
  {
15859
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _446 => _446.title]), () => ( "")),
15860
- description: meta || _optionalChain([item, 'optionalAccess', _447 => _447.description]) || void 0,
15861
- cover: entityCover(_optionalChain([item, 'optionalAccess', _448 => _448.cover_url]), ogPlaceholder),
15968
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _451 => _451.title]), () => ( "")),
15969
+ description: meta || _optionalChain([item, 'optionalAccess', _452 => _452.description]) || void 0,
15970
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _453 => _453.cover_url]), ogPlaceholder),
15862
15971
  fallbackIcon: icon,
15863
15972
  status: { label, variant: "grey" },
15864
15973
  chatRef,
@@ -15875,10 +15984,10 @@ function RoadmapChatCard({
15875
15984
  cardType,
15876
15985
  discuss
15877
15986
  }) {
15878
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _449 => _449.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15879
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _450 => _450.customItemId]) != null;
15987
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _454 => _454.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15988
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _455 => _455.customItemId]) != null;
15880
15989
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.MapIcon, { size: 24 });
15881
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _451 => _451.customItemId]), className: "size-6" }) : logoUrl ? (
15990
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _456 => _456.customItemId]), className: "size-6" }) : logoUrl ? (
15882
15991
  // Contained (not full-bleed) so the integration logo keeps its aspect
15883
15992
  // ratio inside the bordered icon box — matches RoadmapCard.
15884
15993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
@@ -15889,10 +15998,10 @@ function RoadmapChatCard({
15889
15998
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15890
15999
  EntityMingoCard,
15891
16000
  {
15892
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _452 => _452.title]), () => ( "")),
15893
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _453 => _453.description]), () => ( void 0)),
16001
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _457 => _457.title]), () => ( "")),
16002
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _458 => _458.description]), () => ( void 0)),
15894
16003
  fallbackIcon: icon,
15895
- status: statusPill(_optionalChain([item, 'optionalAccess', _454 => _454.status])),
16004
+ status: statusPill(_optionalChain([item, 'optionalAccess', _459 => _459.status])),
15896
16005
  chatRef,
15897
16006
  isNewTab,
15898
16007
  discuss,
@@ -15908,7 +16017,7 @@ function refHydratedEntry(docType, label, renderRef) {
15908
16017
  bareInline: true,
15909
16018
  contentRefType: docType,
15910
16019
  noComposedHref: true,
15911
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _455 => _455.url]), () => ( null)),
16020
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _460 => _460.url]), () => ( null)),
15912
16021
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15913
16022
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
15914
16023
  };
@@ -15965,8 +16074,8 @@ function refGlyphRegistryEntries() {
15965
16074
  title: displayRef.title,
15966
16075
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
15967
16076
  cover: entityCover(
15968
- _optionalChain([displayRef, 'access', _456 => _456.metadata, 'optionalAccess', _457 => _457.videoPoster]),
15969
- _nullishCoalesce(_optionalChain([opts, 'access', _458 => _458.extras, 'optionalAccess', _459 => _459.buildOgPlaceholderUrl, 'optionalCall', _460 => _460(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
16077
+ _optionalChain([displayRef, 'access', _461 => _461.metadata, 'optionalAccess', _462 => _462.videoPoster]),
16078
+ _nullishCoalesce(_optionalChain([opts, 'access', _463 => _463.extras, 'optionalAccess', _464 => _464.buildOgPlaceholderUrl, 'optionalCall', _465 => _465(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
15970
16079
  ),
15971
16080
  fallbackIcon: cfg.icon(),
15972
16081
  status: { label: cfg.label, variant: "grey" },
@@ -15981,9 +16090,9 @@ function refGlyphRegistryEntries() {
15981
16090
  }
15982
16091
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15983
16092
  const it = item;
15984
- const title = typeof _optionalChain([it, 'optionalAccess', _461 => _461.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15985
- const author = typeof _optionalChain([it, 'optionalAccess', _462 => _462.author, 'optionalAccess', _463 => _463.full_name]) === "string" ? it.author.full_name.trim() : "";
15986
- const summary = typeof _optionalChain([it, 'optionalAccess', _464 => _464.summary]) === "string" ? it.summary.trim() : "";
16093
+ const title = typeof _optionalChain([it, 'optionalAccess', _466 => _466.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
16094
+ const author = typeof _optionalChain([it, 'optionalAccess', _467 => _467.author, 'optionalAccess', _468 => _468.full_name]) === "string" ? it.author.full_name.trim() : "";
16095
+ const summary = typeof _optionalChain([it, 'optionalAccess', _469 => _469.summary]) === "string" ? it.summary.trim() : "";
15987
16096
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
15988
16097
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
15989
16098
  }
@@ -16035,7 +16144,7 @@ function programRegistryEntries() {
16035
16144
  discuss: opts.discuss,
16036
16145
  configKey: cfg.configKey,
16037
16146
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
16038
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _465 => _465.extras, 'optionalAccess', _466 => _466.buildOgPlaceholderUrl, 'optionalCall', _467 => _467(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _468 => _468.title]), () => ( "")))]), () => ( null))
16147
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _470 => _470.extras, 'optionalAccess', _471 => _471.buildOgPlaceholderUrl, 'optionalCall', _472 => _472(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _473 => _473.title]), () => ( "")))]), () => ( null))
16039
16148
  }
16040
16149
  )
16041
16150
  }));
@@ -16056,7 +16165,7 @@ var ROADMAP_CARD_CONFIGS = {
16056
16165
  // The card's destination IS the ClickUp deep link, derived from the
16057
16166
  // task id post-fetch (the refs frame used to carry it).
16058
16167
  noComposedHref: true,
16059
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _469 => _469.id]) != null ? clickupTaskUrl(String(item.id)) : null
16168
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _474 => _474.id]) != null ? clickupTaskUrl(String(item.id)) : null
16060
16169
  }
16061
16170
  };
16062
16171
  function roadmapRegistryEntries() {
@@ -16098,8 +16207,8 @@ var CHAT_CARD_REGISTRY = {
16098
16207
  DeletedDataCard,
16099
16208
  {
16100
16209
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
16101
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _470 => _470.metadata, 'optionalAccess', _471 => _471.entity_label]), () => ( null)),
16102
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _472 => _472.metadata, 'optionalAccess', _473 => _473.recovery_note]), () => ( null))
16210
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _475 => _475.metadata, 'optionalAccess', _476 => _476.entity_label]), () => ( null)),
16211
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _477 => _477.metadata, 'optionalAccess', _478 => _478.recovery_note]), () => ( null))
16103
16212
  }
16104
16213
  )
16105
16214
  },
@@ -16116,7 +16225,7 @@ var CHAT_CARD_REGISTRY = {
16116
16225
  bareInline: true,
16117
16226
  contentRefType: "faq",
16118
16227
  noComposedHref: true,
16119
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _474 => _474.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
16228
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _479 => _479.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
16120
16229
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
16121
16230
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
16122
16231
  },
@@ -16150,8 +16259,8 @@ var CHAT_CARD_REGISTRY = {
16150
16259
  chatRef,
16151
16260
  isNewTab: opts.isNewTab,
16152
16261
  discuss: opts.discuss,
16153
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _475 => _475.extras, 'optionalAccess', _476 => _476.buildOgPlaceholderUrl, 'optionalCall', _477 => _477(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _478 => _478.title]), () => ( "")))]), () => ( null)),
16154
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _479 => _479.metadata, 'optionalAccess', _480 => _480.hasEmbeddedVideo]) === true
16262
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _480 => _480.extras, 'optionalAccess', _481 => _481.buildOgPlaceholderUrl, 'optionalCall', _482 => _482(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _483 => _483.title]), () => ( "")))]), () => ( null)),
16263
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _484 => _484.metadata, 'optionalAccess', _485 => _485.hasEmbeddedVideo]) === true
16155
16264
  }
16156
16265
  )
16157
16266
  },
@@ -16167,7 +16276,7 @@ var CHAT_CARD_REGISTRY = {
16167
16276
  chatRef,
16168
16277
  isNewTab: opts.isNewTab,
16169
16278
  discuss: opts.discuss,
16170
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _481 => _481.extras, 'optionalAccess', _482 => _482.buildOgPlaceholderUrl, 'optionalCall', _483 => _483(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _484 => _484.title]), () => ( "")))]), () => ( null))
16279
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _486 => _486.extras, 'optionalAccess', _487 => _487.buildOgPlaceholderUrl, 'optionalCall', _488 => _488(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _489 => _489.title]), () => ( "")))]), () => ( null))
16171
16280
  }
16172
16281
  )
16173
16282
  },
@@ -16183,7 +16292,7 @@ var CHAT_CARD_REGISTRY = {
16183
16292
  chatRef,
16184
16293
  isNewTab: opts.isNewTab,
16185
16294
  discuss: opts.discuss,
16186
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _485 => _485.extras, 'optionalAccess', _486 => _486.buildOgPlaceholderUrl, 'optionalCall', _487 => _487(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _488 => _488.title]), () => ( "")))]), () => ( null))
16295
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _490 => _490.extras, 'optionalAccess', _491 => _491.buildOgPlaceholderUrl, 'optionalCall', _492 => _492(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _493 => _493.title]), () => ( "")))]), () => ( null))
16187
16296
  }
16188
16297
  )
16189
16298
  },
@@ -16193,7 +16302,7 @@ var CHAT_CARD_REGISTRY = {
16193
16302
  bareInline: true,
16194
16303
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.ProductReleaseCardSkeleton, { size: "sm" }),
16195
16304
  render: (item, chatRef, opts) => {
16196
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _489 => _489.extras, 'optionalAccess', _490 => _490.buildProductReleaseCardProps]), () => ( _chunkEX5PJGVAcjs.defaultBuildProductReleaseCardProps));
16305
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _494 => _494.extras, 'optionalAccess', _495 => _495.buildProductReleaseCardProps]), () => ( _chunkEX5PJGVAcjs.defaultBuildProductReleaseCardProps));
16197
16306
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16198
16307
  ProductReleaseChatCard,
16199
16308
  {
@@ -16219,7 +16328,7 @@ var CHAT_CARD_REGISTRY = {
16219
16328
  chatRef,
16220
16329
  isNewTab: opts.isNewTab,
16221
16330
  discuss: opts.discuss,
16222
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _491 => _491.extras, 'optionalAccess', _492 => _492.buildOgPlaceholderUrl, 'optionalCall', _493 => _493(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _494 => _494.title]), () => ( "")))]), () => ( null))
16331
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _496 => _496.extras, 'optionalAccess', _497 => _497.buildOgPlaceholderUrl, 'optionalCall', _498 => _498(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _499 => _499.title]), () => ( "")))]), () => ( null))
16223
16332
  }
16224
16333
  )
16225
16334
  },
@@ -16237,7 +16346,7 @@ var CHAT_CARD_REGISTRY = {
16237
16346
  chatRef,
16238
16347
  isNewTab: opts.isNewTab,
16239
16348
  discuss: opts.discuss,
16240
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _495 => _495.extras, 'optionalAccess', _496 => _496.buildOgPlaceholderUrl, 'optionalCall', _497 => _497(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _498 => _498.title]), () => ( "")))]), () => ( null))
16349
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _500 => _500.extras, 'optionalAccess', _501 => _501.buildOgPlaceholderUrl, 'optionalCall', _502 => _502(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _503 => _503.title]), () => ( "")))]), () => ( null))
16241
16350
  }
16242
16351
  )
16243
16352
  },
@@ -16248,13 +16357,13 @@ var CHAT_CARD_REGISTRY = {
16248
16357
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
16249
16358
  // No public viewer — synthesize the hub-internal admin URL post-fetch
16250
16359
  // so the wrapper + isNewTab computation see the actual destination.
16251
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _499 => _499.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
16360
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _504 => _504.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
16252
16361
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
16253
16362
  },
16254
16363
  ...roadmapRegistryEntries()
16255
16364
  };
16256
16365
  function chatCardLabel(docType) {
16257
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _500 => _500[docType], 'optionalAccess', _501 => _501.label]);
16366
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _505 => _505[docType], 'optionalAccess', _506 => _506.label]);
16258
16367
  }
16259
16368
  function ChatCardNavWrap({
16260
16369
  href,
@@ -16270,13 +16379,13 @@ function ChatCardNavWrap({
16270
16379
  if (!href) return;
16271
16380
  const targetEl = e.target;
16272
16381
  const host = e.currentTarget;
16273
- if (!_optionalChain([host, 'optionalAccess', _502 => _502.contains, 'call', _503 => _503(targetEl)])) return;
16274
- if (_optionalChain([targetEl, 'optionalAccess', _504 => _504.closest, 'optionalCall', _505 => _505("button")])) return;
16275
- if (!_optionalChain([targetEl, 'optionalAccess', _506 => _506.closest, 'optionalCall', _507 => _507("a")])) return;
16382
+ if (!_optionalChain([host, 'optionalAccess', _507 => _507.contains, 'call', _508 => _508(targetEl)])) return;
16383
+ if (_optionalChain([targetEl, 'optionalAccess', _509 => _509.closest, 'optionalCall', _510 => _510("button")])) return;
16384
+ if (!_optionalChain([targetEl, 'optionalAccess', _511 => _511.closest, 'optionalCall', _512 => _512("a")])) return;
16276
16385
  const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
16277
16386
  if (!handled) return;
16278
16387
  e.stopPropagation();
16279
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _508 => _508.closeChat])) panel.closeChat();
16388
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _513 => _513.closeChat])) panel.closeChat();
16280
16389
  };
16281
16390
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
16282
16391
  }
@@ -16298,7 +16407,7 @@ function ChatCardLoader({
16298
16407
  title: chatRef.title,
16299
16408
  externalUrl: chatRef.url,
16300
16409
  targetPlatform: chatRef.targetPlatform,
16301
- path: typeof _optionalChain([chatRef, 'access', _509 => _509.metadata, 'optionalAccess', _510 => _510.path]) === "string" ? chatRef.metadata.path : null
16410
+ path: typeof _optionalChain([chatRef, 'access', _514 => _514.metadata, 'optionalAccess', _515 => _515.path]) === "string" ? chatRef.metadata.path : null
16302
16411
  },
16303
16412
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
16304
16413
  );
@@ -16312,11 +16421,11 @@ function ChatCardLoader({
16312
16421
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
16313
16422
  const fetchEntry = entry && entry.contentRefType ? entry : null;
16314
16423
  const { item, isLoading, isError, isFetched } = useChatCardItem(
16315
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _511 => _511.contentRefType]), () => ( "")),
16424
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _516 => _516.contentRefType]), () => ( "")),
16316
16425
  fetchEntry ? resolvedChatRef.id : ""
16317
16426
  );
16318
16427
  if (!entry) return null;
16319
- const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _512 => _512.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
16428
+ const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _517 => _517.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
16320
16429
  contentRefType: fetchEntry.contentRefType,
16321
16430
  id: resolvedChatRef.id,
16322
16431
  item,
@@ -16324,7 +16433,7 @@ function ChatCardLoader({
16324
16433
  }) : null;
16325
16434
  const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
16326
16435
  composed: composedHref,
16327
- itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _513 => _513.fallbackHref, 'optionalCall', _514 => _514(item)]), () => ( null)),
16436
+ itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _518 => _518.fallbackHref, 'optionalCall', _519 => _519(item)]), () => ( null)),
16328
16437
  allowComposed: !fetchEntry.noComposedHref
16329
16438
  }) : null;
16330
16439
  const hrefResolvedChatRef = hrefChoice ? {
@@ -16341,7 +16450,7 @@ function ChatCardLoader({
16341
16450
  const discuss = discussFn ? {
16342
16451
  label: useDisplay ? "Display" : "Ask Mingo",
16343
16452
  icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16344
- _chunkDWJREJRAcjs.MingoIcon,
16453
+ _chunkPSXUY4K5cjs.MingoIcon,
16345
16454
  {
16346
16455
  className: "size-5",
16347
16456
  color: "white",
@@ -16358,7 +16467,7 @@ function ChatCardLoader({
16358
16467
  isNewTab,
16359
16468
  discuss
16360
16469
  };
16361
- const path = typeof _optionalChain([finalChatRef, 'access', _515 => _515.metadata, 'optionalAccess', _516 => _516.path]) === "string" ? finalChatRef.metadata.path : null;
16470
+ const path = typeof _optionalChain([finalChatRef, 'access', _520 => _520.metadata, 'optionalAccess', _521 => _521.path]) === "string" ? finalChatRef.metadata.path : null;
16362
16471
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16363
16472
  ChatCardNavWrap,
16364
16473
  {
@@ -16382,7 +16491,7 @@ function ChatCardLoader({
16382
16491
  if (!fetchEntry) {
16383
16492
  return finish(entry.render(void 0, finalChatRef, renderOpts));
16384
16493
  }
16385
- if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _517 => _517.skeleton, 'optionalCall', _518 => _518()]), () => ( null)) });
16494
+ if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _522 => _522.skeleton, 'optionalCall', _523 => _523()]), () => ( null)) });
16386
16495
  if (!item) {
16387
16496
  if (isError) {
16388
16497
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
@@ -16745,7 +16854,7 @@ function useChunkCatchup({
16745
16854
  if (catchupRun.current === run) {
16746
16855
  if (currentDialogId !== dialogIdRef.current) {
16747
16856
  catchupRun.current = null;
16748
- if (_optionalChain([pendingCatchupRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.dialogId]) === currentDialogId) {
16857
+ if (_optionalChain([pendingCatchupRef, 'access', _524 => _524.current, 'optionalAccess', _525 => _525.dialogId]) === currentDialogId) {
16749
16858
  pendingCatchupRef.current = null;
16750
16859
  }
16751
16860
  } else {
@@ -16756,7 +16865,7 @@ function useChunkCatchup({
16756
16865
  if (pending.dialogId === currentDialogId) {
16757
16866
  rearmForQueuedCatchup();
16758
16867
  try {
16759
- await _optionalChain([catchUpChunksRef, 'access', _521 => _521.current, 'optionalCall', _522 => _522(pending.fromSequenceId)]);
16868
+ await _optionalChain([catchUpChunksRef, 'access', _526 => _526.current, 'optionalCall', _527 => _527(pending.fromSequenceId)]);
16760
16869
  } catch (rerunError) {
16761
16870
  console.error("Queued catch-up re-run failed:", rerunError);
16762
16871
  }
@@ -16823,7 +16932,7 @@ function useChunkCatchup({
16823
16932
 
16824
16933
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
16825
16934
  function prefersReducedMotion() {
16826
- return typeof window !== "undefined" && _optionalChain([window, 'access', _523 => _523.matchMedia, 'optionalCall', _524 => _524("(prefers-reduced-motion: reduce)"), 'access', _525 => _525.matches]) === true;
16935
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _528 => _528.matchMedia, 'optionalCall', _529 => _529("(prefers-reduced-motion: reduce)"), 'access', _530 => _530.matches]) === true;
16827
16936
  }
16828
16937
  function useScriptedStream(frames, resetKey, enabled = true) {
16829
16938
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -16834,7 +16943,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
16834
16943
  setIndex(0);
16835
16944
  }
16836
16945
  _react.useEffect.call(void 0, () => {
16837
- const mq = _optionalChain([window, 'access', _526 => _526.matchMedia, 'optionalCall', _527 => _527("(prefers-reduced-motion: reduce)")]);
16946
+ const mq = _optionalChain([window, 'access', _531 => _531.matchMedia, 'optionalCall', _532 => _532("(prefers-reduced-motion: reduce)")]);
16838
16947
  const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
16839
16948
  sync();
16840
16949
  if (!mq) return void 0;
@@ -16977,7 +17086,7 @@ function useJetStreamDialogSubscription({
16977
17086
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16978
17087
  conn: sharedConn,
16979
17088
  wsUrl,
16980
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _528 => _528.current, 'optionalCall', _529 => _529()]),
17089
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _533 => _533.current, 'optionalCall', _534 => _534()]),
16981
17090
  backoff: reconnectionBackoffRef.current,
16982
17091
  getFreshUrl: () => getNatsWsUrlRef.current(),
16983
17092
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -16992,7 +17101,7 @@ function useJetStreamDialogSubscription({
16992
17101
  setReconnectionCount((c) => c + 1);
16993
17102
  }
16994
17103
  hadConnectionBeforeRef.current = true;
16995
- _optionalChain([onConnectRef, 'access', _530 => _530.current, 'optionalCall', _531 => _531()]);
17104
+ _optionalChain([onConnectRef, 'access', _535 => _535.current, 'optionalCall', _536 => _536()]);
16996
17105
  }
16997
17106
  if (status === "error") {
16998
17107
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -17002,7 +17111,7 @@ function useJetStreamDialogSubscription({
17002
17111
  setIsConnected(false);
17003
17112
  setIsSubscribed(false);
17004
17113
  tearDownSubscription();
17005
- _optionalChain([onDisconnectRef, 'access', _532 => _532.current, 'optionalCall', _533 => _533()]);
17114
+ _optionalChain([onDisconnectRef, 'access', _537 => _537.current, 'optionalCall', _538 => _538()]);
17006
17115
  }
17007
17116
  }
17008
17117
  });
@@ -17128,7 +17237,7 @@ function useJetStreamDialogSubscription({
17128
17237
  }
17129
17238
  subscriptionRef.current = handle;
17130
17239
  setIsSubscribed(true);
17131
- _optionalChain([onSubscribedRef, 'access', _534 => _534.current, 'optionalCall', _535 => _535()]);
17240
+ _optionalChain([onSubscribedRef, 'access', _539 => _539.current, 'optionalCall', _540 => _540()]);
17132
17241
  } catch (e52) {
17133
17242
  if (!cancelled) {
17134
17243
  setIsSubscribed(false);
@@ -17244,20 +17353,20 @@ function useNatsDialogSubscription({
17244
17353
  const tearDownSubscriptions = () => {
17245
17354
  subscriptionRefs.current.forEach((sub) => {
17246
17355
  try {
17247
- _optionalChain([sub, 'optionalAccess', _536 => _536.unsubscribe, 'call', _537 => _537()]);
17356
+ _optionalChain([sub, 'optionalAccess', _541 => _541.unsubscribe, 'call', _542 => _542()]);
17248
17357
  } catch (e54) {
17249
17358
  }
17250
17359
  });
17251
17360
  subscriptionRefs.current.clear();
17252
17361
  lastSubscribedDialogIdRef.current = null;
17253
- _optionalChain([abortControllerRef, 'access', _538 => _538.current, 'optionalAccess', _539 => _539.abort, 'call', _540 => _540()]);
17362
+ _optionalChain([abortControllerRef, 'access', _543 => _543.current, 'optionalAccess', _544 => _544.abort, 'call', _545 => _545()]);
17254
17363
  abortControllerRef.current = null;
17255
17364
  };
17256
17365
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
17257
17366
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
17258
17367
  conn: sharedConn,
17259
17368
  wsUrl,
17260
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _541 => _541.current, 'optionalCall', _542 => _542()]),
17369
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _546 => _546.current, 'optionalCall', _547 => _547()]),
17261
17370
  backoff: reconnectionBackoffRef.current,
17262
17371
  getFreshUrl: () => getNatsWsUrlRef.current(),
17263
17372
  shouldRetryOn: isDisconnectStatus,
@@ -17268,7 +17377,7 @@ function useNatsDialogSubscription({
17268
17377
  setReconnectionCount((c) => c + 1);
17269
17378
  }
17270
17379
  hadConnectionBeforeRef.current = true;
17271
- _optionalChain([onConnectRef, 'access', _543 => _543.current, 'optionalCall', _544 => _544()]);
17380
+ _optionalChain([onConnectRef, 'access', _548 => _548.current, 'optionalCall', _549 => _549()]);
17272
17381
  }
17273
17382
  if (status === "error") {
17274
17383
  console.warn("[NATS] protocol error:", evt.data);
@@ -17278,7 +17387,7 @@ function useNatsDialogSubscription({
17278
17387
  setIsConnected(false);
17279
17388
  setIsSubscribed(false);
17280
17389
  tearDownSubscriptions();
17281
- _optionalChain([onDisconnectRef, 'access', _545 => _545.current, 'optionalCall', _546 => _546()]);
17390
+ _optionalChain([onDisconnectRef, 'access', _550 => _550.current, 'optionalCall', _551 => _551()]);
17282
17391
  }
17283
17392
  }
17284
17393
  });
@@ -17309,13 +17418,13 @@ function useNatsDialogSubscription({
17309
17418
  setIsSubscribed(false);
17310
17419
  subscriptionRefs.current.forEach((sub) => {
17311
17420
  try {
17312
- _optionalChain([sub, 'optionalAccess', _547 => _547.unsubscribe, 'call', _548 => _548()]);
17421
+ _optionalChain([sub, 'optionalAccess', _552 => _552.unsubscribe, 'call', _553 => _553()]);
17313
17422
  } catch (e55) {
17314
17423
  }
17315
17424
  });
17316
17425
  subscriptionRefs.current.clear();
17317
17426
  lastSubscribedDialogIdRef.current = null;
17318
- _optionalChain([abortControllerRef, 'access', _549 => _549.current, 'optionalAccess', _550 => _550.abort, 'call', _551 => _551()]);
17427
+ _optionalChain([abortControllerRef, 'access', _554 => _554.current, 'optionalAccess', _555 => _555.abort, 'call', _556 => _556()]);
17319
17428
  abortControllerRef.current = null;
17320
17429
  }
17321
17430
  return void 0;
@@ -17327,12 +17436,12 @@ function useNatsDialogSubscription({
17327
17436
  if (subscriptionRefs.current.size > 0) {
17328
17437
  subscriptionRefs.current.forEach((sub) => {
17329
17438
  try {
17330
- _optionalChain([sub, 'optionalAccess', _552 => _552.unsubscribe, 'call', _553 => _553()]);
17439
+ _optionalChain([sub, 'optionalAccess', _557 => _557.unsubscribe, 'call', _558 => _558()]);
17331
17440
  } catch (e56) {
17332
17441
  }
17333
17442
  });
17334
17443
  subscriptionRefs.current.clear();
17335
- _optionalChain([abortControllerRef, 'access', _554 => _554.current, 'optionalAccess', _555 => _555.abort, 'call', _556 => _556()]);
17444
+ _optionalChain([abortControllerRef, 'access', _559 => _559.current, 'optionalAccess', _560 => _560.abort, 'call', _561 => _561()]);
17336
17445
  }
17337
17446
  abortControllerRef.current = new AbortController();
17338
17447
  const abort = abortControllerRef.current;
@@ -17362,7 +17471,7 @@ function useNatsDialogSubscription({
17362
17471
  });
17363
17472
  lastSubscribedDialogIdRef.current = dialogId;
17364
17473
  setIsSubscribed(true);
17365
- _optionalChain([onSubscribedRef, 'access', _557 => _557.current, 'optionalCall', _558 => _558()]);
17474
+ _optionalChain([onSubscribedRef, 'access', _562 => _562.current, 'optionalCall', _563 => _563()]);
17366
17475
  };
17367
17476
  if (isConnectedRef.current) {
17368
17477
  createSubscriptions();
@@ -17373,7 +17482,7 @@ function useNatsDialogSubscription({
17373
17482
  abort.abort();
17374
17483
  subscriptions.forEach((sub) => {
17375
17484
  try {
17376
- _optionalChain([sub, 'optionalAccess', _559 => _559.unsubscribe, 'call', _560 => _560()]);
17485
+ _optionalChain([sub, 'optionalAccess', _564 => _564.unsubscribe, 'call', _565 => _565()]);
17377
17486
  } catch (e58) {
17378
17487
  }
17379
17488
  });
@@ -17412,7 +17521,7 @@ function useNatsDialogSubscription({
17412
17521
  });
17413
17522
  lastSubscribedDialogIdRef.current = currentDialogId;
17414
17523
  setIsSubscribed(true);
17415
- _optionalChain([onSubscribedRef, 'access', _561 => _561.current, 'optionalCall', _562 => _562()]);
17524
+ _optionalChain([onSubscribedRef, 'access', _566 => _566.current, 'optionalCall', _567 => _567()]);
17416
17525
  } else if (subscriptionRefs.current.size > 0) {
17417
17526
  setIsSubscribed(true);
17418
17527
  }
@@ -17420,10 +17529,10 @@ function useNatsDialogSubscription({
17420
17529
  return { isConnected, isSubscribed, reconnectionCount };
17421
17530
  }
17422
17531
  function buildNatsWsUrl(apiBaseUrl, options) {
17423
- const path = _optionalChain([options, 'optionalAccess', _563 => _563.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17532
+ const path = _optionalChain([options, 'optionalAccess', _568 => _568.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17424
17533
  const u = new URL(path, apiBaseUrl);
17425
17534
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
17426
- if (_optionalChain([options, 'optionalAccess', _564 => _564.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _565 => _565.token])) {
17535
+ if (_optionalChain([options, 'optionalAccess', _569 => _569.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _570 => _570.token])) {
17427
17536
  u.searchParams.set("authorization", options.token);
17428
17537
  }
17429
17538
  return u.toString();
@@ -17441,7 +17550,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17441
17550
  const data = await res.json();
17442
17551
  return _nullishCoalesce(data.commands, () => ( []));
17443
17552
  } catch (err) {
17444
- if (_optionalChain([err, 'optionalAccess', _566 => _566.name]) === "AbortError") throw err;
17553
+ if (_optionalChain([err, 'optionalAccess', _571 => _571.name]) === "AbortError") throw err;
17445
17554
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
17446
17555
  return [];
17447
17556
  }
@@ -17449,8 +17558,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17449
17558
  var NO_COMMANDS = [];
17450
17559
  function useSlashCommands(prefix, commandsUrl) {
17451
17560
  const [answered, setAnswered] = _react.useState.call(void 0, null);
17452
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _567 => _567.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17453
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _568 => _568.prefix]) !== prefix;
17561
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _572 => _572.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17562
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _573 => _573.prefix]) !== prefix;
17454
17563
  _react.useEffect.call(void 0, () => {
17455
17564
  if (prefix == null) return void 0;
17456
17565
  let cancelled = false;
@@ -17460,7 +17569,7 @@ function useSlashCommands(prefix, commandsUrl) {
17460
17569
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
17461
17570
  if (!cancelled) setAnswered({ prefix, commands: next });
17462
17571
  } catch (err) {
17463
- if (!cancelled && _optionalChain([err, 'optionalAccess', _569 => _569.name]) !== "AbortError") {
17572
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _574 => _574.name]) !== "AbortError") {
17464
17573
  console.warn("[use-slash-commands] fetch failed:", err);
17465
17574
  setAnswered({ prefix, commands: NO_COMMANDS });
17466
17575
  }
@@ -17483,7 +17592,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
17483
17592
  const query = _reactquery.useQuery.call(void 0, {
17484
17593
  queryKey: ["chat-slash-commands", commandsUrl],
17485
17594
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
17486
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _570 => _570.enabled]), () => ( true)),
17595
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _575 => _575.enabled]), () => ( true)),
17487
17596
  staleTime: Infinity,
17488
17597
  gcTime: Infinity,
17489
17598
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -17522,21 +17631,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
17522
17631
  }
17523
17632
  const data = await res.json();
17524
17633
  return {
17525
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _571 => _571.name]), () => ( null)),
17526
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _572 => _572.icon]), () => ( null)),
17527
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _573 => _573.greeting]), () => ( null)),
17528
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _574 => _574.enabledRagTableIds]), () => ( [])),
17529
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _575 => _575.quickActions]), () => ( [])),
17530
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _576 => _576.suggestedQueries]), () => ( []))
17634
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _576 => _576.name]), () => ( null)),
17635
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _577 => _577.icon]), () => ( null)),
17636
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _578 => _578.greeting]), () => ( null)),
17637
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _579 => _579.enabledRagTableIds]), () => ( [])),
17638
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _580 => _580.quickActions]), () => ( [])),
17639
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _581 => _581.suggestedQueries]), () => ( []))
17531
17640
  };
17532
17641
  } catch (err) {
17533
- if (_optionalChain([err, 'optionalAccess', _577 => _577.name]) === "AbortError") throw err;
17642
+ if (_optionalChain([err, 'optionalAccess', _582 => _582.name]) === "AbortError") throw err;
17534
17643
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
17535
17644
  return EMPTY_STATE_FALLBACK;
17536
17645
  }
17537
17646
  }
17538
17647
  function useEmptyStateConfig(emptyStateUrl, options) {
17539
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _578 => _578.enabled]), () => ( true))) && !!emptyStateUrl;
17648
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _583 => _583.enabled]), () => ( true))) && !!emptyStateUrl;
17540
17649
  const query = _reactquery.useQuery.call(void 0, {
17541
17650
  queryKey: ["chat-empty-state", emptyStateUrl],
17542
17651
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -17565,7 +17674,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
17565
17674
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
17566
17675
  function uploadWithProgress(url, file, token, onProgress, signal) {
17567
17676
  return new Promise((resolve, reject) => {
17568
- if (_optionalChain([signal, 'optionalAccess', _579 => _579.aborted])) {
17677
+ if (_optionalChain([signal, 'optionalAccess', _584 => _584.aborted])) {
17569
17678
  reject(new Error("Upload cancelled"));
17570
17679
  return;
17571
17680
  }
@@ -17607,7 +17716,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
17607
17716
  const handleSignalAbort = () => {
17608
17717
  xhr.abort();
17609
17718
  };
17610
- _optionalChain([signal, 'optionalAccess', _580 => _580.addEventListener, 'call', _581 => _581("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17719
+ _optionalChain([signal, 'optionalAccess', _585 => _585.addEventListener, 'call', _586 => _586("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17611
17720
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
17612
17721
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
17613
17722
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -17651,10 +17760,10 @@ function useChatAttachments() {
17651
17760
  try {
17652
17761
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
17653
17762
  } catch (err) {
17654
- if (_optionalChain([ctrl, 'optionalAccess', _582 => _582.signal, 'access', _583 => _583.aborted])) return;
17763
+ if (_optionalChain([ctrl, 'optionalAccess', _587 => _587.signal, 'access', _588 => _588.aborted])) return;
17655
17764
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
17656
17765
  }
17657
- if (_optionalChain([ctrl, 'optionalAccess', _584 => _584.signal, 'access', _585 => _585.aborted])) return;
17766
+ if (_optionalChain([ctrl, 'optionalAccess', _589 => _589.signal, 'access', _590 => _590.aborted])) return;
17658
17767
  if (!sniffed) {
17659
17768
  throw new Error("Unrecognized file format");
17660
17769
  }
@@ -17668,7 +17777,7 @@ function useChatAttachments() {
17668
17777
  const urlResp = await _chunkXOGD2AMEcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17669
17778
  method: "POST",
17670
17779
  headers: { "Content-Type": "application/json" },
17671
- signal: _optionalChain([ctrl, 'optionalAccess', _586 => _586.signal]),
17780
+ signal: _optionalChain([ctrl, 'optionalAccess', _591 => _591.signal]),
17672
17781
  body: JSON.stringify({
17673
17782
  fileName: att.file.name,
17674
17783
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -17697,9 +17806,9 @@ function useChatAttachments() {
17697
17806
  (pct) => {
17698
17807
  updateOne(att.id, { progress: pct });
17699
17808
  },
17700
- _optionalChain([ctrl, 'optionalAccess', _587 => _587.signal])
17809
+ _optionalChain([ctrl, 'optionalAccess', _592 => _592.signal])
17701
17810
  );
17702
- if (_optionalChain([ctrl, 'optionalAccess', _588 => _588.signal, 'access', _589 => _589.aborted])) return;
17811
+ if (_optionalChain([ctrl, 'optionalAccess', _593 => _593.signal, 'access', _594 => _594.aborted])) return;
17703
17812
  updateOne(att.id, {
17704
17813
  status: "ready",
17705
17814
  progress: 100,
@@ -17707,7 +17816,7 @@ function useChatAttachments() {
17707
17816
  viewToken: mintData.viewToken
17708
17817
  });
17709
17818
  } catch (err) {
17710
- if (_optionalChain([ctrl, 'optionalAccess', _590 => _590.signal, 'access', _591 => _591.aborted])) return;
17819
+ if (_optionalChain([ctrl, 'optionalAccess', _595 => _595.signal, 'access', _596 => _596.aborted])) return;
17711
17820
  const message = err instanceof Error ? err.message : String(err);
17712
17821
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
17713
17822
  } finally {
@@ -17856,11 +17965,11 @@ var ANON_DEFAULTS = {
17856
17965
  function useResolveChatIdentity(enabled) {
17857
17966
  const runtime = _chunkU2YLMFJKcjs.useRequiredChatRuntime.call(void 0, );
17858
17967
  const url = runtime.endpoints.identityUrl;
17859
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkXOGD2AMEcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _592 => _592.email]), () => ( null));
17968
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkXOGD2AMEcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _597 => _597.email]), () => ( null));
17860
17969
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
17861
17970
  const [resolved, setResolved] = _react.useState.call(void 0, null);
17862
- const data = _optionalChain([resolved, 'optionalAccess', _593 => _593.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17863
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _594 => _594.key]) !== requestKey;
17971
+ const data = _optionalChain([resolved, 'optionalAccess', _598 => _598.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17972
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _599 => _599.key]) !== requestKey;
17864
17973
  _react.useEffect.call(void 0, () => {
17865
17974
  if (requestKey === null) return void 0;
17866
17975
  let cancelled = false;
@@ -18007,7 +18116,7 @@ function useChat({
18007
18116
  onMessagesChangeRef.current = onMessagesChange;
18008
18117
  });
18009
18118
  _react.useEffect.call(void 0, () => {
18010
- _optionalChain([onMessagesChangeRef, 'access', _595 => _595.current, 'optionalCall', _596 => _596(messages)]);
18119
+ _optionalChain([onMessagesChangeRef, 'access', _600 => _600.current, 'optionalCall', _601 => _601(messages)]);
18011
18120
  }, [messages]);
18012
18121
  const {
18013
18122
  streamMessage,
@@ -18044,7 +18153,7 @@ function useChat({
18044
18153
  name: "You",
18045
18154
  content: text2,
18046
18155
  timestamp: /* @__PURE__ */ new Date(),
18047
- ..._optionalChain([options, 'optionalAccess', _597 => _597.hidden]) ? { hidden: true } : {}
18156
+ ..._optionalChain([options, 'optionalAccess', _602 => _602.hidden]) ? { hidden: true } : {}
18048
18157
  };
18049
18158
  addMessage(userMessage);
18050
18159
  setIsTyping(true);
@@ -18258,7 +18367,7 @@ function buildConfirmToolBody(request) {
18258
18367
  async function readServerErrorMessage(response) {
18259
18368
  try {
18260
18369
  const body = await response.json();
18261
- if (typeof _optionalChain([body, 'optionalAccess', _598 => _598.error]) === "string" && body.error.length > 0) return body.error;
18370
+ if (typeof _optionalChain([body, 'optionalAccess', _603 => _603.error]) === "string" && body.error.length > 0) return body.error;
18262
18371
  } catch (e60) {
18263
18372
  }
18264
18373
  return null;
@@ -18565,7 +18674,7 @@ function youtubeVideoId(value) {
18565
18674
  const hostname = parsed.hostname.toLowerCase();
18566
18675
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
18567
18676
  if (!isYoutubeHost) return void 0;
18568
- const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _599 => _599.exec, 'call', _600 => _600(parsed.pathname), 'optionalAccess', _601 => _601[1]]);
18677
+ const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _604 => _604.exec, 'call', _605 => _605(parsed.pathname), 'optionalAccess', _606 => _606[1]]);
18569
18678
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
18570
18679
  return id && YOUTUBE_ID.test(id) ? id : void 0;
18571
18680
  }
@@ -18684,11 +18793,11 @@ function cards(value, decodedSources) {
18684
18793
  {
18685
18794
  type,
18686
18795
  id,
18687
- title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _602 => _602.name]), () => ( id)),
18688
- url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _603 => _603.externalUrl]), () => ( null)),
18689
- ..._optionalChain([source, 'optionalAccess', _604 => _604.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18690
- ..._optionalChain([source, 'optionalAccess', _605 => _605.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18691
- ..._optionalChain([source, 'optionalAccess', _606 => _606.path]) ? { metadata: { path: source.path } } : {}
18796
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _607 => _607.name]), () => ( id)),
18797
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _608 => _608.externalUrl]), () => ( null)),
18798
+ ..._optionalChain([source, 'optionalAccess', _609 => _609.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18799
+ ..._optionalChain([source, 'optionalAccess', _610 => _610.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18800
+ ..._optionalChain([source, 'optionalAccess', _611 => _611.path]) ? { metadata: { path: source.path } } : {}
18692
18801
  }
18693
18802
  ];
18694
18803
  });
@@ -18714,11 +18823,11 @@ function sourceMetadataEvent(payload) {
18714
18823
  }
18715
18824
  function mergeSourceMetadata(previous, event) {
18716
18825
  const byIndex = /* @__PURE__ */ new Map();
18717
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _607 => _607.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18826
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _612 => _612.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18718
18827
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
18719
18828
  }
18720
18829
  const byIdentity = /* @__PURE__ */ new Map();
18721
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _608 => _608.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18830
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _613 => _613.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18722
18831
  const identity = `${ref.type}:${ref.id}`;
18723
18832
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
18724
18833
  }
@@ -18804,9 +18913,9 @@ function appendToTrailingAssistant(prev, segments) {
18804
18913
  for (const seg of segments) {
18805
18914
  const tail = merged[merged.length - 1];
18806
18915
  const key = upsertKey(seg);
18807
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _609 => _609.type]) === "text") {
18916
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _614 => _614.type]) === "text") {
18808
18917
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
18809
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _610 => _610.type]) === "thinking") {
18918
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _615 => _615.type]) === "thinking") {
18810
18919
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
18811
18920
  } else if (key) {
18812
18921
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -18847,7 +18956,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18847
18956
  }
18848
18957
  if (s.type !== "approval_batch") return s;
18849
18958
  const isAnchor = s.data.approvalRequestId === requestId;
18850
- const hasRow = _optionalChain([s, 'access', _611 => _611.data, 'access', _612 => _612.toolCalls, 'optionalAccess', _613 => _613.some, 'call', _614 => _614((c) => c.toolExecutionRequestId === requestId)]);
18959
+ const hasRow = _optionalChain([s, 'access', _616 => _616.data, 'access', _617 => _617.toolCalls, 'optionalAccess', _618 => _618.some, 'call', _619 => _619((c) => c.toolExecutionRequestId === requestId)]);
18851
18960
  if (!isAnchor && !hasRow) return s;
18852
18961
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
18853
18962
  const nextExecutions = hasRow ? {
@@ -18869,8 +18978,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18869
18978
  };
18870
18979
  }
18871
18980
  function nextBatchExecution(prevExec, toolData) {
18872
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _615 => _615.status]) === "done") return null;
18873
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _616 => _616.result]), success: _optionalChain([prevExec, 'optionalAccess', _617 => _617.success]) };
18981
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _620 => _620.status]) === "done") return null;
18982
+ return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _621 => _621.result]), success: _optionalChain([prevExec, 'optionalAccess', _622 => _622.success]) };
18874
18983
  }
18875
18984
  function withBatchExecution(seg, execId, state) {
18876
18985
  return {
@@ -18887,11 +18996,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
18887
18996
  }
18888
18997
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
18889
18998
  return mapSegments(prev, (s) => {
18890
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _618 => _618.data, 'access', _619 => _619.toolCalls, 'optionalAccess', _620 => _620.some, 'call', _621 => _621((c) => c.toolExecutionRequestId === rowRequestId)])) {
18999
+ if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _623 => _623.data, 'access', _624 => _624.toolCalls, 'optionalAccess', _625 => _625.some, 'call', _626 => _626((c) => c.toolExecutionRequestId === rowRequestId)])) {
18891
19000
  return s;
18892
19001
  }
18893
- const existing = _optionalChain([s, 'access', _622 => _622.data, 'access', _623 => _623.executions, 'optionalAccess', _624 => _624[rowRequestId]]);
18894
- if (_optionalChain([existing, 'optionalAccess', _625 => _625.status]) === "done") return s;
19002
+ const existing = _optionalChain([s, 'access', _627 => _627.data, 'access', _628 => _628.executions, 'optionalAccess', _629 => _629[rowRequestId]]);
19003
+ if (_optionalChain([existing, 'optionalAccess', _630 => _630.status]) === "done") return s;
18895
19004
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
18896
19005
  });
18897
19006
  }
@@ -18927,7 +19036,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
18927
19036
  for (let j = message.segments.length - 1; j >= 0; j--) {
18928
19037
  const seg = message.segments[j];
18929
19038
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
18930
- const prevExec = _optionalChain([seg, 'access', _626 => _626.data, 'access', _627 => _627.executions, 'optionalAccess', _628 => _628[execId]]);
19039
+ const prevExec = _optionalChain([seg, 'access', _631 => _631.data, 'access', _632 => _632.executions, 'optionalAccess', _633 => _633[execId]]);
18931
19040
  const nextExec = nextBatchExecution(prevExec, toolData);
18932
19041
  if (nextExec === null) return prev;
18933
19042
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -19100,9 +19209,9 @@ var MessageSegmentAccumulator = class {
19100
19209
  type: "tool_execution",
19101
19210
  data: {
19102
19211
  ...toolData,
19103
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _629 => _629.data, 'access', _630 => _630.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _631 => _631.toolTitle]))),
19104
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _632 => _632.data, 'access', _633 => _633.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _634 => _634.toolExplanation]))),
19105
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _635 => _635.parameters])
19212
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _634 => _634.data, 'access', _635 => _635.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _636 => _636.toolTitle]))),
19213
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _637 => _637.data, 'access', _638 => _638.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _639 => _639.toolExplanation]))),
19214
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _640 => _640.parameters])
19106
19215
  }
19107
19216
  };
19108
19217
  if (existingIndex !== -1) {
@@ -19126,7 +19235,7 @@ var MessageSegmentAccumulator = class {
19126
19235
  if (seg.type !== "approval_batch") return seg;
19127
19236
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
19128
19237
  if (!hasCall) return seg;
19129
- const prev = _optionalChain([seg, 'access', _636 => _636.data, 'access', _637 => _637.executions, 'optionalAccess', _638 => _638[execId]]);
19238
+ const prev = _optionalChain([seg, 'access', _641 => _641.data, 'access', _642 => _642.executions, 'optionalAccess', _643 => _643[execId]]);
19130
19239
  const next = nextBatchExecution(prev, toolData);
19131
19240
  matched = true;
19132
19241
  if (next === null) return seg;
@@ -19260,8 +19369,8 @@ var MessageSegmentAccumulator = class {
19260
19369
  requestId,
19261
19370
  {
19262
19371
  ...pendingApproval,
19263
- command: _optionalChain([pendingApproval, 'optionalAccess', _639 => _639.command]) || "",
19264
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _640 => _640.approvalType]) || approvalType
19372
+ command: _optionalChain([pendingApproval, 'optionalAccess', _644 => _644.command]) || "",
19373
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _645 => _645.approvalType]) || approvalType
19265
19374
  },
19266
19375
  status
19267
19376
  );
@@ -19286,9 +19395,9 @@ var MessageSegmentAccumulator = class {
19286
19395
  type: "escalation_offer",
19287
19396
  // The resolved chunk carries no text/origin — a redelivered offer must
19288
19397
  // not blank the card the PENDING chunk already painted.
19289
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _641 => _641.data, 'access', _642 => _642.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _643 => _643.data, 'access', _644 => _644.origin]))) },
19398
+ data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _646 => _646.data, 'access', _647 => _647.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _648 => _648.data, 'access', _649 => _649.origin]))) },
19290
19399
  status,
19291
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _645 => _645.resolvedByName]))),
19400
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _650 => _650.resolvedByName]))),
19292
19401
  onApprove: this.callbacks.onEscalationApprove,
19293
19402
  onReject: this.callbacks.onEscalationReject
19294
19403
  };
@@ -19613,7 +19722,7 @@ function createChatStreamReducer(options = {}) {
19613
19722
  let stateCache = null;
19614
19723
  function invalidate() {
19615
19724
  stateCache = null;
19616
- _optionalChain([onChange, 'optionalCall', _646 => _646()]);
19725
+ _optionalChain([onChange, 'optionalCall', _651 => _651()]);
19617
19726
  }
19618
19727
  function getState() {
19619
19728
  if (!stateCache) {
@@ -19629,7 +19738,7 @@ function createChatStreamReducer(options = {}) {
19629
19738
  return stateCache;
19630
19739
  }
19631
19740
  function emit(name, ...args) {
19632
- _optionalChain([onEffect, 'optionalCall', _647 => _647({ name, args })]);
19741
+ _optionalChain([onEffect, 'optionalCall', _652 => _652({ name, args })]);
19633
19742
  }
19634
19743
  function setMessagesInternal(next) {
19635
19744
  if (next !== messages) {
@@ -19672,12 +19781,12 @@ function createChatStreamReducer(options = {}) {
19672
19781
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
19673
19782
  }
19674
19783
  function applySegmentsToState(segments, meta) {
19675
- const seq = _optionalChain([meta, 'optionalAccess', _648 => _648.streamSeq]);
19676
- if (_optionalChain([meta, 'optionalAccess', _649 => _649.append]) && meta.isCompacting) {
19784
+ const seq = _optionalChain([meta, 'optionalAccess', _653 => _653.streamSeq]);
19785
+ if (_optionalChain([meta, 'optionalAccess', _654 => _654.append]) && meta.isCompacting) {
19677
19786
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
19678
19787
  return;
19679
19788
  }
19680
- if (_optionalChain([meta, 'optionalAccess', _650 => _650.append])) {
19789
+ if (_optionalChain([meta, 'optionalAccess', _655 => _655.append])) {
19681
19790
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
19682
19791
  return;
19683
19792
  }
@@ -19689,7 +19798,7 @@ function createChatStreamReducer(options = {}) {
19689
19798
  adoptTrailingAssistant = false;
19690
19799
  const last = messages[messages.length - 1];
19691
19800
  if (!last || last.role !== "assistant" || adoptTail) return;
19692
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _651 => _651.segments, 'optionalAccess', _652 => _652.length]), () => ( 0))) > 0 || last.content !== "";
19801
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _656 => _656.segments, 'optionalAccess', _657 => _657.length]), () => ( 0))) > 0 || last.content !== "";
19693
19802
  if (!hasContent) return;
19694
19803
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
19695
19804
  }
@@ -19908,13 +20017,13 @@ function createChatStreamReducer(options = {}) {
19908
20017
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
19909
20018
  pendingEscalated.set(requestId, {
19910
20019
  command: summary,
19911
- explanation: _optionalChain([required, 'optionalAccess', _653 => _653.toolExplanation]),
20020
+ explanation: _optionalChain([required, 'optionalAccess', _658 => _658.toolExplanation]),
19912
20021
  approvalType,
19913
20022
  toolCalls
19914
20023
  });
19915
20024
  emit("onEscalatedApproval", requestId, {
19916
20025
  command: summary,
19917
- explanation: _optionalChain([required, 'optionalAccess', _654 => _654.toolExplanation]),
20026
+ explanation: _optionalChain([required, 'optionalAccess', _659 => _659.toolExplanation]),
19918
20027
  approvalType
19919
20028
  });
19920
20029
  break;
@@ -20298,7 +20407,7 @@ function createChatStreamReducer(options = {}) {
20298
20407
  const resolveBatch = (status, confirm) => async () => {
20299
20408
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
20300
20409
  for (const id of ids) {
20301
- const ok = await _optionalChain([confirm, 'optionalCall', _655 => _655(id)]);
20410
+ const ok = await _optionalChain([confirm, 'optionalCall', _660 => _660(id)]);
20302
20411
  if (ok === false) {
20303
20412
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
20304
20413
  }
@@ -20434,8 +20543,8 @@ function createChatStreamReducer(options = {}) {
20434
20543
  }
20435
20544
  }
20436
20545
  }
20437
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _656 => _656.resumed]), () => ( messages.length > 0)));
20438
- if (_optionalChain([extras, 'optionalAccess', _657 => _657.agentBusy])) agentBusyState();
20546
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _661 => _661.resumed]), () => ( messages.length > 0)));
20547
+ if (_optionalChain([extras, 'optionalAccess', _662 => _662.agentBusy])) agentBusyState();
20439
20548
  invalidate();
20440
20549
  }
20441
20550
  return {
@@ -20520,7 +20629,7 @@ function createChatStreamReducer(options = {}) {
20520
20629
  },
20521
20630
  endSseTurn() {
20522
20631
  const last = messages[messages.length - 1];
20523
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _658 => _658.segments, 'optionalAccess', _659 => _659.length]), () => ( 0))) === 0 && last.content === "") {
20632
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _663 => _663.segments, 'optionalAccess', _664 => _664.length]), () => ( 0))) === 0 && last.content === "") {
20524
20633
  messages = messages.slice(0, -1);
20525
20634
  }
20526
20635
  sseCurrentText = "";
@@ -20673,10 +20782,10 @@ function createChatDialogStore(options = {}) {
20673
20782
  if (onEvict) {
20674
20783
  const sep = key.indexOf(KEY_SEP);
20675
20784
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
20676
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _660 => _660.state, 'access', _661 => _661.messages]), () => ( EMPTY_STATE.messages)),
20677
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _662 => _662.state, 'access', _663 => _663.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20678
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _664 => _664.getLastAppliedSeq, 'call', _665 => _665()]), () => ( Number.NEGATIVE_INFINITY)),
20679
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _666 => _666.getPendingEchoes, 'call', _667 => _667()]), () => ( EMPTY_PENDING_ECHOES))
20785
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _665 => _665.state, 'access', _666 => _666.messages]), () => ( EMPTY_STATE.messages)),
20786
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _667 => _667.state, 'access', _668 => _668.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20787
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _669 => _669.getLastAppliedSeq, 'call', _670 => _670()]), () => ( Number.NEGATIVE_INFINITY)),
20788
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _671 => _671.getPendingEchoes, 'call', _672 => _672()]), () => ( EMPTY_PENDING_ECHOES))
20680
20789
  });
20681
20790
  }
20682
20791
  }
@@ -20686,12 +20795,12 @@ function createChatDialogStore(options = {}) {
20686
20795
  const key = keyOf(dialogId, side);
20687
20796
  let reducer = reducers.get(key);
20688
20797
  if (!reducer) {
20689
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _668 => _668(dialogId, side)]), () => ( {}));
20798
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _673 => _673(dialogId, side)]), () => ( {}));
20690
20799
  const userOnChange = base.onChange;
20691
20800
  reducer = createChatStreamReducer({
20692
20801
  ...base,
20693
20802
  onChange: () => {
20694
- _optionalChain([userOnChange, 'optionalCall', _669 => _669()]);
20803
+ _optionalChain([userOnChange, 'optionalCall', _674 => _674()]);
20695
20804
  notify();
20696
20805
  }
20697
20806
  });
@@ -20736,7 +20845,7 @@ function createChatDialogStore(options = {}) {
20736
20845
  };
20737
20846
  }
20738
20847
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
20739
- return _nullishCoalesce(_optionalChain([reducers, 'access', _670 => _670.get, 'call', _671 => _671(keyOf(dialogId, side)), 'optionalAccess', _672 => _672.state]), () => ( EMPTY_STATE));
20848
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _675 => _675.get, 'call', _676 => _676(keyOf(dialogId, side)), 'optionalAccess', _677 => _677.state]), () => ( EMPTY_STATE));
20740
20849
  }
20741
20850
  function getServerSnapshot2() {
20742
20851
  return EMPTY_STATE;
@@ -20828,7 +20937,7 @@ function createDeltaBatcher({
20828
20937
  pending = [];
20829
20938
  const key = pendingKey;
20830
20939
  for (const delta of batch) applyOne(delta, key);
20831
- _optionalChain([onFlushed, 'optionalCall', _673 => _673(batch.length)]);
20940
+ _optionalChain([onFlushed, 'optionalCall', _678 => _678(batch.length)]);
20832
20941
  }
20833
20942
  function schedule() {
20834
20943
  if (raf !== null || timer !== null) return;
@@ -20852,7 +20961,7 @@ function createDeltaBatcher({
20852
20961
  }
20853
20962
  if (!isDeltaEvent(event)) return false;
20854
20963
  const tail = pending[pending.length - 1];
20855
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _674 => _674.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20964
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _679 => _679.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20856
20965
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
20857
20966
  pending[pending.length - 1] = {
20858
20967
  ...tail,
@@ -20883,7 +20992,7 @@ function useChatStreamReducer({
20883
20992
  side = DEFAULT_DIALOG_SIDE,
20884
20993
  createReducerOptions
20885
20994
  }) {
20886
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _675 => _675()]), () => ( {})));
20995
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _680 => _680()]), () => ( {})));
20887
20996
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
20888
20997
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
20889
20998
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -20922,7 +21031,7 @@ var STORAGE_KEY = "conversation";
20922
21031
  var namespaceFor = (source) => {
20923
21032
  const base = `mingo-chat-${source}`;
20924
21033
  const auth = _chunkXOGD2AMEcjs.getEmbedProxyAuth.call(void 0, );
20925
- return _optionalChain([auth, 'optionalAccess', _676 => _676.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
21034
+ return _optionalChain([auth, 'optionalAccess', _681 => _681.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20926
21035
  };
20927
21036
  function createChatConversationStorage(source) {
20928
21037
  return _chunkXOGD2AMEcjs.createLocalStorageAdapter.call(void 0, {
@@ -21034,7 +21143,7 @@ function formatSingularLookupInvocation(cmdId, value) {
21034
21143
  return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
21035
21144
  }
21036
21145
  function extractEntityIdFilter(override, expectedTableId) {
21037
- const f = _optionalChain([override, 'optionalAccess', _677 => _677.entityIdFilter]);
21146
+ const f = _optionalChain([override, 'optionalAccess', _682 => _682.entityIdFilter]);
21038
21147
  if (!f) return null;
21039
21148
  const tableId = typeof f.tableId === "string" ? f.tableId : "";
21040
21149
  const id = typeof f.id === "string" ? f.id : "";
@@ -21073,7 +21182,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
21073
21182
  function buildAutoContinuationDirective(toolName, opts = {}) {
21074
21183
  const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
21075
21184
  const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
21076
- const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _678 => _678.status, 'optionalAccess', _679 => _679.toUpperCase, 'call', _680 => _680()]) === "CLOSED";
21185
+ const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _683 => _683.status, 'optionalAccess', _684 => _684.toUpperCase, 'call', _685 => _685()]) === "CLOSED";
21077
21186
  if (toolName === "create_ticket") {
21078
21187
  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.`;
21079
21188
  }
@@ -21123,7 +21232,7 @@ function useChatHistoryHydration({
21123
21232
  if (cancelled) return;
21124
21233
  if (rows.length === 0) {
21125
21234
  const found = isRecord(body) ? body.found : void 0;
21126
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _681 => _681(conversationId)]);
21235
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _686 => _686(conversationId)]);
21127
21236
  return;
21128
21237
  }
21129
21238
  const hydrated = [];
@@ -21267,7 +21376,7 @@ function useManagedDialogList({
21267
21376
  try {
21268
21377
  await deleteDialogCallback(id);
21269
21378
  removeLocal(id);
21270
- _optionalChain([onDialogRemovedRef, 'access', _682 => _682.current, 'optionalCall', _683 => _683(id, "deleted")]);
21379
+ _optionalChain([onDialogRemovedRef, 'access', _687 => _687.current, 'optionalCall', _688 => _688(id, "deleted")]);
21271
21380
  } catch (err) {
21272
21381
  console.error(`${logTag} deleteDialog failed:`, err);
21273
21382
  throw err;
@@ -21278,7 +21387,7 @@ function useManagedDialogList({
21278
21387
  const renameDialog = _react.useCallback.call(void 0,
21279
21388
  async (id, title) => {
21280
21389
  if (!renameDialogCallback) return;
21281
- const previous = _optionalChain([dialogsRef, 'access', _684 => _684.current, 'access', _685 => _685.find, 'call', _686 => _686((d) => d.id === id), 'optionalAccess', _687 => _687.title]);
21390
+ const previous = _optionalChain([dialogsRef, 'access', _689 => _689.current, 'access', _690 => _690.find, 'call', _691 => _691((d) => d.id === id), 'optionalAccess', _692 => _692.title]);
21282
21391
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
21283
21392
  try {
21284
21393
  await renameDialogCallback(id, title);
@@ -21297,7 +21406,7 @@ function useManagedDialogList({
21297
21406
  try {
21298
21407
  await archiveDialogCallback(id);
21299
21408
  removeLocal(id);
21300
- _optionalChain([onDialogRemovedRef, 'access', _688 => _688.current, 'optionalCall', _689 => _689(id, "archived")]);
21409
+ _optionalChain([onDialogRemovedRef, 'access', _693 => _693.current, 'optionalCall', _694 => _694(id, "archived")]);
21301
21410
  } catch (err) {
21302
21411
  console.error(`${logTag} archiveDialog failed:`, err);
21303
21412
  throw err;
@@ -21389,7 +21498,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21389
21498
  const { active = true } = runtimeOptions;
21390
21499
  const runtime = _chunkU2YLMFJKcjs.useRequiredChatRuntime.call(void 0, );
21391
21500
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
21392
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _690 => _690.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21501
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _695 => _695.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21393
21502
  const sendMessageRef = _react.useRef.call(void 0,
21394
21503
  () => Promise.resolve(true)
21395
21504
  );
@@ -21425,7 +21534,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21425
21534
  if (!restoredConversationRef.current) {
21426
21535
  restoredConversationRef.current = true;
21427
21536
  pruneStaleChatConversationStorage(source);
21428
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _691 => _691.load, 'call', _692 => _692(), 'optionalAccess', _693 => _693.conversationId]), () => ( null));
21537
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _696 => _696.load, 'call', _697 => _697(), 'optionalAccess', _698 => _698.conversationId]), () => ( null));
21429
21538
  }
21430
21539
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
21431
21540
  const commitConversationId = _react.useCallback.call(void 0,
@@ -21516,7 +21625,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21516
21625
  const abortControllerRef = _react.useRef.call(void 0, null);
21517
21626
  const switchConversation = _react.useCallback.call(void 0,
21518
21627
  (id) => {
21519
- _optionalChain([abortControllerRef, 'access', _694 => _694.current, 'optionalAccess', _695 => _695.abort, 'call', _696 => _696()]);
21628
+ _optionalChain([abortControllerRef, 'access', _699 => _699.current, 'optionalAccess', _700 => _700.abort, 'call', _701 => _701()]);
21520
21629
  flushDeltas();
21521
21630
  mutate((r) => r.reset());
21522
21631
  hydrationSendCountRef.current = 0;
@@ -21553,8 +21662,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21553
21662
  } = useManagedDialogList({
21554
21663
  autoLoad: active,
21555
21664
  fetchDialogs: fetchActiveDialogs,
21556
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _697 => _697.renameDialog]),
21557
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _698 => _698.archiveDialog]),
21665
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _702 => _702.renameDialog]),
21666
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _703 => _703.archiveDialog]),
21558
21667
  pageSize: 20,
21559
21668
  search: conversationsApi ? dialogSearch : void 0,
21560
21669
  logTag: "[useSseChatAdapter]",
@@ -21618,7 +21727,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21618
21727
  const serverMessage = await readServerErrorMessage(response);
21619
21728
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
21620
21729
  }
21621
- const reader = _optionalChain([response, 'access', _699 => _699.body, 'optionalAccess', _700 => _700.getReader, 'call', _701 => _701()]);
21730
+ const reader = _optionalChain([response, 'access', _704 => _704.body, 'optionalAccess', _705 => _705.getReader, 'call', _706 => _706()]);
21622
21731
  if (!reader) throw new Error("No response body");
21623
21732
  const frameDecoder = createSseFrameDecoder();
21624
21733
  let finished = false;
@@ -21647,7 +21756,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21647
21756
  }
21648
21757
  return true;
21649
21758
  } catch (err) {
21650
- if (_optionalChain([err, 'optionalAccess', _702 => _702.name]) === "AbortError" || ctrl.signal.aborted) {
21759
+ if (_optionalChain([err, 'optionalAccess', _707 => _707.name]) === "AbortError" || ctrl.signal.aborted) {
21651
21760
  return true;
21652
21761
  }
21653
21762
  flushDeltas();
@@ -21683,7 +21792,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21683
21792
  );
21684
21793
  sendMessageRef.current = sendMessage;
21685
21794
  const stopMessage = _react.useCallback.call(void 0, () => {
21686
- _optionalChain([abortControllerRef, 'access', _703 => _703.current, 'optionalAccess', _704 => _704.abort, 'call', _705 => _705()]);
21795
+ _optionalChain([abortControllerRef, 'access', _708 => _708.current, 'optionalAccess', _709 => _709.abort, 'call', _710 => _710()]);
21687
21796
  flushDeltas();
21688
21797
  mutate((r) => r.setPhase("idle"));
21689
21798
  }, [mutate, flushDeltas]);
@@ -21719,7 +21828,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21719
21828
  let sendIdx = -1;
21720
21829
  return state.messages.map((m) => {
21721
21830
  const segments = m.segments;
21722
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _706 => _706.filter, 'call', _707 => _707((s) => s.type === "text"), 'access', _708 => _708.map, 'call', _709 => _709((s) => s.text), 'access', _710 => _710.join, 'call', _711 => _711("")]), () => ( ""));
21831
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _711 => _711.filter, 'call', _712 => _712((s) => s.type === "text"), 'access', _713 => _713.map, 'call', _714 => _714((s) => s.text), 'access', _715 => _715.join, 'call', _716 => _716("")]), () => ( ""));
21723
21832
  let sources2;
21724
21833
  let scrollAnchor;
21725
21834
  if (m.role === "user" && !m.hidden) {
@@ -21728,7 +21837,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21728
21837
  if (m.role === "assistant") {
21729
21838
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
21730
21839
  sources2 = sourcesMap.get(lookupIdx);
21731
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _712 => _712.get, 'call', _713 => _713(lookupIdx), 'optionalAccess', _714 => _714.scrollAnchor]), () => ( void 0));
21840
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _717 => _717.get, 'call', _718 => _718(lookupIdx), 'optionalAccess', _719 => _719.scrollAnchor]), () => ( void 0));
21732
21841
  }
21733
21842
  return {
21734
21843
  id: m.id,
@@ -21755,7 +21864,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21755
21864
  );
21756
21865
  return;
21757
21866
  }
21758
- const refSlug = typeof _optionalChain([reference, 'access', _715 => _715.metadata, 'optionalAccess', _716 => _716.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21867
+ const refSlug = typeof _optionalChain([reference, 'access', _720 => _720.metadata, 'optionalAccess', _721 => _721.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21759
21868
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
21760
21869
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
21761
21870
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -21801,18 +21910,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21801
21910
  /** True while the mount-time rebuild from the server transcript runs. */
21802
21911
  isHydratingHistory,
21803
21912
  /** Provider key for the lib's `<ModelDisplay>` icon. */
21804
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _717 => _717.provider]), () => ( null)),
21805
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _718 => _718.modelLabel]), () => ( null)),
21806
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _719 => _719.contextWindowMaxTokens]), () => ( null)),
21913
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _722 => _722.provider]), () => ( null)),
21914
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _723 => _723.modelLabel]), () => ( null)),
21915
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _724 => _724.contextWindowMaxTokens]), () => ( null)),
21807
21916
  /** Input tokens (known after server's message_start frame; null until). */
21808
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _720 => _720.inputTokens]), () => ( null)),
21917
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _725 => _725.inputTokens]), () => ( null)),
21809
21918
  /** Output tokens (known only after server's trailing usage frame). */
21810
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _721 => _721.outputTokens]), () => ( null)),
21919
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _726 => _726.outputTokens]), () => ( null)),
21811
21920
  /** Cache hit % (read / total-input × 100). null during streaming. */
21812
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _722 => _722.cacheHitRatePct]), () => ( null)),
21921
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _727 => _727.cacheHitRatePct]), () => ( null)),
21813
21922
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
21814
21923
  * token counts). null until the trailing usage frame lands. */
21815
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _723 => _723.breakdown]), () => ( null)),
21924
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _728 => _728.breakdown]), () => ( null)),
21816
21925
  // ─── Dialog management ───────────────────────────────────────────────
21817
21926
  // With `chatConversationsUrl` the server transcript store IS the dialog
21818
21927
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -22067,7 +22176,7 @@ function decodeNatsChunk(chunk) {
22067
22176
  userId: typeof data.userId === "string" ? data.userId : void 0,
22068
22177
  // Wire shape carries no label; fall back to the id (parity with
22069
22178
  // the history path in `process-historical-messages.ts`).
22070
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _724 => _724.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _725 => _725.id]) === "string").map((it) => ({
22179
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _729 => _729.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _730 => _730.id]) === "string").map((it) => ({
22071
22180
  type: it.type,
22072
22181
  id: it.id,
22073
22182
  label: it.id
@@ -22158,7 +22267,7 @@ function extractIncompleteMessageState(lastMessage) {
22158
22267
  }
22159
22268
  break;
22160
22269
  case "approval_batch": {
22161
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _726 => _726.data, 'access', _727 => _727.executions, 'optionalAccess', _728 => _728[c.toolExecutionRequestId], 'optionalAccess', _729 => _729.status]) === "done");
22270
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _731 => _731.data, 'access', _732 => _732.executions, 'optionalAccess', _733 => _733[c.toolExecutionRequestId], 'optionalAccess', _734 => _734.status]) === "done");
22162
22271
  if (segment.status !== "rejected" && !allDone) {
22163
22272
  hasIncompleteState = true;
22164
22273
  }
@@ -22220,11 +22329,11 @@ function extractIncompleteMessageState(lastMessage) {
22220
22329
  function extractIncompleteTailState(messages) {
22221
22330
  if (!messages || messages.length === 0) return void 0;
22222
22331
  let start = messages.length;
22223
- while (start > 0 && _optionalChain([messages, 'access', _730 => _730[start - 1], 'optionalAccess', _731 => _731.role]) === "assistant") start -= 1;
22332
+ while (start > 0 && _optionalChain([messages, 'access', _735 => _735[start - 1], 'optionalAccess', _736 => _736.role]) === "assistant") start -= 1;
22224
22333
  if (start === messages.length) return void 0;
22225
22334
  const segments = [];
22226
22335
  for (let i = start; i < messages.length; i += 1) {
22227
- const content = _optionalChain([messages, 'access', _732 => _732[i], 'optionalAccess', _733 => _733.content]);
22336
+ const content = _optionalChain([messages, 'access', _737 => _737[i], 'optionalAccess', _738 => _738.content]);
22228
22337
  if (Array.isArray(content)) segments.push(...content);
22229
22338
  }
22230
22339
  if (segments.length === 0) return void 0;
@@ -22237,15 +22346,15 @@ function extractIncompleteTailState(messages) {
22237
22346
 
22238
22347
  // src/components/chat/utils/process-historical-messages.ts
22239
22348
  function getOwnerDisplayName(owner) {
22240
- if (_optionalChain([owner, 'optionalAccess', _734 => _734.type]) === OWNER_TYPE.ADMIN && owner.user) {
22349
+ if (_optionalChain([owner, 'optionalAccess', _739 => _739.type]) === OWNER_TYPE.ADMIN && owner.user) {
22241
22350
  const { firstName, lastName } = owner.user;
22242
22351
  const name = [firstName, lastName].filter(Boolean).join(" ");
22243
22352
  if (name) return name;
22244
22353
  }
22245
- return _optionalChain([owner, 'optionalAccess', _735 => _735.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
22354
+ return _optionalChain([owner, 'optionalAccess', _740 => _740.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
22246
22355
  }
22247
22356
  function getOwnerAvatar(owner) {
22248
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _736 => _736.user, 'optionalAccess', _737 => _737.image, 'optionalAccess', _738 => _738.imageUrl]), () => ( void 0));
22357
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _741 => _741.user, 'optionalAccess', _742 => _742.image, 'optionalAccess', _743 => _743.imageUrl]), () => ( void 0));
22249
22358
  }
22250
22359
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
22251
22360
  messageDataArray.forEach((data) => {
@@ -22435,7 +22544,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22435
22544
  event.offerId,
22436
22545
  event.text,
22437
22546
  event.origin,
22438
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _739 => _739[event.offerId]]), () => ( "pending"))
22547
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _744 => _744[event.offerId]]), () => ( "pending"))
22439
22548
  );
22440
22549
  break;
22441
22550
  case "ticket-escalated":
@@ -22469,7 +22578,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22469
22578
  );
22470
22579
  break;
22471
22580
  case "escalation-offer-resolved":
22472
- _optionalChain([offerResolutions, 'optionalAccess', _740 => _740.set, 'call', _741 => _741(event.offerId, {
22581
+ _optionalChain([offerResolutions, 'optionalAccess', _745 => _745.set, 'call', _746 => _746(event.offerId, {
22473
22582
  status: event.status,
22474
22583
  resolvedByName: event.resolvedByName
22475
22584
  })]);
@@ -22533,7 +22642,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22533
22642
  }
22534
22643
  }
22535
22644
  } else {
22536
- _optionalChain([escalatedApprovals, 'optionalAccess', _742 => _742.set, 'call', _743 => _743(event.requestId, {
22645
+ _optionalChain([escalatedApprovals, 'optionalAccess', _747 => _747.set, 'call', _748 => _748(event.requestId, {
22537
22646
  command: event.command || "",
22538
22647
  explanation: event.explanation,
22539
22648
  approvalType,
@@ -22548,8 +22657,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22548
22657
  const existingStatus = approvalStatuses[requestId];
22549
22658
  const status = existingStatus || event.status;
22550
22659
  const resolvedByName = event.resolvedByName;
22551
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _744 => _744.get, 'call', _745 => _745(requestId)]);
22552
- if (_optionalChain([escalatedData, 'optionalAccess', _746 => _746.toolCalls]) && escalatedData.toolCalls.length > 0) {
22660
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _749 => _749.get, 'call', _750 => _750(requestId)]);
22661
+ if (_optionalChain([escalatedData, 'optionalAccess', _751 => _751.toolCalls]) && escalatedData.toolCalls.length > 0) {
22553
22662
  if (batchApprovalsEnabled) {
22554
22663
  accumulator.addApprovalBatch(
22555
22664
  requestId,
@@ -22571,7 +22680,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22571
22680
  );
22572
22681
  }
22573
22682
  }
22574
- _optionalChain([escalatedApprovals, 'optionalAccess', _747 => _747.delete, 'call', _748 => _748(requestId)]);
22683
+ _optionalChain([escalatedApprovals, 'optionalAccess', _752 => _752.delete, 'call', _753 => _753(requestId)]);
22575
22684
  break;
22576
22685
  }
22577
22686
  if (escalatedData) {
@@ -22580,7 +22689,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22580
22689
  explanation: escalatedData.explanation,
22581
22690
  approvalType: escalatedData.approvalType
22582
22691
  });
22583
- _optionalChain([escalatedApprovals, 'optionalAccess', _749 => _749.delete, 'call', _750 => _750(requestId)]);
22692
+ _optionalChain([escalatedApprovals, 'optionalAccess', _754 => _754.delete, 'call', _755 => _755(requestId)]);
22584
22693
  }
22585
22694
  const before = accumulator.getSegments();
22586
22695
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -22672,14 +22781,14 @@ function processHistoricalMessages(messages, options = {}) {
22672
22781
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
22673
22782
  return;
22674
22783
  }
22675
- const isUserMessage = _optionalChain([msg, 'access', _751 => _751.owner, 'optionalAccess', _752 => _752.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _753 => _753.owner, 'optionalAccess', _754 => _754.type]) === OWNER_TYPE.ADMIN;
22784
+ const isUserMessage = _optionalChain([msg, 'access', _756 => _756.owner, 'optionalAccess', _757 => _757.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _758 => _758.owner, 'optionalAccess', _759 => _759.type]) === OWNER_TYPE.ADMIN;
22676
22785
  if (isUserMessage) {
22677
22786
  flushAssistantMessage();
22678
- const userAuthorType = _optionalChain([msg, 'access', _755 => _755.owner, 'optionalAccess', _756 => _756.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22787
+ const userAuthorType = _optionalChain([msg, 'access', _760 => _760.owner, 'optionalAccess', _761 => _761.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22679
22788
  messageDataArray.forEach((data) => {
22680
22789
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
22681
22790
  const rawContext = data.contextItems;
22682
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _757 => _757.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _758 => _758.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
22791
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _762 => _762.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _763 => _763.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
22683
22792
  processedMessages.push({
22684
22793
  id: msg.id,
22685
22794
  role: "user",
@@ -22726,7 +22835,7 @@ function processHistoricalMessages(messages, options = {}) {
22726
22835
  });
22727
22836
  const nextMsg = messages[index + 1];
22728
22837
  const isLastMessage = index === messages.length - 1;
22729
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _759 => _759.owner, 'optionalAccess', _760 => _760.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _761 => _761.owner, 'optionalAccess', _762 => _762.type]) === OWNER_TYPE.ADMIN);
22838
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _764 => _764.owner, 'optionalAccess', _765 => _765.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _766 => _766.owner, 'optionalAccess', _767 => _767.type]) === OWNER_TYPE.ADMIN);
22730
22839
  if (isLastMessage || nextIsFromUser) {
22731
22840
  flushAssistantMessage();
22732
22841
  }
@@ -23109,7 +23218,7 @@ function useNatsChatAdapter(config, options = {}) {
23109
23218
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
23110
23219
  const sendMessage = _react.useCallback.call(void 0,
23111
23220
  async (text2, sendOptions) => {
23112
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _763 => _763.hidden]), () => ( false));
23221
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _768 => _768.hidden]), () => ( false));
23113
23222
  mutate((r) => r.pushOptimisticSend(text2, hidden));
23114
23223
  await publishUserMessage(text2, { hidden, dialogId });
23115
23224
  },
@@ -23202,11 +23311,11 @@ function useNatsChatAdapter(config, options = {}) {
23202
23311
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
23203
23312
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
23204
23313
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
23205
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _764 => _764.provider]), () => ( modelProvider)), () => ( null)),
23206
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _765 => _765.modelLabel]), () => ( modelLabel)), () => ( null)),
23207
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _766 => _766.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _767 => _767.contextWindowMaxTokens]))), () => ( null)),
23208
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _768 => _768.inputTokensSize]), () => ( null)),
23209
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _769 => _769.outputTokensSize]), () => ( null)),
23314
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _769 => _769.provider]), () => ( modelProvider)), () => ( null)),
23315
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _770 => _770.modelLabel]), () => ( modelLabel)), () => ( null)),
23316
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _771 => _771.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _772 => _772.contextWindowMaxTokens]))), () => ( null)),
23317
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _773 => _773.inputTokensSize]), () => ( null)),
23318
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _774 => _774.outputTokensSize]), () => ( null)),
23210
23319
  currentCacheHitRatePct: null,
23211
23320
  currentUsageBreakdown: null,
23212
23321
  // Dialog management
@@ -23328,7 +23437,7 @@ function useUnifiedChat(options) {
23328
23437
  []
23329
23438
  );
23330
23439
  const displayRefForward = _react.useCallback.call(void 0,
23331
- (ref) => _optionalChain([activeStateRef, 'access', _770 => _770.current, 'access', _771 => _771.displayRef, 'optionalCall', _772 => _772(ref)]),
23440
+ (ref) => _optionalChain([activeStateRef, 'access', _775 => _775.current, 'access', _776 => _776.displayRef, 'optionalCall', _777 => _777(ref)]),
23332
23441
  []
23333
23442
  );
23334
23443
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -23338,7 +23447,7 @@ function useUnifiedChat(options) {
23338
23447
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
23339
23448
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
23340
23449
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
23341
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _773 => _773.current, 'access', _774 => _774.setDialogScope, 'optionalCall', _775 => _775(scope)]), []);
23450
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _778 => _778.current, 'access', _779 => _779.setDialogScope, 'optionalCall', _780 => _780(scope)]), []);
23342
23451
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
23343
23452
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
23344
23453
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -23446,19 +23555,19 @@ function turnRequestKeys(content) {
23446
23555
  if (!Array.isArray(content)) return keys;
23447
23556
  for (const seg of content) {
23448
23557
  if (seg.type === "tool_execution") {
23449
- const id = _optionalChain([seg, 'access', _776 => _776.data, 'optionalAccess', _777 => _777.toolExecutionRequestId]);
23558
+ const id = _optionalChain([seg, 'access', _781 => _781.data, 'optionalAccess', _782 => _782.toolExecutionRequestId]);
23450
23559
  if (id) keys.add(id);
23451
23560
  } else if (seg.type === "approval_request") {
23452
- const id = _optionalChain([seg, 'access', _778 => _778.data, 'optionalAccess', _779 => _779.requestId]);
23561
+ const id = _optionalChain([seg, 'access', _783 => _783.data, 'optionalAccess', _784 => _784.requestId]);
23453
23562
  if (id) keys.add(id);
23454
23563
  } else if (seg.type === "escalation_offer") {
23455
- const id = _optionalChain([seg, 'access', _780 => _780.data, 'optionalAccess', _781 => _781.offerId]);
23564
+ const id = _optionalChain([seg, 'access', _785 => _785.data, 'optionalAccess', _786 => _786.offerId]);
23456
23565
  if (id) keys.add(id);
23457
23566
  } else if (seg.type === "approval_batch") {
23458
23567
  const data = seg.data;
23459
- if (_optionalChain([data, 'optionalAccess', _782 => _782.approvalRequestId])) keys.add(data.approvalRequestId);
23460
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _783 => _783.toolCalls]), () => ( []))) {
23461
- if (_optionalChain([call, 'optionalAccess', _784 => _784.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23568
+ if (_optionalChain([data, 'optionalAccess', _787 => _787.approvalRequestId])) keys.add(data.approvalRequestId);
23569
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _788 => _788.toolCalls]), () => ( []))) {
23570
+ if (_optionalChain([call, 'optionalAccess', _789 => _789.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23462
23571
  }
23463
23572
  }
23464
23573
  }
@@ -23542,18 +23651,18 @@ function mergeHistoryWithRealtime(input) {
23542
23651
  }
23543
23652
  }
23544
23653
  const trailing = processedHistory[processedHistory.length - 1];
23545
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _785 => _785.role]) === "assistant" ? trailing : null;
23546
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _786 => _786.content, 'access', _787 => _787.find, 'call', _788 => _788((s) => s.type === "approval_batch"), 'optionalAccess', _789 => _789.data, 'optionalAccess', _790 => _790.approvalRequestId]), () => ( null)) : null;
23654
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _790 => _790.role]) === "assistant" ? trailing : null;
23655
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _791 => _791.content, 'access', _792 => _792.find, 'call', _793 => _793((s) => s.type === "approval_batch"), 'optionalAccess', _794 => _794.data, 'optionalAccess', _795 => _795.approvalRequestId]), () => ( null)) : null;
23547
23656
  let processedToUse = processedHistory;
23548
23657
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
23549
23658
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
23550
23659
  if (historyBatchId) {
23551
23660
  const batchTwins = existingMessages.filter(
23552
- (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _791 => _791.data, 'optionalAccess', _792 => _792.approvalRequestId]) === historyBatchId)
23661
+ (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _796 => _796.data, 'optionalAccess', _797 => _797.approvalRequestId]) === historyBatchId)
23553
23662
  );
23554
23663
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
23555
23664
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
23556
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _793 => _793.content])) ? historyTrailingAssistant.content.length : 0;
23665
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _798 => _798.content])) ? historyTrailingAssistant.content.length : 0;
23557
23666
  const realtimeSize = existingWithSameBatch.content.length;
23558
23667
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
23559
23668
  processedToUse = processedHistory.slice(0, -1);
@@ -23586,9 +23695,9 @@ function mergeHistoryWithRealtime(input) {
23586
23695
  const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
23587
23696
  const windowSignals = collectTwinSignals(processedToUse);
23588
23697
  const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
23589
- const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _794 => _794.has, 'call', _795 => _795(m.id)]), () => ( false)));
23698
+ const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _799 => _799.has, 'call', _800 => _800(m.id)]), () => ( false)));
23590
23699
  const firstWindowIndex = existingMessages.findIndex(isInWindow);
23591
- const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _796 => _796.timestamp, 'optionalAccess', _797 => _797.getTime, 'call', _798 => _798()]), () => ( 0))) <= historyFetchedAt;
23700
+ const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _801 => _801.timestamp, 'optionalAccess', _802 => _802.getTime, 'call', _803 => _803()]), () => ( 0))) <= historyFetchedAt;
23592
23701
  let lastOlderPersistedIndex = -1;
23593
23702
  if (firstWindowIndex < 0) {
23594
23703
  for (const [index, m] of existingMessages.entries()) {
@@ -23606,7 +23715,7 @@ function mergeHistoryWithRealtime(input) {
23606
23715
  } else if (pm.role === "assistant") {
23607
23716
  windowHasUnstampedAssistant = true;
23608
23717
  }
23609
- const time = _optionalChain([pm, 'access', _799 => _799.timestamp, 'optionalAccess', _800 => _800.getTime, 'call', _801 => _801()]);
23718
+ const time = _optionalChain([pm, 'access', _804 => _804.timestamp, 'optionalAccess', _805 => _805.getTime, 'call', _806 => _806()]);
23610
23719
  if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
23611
23720
  }
23612
23721
  const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
@@ -23624,14 +23733,14 @@ function mergeHistoryWithRealtime(input) {
23624
23733
  const verdict = twinVerdict(windowSignals, m);
23625
23734
  return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
23626
23735
  }
23627
- const time = _optionalChain([m, 'access', _802 => _802.timestamp, 'optionalAccess', _803 => _803.getTime, 'call', _804 => _804()]);
23736
+ const time = _optionalChain([m, 'access', _807 => _807.timestamp, 'optionalAccess', _808 => _808.getTime, 'call', _809 => _809()]);
23628
23737
  if (typeof time !== "number" || time > historyFetchedAt) return false;
23629
23738
  if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
23630
23739
  return twinVerdict(windowSignals, m) === "distinct";
23631
23740
  };
23632
23741
  const keepRealtime = (m) => {
23633
23742
  if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
23634
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _805 => _805.timestamp, 'optionalAccess', _806 => _806.getTime, 'call', _807 => _807()]), () => ( 0))) <= historyFetchedAt;
23743
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _810 => _810.timestamp, 'optionalAccess', _811 => _811.getTime, 'call', _812 => _812()]), () => ( 0))) <= historyFetchedAt;
23635
23744
  return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
23636
23745
  }
23637
23746
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -23655,7 +23764,7 @@ function mergeHistoryWithRealtime(input) {
23655
23764
  } else if (typeof m.streamSeq === "number") {
23656
23765
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
23657
23766
  } else {
23658
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _808 => _808.timestamp, 'optionalAccess', _809 => _809.getTime, 'call', _810 => _810()]), () => ( 0))) <= historyFetchedAt;
23767
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _813 => _813.timestamp, 'optionalAccess', _814 => _814.getTime, 'call', _815 => _815()]), () => ( 0))) <= historyFetchedAt;
23659
23768
  }
23660
23769
  if (covered) return false;
23661
23770
  }
@@ -23764,7 +23873,7 @@ function normalizeHistoricalMessageData(md) {
23764
23873
  function isHistoricalUserTurn(m) {
23765
23874
  return !!m.owner;
23766
23875
  }
23767
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _811 => _811.type]) === "TEXT" && typeof d.text === "string";
23876
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _816 => _816.type]) === "TEXT" && typeof d.text === "string";
23768
23877
  var THINK_MS = 550;
23769
23878
  var TOKEN_MS = 55;
23770
23879
  var USER_MS = 480;
@@ -24397,7 +24506,7 @@ function useChatDialogManager({
24397
24506
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
24398
24507
  if (restoreTarget) {
24399
24508
  try {
24400
- await _optionalChain([unarchiveDialog, 'optionalCall', _812 => _812(restoreTarget.id)]);
24509
+ await _optionalChain([unarchiveDialog, 'optionalCall', _817 => _817(restoreTarget.id)]);
24401
24510
  } catch (err) {
24402
24511
  console.error("[useChatDialogManager] unarchive failed:", err);
24403
24512
  return;
@@ -24478,7 +24587,7 @@ function splitCitedSources(sources2, content) {
24478
24587
  }
24479
24588
  const cited = sources2.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
24480
24589
  const uncited = sources2.filter((source) => !firstMentionAt.has(source.index));
24481
- return { cited, uncited };
24590
+ return { cited: groupSourcesByTable(cited), uncited: groupSourcesByTable(uncited) };
24482
24591
  }
24483
24592
 
24484
24593
  // src/components/chat/utils/host-message.ts
@@ -24664,7 +24773,9 @@ function SourceChip({
24664
24773
  const ItemIcon = itemCta.icon;
24665
24774
  const itemChatRef = itemCta.chatRef;
24666
24775
  return {
24667
- label: item.name,
24776
+ // A client-built group keeps each row's own citation number, so the
24777
+ // `[3]` in the answer is findable inside the dropdown.
24778
+ label: item.index === void 0 ? item.name : `[${item.index}] ${item.name}`,
24668
24779
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItemIcon, { className: "h-3.5 w-3.5" }),
24669
24780
  href: _nullishCoalesce(itemCta.href, () => ( void 0)),
24670
24781
  targetPlatform: itemCta.targetPlatform,
@@ -24676,6 +24787,8 @@ function SourceChip({
24676
24787
  } : void 0
24677
24788
  };
24678
24789
  });
24790
+ const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
24791
+ const groupIndices = itemIndices.length > 0 ? formatCitationIndices(itemIndices) : `${src.index}`;
24679
24792
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24680
24793
  HoverDropdown,
24681
24794
  {
@@ -24694,7 +24807,7 @@ function SourceChip({
24694
24807
  icon,
24695
24808
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "max-w-[160px] truncate", children: [
24696
24809
  "[",
24697
- src.index,
24810
+ groupIndices,
24698
24811
  "] ",
24699
24812
  src.name
24700
24813
  ] })
@@ -24943,7 +25056,7 @@ function EmbeddableChatInner({
24943
25056
  }),
24944
25057
  [commandsUrl]
24945
25058
  );
24946
- const headerUserName = _optionalChain([identityUser, 'optionalAccess', _813 => _813.name, 'optionalAccess', _814 => _814.trim, 'call', _815 => _815()]) || [_optionalChain([identityUser, 'optionalAccess', _816 => _816.firstName]), _optionalChain([identityUser, 'optionalAccess', _817 => _817.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _818 => _818.trim, 'call', _819 => _819()]) || void 0;
25059
+ const headerUserName = _optionalChain([identityUser, 'optionalAccess', _818 => _818.name, 'optionalAccess', _819 => _819.trim, 'call', _820 => _820()]) || [_optionalChain([identityUser, 'optionalAccess', _821 => _821.firstName]), _optionalChain([identityUser, 'optionalAccess', _822 => _822.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _823 => _823.trim, 'call', _824 => _824()]) || void 0;
24947
25060
  const effectiveModes = _react.useMemo.call(void 0, () => {
24948
25061
  if (modes) return modes;
24949
25062
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -24958,7 +25071,7 @@ function EmbeddableChatInner({
24958
25071
  if (controlledActiveMode === void 0) {
24959
25072
  setUncontrolledActiveMode(next);
24960
25073
  }
24961
- _optionalChain([onActiveModeChange, 'optionalCall', _820 => _820(next)]);
25074
+ _optionalChain([onActiveModeChange, 'optionalCall', _825 => _825(next)]);
24962
25075
  },
24963
25076
  [controlledActiveMode, onActiveModeChange]
24964
25077
  );
@@ -24985,7 +25098,7 @@ function EmbeddableChatInner({
24985
25098
  );
24986
25099
  const effectiveAssistantName = emptyStateConfig.name;
24987
25100
  const effectiveAssistantIcon = emptyStateConfig.icon;
24988
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _821 => _821.title]) === "string" ? guideWelcome.title : null)));
25101
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _826 => _826.title]) === "string" ? guideWelcome.title : null)));
24989
25102
  const {
24990
25103
  messages: rawMessages,
24991
25104
  isLoading: chatLoading,
@@ -25028,8 +25141,8 @@ function EmbeddableChatInner({
25028
25141
  const mingoCaps = _react.useMemo.call(void 0,
25029
25142
  () => ({
25030
25143
  ...dialogCapabilities,
25031
- canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _822 => _822.canRename]), () => ( false)),
25032
- canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _823 => _823.canArchive]), () => ( false))
25144
+ canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _827 => _827.canRename]), () => ( false)),
25145
+ canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _828 => _828.canArchive]), () => ( false))
25033
25146
  }),
25034
25147
  [dialogCapabilities]
25035
25148
  );
@@ -25044,7 +25157,7 @@ function EmbeddableChatInner({
25044
25157
  void sendMessage(guidePendingPrompt).catch((err) => {
25045
25158
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
25046
25159
  });
25047
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _824 => _824()]);
25160
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _829 => _829()]);
25048
25161
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
25049
25162
  const {
25050
25163
  attachments: stagedAttachments,
@@ -25055,7 +25168,7 @@ function EmbeddableChatInner({
25055
25168
  clear: clearAttachments
25056
25169
  } = useChatAttachments();
25057
25170
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
25058
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _825 => _825.maxItems]), () => ( 10));
25171
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _830 => _830.maxItems]), () => ( 10));
25059
25172
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
25060
25173
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
25061
25174
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -25076,10 +25189,10 @@ function EmbeddableChatInner({
25076
25189
  }, [activeDialogId, activeMode]);
25077
25190
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
25078
25191
  const m = /* @__PURE__ */ new Map();
25079
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _826 => _826.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
25192
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _831 => _831.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
25080
25193
  return m;
25081
- }, [_optionalChain([contextPicker, 'optionalAccess', _827 => _827.entityTypes])]);
25082
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _828 => _828.entityTypes]);
25194
+ }, [_optionalChain([contextPicker, 'optionalAccess', _832 => _832.entityTypes])]);
25195
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _833 => _833.entityTypes]);
25083
25196
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
25084
25197
  const byType = /* @__PURE__ */ new Map();
25085
25198
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -25091,7 +25204,7 @@ function EmbeddableChatInner({
25091
25204
  if (mentionActiveRef.current) {
25092
25205
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
25093
25206
  if (contextItems.length >= contextMaxItems) return;
25094
- _optionalChain([chatInputRef, 'access', _829 => _829.current, 'optionalAccess', _830 => _830.commitMention, 'call', _831 => _831(mentionTokenOf(key, mentionMarkerByType), {
25207
+ _optionalChain([chatInputRef, 'access', _834 => _834.current, 'optionalAccess', _835 => _835.commitMention, 'call', _836 => _836(mentionTokenOf(key, mentionMarkerByType), {
25095
25208
  label: item.label,
25096
25209
  icon: resolveContextIcon(item)
25097
25210
  })]);
@@ -25114,9 +25227,9 @@ function EmbeddableChatInner({
25114
25227
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
25115
25228
  if (mentionKeysRef.current.has(key)) {
25116
25229
  mentionKeysRef.current.delete(key);
25117
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _832 => _832.current, 'optionalAccess', _833 => _833.getValue, 'call', _834 => _834()]), () => ( ""));
25230
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _837 => _837.current, 'optionalAccess', _838 => _838.getValue, 'call', _839 => _839()]), () => ( ""));
25118
25231
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
25119
- _optionalChain([chatInputRef, 'access', _835 => _835.current, 'optionalAccess', _836 => _836.setValue, 'call', _837 => _837(next)]);
25232
+ _optionalChain([chatInputRef, 'access', _840 => _840.current, 'optionalAccess', _841 => _841.setValue, 'call', _842 => _842(next)]);
25120
25233
  }
25121
25234
  },
25122
25235
  [mentionMarkerByType]
@@ -25138,7 +25251,7 @@ function EmbeddableChatInner({
25138
25251
  }, []);
25139
25252
  const closeContextPicker = _react.useCallback.call(void 0, () => {
25140
25253
  if (mentionActiveRef.current) {
25141
- _optionalChain([chatInputRef, 'access', _838 => _838.current, 'optionalAccess', _839 => _839.removeMentionTrigger, 'call', _840 => _840()]);
25254
+ _optionalChain([chatInputRef, 'access', _843 => _843.current, 'optionalAccess', _844 => _844.removeMentionTrigger, 'call', _845 => _845()]);
25142
25255
  }
25143
25256
  setContextPickerOpen(false);
25144
25257
  setMentionQuery(null);
@@ -25168,12 +25281,12 @@ function EmbeddableChatInner({
25168
25281
  [discussRef, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
25169
25282
  );
25170
25283
  const mingoAssistantIcon = _react.useMemo.call(void 0,
25171
- () => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.MingoIcon, { className: "h-6 w-6", cornerColor: "var(--ods-flamingo-cyan-base)" }),
25284
+ () => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.MingoIcon, { className: "h-6 w-6", cornerColor: "var(--ods-flamingo-cyan-base)" }),
25172
25285
  [effectiveAssistantIcon]
25173
25286
  );
25174
25287
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
25175
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _841 => _841.firstName]), _optionalChain([identityUser, 'optionalAccess', _842 => _842.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _843 => _843.name, 'optionalAccess', _844 => _844.trim, 'call', _845 => _845()]) || void 0 : void 0;
25176
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _846 => _846.avatarUrl, 'optionalAccess', _847 => _847.trim, 'call', _848 => _848()]) || void 0 : void 0;
25288
+ const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _846 => _846.firstName]), _optionalChain([identityUser, 'optionalAccess', _847 => _847.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _848 => _848.name, 'optionalAccess', _849 => _849.trim, 'call', _850 => _850()]) || void 0 : void 0;
25289
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _851 => _851.avatarUrl, 'optionalAccess', _852 => _852.trim, 'call', _853 => _853()]) || void 0 : void 0;
25177
25290
  const messages = _react.useMemo.call(void 0, () => {
25178
25291
  const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
25179
25292
  const mapped = rawMessages.map((m) => mapHostMessage(m, options));
@@ -25347,7 +25460,7 @@ function EmbeddableChatInner({
25347
25460
  _react.useEffect.call(void 0, () => {
25348
25461
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
25349
25462
  const ro = new ResizeObserver((entries) => {
25350
- const w = _optionalChain([entries, 'access', _849 => _849[0], 'optionalAccess', _850 => _850.contentRect, 'optionalAccess', _851 => _851.width]);
25463
+ const w = _optionalChain([entries, 'access', _854 => _854[0], 'optionalAccess', _855 => _855.contentRect, 'optionalAccess', _856 => _856.width]);
25351
25464
  if (typeof w === "number") setPanelWidth(w);
25352
25465
  });
25353
25466
  ro.observe(panelBoundary);
@@ -25391,17 +25504,17 @@ function EmbeddableChatInner({
25391
25504
  const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
25392
25505
  const headerShowBack = hasConversation || guideCanReturnToMingo;
25393
25506
  const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
25394
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _852 => _852.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25507
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _857 => _857.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25395
25508
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
25396
25509
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
25397
25510
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
25398
25511
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
25399
25512
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
25400
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _853 => _853.onCopyLink, 'optionalCall', _854 => _854(activeDialog)]) : void 0;
25513
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _858 => _858.onCopyLink, 'optionalCall', _859 => _859(activeDialog)]) : void 0;
25401
25514
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
25402
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _855 => _855.owner]) : void 0;
25403
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _856 => _856.name, 'optionalAccess', _857 => _857.trim, 'call', _858 => _858()]) || headerUserName;
25404
- const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _859 => _859.avatarUrl, 'optionalAccess', _860 => _860.trim, 'call', _861 => _861()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _862 => _862.avatarUrl, 'optionalAccess', _863 => _863.trim, 'call', _864 => _864()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _865 => _865.trim, 'call', _866 => _866()]) || void 0;
25515
+ const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _860 => _860.owner]) : void 0;
25516
+ const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _861 => _861.name, 'optionalAccess', _862 => _862.trim, 'call', _863 => _863()]) || headerUserName;
25517
+ const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _864 => _864.avatarUrl, 'optionalAccess', _865 => _865.trim, 'call', _866 => _866()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _867 => _867.avatarUrl, 'optionalAccess', _868 => _868.trim, 'call', _869 => _869()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _870 => _870.trim, 'call', _871 => _871()]) || void 0;
25405
25518
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
25406
25519
  const handleNewChat = _react.useCallback.call(void 0, () => {
25407
25520
  resetToNewChat();
@@ -25749,9 +25862,9 @@ function EmbeddableChatInner({
25749
25862
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
25750
25863
  subtitleLoading: emptyStateLoading,
25751
25864
  ...guideWelcome,
25752
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _867 => _867.title]))),
25753
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _868 => _868.icon]))),
25754
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _869 => _869.quickActions]), () => ( guideSuggestedActions)),
25865
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _872 => _872.title]))),
25866
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _873 => _873.icon]))),
25867
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _874 => _874.quickActions]), () => ( guideSuggestedActions)),
25755
25868
  onQuickAction: (action) => {
25756
25869
  setQuickActionPreview(null);
25757
25870
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -25825,8 +25938,8 @@ function EmbeddableChatInner({
25825
25938
  selectedContextItems: contextItems,
25826
25939
  onToggleContextItem: toggleContextItem,
25827
25940
  onRemoveContextItem: removeContextItem,
25828
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _870 => _870.items]),
25829
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _871 => _871.onRemove]),
25941
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _875 => _875.items]),
25942
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _876 => _876.onRemove]),
25830
25943
  contextPickerOpen,
25831
25944
  onOpenContextPicker: openContextPicker,
25832
25945
  onCloseContextPicker: closeContextPicker,
@@ -25906,7 +26019,7 @@ function EmbeddableChatInner({
25906
26019
  _chunkF6U2H42Lcjs.Button,
25907
26020
  {
25908
26021
  onClick: handleOpen,
25909
- leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDWJREJRAcjs.MingoIcon, { className: "h-5 w-5", color: "currentColor" }),
26022
+ leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSXUY4K5cjs.MingoIcon, { className: "h-5 w-5", color: "currentColor" }),
25910
26023
  tabIndex: isOpen ? -1 : 0,
25911
26024
  className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
25912
26025
  children: "Ask AI"
@@ -26303,5 +26416,11 @@ function EmbeddableChatInner({
26303
26416
 
26304
26417
 
26305
26418
 
26306
- exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardSkeleton = AdminContentCardSkeleton; exports.AdminContentCardGrid = AdminContentCardGrid; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.byKey = byKey; exports.getPlatformProductionUrl = getPlatformProductionUrl; exports.getPlatformUrl = getPlatformUrl; exports.getDeploymentUrl = getDeploymentUrl; exports.isLocalUrl = isLocalUrl; exports.getRequestOrigin = getRequestOrigin; exports.resolveRedirectTarget = resolveRedirectTarget; exports.getAllPlatformBaseDomains = getAllPlatformBaseDomains; 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;
26307
- //# sourceMappingURL=chunk-5YW3GAUR.cjs.map
26419
+
26420
+
26421
+
26422
+
26423
+
26424
+
26425
+ exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardSkeleton = AdminContentCardSkeleton; exports.AdminContentCardGrid = AdminContentCardGrid; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.byKey = byKey; exports.getPlatformProductionUrl = getPlatformProductionUrl; exports.getPlatformUrl = getPlatformUrl; exports.getDeploymentUrl = getDeploymentUrl; exports.isLocalUrl = isLocalUrl; exports.getRequestOrigin = getRequestOrigin; exports.resolveRedirectTarget = resolveRedirectTarget; exports.getAllPlatformBaseDomains = getAllPlatformBaseDomains; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; 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;
26426
+ //# sourceMappingURL=chunk-OE6KUWRA.cjs.map