@flamingo-stack/openframe-frontend-core 0.0.817 → 0.0.819

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 (71) hide show
  1. package/dist/{chunk-5TSYOIIZ.cjs → chunk-2JFR6XVT.cjs} +32 -32
  2. package/dist/{chunk-MAHJY2PO.cjs → chunk-2S6BUXYD.cjs} +3 -3
  3. package/dist/{chunk-ZP4JMX7G.cjs → chunk-2T3HXLZD.cjs} +53 -53
  4. package/dist/{chunk-P7JQGOX4.cjs → chunk-2W3W3ZV6.cjs} +11 -11
  5. package/dist/{chunk-7KBHLP4E.cjs → chunk-7IQU54VE.cjs} +16 -16
  6. package/dist/{chunk-TKEYWSDZ.cjs → chunk-A36XVWIQ.cjs} +39 -39
  7. package/dist/{chunk-F2LVBRHC.cjs → chunk-CEXPWDT4.cjs} +4 -4
  8. package/dist/{chunk-IOFIHVVW.cjs → chunk-I453QCEF.cjs} +107 -107
  9. package/dist/{chunk-6F4YGHGM.cjs → chunk-IVQT5R6M.cjs} +19 -19
  10. package/dist/{chunk-RDHF3F5R.cjs → chunk-JOXJDNHN.cjs} +3 -3
  11. package/dist/{chunk-C2OUXL3Q.cjs → chunk-MYIOOA4E.cjs} +2 -2
  12. package/dist/{chunk-24M2JYM5.cjs → chunk-OTGYA5F7.cjs} +259 -285
  13. package/dist/{chunk-UFBVOBYR.cjs → chunk-Q6QQSCUC.cjs} +10 -10
  14. package/dist/{chunk-4ROR52OW.cjs → chunk-S2ZA4TMJ.cjs} +9 -9
  15. package/dist/{chunk-JMOCM2SW.cjs → chunk-TDQRDQVU.cjs} +4 -4
  16. package/dist/{chunk-EX7M3VQC.cjs → chunk-U3OICGCV.cjs} +47 -47
  17. package/dist/{chunk-BL2J5RJK.cjs → chunk-VSKR26MV.cjs} +6 -6
  18. package/dist/{chunk-DSBRWP5M.cjs → chunk-WPHCVXES.cjs} +7 -7
  19. package/dist/{cloud-tenants-NMAXIJLL.cjs → cloud-tenants-P5XJ5DPJ.cjs} +4 -4
  20. package/dist/components/case-studies/index.cjs +16 -16
  21. package/dist/components/chat/embeddable-chat.d.ts +0 -8
  22. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  23. package/dist/components/chat/embeddable-chat.js +10 -67
  24. package/dist/components/chat/entity-cards/dispatch.d.ts +3 -10
  25. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  26. package/dist/components/chat/entity-cards/dispatch.js +4 -23
  27. package/dist/components/chat/index.cjs +3 -3
  28. package/dist/components/chat/remark-strip-citations.d.ts +1 -1
  29. package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
  30. package/dist/components/chat/remark-strip-citations.js +8 -2
  31. package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
  32. package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
  33. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  34. package/dist/components/chat/utils/cited-sources.js +36 -0
  35. package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
  36. package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
  37. package/dist/components/chat/utils/source-row-cta.js +7 -32
  38. package/dist/components/contact/index.cjs +5 -5
  39. package/dist/components/docs/index.cjs +8 -8
  40. package/dist/components/embeds/index.cjs +5 -5
  41. package/dist/components/faq/index.cjs +6 -6
  42. package/dist/components/features/index.cjs +4 -4
  43. package/dist/components/help-center-pages/index.cjs +61 -61
  44. package/dist/components/index.cjs +37 -37
  45. package/dist/components/meeting-scheduler/index.cjs +29 -29
  46. package/dist/components/navigation/index.cjs +7 -7
  47. package/dist/components/onboarding-guides/index.cjs +6 -6
  48. package/dist/components/product-demo/index.cjs +13 -13
  49. package/dist/components/tickets/index.cjs +9 -9
  50. package/dist/components/ui/index.cjs +4 -4
  51. package/dist/contexts/chat-runtime-context.d.ts +3 -14
  52. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  53. package/dist/{devices-QBKWVHE6.cjs → devices-BSIWSRZG.cjs} +5 -5
  54. package/dist/{embeddable-chat-WNPCPMDL.cjs → embeddable-chat-5L2PKTW3.cjs} +107 -127
  55. package/dist/index.cjs +8 -8
  56. package/dist/{knowledge-FSAYWM25.cjs → knowledge-2F3IPK73.cjs} +5 -5
  57. package/dist/{logs-OZX4SYHG.cjs → logs-U3OCJ2OC.cjs} +12 -12
  58. package/dist/{policies-LPCUCTLX.cjs → policies-L3KHKE2G.cjs} +8 -8
  59. package/dist/{scripts-ZNFZSONW.cjs → scripts-U4SLB5YC.cjs} +9 -9
  60. package/dist/{software-update-BRYOVQVY.cjs → software-update-QALYFCIO.cjs} +7 -7
  61. package/dist/utils/source-grouping.d.ts +2 -2
  62. package/package.json +1 -1
  63. package/src/components/chat/embeddable-chat.tsx +10 -74
  64. package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
  65. package/src/components/chat/entity-cards/dispatch.tsx +6 -31
  66. package/src/components/chat/remark-strip-citations.ts +14 -3
  67. package/src/components/chat/types/entities/data-room-doc.ts +0 -12
  68. package/src/components/chat/utils/cited-sources.ts +51 -0
  69. package/src/components/chat/utils/source-row-cta.ts +21 -102
  70. package/src/contexts/chat-runtime-context.tsx +3 -11
  71. package/src/utils/source-grouping.ts +2 -2
@@ -57,7 +57,8 @@ require('./chunk-24I6RFVU.cjs');
57
57
 
58
58
 
59
59
 
60
- var _chunk24M2JYM5cjs = require('./chunk-24M2JYM5.cjs');
60
+
61
+ var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
61
62
 
62
63
 
63
64
  var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
@@ -1878,7 +1879,9 @@ require('./chunk-JKX2C3I2.cjs');
1878
1879
 
1879
1880
  var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
1880
1881
  require('./chunk-SKI6NKOE.cjs');
1881
- require('./chunk-IM366HS6.cjs');
1882
+
1883
+
1884
+ var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
1882
1885
 
1883
1886
 
1884
1887
  var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
@@ -2002,7 +2005,7 @@ function useChatDialogManager({
2002
2005
  setArchivedLoading(true);
2003
2006
  }
2004
2007
  try {
2005
- const result = await fetchArchivedDialogs({ cursor, limit: _chunk24M2JYM5cjs.CHAT_HISTORY_PAGE_SIZE });
2008
+ const result = await fetchArchivedDialogs({ cursor, limit: _chunkOTGYA5F7cjs.CHAT_HISTORY_PAGE_SIZE });
2006
2009
  if (!isCurrent()) return;
2007
2010
  setArchivedCursor(result.nextCursor);
2008
2011
  setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
@@ -2122,6 +2125,8 @@ function withoutCode(content) {
2122
2125
  }
2123
2126
  function splitCitedSources(sources, content) {
2124
2127
  if (!sources || sources.length === 0) return { cited: [], uncited: [] };
2128
+ const byCards = splitByCards(sources, _chunkOTGYA5F7cjs.extractCardReferences.call(void 0, withoutCode(content)));
2129
+ if (byCards.cited.length > 0) return byCards;
2125
2130
  const firstMentionAt = /* @__PURE__ */ new Map();
2126
2131
  for (const match of withoutCode(content).matchAll(CITATION)) {
2127
2132
  const index = Number.parseInt(match[1], 10);
@@ -2129,7 +2134,39 @@ function splitCitedSources(sources, content) {
2129
2134
  }
2130
2135
  const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
2131
2136
  const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
2132
- return { cited: _chunk24M2JYM5cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk24M2JYM5cjs.groupSourcesByTable.call(void 0, uncited) };
2137
+ return { cited: _chunkOTGYA5F7cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkOTGYA5F7cjs.groupSourcesByTable.call(void 0, uncited) };
2138
+ }
2139
+ function recordsOf(source) {
2140
+ if (!source.items || source.items.length === 0) return [source];
2141
+ return source.items.map((item) => ({
2142
+ index: _nullishCoalesce(item.index, () => ( source.index)),
2143
+ id: item.id,
2144
+ name: item.name,
2145
+ path: _nullishCoalesce(item.path, () => ( "")),
2146
+ documentType: item.documentType,
2147
+ ...item.externalUrl ? { externalUrl: item.externalUrl } : {},
2148
+ targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
2149
+ ...source.sourceRepo ? { sourceRepo: source.sourceRepo } : {}
2150
+ }));
2151
+ }
2152
+ function recordKey(record) {
2153
+ const id = record.id || record.path;
2154
+ return record.documentType && id ? `${_chunkIM366HS6cjs.canonicalContentRefType.call(void 0, record.documentType)}:${id}` : null;
2155
+ }
2156
+ function splitByCards(sources, cards) {
2157
+ const records = sources.flatMap(recordsOf);
2158
+ const byKey = /* @__PURE__ */ new Map();
2159
+ for (const record of records) {
2160
+ const key = recordKey(record);
2161
+ if (key && !byKey.has(key)) byKey.set(key, record);
2162
+ }
2163
+ const cited = [];
2164
+ for (const card of cards) {
2165
+ const record = byKey.get(`${_chunkIM366HS6cjs.canonicalContentRefType.call(void 0, card.type)}:${card.id}`);
2166
+ if (record && !cited.includes(record)) cited.push(record);
2167
+ }
2168
+ const uncited = records.filter((record) => !cited.includes(record));
2169
+ return { cited: _chunkOTGYA5F7cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkOTGYA5F7cjs.groupSourcesByTable.call(void 0, uncited) };
2133
2170
  }
2134
2171
 
2135
2172
  // src/components/chat/utils/host-message.ts
@@ -2180,7 +2217,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
2180
2217
  // src/components/chat/embeddable-chat.tsx
2181
2218
  var _jsxruntime = require('react/jsx-runtime');
2182
2219
  var HISTORY_RAIL_WIDTH = 320;
2183
- var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk24M2JYM5cjs.CHAT_BLOCK_MIN_WIDTH;
2220
+ var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkOTGYA5F7cjs.CHAT_BLOCK_MIN_WIDTH;
2184
2221
  var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
2185
2222
  var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
2186
2223
  var DRAWER_DEFAULT_WIDTH_PX = 750;
@@ -2253,7 +2290,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
2253
2290
  if (!input) return;
2254
2291
  switch (actionId) {
2255
2292
  case "browse":
2256
- input.submit(_chunk24M2JYM5cjs.formatSingularLookupInvocation.call(void 0, cmdId));
2293
+ input.submit(_chunkOTGYA5F7cjs.formatSingularLookupInvocation.call(void 0, cmdId));
2257
2294
  return;
2258
2295
  case "search":
2259
2296
  input.setValue(`/${cmdId} `);
@@ -2274,7 +2311,7 @@ var ONE_TEXT_LINE = "\xA0";
2274
2311
  var SOURCE_CHIP_SKELETON_COUNT = 1;
2275
2312
  function SourceChipSkeleton(props) {
2276
2313
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "pointer-events-none inline-flex shrink-0 items-center", ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
2277
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk24M2JYM5cjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
2314
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkOTGYA5F7cjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
2278
2315
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3.5 w-3.5 rounded-sm") }),
2279
2316
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "w-28 rounded-sm"), children: ONE_TEXT_LINE })
2280
2317
  ] }),
@@ -2282,10 +2319,10 @@ function SourceChipSkeleton(props) {
2282
2319
  ] });
2283
2320
  }
2284
2321
  function SourceChip(props) {
2285
- const { src, baseRoute, chipBasePlatform, onDiscuss } = props;
2322
+ const { src, onDiscuss } = props;
2286
2323
  const marks = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
2287
2324
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
2288
- const cta = _chunk24M2JYM5cjs.resolveSourceRowCTA.call(void 0,
2325
+ const cta = _chunkOTGYA5F7cjs.resolveSourceRowCTA.call(void 0,
2289
2326
  {
2290
2327
  sourceRepo: src.sourceRepo,
2291
2328
  documentType: src.documentType,
@@ -2295,14 +2332,14 @@ function SourceChip(props) {
2295
2332
  targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
2296
2333
  path: src.path
2297
2334
  },
2298
- _chunk24M2JYM5cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2335
+ _chunkOTGYA5F7cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
2299
2336
  );
2300
2337
  const Icon = cta.icon;
2301
2338
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
2302
- const chipClass = _chunk24M2JYM5cjs.chatChipClass.call(void 0, { tone: "secondary" });
2339
+ const chipClass = _chunkOTGYA5F7cjs.chatChipClass.call(void 0, { tone: "secondary" });
2303
2340
  if (src.items && src.items.length > 0) {
2304
2341
  const dropdownItems = src.items.map((item) => {
2305
- const itemCta = _chunk24M2JYM5cjs.resolveSourceRowCTA.call(void 0,
2342
+ const itemCta = _chunkOTGYA5F7cjs.resolveSourceRowCTA.call(void 0,
2306
2343
  {
2307
2344
  sourceRepo: src.sourceRepo,
2308
2345
  documentType: item.documentType,
@@ -2312,7 +2349,7 @@ function SourceChip(props) {
2312
2349
  targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
2313
2350
  path: item.path
2314
2351
  },
2315
- _chunk24M2JYM5cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2352
+ _chunkOTGYA5F7cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
2316
2353
  );
2317
2354
  const ItemIcon = itemCta.icon;
2318
2355
  const itemChatRef = itemCta.chatRef;
@@ -2332,13 +2369,13 @@ function SourceChip(props) {
2332
2369
  };
2333
2370
  });
2334
2371
  const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
2335
- const groupIndices = itemIndices.length > 0 ? _chunk24M2JYM5cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
2372
+ const groupIndices = itemIndices.length > 0 ? _chunkOTGYA5F7cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
2336
2373
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", ...marks, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2337
2374
  _chunkEHANO6UEcjs.HoverDropdown,
2338
2375
  {
2339
2376
  items: dropdownItems,
2340
2377
  renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2341
- _chunk24M2JYM5cjs.NavLinkAnchorViaRuntime,
2378
+ _chunkOTGYA5F7cjs.NavLinkAnchorViaRuntime,
2342
2379
  {
2343
2380
  href,
2344
2381
  targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
@@ -2371,13 +2408,13 @@ function SourceChip(props) {
2371
2408
  ] });
2372
2409
  const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", ...marks, children: [
2373
2410
  clickable,
2374
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
2411
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
2375
2412
  ] });
2376
2413
  if (cta.href) {
2377
2414
  const isEntity = !!src.externalUrl;
2378
2415
  return wrapChip(
2379
2416
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2380
- _chunk24M2JYM5cjs.NavLinkAnchorViaRuntime,
2417
+ _chunkOTGYA5F7cjs.NavLinkAnchorViaRuntime,
2381
2418
  {
2382
2419
  href: cta.href,
2383
2420
  path: isEntity ? null : src.path,
@@ -2396,8 +2433,6 @@ function SourceChip(props) {
2396
2433
  function SourceChips({
2397
2434
  cited,
2398
2435
  uncited,
2399
- baseRoute,
2400
- chipBasePlatform,
2401
2436
  onDiscuss,
2402
2437
  loading,
2403
2438
  skeletonCount
@@ -2405,7 +2440,7 @@ function SourceChips({
2405
2440
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
2406
2441
  if (loading) {
2407
2442
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
2408
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.TextHold, { children: "Sources" }) }),
2443
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.TextHold, { children: "Sources" }) }),
2409
2444
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-nowrap gap-1.5 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChipSkeleton, { "data-loading-item": true }) }) })
2410
2445
  ] });
2411
2446
  }
@@ -2414,17 +2449,7 @@ function SourceChips({
2414
2449
  if (fallback.length === 0) return null;
2415
2450
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
2416
2451
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: "Top retrieved sources" }),
2417
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-1.5", children: fallback.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2418
- SourceChip,
2419
- {
2420
- "data-loading-item": true,
2421
- src,
2422
- baseRoute,
2423
- chipBasePlatform,
2424
- onDiscuss
2425
- },
2426
- src.index
2427
- )) })
2452
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-1.5", children: fallback.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)) })
2428
2453
  ] });
2429
2454
  }
2430
2455
  const hiddenCount = uncited.length;
@@ -2432,28 +2457,8 @@ function SourceChips({
2432
2457
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
2433
2458
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: "Sources" }),
2434
2459
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-wrap gap-1.5 ${expanded ? "max-h-[200px] overflow-y-auto overscroll-contain" : ""}`, children: [
2435
- cited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2436
- SourceChip,
2437
- {
2438
- "data-loading-item": true,
2439
- src,
2440
- baseRoute,
2441
- chipBasePlatform,
2442
- onDiscuss
2443
- },
2444
- src.index
2445
- )),
2446
- expanded && uncited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2447
- SourceChip,
2448
- {
2449
- "data-loading-item": true,
2450
- src,
2451
- baseRoute,
2452
- chipBasePlatform,
2453
- onDiscuss
2454
- },
2455
- src.index
2456
- )),
2460
+ cited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)),
2461
+ expanded && uncited.map((src) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChip, { "data-loading-item": true, src, onDiscuss }, src.index)),
2457
2462
  hasOverflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2458
2463
  _chunkFCZAUK4Dcjs.Button,
2459
2464
  {
@@ -2477,8 +2482,6 @@ var EmbeddableChat = _react2.default.forwardRef(
2477
2482
  );
2478
2483
  EmbeddableChat.displayName = "EmbeddableChat";
2479
2484
  function EmbeddableChatInner({
2480
- baseRoute,
2481
- chipBasePlatform,
2482
2485
  sourceSkeletonCount = SOURCE_CHIP_SKELETON_COUNT,
2483
2486
  enabledRagTableIds = null,
2484
2487
  emptyStateGreeting = null,
@@ -2530,7 +2533,7 @@ function EmbeddableChatInner({
2530
2533
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
2531
2534
  const source = _nullishCoalesce(runtime.source, () => ( ""));
2532
2535
  const commandsUrl = runtime.endpoints.commandsUrl;
2533
- const { attachmentsEnabled, user: identityUser } = _chunk24M2JYM5cjs.useChatIdentity.call(void 0, );
2536
+ const { attachmentsEnabled, user: identityUser } = _chunkOTGYA5F7cjs.useChatIdentity.call(void 0, );
2534
2537
  const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
2535
2538
  _react.useEffect.call(void 0, () => {
2536
2539
  if (process.env.NODE_ENV !== "production") {
@@ -2584,9 +2587,9 @@ function EmbeddableChatInner({
2584
2587
  const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
2585
2588
  const slashCommandsProp = _react.useMemo.call(void 0,
2586
2589
  () => ({
2587
- fetchCommands: (prefix, signal) => _chunk24M2JYM5cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2590
+ fetchCommands: (prefix, signal) => _chunkOTGYA5F7cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2588
2591
  resolveSourceIcon: (sourceId) => {
2589
- const iconName = _chunk24M2JYM5cjs.getSourceIconName.call(void 0, sourceId);
2592
+ const iconName = _chunkOTGYA5F7cjs.getSourceIconName.call(void 0, sourceId);
2590
2593
  if (!iconName) return void 0;
2591
2594
  return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
2592
2595
  },
@@ -2615,7 +2618,7 @@ function EmbeddableChatInner({
2615
2618
  },
2616
2619
  [controlledActiveMode, onActiveModeChange]
2617
2620
  );
2618
- const { commands: commandsList, loaded: commandsLoaded } = _chunk24M2JYM5cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2621
+ const { commands: commandsList, loaded: commandsLoaded } = _chunkOTGYA5F7cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2619
2622
  enabled: activeMode === "guide"
2620
2623
  });
2621
2624
  const commandsById = _react.useMemo.call(void 0, () => {
@@ -2626,7 +2629,7 @@ function EmbeddableChatInner({
2626
2629
  const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
2627
2630
  const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
2628
2631
  const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
2629
- const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk24M2JYM5cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2632
+ const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkOTGYA5F7cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2630
2633
  enabled: activeMode === "guide" || !!activeAgentSlug
2631
2634
  });
2632
2635
  const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
@@ -2673,7 +2676,7 @@ function EmbeddableChatInner({
2673
2676
  hasMoreMessages,
2674
2677
  loadMoreMessages,
2675
2678
  dialogCapabilities
2676
- } = _chunk24M2JYM5cjs.useUnifiedChat.call(void 0, {
2679
+ } = _chunkOTGYA5F7cjs.useUnifiedChat.call(void 0, {
2677
2680
  modes: effectiveModes,
2678
2681
  activeMode,
2679
2682
  mingoStateOverride: mingoState,
@@ -2720,8 +2723,8 @@ function EmbeddableChatInner({
2720
2723
  addFiles: addAttachmentFiles,
2721
2724
  removeAttachment,
2722
2725
  clear: clearAttachments
2723
- } = _chunk24M2JYM5cjs.useChatAttachments.call(void 0, );
2724
- const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk24M2JYM5cjs.useChatAttachmentImageGallery.call(void 0, );
2726
+ } = _chunkOTGYA5F7cjs.useChatAttachments.call(void 0, );
2727
+ const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkOTGYA5F7cjs.useChatAttachmentImageGallery.call(void 0, );
2725
2728
  const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
2726
2729
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
2727
2730
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
@@ -2822,7 +2825,6 @@ function EmbeddableChatInner({
2822
2825
  setMentionQuery(query);
2823
2826
  setContextPickerOpen(query !== null);
2824
2827
  }, []);
2825
- const resolvedBaseRoute = baseRoute || (source === "flamingo" ? "/knowledge-base" : "/data-room");
2826
2828
  const handleClose = _react.useCallback.call(void 0, () => setIsOpen(false), [setIsOpen]);
2827
2829
  const closeControl = closable ? handleClose : void 0;
2828
2830
  const handleNavigationClose = _react.useCallback.call(void 0, () => {
@@ -2841,14 +2843,12 @@ function EmbeddableChatInner({
2841
2843
  const askAboutRef = _react.useRef.call(void 0, discussRef);
2842
2844
  const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
2843
2845
  const renderEntityCard = _react.useCallback.call(void 0,
2844
- (reference) => _chunk24M2JYM5cjs.renderChatInlineEntityCard.call(void 0, reference, {
2846
+ (reference) => _chunkOTGYA5F7cjs.renderChatInlineEntityCard.call(void 0, reference, {
2845
2847
  onDiscuss: askAbout,
2846
2848
  onDisplay: displayRef,
2847
- baseRoute: resolvedBaseRoute,
2848
- chipBasePlatform,
2849
2849
  extras
2850
2850
  }),
2851
- [askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
2851
+ [askAbout, displayRef, extras]
2852
2852
  );
2853
2853
  const mingoAssistantIcon = _react.useMemo.call(void 0,
2854
2854
  () => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
@@ -2863,7 +2863,7 @@ function EmbeddableChatInner({
2863
2863
  pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
2864
2864
  return mapped;
2865
2865
  }, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
2866
- const whatToAsk = _chunk24M2JYM5cjs.useWhatToAsk.call(void 0, {
2866
+ const whatToAsk = _chunkOTGYA5F7cjs.useWhatToAsk.call(void 0, {
2867
2867
  dialogId: activeDialogId,
2868
2868
  content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
2869
2869
  user: {
@@ -2882,7 +2882,7 @@ function EmbeddableChatInner({
2882
2882
  noteWhatToAskSend();
2883
2883
  let augmentedText = text;
2884
2884
  if (readyAttachments.length > 0) {
2885
- const markdown = readyAttachments.map((att) => _chunk24M2JYM5cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2885
+ const markdown = readyAttachments.map((att) => _chunkOTGYA5F7cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2886
2886
  augmentedText = `${text}${markdown}`;
2887
2887
  }
2888
2888
  void sendMessage(augmentedText, {
@@ -2921,7 +2921,7 @@ function EmbeddableChatInner({
2921
2921
  // agent/persona (`icon_props.color`) wins; the built-in slug map
2922
2922
  // (fae→pink, mingo→cyan) is only the fallback for unconfigured
2923
2923
  // built-in agents.
2924
- accent: _nullishCoalesce(_chunk24M2JYM5cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk24M2JYM5cjs.getAgentAccent.call(void 0, activeAgentSlug)))
2924
+ accent: _nullishCoalesce(_chunkOTGYA5F7cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkOTGYA5F7cjs.getAgentAccent.call(void 0, activeAgentSlug)))
2925
2925
  }));
2926
2926
  }
2927
2927
  return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
@@ -2969,7 +2969,7 @@ function EmbeddableChatInner({
2969
2969
  unarchiveDialog: mingoCaps.unarchiveDialog
2970
2970
  });
2971
2971
  const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
2972
- _chunk24M2JYM5cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2972
+ _chunkOTGYA5F7cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2973
2973
  _react.useEffect.call(void 0, () => {
2974
2974
  const handler = (e) => {
2975
2975
  const detail = e.detail;
@@ -2977,8 +2977,8 @@ function EmbeddableChatInner({
2977
2977
  setIsOpen(true);
2978
2978
  setTimeout(() => askAbout(detail.ref), 0);
2979
2979
  };
2980
- window.addEventListener(_chunk24M2JYM5cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2981
- return () => window.removeEventListener(_chunk24M2JYM5cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2980
+ window.addEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2981
+ return () => window.removeEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2982
2982
  }, [source, askAbout, setIsOpen]);
2983
2983
  const pendingAskRef = _react.useRef.call(void 0, null);
2984
2984
  const isDraft = activeDialogId == null && messages.length === 0;
@@ -3012,10 +3012,10 @@ function EmbeddableChatInner({
3012
3012
  const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
3013
3013
  if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
3014
3014
  };
3015
- window.addEventListener(_chunk24M2JYM5cjs.ASK_AI_OPEN_EVENT, handler);
3016
- return () => window.removeEventListener(_chunk24M2JYM5cjs.ASK_AI_OPEN_EVENT, handler);
3015
+ window.addEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENT, handler);
3016
+ return () => window.removeEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENT, handler);
3017
3017
  }, [source, setIsOpen, sendAskPrompt]);
3018
- _react.useEffect.call(void 0, () => _chunk24M2JYM5cjs.chatListensForAskAiOpens.call(void 0, ), []);
3018
+ _react.useEffect.call(void 0, () => _chunkOTGYA5F7cjs.chatListensForAskAiOpens.call(void 0, ), []);
3019
3019
  const hasMessages = messages.length > 0;
3020
3020
  const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
3021
3021
  const dialogsLoadError = dialogsError && dialogs.length === 0;
@@ -3053,37 +3053,17 @@ function EmbeddableChatInner({
3053
3053
  if (message.role !== "assistant") return null;
3054
3054
  if (chatLoading && index === messages.length - 1) {
3055
3055
  if (sourceSkeletonCount <= 0) return null;
3056
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3057
- SourceChips,
3058
- {
3059
- loading: true,
3060
- skeletonCount: sourceSkeletonCount,
3061
- cited: [],
3062
- uncited: [],
3063
- baseRoute: resolvedBaseRoute,
3064
- chipBasePlatform
3065
- }
3066
- ) });
3056
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { loading: true, skeletonCount: sourceSkeletonCount, cited: [], uncited: [] }) });
3067
3057
  }
3068
- const { cited, uncited } = splitCitedSources(message.sources, _chunk24M2JYM5cjs.flattenAssistantContent.call(void 0, message.content));
3058
+ const { cited, uncited } = splitCitedSources(message.sources, _chunkOTGYA5F7cjs.flattenAssistantContent.call(void 0, message.content));
3069
3059
  if (cited.length === 0 && uncited.length === 0) return null;
3070
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3071
- SourceChips,
3072
- {
3073
- cited,
3074
- uncited,
3075
- baseRoute: resolvedBaseRoute,
3076
- chipBasePlatform,
3077
- onDiscuss: askAbout,
3078
- skeletonCount: sourceSkeletonCount
3079
- }
3080
- ) });
3060
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChips, { cited, uncited, onDiscuss: askAbout, skeletonCount: sourceSkeletonCount }) });
3081
3061
  },
3082
- [chatLoading, messages.length, resolvedBaseRoute, chipBasePlatform, askAbout, sourceSkeletonCount]
3062
+ [chatLoading, messages.length, askAbout, sourceSkeletonCount]
3083
3063
  );
3084
3064
  const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
3085
3065
  const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
3086
- const splitMinWidth = (isV2 ? _chunk24M2JYM5cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk24M2JYM5cjs.CHAT_BLOCK_MIN_WIDTH;
3066
+ const splitMinWidth = (isV2 ? _chunkOTGYA5F7cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkOTGYA5F7cjs.CHAT_BLOCK_MIN_WIDTH;
3087
3067
  const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
3088
3068
  _react.useEffect.call(void 0, () => {
3089
3069
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
@@ -3102,7 +3082,7 @@ function EmbeddableChatInner({
3102
3082
  [splitMinWidth]
3103
3083
  );
3104
3084
  const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
3105
- const railStorageHydrated = _chunk24M2JYM5cjs.useIsHydrated.call(void 0, );
3085
+ const railStorageHydrated = _chunkOTGYA5F7cjs.useIsHydrated.call(void 0, );
3106
3086
  const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
3107
3087
  if (railStorageHydrated && !railStorageRead) {
3108
3088
  setRailStorageRead(true);
@@ -3156,7 +3136,7 @@ function EmbeddableChatInner({
3156
3136
  resetToNewChat();
3157
3137
  }, [clearWhatToAskDraft, resetToNewChat]);
3158
3138
  const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
3159
- const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk24M2JYM5cjs.awaitsDecision.call(void 0, hostMessages);
3139
+ const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkOTGYA5F7cjs.awaitsDecision.call(void 0, hostMessages);
3160
3140
  const showWhatToAsk = (content) => {
3161
3141
  whatToAsk.clearDraft();
3162
3142
  resetToNewChat();
@@ -3252,7 +3232,7 @@ function EmbeddableChatInner({
3252
3232
  }),
3253
3233
  [resetToNewChat, contextMaxItems]
3254
3234
  );
3255
- const splitHeaderMenuItems = _chunk24M2JYM5cjs.chatDialogMenuItems.call(void 0, {
3235
+ const splitHeaderMenuItems = _chunkOTGYA5F7cjs.chatDialogMenuItems.call(void 0, {
3256
3236
  onCopyLink: headerOnCopyLink,
3257
3237
  onRename: headerOnRename,
3258
3238
  onCompact: headerOnCompact,
@@ -3332,7 +3312,7 @@ function EmbeddableChatInner({
3332
3312
  onRetry: reloadDialogs
3333
3313
  };
3334
3314
  const v2Header = isV2 && !stackedListView ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "col-start-2 row-start-1 min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3335
- _chunk24M2JYM5cjs.MingoChatHeader,
3315
+ _chunkOTGYA5F7cjs.MingoChatHeader,
3336
3316
  {
3337
3317
  title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
3338
3318
  subtitle: archiveOpen ? void 0 : headerPersonName,
@@ -3352,7 +3332,7 @@ function EmbeddableChatInner({
3352
3332
  const body = (
3353
3333
  // The whole panel reads the appearance (the composer's footer too), not
3354
3334
  // only the thread `ChatMessageList` provides it to.
3355
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
3335
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
3356
3336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3357
3337
  "div",
3358
3338
  {
@@ -3360,7 +3340,7 @@ function EmbeddableChatInner({
3360
3340
  "data-surface": isV2 ? "mingo" : void 0,
3361
3341
  className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${!isV2 && (archiveOpen && !splitActive || stackedListView) ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
3362
3342
  children: archiveOpen && !splitActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3363
- _chunk24M2JYM5cjs.ChatArchivePage,
3343
+ _chunkOTGYA5F7cjs.ChatArchivePage,
3364
3344
  {
3365
3345
  dialogs: archivedDialogs,
3366
3346
  onSelectDialog: handleArchivedSelect,
@@ -3390,7 +3370,7 @@ function EmbeddableChatInner({
3390
3370
  narrow: true,
3391
3371
  className: "col-start-1 row-span-3 row-start-1",
3392
3372
  innerClassName: "flex min-h-0 flex-col",
3393
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
3373
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
3394
3374
  }
3395
3375
  ),
3396
3376
  isV2 ? v2Header : showWideHeader ? (
@@ -3429,7 +3409,7 @@ function EmbeddableChatInner({
3429
3409
  // (Figma 116:51217) and the magnifier toggle is hidden.
3430
3410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3431
3411
  railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3432
- _chunk24M2JYM5cjs.ChatHeaderSearchField,
3412
+ _chunkOTGYA5F7cjs.ChatHeaderSearchField,
3433
3413
  {
3434
3414
  initialValue: mingoCaps.searchQuery,
3435
3415
  onSearchChange: mingoCaps.onSearchChange,
@@ -3516,10 +3496,10 @@ function EmbeddableChatInner({
3516
3496
  // guide, resolved into `narrowHeaderProps` above. (Wide layouts,
3517
3497
  // including rail-collapsed, use the wide header above.) Embedded
3518
3498
  // previews (hero demo tabs) force the compact bar via `compact`.
3519
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3520
3500
  ),
3521
3501
  activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3522
- _chunk24M2JYM5cjs.GuideModeBanner,
3502
+ _chunkOTGYA5F7cjs.GuideModeBanner,
3523
3503
  {
3524
3504
  className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
3525
3505
  }
@@ -3529,7 +3509,7 @@ function EmbeddableChatInner({
3529
3509
  // Archive list inside the rail (header lives in the split
3530
3510
  // header's left cell above). Right chat block stays put.
3531
3511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3532
- _chunk24M2JYM5cjs.ChatArchivePage,
3512
+ _chunkOTGYA5F7cjs.ChatArchivePage,
3533
3513
  {
3534
3514
  embedded: true,
3535
3515
  dialogs: archivedDialogs,
@@ -3543,7 +3523,7 @@ function EmbeddableChatInner({
3543
3523
  }
3544
3524
  )
3545
3525
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3546
- _chunk24M2JYM5cjs.MingoHistoryRail,
3526
+ _chunkOTGYA5F7cjs.MingoHistoryRail,
3547
3527
  {
3548
3528
  dialogs,
3549
3529
  activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
@@ -3571,7 +3551,7 @@ function EmbeddableChatInner({
3571
3551
  // v2: the archive opens in the chat column under the chat's
3572
3552
  // header; the list stays, and "Chat Archive" there toggles back.
3573
3553
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3574
- _chunk24M2JYM5cjs.MingoArchiveList,
3554
+ _chunkOTGYA5F7cjs.MingoArchiveList,
3575
3555
  {
3576
3556
  dialogs: archivedDialogs,
3577
3557
  onSelectDialog: handleArchivedSelect,
@@ -3584,7 +3564,7 @@ function EmbeddableChatInner({
3584
3564
  }
3585
3565
  )
3586
3566
  ) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3587
- _chunk24M2JYM5cjs.MingoChatRail,
3567
+ _chunkOTGYA5F7cjs.MingoChatRail,
3588
3568
  {
3589
3569
  ...mingoRailProps,
3590
3570
  onNewChat: () => setComposeOpen(true),
@@ -3603,7 +3583,7 @@ function EmbeddableChatInner({
3603
3583
  // single-column view. No composer here; "Start New Chat" opens
3604
3584
  // the compose view.
3605
3585
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3606
- _chunk24M2JYM5cjs.MingoHistoryRail,
3586
+ _chunkOTGYA5F7cjs.MingoHistoryRail,
3607
3587
  {
3608
3588
  className: "duration-200 animate-in fade-in-0",
3609
3589
  dialogs,
@@ -3646,14 +3626,14 @@ function EmbeddableChatInner({
3646
3626
  {
3647
3627
  className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
3648
3628
  children: hasConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3649
- _chunk24M2JYM5cjs.ChatMessageList,
3629
+ _chunkOTGYA5F7cjs.ChatMessageList,
3650
3630
  {
3651
3631
  messages,
3652
3632
  isLoading: messagesInitialLoading,
3653
3633
  fill: previewMode,
3654
3634
  appearance,
3655
3635
  isTyping: chatLoading,
3656
- typingMessage: streamingProgress ? _chunk24M2JYM5cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3636
+ typingMessage: streamingProgress ? _chunkOTGYA5F7cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3657
3637
  pendingApprovals,
3658
3638
  autoScroll: !previewMode,
3659
3639
  pinBottom: previewMode,
@@ -3666,7 +3646,7 @@ function EmbeddableChatInner({
3666
3646
  renderMention,
3667
3647
  renderAfterMessage: renderMessageSources,
3668
3648
  onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
3669
- NavLinkAnchor: _chunk24M2JYM5cjs.NavLinkAnchorViaRuntime,
3649
+ NavLinkAnchor: _chunkOTGYA5F7cjs.NavLinkAnchorViaRuntime,
3670
3650
  className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
3671
3651
  contentClassName: "max-w-none pb-0",
3672
3652
  fullWidth: true,
@@ -3680,7 +3660,7 @@ function EmbeddableChatInner({
3680
3660
  quick-action chips. Guide mode keeps the slash-command
3681
3661
  onboarding list below. */
3682
3662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3683
- _chunk24M2JYM5cjs.MingoWelcome,
3663
+ _chunkOTGYA5F7cjs.MingoWelcome,
3684
3664
  {
3685
3665
  onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
3686
3666
  historyPageSize,
@@ -3696,7 +3676,7 @@ function EmbeddableChatInner({
3696
3676
  + slash-command onboarding list share one scroll region,
3697
3677
  with a pinned quick-action chip row above the composer. */
3698
3678
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3699
- _chunk24M2JYM5cjs.GuideWelcome,
3679
+ _chunkOTGYA5F7cjs.GuideWelcome,
3700
3680
  {
3701
3681
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
3702
3682
  subtitleLoading: emptyStateLoading,
@@ -3753,7 +3733,7 @@ function EmbeddableChatInner({
3753
3733
  }
3754
3734
  ),
3755
3735
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3756
- _chunk24M2JYM5cjs.ChatAttachmentChipStrip,
3736
+ _chunkOTGYA5F7cjs.ChatAttachmentChipStrip,
3757
3737
  {
3758
3738
  attachments: stagedAttachments,
3759
3739
  onRemove: removeAttachment,
@@ -3761,7 +3741,7 @@ function EmbeddableChatInner({
3761
3741
  }
3762
3742
  ),
3763
3743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3764
- _chunk24M2JYM5cjs.ChatComposer,
3744
+ _chunkOTGYA5F7cjs.ChatComposer,
3765
3745
  {
3766
3746
  archived: isViewingArchived,
3767
3747
  lock: composerLock,
@@ -3813,7 +3793,7 @@ function EmbeddableChatInner({
3813
3793
  ),
3814
3794
  galleryModal,
3815
3795
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3816
- _chunk24M2JYM5cjs.ChatDialogModals,
3796
+ _chunkOTGYA5F7cjs.ChatDialogModals,
3817
3797
  {
3818
3798
  renameTarget,
3819
3799
  setRenameTarget,
@@ -3829,13 +3809,13 @@ function EmbeddableChatInner({
3829
3809
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
3830
3810
  ] }) }) })
3831
3811
  );
3832
- const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk24M2JYM5cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3812
+ const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkOTGYA5F7cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3833
3813
  shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
3834
3814
  sourceLabel,
3835
3815
  " AI Assistant"
3836
3816
  ] }) }),
3837
3817
  body
3838
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3818
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3839
3819
  _chunkEHANO6UEcjs.DrawerContent,
3840
3820
  {
3841
3821
  side: "right",