@flamingo-stack/openframe-frontend-core 0.0.818 → 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 (50) hide show
  1. package/dist/{chunk-U2THWP25.cjs → chunk-2JFR6XVT.cjs} +32 -32
  2. package/dist/{chunk-DL4HWYIB.cjs → chunk-2S6BUXYD.cjs} +3 -3
  3. package/dist/{chunk-AE22KOW3.cjs → chunk-2T3HXLZD.cjs} +53 -53
  4. package/dist/{chunk-YHPUD4PM.cjs → chunk-2W3W3ZV6.cjs} +11 -11
  5. package/dist/{chunk-4XASD2TL.cjs → chunk-7IQU54VE.cjs} +16 -16
  6. package/dist/{chunk-VRXDTRIY.cjs → chunk-A36XVWIQ.cjs} +39 -39
  7. package/dist/{chunk-BD42NMCT.cjs → chunk-CEXPWDT4.cjs} +4 -4
  8. package/dist/{chunk-YMPPE322.cjs → chunk-I453QCEF.cjs} +107 -107
  9. package/dist/{chunk-NWIEZUM7.cjs → chunk-IVQT5R6M.cjs} +19 -19
  10. package/dist/{chunk-VGZXB3SY.cjs → chunk-JOXJDNHN.cjs} +3 -3
  11. package/dist/{chunk-DGAX5WG2.cjs → chunk-MYIOOA4E.cjs} +2 -2
  12. package/dist/{chunk-IQCHV7Z2.cjs → chunk-OTGYA5F7.cjs} +21 -3
  13. package/dist/{chunk-5VRSUEC5.cjs → chunk-Q6QQSCUC.cjs} +10 -10
  14. package/dist/{chunk-JTBJB4JF.cjs → chunk-S2ZA4TMJ.cjs} +9 -9
  15. package/dist/{chunk-NEXMK6OP.cjs → chunk-TDQRDQVU.cjs} +4 -4
  16. package/dist/{chunk-5AIOYEXW.cjs → chunk-U3OICGCV.cjs} +47 -47
  17. package/dist/{chunk-6QT5K5I5.cjs → chunk-VSKR26MV.cjs} +6 -6
  18. package/dist/{chunk-ZWAVMZIF.cjs → chunk-WPHCVXES.cjs} +7 -7
  19. package/dist/{cloud-tenants-V6EV4OGK.cjs → cloud-tenants-P5XJ5DPJ.cjs} +4 -4
  20. package/dist/components/case-studies/index.cjs +16 -16
  21. package/dist/components/chat/index.cjs +3 -3
  22. package/dist/components/chat/remark-strip-citations.d.ts +1 -1
  23. package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
  24. package/dist/components/chat/remark-strip-citations.js +8 -2
  25. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  26. package/dist/components/chat/utils/cited-sources.js +36 -0
  27. package/dist/components/contact/index.cjs +5 -5
  28. package/dist/components/docs/index.cjs +8 -8
  29. package/dist/components/embeds/index.cjs +5 -5
  30. package/dist/components/faq/index.cjs +6 -6
  31. package/dist/components/features/index.cjs +4 -4
  32. package/dist/components/help-center-pages/index.cjs +61 -61
  33. package/dist/components/index.cjs +37 -37
  34. package/dist/components/meeting-scheduler/index.cjs +29 -29
  35. package/dist/components/navigation/index.cjs +7 -7
  36. package/dist/components/onboarding-guides/index.cjs +6 -6
  37. package/dist/components/product-demo/index.cjs +13 -13
  38. package/dist/components/tickets/index.cjs +9 -9
  39. package/dist/components/ui/index.cjs +4 -4
  40. package/dist/{devices-6KZAJAAS.cjs → devices-BSIWSRZG.cjs} +5 -5
  41. package/dist/{embeddable-chat-5IHA5SUZ.cjs → embeddable-chat-5L2PKTW3.cjs} +99 -62
  42. package/dist/index.cjs +8 -8
  43. package/dist/{knowledge-I7FDQQYJ.cjs → knowledge-2F3IPK73.cjs} +5 -5
  44. package/dist/{logs-Q7PAVJUG.cjs → logs-U3OCJ2OC.cjs} +12 -12
  45. package/dist/{policies-C3DW5CHS.cjs → policies-L3KHKE2G.cjs} +8 -8
  46. package/dist/{scripts-BET663HD.cjs → scripts-U4SLB5YC.cjs} +9 -9
  47. package/dist/{software-update-W7ZQXEPK.cjs → software-update-QALYFCIO.cjs} +7 -7
  48. package/package.json +1 -1
  49. package/src/components/chat/remark-strip-citations.ts +14 -3
  50. package/src/components/chat/utils/cited-sources.ts +51 -0
@@ -57,7 +57,8 @@ require('./chunk-24I6RFVU.cjs');
57
57
 
58
58
 
59
59
 
60
- var _chunkIQCHV7Z2cjs = require('./chunk-IQCHV7Z2.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: _chunkIQCHV7Z2cjs.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: _chunkIQCHV7Z2cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkIQCHV7Z2cjs.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 + _chunkIQCHV7Z2cjs.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(_chunkIQCHV7Z2cjs.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: _chunkIQCHV7Z2cjs.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
  ] }),
@@ -2285,7 +2322,7 @@ function SourceChip(props) {
2285
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 = _chunkIQCHV7Z2cjs.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
- _chunkIQCHV7Z2cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
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 = _chunkIQCHV7Z2cjs.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 = _chunkIQCHV7Z2cjs.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
- _chunkIQCHV7Z2cjs.sourceRowCtxFromRuntime.call(void 0, runtime)
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 ? _chunkIQCHV7Z2cjs.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
- _chunkIQCHV7Z2cjs.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, _chunkIQCHV7Z2cjs.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
- _chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
2417
+ _chunkOTGYA5F7cjs.NavLinkAnchorViaRuntime,
2381
2418
  {
2382
2419
  href: cta.href,
2383
2420
  path: isEntity ? null : src.path,
@@ -2403,7 +2440,7 @@ function SourceChips({
2403
2440
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
2404
2441
  if (loading) {
2405
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: [
2406
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.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" }) }),
2407
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 }) }) })
2408
2445
  ] });
2409
2446
  }
@@ -2496,7 +2533,7 @@ function EmbeddableChatInner({
2496
2533
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
2497
2534
  const source = _nullishCoalesce(runtime.source, () => ( ""));
2498
2535
  const commandsUrl = runtime.endpoints.commandsUrl;
2499
- const { attachmentsEnabled, user: identityUser } = _chunkIQCHV7Z2cjs.useChatIdentity.call(void 0, );
2536
+ const { attachmentsEnabled, user: identityUser } = _chunkOTGYA5F7cjs.useChatIdentity.call(void 0, );
2500
2537
  const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
2501
2538
  _react.useEffect.call(void 0, () => {
2502
2539
  if (process.env.NODE_ENV !== "production") {
@@ -2550,9 +2587,9 @@ function EmbeddableChatInner({
2550
2587
  const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
2551
2588
  const slashCommandsProp = _react.useMemo.call(void 0,
2552
2589
  () => ({
2553
- fetchCommands: (prefix, signal) => _chunkIQCHV7Z2cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2590
+ fetchCommands: (prefix, signal) => _chunkOTGYA5F7cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2554
2591
  resolveSourceIcon: (sourceId) => {
2555
- const iconName = _chunkIQCHV7Z2cjs.getSourceIconName.call(void 0, sourceId);
2592
+ const iconName = _chunkOTGYA5F7cjs.getSourceIconName.call(void 0, sourceId);
2556
2593
  if (!iconName) return void 0;
2557
2594
  return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
2558
2595
  },
@@ -2581,7 +2618,7 @@ function EmbeddableChatInner({
2581
2618
  },
2582
2619
  [controlledActiveMode, onActiveModeChange]
2583
2620
  );
2584
- const { commands: commandsList, loaded: commandsLoaded } = _chunkIQCHV7Z2cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2621
+ const { commands: commandsList, loaded: commandsLoaded } = _chunkOTGYA5F7cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2585
2622
  enabled: activeMode === "guide"
2586
2623
  });
2587
2624
  const commandsById = _react.useMemo.call(void 0, () => {
@@ -2592,7 +2629,7 @@ function EmbeddableChatInner({
2592
2629
  const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
2593
2630
  const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
2594
2631
  const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
2595
- const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkIQCHV7Z2cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2632
+ const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkOTGYA5F7cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2596
2633
  enabled: activeMode === "guide" || !!activeAgentSlug
2597
2634
  });
2598
2635
  const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
@@ -2639,7 +2676,7 @@ function EmbeddableChatInner({
2639
2676
  hasMoreMessages,
2640
2677
  loadMoreMessages,
2641
2678
  dialogCapabilities
2642
- } = _chunkIQCHV7Z2cjs.useUnifiedChat.call(void 0, {
2679
+ } = _chunkOTGYA5F7cjs.useUnifiedChat.call(void 0, {
2643
2680
  modes: effectiveModes,
2644
2681
  activeMode,
2645
2682
  mingoStateOverride: mingoState,
@@ -2686,8 +2723,8 @@ function EmbeddableChatInner({
2686
2723
  addFiles: addAttachmentFiles,
2687
2724
  removeAttachment,
2688
2725
  clear: clearAttachments
2689
- } = _chunkIQCHV7Z2cjs.useChatAttachments.call(void 0, );
2690
- const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkIQCHV7Z2cjs.useChatAttachmentImageGallery.call(void 0, );
2726
+ } = _chunkOTGYA5F7cjs.useChatAttachments.call(void 0, );
2727
+ const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkOTGYA5F7cjs.useChatAttachmentImageGallery.call(void 0, );
2691
2728
  const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
2692
2729
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
2693
2730
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
@@ -2806,7 +2843,7 @@ function EmbeddableChatInner({
2806
2843
  const askAboutRef = _react.useRef.call(void 0, discussRef);
2807
2844
  const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
2808
2845
  const renderEntityCard = _react.useCallback.call(void 0,
2809
- (reference) => _chunkIQCHV7Z2cjs.renderChatInlineEntityCard.call(void 0, reference, {
2846
+ (reference) => _chunkOTGYA5F7cjs.renderChatInlineEntityCard.call(void 0, reference, {
2810
2847
  onDiscuss: askAbout,
2811
2848
  onDisplay: displayRef,
2812
2849
  extras
@@ -2826,7 +2863,7 @@ function EmbeddableChatInner({
2826
2863
  pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
2827
2864
  return mapped;
2828
2865
  }, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
2829
- const whatToAsk = _chunkIQCHV7Z2cjs.useWhatToAsk.call(void 0, {
2866
+ const whatToAsk = _chunkOTGYA5F7cjs.useWhatToAsk.call(void 0, {
2830
2867
  dialogId: activeDialogId,
2831
2868
  content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
2832
2869
  user: {
@@ -2845,7 +2882,7 @@ function EmbeddableChatInner({
2845
2882
  noteWhatToAskSend();
2846
2883
  let augmentedText = text;
2847
2884
  if (readyAttachments.length > 0) {
2848
- const markdown = readyAttachments.map((att) => _chunkIQCHV7Z2cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2885
+ const markdown = readyAttachments.map((att) => _chunkOTGYA5F7cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2849
2886
  augmentedText = `${text}${markdown}`;
2850
2887
  }
2851
2888
  void sendMessage(augmentedText, {
@@ -2884,7 +2921,7 @@ function EmbeddableChatInner({
2884
2921
  // agent/persona (`icon_props.color`) wins; the built-in slug map
2885
2922
  // (fae→pink, mingo→cyan) is only the fallback for unconfigured
2886
2923
  // built-in agents.
2887
- accent: _nullishCoalesce(_chunkIQCHV7Z2cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkIQCHV7Z2cjs.getAgentAccent.call(void 0, activeAgentSlug)))
2924
+ accent: _nullishCoalesce(_chunkOTGYA5F7cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkOTGYA5F7cjs.getAgentAccent.call(void 0, activeAgentSlug)))
2888
2925
  }));
2889
2926
  }
2890
2927
  return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
@@ -2932,7 +2969,7 @@ function EmbeddableChatInner({
2932
2969
  unarchiveDialog: mingoCaps.unarchiveDialog
2933
2970
  });
2934
2971
  const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
2935
- _chunkIQCHV7Z2cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2972
+ _chunkOTGYA5F7cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2936
2973
  _react.useEffect.call(void 0, () => {
2937
2974
  const handler = (e) => {
2938
2975
  const detail = e.detail;
@@ -2940,8 +2977,8 @@ function EmbeddableChatInner({
2940
2977
  setIsOpen(true);
2941
2978
  setTimeout(() => askAbout(detail.ref), 0);
2942
2979
  };
2943
- window.addEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2944
- return () => window.removeEventListener(_chunkIQCHV7Z2cjs.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);
2945
2982
  }, [source, askAbout, setIsOpen]);
2946
2983
  const pendingAskRef = _react.useRef.call(void 0, null);
2947
2984
  const isDraft = activeDialogId == null && messages.length === 0;
@@ -2975,10 +3012,10 @@ function EmbeddableChatInner({
2975
3012
  const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
2976
3013
  if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
2977
3014
  };
2978
- window.addEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_EVENT, handler);
2979
- return () => window.removeEventListener(_chunkIQCHV7Z2cjs.ASK_AI_OPEN_EVENT, handler);
3015
+ window.addEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENT, handler);
3016
+ return () => window.removeEventListener(_chunkOTGYA5F7cjs.ASK_AI_OPEN_EVENT, handler);
2980
3017
  }, [source, setIsOpen, sendAskPrompt]);
2981
- _react.useEffect.call(void 0, () => _chunkIQCHV7Z2cjs.chatListensForAskAiOpens.call(void 0, ), []);
3018
+ _react.useEffect.call(void 0, () => _chunkOTGYA5F7cjs.chatListensForAskAiOpens.call(void 0, ), []);
2982
3019
  const hasMessages = messages.length > 0;
2983
3020
  const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
2984
3021
  const dialogsLoadError = dialogsError && dialogs.length === 0;
@@ -3018,7 +3055,7 @@ function EmbeddableChatInner({
3018
3055
  if (sourceSkeletonCount <= 0) return null;
3019
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: [] }) });
3020
3057
  }
3021
- const { cited, uncited } = splitCitedSources(message.sources, _chunkIQCHV7Z2cjs.flattenAssistantContent.call(void 0, message.content));
3058
+ const { cited, uncited } = splitCitedSources(message.sources, _chunkOTGYA5F7cjs.flattenAssistantContent.call(void 0, message.content));
3022
3059
  if (cited.length === 0 && uncited.length === 0) return null;
3023
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 }) });
3024
3061
  },
@@ -3026,7 +3063,7 @@ function EmbeddableChatInner({
3026
3063
  );
3027
3064
  const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
3028
3065
  const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
3029
- const splitMinWidth = (isV2 ? _chunkIQCHV7Z2cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkIQCHV7Z2cjs.CHAT_BLOCK_MIN_WIDTH;
3066
+ const splitMinWidth = (isV2 ? _chunkOTGYA5F7cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkOTGYA5F7cjs.CHAT_BLOCK_MIN_WIDTH;
3030
3067
  const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
3031
3068
  _react.useEffect.call(void 0, () => {
3032
3069
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
@@ -3045,7 +3082,7 @@ function EmbeddableChatInner({
3045
3082
  [splitMinWidth]
3046
3083
  );
3047
3084
  const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
3048
- const railStorageHydrated = _chunkIQCHV7Z2cjs.useIsHydrated.call(void 0, );
3085
+ const railStorageHydrated = _chunkOTGYA5F7cjs.useIsHydrated.call(void 0, );
3049
3086
  const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
3050
3087
  if (railStorageHydrated && !railStorageRead) {
3051
3088
  setRailStorageRead(true);
@@ -3099,7 +3136,7 @@ function EmbeddableChatInner({
3099
3136
  resetToNewChat();
3100
3137
  }, [clearWhatToAskDraft, resetToNewChat]);
3101
3138
  const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
3102
- const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkIQCHV7Z2cjs.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);
3103
3140
  const showWhatToAsk = (content) => {
3104
3141
  whatToAsk.clearDraft();
3105
3142
  resetToNewChat();
@@ -3195,7 +3232,7 @@ function EmbeddableChatInner({
3195
3232
  }),
3196
3233
  [resetToNewChat, contextMaxItems]
3197
3234
  );
3198
- const splitHeaderMenuItems = _chunkIQCHV7Z2cjs.chatDialogMenuItems.call(void 0, {
3235
+ const splitHeaderMenuItems = _chunkOTGYA5F7cjs.chatDialogMenuItems.call(void 0, {
3199
3236
  onCopyLink: headerOnCopyLink,
3200
3237
  onRename: headerOnRename,
3201
3238
  onCompact: headerOnCompact,
@@ -3275,7 +3312,7 @@ function EmbeddableChatInner({
3275
3312
  onRetry: reloadDialogs
3276
3313
  };
3277
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,
3278
- _chunkIQCHV7Z2cjs.MingoChatHeader,
3315
+ _chunkOTGYA5F7cjs.MingoChatHeader,
3279
3316
  {
3280
3317
  title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
3281
3318
  subtitle: archiveOpen ? void 0 : headerPersonName,
@@ -3295,7 +3332,7 @@ function EmbeddableChatInner({
3295
3332
  const body = (
3296
3333
  // The whole panel reads the appearance (the composer's footer too), not
3297
3334
  // only the thread `ChatMessageList` provides it to.
3298
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.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: [
3299
3336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3300
3337
  "div",
3301
3338
  {
@@ -3303,7 +3340,7 @@ function EmbeddableChatInner({
3303
3340
  "data-surface": isV2 ? "mingo" : void 0,
3304
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" : ""}`,
3305
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,
3306
- _chunkIQCHV7Z2cjs.ChatArchivePage,
3343
+ _chunkOTGYA5F7cjs.ChatArchivePage,
3307
3344
  {
3308
3345
  dialogs: archivedDialogs,
3309
3346
  onSelectDialog: handleArchivedSelect,
@@ -3333,7 +3370,7 @@ function EmbeddableChatInner({
3333
3370
  narrow: true,
3334
3371
  className: "col-start-1 row-span-3 row-start-1",
3335
3372
  innerClassName: "flex min-h-0 flex-col",
3336
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.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" })
3337
3374
  }
3338
3375
  ),
3339
3376
  isV2 ? v2Header : showWideHeader ? (
@@ -3372,7 +3409,7 @@ function EmbeddableChatInner({
3372
3409
  // (Figma 116:51217) and the magnifier toggle is hidden.
3373
3410
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3374
3411
  railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3375
- _chunkIQCHV7Z2cjs.ChatHeaderSearchField,
3412
+ _chunkOTGYA5F7cjs.ChatHeaderSearchField,
3376
3413
  {
3377
3414
  initialValue: mingoCaps.searchQuery,
3378
3415
  onSearchChange: mingoCaps.onSearchChange,
@@ -3459,10 +3496,10 @@ function EmbeddableChatInner({
3459
3496
  // guide, resolved into `narrowHeaderProps` above. (Wide layouts,
3460
3497
  // including rail-collapsed, use the wide header above.) Embedded
3461
3498
  // previews (hero demo tabs) force the compact bar via `compact`.
3462
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3463
3500
  ),
3464
3501
  activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3465
- _chunkIQCHV7Z2cjs.GuideModeBanner,
3502
+ _chunkOTGYA5F7cjs.GuideModeBanner,
3466
3503
  {
3467
3504
  className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
3468
3505
  }
@@ -3472,7 +3509,7 @@ function EmbeddableChatInner({
3472
3509
  // Archive list inside the rail (header lives in the split
3473
3510
  // header's left cell above). Right chat block stays put.
3474
3511
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3475
- _chunkIQCHV7Z2cjs.ChatArchivePage,
3512
+ _chunkOTGYA5F7cjs.ChatArchivePage,
3476
3513
  {
3477
3514
  embedded: true,
3478
3515
  dialogs: archivedDialogs,
@@ -3486,7 +3523,7 @@ function EmbeddableChatInner({
3486
3523
  }
3487
3524
  )
3488
3525
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3489
- _chunkIQCHV7Z2cjs.MingoHistoryRail,
3526
+ _chunkOTGYA5F7cjs.MingoHistoryRail,
3490
3527
  {
3491
3528
  dialogs,
3492
3529
  activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
@@ -3514,7 +3551,7 @@ function EmbeddableChatInner({
3514
3551
  // v2: the archive opens in the chat column under the chat's
3515
3552
  // header; the list stays, and "Chat Archive" there toggles back.
3516
3553
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3517
- _chunkIQCHV7Z2cjs.MingoArchiveList,
3554
+ _chunkOTGYA5F7cjs.MingoArchiveList,
3518
3555
  {
3519
3556
  dialogs: archivedDialogs,
3520
3557
  onSelectDialog: handleArchivedSelect,
@@ -3527,7 +3564,7 @@ function EmbeddableChatInner({
3527
3564
  }
3528
3565
  )
3529
3566
  ) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3530
- _chunkIQCHV7Z2cjs.MingoChatRail,
3567
+ _chunkOTGYA5F7cjs.MingoChatRail,
3531
3568
  {
3532
3569
  ...mingoRailProps,
3533
3570
  onNewChat: () => setComposeOpen(true),
@@ -3546,7 +3583,7 @@ function EmbeddableChatInner({
3546
3583
  // single-column view. No composer here; "Start New Chat" opens
3547
3584
  // the compose view.
3548
3585
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3549
- _chunkIQCHV7Z2cjs.MingoHistoryRail,
3586
+ _chunkOTGYA5F7cjs.MingoHistoryRail,
3550
3587
  {
3551
3588
  className: "duration-200 animate-in fade-in-0",
3552
3589
  dialogs,
@@ -3589,14 +3626,14 @@ function EmbeddableChatInner({
3589
3626
  {
3590
3627
  className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
3591
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,
3592
- _chunkIQCHV7Z2cjs.ChatMessageList,
3629
+ _chunkOTGYA5F7cjs.ChatMessageList,
3593
3630
  {
3594
3631
  messages,
3595
3632
  isLoading: messagesInitialLoading,
3596
3633
  fill: previewMode,
3597
3634
  appearance,
3598
3635
  isTyping: chatLoading,
3599
- typingMessage: streamingProgress ? _chunkIQCHV7Z2cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3636
+ typingMessage: streamingProgress ? _chunkOTGYA5F7cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3600
3637
  pendingApprovals,
3601
3638
  autoScroll: !previewMode,
3602
3639
  pinBottom: previewMode,
@@ -3609,7 +3646,7 @@ function EmbeddableChatInner({
3609
3646
  renderMention,
3610
3647
  renderAfterMessage: renderMessageSources,
3611
3648
  onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
3612
- NavLinkAnchor: _chunkIQCHV7Z2cjs.NavLinkAnchorViaRuntime,
3649
+ NavLinkAnchor: _chunkOTGYA5F7cjs.NavLinkAnchorViaRuntime,
3613
3650
  className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
3614
3651
  contentClassName: "max-w-none pb-0",
3615
3652
  fullWidth: true,
@@ -3623,7 +3660,7 @@ function EmbeddableChatInner({
3623
3660
  quick-action chips. Guide mode keeps the slash-command
3624
3661
  onboarding list below. */
3625
3662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3626
- _chunkIQCHV7Z2cjs.MingoWelcome,
3663
+ _chunkOTGYA5F7cjs.MingoWelcome,
3627
3664
  {
3628
3665
  onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
3629
3666
  historyPageSize,
@@ -3639,7 +3676,7 @@ function EmbeddableChatInner({
3639
3676
  + slash-command onboarding list share one scroll region,
3640
3677
  with a pinned quick-action chip row above the composer. */
3641
3678
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3642
- _chunkIQCHV7Z2cjs.GuideWelcome,
3679
+ _chunkOTGYA5F7cjs.GuideWelcome,
3643
3680
  {
3644
3681
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
3645
3682
  subtitleLoading: emptyStateLoading,
@@ -3696,7 +3733,7 @@ function EmbeddableChatInner({
3696
3733
  }
3697
3734
  ),
3698
3735
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3699
- _chunkIQCHV7Z2cjs.ChatAttachmentChipStrip,
3736
+ _chunkOTGYA5F7cjs.ChatAttachmentChipStrip,
3700
3737
  {
3701
3738
  attachments: stagedAttachments,
3702
3739
  onRemove: removeAttachment,
@@ -3704,7 +3741,7 @@ function EmbeddableChatInner({
3704
3741
  }
3705
3742
  ),
3706
3743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3707
- _chunkIQCHV7Z2cjs.ChatComposer,
3744
+ _chunkOTGYA5F7cjs.ChatComposer,
3708
3745
  {
3709
3746
  archived: isViewingArchived,
3710
3747
  lock: composerLock,
@@ -3756,7 +3793,7 @@ function EmbeddableChatInner({
3756
3793
  ),
3757
3794
  galleryModal,
3758
3795
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3759
- _chunkIQCHV7Z2cjs.ChatDialogModals,
3796
+ _chunkOTGYA5F7cjs.ChatDialogModals,
3760
3797
  {
3761
3798
  renameTarget,
3762
3799
  setRenameTarget,
@@ -3772,13 +3809,13 @@ function EmbeddableChatInner({
3772
3809
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
3773
3810
  ] }) }) })
3774
3811
  );
3775
- const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIQCHV7Z2cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3812
+ const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkOTGYA5F7cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3776
3813
  shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
3777
3814
  sourceLabel,
3778
3815
  " AI Assistant"
3779
3816
  ] }) }),
3780
3817
  body
3781
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIQCHV7Z2cjs.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,
3782
3819
  _chunkEHANO6UEcjs.DrawerContent,
3783
3820
  {
3784
3821
  side: "right",