@flamingo-stack/openframe-frontend-core 0.0.828 → 0.0.830

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 (166) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
  3. package/dist/{chunk-QMQWXGCH.cjs → chunk-56EP4QM2.cjs} +29 -25
  4. package/dist/{chunk-4ZH7RPEA.cjs → chunk-5KSPG3TV.cjs} +388 -388
  5. package/dist/{chunk-BGT6JFMP.cjs → chunk-5LED4QHZ.cjs} +527 -434
  6. package/dist/{chunk-6ZLCEIIC.cjs → chunk-CAGQAMJ6.cjs} +23 -23
  7. package/dist/{chunk-ALRX2VIY.cjs → chunk-D2LXFMZI.cjs} +26 -26
  8. package/dist/{chunk-VAIML6YU.cjs → chunk-DUGOOTER.cjs} +13 -13
  9. package/dist/{chunk-XPF74L76.cjs → chunk-E6W4YDPS.cjs} +2 -2
  10. package/dist/{chunk-UULSSD56.cjs → chunk-FFFN4IY2.cjs} +5 -5
  11. package/dist/{chunk-UWGPYAB3.cjs → chunk-HYCMMECU.cjs} +51 -51
  12. package/dist/{chunk-DR4P7AEU.cjs → chunk-HYGWRUEM.cjs} +3 -3
  13. package/dist/chunk-IX2E3AN7.cjs +77 -0
  14. package/dist/{chunk-YKUL6JBI.cjs → chunk-M75723HD.cjs} +46 -34
  15. package/dist/{chunk-RPKWEBHC.cjs → chunk-PUXYAHH3.cjs} +3 -3
  16. package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
  17. package/dist/{chunk-3WKQ2GCR.cjs → chunk-RRPID7Z7.cjs} +6 -8
  18. package/dist/{chunk-6SFCI6D4.cjs → chunk-SAW7V7CU.cjs} +14 -16
  19. package/dist/{chunk-B5H7RKFF.cjs → chunk-TUMSVFVS.cjs} +4 -4
  20. package/dist/{chunk-7VC5FVWT.cjs → chunk-ULF4ZOUM.cjs} +65 -65
  21. package/dist/{chunk-ZT7JHN7G.cjs → chunk-WCCE4WF3.cjs} +57 -62
  22. package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
  23. package/dist/{chunk-K6X7VP2Y.cjs → chunk-WZYBUJJG.cjs} +43 -43
  24. package/dist/{chunk-SVCTAOJR.cjs → chunk-X425BGXS.cjs} +2 -2
  25. package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
  26. package/dist/{cloud-tenants-LKTWIZNS.cjs → cloud-tenants-4KQQPXPM.cjs} +12 -11
  27. package/dist/components/case-studies/index.cjs +24 -23
  28. package/dist/components/chat/assistant-ask-prompts.d.ts +5 -1
  29. package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
  30. package/dist/components/chat/assistant-ask-prompts.js +3 -1
  31. package/dist/components/chat/embeddable-chat.d.ts +3 -3
  32. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  33. package/dist/components/chat/embeddable-chat.js +22 -14
  34. package/dist/components/chat/guide-welcome.d.ts +14 -16
  35. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  36. package/dist/components/chat/guide-welcome.js +9 -24
  37. package/dist/components/chat/hooks/use-empty-state-config.d.ts +13 -3
  38. package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
  39. package/dist/components/chat/hooks/use-empty-state-config.js +10 -2
  40. package/dist/components/chat/index.cjs +13 -5
  41. package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
  42. package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
  43. package/dist/components/chat/mingo-quick-action-wall.js +105 -19
  44. package/dist/components/chat/mingo-welcome.d.ts +6 -13
  45. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  46. package/dist/components/chat/mingo-welcome.js +5 -9
  47. package/dist/components/chat/quick-action-chip.d.ts +8 -2
  48. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  49. package/dist/components/chat/quick-action-chip.js +18 -8
  50. package/dist/components/contact/index.cjs +13 -12
  51. package/dist/components/docs/index.cjs +16 -15
  52. package/dist/components/embeds/index.cjs +13 -12
  53. package/dist/components/faq/faq-ask-card.d.ts +2 -13
  54. package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
  55. package/dist/components/faq/faq-ask-card.js +1 -2
  56. package/dist/components/faq/faq-document-page.d.ts +2 -4
  57. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  58. package/dist/components/faq/faq-document-page.js +0 -2
  59. package/dist/components/faq/faq-section.d.ts +16 -29
  60. package/dist/components/faq/faq-section.d.ts.map +1 -1
  61. package/dist/components/faq/faq-section.js +23 -15
  62. package/dist/components/faq/index.cjs +14 -13
  63. package/dist/components/faq/index.d.ts +1 -1
  64. package/dist/components/faq/index.d.ts.map +1 -1
  65. package/dist/components/faq/index.js +2 -2
  66. package/dist/components/features/index.cjs +12 -11
  67. package/dist/components/help-center-pages/delivery-page.d.ts +1 -8
  68. package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
  69. package/dist/components/help-center-pages/delivery-page.js +4 -16
  70. package/dist/components/help-center-pages/download-apps-page.d.ts +1 -8
  71. package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
  72. package/dist/components/help-center-pages/download-apps-page.js +3 -4
  73. package/dist/components/help-center-pages/index.cjs +123 -171
  74. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +1 -8
  75. package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
  76. package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +14 -26
  77. package/dist/components/help-center-pages/product-releases-list-page.d.ts +1 -8
  78. package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
  79. package/dist/components/help-center-pages/product-releases-list-page.js +12 -24
  80. package/dist/components/help-center-pages/roadmap-page.d.ts +1 -8
  81. package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
  82. package/dist/components/help-center-pages/roadmap-page.js +13 -25
  83. package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
  84. package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
  85. package/dist/components/index.cjs +58 -49
  86. package/dist/components/index.d.ts +1 -0
  87. package/dist/components/index.d.ts.map +1 -1
  88. package/dist/components/index.js +1 -0
  89. package/dist/components/meeting-scheduler/index.cjs +50 -49
  90. package/dist/components/navigation/index.cjs +15 -14
  91. package/dist/components/onboarding-guides/index.cjs +14 -13
  92. package/dist/components/page-topic-label.d.ts +13 -0
  93. package/dist/components/page-topic-label.d.ts.map +1 -0
  94. package/dist/components/page-topic-label.js +20 -0
  95. package/dist/components/product-demo/index.cjs +23 -22
  96. package/dist/components/shared/dev-section/dev-section-page.d.ts +1 -8
  97. package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
  98. package/dist/components/shared/dev-section/dev-section-page.js +2 -3
  99. package/dist/components/shared/legal-document/legal-document-page.d.ts +2 -10
  100. package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
  101. package/dist/components/shared/legal-document/legal-document-page.js +2 -5
  102. package/dist/components/shared/legal-document/use-legal-documents.d.ts +0 -2
  103. package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -1
  104. package/dist/components/shared/legal-document/use-legal-documents.js +0 -1
  105. package/dist/components/tickets/index.cjs +17 -16
  106. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  107. package/dist/components/ui/actions-menu.js +27 -1
  108. package/dist/components/ui/index.cjs +18 -11
  109. package/dist/contexts/endpoints-runtime-context.d.ts +5 -0
  110. package/dist/contexts/endpoints-runtime-context.d.ts.map +1 -1
  111. package/dist/contexts/index.cjs +10 -1
  112. package/dist/contexts/index.d.ts +1 -0
  113. package/dist/contexts/index.d.ts.map +1 -1
  114. package/dist/contexts/index.js +4 -0
  115. package/dist/contexts/page-topics-context.d.ts +30 -0
  116. package/dist/contexts/page-topics-context.d.ts.map +1 -0
  117. package/dist/contexts/page-topics-context.js +27 -0
  118. package/dist/{devices-JWG72ANF.cjs → devices-H6C4NMIY.cjs} +13 -12
  119. package/dist/{embeddable-chat-5UT6UHEO.cjs → embeddable-chat-KUESE7P6.cjs} +107 -97
  120. package/dist/hooks/index.cjs +3 -3
  121. package/dist/index.cjs +33 -15
  122. package/dist/{knowledge-DQXVSHME.cjs → knowledge-O6IBO5Y5.cjs} +13 -12
  123. package/dist/{logs-Z33VBTVX.cjs → logs-Y2UCF24Z.cjs} +19 -18
  124. package/dist/{policies-XE4UMH6Z.cjs → policies-J6O3RLJT.cjs} +16 -15
  125. package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
  126. package/dist/{scripts-MECQG5GG.cjs → scripts-N67MM4T2.cjs} +19 -18
  127. package/dist/{software-update-PCSIA6BP.cjs → software-update-HB7F6KNG.cjs} +16 -15
  128. package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
  129. package/dist/utils/index.cjs +46 -0
  130. package/dist/utils/index.d.ts +1 -0
  131. package/dist/utils/index.d.ts.map +1 -1
  132. package/dist/utils/index.js +12 -0
  133. package/dist/utils/page-topics.cjs +48 -0
  134. package/dist/utils/page-topics.d.ts +34 -0
  135. package/dist/utils/page-topics.d.ts.map +1 -0
  136. package/dist/utils/page-topics.js +46 -0
  137. package/package.json +7 -1
  138. package/src/components/chat/assistant-ask-prompts.tsx +8 -2
  139. package/src/components/chat/embeddable-chat.tsx +32 -45
  140. package/src/components/chat/guide-welcome.tsx +28 -49
  141. package/src/components/chat/hooks/use-empty-state-config.ts +22 -5
  142. package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
  143. package/src/components/chat/mingo-welcome.tsx +16 -35
  144. package/src/components/chat/quick-action-chip.tsx +32 -8
  145. package/src/components/faq/faq-ask-card.tsx +2 -12
  146. package/src/components/faq/faq-document-page.tsx +1 -5
  147. package/src/components/faq/faq-section.tsx +47 -50
  148. package/src/components/faq/index.ts +1 -2
  149. package/src/components/help-center-pages/delivery-page.tsx +1 -16
  150. package/src/components/help-center-pages/download-apps-page.tsx +2 -9
  151. package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +1 -16
  152. package/src/components/help-center-pages/product-releases-list-page.tsx +1 -16
  153. package/src/components/help-center-pages/roadmap-page.tsx +1 -16
  154. package/src/components/help-center-pages/trust-center-page.tsx +1 -1
  155. package/src/components/index.ts +1 -0
  156. package/src/components/page-topic-label.tsx +30 -0
  157. package/src/components/shared/dev-section/dev-section-page.tsx +2 -9
  158. package/src/components/shared/legal-document/legal-document-page.tsx +3 -13
  159. package/src/components/shared/legal-document/use-legal-documents.ts +0 -3
  160. package/src/components/ui/actions-menu.tsx +35 -1
  161. package/src/contexts/endpoints-runtime-context.tsx +5 -0
  162. package/src/contexts/index.ts +1 -0
  163. package/src/contexts/page-topics-context.tsx +68 -0
  164. package/src/utils/index.ts +8 -0
  165. package/src/utils/page-topics.ts +81 -0
  166. package/dist/{chunk-IKWQW3YJ.cjs → chunk-AY6XJOIN.cjs} +4 -4
@@ -36,7 +36,7 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
36
36
 
37
37
 
38
38
 
39
- var _chunk3B6ZE4EZcjs = require('./chunk-3B6ZE4EZ.cjs');
39
+ var _chunkQTLWU6FYcjs = require('./chunk-QTLWU6FY.cjs');
40
40
 
41
41
 
42
42
 
@@ -45,7 +45,7 @@ var _chunk3B6ZE4EZcjs = require('./chunk-3B6ZE4EZ.cjs');
45
45
 
46
46
 
47
47
 
48
- var _chunkBIG3O33Pcjs = require('./chunk-BIG3O33P.cjs');
48
+ var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
49
49
 
50
50
 
51
51
  var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
@@ -286,6 +286,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
286
286
 
287
287
 
288
288
 
289
+ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
290
+
291
+
292
+
289
293
 
290
294
 
291
295
 
@@ -3594,7 +3598,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3594
3598
  {
3595
3599
  ref,
3596
3600
  className: _chunk63A4GZMBcjs.cn.call(void 0,
3597
- _chunk3B6ZE4EZcjs.CHAT_BLOCK_CLASS,
3601
+ _chunkQTLWU6FYcjs.CHAT_BLOCK_CLASS,
3598
3602
  // v2: the thread owns the space below the card.
3599
3603
  !isV2 && "mb-[var(--spacing-system-xsf)]",
3600
3604
  className
@@ -3602,7 +3606,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3602
3606
  ...props,
3603
3607
  children: [
3604
3608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _51 => _51.explanation, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]) || "Approval required" }),
3605
- showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ApprovalWaitingLine, {}),
3609
+ showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalWaitingLine, {}),
3606
3610
  !showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
3607
3611
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3608
3612
  _chunkFCZAUK4Dcjs.Button,
@@ -3634,14 +3638,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3634
3638
  children: "Reject"
3635
3639
  }
3636
3640
  )
3637
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3641
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3638
3642
  ]
3639
3643
  }
3640
3644
  );
3641
3645
  }
3642
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunk3B6ZE4EZcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
3646
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkQTLWU6FYcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
3643
3647
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
3644
- showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ApprovalWaitingLine, {}),
3648
+ showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalWaitingLine, {}),
3645
3649
  !showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
3646
3650
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3647
3651
  _chunkFCZAUK4Dcjs.Button,
@@ -3673,7 +3677,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3673
3677
  children: "Reject"
3674
3678
  }
3675
3679
  )
3676
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3680
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3677
3681
  ] });
3678
3682
  }
3679
3683
  );
@@ -4565,7 +4569,7 @@ var thoughtMdClasses = [
4565
4569
  var ThinkingDisplay = _react.forwardRef.call(void 0,
4566
4570
  ({ className, text: text2, isStreaming = false, ...props }, ref) => {
4567
4571
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
4568
- const { innerRef, isOverflowing, containerStyle } = _chunk3B6ZE4EZcjs.useCollapsible.call(void 0, {
4572
+ const { innerRef, isOverflowing, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, {
4569
4573
  expanded,
4570
4574
  collapsedHeight: 19,
4571
4575
  disableTransition: isStreaming
@@ -4580,7 +4584,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
4580
4584
  setExpanded(!expanded);
4581
4585
  }
4582
4586
  };
4583
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3B6ZE4EZcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4587
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkQTLWU6FYcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4584
4588
  "div",
4585
4589
  {
4586
4590
  role: "button",
@@ -4598,7 +4602,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
4598
4602
  isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEP5KAT6cjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
4599
4603
  ] }),
4600
4604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk63A4GZMBcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: escapeThinkingTags(text2), textSize: "compact" }) }) }),
4601
- canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ExpandChevron, { expanded }) })
4605
+ canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded }) })
4602
4606
  ]
4603
4607
  }
4604
4608
  ) });
@@ -4761,12 +4765,17 @@ function composeChipLabel(label, lozenge) {
4761
4765
  label
4762
4766
  ] });
4763
4767
  }
4768
+ var FILL_TAG_CLASS = "h-14 w-full min-w-0 justify-start text-left";
4769
+ function fillLabel(label) {
4770
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-normal [overflow-wrap:anywhere]", children: label });
4771
+ }
4764
4772
  function QuickActionChipSkeleton({
4765
4773
  labelCh = 16,
4766
4774
  icon = true,
4767
4775
  lozenge = false,
4768
4776
  size = "default",
4769
4777
  variant = "outline",
4778
+ fill = false,
4770
4779
  className,
4771
4780
  ...props
4772
4781
  }) {
@@ -4776,8 +4785,8 @@ function QuickActionChipSkeleton({
4776
4785
  {
4777
4786
  ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
4778
4787
  variant: "outline",
4779
- size: question ? "sentence" : size,
4780
- className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", className),
4788
+ size: question || fill ? "sentence" : size,
4789
+ className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", fill && FILL_TAG_CLASS, className),
4781
4790
  icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
4782
4791
  label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4783
4792
  lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
@@ -4810,6 +4819,7 @@ function QuickActionChipButton({
4810
4819
  className,
4811
4820
  loading: loadingProp = false,
4812
4821
  labelCh,
4822
+ fill = false,
4813
4823
  ...props
4814
4824
  }) {
4815
4825
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
@@ -4824,16 +4834,18 @@ function QuickActionChipButton({
4824
4834
  lozenge: !!lozenge,
4825
4835
  size,
4826
4836
  variant: variant === "question" ? "question" : "outline",
4827
- className
4837
+ fill,
4838
+ className: _chunk63A4GZMBcjs.cn.call(void 0, fill && "w-full", className)
4828
4839
  }
4829
4840
  );
4830
4841
  const themedIcon = theme && isQuickActionIconSpec(icon) && !icon.accent ? { ...icon, accent: theme.accent } : icon;
4831
4842
  const resolvedLozenge = lozenge === true ? _optionalChain([theme, 'optionalAccess', _78 => _78.lozenge]) : lozenge === false ? void 0 : lozenge;
4832
4843
  const resolvedIcon = renderQuickActionIcon(themedIcon);
4833
- const resolvedLabel = composeChipLabel(label, resolvedLozenge);
4844
+ const composedLabel = composeChipLabel(label, resolvedLozenge);
4845
+ const resolvedLabel = fill ? fillLabel(composedLabel) : composedLabel;
4834
4846
  const question = variant === "question";
4835
4847
  const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
4836
- const tagSize = question ? "sentence" : size;
4848
+ const tagSize = question || fill ? "sentence" : size;
4837
4849
  if (!interactive) {
4838
4850
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4839
4851
  _chunkGRHF5SWLcjs.Tag,
@@ -4843,7 +4855,7 @@ function QuickActionChipButton({
4843
4855
  size: tagSize,
4844
4856
  icon: resolvedIcon,
4845
4857
  label: resolvedLabel,
4846
- className
4858
+ className: _chunk63A4GZMBcjs.cn.call(void 0, fill && FILL_TAG_CLASS, className)
4847
4859
  }
4848
4860
  );
4849
4861
  }
@@ -4861,7 +4873,7 @@ function QuickActionChipButton({
4861
4873
  "aria-pressed": selected || void 0,
4862
4874
  className: _chunk63A4GZMBcjs.cn.call(void 0,
4863
4875
  // A question may be longer than a narrow column: it shrinks and clips there, read from its start.
4864
- question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
4876
+ fill ? "w-full min-w-0" : question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
4865
4877
  className
4866
4878
  ),
4867
4879
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4871,7 +4883,7 @@ function QuickActionChipButton({
4871
4883
  size: tagSize,
4872
4884
  icon: resolvedIcon,
4873
4885
  label: resolvedLabel,
4874
- className: question ? "max-w-full" : void 0
4886
+ className: fill ? FILL_TAG_CLASS : question ? "max-w-full" : void 0
4875
4887
  }
4876
4888
  )
4877
4889
  }
@@ -4882,6 +4894,7 @@ function QuickActionChipFromData({
4882
4894
  defaultTheme,
4883
4895
  defaultLozenge,
4884
4896
  interactive = true,
4897
+ fill,
4885
4898
  className,
4886
4899
  ...props
4887
4900
  }) {
@@ -4900,6 +4913,7 @@ function QuickActionChipFromData({
4900
4913
  onHoverStart: chip.onHoverStart,
4901
4914
  onHoverEnd: chip.onHoverEnd,
4902
4915
  interactive,
4916
+ fill,
4903
4917
  className
4904
4918
  }
4905
4919
  );
@@ -4939,7 +4953,7 @@ var iconTint = {
4939
4953
  var ErrorMessageDisplay = _react.forwardRef.call(void 0,
4940
4954
  ({ className, title, details, type = "error", ...props }, ref) => {
4941
4955
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
4942
- const { innerRef, containerStyle } = _chunk3B6ZE4EZcjs.useCollapsible.call(void 0, { expanded });
4956
+ const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded });
4943
4957
  const hasDetails = Boolean(details);
4944
4958
  const isV2 = useChatAppearance() === _chunkIBD2FPSXcjs.CHAT_APPEARANCE.V2;
4945
4959
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -4975,7 +4989,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
4975
4989
  children: title
4976
4990
  }
4977
4991
  ),
4978
- hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ExpandChevron, { expanded })
4992
+ hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded })
4979
4993
  ]
4980
4994
  }
4981
4995
  ),
@@ -5224,9 +5238,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
5224
5238
  )
5225
5239
  ] }),
5226
5240
  (ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5227
- _chunk3B6ZE4EZcjs.TicketStatusTag,
5241
+ _chunkQTLWU6FYcjs.TicketStatusTag,
5228
5242
  {
5229
- ..._chunk3B6ZE4EZcjs.resolveStatusTagProps.call(void 0, {
5243
+ ..._chunkQTLWU6FYcjs.resolveStatusTagProps.call(void 0, {
5230
5244
  status: ticketInfo.status,
5231
5245
  statusKind: ticketInfo.statusKind,
5232
5246
  statusName: ticketInfo.statusName,
@@ -5865,11 +5879,11 @@ var remarkMentionChips = () => {
5865
5879
  // src/components/chat/tool-execution-display.tsx
5866
5880
 
5867
5881
 
5868
- var COMMAND_BODY_KEYS = new Set(_chunk3B6ZE4EZcjs.COMMAND_BODY_ARG_KEYS);
5882
+ var COMMAND_BODY_KEYS = new Set(_chunkQTLWU6FYcjs.COMMAND_BODY_ARG_KEYS);
5869
5883
  var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5870
5884
  ({ className, message, assistantType, variant = "admin", ...props }, ref) => {
5871
5885
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
5872
- const { innerRef, containerStyle } = _chunk3B6ZE4EZcjs.useCollapsible.call(void 0, { expanded });
5886
+ const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded });
5873
5887
  const isClient = assistantType === "fae";
5874
5888
  const isClientView = variant === "client";
5875
5889
  const isExecuting = message.type === "EXECUTING_TOOL";
@@ -5912,7 +5926,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5912
5926
  }
5913
5927
  ),
5914
5928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
5915
- !isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ExpandChevron, { expanded: isExpanded }) })
5929
+ !isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded: isExpanded }) })
5916
5930
  ] });
5917
5931
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5918
5932
  "div",
@@ -5922,7 +5936,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5922
5936
  // The command running block keeps its bordered box in both chats
5923
5937
  // (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
5924
5938
  "flex w-full flex-col overflow-hidden",
5925
- _chunk3B6ZE4EZcjs.CHAT_BLOCK_FRAME_CLASS,
5939
+ _chunkQTLWU6FYcjs.CHAT_BLOCK_FRAME_CLASS,
5926
5940
  className
5927
5941
  ),
5928
5942
  ...props,
@@ -5933,7 +5947,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5933
5947
  // It reads as a card: what was done, then one status line under it.
5934
5948
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left", children: [
5935
5949
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
5936
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.StatusLine, { tone: statusTone, label: statusLabel })
5950
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.StatusLine, { tone: statusTone, label: statusLabel })
5937
5951
  ] })
5938
5952
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5939
5953
  hasBody ? (
@@ -5952,9 +5966,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5952
5966
  )
5953
5967
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
5954
5968
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: hasBody && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start gap-0 border-t border-ods-border p-[var(--spacing-system-sf)] text-h6", children: [
5955
- argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ArgRow, { argKey: key, value }, key)),
5969
+ argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ArgRow, { argKey: key, value }, key)),
5956
5970
  hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5957
- _chunk3B6ZE4EZcjs.ResultBlock,
5971
+ _chunkQTLWU6FYcjs.ResultBlock,
5958
5972
  {
5959
5973
  result: message.result,
5960
5974
  className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
@@ -6061,7 +6075,7 @@ var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+
6061
6075
  var CARD_MARKER_REGEX = createCardMarkerScanner();
6062
6076
  function formatMessageTimestamp(timestamp) {
6063
6077
  const time = _chunkIBD2FPSXcjs.formatTime.call(void 0, timestamp);
6064
- return _chunk3B6ZE4EZcjs.isToday.call(void 0, timestamp) ? time : `${_chunkIBD2FPSXcjs.formatDate.call(void 0, timestamp)} ${time}`;
6078
+ return _chunkQTLWU6FYcjs.isToday.call(void 0, timestamp) ? time : `${_chunkIBD2FPSXcjs.formatDate.call(void 0, timestamp)} ${time}`;
6065
6079
  }
6066
6080
  function normalizeContent(content) {
6067
6081
  if (typeof content === "string") {
@@ -6305,7 +6319,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
6305
6319
  const faceBox = "h-5 w-5 flex-shrink-0";
6306
6320
  const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
6307
6321
  // An agent with no picture shows its packaged mark, never initials.
6308
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
6322
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
6309
6323
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6310
6324
  _chunkGRHF5SWLcjs.SquareAvatar,
6311
6325
  {
@@ -6392,7 +6406,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
6392
6406
  );
6393
6407
  } else if (segment.type === "approval_batch") {
6394
6408
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6395
- _chunk3B6ZE4EZcjs.ApprovalBatchMessage,
6409
+ _chunkQTLWU6FYcjs.ApprovalBatchMessage,
6396
6410
  {
6397
6411
  data: segment.data,
6398
6412
  status: segment.status,
@@ -7020,7 +7034,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
7020
7034
  const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _135 => _135[lastSegments.length - 1]]);
7021
7035
  const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
7022
7036
  const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
7023
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
7037
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
7024
7038
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
7025
7039
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7026
7040
  "div",
@@ -8233,39 +8247,127 @@ function QuickActionWall({
8233
8247
  );
8234
8248
  }
8235
8249
 
8250
+ // src/components/page-topic-label.tsx
8251
+
8252
+ function PageTopicLabel({ className }) {
8253
+ const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
8254
+ if (!topic) return null;
8255
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8256
+ "p",
8257
+ {
8258
+ "data-page-topic": topic,
8259
+ title: "Page topic",
8260
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "leading-none text-ods-text-muted opacity-60 text-badge", className),
8261
+ children: topic
8262
+ }
8263
+ );
8264
+ }
8265
+
8236
8266
  // src/components/chat/mingo-quick-action-wall.tsx
8237
8267
 
8268
+ var QUICK_ACTION_SET_SLOTS = 4;
8269
+ function QuickActionSet({
8270
+ chips,
8271
+ theme,
8272
+ loading: loadingProp = false,
8273
+ label = "Quick actions",
8274
+ showTopic: showTopicProp,
8275
+ className
8276
+ }) {
8277
+ const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
8278
+ const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
8279
+ const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
8280
+ const overflows = chips.length > QUICK_ACTION_SET_SLOTS;
8281
+ const shown = overflows ? chips.slice(0, QUICK_ACTION_SET_SLOTS - 1) : chips;
8282
+ const rest = overflows ? chips.slice(QUICK_ACTION_SET_SLOTS - 1) : [];
8283
+ const empty = loading ? 0 : QUICK_ACTION_SET_SLOTS - shown.length - (overflows ? 1 : 0);
8284
+ const moreItems = rest.map((chip) => {
8285
+ const icon = theme && isQuickActionIconSpec(chip.icon) && !chip.icon.accent ? { ...chip.icon, accent: theme.accent } : chip.icon;
8286
+ return { id: chip.id, label: chip.label, icon: renderQuickActionIcon(icon), onClick: chip.onSelect };
8287
+ });
8288
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8289
+ "div",
8290
+ {
8291
+ role: "group",
8292
+ "aria-label": label,
8293
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container", className),
8294
+ children: [
8295
+ showTopic && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTopicLabel, { className: "text-right" }),
8296
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: QUICK_ACTION_SET_SLOTS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8297
+ QuickActionChipButton,
8298
+ {
8299
+ loading: true,
8300
+ fill: true,
8301
+ label: "",
8302
+ icon: true,
8303
+ labelCh: WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length],
8304
+ "data-loading-item": true
8305
+ }
8306
+ ) }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8307
+ shown.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipFromData, { chip, defaultTheme: theme, fill: true, "data-loading-item": true }) }, chip.id)),
8308
+ overflows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8309
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
8310
+ {
8311
+ groups: [{ items: moreItems }],
8312
+ align: "end",
8313
+ side: "top",
8314
+ customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8315
+ _chunkFCZAUK4Dcjs.Button,
8316
+ {
8317
+ variant: "card",
8318
+ type: "button",
8319
+ "aria-label": `More quick actions (${rest.length})`,
8320
+ className: "w-full min-w-0",
8321
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8322
+ QuickActionChipButton,
8323
+ {
8324
+ interactive: false,
8325
+ fill: true,
8326
+ label: `More (${rest.length})`,
8327
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 16 })
8328
+ }
8329
+ )
8330
+ }
8331
+ )
8332
+ }
8333
+ ) }),
8334
+ Array.from({ length: empty }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { unused: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipButton, { loading: true, fill: true, label: "", icon: true }) }, `empty-${i}`))
8335
+ ] }) })
8336
+ ]
8337
+ }
8338
+ );
8339
+ }
8340
+ function Slot({ unused = false, children }) {
8341
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8342
+ "div",
8343
+ {
8344
+ "data-testid": "quick-action-slot",
8345
+ "aria-hidden": unused || void 0,
8346
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0", unused && "invisible"),
8347
+ children
8348
+ }
8349
+ );
8350
+ }
8238
8351
  function MingoQuickActionWall({
8239
8352
  quickActions,
8240
- onQuickActionHover,
8241
- onQuickActionHoverEnd,
8242
- agentSlug = "mingo",
8243
8353
  loading = false,
8354
+ showTopic,
8244
8355
  className
8245
8356
  }) {
8246
8357
  if (quickActions.length === 0 && !loading) return null;
8247
8358
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8248
- QuickActionWall,
8359
+ QuickActionSet,
8249
8360
  {
8250
8361
  chips: quickActions.map((action) => ({
8251
8362
  id: action.id,
8252
8363
  label: action.label,
8253
8364
  icon: action.icon,
8254
8365
  variant: action.variant,
8255
- onSelect: action.onClick,
8256
- onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _155 => _155(action)]),
8257
- onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _156 => _156()])
8366
+ onSelect: action.onClick
8258
8367
  })),
8259
- agentSlug,
8260
8368
  loading,
8261
- rows: 4,
8262
- pauseOnHover: true,
8263
- dragScroll: true,
8264
- fade: ["left", "right"],
8265
- fadeSize: { left: 32 },
8266
- fadeColor: "var(--color-bg)",
8267
- copyGap: "var(--spacing-system-xxs)",
8268
- className: _chunk63A4GZMBcjs.cn.call(void 0, "max-h-44 shrink-0", className)
8369
+ showTopic,
8370
+ className
8269
8371
  }
8270
8372
  );
8271
8373
  }
@@ -8364,11 +8466,11 @@ var MINGO_DIALOG_STATUS_GLYPHS = {
8364
8466
  };
8365
8467
  function dialogOwnedByOther(dialog, ownedByOther, currentUserId) {
8366
8468
  if (ownedByOther) return ownedByOther(dialog);
8367
- const ownerId = _optionalChain([dialog, 'access', _157 => _157.owner, 'optionalAccess', _158 => _158.id]);
8469
+ const ownerId = _optionalChain([dialog, 'access', _155 => _155.owner, 'optionalAccess', _156 => _156.id]);
8368
8470
  return !!currentUserId && !!ownerId && ownerId !== currentUserId;
8369
8471
  }
8370
8472
  function mingoDialogStatusOf(dialog, statusOf) {
8371
- return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _159 => _159(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
8473
+ return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _157 => _157(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
8372
8474
  }
8373
8475
  function ChatListLoadError({ onRetry, className }) {
8374
8476
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col items-center gap-[var(--spacing-system-m)] text-center", className), children: [
@@ -8406,7 +8508,7 @@ function useLoadMoreSentinel({
8406
8508
  threshold: 0.1
8407
8509
  };
8408
8510
  const observer = new IntersectionObserver(([entry]) => {
8409
- if (_optionalChain([entry, 'optionalAccess', _160 => _160.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _161 => _161.current, 'optionalCall', _162 => _162()]);
8511
+ if (_optionalChain([entry, 'optionalAccess', _158 => _158.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _159 => _159.current, 'optionalCall', _160 => _160()]);
8410
8512
  }, options);
8411
8513
  observer.observe(sentinel);
8412
8514
  return () => observer.disconnect();
@@ -8499,11 +8601,11 @@ function MingoChatHistoryRow({
8499
8601
  ...props
8500
8602
  }) {
8501
8603
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
8502
- const title = _optionalChain([dialog, 'optionalAccess', _163 => _163.title]) || "Untitled Chat";
8503
- const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _164 => _164.unreadMessagesCount]), () => ( 0));
8604
+ const title = _optionalChain([dialog, 'optionalAccess', _161 => _161.title]) || "Untitled Chat";
8605
+ const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _162 => _162.unreadMessagesCount]), () => ( 0));
8504
8606
  const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
8505
- const owner = _optionalChain([dialog, 'optionalAccess', _165 => _165.owner]);
8506
- const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _166 => _166.name]) || _optionalChain([owner, 'optionalAccess', _167 => _167.avatarUrl]));
8607
+ const owner = _optionalChain([dialog, 'optionalAccess', _163 => _163.owner]);
8608
+ const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _164 => _164.name]) || _optionalChain([owner, 'optionalAccess', _165 => _165.avatarUrl]));
8507
8609
  const [menuOpen, setMenuOpen] = _react.useState.call(void 0, false);
8508
8610
  const menuItems = dialog ? chatDialogMenuItems({
8509
8611
  onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
@@ -8511,7 +8613,7 @@ function MingoChatHistoryRow({
8511
8613
  onCompact: onRequestCompact && (() => onRequestCompact(dialog)),
8512
8614
  onArchive: onRequestArchive && (() => onRequestArchive(dialog))
8513
8615
  }) : [];
8514
- const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _168 => _168(dialog.id)]);
8616
+ const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _166 => _166(dialog.id)]);
8515
8617
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8516
8618
  "div",
8517
8619
  {
@@ -8579,7 +8681,7 @@ function MingoChatHistoryRow({
8579
8681
  menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
8580
8682
  ),
8581
8683
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8582
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
8684
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
8583
8685
  {
8584
8686
  triggerAriaLabel: "Chat actions",
8585
8687
  groups: [{ items: menuItems }],
@@ -8609,7 +8711,7 @@ function MingoChatHistoryRow({
8609
8711
  "span",
8610
8712
  {
8611
8713
  onClick: select,
8612
- title: _optionalChain([owner, 'optionalAccess', _169 => _169.name]) || void 0,
8714
+ title: _optionalChain([owner, 'optionalAccess', _167 => _167.name]) || void 0,
8613
8715
  className: _chunk63A4GZMBcjs.cn.call(void 0,
8614
8716
  "absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
8615
8717
  hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
@@ -8619,9 +8721,9 @@ function MingoChatHistoryRow({
8619
8721
  {
8620
8722
  variant: "round",
8621
8723
  sizePx: 24,
8622
- src: _optionalChain([owner, 'optionalAccess', _170 => _170.avatarUrl]) || void 0,
8623
- alt: _optionalChain([owner, 'optionalAccess', _171 => _171.name]) || void 0,
8624
- fallback: _optionalChain([owner, 'optionalAccess', _172 => _172.name]) || void 0,
8724
+ src: _optionalChain([owner, 'optionalAccess', _168 => _168.avatarUrl]) || void 0,
8725
+ alt: _optionalChain([owner, 'optionalAccess', _169 => _169.name]) || void 0,
8726
+ fallback: _optionalChain([owner, 'optionalAccess', _170 => _170.name]) || void 0,
8625
8727
  initialsClassName: "text-[10px] text-ods-text-secondary"
8626
8728
  }
8627
8729
  )
@@ -8671,7 +8773,7 @@ function MingoChatHistory({
8671
8773
  }) {
8672
8774
  const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
8673
8775
  const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
8674
- const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _173 => _173.trim, 'call', _174 => _174()]);
8776
+ const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
8675
8777
  const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkIBD2FPSXcjs.useScrollFade.call(void 0, );
8676
8778
  const onScroll = loadMore === "scroll";
8677
8779
  const sentinelRef = useLoadMoreSentinel({
@@ -8757,8 +8859,6 @@ function MingoWelcome({
8757
8859
  promoStorageKey = DEFAULT_PROMO_STORAGE_KEY,
8758
8860
  promoStorage = "local",
8759
8861
  quickActions,
8760
- onQuickActionHover,
8761
- onQuickActionHoverEnd,
8762
8862
  hasExistingChats = false,
8763
8863
  dialogHistory,
8764
8864
  isLoadingHistory = false,
@@ -8766,7 +8866,7 @@ function MingoWelcome({
8766
8866
  loadError = false,
8767
8867
  onRetry,
8768
8868
  onStartGuideChat,
8769
- agentSlug = "mingo",
8869
+ quickActionsLoading = false,
8770
8870
  className
8771
8871
  }) {
8772
8872
  const heading = _nullishCoalesce(title, () => ( "Hey, I'm Mingo"));
@@ -8824,7 +8924,7 @@ function MingoWelcome({
8824
8924
  onScroll: updateScrollFade,
8825
8925
  className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
8826
8926
  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: [
8827
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
8927
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
8828
8928
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
8829
8929
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
8830
8930
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
@@ -8855,7 +8955,7 @@ function MingoWelcome({
8855
8955
  }
8856
8956
  )
8857
8957
  ] }),
8858
- (onStartGuideChat || quickActions && quickActions.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--chip-wall-gap)]", children: [
8958
+ (onStartGuideChat || quickActions && quickActions.length > 0 || quickActionsLoading) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xs)]", children: [
8859
8959
  onStartGuideChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8860
8960
  QuickActionChipButton,
8861
8961
  {
@@ -8866,13 +8966,11 @@ function MingoWelcome({
8866
8966
  className: "self-start"
8867
8967
  }
8868
8968
  ),
8869
- quickActions && quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8969
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8870
8970
  MingoQuickActionWall,
8871
8971
  {
8872
- quickActions,
8873
- onQuickActionHover,
8874
- onQuickActionHoverEnd,
8875
- agentSlug
8972
+ quickActions: _nullishCoalesce(quickActions, () => ( [])),
8973
+ loading: quickActionsLoading && !_optionalChain([quickActions, 'optionalAccess', _173 => _173.length])
8876
8974
  }
8877
8975
  )
8878
8976
  ] })
@@ -8892,15 +8990,16 @@ function GuideWelcome({
8892
8990
  subtitle,
8893
8991
  subtitleLoading = false,
8894
8992
  quickActions = [],
8993
+ quickActionsLoading = false,
8994
+ showTopic: showTopicProp,
8895
8995
  onQuickAction,
8896
- onQuickActionHover,
8897
- onQuickActionHoverEnd,
8898
- agentSlug,
8899
8996
  children,
8900
8997
  className
8901
8998
  }) {
8902
8999
  const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkIBD2FPSXcjs.useScrollFade.call(void 0, );
8903
- const subtitleIsLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
9000
+ const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
9001
+ const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
9002
+ const chipsAreLoading = inLoadingScope || quickActionsLoading && quickActions.length === 0;
8904
9003
  const chipItems = _react.useMemo.call(void 0,
8905
9004
  () => quickActions.map((action) => ({
8906
9005
  id: action.id,
@@ -8916,11 +9015,9 @@ function GuideWelcome({
8916
9015
  props: action.iconProps,
8917
9016
  accent: _nullishCoalesce(_nullishCoalesce(action.accent, () => ( accentFromIdentityIcon(icon))), () => ( "cyan"))
8918
9017
  },
8919
- onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _175 => _175(action)]),
8920
- onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _176 => _176(action)]),
8921
- onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _177 => _177()])
9018
+ onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _174 => _174(action)])
8922
9019
  })),
8923
- [quickActions, icon, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
9020
+ [quickActions, icon, onQuickAction]
8924
9021
  );
8925
9022
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
8926
9023
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
@@ -8936,7 +9033,7 @@ function GuideWelcome({
8936
9033
  // Agent-mode identity glyph (chat-config Identity tab). Sized to
8937
9034
  // match the default Mingo mark (48px).
8938
9035
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
8939
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
9036
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
8940
9037
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
8941
9038
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
8942
9039
  subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
@@ -8949,21 +9046,7 @@ function GuideWelcome({
8949
9046
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBD2FPSXcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
8950
9047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBD2FPSXcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
8951
9048
  ] }),
8952
- quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8953
- QuickActionWall,
8954
- {
8955
- chips: chipItems,
8956
- agentSlug,
8957
- rows: 4,
8958
- pauseOnHover: true,
8959
- dragScroll: true,
8960
- fade: ["left", "right"],
8961
- fadeSize: { left: 32 },
8962
- fadeColor: "var(--color-bg)",
8963
- copyGap: "var(--spacing-system-xxs)",
8964
- className: "max-h-44 shrink-0"
8965
- }
8966
- )
9049
+ (quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
8967
9050
  ] });
8968
9051
  }
8969
9052
 
@@ -8982,9 +9065,9 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
8982
9065
  children: [
8983
9066
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
8984
9067
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
8985
- tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
8986
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "bare", size: "icon-inline", type: "button", "aria-label": "About Guide Mode", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16, className: "text-ods-text-on-accent" }) }) }),
8987
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
9068
+ tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
9069
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "bare", size: "icon-inline", type: "button", "aria-label": "About Guide Mode", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16, className: "text-ods-text-on-accent" }) }) }),
9070
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
8988
9071
  ] }) })
8989
9072
  ]
8990
9073
  }
@@ -9017,7 +9100,7 @@ function MingoArchiveList({
9017
9100
  if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
9018
9101
  const observer = new IntersectionObserver(
9019
9102
  ([entry]) => {
9020
- if (_optionalChain([entry, 'optionalAccess', _178 => _178.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180()]);
9103
+ if (_optionalChain([entry, 'optionalAccess', _175 => _175.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177()]);
9021
9104
  },
9022
9105
  { rootMargin: "120px", threshold: 0.1 }
9023
9106
  );
@@ -9037,9 +9120,9 @@ function MingoArchiveList({
9037
9120
  {
9038
9121
  "data-loading-item": true,
9039
9122
  title: dialog.title || "Untitled Chat",
9040
- onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _181 => _181(dialog.id)]),
9123
+ onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
9041
9124
  trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
9042
- dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunk3B6ZE4EZcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
9125
+ dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkQTLWU6FYcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
9043
9126
  dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9044
9127
  _chunkGRHF5SWLcjs.SquareAvatar,
9045
9128
  {
@@ -9145,8 +9228,8 @@ function MingoChatHeader({
9145
9228
  ChatHeaderRenameField,
9146
9229
  {
9147
9230
  initialValue: title,
9148
- onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall', _182 => _182(value)]),
9149
- onCancel: () => _optionalChain([onRenameCancel, 'optionalCall', _183 => _183()])
9231
+ onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall', _179 => _179(value)]),
9232
+ onCancel: () => _optionalChain([onRenameCancel, 'optionalCall', _180 => _180()])
9150
9233
  },
9151
9234
  title
9152
9235
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3", isPage && "min-w-0"), children: title });
@@ -9187,7 +9270,7 @@ function MingoChatHeader({
9187
9270
  ] }),
9188
9271
  onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
9189
9272
  menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9190
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
9273
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
9191
9274
  {
9192
9275
  triggerAriaLabel: "Chat actions",
9193
9276
  onCloseAutoFocus: (e) => e.preventDefault(),
@@ -9236,7 +9319,7 @@ function ChatHeaderSearchField({
9236
9319
  const finishCollapse = _react.useCallback.call(void 0, () => {
9237
9320
  if (collapsedRef.current) return;
9238
9321
  collapsedRef.current = true;
9239
- _optionalChain([onCollapse, 'optionalCall', _184 => _184()]);
9322
+ _optionalChain([onCollapse, 'optionalCall', _181 => _181()]);
9240
9323
  }, [onCollapse]);
9241
9324
  const beginCollapse = _react.useCallback.call(void 0, () => {
9242
9325
  setExiting(true);
@@ -9408,7 +9491,7 @@ function SearchInput({
9408
9491
  if (!showHiddenTags) return void 0;
9409
9492
  const handleClick = (e) => {
9410
9493
  const target = e.target;
9411
- if (!_optionalChain([hiddenTagsRef, 'access', _185 => _185.current, 'optionalAccess', _186 => _186.contains, 'call', _187 => _187(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _188 => _188.current, 'optionalAccess', _189 => _189.contains, 'call', _190 => _190(target)])) {
9494
+ if (!_optionalChain([hiddenTagsRef, 'access', _182 => _182.current, 'optionalAccess', _183 => _183.contains, 'call', _184 => _184(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _185 => _185.current, 'optionalAccess', _186 => _186.contains, 'call', _187 => _187(target)])) {
9412
9495
  setShowHiddenTags(false);
9413
9496
  }
9414
9497
  };
@@ -9419,7 +9502,7 @@ function SearchInput({
9419
9502
  const popup = hiddenTagsPopupRef.current;
9420
9503
  const badge = badgeRef.current;
9421
9504
  if (!popup || !badge) return;
9422
- const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _191 => _191.current, 'optionalAccess', _192 => _192.getBoundingClientRect, 'call', _193 => _193(), 'access', _194 => _194.left]), () => ( 0));
9505
+ const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _188 => _188.current, 'optionalAccess', _189 => _189.getBoundingClientRect, 'call', _190 => _190(), 'access', _191 => _191.left]), () => ( 0));
9423
9506
  popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
9424
9507
  });
9425
9508
  const hiddenCount = filterChips.length - visibleCount;
@@ -9454,7 +9537,7 @@ function SearchInput({
9454
9537
  } else {
9455
9538
  setInternalValue(newVal);
9456
9539
  }
9457
- if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _195 => _195("")]);
9540
+ if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _192 => _192("")]);
9458
9541
  if (!isOpen) setIsOpen(true);
9459
9542
  setHighlightedIndex(-1);
9460
9543
  };
@@ -9466,11 +9549,11 @@ function SearchInput({
9466
9549
  } else {
9467
9550
  setInternalValue("");
9468
9551
  }
9469
- if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _196 => _196("")]);
9470
- _optionalChain([inputRef, 'access', _197 => _197.current, 'optionalAccess', _198 => _198.focus, 'call', _199 => _199()]);
9552
+ if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _193 => _193("")]);
9553
+ _optionalChain([inputRef, 'access', _194 => _194.current, 'optionalAccess', _195 => _195.focus, 'call', _196 => _196()]);
9471
9554
  };
9472
9555
  const handleResultClick = (result, e) => {
9473
- _optionalChain([onResultSelect, 'optionalCall', _200 => _200(
9556
+ _optionalChain([onResultSelect, 'optionalCall', _197 => _197(
9474
9557
  result,
9475
9558
  e ? {
9476
9559
  metaKey: e.metaKey,
@@ -9498,7 +9581,7 @@ function SearchInput({
9498
9581
  if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
9499
9582
  handleResultClick(flatResults[highlightedIndex]);
9500
9583
  } else {
9501
- _optionalChain([onSubmit, 'optionalCall', _201 => _201(currentValue)]);
9584
+ _optionalChain([onSubmit, 'optionalCall', _198 => _198(currentValue)]);
9502
9585
  }
9503
9586
  break;
9504
9587
  case "Escape":
@@ -9583,7 +9666,7 @@ function SearchInput({
9583
9666
  ),
9584
9667
  onClick: () => {
9585
9668
  if (disabled) return;
9586
- _optionalChain([inputRef, 'access', _202 => _202.current, 'optionalAccess', _203 => _203.focus, 'call', _204 => _204()]);
9669
+ _optionalChain([inputRef, 'access', _199 => _199.current, 'optionalAccess', _200 => _200.focus, 'call', _201 => _201()]);
9587
9670
  setIsOpen(true);
9588
9671
  },
9589
9672
  children: [
@@ -9668,10 +9751,10 @@ function SearchInput({
9668
9751
  collisionPadding: { bottom: keyboardPadding },
9669
9752
  onOpenAutoFocus: (e) => {
9670
9753
  e.preventDefault();
9671
- _optionalChain([inputRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.focus, 'call', _207 => _207()]);
9754
+ _optionalChain([inputRef, 'access', _202 => _202.current, 'optionalAccess', _203 => _203.focus, 'call', _204 => _204()]);
9672
9755
  },
9673
9756
  onInteractOutside: (e) => {
9674
- if (_optionalChain([containerRef, 'access', _208 => _208.current, 'optionalAccess', _209 => _209.contains, 'call', _210 => _210(e.target)])) {
9757
+ if (_optionalChain([containerRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.contains, 'call', _207 => _207(e.target)])) {
9675
9758
  e.preventDefault();
9676
9759
  }
9677
9760
  },
@@ -9688,7 +9771,7 @@ function SearchInput({
9688
9771
  ref: hiddenTagsPopupRef,
9689
9772
  items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
9690
9773
  onRemove: (removedTag) => {
9691
- _optionalChain([onFilterRemove, 'optionalCall', _211 => _211(removedTag)]);
9774
+ _optionalChain([onFilterRemove, 'optionalCall', _208 => _208(removedTag)]);
9692
9775
  if (hiddenCount <= 1) setShowHiddenTags(false);
9693
9776
  }
9694
9777
  }
@@ -9786,7 +9869,7 @@ function HistoryList({
9786
9869
  );
9787
9870
  }
9788
9871
  const groups = groupDialogsByDay(dialogs);
9789
- const draftInToday = !!draftTitle && _optionalChain([groups, 'access', _212 => _212[0], 'optionalAccess', _213 => _213.key]) === "today";
9872
+ const draftInToday = !!draftTitle && _optionalChain([groups, 'access', _209 => _209[0], 'optionalAccess', _210 => _210.key]) === "today";
9790
9873
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
9791
9874
  draftTitle && !draftInToday && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DayGroup, { label: "Today", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionRow, { title: draftTitle, active: true }) }),
9792
9875
  groups.map((group, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DayGroup, { label: group.label, children: [
@@ -9798,10 +9881,10 @@ function HistoryList({
9798
9881
  title: dialog.title || UNTITLED,
9799
9882
  active: dialog.id === activeDialogId,
9800
9883
  status: mingoDialogStatusOf(dialog, statusOf),
9801
- ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access', _214 => _214.owner, 'optionalAccess', _215 => _215.name]) || void 0 : void 0,
9802
- ownerAvatarUrl: _optionalChain([dialog, 'access', _216 => _216.owner, 'optionalAccess', _217 => _217.avatarUrl]) || void 0,
9884
+ ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access', _211 => _211.owner, 'optionalAccess', _212 => _212.name]) || void 0 : void 0,
9885
+ ownerAvatarUrl: _optionalChain([dialog, 'access', _213 => _213.owner, 'optionalAccess', _214 => _214.avatarUrl]) || void 0,
9803
9886
  onSelect,
9804
- menuItems: _optionalChain([menuFor, 'optionalCall', _218 => _218(dialog)])
9887
+ menuItems: _optionalChain([menuFor, 'optionalCall', _215 => _215(dialog)])
9805
9888
  },
9806
9889
  dialog.id
9807
9890
  ))
@@ -9859,7 +9942,7 @@ function MingoChatHistorySection({
9859
9942
  defaultProp: false,
9860
9943
  onChange: onSearchOpenChange
9861
9944
  });
9862
- const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _219 => _219.trim, 'call', _220 => _220()]);
9945
+ const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
9863
9946
  const showSearch = searchOpen && !!onSearchChange;
9864
9947
  const shortcut = visitor.known ? _chunkW4VEDSAXcjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
9865
9948
  const listProps = {
@@ -9910,7 +9993,7 @@ function MingoChatHistorySection({
9910
9993
  onClick: () => onScopeChange("all")
9911
9994
  }
9912
9995
  ] : [];
9913
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.TooltipProvider, { delayDuration: 300, children: [
9996
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: [
9914
9997
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9915
9998
  "section",
9916
9999
  {
@@ -9919,8 +10002,8 @@ function MingoChatHistorySection({
9919
10002
  children: [
9920
10003
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-xs)]", children: [
9921
10004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { id: captionId, className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h5", children: "Chat history" }),
9922
- onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
9923
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10005
+ onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
10006
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9924
10007
  _chunkFCZAUK4Dcjs.Button,
9925
10008
  {
9926
10009
  variant: "transparent",
@@ -9932,16 +10015,16 @@ function MingoChatHistorySection({
9932
10015
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
9933
10016
  }
9934
10017
  ) }),
9935
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "bottom", children: shortcut ? `Search chats \xB7 ${shortcut}` : "Search chats" })
10018
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: shortcut ? `Search chats \xB7 ${shortcut}` : "Search chats" })
9936
10019
  ] }),
9937
- scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
10020
+ scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
9938
10021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9939
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10022
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
9940
10023
  {
9941
10024
  triggerAriaLabel: "Filter chats",
9942
10025
  groups: [{ items: scopeMenu }],
9943
10026
  onCloseAutoFocus: (e) => e.preventDefault(),
9944
- customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10027
+ customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9945
10028
  _chunkFCZAUK4Dcjs.Button,
9946
10029
  {
9947
10030
  variant: "transparent",
@@ -9953,19 +10036,19 @@ function MingoChatHistorySection({
9953
10036
  ) })
9954
10037
  }
9955
10038
  ),
9956
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "bottom", children: scope === "all" ? "Showing all chats" : "Showing my chats" })
10039
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: scope === "all" ? "Showing all chats" : "Showing my chats" })
9957
10040
  ] }),
9958
- moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
10041
+ moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
9959
10042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9960
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10043
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
9961
10044
  {
9962
10045
  triggerAriaLabel: "More",
9963
10046
  groups: [{ items: moreMenu }],
9964
10047
  onCloseAutoFocus: (e) => e.preventDefault(),
9965
- customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "transparent", size: "icon", "aria-label": "More", className: ICON_BUTTON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 20 }) }) })
10048
+ customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "transparent", size: "icon", "aria-label": "More", className: ICON_BUTTON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 20 }) }) })
9966
10049
  }
9967
10050
  ),
9968
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "bottom", children: "More" })
10051
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: "More" })
9969
10052
  ] })
9970
10053
  ] }),
9971
10054
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10014,11 +10097,11 @@ function MingoChatSearchModal({
10014
10097
  HistoryList,
10015
10098
  {
10016
10099
  ...listProps,
10017
- hasSearch: !!_optionalChain([searchQuery, 'optionalAccess', _221 => _221.trim, 'call', _222 => _222()]),
10100
+ hasSearch: !!_optionalChain([searchQuery, 'optionalAccess', _218 => _218.trim, 'call', _219 => _219()]),
10018
10101
  onSelect: (id) => {
10019
10102
  onOpenChange(false);
10020
- if (_optionalChain([searchQuery, 'optionalAccess', _223 => _223.trim, 'call', _224 => _224()])) onSearchChange("");
10021
- _optionalChain([onSelectDialog, 'optionalCall', _225 => _225(id)]);
10103
+ if (_optionalChain([searchQuery, 'optionalAccess', _220 => _220.trim, 'call', _221 => _221()])) onSearchChange("");
10104
+ _optionalChain([onSelectDialog, 'optionalCall', _222 => _222(id)]);
10022
10105
  }
10023
10106
  }
10024
10107
  ) }),
@@ -10041,7 +10124,7 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
10041
10124
  onSearchChange(debounced);
10042
10125
  }, [debounced, onSearchChange]);
10043
10126
  _react.useEffect.call(void 0, () => {
10044
- const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access', _226 => _226.current, 'optionalAccess', _227 => _227.querySelector, 'call', _228 => _228("input"), 'optionalAccess', _229 => _229.focus, 'call', _230 => _230()]));
10127
+ const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access', _223 => _223.current, 'optionalAccess', _224 => _224.querySelector, 'call', _225 => _225("input"), 'optionalAccess', _226 => _226.focus, 'call', _227 => _227()]));
10045
10128
  return () => cancelAnimationFrame(frame);
10046
10129
  }, []);
10047
10130
  const close = () => {
@@ -10110,7 +10193,7 @@ function SectionRow({
10110
10193
  active,
10111
10194
  title,
10112
10195
  tabIndex: dialog ? void 0 : -1,
10113
- onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall', _231 => _231(dialog.id)]) : void 0,
10196
+ onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall', _228 => _228(dialog.id)]) : void 0,
10114
10197
  className: _chunk63A4GZMBcjs.cn.call(void 0,
10115
10198
  "transition-colors duration-150",
10116
10199
  !active && "hover:bg-ods-bg-hover",
@@ -10155,7 +10238,7 @@ function SectionRow({
10155
10238
  menuOpen ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-has-[:focus-visible]/row:opacity-100"
10156
10239
  ),
10157
10240
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10158
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10241
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
10159
10242
  {
10160
10243
  triggerAriaLabel: `Actions for ${title}`,
10161
10244
  groups: [{ items: menuItems }],
@@ -10220,10 +10303,10 @@ function MingoChatRailPanel({
10220
10303
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
10221
10304
  const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
10222
10305
  prop: searchOpenProp,
10223
- defaultProp: !!_optionalChain([searchQuery, 'optionalAccess', _232 => _232.trim, 'call', _233 => _233()]),
10306
+ defaultProp: !!_optionalChain([searchQuery, 'optionalAccess', _229 => _229.trim, 'call', _230 => _230()]),
10224
10307
  onChange: onSearchOpenChange
10225
10308
  });
10226
- const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _234 => _234.trim, 'call', _235 => _235()]);
10309
+ const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _231 => _231.trim, 'call', _232 => _232()]);
10227
10310
  const items = [];
10228
10311
  if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZPN2P7Ucjs.ChatPlusIcon, {}), onClick: onNewChat });
10229
10312
  if (onOpenArchive) {
@@ -10312,7 +10395,7 @@ function MingoChatRailPanel({
10312
10395
  "data-accent": "mingo",
10313
10396
  "aria-label": "Mingo chats",
10314
10397
  logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
10315
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
10398
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
10316
10399
  onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10317
10400
  _chunkFCZAUK4Dcjs.Button,
10318
10401
  {
@@ -10328,7 +10411,7 @@ function MingoChatRailPanel({
10328
10411
  items,
10329
10412
  sectionLabel: "Your Current Chats",
10330
10413
  sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10331
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10414
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
10332
10415
  {
10333
10416
  triggerAriaLabel: "Chat list options",
10334
10417
  groups: [{ items: listMenu }],
@@ -10369,7 +10452,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
10369
10452
  {
10370
10453
  active,
10371
10454
  title,
10372
- onClick: () => _optionalChain([onSelect, 'optionalCall', _236 => _236(dialog.id)]),
10455
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _233 => _233(dialog.id)]),
10373
10456
  className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
10374
10457
  trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10375
10458
  "span",
@@ -10391,7 +10474,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
10391
10474
  menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
10392
10475
  ),
10393
10476
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10394
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10477
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
10395
10478
  {
10396
10479
  triggerAriaLabel: `Actions for ${title}`,
10397
10480
  groups: [{ items: menuItems }],
@@ -10427,7 +10510,7 @@ function TabSelector({
10427
10510
  scrollable = false,
10428
10511
  className
10429
10512
  }) {
10430
- const flush = _chunkBIG3O33Pcjs.useIsInActionsMenuHeader.call(void 0, );
10513
+ const flush = _chunkYJZ7R3W5cjs.useIsInActionsMenuHeader.call(void 0, );
10431
10514
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10432
10515
  "div",
10433
10516
  {
@@ -10501,7 +10584,7 @@ function MingoHistoryRail({
10501
10584
  className
10502
10585
  }) {
10503
10586
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
10504
- const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _237 => _237.trim, 'call', _238 => _238()]);
10587
+ const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _234 => _234.trim, 'call', _235 => _235()]);
10505
10588
  const hasList = dialogs.length > 0 || hasSearch;
10506
10589
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
10507
10590
  "div",
@@ -10643,7 +10726,7 @@ function ChatDialogModals({
10643
10726
  RenameChatModal,
10644
10727
  {
10645
10728
  isOpen: renameTarget != null,
10646
- initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _239 => _239.title]), () => ( "")),
10729
+ initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _236 => _236.title]), () => ( "")),
10647
10730
  onClose: () => setRenameTarget(null),
10648
10731
  onSave: onConfirmRename
10649
10732
  }
@@ -10707,7 +10790,7 @@ function ChatPanelHeaderMobile({
10707
10790
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
10708
10791
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
10709
10792
  menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10710
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10793
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
10711
10794
  {
10712
10795
  groups: [{ items: menuItems }],
10713
10796
  triggerAriaLabel: "Chat actions",
@@ -10810,7 +10893,7 @@ function ChatPanelHeader({
10810
10893
  ] }),
10811
10894
  isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
10812
10895
  showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10813
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
10896
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
10814
10897
  {
10815
10898
  triggerAriaLabel: "Chat actions",
10816
10899
  onCloseAutoFocus: (e) => e.preventDefault(),
@@ -10867,7 +10950,7 @@ function ChatAttachmentAddButton({
10867
10950
  const canAddMore = slotsAvailable > 0 && !disabled;
10868
10951
  const handlePick = () => {
10869
10952
  if (!canAddMore) return;
10870
- _optionalChain([fileInputRef, 'access', _240 => _240.current, 'optionalAccess', _241 => _241.click, 'call', _242 => _242()]);
10953
+ _optionalChain([fileInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.click, 'call', _239 => _239()]);
10871
10954
  };
10872
10955
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
10873
10956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11033,7 +11116,7 @@ function ChatContextMemoryBar({
11033
11116
  _react.useEffect.call(void 0, () => {
11034
11117
  if (!open) return void 0;
11035
11118
  const onOutside = (e) => {
11036
- if (_optionalChain([rootRef, 'access', _243 => _243.current, 'optionalAccess', _244 => _244.contains, 'call', _245 => _245(e.target)])) return;
11119
+ if (_optionalChain([rootRef, 'access', _240 => _240.current, 'optionalAccess', _241 => _241.contains, 'call', _242 => _242(e.target)])) return;
11037
11120
  setOpen(false);
11038
11121
  };
11039
11122
  document.addEventListener("mousedown", onOutside, true);
@@ -11254,20 +11337,20 @@ var ModelDisplay = _react2.default.forwardRef(
11254
11337
  // Neither: the same two spans the row always had.
11255
11338
  labelContent
11256
11339
  );
11257
- const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
11258
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: label }),
11259
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "top", align: "start", children: modelTooltip })
11340
+ const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
11341
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: label }),
11342
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "start", children: modelTooltip })
11260
11343
  ] }) }) : label;
11261
11344
  const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
11262
11345
  labelWithTooltip,
11263
- contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBIG3O33Pcjs.Tooltip, { children: [
11264
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
11346
+ contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
11347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
11265
11348
  usedTokens != null ? formatCount(usedTokens) : "\u2014",
11266
11349
  isV2 ? " / " : "/",
11267
11350
  formatCount(contextWindow),
11268
11351
  " context budget"
11269
11352
  ] }) }),
11270
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIG3O33Pcjs.TooltipContent, { side: "top", align: "end", children: CONTEXT_BUDGET_HINT })
11353
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "end", children: CONTEXT_BUDGET_HINT })
11271
11354
  ] }) })
11272
11355
  ] });
11273
11356
  if (!hasAnyBreakdownRow(breakdown)) return inline;
@@ -11377,7 +11460,7 @@ function ChatComposer({
11377
11460
  const locked = lock != null;
11378
11461
  const selected = _nullishCoalesce(selectedContextItems, () => ( []));
11379
11462
  const memory = _nullishCoalesce(contextMemoryItems, () => ( []));
11380
- const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _246 => _246.entityTypes]);
11463
+ const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _243 => _243.entityTypes]);
11381
11464
  const iconByType = _react.useMemo.call(void 0, () => {
11382
11465
  const map = /* @__PURE__ */ new Map();
11383
11466
  for (const t of _nullishCoalesce(entityTypes, () => ( []))) map.set(t.type, t.icon);
@@ -11385,7 +11468,7 @@ function ChatComposer({
11385
11468
  }, [entityTypes]);
11386
11469
  const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
11387
11470
  const menu = menuItems && menuItems.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11388
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
11471
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
11389
11472
  {
11390
11473
  triggerAriaLabel: "Composer actions",
11391
11474
  side: "top",
@@ -11419,7 +11502,7 @@ function ChatComposer({
11419
11502
  sending,
11420
11503
  placeholder,
11421
11504
  disabled: locked,
11422
- disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _247 => _247.placeholder]),
11505
+ disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _244 => _244.placeholder]),
11423
11506
  previewText,
11424
11507
  fullWidth: true,
11425
11508
  className: "px-0",
@@ -11433,7 +11516,7 @@ function ChatComposer({
11433
11516
  startIcon: contextEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11434
11517
  ChatComposerPlusMenu,
11435
11518
  {
11436
- onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _248 => _248()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _249 => _249()]),
11519
+ onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _245 => _245()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _246 => _246()]),
11437
11520
  open: contextPickerOpen,
11438
11521
  disabled: attachmentsDisabled || locked,
11439
11522
  dropdown: contextPicker ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11442,8 +11525,8 @@ function ChatComposer({
11442
11525
  open: contextPickerOpen,
11443
11526
  config: contextPicker,
11444
11527
  selectedItems: selected,
11445
- onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _250 => _250(item)]),
11446
- onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _251 => _251()]),
11528
+ onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _247 => _247(item)]),
11529
+ onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _248 => _248()]),
11447
11530
  mentionQuery
11448
11531
  }
11449
11532
  ) : void 0
@@ -11615,10 +11698,10 @@ function useNavLinkViaRuntime({
11615
11698
  const { href: resolvedHref, isNewTab } = useNavLinkTarget(_nullishCoalesce(href, () => ( "")), targetPlatform, openIn);
11616
11699
  if (href == null) return null;
11617
11700
  const onClick = (e) => {
11618
- _optionalChain([onClickProp, 'optionalCall', _252 => _252(e)]);
11701
+ _optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
11619
11702
  if (e.defaultPrevented) return;
11620
11703
  const handled = _chunkW4VEDSAXcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
11621
- if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _253 => _253.closeChat])) panel.closeChat();
11704
+ if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
11622
11705
  };
11623
11706
  return { href: resolvedHref, ..._chunkDAKGX2WFcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
11624
11707
  }
@@ -11759,11 +11842,11 @@ var DEFAULT_CAPTIONS_PATH = "/api/captions";
11759
11842
  function getCaptionsUrl(entityType, entityId, srtContent, options) {
11760
11843
  if (!srtContent) return void 0;
11761
11844
  const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
11762
- const variant = _optionalChain([options, 'optionalAccess', _254 => _254.variant]) ? `&variant=${options.variant}` : "";
11845
+ const variant = _optionalChain([options, 'optionalAccess', _251 => _251.variant]) ? `&variant=${options.variant}` : "";
11763
11846
  return `${DEFAULT_CAPTIONS_PATH}/${entityType}/${entityId}?v=${hash}${variant}`;
11764
11847
  }
11765
11848
  function resolveCaptionsBase(endpoints) {
11766
- return _optionalChain([endpoints, 'optionalAccess', _255 => _255.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
11849
+ return _optionalChain([endpoints, 'optionalAccess', _252 => _252.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
11767
11850
  }
11768
11851
  function rebaseCaptionsUrl(endpoints, url) {
11769
11852
  if (!url || !url.startsWith(`${DEFAULT_CAPTIONS_PATH}/`)) return url;
@@ -11798,7 +11881,7 @@ function captionsEntityTypeForDocType(docType) {
11798
11881
  // src/components/features/use-captions.ts
11799
11882
 
11800
11883
  function useCaptions() {
11801
- const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _256 => _256.endpoints]), () => ( null));
11884
+ const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _253 => _253.endpoints]), () => ( null));
11802
11885
  return _react.useMemo.call(void 0,
11803
11886
  () => ({
11804
11887
  forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
@@ -12102,9 +12185,9 @@ function CardsStrip(props) {
12102
12185
  const p = hoverPointerRef.current;
12103
12186
  if (!p.inside) return;
12104
12187
  const el = typeof document !== "undefined" ? document.elementFromPoint(p.x, p.y) : null;
12105
- const cardEl = _optionalChain([el, 'optionalAccess', _257 => _257.closest, 'optionalCall', _258 => _258("[data-strip-card-key]")]);
12106
- const scoped = cardEl && _optionalChain([scrollerRef, 'access', _259 => _259.current, 'optionalAccess', _260 => _260.contains, 'call', _261 => _261(cardEl)]) ? cardEl : null;
12107
- const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _262 => _262.getAttribute, 'call', _263 => _263("data-strip-card-key")]), () => ( null));
12188
+ const cardEl = _optionalChain([el, 'optionalAccess', _254 => _254.closest, 'optionalCall', _255 => _255("[data-strip-card-key]")]);
12189
+ const scoped = cardEl && _optionalChain([scrollerRef, 'access', _256 => _256.current, 'optionalAccess', _257 => _257.contains, 'call', _258 => _258(cardEl)]) ? cardEl : null;
12190
+ const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _259 => _259.getAttribute, 'call', _260 => _260("data-strip-card-key")]), () => ( null));
12108
12191
  const current = activeKeyRef.current;
12109
12192
  if (key === current) return;
12110
12193
  if (current !== null) deactivate(current);
@@ -12142,7 +12225,7 @@ function CardsStrip(props) {
12142
12225
  }, [syncHoverToPointer]);
12143
12226
  const seamBuffer = _react.useCallback.call(void 0, () => {
12144
12227
  const half = singleCopyWidthRef.current;
12145
- const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _264 => _264.current, 'optionalAccess', _265 => _265.clientWidth]), () => ( 0));
12228
+ const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _261 => _261.current, 'optionalAccess', _262 => _262.clientWidth]), () => ( 0));
12146
12229
  return Math.max(0, Math.min(200, half / 4, half - viewport - TRACK_GAP_PX - 1));
12147
12230
  }, []);
12148
12231
  const mirror = _react.useCallback.call(void 0,
@@ -12166,7 +12249,7 @@ function CardsStrip(props) {
12166
12249
  const scroller = scrollerRef.current;
12167
12250
  if (scroller) scroller.scrollLeft = mirror(pos);
12168
12251
  },
12169
- readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _266 => _266.current, 'optionalAccess', _267 => _267.scrollLeft]), () => ( 0))),
12252
+ readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _263 => _263.current, 'optionalAccess', _264 => _264.scrollLeft]), () => ( 0))),
12170
12253
  onAfterFrame: syncHoverIfScrolled
12171
12254
  });
12172
12255
  const [mountedIdx, setMountedIdx] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
@@ -12214,11 +12297,11 @@ function CardsStrip(props) {
12214
12297
  fn = (el) => {
12215
12298
  if (!el) return void 0;
12216
12299
  cardElIdxRef.current.set(el, idx);
12217
- _optionalChain([cardObserverRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.observe, 'call', _270 => _270(el)]);
12300
+ _optionalChain([cardObserverRef, 'access', _265 => _265.current, 'optionalAccess', _266 => _266.observe, 'call', _267 => _267(el)]);
12218
12301
  return () => {
12219
12302
  cardElIdxRef.current.delete(el);
12220
12303
  cardElNearRef.current.delete(el);
12221
- _optionalChain([cardObserverRef, 'access', _271 => _271.current, 'optionalAccess', _272 => _272.unobserve, 'call', _273 => _273(el)]);
12304
+ _optionalChain([cardObserverRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.unobserve, 'call', _270 => _270(el)]);
12222
12305
  };
12223
12306
  };
12224
12307
  cardRefFns.set(idx, fn);
@@ -12237,7 +12320,7 @@ function CardsStrip(props) {
12237
12320
  const track = trackRef.current;
12238
12321
  if (!scroller || !track) return;
12239
12322
  const firstCard = track.firstElementChild;
12240
- const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _274 => _274.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
12323
+ const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _271 => _271.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
12241
12324
  chevronSuppressUntilRef.current = performance.now() + CHEVRON_SUPPRESS_MS;
12242
12325
  if (marqueeActiveRef.current) {
12243
12326
  glideBy((reverse ? -dir : dir) * step);
@@ -12318,7 +12401,7 @@ function CardsStrip(props) {
12318
12401
  {
12319
12402
  ref: (node) => {
12320
12403
  wrapperRef.current = node;
12321
- _optionalChain([rootRef, 'optionalCall', _275 => _275(node)]);
12404
+ _optionalChain([rootRef, 'optionalCall', _272 => _272(node)]);
12322
12405
  },
12323
12406
  className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
12324
12407
  children: [
@@ -12502,7 +12585,7 @@ function VideoBitesStrip({
12502
12585
  const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
12503
12586
  return filtered.sort(sortComparator);
12504
12587
  }, [bites, filterPublished, sortComparator]);
12505
- const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _276 => _276[0], 'optionalAccess', _277 => _277.url]) || null });
12588
+ const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _273 => _273[0], 'optionalAccess', _274 => _274.url]) || null });
12506
12589
  if (inScope) {
12507
12590
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12508
12591
  VideoBitesStripSkeleton,
@@ -12643,8 +12726,8 @@ function VideoBiteCard({
12643
12726
  const controlled = active !== void 0;
12644
12727
  const [selfActive, setSelfActive] = _react.useState.call(void 0, false);
12645
12728
  const isActive = controlled ? !!active : selfActive;
12646
- const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _278 => _278(key)]) : setSelfActive(true);
12647
- const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _279 => _279(key)]) : setSelfActive(false);
12729
+ const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _275 => _275(key)]) : setSelfActive(true);
12730
+ const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _276 => _276(key)]) : setSelfActive(false);
12648
12731
  const titleInputRef = _react.useRef.call(void 0, null);
12649
12732
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
12650
12733
  const el = titleInputRef.current;
@@ -12654,7 +12737,7 @@ function VideoBiteCard({
12654
12737
  });
12655
12738
  const navigate = () => {
12656
12739
  if (bite.onNavigate) bite.onNavigate();
12657
- else _optionalChain([onBiteNavigate, 'optionalCall', _280 => _280(bite, index)]);
12740
+ else _optionalChain([onBiteNavigate, 'optionalCall', _277 => _277(bite, index)]);
12658
12741
  };
12659
12742
  const handlePointerEnter = () => {
12660
12743
  if (!isTouch) activate();
@@ -12679,9 +12762,9 @@ function VideoBiteCard({
12679
12762
  placeholder: "Title (optional)",
12680
12763
  "aria-label": "Bite title",
12681
12764
  rows: 1,
12682
- onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _281 => _281(e.target.value)]),
12765
+ onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _278 => _278(e.target.value)]),
12683
12766
  ref: titleInputRef,
12684
- onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _282 => _282(e.target.value)]),
12767
+ onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _279 => _279(e.target.value)]),
12685
12768
  onClick: (e) => e.stopPropagation(),
12686
12769
  className: _chunk63A4GZMBcjs.cn.call(void 0,
12687
12770
  titleClass,
@@ -12758,7 +12841,7 @@ function VideoBiteCard({
12758
12841
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12759
12842
  "div",
12760
12843
  {
12761
- ref: (node) => _optionalChain([rootRef, 'optionalCall', _283 => _283(node)]),
12844
+ ref: (node) => _optionalChain([rootRef, 'optionalCall', _280 => _280(node)]),
12762
12845
  "aria-hidden": isClone || void 0,
12763
12846
  "data-strip-card-key": key,
12764
12847
  className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
@@ -12815,8 +12898,8 @@ function EntityVideoSection({
12815
12898
  const hasHighlight = !!highlightVideoUrl;
12816
12899
  const hasVideo = hasFullVideo || hasHighlight;
12817
12900
  const derivedCaptions = captionsEntity ? captions.forEntityId(captionsEntity.type, captionsEntity.id) : null;
12818
- const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _284 => _284.captionsUrl])));
12819
- const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _285 => _285.highlightCaptionsUrl])));
12901
+ const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _281 => _281.captionsUrl])));
12902
+ const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _282 => _282.highlightCaptionsUrl])));
12820
12903
  if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityVideoSectionSkeleton, { tabs: skeletonTabs });
12821
12904
  if (!hasVideo && !videoSummary && (!videoBites || videoBites.length === 0)) {
12822
12905
  return null;
@@ -12938,18 +13021,18 @@ function pick(...values) {
12938
13021
  return void 0;
12939
13022
  }
12940
13023
  function videoFromItem(item, chatRef) {
12941
- const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _286 => _286.metadata]), () => ( {}));
13024
+ const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _283 => _283.metadata]), () => ( {}));
12942
13025
  const out = {};
12943
- const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _287 => _287.custom_video_url]), _optionalChain([item, 'optionalAccess', _288 => _288.main_video_url]));
12944
- const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _289 => _289.youtube_url]), _optionalChain([item, 'optionalAccess', _290 => _290.testimonial_video_url]));
12945
- const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _291 => _291.highlight_video_url]));
13026
+ const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _284 => _284.custom_video_url]), _optionalChain([item, 'optionalAccess', _285 => _285.main_video_url]));
13027
+ const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _286 => _286.youtube_url]), _optionalChain([item, 'optionalAccess', _287 => _287.testimonial_video_url]));
13028
+ const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _288 => _288.highlight_video_url]));
12946
13029
  const videoPoster = pick(
12947
13030
  m.videoPoster,
12948
- _optionalChain([item, 'optionalAccess', _292 => _292.main_video_thumbnail]),
12949
- _optionalChain([item, 'optionalAccess', _293 => _293.highlight_video_thumbnail]),
12950
- _optionalChain([item, 'optionalAccess', _294 => _294.featured_image])
13031
+ _optionalChain([item, 'optionalAccess', _289 => _289.main_video_thumbnail]),
13032
+ _optionalChain([item, 'optionalAccess', _290 => _290.highlight_video_thumbnail]),
13033
+ _optionalChain([item, 'optionalAccess', _291 => _291.featured_image])
12951
13034
  );
12952
- const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _295 => _295.highlight_video_thumbnail]));
13035
+ const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _292 => _292.highlight_video_thumbnail]));
12953
13036
  if (videoUrl) out.videoUrl = videoUrl;
12954
13037
  if (youtubeUrl) out.youtubeUrl = youtubeUrl;
12955
13038
  if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
@@ -12989,11 +13072,11 @@ function ChatCardDisclosureButton({
12989
13072
  {
12990
13073
  label,
12991
13074
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
12992
- trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
13075
+ trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
12993
13076
  onClick: (e) => {
12994
13077
  e.preventDefault();
12995
13078
  e.stopPropagation();
12996
- _optionalChain([onToggle, 'optionalCall', _296 => _296()]);
13079
+ _optionalChain([onToggle, 'optionalCall', _293 => _293()]);
12997
13080
  },
12998
13081
  ariaExpanded: open,
12999
13082
  ariaLabel: title ? `${label}: ${title}` : label,
@@ -13003,7 +13086,7 @@ function ChatCardDisclosureButton({
13003
13086
  );
13004
13087
  }
13005
13088
  function DisclosurePanel({ open, children }) {
13006
- const { innerRef, containerStyle } = _chunk3B6ZE4EZcjs.useCollapsible.call(void 0, { expanded: open });
13089
+ const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded: open });
13007
13090
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
13008
13091
  }
13009
13092
  function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
@@ -13042,7 +13125,7 @@ function ChatCardDisclosureRow({
13042
13125
 
13043
13126
  function designDocPeople(doc) {
13044
13127
  const people = [];
13045
- if (_optionalChain([doc, 'access', _297 => _297.author, 'optionalAccess', _298 => _298.full_name]))
13128
+ if (_optionalChain([doc, 'access', _294 => _294.author, 'optionalAccess', _295 => _295.full_name]))
13046
13129
  people.push({
13047
13130
  key: `dri-${_nullishCoalesce(doc.author.id, () => ( doc.author.full_name))}`,
13048
13131
  name: doc.author.full_name,
@@ -13055,7 +13138,7 @@ function designDocPeople(doc) {
13055
13138
  return people;
13056
13139
  }
13057
13140
  function designDocMetaLine(doc) {
13058
- return [_optionalChain([doc, 'access', _299 => _299.author, 'optionalAccess', _300 => _300.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFMSAN6SRcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
13141
+ return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFMSAN6SRcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
13059
13142
  }
13060
13143
  var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
13061
13144
  var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
@@ -13324,8 +13407,8 @@ function getVendorLogo(vendor) {
13324
13407
  if (vendor.logo) {
13325
13408
  return fixSupabaseStorageUrl(vendor.logo);
13326
13409
  }
13327
- const logoMedia = _optionalChain([vendor, 'access', _301 => _301.vendor_media, 'optionalAccess', _302 => _302.find, 'call', _303 => _303((m) => m.media_type === "logo")]);
13328
- if (_optionalChain([logoMedia, 'optionalAccess', _304 => _304.media_url])) {
13410
+ const logoMedia = _optionalChain([vendor, 'access', _298 => _298.vendor_media, 'optionalAccess', _299 => _299.find, 'call', _300 => _300((m) => m.media_type === "logo")]);
13411
+ if (_optionalChain([logoMedia, 'optionalAccess', _301 => _301.media_url])) {
13329
13412
  return fixSupabaseStorageUrl(logoMedia.media_url);
13330
13413
  }
13331
13414
  return null;
@@ -13525,7 +13608,7 @@ function MingoInfoCard({
13525
13608
  }
13526
13609
  ),
13527
13610
  hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13528
- _chunkBIG3O33Pcjs.ActionsMenuDropdown,
13611
+ _chunkYJZ7R3W5cjs.ActionsMenuDropdown,
13529
13612
  {
13530
13613
  groups: menuGroups,
13531
13614
  triggerAriaLabel: menuAriaLabel,
@@ -13573,7 +13656,7 @@ function pickFetchedCardHref({
13573
13656
  itemHref,
13574
13657
  allowComposed
13575
13658
  }) {
13576
- if (_optionalChain([composed, 'optionalAccess', _305 => _305.hostOverride])) {
13659
+ if (_optionalChain([composed, 'optionalAccess', _302 => _302.hostOverride])) {
13577
13660
  return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
13578
13661
  }
13579
13662
  if (itemHref) return { source: "item", href: itemHref };
@@ -13680,7 +13763,7 @@ function resolveCardDestination({
13680
13763
  composeContentUrl,
13681
13764
  resolveHref = (href) => href
13682
13765
  }) {
13683
- const refPath = typeof _optionalChain([chatRef, 'access', _306 => _306.metadata, 'optionalAccess', _307 => _307.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
13766
+ const refPath = typeof _optionalChain([chatRef, 'access', _303 => _303.metadata, 'optionalAccess', _304 => _304.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
13684
13767
  const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
13685
13768
  const cta = resolveSourceRowCTA(
13686
13769
  {
@@ -13697,7 +13780,7 @@ function resolveCardDestination({
13697
13780
  const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
13698
13781
  const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
13699
13782
  if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
13700
- if (_optionalChain([entry, 'optionalAccess', _308 => _308.contentRefType]) && item) {
13783
+ if (_optionalChain([entry, 'optionalAccess', _305 => _305.contentRefType]) && item) {
13701
13784
  const choice = pickFetchedCardHref({
13702
13785
  composed: resolveFetchedCardHref({
13703
13786
  contentRefType: entry.contentRefType,
@@ -13705,7 +13788,7 @@ function resolveCardDestination({
13705
13788
  item,
13706
13789
  composeContentUrl
13707
13790
  }),
13708
- itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _309 => _309.fallbackHref, 'optionalCall', _310 => _310(item)]), () => ( null)),
13791
+ itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
13709
13792
  allowComposed: !entry.noComposedHref
13710
13793
  });
13711
13794
  const url = choice ? _nullishCoalesce(_chunk6GPMVHJNcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
@@ -13799,8 +13882,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
13799
13882
  if (href) {
13800
13883
  items.push({
13801
13884
  id: "open-details",
13802
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _311 => _311.label]), () => ( "Open Details")),
13803
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _312 => _312.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
13885
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _308 => _308.label]), () => ( "Open Details")),
13886
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _309 => _309.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
13804
13887
  // Main row → open the entity (same tab, soft Link nav).
13805
13888
  href,
13806
13889
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -13877,15 +13960,15 @@ function fetchedItemDisplayRef(item, chatRef) {
13877
13960
  }
13878
13961
  function fetchedFaqDisplayRef(item, chatRef) {
13879
13962
  const it = item;
13880
- const answer = typeof _optionalChain([it, 'optionalAccess', _313 => _313.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
13963
+ const answer = typeof _optionalChain([it, 'optionalAccess', _310 => _310.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
13881
13964
  return {
13882
13965
  type: "faq",
13883
13966
  id: chatRef.id,
13884
13967
  sourceRepo: chatRef.sourceRepo,
13885
- title: typeof _optionalChain([it, 'optionalAccess', _314 => _314.question]) === "string" && it.question ? it.question : chatRef.id,
13968
+ title: typeof _optionalChain([it, 'optionalAccess', _311 => _311.question]) === "string" && it.question ? it.question : chatRef.id,
13886
13969
  url: _nullishCoalesce(chatRef.url, () => ( null)),
13887
13970
  ...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
13888
- metadata: typeof _optionalChain([it, 'optionalAccess', _315 => _315.section]) === "string" && it.section ? { section: it.section } : {}
13971
+ metadata: typeof _optionalChain([it, 'optionalAccess', _312 => _312.section]) === "string" && it.section ? { section: it.section } : {}
13889
13972
  };
13890
13973
  }
13891
13974
  function HubspotTicketChatCard({
@@ -13893,8 +13976,8 @@ function HubspotTicketChatCard({
13893
13976
  isNewTab,
13894
13977
  discuss
13895
13978
  }) {
13896
- const status = typeof _optionalChain([chatRef, 'access', _316 => _316.metadata, 'optionalAccess', _317 => _317.status]) === "string" ? chatRef.metadata.status : void 0;
13897
- const statusLabel = typeof _optionalChain([chatRef, 'access', _318 => _318.metadata, 'optionalAccess', _319 => _319.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
13979
+ const status = typeof _optionalChain([chatRef, 'access', _313 => _313.metadata, 'optionalAccess', _314 => _314.status]) === "string" ? chatRef.metadata.status : void 0;
13980
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _315 => _315.metadata, 'optionalAccess', _316 => _316.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
13898
13981
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
13899
13982
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13900
13983
  MingoInfoCard,
@@ -13917,7 +14000,7 @@ function FaqChatCard({
13917
14000
  isNewTab,
13918
14001
  discuss
13919
14002
  }) {
13920
- const section = typeof _optionalChain([chatRef, 'access', _320 => _320.metadata, 'optionalAccess', _321 => _321.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
14003
+ const section = typeof _optionalChain([chatRef, 'access', _317 => _317.metadata, 'optionalAccess', _318 => _318.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
13921
14004
  const statusLabel = section && section.length > 0 ? section : "FAQ";
13922
14005
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13923
14006
  MingoInfoCard,
@@ -13937,7 +14020,7 @@ function SlackChatCard({
13937
14020
  isNewTab,
13938
14021
  discuss
13939
14022
  }) {
13940
- const channelName = typeof _optionalChain([chatRef, 'access', _322 => _322.metadata, 'optionalAccess', _323 => _323.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
14023
+ const channelName = typeof _optionalChain([chatRef, 'access', _319 => _319.metadata, 'optionalAccess', _320 => _320.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
13941
14024
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
13942
14025
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
13943
14026
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13980,7 +14063,7 @@ function TrustCenterChatCard({
13980
14063
  isNewTab,
13981
14064
  discuss
13982
14065
  }) {
13983
- const raw2 = _optionalChain([item, 'optionalAccess', _324 => _324.frameworks]);
14066
+ const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
13984
14067
  const frameworks = Array.isArray(raw2) ? raw2 : [];
13985
14068
  const summary = _chunkFMSAN6SRcjs.trustFrameworksSummary.call(void 0, frameworks);
13986
14069
  const leadFramework = frameworks[0];
@@ -14029,7 +14112,7 @@ function GenericFinancialChatCard({
14029
14112
  isNewTab,
14030
14113
  discuss
14031
14114
  }) {
14032
- const subtitle = typeof _optionalChain([chatRef, 'access', _325 => _325.metadata, 'optionalAccess', _326 => _326.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
14115
+ const subtitle = typeof _optionalChain([chatRef, 'access', _322 => _322.metadata, 'optionalAccess', _323 => _323.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
14033
14116
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14034
14117
  MingoInfoCard,
14035
14118
  {
@@ -14103,12 +14186,12 @@ function ProductReleaseChatCard({
14103
14186
  discuss
14104
14187
  }) {
14105
14188
  const releaseProps = buildProps(item);
14106
- const status = _optionalChain([item, 'optionalAccess', _327 => _327.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
14189
+ const status = _optionalChain([item, 'optionalAccess', _324 => _324.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
14107
14190
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14108
14191
  EntityMingoCard,
14109
14192
  {
14110
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _328 => _328.title]), () => ( "")),
14111
- description: _optionalChain([item, 'optionalAccess', _329 => _329.summary]) || releaseProps.formattedDate || void 0,
14193
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.title]), () => ( "")),
14194
+ description: _optionalChain([item, 'optionalAccess', _326 => _326.summary]) || releaseProps.formattedDate || void 0,
14112
14195
  cover: releaseProps.coverImage || void 0,
14113
14196
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
14114
14197
  status,
@@ -14125,17 +14208,17 @@ function CampaignChatCard({
14125
14208
  isNewTab,
14126
14209
  discuss
14127
14210
  }) {
14128
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _330 => _330.goals])) ? item.goals.length : 0;
14211
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
14129
14212
  const meta = [
14130
- _optionalChain([item, 'optionalAccess', _331 => _331.start_date]) ? _chunkFMSAN6SRcjs.formatDateShort.call(void 0, item.start_date) : null,
14213
+ _optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunkFMSAN6SRcjs.formatDateShort.call(void 0, item.start_date) : null,
14131
14214
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
14132
14215
  "Marketing campaign"
14133
14216
  ].filter(Boolean).join(" \xB7 ");
14134
14217
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14135
14218
  EntityMingoCard,
14136
14219
  {
14137
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _332 => _332.name]), () => ( "")),
14138
- description: meta || _optionalChain([item, 'optionalAccess', _333 => _333.description]) || void 0,
14220
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _329 => _329.name]), () => ( "")),
14221
+ description: meta || _optionalChain([item, 'optionalAccess', _330 => _330.description]) || void 0,
14139
14222
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
14140
14223
  chatRef,
14141
14224
  isNewTab,
@@ -14190,14 +14273,14 @@ function BlogChatCard({
14190
14273
  hasEmbeddedVideo,
14191
14274
  discuss
14192
14275
  }) {
14193
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _334 => _334.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _335 => _335.categories, 'access', _336 => _336.find, 'call', _337 => _337((c) => _optionalChain([c, 'optionalAccess', _338 => _338.name])), 'optionalAccess', _339 => _339.name]), () => ( void 0)) : void 0;
14276
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _331 => _331.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _332 => _332.categories, 'access', _333 => _333.find, 'call', _334 => _334((c) => _optionalChain([c, 'optionalAccess', _335 => _335.name])), 'optionalAccess', _336 => _336.name]), () => ( void 0)) : void 0;
14194
14277
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
14195
14278
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14196
14279
  EntityMingoCard,
14197
14280
  {
14198
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _340 => _340.title]), () => ( "")),
14199
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _341 => _341.summary]), () => ( void 0)),
14200
- cover: entityCover(_optionalChain([item, 'optionalAccess', _342 => _342.featured_image]), ogPlaceholder),
14281
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _337 => _337.title]), () => ( "")),
14282
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _338 => _338.summary]), () => ( void 0)),
14283
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _339 => _339.featured_image]), ogPlaceholder),
14201
14284
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
14202
14285
  status,
14203
14286
  chatRef,
@@ -14214,13 +14297,13 @@ function CaseStudyChatCard({
14214
14297
  ogPlaceholder,
14215
14298
  discuss
14216
14299
  }) {
14217
- const meta = [_optionalChain([item, 'optionalAccess', _343 => _343.msp, 'optionalAccess', _344 => _344.name]), _optionalChain([item, 'optionalAccess', _345 => _345.user, 'optionalAccess', _346 => _346.full_name])].filter(Boolean).join(" \xB7 ");
14300
+ const meta = [_optionalChain([item, 'optionalAccess', _340 => _340.msp, 'optionalAccess', _341 => _341.name]), _optionalChain([item, 'optionalAccess', _342 => _342.user, 'optionalAccess', _343 => _343.full_name])].filter(Boolean).join(" \xB7 ");
14218
14301
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14219
14302
  EntityMingoCard,
14220
14303
  {
14221
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _347 => _347.title]), () => ( "")),
14222
- description: _optionalChain([item, 'optionalAccess', _348 => _348.summary]) || meta || void 0,
14223
- cover: entityCover(_optionalChain([item, 'optionalAccess', _349 => _349.featured_image]), ogPlaceholder),
14304
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _344 => _344.title]), () => ( "")),
14305
+ description: _optionalChain([item, 'optionalAccess', _345 => _345.summary]) || meta || void 0,
14306
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _346 => _346.featured_image]), ogPlaceholder),
14224
14307
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
14225
14308
  status: { label: "Case study", variant: "grey" },
14226
14309
  chatRef,
@@ -14237,13 +14320,13 @@ function CustomerInterviewChatCard({
14237
14320
  ogPlaceholder,
14238
14321
  discuss
14239
14322
  }) {
14240
- const meta = [_optionalChain([item, 'optionalAccess', _350 => _350.user, 'optionalAccess', _351 => _351.full_name]), _optionalChain([item, 'optionalAccess', _352 => _352.msp, 'optionalAccess', _353 => _353.name])].filter(Boolean).join(" \xB7 ");
14323
+ const meta = [_optionalChain([item, 'optionalAccess', _347 => _347.user, 'optionalAccess', _348 => _348.full_name]), _optionalChain([item, 'optionalAccess', _349 => _349.msp, 'optionalAccess', _350 => _350.name])].filter(Boolean).join(" \xB7 ");
14241
14324
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14242
14325
  EntityMingoCard,
14243
14326
  {
14244
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _354 => _354.title]), () => ( "")),
14245
- description: _optionalChain([item, 'optionalAccess', _355 => _355.video_summary]) || meta || void 0,
14246
- cover: entityCover(_optionalChain([item, 'optionalAccess', _356 => _356.featured_image]), ogPlaceholder),
14327
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _351 => _351.title]), () => ( "")),
14328
+ description: _optionalChain([item, 'optionalAccess', _352 => _352.video_summary]) || meta || void 0,
14329
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _353 => _353.featured_image]), ogPlaceholder),
14247
14330
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
14248
14331
  status: { label: "Interview", variant: "grey" },
14249
14332
  chatRef,
@@ -14260,12 +14343,12 @@ function DesignDocChatCard({
14260
14343
  discuss
14261
14344
  }) {
14262
14345
  const displayRef = fetchedItemDisplayRef(item, chatRef);
14263
- const doc = _optionalChain([item, 'optionalAccess', _357 => _357.doc]);
14346
+ const doc = _optionalChain([item, 'optionalAccess', _354 => _354.doc]);
14264
14347
  const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
14265
14348
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14266
14349
  MingoInfoCard,
14267
14350
  {
14268
- title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _358 => _358.title]), () => ( displayRef.title)),
14351
+ title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _355 => _355.title]), () => ( displayRef.title)),
14269
14352
  description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
14270
14353
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
14271
14354
  status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
@@ -14282,13 +14365,13 @@ function InvestorUpdateChatCard({
14282
14365
  ogPlaceholder,
14283
14366
  discuss
14284
14367
  }) {
14285
- const title = _optionalChain([item, 'optionalAccess', _359 => _359.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.update_number]), () => ( "?"))}`;
14368
+ const title = _optionalChain([item, 'optionalAccess', _356 => _356.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _357 => _357.update_number]), () => ( "?"))}`;
14286
14369
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14287
14370
  EntityMingoCard,
14288
14371
  {
14289
14372
  title,
14290
- description: _optionalChain([item, 'optionalAccess', _361 => _361.strategic_update]) || _optionalChain([item, 'optionalAccess', _362 => _362.content]) || _chunkFMSAN6SRcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _363 => _363.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _364 => _364.period_end]), () => ( null))) || void 0,
14291
- cover: entityCover(_optionalChain([item, 'optionalAccess', _365 => _365.featured_image]), ogPlaceholder),
14373
+ description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) || _chunkFMSAN6SRcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _361 => _361.period_end]), () => ( null))) || void 0,
14374
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
14292
14375
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
14293
14376
  status: { label: "Investor update", variant: "grey" },
14294
14377
  chatRef,
@@ -14305,12 +14388,12 @@ function OnboardingGuideChatCard({
14305
14388
  ogPlaceholder,
14306
14389
  discuss
14307
14390
  }) {
14308
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _366 => _366.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _367 => _367.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _368 => _368.og_image_url]), ogPlaceholder)));
14391
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _363 => _363.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _364 => _364.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _365 => _365.og_image_url]), ogPlaceholder)));
14309
14392
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14310
14393
  EntityMingoCard,
14311
14394
  {
14312
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _369 => _369.title]), () => ( "")),
14313
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _370 => _370.summary]), () => ( _optionalChain([item, 'optionalAccess', _371 => _371.description]))), () => ( void 0)),
14395
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _366 => _366.title]), () => ( "")),
14396
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _367 => _367.summary]), () => ( _optionalChain([item, 'optionalAccess', _368 => _368.description]))), () => ( void 0)),
14314
14397
  cover,
14315
14398
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
14316
14399
  status: { label: "Guide", variant: "grey" },
@@ -14335,9 +14418,9 @@ function ProgramChatCard({
14335
14418
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14336
14419
  EntityMingoCard,
14337
14420
  {
14338
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _372 => _372.title]), () => ( "")),
14339
- description: meta || _optionalChain([item, 'optionalAccess', _373 => _373.description]) || void 0,
14340
- cover: entityCover(_optionalChain([item, 'optionalAccess', _374 => _374.cover_url]), ogPlaceholder),
14421
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _369 => _369.title]), () => ( "")),
14422
+ description: meta || _optionalChain([item, 'optionalAccess', _370 => _370.description]) || void 0,
14423
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _371 => _371.cover_url]), ogPlaceholder),
14341
14424
  fallbackIcon: icon,
14342
14425
  status: { label, variant: "grey" },
14343
14426
  chatRef,
@@ -14354,10 +14437,10 @@ function RoadmapChatCard({
14354
14437
  cardType,
14355
14438
  discuss
14356
14439
  }) {
14357
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _375 => _375.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
14358
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _376 => _376.customItemId]) != null;
14440
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
14441
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
14359
14442
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
14360
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _377 => _377.customItemId]), className: "size-6" }) : logoUrl ? (
14443
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _374 => _374.customItemId]), className: "size-6" }) : logoUrl ? (
14361
14444
  // Contained (not full-bleed) so the integration logo keeps its aspect
14362
14445
  // ratio inside the bordered icon box — matches RoadmapCard.
14363
14446
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -14378,10 +14461,10 @@ function RoadmapChatCard({
14378
14461
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14379
14462
  EntityMingoCard,
14380
14463
  {
14381
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _378 => _378.title]), () => ( "")),
14382
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _379 => _379.description]), () => ( void 0)),
14464
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _375 => _375.title]), () => ( "")),
14465
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _376 => _376.description]), () => ( void 0)),
14383
14466
  fallbackIcon: icon,
14384
- status: statusPill(_optionalChain([item, 'optionalAccess', _380 => _380.status])),
14467
+ status: statusPill(_optionalChain([item, 'optionalAccess', _377 => _377.status])),
14385
14468
  chatRef,
14386
14469
  isNewTab,
14387
14470
  discuss,
@@ -14397,7 +14480,7 @@ function refHydratedEntry(docType, label, renderRef) {
14397
14480
  bareInline: true,
14398
14481
  contentRefType: docType,
14399
14482
  noComposedHref: true,
14400
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _381 => _381.url]), () => ( null)),
14483
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _378 => _378.url]), () => ( null)),
14401
14484
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
14402
14485
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
14403
14486
  };
@@ -14429,7 +14512,7 @@ function financialRegistryEntries() {
14429
14512
  );
14430
14513
  }
14431
14514
  function refText(ref, key) {
14432
- const value = _optionalChain([ref, 'optionalAccess', _382 => _382[key]]);
14515
+ const value = _optionalChain([ref, 'optionalAccess', _379 => _379[key]]);
14433
14516
  return typeof value === "string" && value.length > 0 ? value : null;
14434
14517
  }
14435
14518
  function VendorGlyph({ title, logoUrl }) {
@@ -14475,7 +14558,7 @@ var REF_GLYPH_CARD_CONFIGS = {
14475
14558
  // rate. A glyph card; it opens the pricing page.
14476
14559
  openframe_price: { label: "OpenFrame price" },
14477
14560
  // A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
14478
- vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _383 => _383.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
14561
+ vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _380 => _380.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
14479
14562
  };
14480
14563
  function sourceGlyph(docType) {
14481
14564
  const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
@@ -14494,8 +14577,8 @@ function refGlyphRegistryEntries() {
14494
14577
  title: displayRef.title,
14495
14578
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
14496
14579
  cover: entityCover(
14497
- _optionalChain([displayRef, 'access', _384 => _384.metadata, 'optionalAccess', _385 => _385.videoPoster]),
14498
- _nullishCoalesce(_optionalChain([opts, 'access', _386 => _386.extras, 'optionalAccess', _387 => _387.buildOgPlaceholderUrl, 'optionalCall', _388 => _388(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
14580
+ _optionalChain([displayRef, 'access', _381 => _381.metadata, 'optionalAccess', _382 => _382.videoPoster]),
14581
+ _nullishCoalesce(_optionalChain([opts, 'access', _383 => _383.extras, 'optionalAccess', _384 => _384.buildOgPlaceholderUrl, 'optionalCall', _385 => _385(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
14499
14582
  ),
14500
14583
  fallbackIcon: glyph(displayRef),
14501
14584
  status: { label: cfg.label, variant: "grey" },
@@ -14510,9 +14593,9 @@ function refGlyphRegistryEntries() {
14510
14593
  }
14511
14594
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
14512
14595
  const it = item;
14513
- const title = typeof _optionalChain([it, 'optionalAccess', _389 => _389.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
14514
- const author = typeof _optionalChain([it, 'optionalAccess', _390 => _390.author, 'optionalAccess', _391 => _391.full_name]) === "string" ? it.author.full_name.trim() : "";
14515
- const summary = typeof _optionalChain([it, 'optionalAccess', _392 => _392.summary]) === "string" ? it.summary.trim() : "";
14596
+ const title = typeof _optionalChain([it, 'optionalAccess', _386 => _386.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
14597
+ const author = typeof _optionalChain([it, 'optionalAccess', _387 => _387.author, 'optionalAccess', _388 => _388.full_name]) === "string" ? it.author.full_name.trim() : "";
14598
+ const summary = typeof _optionalChain([it, 'optionalAccess', _389 => _389.summary]) === "string" ? it.summary.trim() : "";
14516
14599
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
14517
14600
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
14518
14601
  }
@@ -14575,7 +14658,7 @@ function programRegistryEntries() {
14575
14658
  discuss: opts.discuss,
14576
14659
  configKey: cfg.configKey,
14577
14660
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
14578
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _393 => _393.extras, 'optionalAccess', _394 => _394.buildOgPlaceholderUrl, 'optionalCall', _395 => _395(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _396 => _396.title]), () => ( "")))]), () => ( null))
14661
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _390 => _390.extras, 'optionalAccess', _391 => _391.buildOgPlaceholderUrl, 'optionalCall', _392 => _392(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _393 => _393.title]), () => ( "")))]), () => ( null))
14579
14662
  }
14580
14663
  )
14581
14664
  }));
@@ -14596,7 +14679,7 @@ var ROADMAP_CARD_CONFIGS = {
14596
14679
  // The card's destination IS the ClickUp deep link, derived from the
14597
14680
  // task id post-fetch (the refs frame used to carry it).
14598
14681
  noComposedHref: true,
14599
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _397 => _397.id]) != null ? clickupTaskUrl(String(item.id)) : null
14682
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _394 => _394.id]) != null ? clickupTaskUrl(String(item.id)) : null
14600
14683
  }
14601
14684
  };
14602
14685
  function roadmapRegistryEntries() {
@@ -14638,8 +14721,8 @@ var CHAT_CARD_REGISTRY = {
14638
14721
  DeletedDataCard,
14639
14722
  {
14640
14723
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
14641
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _398 => _398.metadata, 'optionalAccess', _399 => _399.entity_label]), () => ( null)),
14642
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _400 => _400.metadata, 'optionalAccess', _401 => _401.recovery_note]), () => ( null))
14724
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _395 => _395.metadata, 'optionalAccess', _396 => _396.entity_label]), () => ( null)),
14725
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _397 => _397.metadata, 'optionalAccess', _398 => _398.recovery_note]), () => ( null))
14643
14726
  }
14644
14727
  )
14645
14728
  },
@@ -14656,7 +14739,7 @@ var CHAT_CARD_REGISTRY = {
14656
14739
  bareInline: true,
14657
14740
  contentRefType: "faq",
14658
14741
  noComposedHref: true,
14659
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _402 => _402.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
14742
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _399 => _399.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
14660
14743
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
14661
14744
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
14662
14745
  },
@@ -14703,8 +14786,8 @@ var CHAT_CARD_REGISTRY = {
14703
14786
  chatRef,
14704
14787
  isNewTab: opts.isNewTab,
14705
14788
  discuss: opts.discuss,
14706
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _403 => _403.extras, 'optionalAccess', _404 => _404.buildOgPlaceholderUrl, 'optionalCall', _405 => _405(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _406 => _406.title]), () => ( "")))]), () => ( null)),
14707
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _407 => _407.metadata, 'optionalAccess', _408 => _408.hasEmbeddedVideo]) === true
14789
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _400 => _400.extras, 'optionalAccess', _401 => _401.buildOgPlaceholderUrl, 'optionalCall', _402 => _402(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _403 => _403.title]), () => ( "")))]), () => ( null)),
14790
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _404 => _404.metadata, 'optionalAccess', _405 => _405.hasEmbeddedVideo]) === true
14708
14791
  }
14709
14792
  )
14710
14793
  },
@@ -14721,7 +14804,7 @@ var CHAT_CARD_REGISTRY = {
14721
14804
  chatRef,
14722
14805
  isNewTab: opts.isNewTab,
14723
14806
  discuss: opts.discuss,
14724
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _409 => _409.extras, 'optionalAccess', _410 => _410.buildOgPlaceholderUrl, 'optionalCall', _411 => _411(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _412 => _412.title]), () => ( "")))]), () => ( null))
14807
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _406 => _406.extras, 'optionalAccess', _407 => _407.buildOgPlaceholderUrl, 'optionalCall', _408 => _408(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.title]), () => ( "")))]), () => ( null))
14725
14808
  }
14726
14809
  )
14727
14810
  },
@@ -14730,7 +14813,7 @@ var CHAT_CARD_REGISTRY = {
14730
14813
  contentRefType: "design_doc",
14731
14814
  bareInline: true,
14732
14815
  noComposedHref: true,
14733
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _413 => _413.url]), () => ( null)),
14816
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.url]), () => ( null)),
14734
14817
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
14735
14818
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
14736
14819
  },
@@ -14747,7 +14830,7 @@ var CHAT_CARD_REGISTRY = {
14747
14830
  chatRef,
14748
14831
  isNewTab: opts.isNewTab,
14749
14832
  discuss: opts.discuss,
14750
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _414 => _414.extras, 'optionalAccess', _415 => _415.buildOgPlaceholderUrl, 'optionalCall', _416 => _416(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _417 => _417.title]), () => ( "")))]), () => ( null))
14833
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _411 => _411.extras, 'optionalAccess', _412 => _412.buildOgPlaceholderUrl, 'optionalCall', _413 => _413(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _414 => _414.title]), () => ( "")))]), () => ( null))
14751
14834
  }
14752
14835
  )
14753
14836
  },
@@ -14758,7 +14841,7 @@ var CHAT_CARD_REGISTRY = {
14758
14841
  bareInline: true,
14759
14842
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.ProductReleaseCard, { loading: true, size: "sm" }),
14760
14843
  render: (item, chatRef, opts) => {
14761
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _418 => _418.extras, 'optionalAccess', _419 => _419.buildProductReleaseCardProps]), () => ( _chunkFMSAN6SRcjs.defaultBuildProductReleaseCardProps));
14844
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunkFMSAN6SRcjs.defaultBuildProductReleaseCardProps));
14762
14845
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14763
14846
  ProductReleaseChatCard,
14764
14847
  {
@@ -14785,7 +14868,7 @@ var CHAT_CARD_REGISTRY = {
14785
14868
  chatRef,
14786
14869
  isNewTab: opts.isNewTab,
14787
14870
  discuss: opts.discuss,
14788
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _420 => _420.extras, 'optionalAccess', _421 => _421.buildOgPlaceholderUrl, 'optionalCall', _422 => _422(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _423 => _423.title]), () => ( "")))]), () => ( null))
14871
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _417 => _417.extras, 'optionalAccess', _418 => _418.buildOgPlaceholderUrl, 'optionalCall', _419 => _419(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _420 => _420.title]), () => ( "")))]), () => ( null))
14789
14872
  }
14790
14873
  )
14791
14874
  },
@@ -14804,7 +14887,7 @@ var CHAT_CARD_REGISTRY = {
14804
14887
  chatRef,
14805
14888
  isNewTab: opts.isNewTab,
14806
14889
  discuss: opts.discuss,
14807
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _424 => _424.extras, 'optionalAccess', _425 => _425.buildOgPlaceholderUrl, 'optionalCall', _426 => _426(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _427 => _427.title]), () => ( "")))]), () => ( null))
14890
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _421 => _421.extras, 'optionalAccess', _422 => _422.buildOgPlaceholderUrl, 'optionalCall', _423 => _423(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.title]), () => ( "")))]), () => ( null))
14808
14891
  }
14809
14892
  )
14810
14893
  },
@@ -14815,13 +14898,13 @@ var CHAT_CARD_REGISTRY = {
14815
14898
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
14816
14899
  // No public viewer — synthesize the hub-internal admin URL post-fetch
14817
14900
  // so the wrapper + isNewTab computation see the actual destination.
14818
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _428 => _428.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
14901
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _425 => _425.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
14819
14902
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
14820
14903
  },
14821
14904
  ...roadmapRegistryEntries()
14822
14905
  };
14823
14906
  function chatCardLabel(docType) {
14824
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _429 => _429[docType], 'optionalAccess', _430 => _430.label]);
14907
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _426 => _426[docType], 'optionalAccess', _427 => _427.label]);
14825
14908
  }
14826
14909
  function ChatCardNavWrap({
14827
14910
  href,
@@ -14837,13 +14920,13 @@ function ChatCardNavWrap({
14837
14920
  if (!href) return;
14838
14921
  const targetEl = e.target;
14839
14922
  const host = e.currentTarget;
14840
- if (!_optionalChain([host, 'optionalAccess', _431 => _431.contains, 'call', _432 => _432(targetEl)])) return;
14841
- if (_optionalChain([targetEl, 'optionalAccess', _433 => _433.closest, 'optionalCall', _434 => _434("button")])) return;
14842
- if (!_optionalChain([targetEl, 'optionalAccess', _435 => _435.closest, 'optionalCall', _436 => _436("a")])) return;
14923
+ if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
14924
+ if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
14925
+ if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
14843
14926
  const handled = _chunkW4VEDSAXcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
14844
14927
  if (!handled) return;
14845
14928
  e.stopPropagation();
14846
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _437 => _437.closeChat])) panel.closeChat();
14929
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
14847
14930
  };
14848
14931
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
14849
14932
  }
@@ -14868,7 +14951,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
14868
14951
  const entry = CHAT_CARD_REGISTRY[chatRef.type];
14869
14952
  const fetchEntry = entry && entry.contentRefType ? entry : null;
14870
14953
  const { item, isLoading, isError, isFetched } = useChatCardItem(
14871
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _438 => _438.contentRefType]), () => ( "")),
14954
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _435 => _435.contentRefType]), () => ( "")),
14872
14955
  fetchEntry ? chatRef.id : ""
14873
14956
  );
14874
14957
  if (!entry) return null;
@@ -14895,7 +14978,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
14895
14978
  const discussFn = useDisplay ? onDisplay : onDiscuss;
14896
14979
  const discuss = discussFn ? {
14897
14980
  label: useDisplay ? "Display" : "Ask Mingo",
14898
- icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "size-5" }),
14981
+ icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-5" }),
14899
14982
  run: () => discussFn(finalChatRef)
14900
14983
  } : void 0;
14901
14984
  const renderOpts = {
@@ -14903,7 +14986,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
14903
14986
  isNewTab,
14904
14987
  discuss
14905
14988
  };
14906
- const path = typeof _optionalChain([finalChatRef, 'access', _439 => _439.metadata, 'optionalAccess', _440 => _440.path]) === "string" ? finalChatRef.metadata.path : null;
14989
+ const path = typeof _optionalChain([finalChatRef, 'access', _436 => _436.metadata, 'optionalAccess', _437 => _437.path]) === "string" ? finalChatRef.metadata.path : null;
14907
14990
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14908
14991
  ChatCardNavWrap,
14909
14992
  {
@@ -14935,7 +15018,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
14935
15018
  }
14936
15019
  if (isLoading) {
14937
15020
  return finish(
14938
- _nullishCoalesce(_optionalChain([fetchEntry, 'access', _441 => _441.skeleton, 'optionalCall', _442 => _442()]), () => ( null)),
15021
+ _nullishCoalesce(_optionalChain([fetchEntry, 'access', _438 => _438.skeleton, 'optionalCall', _439 => _439()]), () => ( null)),
14939
15022
  entry.disclosure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardDisclosureButton, { kind: entry.disclosure, loading: true }) : void 0,
14940
15023
  true
14941
15024
  );
@@ -14949,7 +15032,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
14949
15032
  }
14950
15033
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
14951
15034
  }
14952
- const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _443 => _443(item, finalChatRef), 'optionalAccess', _444 => _444.kind])));
15035
+ const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _440 => _440(item, finalChatRef), 'optionalAccess', _441 => _441.kind])));
14953
15036
  if (kind) {
14954
15037
  const content = CHAT_CARD_DISCLOSURES[kind].fromItem(item, finalChatRef);
14955
15038
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15220,7 +15303,7 @@ function useChunkCatchup({
15220
15303
  if (catchupRun.current === run) {
15221
15304
  if (currentDialogId !== dialogIdRef.current) {
15222
15305
  catchupRun.current = null;
15223
- if (_optionalChain([pendingCatchupRef, 'access', _445 => _445.current, 'optionalAccess', _446 => _446.dialogId]) === currentDialogId) {
15306
+ if (_optionalChain([pendingCatchupRef, 'access', _442 => _442.current, 'optionalAccess', _443 => _443.dialogId]) === currentDialogId) {
15224
15307
  pendingCatchupRef.current = null;
15225
15308
  }
15226
15309
  } else {
@@ -15231,7 +15314,7 @@ function useChunkCatchup({
15231
15314
  if (pending.dialogId === currentDialogId) {
15232
15315
  rearmForQueuedCatchup();
15233
15316
  try {
15234
- await _optionalChain([catchUpChunksRef, 'access', _447 => _447.current, 'optionalCall', _448 => _448(pending.fromSequenceId)]);
15317
+ await _optionalChain([catchUpChunksRef, 'access', _444 => _444.current, 'optionalCall', _445 => _445(pending.fromSequenceId)]);
15235
15318
  } catch (rerunError) {
15236
15319
  console.error("Queued catch-up re-run failed:", rerunError);
15237
15320
  }
@@ -15382,20 +15465,20 @@ function useNatsDialogSubscription({
15382
15465
  const tearDownSubscriptions = () => {
15383
15466
  subscriptionRefs.current.forEach((sub) => {
15384
15467
  try {
15385
- _optionalChain([sub, 'optionalAccess', _449 => _449.unsubscribe, 'call', _450 => _450()]);
15468
+ _optionalChain([sub, 'optionalAccess', _446 => _446.unsubscribe, 'call', _447 => _447()]);
15386
15469
  } catch (e11) {
15387
15470
  }
15388
15471
  });
15389
15472
  subscriptionRefs.current.clear();
15390
15473
  lastSubscribedDialogIdRef.current = null;
15391
- _optionalChain([abortControllerRef, 'access', _451 => _451.current, 'optionalAccess', _452 => _452.abort, 'call', _453 => _453()]);
15474
+ _optionalChain([abortControllerRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.abort, 'call', _450 => _450()]);
15392
15475
  abortControllerRef.current = null;
15393
15476
  };
15394
15477
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
15395
15478
  const lifecycle = _chunkQDB2JO55cjs.startConnectionLifecycle.call(void 0, {
15396
15479
  conn: sharedConn,
15397
15480
  wsUrl,
15398
- onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _454 => _454.current, 'optionalCall', _455 => _455(ctx)]),
15481
+ onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _451 => _451.current, 'optionalCall', _452 => _452(ctx)]),
15399
15482
  backoff: reconnectionBackoffRef.current,
15400
15483
  getFreshUrl: () => getNatsWsUrlRef.current(),
15401
15484
  shouldRetryOn: isDisconnectStatus,
@@ -15406,7 +15489,7 @@ function useNatsDialogSubscription({
15406
15489
  setReconnectionCount((c) => c + 1);
15407
15490
  }
15408
15491
  hadConnectionBeforeRef.current = true;
15409
- _optionalChain([onConnectRef, 'access', _456 => _456.current, 'optionalCall', _457 => _457()]);
15492
+ _optionalChain([onConnectRef, 'access', _453 => _453.current, 'optionalCall', _454 => _454()]);
15410
15493
  }
15411
15494
  if (status === "error") {
15412
15495
  console.warn("[NATS] protocol error:", evt.data);
@@ -15416,7 +15499,7 @@ function useNatsDialogSubscription({
15416
15499
  setIsConnected(false);
15417
15500
  setIsSubscribed(false);
15418
15501
  tearDownSubscriptions();
15419
- _optionalChain([onDisconnectRef, 'access', _458 => _458.current, 'optionalCall', _459 => _459()]);
15502
+ _optionalChain([onDisconnectRef, 'access', _455 => _455.current, 'optionalCall', _456 => _456()]);
15420
15503
  }
15421
15504
  }
15422
15505
  });
@@ -15447,13 +15530,13 @@ function useNatsDialogSubscription({
15447
15530
  setIsSubscribed(false);
15448
15531
  subscriptionRefs.current.forEach((sub) => {
15449
15532
  try {
15450
- _optionalChain([sub, 'optionalAccess', _460 => _460.unsubscribe, 'call', _461 => _461()]);
15533
+ _optionalChain([sub, 'optionalAccess', _457 => _457.unsubscribe, 'call', _458 => _458()]);
15451
15534
  } catch (e12) {
15452
15535
  }
15453
15536
  });
15454
15537
  subscriptionRefs.current.clear();
15455
15538
  lastSubscribedDialogIdRef.current = null;
15456
- _optionalChain([abortControllerRef, 'access', _462 => _462.current, 'optionalAccess', _463 => _463.abort, 'call', _464 => _464()]);
15539
+ _optionalChain([abortControllerRef, 'access', _459 => _459.current, 'optionalAccess', _460 => _460.abort, 'call', _461 => _461()]);
15457
15540
  abortControllerRef.current = null;
15458
15541
  }
15459
15542
  return void 0;
@@ -15465,12 +15548,12 @@ function useNatsDialogSubscription({
15465
15548
  if (subscriptionRefs.current.size > 0) {
15466
15549
  subscriptionRefs.current.forEach((sub) => {
15467
15550
  try {
15468
- _optionalChain([sub, 'optionalAccess', _465 => _465.unsubscribe, 'call', _466 => _466()]);
15551
+ _optionalChain([sub, 'optionalAccess', _462 => _462.unsubscribe, 'call', _463 => _463()]);
15469
15552
  } catch (e13) {
15470
15553
  }
15471
15554
  });
15472
15555
  subscriptionRefs.current.clear();
15473
- _optionalChain([abortControllerRef, 'access', _467 => _467.current, 'optionalAccess', _468 => _468.abort, 'call', _469 => _469()]);
15556
+ _optionalChain([abortControllerRef, 'access', _464 => _464.current, 'optionalAccess', _465 => _465.abort, 'call', _466 => _466()]);
15474
15557
  }
15475
15558
  abortControllerRef.current = new AbortController();
15476
15559
  const abort = abortControllerRef.current;
@@ -15500,7 +15583,7 @@ function useNatsDialogSubscription({
15500
15583
  });
15501
15584
  lastSubscribedDialogIdRef.current = dialogId;
15502
15585
  setIsSubscribed(true);
15503
- _optionalChain([onSubscribedRef, 'access', _470 => _470.current, 'optionalCall', _471 => _471()]);
15586
+ _optionalChain([onSubscribedRef, 'access', _467 => _467.current, 'optionalCall', _468 => _468()]);
15504
15587
  };
15505
15588
  if (isConnectedRef.current) {
15506
15589
  createSubscriptions();
@@ -15511,7 +15594,7 @@ function useNatsDialogSubscription({
15511
15594
  abort.abort();
15512
15595
  subscriptions.forEach((sub) => {
15513
15596
  try {
15514
- _optionalChain([sub, 'optionalAccess', _472 => _472.unsubscribe, 'call', _473 => _473()]);
15597
+ _optionalChain([sub, 'optionalAccess', _469 => _469.unsubscribe, 'call', _470 => _470()]);
15515
15598
  } catch (e15) {
15516
15599
  }
15517
15600
  });
@@ -15550,7 +15633,7 @@ function useNatsDialogSubscription({
15550
15633
  });
15551
15634
  lastSubscribedDialogIdRef.current = currentDialogId;
15552
15635
  setIsSubscribed(true);
15553
- _optionalChain([onSubscribedRef, 'access', _474 => _474.current, 'optionalCall', _475 => _475()]);
15636
+ _optionalChain([onSubscribedRef, 'access', _471 => _471.current, 'optionalCall', _472 => _472()]);
15554
15637
  } else if (subscriptionRefs.current.size > 0) {
15555
15638
  setIsSubscribed(true);
15556
15639
  }
@@ -15558,10 +15641,10 @@ function useNatsDialogSubscription({
15558
15641
  return { isConnected, isSubscribed, reconnectionCount };
15559
15642
  }
15560
15643
  function buildNatsWsUrl(apiBaseUrl, options) {
15561
- const path = _optionalChain([options, 'optionalAccess', _476 => _476.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
15644
+ const path = _optionalChain([options, 'optionalAccess', _473 => _473.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
15562
15645
  const u = new URL(path, apiBaseUrl);
15563
15646
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
15564
- if (_optionalChain([options, 'optionalAccess', _477 => _477.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _478 => _478.token])) {
15647
+ if (_optionalChain([options, 'optionalAccess', _474 => _474.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _475 => _475.token])) {
15565
15648
  u.searchParams.set("authorization", options.token);
15566
15649
  }
15567
15650
  return u.toString();
@@ -15579,7 +15662,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
15579
15662
  const data = await res.json();
15580
15663
  return _nullishCoalesce(data.commands, () => ( []));
15581
15664
  } catch (err) {
15582
- if (_optionalChain([err, 'optionalAccess', _479 => _479.name]) === "AbortError") throw err;
15665
+ if (_optionalChain([err, 'optionalAccess', _476 => _476.name]) === "AbortError") throw err;
15583
15666
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
15584
15667
  return [];
15585
15668
  }
@@ -15587,8 +15670,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
15587
15670
  var NO_COMMANDS = [];
15588
15671
  function useSlashCommands(prefix, commandsUrl) {
15589
15672
  const [answered, setAnswered] = _react.useState.call(void 0, null);
15590
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _480 => _480.prefix]) === prefix ? answered.commands : NO_COMMANDS;
15591
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _481 => _481.prefix]) !== prefix;
15673
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _477 => _477.prefix]) === prefix ? answered.commands : NO_COMMANDS;
15674
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _478 => _478.prefix]) !== prefix;
15592
15675
  _react.useEffect.call(void 0, () => {
15593
15676
  if (prefix == null) return void 0;
15594
15677
  let cancelled = false;
@@ -15598,7 +15681,7 @@ function useSlashCommands(prefix, commandsUrl) {
15598
15681
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
15599
15682
  if (!cancelled) setAnswered({ prefix, commands: next });
15600
15683
  } catch (err) {
15601
- if (!cancelled && _optionalChain([err, 'optionalAccess', _482 => _482.name]) !== "AbortError") {
15684
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _479 => _479.name]) !== "AbortError") {
15602
15685
  console.warn("[use-slash-commands] fetch failed:", err);
15603
15686
  setAnswered({ prefix, commands: NO_COMMANDS });
15604
15687
  }
@@ -15621,7 +15704,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
15621
15704
  const query = _reactquery.useQuery.call(void 0, {
15622
15705
  queryKey: ["chat-slash-commands", commandsUrl],
15623
15706
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
15624
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _483 => _483.enabled]), () => ( true)),
15707
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.enabled]), () => ( true)),
15625
15708
  staleTime: Infinity,
15626
15709
  gcTime: Infinity,
15627
15710
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -15660,24 +15743,30 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
15660
15743
  }
15661
15744
  const data = await res.json();
15662
15745
  return {
15663
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _484 => _484.name]), () => ( null)),
15664
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _485 => _485.icon]), () => ( null)),
15665
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _486 => _486.greeting]), () => ( null)),
15666
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _487 => _487.enabledRagTableIds]), () => ( [])),
15667
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _488 => _488.quickActions]), () => ( [])),
15668
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _489 => _489.suggestedQueries]), () => ( []))
15746
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _481 => _481.name]), () => ( null)),
15747
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _482 => _482.icon]), () => ( null)),
15748
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _483 => _483.greeting]), () => ( null)),
15749
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _484 => _484.enabledRagTableIds]), () => ( [])),
15750
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _485 => _485.quickActions]), () => ( [])),
15751
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _486 => _486.suggestedQueries]), () => ( []))
15669
15752
  };
15670
15753
  } catch (err) {
15671
- if (_optionalChain([err, 'optionalAccess', _490 => _490.name]) === "AbortError") throw err;
15754
+ if (_optionalChain([err, 'optionalAccess', _487 => _487.name]) === "AbortError") throw err;
15672
15755
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
15673
15756
  return EMPTY_STATE_FALLBACK;
15674
15757
  }
15675
15758
  }
15759
+ function emptyStateUrlForTopic(emptyStateUrl, topic) {
15760
+ if (!topic) return emptyStateUrl;
15761
+ return `${emptyStateUrl}${emptyStateUrl.includes("?") ? "&" : "?"}${new URLSearchParams({ topic }).toString()}`;
15762
+ }
15676
15763
  function useEmptyStateConfig(emptyStateUrl, options) {
15677
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _491 => _491.enabled]), () => ( true))) && !!emptyStateUrl;
15764
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _488 => _488.enabled]), () => ( true))) && !!emptyStateUrl;
15765
+ const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
15766
+ const url = emptyStateUrl ? emptyStateUrlForTopic(emptyStateUrl, topic) : void 0;
15678
15767
  const query = _reactquery.useQuery.call(void 0, {
15679
- queryKey: ["chat-empty-state", emptyStateUrl],
15680
- queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
15768
+ queryKey: ["chat-empty-state", url],
15769
+ queryFn: ({ signal }) => fetchEmptyStateConfig(signal, url),
15681
15770
  enabled,
15682
15771
  staleTime: Infinity,
15683
15772
  gcTime: Infinity,
@@ -15703,7 +15792,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
15703
15792
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
15704
15793
  function uploadWithProgress(url, file, token, onProgress, signal) {
15705
15794
  return new Promise((resolve, reject) => {
15706
- if (_optionalChain([signal, 'optionalAccess', _492 => _492.aborted])) {
15795
+ if (_optionalChain([signal, 'optionalAccess', _489 => _489.aborted])) {
15707
15796
  reject(new Error("Upload cancelled"));
15708
15797
  return;
15709
15798
  }
@@ -15745,7 +15834,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
15745
15834
  const handleSignalAbort = () => {
15746
15835
  xhr.abort();
15747
15836
  };
15748
- _optionalChain([signal, 'optionalAccess', _493 => _493.addEventListener, 'call', _494 => _494("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
15837
+ _optionalChain([signal, 'optionalAccess', _490 => _490.addEventListener, 'call', _491 => _491("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
15749
15838
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
15750
15839
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
15751
15840
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -15789,10 +15878,10 @@ function useChatAttachments() {
15789
15878
  try {
15790
15879
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
15791
15880
  } catch (err) {
15792
- if (_optionalChain([ctrl, 'optionalAccess', _495 => _495.signal, 'access', _496 => _496.aborted])) return;
15881
+ if (_optionalChain([ctrl, 'optionalAccess', _492 => _492.signal, 'access', _493 => _493.aborted])) return;
15793
15882
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
15794
15883
  }
15795
- if (_optionalChain([ctrl, 'optionalAccess', _497 => _497.signal, 'access', _498 => _498.aborted])) return;
15884
+ if (_optionalChain([ctrl, 'optionalAccess', _494 => _494.signal, 'access', _495 => _495.aborted])) return;
15796
15885
  if (!sniffed) {
15797
15886
  throw new Error("Unrecognized file format");
15798
15887
  }
@@ -15806,7 +15895,7 @@ function useChatAttachments() {
15806
15895
  const urlResp = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
15807
15896
  method: "POST",
15808
15897
  headers: { "Content-Type": "application/json" },
15809
- signal: _optionalChain([ctrl, 'optionalAccess', _499 => _499.signal]),
15898
+ signal: _optionalChain([ctrl, 'optionalAccess', _496 => _496.signal]),
15810
15899
  body: JSON.stringify({
15811
15900
  fileName: att.file.name,
15812
15901
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -15835,9 +15924,9 @@ function useChatAttachments() {
15835
15924
  (pct) => {
15836
15925
  updateOne(att.id, { progress: pct });
15837
15926
  },
15838
- _optionalChain([ctrl, 'optionalAccess', _500 => _500.signal])
15927
+ _optionalChain([ctrl, 'optionalAccess', _497 => _497.signal])
15839
15928
  );
15840
- if (_optionalChain([ctrl, 'optionalAccess', _501 => _501.signal, 'access', _502 => _502.aborted])) return;
15929
+ if (_optionalChain([ctrl, 'optionalAccess', _498 => _498.signal, 'access', _499 => _499.aborted])) return;
15841
15930
  updateOne(att.id, {
15842
15931
  status: "ready",
15843
15932
  progress: 100,
@@ -15845,7 +15934,7 @@ function useChatAttachments() {
15845
15934
  viewToken: mintData.viewToken
15846
15935
  });
15847
15936
  } catch (err) {
15848
- if (_optionalChain([ctrl, 'optionalAccess', _503 => _503.signal, 'access', _504 => _504.aborted])) return;
15937
+ if (_optionalChain([ctrl, 'optionalAccess', _500 => _500.signal, 'access', _501 => _501.aborted])) return;
15849
15938
  const message = err instanceof Error ? err.message : String(err);
15850
15939
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
15851
15940
  } finally {
@@ -15994,11 +16083,11 @@ var ANON_DEFAULTS = {
15994
16083
  function useResolveChatIdentity(enabled) {
15995
16084
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
15996
16085
  const url = runtime.endpoints.identityUrl;
15997
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _505 => _505.email]), () => ( null));
16086
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _502 => _502.email]), () => ( null));
15998
16087
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
15999
16088
  const [resolved, setResolved] = _react.useState.call(void 0, null);
16000
- const data = _optionalChain([resolved, 'optionalAccess', _506 => _506.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
16001
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _507 => _507.key]) !== requestKey;
16089
+ const data = _optionalChain([resolved, 'optionalAccess', _503 => _503.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
16090
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _504 => _504.key]) !== requestKey;
16002
16091
  _react.useEffect.call(void 0, () => {
16003
16092
  if (requestKey === null) return void 0;
16004
16093
  let cancelled = false;
@@ -16120,9 +16209,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
16120
16209
  role: "user",
16121
16210
  content: content.question,
16122
16211
  timestamp: new Date(at),
16123
- name: _optionalChain([user, 'optionalAccess', _508 => _508.name]),
16124
- avatar: _optionalChain([user, 'optionalAccess', _509 => _509.avatar]),
16125
- authorType: _optionalChain([user, 'optionalAccess', _510 => _510.authorType])
16212
+ name: _optionalChain([user, 'optionalAccess', _505 => _505.name]),
16213
+ avatar: _optionalChain([user, 'optionalAccess', _506 => _506.avatar]),
16214
+ authorType: _optionalChain([user, 'optionalAccess', _507 => _507.authorType])
16126
16215
  },
16127
16216
  {
16128
16217
  id: `${id}-answer`,
@@ -16133,10 +16222,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
16133
16222
  ],
16134
16223
  // A millisecond after the question, so the pair keeps its order.
16135
16224
  timestamp: new Date(at + 1),
16136
- name: _optionalChain([assistant, 'optionalAccess', _511 => _511.name]),
16137
- avatar: _optionalChain([assistant, 'optionalAccess', _512 => _512.avatar]),
16138
- authorType: _optionalChain([assistant, 'optionalAccess', _513 => _513.authorType]),
16139
- assistantType: _optionalChain([assistant, 'optionalAccess', _514 => _514.assistantType])
16225
+ name: _optionalChain([assistant, 'optionalAccess', _508 => _508.name]),
16226
+ avatar: _optionalChain([assistant, 'optionalAccess', _509 => _509.avatar]),
16227
+ authorType: _optionalChain([assistant, 'optionalAccess', _510 => _510.authorType]),
16228
+ assistantType: _optionalChain([assistant, 'optionalAccess', _511 => _511.assistantType])
16140
16229
  }
16141
16230
  ];
16142
16231
  }
@@ -16152,8 +16241,8 @@ function mergeByTime(thread, local) {
16152
16241
  const out = [];
16153
16242
  let next = 0;
16154
16243
  for (const message of thread) {
16155
- const at = _optionalChain([message, 'access', _515 => _515.timestamp, 'optionalAccess', _516 => _516.getTime, 'call', _517 => _517()]);
16156
- while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _518 => _518[next], 'access', _519 => _519.timestamp, 'optionalAccess', _520 => _520.getTime, 'call', _521 => _521()]), () => ( 0))) < at) {
16244
+ const at = _optionalChain([message, 'access', _512 => _512.timestamp, 'optionalAccess', _513 => _513.getTime, 'call', _514 => _514()]);
16245
+ while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _515 => _515[next], 'access', _516 => _516.timestamp, 'optionalAccess', _517 => _517.getTime, 'call', _518 => _518()]), () => ( 0))) < at) {
16157
16246
  out.push(local[next]);
16158
16247
  next += 1;
16159
16248
  }
@@ -16238,9 +16327,9 @@ function appendToTrailingAssistant(prev, segments) {
16238
16327
  for (const seg of segments) {
16239
16328
  const tail = merged[merged.length - 1];
16240
16329
  const key = upsertKey(seg);
16241
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _522 => _522.type]) === "text") {
16330
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _519 => _519.type]) === "text") {
16242
16331
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
16243
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _523 => _523.type]) === "thinking") {
16332
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _520 => _520.type]) === "thinking") {
16244
16333
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
16245
16334
  } else if (key) {
16246
16335
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -16281,7 +16370,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
16281
16370
  }
16282
16371
  if (s.type !== "approval_batch") return s;
16283
16372
  const isAnchor = s.data.approvalRequestId === requestId;
16284
- const hasRow = _optionalChain([s, 'access', _524 => _524.data, 'access', _525 => _525.toolCalls, 'optionalAccess', _526 => _526.some, 'call', _527 => _527((c) => c.toolExecutionRequestId === requestId)]);
16373
+ const hasRow = _optionalChain([s, 'access', _521 => _521.data, 'access', _522 => _522.toolCalls, 'optionalAccess', _523 => _523.some, 'call', _524 => _524((c) => c.toolExecutionRequestId === requestId)]);
16285
16374
  if (!isAnchor && !hasRow) return s;
16286
16375
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
16287
16376
  const nextExecutions = hasRow ? {
@@ -16303,8 +16392,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
16303
16392
  };
16304
16393
  }
16305
16394
  function nextBatchExecution(prevExec, toolData) {
16306
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _528 => _528.status]) === "done") return null;
16307
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _529 => _529.result]), success: _optionalChain([prevExec, 'optionalAccess', _530 => _530.success]) };
16395
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _525 => _525.status]) === "done") return null;
16396
+ return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _526 => _526.result]), success: _optionalChain([prevExec, 'optionalAccess', _527 => _527.success]) };
16308
16397
  }
16309
16398
  function withBatchExecution(seg, execId, state) {
16310
16399
  return {
@@ -16321,11 +16410,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
16321
16410
  }
16322
16411
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
16323
16412
  return mapSegments(prev, (s) => {
16324
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _531 => _531.data, 'access', _532 => _532.toolCalls, 'optionalAccess', _533 => _533.some, 'call', _534 => _534((c) => c.toolExecutionRequestId === rowRequestId)])) {
16413
+ if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _528 => _528.data, 'access', _529 => _529.toolCalls, 'optionalAccess', _530 => _530.some, 'call', _531 => _531((c) => c.toolExecutionRequestId === rowRequestId)])) {
16325
16414
  return s;
16326
16415
  }
16327
- const existing = _optionalChain([s, 'access', _535 => _535.data, 'access', _536 => _536.executions, 'optionalAccess', _537 => _537[rowRequestId]]);
16328
- if (_optionalChain([existing, 'optionalAccess', _538 => _538.status]) === "done") return s;
16416
+ const existing = _optionalChain([s, 'access', _532 => _532.data, 'access', _533 => _533.executions, 'optionalAccess', _534 => _534[rowRequestId]]);
16417
+ if (_optionalChain([existing, 'optionalAccess', _535 => _535.status]) === "done") return s;
16329
16418
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
16330
16419
  });
16331
16420
  }
@@ -16361,7 +16450,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
16361
16450
  for (let j = message.segments.length - 1; j >= 0; j--) {
16362
16451
  const seg = message.segments[j];
16363
16452
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
16364
- const prevExec = _optionalChain([seg, 'access', _539 => _539.data, 'access', _540 => _540.executions, 'optionalAccess', _541 => _541[execId]]);
16453
+ const prevExec = _optionalChain([seg, 'access', _536 => _536.data, 'access', _537 => _537.executions, 'optionalAccess', _538 => _538[execId]]);
16365
16454
  const nextExec = nextBatchExecution(prevExec, toolData);
16366
16455
  if (nextExec === null) return prev;
16367
16456
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -16534,9 +16623,9 @@ var MessageSegmentAccumulator = class {
16534
16623
  type: "tool_execution",
16535
16624
  data: {
16536
16625
  ...toolData,
16537
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _542 => _542.data, 'access', _543 => _543.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _544 => _544.toolTitle]))),
16538
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _545 => _545.data, 'access', _546 => _546.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _547 => _547.toolExplanation]))),
16539
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _548 => _548.parameters])
16626
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _539 => _539.data, 'access', _540 => _540.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _541 => _541.toolTitle]))),
16627
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _542 => _542.data, 'access', _543 => _543.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _544 => _544.toolExplanation]))),
16628
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _545 => _545.parameters])
16540
16629
  }
16541
16630
  };
16542
16631
  if (existingIndex !== -1) {
@@ -16560,7 +16649,7 @@ var MessageSegmentAccumulator = class {
16560
16649
  if (seg.type !== "approval_batch") return seg;
16561
16650
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
16562
16651
  if (!hasCall) return seg;
16563
- const prev = _optionalChain([seg, 'access', _549 => _549.data, 'access', _550 => _550.executions, 'optionalAccess', _551 => _551[execId]]);
16652
+ const prev = _optionalChain([seg, 'access', _546 => _546.data, 'access', _547 => _547.executions, 'optionalAccess', _548 => _548[execId]]);
16564
16653
  const next = nextBatchExecution(prev, toolData);
16565
16654
  matched = true;
16566
16655
  if (next === null) return seg;
@@ -16694,8 +16783,8 @@ var MessageSegmentAccumulator = class {
16694
16783
  requestId,
16695
16784
  {
16696
16785
  ...pendingApproval,
16697
- command: _optionalChain([pendingApproval, 'optionalAccess', _552 => _552.command]) || "",
16698
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _553 => _553.approvalType]) || approvalType
16786
+ command: _optionalChain([pendingApproval, 'optionalAccess', _549 => _549.command]) || "",
16787
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _550 => _550.approvalType]) || approvalType
16699
16788
  },
16700
16789
  status
16701
16790
  );
@@ -16720,9 +16809,9 @@ var MessageSegmentAccumulator = class {
16720
16809
  type: "escalation_offer",
16721
16810
  // The resolved chunk carries no text/origin — a redelivered offer must
16722
16811
  // not blank the card the PENDING chunk already painted.
16723
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _554 => _554.data, 'access', _555 => _555.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _556 => _556.data, 'access', _557 => _557.origin]))) },
16812
+ data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _551 => _551.data, 'access', _552 => _552.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _553 => _553.data, 'access', _554 => _554.origin]))) },
16724
16813
  status,
16725
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _558 => _558.resolvedByName]))),
16814
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _555 => _555.resolvedByName]))),
16726
16815
  onApprove: this.callbacks.onEscalationApprove,
16727
16816
  onReject: this.callbacks.onEscalationReject
16728
16817
  };
@@ -17044,7 +17133,7 @@ function createChatStreamReducer(options = {}) {
17044
17133
  let stateCache = null;
17045
17134
  function invalidate() {
17046
17135
  stateCache = null;
17047
- _optionalChain([onChange, 'optionalCall', _559 => _559()]);
17136
+ _optionalChain([onChange, 'optionalCall', _556 => _556()]);
17048
17137
  }
17049
17138
  function getState() {
17050
17139
  if (!stateCache) {
@@ -17060,7 +17149,7 @@ function createChatStreamReducer(options = {}) {
17060
17149
  return stateCache;
17061
17150
  }
17062
17151
  function emit(name, ...args) {
17063
- _optionalChain([onEffect, 'optionalCall', _560 => _560({ name, args })]);
17152
+ _optionalChain([onEffect, 'optionalCall', _557 => _557({ name, args })]);
17064
17153
  }
17065
17154
  function setMessagesInternal(next) {
17066
17155
  if (next !== messages) {
@@ -17103,12 +17192,12 @@ function createChatStreamReducer(options = {}) {
17103
17192
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
17104
17193
  }
17105
17194
  function applySegmentsToState(segments, meta) {
17106
- const seq = _optionalChain([meta, 'optionalAccess', _561 => _561.streamSeq]);
17107
- if (_optionalChain([meta, 'optionalAccess', _562 => _562.append]) && meta.isCompacting) {
17195
+ const seq = _optionalChain([meta, 'optionalAccess', _558 => _558.streamSeq]);
17196
+ if (_optionalChain([meta, 'optionalAccess', _559 => _559.append]) && meta.isCompacting) {
17108
17197
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
17109
17198
  return;
17110
17199
  }
17111
- if (_optionalChain([meta, 'optionalAccess', _563 => _563.append])) {
17200
+ if (_optionalChain([meta, 'optionalAccess', _560 => _560.append])) {
17112
17201
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
17113
17202
  return;
17114
17203
  }
@@ -17120,7 +17209,7 @@ function createChatStreamReducer(options = {}) {
17120
17209
  adoptTrailingAssistant = false;
17121
17210
  const last = messages[messages.length - 1];
17122
17211
  if (!last || last.role !== "assistant" || adoptTail) return;
17123
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _564 => _564.segments, 'optionalAccess', _565 => _565.length]), () => ( 0))) > 0 || last.content !== "";
17212
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _561 => _561.segments, 'optionalAccess', _562 => _562.length]), () => ( 0))) > 0 || last.content !== "";
17124
17213
  if (!hasContent) return;
17125
17214
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
17126
17215
  }
@@ -17336,16 +17425,16 @@ function createChatStreamReducer(options = {}) {
17336
17425
  const status = approvalStatuses[requestId] || "pending";
17337
17426
  if (!displayInline(approvalType)) {
17338
17427
  const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
17339
- const summary = required ? _chunk3B6ZE4EZcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
17428
+ const summary = required ? _chunkQTLWU6FYcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
17340
17429
  pendingEscalated.set(requestId, {
17341
17430
  command: summary,
17342
- explanation: _optionalChain([required, 'optionalAccess', _566 => _566.toolExplanation]),
17431
+ explanation: _optionalChain([required, 'optionalAccess', _563 => _563.toolExplanation]),
17343
17432
  approvalType,
17344
17433
  toolCalls
17345
17434
  });
17346
17435
  emit("onEscalatedApproval", requestId, {
17347
17436
  command: summary,
17348
- explanation: _optionalChain([required, 'optionalAccess', _567 => _567.toolExplanation]),
17437
+ explanation: _optionalChain([required, 'optionalAccess', _564 => _564.toolExplanation]),
17349
17438
  approvalType
17350
17439
  });
17351
17440
  break;
@@ -17369,7 +17458,7 @@ function createChatStreamReducer(options = {}) {
17369
17458
  if (!call.requiresApproval) continue;
17370
17459
  segments = accumulator.addApprovalRequest(
17371
17460
  requestId,
17372
- _chunk3B6ZE4EZcjs.getCommandText.call(void 0, call),
17461
+ _chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
17373
17462
  call.toolExplanation,
17374
17463
  approvalType,
17375
17464
  status,
@@ -17448,7 +17537,7 @@ function createChatStreamReducer(options = {}) {
17448
17537
  if (!call.requiresApproval) continue;
17449
17538
  segments = accumulator.addApprovalRequest(
17450
17539
  requestId,
17451
- _chunk3B6ZE4EZcjs.getCommandText.call(void 0, call),
17540
+ _chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
17452
17541
  call.toolExplanation,
17453
17542
  escalatedData.approvalType,
17454
17543
  status
@@ -17717,7 +17806,7 @@ function createChatStreamReducer(options = {}) {
17717
17806
  const resolveBatch = (status, confirm) => async () => {
17718
17807
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
17719
17808
  for (const id of ids) {
17720
- const ok = await _optionalChain([confirm, 'optionalCall', _568 => _568(id)]);
17809
+ const ok = await _optionalChain([confirm, 'optionalCall', _565 => _565(id)]);
17721
17810
  if (ok === false) {
17722
17811
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
17723
17812
  }
@@ -17855,8 +17944,8 @@ function createChatStreamReducer(options = {}) {
17855
17944
  }
17856
17945
  }
17857
17946
  }
17858
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _569 => _569.resumed]), () => ( messages.length > 0)));
17859
- if (_optionalChain([extras, 'optionalAccess', _570 => _570.agentBusy])) agentBusyState();
17947
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _566 => _566.resumed]), () => ( messages.length > 0)));
17948
+ if (_optionalChain([extras, 'optionalAccess', _567 => _567.agentBusy])) agentBusyState();
17860
17949
  invalidate();
17861
17950
  }
17862
17951
  return {
@@ -17941,7 +18030,7 @@ function createChatStreamReducer(options = {}) {
17941
18030
  },
17942
18031
  endSseTurn() {
17943
18032
  const last = messages[messages.length - 1];
17944
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _571 => _571.segments, 'optionalAccess', _572 => _572.length]), () => ( 0))) === 0 && last.content === "") {
18033
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _568 => _568.segments, 'optionalAccess', _569 => _569.length]), () => ( 0))) === 0 && last.content === "") {
17945
18034
  messages = messages.slice(0, -1);
17946
18035
  }
17947
18036
  sseCurrentText = "";
@@ -18094,10 +18183,10 @@ function createChatDialogStore(options = {}) {
18094
18183
  if (onEvict) {
18095
18184
  const sep = key.indexOf(KEY_SEP);
18096
18185
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
18097
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _573 => _573.state, 'access', _574 => _574.messages]), () => ( EMPTY_STATE.messages)),
18098
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _575 => _575.state, 'access', _576 => _576.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
18099
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _577 => _577.getLastAppliedSeq, 'call', _578 => _578()]), () => ( Number.NEGATIVE_INFINITY)),
18100
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _579 => _579.getPendingEchoes, 'call', _580 => _580()]), () => ( EMPTY_PENDING_ECHOES))
18186
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _570 => _570.state, 'access', _571 => _571.messages]), () => ( EMPTY_STATE.messages)),
18187
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _572 => _572.state, 'access', _573 => _573.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
18188
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _574 => _574.getLastAppliedSeq, 'call', _575 => _575()]), () => ( Number.NEGATIVE_INFINITY)),
18189
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _576 => _576.getPendingEchoes, 'call', _577 => _577()]), () => ( EMPTY_PENDING_ECHOES))
18101
18190
  });
18102
18191
  }
18103
18192
  }
@@ -18107,12 +18196,12 @@ function createChatDialogStore(options = {}) {
18107
18196
  const key = keyOf(dialogId, side);
18108
18197
  let reducer = reducers.get(key);
18109
18198
  if (!reducer) {
18110
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _581 => _581(dialogId, side)]), () => ( {}));
18199
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _578 => _578(dialogId, side)]), () => ( {}));
18111
18200
  const userOnChange = base.onChange;
18112
18201
  reducer = createChatStreamReducer({
18113
18202
  ...base,
18114
18203
  onChange: () => {
18115
- _optionalChain([userOnChange, 'optionalCall', _582 => _582()]);
18204
+ _optionalChain([userOnChange, 'optionalCall', _579 => _579()]);
18116
18205
  notify();
18117
18206
  }
18118
18207
  });
@@ -18157,7 +18246,7 @@ function createChatDialogStore(options = {}) {
18157
18246
  };
18158
18247
  }
18159
18248
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
18160
- return _nullishCoalesce(_optionalChain([reducers, 'access', _583 => _583.get, 'call', _584 => _584(keyOf(dialogId, side)), 'optionalAccess', _585 => _585.state]), () => ( EMPTY_STATE));
18249
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _580 => _580.get, 'call', _581 => _581(keyOf(dialogId, side)), 'optionalAccess', _582 => _582.state]), () => ( EMPTY_STATE));
18161
18250
  }
18162
18251
  function getServerSnapshot2() {
18163
18252
  return EMPTY_STATE;
@@ -18246,7 +18335,7 @@ function createDeltaBatcher({
18246
18335
  pending = [];
18247
18336
  const key = pendingKey;
18248
18337
  for (const delta of batch) applyOne(delta, key);
18249
- _optionalChain([onFlushed, 'optionalCall', _586 => _586(batch.length)]);
18338
+ _optionalChain([onFlushed, 'optionalCall', _583 => _583(batch.length)]);
18250
18339
  }
18251
18340
  function schedule() {
18252
18341
  if (raf !== null || timer !== null) return;
@@ -18270,7 +18359,7 @@ function createDeltaBatcher({
18270
18359
  }
18271
18360
  if (!isDeltaEvent(event)) return false;
18272
18361
  const tail = pending[pending.length - 1];
18273
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _587 => _587.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
18362
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _584 => _584.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
18274
18363
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
18275
18364
  pending[pending.length - 1] = {
18276
18365
  ...tail,
@@ -18302,7 +18391,7 @@ function useChatStreamReducer({
18302
18391
  side = DEFAULT_DIALOG_SIDE,
18303
18392
  createReducerOptions
18304
18393
  }) {
18305
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _588 => _588()]), () => ( {})));
18394
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _585 => _585()]), () => ( {})));
18306
18395
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
18307
18396
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
18308
18397
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -18347,7 +18436,7 @@ function buildConfirmToolBody(request) {
18347
18436
  async function readServerErrorMessage(response) {
18348
18437
  try {
18349
18438
  const body = await response.json();
18350
- if (typeof _optionalChain([body, 'optionalAccess', _589 => _589.error]) === "string" && body.error.length > 0) return body.error;
18439
+ if (typeof _optionalChain([body, 'optionalAccess', _586 => _586.error]) === "string" && body.error.length > 0) return body.error;
18351
18440
  } catch (e17) {
18352
18441
  }
18353
18442
  return null;
@@ -18510,7 +18599,7 @@ function useManagedDialogList({
18510
18599
  try {
18511
18600
  await deleteDialogCallback(id);
18512
18601
  removeLocal(id);
18513
- _optionalChain([onDialogRemovedRef, 'access', _590 => _590.current, 'optionalCall', _591 => _591(id, "deleted")]);
18602
+ _optionalChain([onDialogRemovedRef, 'access', _587 => _587.current, 'optionalCall', _588 => _588(id, "deleted")]);
18514
18603
  } catch (err) {
18515
18604
  console.error(`${logTag} deleteDialog failed:`, err);
18516
18605
  throw err;
@@ -18521,7 +18610,7 @@ function useManagedDialogList({
18521
18610
  const renameDialog = _react.useCallback.call(void 0,
18522
18611
  async (id, title) => {
18523
18612
  if (!renameDialogCallback) return;
18524
- const previous = _optionalChain([dialogsRef, 'access', _592 => _592.current, 'access', _593 => _593.find, 'call', _594 => _594((d) => d.id === id), 'optionalAccess', _595 => _595.title]);
18613
+ const previous = _optionalChain([dialogsRef, 'access', _589 => _589.current, 'access', _590 => _590.find, 'call', _591 => _591((d) => d.id === id), 'optionalAccess', _592 => _592.title]);
18525
18614
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
18526
18615
  try {
18527
18616
  await renameDialogCallback(id, title);
@@ -18540,7 +18629,7 @@ function useManagedDialogList({
18540
18629
  try {
18541
18630
  await archiveDialogCallback(id);
18542
18631
  removeLocal(id);
18543
- _optionalChain([onDialogRemovedRef, 'access', _596 => _596.current, 'optionalCall', _597 => _597(id, "archived")]);
18632
+ _optionalChain([onDialogRemovedRef, 'access', _593 => _593.current, 'optionalCall', _594 => _594(id, "archived")]);
18544
18633
  } catch (err) {
18545
18634
  console.error(`${logTag} archiveDialog failed:`, err);
18546
18635
  throw err;
@@ -18729,7 +18818,7 @@ var STORAGE_KEY = "conversation";
18729
18818
  var namespaceFor = (source) => {
18730
18819
  const base = `mingo-chat-${source}`;
18731
18820
  const auth = _chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, );
18732
- return _optionalChain([auth, 'optionalAccess', _598 => _598.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
18821
+ return _optionalChain([auth, 'optionalAccess', _595 => _595.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
18733
18822
  };
18734
18823
  function createChatConversationStorage(source) {
18735
18824
  return _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, {
@@ -18802,7 +18891,7 @@ function useChatHistoryHydration({
18802
18891
  if (cancelled) return;
18803
18892
  if (rows.length === 0) {
18804
18893
  const found = isRecord(body) ? body.found : void 0;
18805
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _599 => _599(conversationId)]);
18894
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _596 => _596(conversationId)]);
18806
18895
  return;
18807
18896
  }
18808
18897
  const hydrated = [];
@@ -18879,7 +18968,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
18879
18968
  const { active = true } = runtimeOptions;
18880
18969
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
18881
18970
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
18882
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _600 => _600.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
18971
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _597 => _597.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
18883
18972
  const sendMessageRef = _react.useRef.call(void 0,
18884
18973
  () => Promise.resolve(true)
18885
18974
  );
@@ -18915,7 +19004,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
18915
19004
  if (!restoredConversationRef.current) {
18916
19005
  restoredConversationRef.current = true;
18917
19006
  pruneStaleChatConversationStorage(source);
18918
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _601 => _601.load, 'call', _602 => _602(), 'optionalAccess', _603 => _603.conversationId]), () => ( null));
19007
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _598 => _598.load, 'call', _599 => _599(), 'optionalAccess', _600 => _600.conversationId]), () => ( null));
18919
19008
  }
18920
19009
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
18921
19010
  const commitConversationId = _react.useCallback.call(void 0,
@@ -19006,7 +19095,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19006
19095
  const abortControllerRef = _react.useRef.call(void 0, null);
19007
19096
  const switchConversation = _react.useCallback.call(void 0,
19008
19097
  (id) => {
19009
- _optionalChain([abortControllerRef, 'access', _604 => _604.current, 'optionalAccess', _605 => _605.abort, 'call', _606 => _606()]);
19098
+ _optionalChain([abortControllerRef, 'access', _601 => _601.current, 'optionalAccess', _602 => _602.abort, 'call', _603 => _603()]);
19010
19099
  flushDeltas();
19011
19100
  mutate((r) => r.reset());
19012
19101
  hydrationSendCountRef.current = 0;
@@ -19043,8 +19132,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19043
19132
  } = useManagedDialogList({
19044
19133
  autoLoad: active,
19045
19134
  fetchDialogs: fetchActiveDialogs,
19046
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _607 => _607.renameDialog]),
19047
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _608 => _608.archiveDialog]),
19135
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _604 => _604.renameDialog]),
19136
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _605 => _605.archiveDialog]),
19048
19137
  pageSize: CHAT_HISTORY_PAGE_SIZE,
19049
19138
  search: conversationsApi ? dialogSearch : void 0,
19050
19139
  logTag: "[useSseChatAdapter]",
@@ -19108,7 +19197,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19108
19197
  const serverMessage = await readServerErrorMessage(response);
19109
19198
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
19110
19199
  }
19111
- const reader = _optionalChain([response, 'access', _609 => _609.body, 'optionalAccess', _610 => _610.getReader, 'call', _611 => _611()]);
19200
+ const reader = _optionalChain([response, 'access', _606 => _606.body, 'optionalAccess', _607 => _607.getReader, 'call', _608 => _608()]);
19112
19201
  if (!reader) throw new Error("No response body");
19113
19202
  const frameDecoder = createSseFrameDecoder();
19114
19203
  let finished = false;
@@ -19137,7 +19226,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19137
19226
  }
19138
19227
  return true;
19139
19228
  } catch (err) {
19140
- if (_optionalChain([err, 'optionalAccess', _612 => _612.name]) === "AbortError" || ctrl.signal.aborted) {
19229
+ if (_optionalChain([err, 'optionalAccess', _609 => _609.name]) === "AbortError" || ctrl.signal.aborted) {
19141
19230
  return true;
19142
19231
  }
19143
19232
  flushDeltas();
@@ -19173,7 +19262,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19173
19262
  );
19174
19263
  sendMessageRef.current = sendMessage;
19175
19264
  const stopMessage = _react.useCallback.call(void 0, () => {
19176
- _optionalChain([abortControllerRef, 'access', _613 => _613.current, 'optionalAccess', _614 => _614.abort, 'call', _615 => _615()]);
19265
+ _optionalChain([abortControllerRef, 'access', _610 => _610.current, 'optionalAccess', _611 => _611.abort, 'call', _612 => _612()]);
19177
19266
  flushDeltas();
19178
19267
  mutate((r) => r.setPhase("idle"));
19179
19268
  }, [mutate, flushDeltas]);
@@ -19209,7 +19298,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19209
19298
  let sendIdx = -1;
19210
19299
  return state.messages.map((m) => {
19211
19300
  const segments = m.segments;
19212
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _616 => _616.filter, 'call', _617 => _617((s) => s.type === "text"), 'access', _618 => _618.map, 'call', _619 => _619((s) => s.text), 'access', _620 => _620.join, 'call', _621 => _621("")]), () => ( ""));
19301
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _613 => _613.filter, 'call', _614 => _614((s) => s.type === "text"), 'access', _615 => _615.map, 'call', _616 => _616((s) => s.text), 'access', _617 => _617.join, 'call', _618 => _618("")]), () => ( ""));
19213
19302
  let sources2;
19214
19303
  let scrollAnchor;
19215
19304
  if (m.role === "user" && !m.hidden) {
@@ -19218,7 +19307,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19218
19307
  if (m.role === "assistant") {
19219
19308
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
19220
19309
  sources2 = sourcesMap.get(lookupIdx);
19221
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _622 => _622.get, 'call', _623 => _623(lookupIdx), 'optionalAccess', _624 => _624.scrollAnchor]), () => ( void 0));
19310
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _619 => _619.get, 'call', _620 => _620(lookupIdx), 'optionalAccess', _621 => _621.scrollAnchor]), () => ( void 0));
19222
19311
  }
19223
19312
  return {
19224
19313
  id: m.id,
@@ -19245,7 +19334,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19245
19334
  );
19246
19335
  return;
19247
19336
  }
19248
- const refSlug = typeof _optionalChain([reference, 'access', _625 => _625.metadata, 'optionalAccess', _626 => _626.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
19337
+ const refSlug = typeof _optionalChain([reference, 'access', _622 => _622.metadata, 'optionalAccess', _623 => _623.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
19249
19338
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
19250
19339
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
19251
19340
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -19291,18 +19380,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
19291
19380
  /** True while the mount-time rebuild from the server transcript runs. */
19292
19381
  isHydratingHistory,
19293
19382
  /** Provider key for the lib's `<ModelDisplay>` icon. */
19294
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _627 => _627.provider]), () => ( null)),
19295
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _628 => _628.modelLabel]), () => ( null)),
19296
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _629 => _629.contextWindowMaxTokens]), () => ( null)),
19383
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _624 => _624.provider]), () => ( null)),
19384
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _625 => _625.modelLabel]), () => ( null)),
19385
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _626 => _626.contextWindowMaxTokens]), () => ( null)),
19297
19386
  /** Input tokens (known after server's message_start frame; null until). */
19298
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _630 => _630.inputTokens]), () => ( null)),
19387
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _627 => _627.inputTokens]), () => ( null)),
19299
19388
  /** Output tokens (known only after server's trailing usage frame). */
19300
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _631 => _631.outputTokens]), () => ( null)),
19389
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _628 => _628.outputTokens]), () => ( null)),
19301
19390
  /** Cache hit % (read / total-input × 100). null during streaming. */
19302
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _632 => _632.cacheHitRatePct]), () => ( null)),
19391
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _629 => _629.cacheHitRatePct]), () => ( null)),
19303
19392
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
19304
19393
  * token counts). null until the trailing usage frame lands. */
19305
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _633 => _633.breakdown]), () => ( null)),
19394
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _630 => _630.breakdown]), () => ( null)),
19306
19395
  // ─── Dialog management ───────────────────────────────────────────────
19307
19396
  // With `chatConversationsUrl` the server transcript store IS the dialog
19308
19397
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -19376,7 +19465,7 @@ function extractIncompleteMessageState(lastMessage) {
19376
19465
  }
19377
19466
  break;
19378
19467
  case "approval_batch": {
19379
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _634 => _634.data, 'access', _635 => _635.executions, 'optionalAccess', _636 => _636[c.toolExecutionRequestId], 'optionalAccess', _637 => _637.status]) === "done");
19468
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _631 => _631.data, 'access', _632 => _632.executions, 'optionalAccess', _633 => _633[c.toolExecutionRequestId], 'optionalAccess', _634 => _634.status]) === "done");
19380
19469
  if (segment.status !== "rejected" && !allDone) {
19381
19470
  hasIncompleteState = true;
19382
19471
  }
@@ -19440,11 +19529,11 @@ function extractIncompleteMessageState(lastMessage) {
19440
19529
  function extractIncompleteTailState(messages) {
19441
19530
  if (!messages || messages.length === 0) return void 0;
19442
19531
  let start = messages.length;
19443
- while (start > 0 && _optionalChain([messages, 'access', _638 => _638[start - 1], 'optionalAccess', _639 => _639.role]) === "assistant") start -= 1;
19532
+ while (start > 0 && _optionalChain([messages, 'access', _635 => _635[start - 1], 'optionalAccess', _636 => _636.role]) === "assistant") start -= 1;
19444
19533
  if (start === messages.length) return void 0;
19445
19534
  const segments = [];
19446
19535
  for (let i = start; i < messages.length; i += 1) {
19447
- const content = _optionalChain([messages, 'access', _640 => _640[i], 'optionalAccess', _641 => _641.content]);
19536
+ const content = _optionalChain([messages, 'access', _637 => _637[i], 'optionalAccess', _638 => _638.content]);
19448
19537
  if (Array.isArray(content)) segments.push(...content);
19449
19538
  }
19450
19539
  if (segments.length === 0) return void 0;
@@ -19457,15 +19546,15 @@ function extractIncompleteTailState(messages) {
19457
19546
 
19458
19547
  // src/components/chat/utils/process-historical-messages.ts
19459
19548
  function getOwnerDisplayName(owner) {
19460
- if (_optionalChain([owner, 'optionalAccess', _642 => _642.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN && owner.user) {
19549
+ if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN && owner.user) {
19461
19550
  const { firstName, lastName } = owner.user;
19462
19551
  const name = [firstName, lastName].filter(Boolean).join(" ");
19463
19552
  if (name) return name;
19464
19553
  }
19465
- return _optionalChain([owner, 'optionalAccess', _643 => _643.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
19554
+ return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
19466
19555
  }
19467
19556
  function getOwnerAvatar(owner) {
19468
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _644 => _644.user, 'optionalAccess', _645 => _645.image, 'optionalAccess', _646 => _646.imageUrl]), () => ( void 0));
19557
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _641 => _641.user, 'optionalAccess', _642 => _642.image, 'optionalAccess', _643 => _643.imageUrl]), () => ( void 0));
19469
19558
  }
19470
19559
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
19471
19560
  messageDataArray.forEach((data) => {
@@ -19657,7 +19746,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19657
19746
  event.offerId,
19658
19747
  event.text,
19659
19748
  event.origin,
19660
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _647 => _647[event.offerId]]), () => ( "pending"))
19749
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _644 => _644[event.offerId]]), () => ( "pending"))
19661
19750
  );
19662
19751
  break;
19663
19752
  case "ticket-escalated":
@@ -19691,7 +19780,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19691
19780
  );
19692
19781
  break;
19693
19782
  case "escalation-offer-resolved":
19694
- _optionalChain([offerResolutions, 'optionalAccess', _648 => _648.set, 'call', _649 => _649(event.offerId, {
19783
+ _optionalChain([offerResolutions, 'optionalAccess', _645 => _645.set, 'call', _646 => _646(event.offerId, {
19695
19784
  status: event.status,
19696
19785
  resolvedByName: event.resolvedByName
19697
19786
  })]);
@@ -19725,7 +19814,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19725
19814
  if (!call.requiresApproval) continue;
19726
19815
  accumulator.addApprovalRequest(
19727
19816
  event.requestId,
19728
- _chunk3B6ZE4EZcjs.getCommandText.call(void 0, call),
19817
+ _chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
19729
19818
  call.toolExplanation,
19730
19819
  approvalType,
19731
19820
  status,
@@ -19755,7 +19844,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19755
19844
  }
19756
19845
  }
19757
19846
  } else {
19758
- _optionalChain([escalatedApprovals, 'optionalAccess', _650 => _650.set, 'call', _651 => _651(event.requestId, {
19847
+ _optionalChain([escalatedApprovals, 'optionalAccess', _647 => _647.set, 'call', _648 => _648(event.requestId, {
19759
19848
  command: event.command || "",
19760
19849
  explanation: event.explanation,
19761
19850
  approvalType,
@@ -19770,8 +19859,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19770
19859
  const existingStatus = approvalStatuses[requestId];
19771
19860
  const status = existingStatus || event.status;
19772
19861
  const resolvedByName = event.resolvedByName;
19773
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _652 => _652.get, 'call', _653 => _653(requestId)]);
19774
- if (_optionalChain([escalatedData, 'optionalAccess', _654 => _654.toolCalls]) && escalatedData.toolCalls.length > 0) {
19862
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _649 => _649.get, 'call', _650 => _650(requestId)]);
19863
+ if (_optionalChain([escalatedData, 'optionalAccess', _651 => _651.toolCalls]) && escalatedData.toolCalls.length > 0) {
19775
19864
  if (batchApprovalsEnabled) {
19776
19865
  accumulator.addApprovalBatch(
19777
19866
  requestId,
@@ -19786,14 +19875,14 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19786
19875
  if (!call.requiresApproval) continue;
19787
19876
  accumulator.addApprovalRequest(
19788
19877
  requestId,
19789
- _chunk3B6ZE4EZcjs.getCommandText.call(void 0, call),
19878
+ _chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
19790
19879
  call.toolExplanation,
19791
19880
  escalatedData.approvalType,
19792
19881
  status
19793
19882
  );
19794
19883
  }
19795
19884
  }
19796
- _optionalChain([escalatedApprovals, 'optionalAccess', _655 => _655.delete, 'call', _656 => _656(requestId)]);
19885
+ _optionalChain([escalatedApprovals, 'optionalAccess', _652 => _652.delete, 'call', _653 => _653(requestId)]);
19797
19886
  break;
19798
19887
  }
19799
19888
  if (escalatedData) {
@@ -19802,7 +19891,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
19802
19891
  explanation: escalatedData.explanation,
19803
19892
  approvalType: escalatedData.approvalType
19804
19893
  });
19805
- _optionalChain([escalatedApprovals, 'optionalAccess', _657 => _657.delete, 'call', _658 => _658(requestId)]);
19894
+ _optionalChain([escalatedApprovals, 'optionalAccess', _654 => _654.delete, 'call', _655 => _655(requestId)]);
19806
19895
  }
19807
19896
  const before = accumulator.getSegments();
19808
19897
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -19894,14 +19983,14 @@ function processHistoricalMessages(messages, options = {}) {
19894
19983
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
19895
19984
  return;
19896
19985
  }
19897
- const isUserMessage = _optionalChain([msg, 'access', _659 => _659.owner, 'optionalAccess', _660 => _660.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _661 => _661.owner, 'optionalAccess', _662 => _662.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN;
19986
+ const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _658 => _658.owner, 'optionalAccess', _659 => _659.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN;
19898
19987
  if (isUserMessage) {
19899
19988
  flushAssistantMessage();
19900
- const userAuthorType = _optionalChain([msg, 'access', _663 => _663.owner, 'optionalAccess', _664 => _664.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
19989
+ const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
19901
19990
  messageDataArray.forEach((data) => {
19902
19991
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
19903
19992
  const rawContext = data.contextItems;
19904
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _665 => _665.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _666 => _666.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
19993
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _662 => _662.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _663 => _663.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
19905
19994
  processedMessages.push({
19906
19995
  id: msg.id,
19907
19996
  role: "user",
@@ -19948,7 +20037,7 @@ function processHistoricalMessages(messages, options = {}) {
19948
20037
  });
19949
20038
  const nextMsg = messages[index + 1];
19950
20039
  const isLastMessage = index === messages.length - 1;
19951
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _667 => _667.owner, 'optionalAccess', _668 => _668.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _669 => _669.owner, 'optionalAccess', _670 => _670.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN);
20040
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _666 => _666.owner, 'optionalAccess', _667 => _667.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN);
19952
20041
  if (isLastMessage || nextIsFromUser) {
19953
20042
  flushAssistantMessage();
19954
20043
  }
@@ -20332,7 +20421,7 @@ function useNatsChatAdapter(config, options = {}) {
20332
20421
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
20333
20422
  const sendMessage = _react.useCallback.call(void 0,
20334
20423
  async (text2, sendOptions) => {
20335
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _671 => _671.hidden]), () => ( false));
20424
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _668 => _668.hidden]), () => ( false));
20336
20425
  mutate((r) => r.pushOptimisticSend(text2, hidden));
20337
20426
  await publishUserMessage(text2, { hidden, dialogId });
20338
20427
  },
@@ -20425,11 +20514,11 @@ function useNatsChatAdapter(config, options = {}) {
20425
20514
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
20426
20515
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
20427
20516
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
20428
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _672 => _672.provider]), () => ( modelProvider)), () => ( null)),
20429
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _673 => _673.modelLabel]), () => ( modelLabel)), () => ( null)),
20430
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _674 => _674.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _675 => _675.contextWindowMaxTokens]))), () => ( null)),
20431
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _676 => _676.inputTokensSize]), () => ( null)),
20432
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _677 => _677.outputTokensSize]), () => ( null)),
20517
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _669 => _669.provider]), () => ( modelProvider)), () => ( null)),
20518
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _670 => _670.modelLabel]), () => ( modelLabel)), () => ( null)),
20519
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _671 => _671.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _672 => _672.contextWindowMaxTokens]))), () => ( null)),
20520
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _673 => _673.inputTokensSize]), () => ( null)),
20521
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _674 => _674.outputTokensSize]), () => ( null)),
20433
20522
  currentCacheHitRatePct: null,
20434
20523
  currentUsageBreakdown: null,
20435
20524
  // Dialog management
@@ -20551,7 +20640,7 @@ function useUnifiedChat(options) {
20551
20640
  []
20552
20641
  );
20553
20642
  const displayRefForward = _react.useCallback.call(void 0,
20554
- (ref) => _optionalChain([activeStateRef, 'access', _678 => _678.current, 'access', _679 => _679.displayRef, 'optionalCall', _680 => _680(ref)]),
20643
+ (ref) => _optionalChain([activeStateRef, 'access', _675 => _675.current, 'access', _676 => _676.displayRef, 'optionalCall', _677 => _677(ref)]),
20555
20644
  []
20556
20645
  );
20557
20646
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -20561,7 +20650,7 @@ function useUnifiedChat(options) {
20561
20650
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
20562
20651
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
20563
20652
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
20564
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _681 => _681.current, 'access', _682 => _682.setDialogScope, 'optionalCall', _683 => _683(scope)]), []);
20653
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _678 => _678.current, 'access', _679 => _679.setDialogScope, 'optionalCall', _680 => _680(scope)]), []);
20565
20654
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
20566
20655
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
20567
20656
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -21068,4 +21157,8 @@ function PanelResizeHandle({
21068
21157
 
21069
21158
 
21070
21159
 
21071
- exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; 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.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; 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.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; 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.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; 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.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; 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.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; 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.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; 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.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; 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.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; 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.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; 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.buildDiscussPrompt = buildDiscussPrompt; 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.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
21160
+
21161
+
21162
+
21163
+
21164
+ exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; 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.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; 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.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; 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.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; 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.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; 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.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; 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.PageTopicLabel = PageTopicLabel; exports.QUICK_ACTION_SET_SLOTS = QUICK_ACTION_SET_SLOTS; exports.QuickActionSet = QuickActionSet; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; 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.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; 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.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; 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.buildDiscussPrompt = buildDiscussPrompt; 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.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;