@flamingo-stack/openframe-frontend-core 0.0.732 → 0.0.734

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 (78) hide show
  1. package/dist/{chunk-YGKVHSNQ.cjs → chunk-2OHBH6PS.cjs} +42 -42
  2. package/dist/{chunk-MEDDKM3A.cjs → chunk-3HPB4H4C.cjs} +2 -2
  3. package/dist/{chunk-BS4EZZCN.cjs → chunk-3NANWZO3.cjs} +15 -15
  4. package/dist/{chunk-5HMGK3N6.cjs → chunk-4Q34V7MD.cjs} +20 -20
  5. package/dist/{chunk-22ZK7BA3.cjs → chunk-4V672TEI.cjs} +1127 -1072
  6. package/dist/{chunk-OI7VCXYU.cjs → chunk-5DDFSGCE.cjs} +40 -40
  7. package/dist/{chunk-CUF3IYIB.cjs → chunk-5OGT7H2S.cjs} +28 -28
  8. package/dist/{chunk-C5NERNE6.cjs → chunk-73ZW3265.cjs} +93 -93
  9. package/dist/{chunk-GID62YEN.cjs → chunk-AAFW4STC.cjs} +3 -3
  10. package/dist/{chunk-MVZ6XFPK.cjs → chunk-AOTOOGNX.cjs} +8 -8
  11. package/dist/{chunk-SJRR745G.cjs → chunk-BP6R5WDW.cjs} +44 -44
  12. package/dist/{chunk-OJ3XU3YZ.cjs → chunk-CMUEFHM3.cjs} +4 -4
  13. package/dist/{chunk-3BLBWZ6A.cjs → chunk-D34BLEIR.cjs} +7 -7
  14. package/dist/{chunk-XOQ2UUVS.cjs → chunk-DHIISS4W.cjs} +50 -40
  15. package/dist/{chunk-RIXGLS5Y.cjs → chunk-DUVOQHQI.cjs} +4 -4
  16. package/dist/{chunk-E3N24573.cjs → chunk-DUXLZPMJ.cjs} +9 -9
  17. package/dist/{chunk-6KDGIOLP.cjs → chunk-EMBH2EJO.cjs} +89 -89
  18. package/dist/{chunk-N466AJGN.cjs → chunk-FA5SMA7L.cjs} +17 -17
  19. package/dist/{chunk-AEVGCB3Y.cjs → chunk-FCGLSWKR.cjs} +4 -4
  20. package/dist/{chunk-MANNIJ42.cjs → chunk-FICJS5OA.cjs} +6 -0
  21. package/dist/{chunk-KLXHCNDC.cjs → chunk-FTTLBMHU.cjs} +3 -3
  22. package/dist/{chunk-7DUXR4HL.cjs → chunk-GVTDVS5U.cjs} +3 -3
  23. package/dist/{chunk-ZWMPAFGB.cjs → chunk-HAWQA5FI.cjs} +236 -236
  24. package/dist/{chunk-BDTX2OEE.cjs → chunk-JRC3KXKV.cjs} +32 -32
  25. package/dist/{chunk-PRWBVIWW.cjs → chunk-KSXZABGH.cjs} +59 -59
  26. package/dist/{chunk-G37LT2ID.cjs → chunk-L4ZNR5V7.cjs} +38 -38
  27. package/dist/{chunk-I46MQ4R5.cjs → chunk-L7WJBJU7.cjs} +73 -73
  28. package/dist/{chunk-NYY25425.cjs → chunk-MYBTNOS6.cjs} +2 -2
  29. package/dist/{chunk-HELVKMRG.cjs → chunk-NTJE6SM6.cjs} +2 -2
  30. package/dist/{chunk-5HSMTSHU.cjs → chunk-OV7QQHLG.cjs} +24 -24
  31. package/dist/{chunk-6HHUU56Y.cjs → chunk-R65UD6BH.cjs} +14 -14
  32. package/dist/{chunk-CC3LINHF.cjs → chunk-SA7LDEVJ.cjs} +3 -3
  33. package/dist/{chunk-TLDCSTTQ.cjs → chunk-TLQQP2EL.cjs} +10 -10
  34. package/dist/{chunk-QMTC3BK3.cjs → chunk-ZJNYWNCB.cjs} +21 -21
  35. package/dist/{chunk-HH4BMYDX.cjs → chunk-ZRYKDN2J.cjs} +19 -19
  36. package/dist/{cloud-tenants-ILRE74JY.cjs → cloud-tenants-HU7YZD33.cjs} +21 -21
  37. package/dist/components/case-studies/index.cjs +34 -34
  38. package/dist/components/chat/embeddable-chat.d.ts +16 -0
  39. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  40. package/dist/components/chat/embeddable-chat.js +5 -2
  41. package/dist/components/chat/index.cjs +15 -15
  42. package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
  43. package/dist/components/chat/utils/icon-library.js +6 -0
  44. package/dist/components/contact/index.cjs +22 -22
  45. package/dist/components/docs/index.cjs +25 -25
  46. package/dist/components/embeds/index.cjs +22 -22
  47. package/dist/components/faq/index.cjs +22 -22
  48. package/dist/components/features/index.cjs +21 -21
  49. package/dist/components/help-center-pages/index.cjs +137 -137
  50. package/dist/components/index.cjs +76 -76
  51. package/dist/components/layout/page-heading.d.ts +9 -1
  52. package/dist/components/layout/page-heading.d.ts.map +1 -1
  53. package/dist/components/layout/page-heading.js +15 -5
  54. package/dist/components/meeting-scheduler/index.cjs +63 -63
  55. package/dist/components/navigation/index.cjs +24 -24
  56. package/dist/components/onboarding-guides/index.cjs +24 -24
  57. package/dist/components/product-demo/index.cjs +8 -8
  58. package/dist/components/related-content/index.cjs +9 -9
  59. package/dist/components/tickets/index.cjs +25 -25
  60. package/dist/components/ui/index.cjs +21 -21
  61. package/dist/components/ui/searchable-select.d.ts +29 -3
  62. package/dist/components/ui/searchable-select.d.ts.map +1 -1
  63. package/dist/components/ui/searchable-select.js +101 -45
  64. package/dist/{devices-A6SFNGE4.cjs → devices-CKLN7BHY.cjs} +22 -22
  65. package/dist/{embeddable-chat-BKPYNOIM.cjs → embeddable-chat-FTAX4SVV.cjs} +95 -92
  66. package/dist/hooks/index.cjs +8 -8
  67. package/dist/index.cjs +27 -27
  68. package/dist/{knowledge-5ZCVKUYV.cjs → knowledge-NRLHSCC5.cjs} +22 -22
  69. package/dist/{logs-CL4OJASB.cjs → logs-BR6SLYAF.cjs} +29 -29
  70. package/dist/{policies-7D44ZVS5.cjs → policies-MQRXBYG2.cjs} +25 -25
  71. package/dist/{remote-session-QB3CIZRM.cjs → remote-session-Z4YZFG5E.cjs} +9 -9
  72. package/dist/{software-update-AX6TZL26.cjs → software-update-RUGIQP7N.cjs} +25 -25
  73. package/dist/{tickets-board-7FAV2YWF.cjs → tickets-board-JOSYLOS7.cjs} +12 -12
  74. package/package.json +1 -1
  75. package/src/components/chat/embeddable-chat.tsx +29 -2
  76. package/src/components/chat/utils/icon-library.tsx +7 -0
  77. package/src/components/layout/page-heading.tsx +37 -7
  78. package/src/components/ui/searchable-select.tsx +124 -32
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkMEDDKM3Acjs = require('./chunk-MEDDKM3A.cjs');
7
+ var _chunk3HPB4H4Ccjs = require('./chunk-3HPB4H4C.cjs');
8
8
  require('./chunk-24I6RFVU.cjs');
9
9
 
10
10
 
@@ -58,15 +58,15 @@ require('./chunk-24I6RFVU.cjs');
58
58
 
59
59
 
60
60
 
61
- var _chunkZWMPAFGBcjs = require('./chunk-ZWMPAFGB.cjs');
61
+ var _chunkHAWQA5FIcjs = require('./chunk-HAWQA5FI.cjs');
62
62
 
63
63
 
64
- var _chunkHH4BMYDXcjs = require('./chunk-HH4BMYDX.cjs');
64
+ var _chunkZRYKDN2Jcjs = require('./chunk-ZRYKDN2J.cjs');
65
65
  require('./chunk-HZJRERJW.cjs');
66
66
 
67
67
 
68
68
 
69
- var _chunkE3N24573cjs = require('./chunk-E3N24573.cjs');
69
+ var _chunkDUXLZPMJcjs = require('./chunk-DUXLZPMJ.cjs');
70
70
 
71
71
 
72
72
  var _chunkMJGX357Lcjs = require('./chunk-MJGX357L.cjs');
@@ -1870,8 +1870,8 @@ require('./chunk-LMBYZITR.cjs');
1870
1870
  require('./chunk-TMVC7S2R.cjs');
1871
1871
  require('./chunk-IYHH5EIO.cjs');
1872
1872
  require('./chunk-XIBCMGBW.cjs');
1873
- require('./chunk-CC3LINHF.cjs');
1874
- require('./chunk-HELVKMRG.cjs');
1873
+ require('./chunk-SA7LDEVJ.cjs');
1874
+ require('./chunk-NTJE6SM6.cjs');
1875
1875
  require('./chunk-JKX2C3I2.cjs');
1876
1876
 
1877
1877
 
@@ -1884,13 +1884,13 @@ require('./chunk-SKI6NKOE.cjs');
1884
1884
 
1885
1885
 
1886
1886
 
1887
- var _chunkXOQ2UUVScjs = require('./chunk-XOQ2UUVS.cjs');
1888
- require('./chunk-AEVGCB3Y.cjs');
1887
+ var _chunkDHIISS4Wcjs = require('./chunk-DHIISS4W.cjs');
1888
+ require('./chunk-FCGLSWKR.cjs');
1889
1889
  require('./chunk-YADG5Q7C.cjs');
1890
- require('./chunk-NYY25425.cjs');
1890
+ require('./chunk-MYBTNOS6.cjs');
1891
1891
 
1892
1892
 
1893
- var _chunkKLXHCNDCcjs = require('./chunk-KLXHCNDC.cjs');
1893
+ var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.cjs');
1894
1894
  require('./chunk-S5C3OZCO.cjs');
1895
1895
  require('./chunk-32ASZMTV.cjs');
1896
1896
  require('./chunk-OOYBIS7D.cjs');
@@ -1901,10 +1901,10 @@ require('./chunk-RUHKTWGB.cjs');
1901
1901
  require('./chunk-EAY6ZUES.cjs');
1902
1902
  require('./chunk-PX7FY655.cjs');
1903
1903
  require('./chunk-CW3ML76U.cjs');
1904
- require('./chunk-7DUXR4HL.cjs');
1904
+ require('./chunk-GVTDVS5U.cjs');
1905
1905
 
1906
1906
 
1907
- var _chunkMANNIJ42cjs = require('./chunk-MANNIJ42.cjs');
1907
+ var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
1908
1908
  require('./chunk-VOX4E6AX.cjs');
1909
1909
  require('./chunk-UR4K2NSL.cjs');
1910
1910
 
@@ -2128,7 +2128,7 @@ function splitCitedSources(sources, content) {
2128
2128
  }
2129
2129
  const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
2130
2130
  const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
2131
- return { cited: _chunkZWMPAFGBcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkZWMPAFGBcjs.groupSourcesByTable.call(void 0, uncited) };
2131
+ return { cited: _chunkHAWQA5FIcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkHAWQA5FIcjs.groupSourcesByTable.call(void 0, uncited) };
2132
2132
  }
2133
2133
 
2134
2134
  // src/components/chat/utils/host-message.ts
@@ -2179,7 +2179,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
2179
2179
  // src/components/chat/embeddable-chat.tsx
2180
2180
  var _jsxruntime = require('react/jsx-runtime');
2181
2181
  var HISTORY_RAIL_WIDTH = 320;
2182
- var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkZWMPAFGBcjs.CHAT_BLOCK_MIN_WIDTH;
2182
+ var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkHAWQA5FIcjs.CHAT_BLOCK_MIN_WIDTH;
2183
2183
  var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
2184
2184
  var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
2185
2185
  var DRAWER_DEFAULT_WIDTH_PX = 750;
@@ -2260,7 +2260,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
2260
2260
  if (!input) return;
2261
2261
  switch (actionId) {
2262
2262
  case "browse":
2263
- input.submit(_chunkZWMPAFGBcjs.formatSingularLookupInvocation.call(void 0, cmdId));
2263
+ input.submit(_chunkHAWQA5FIcjs.formatSingularLookupInvocation.call(void 0, cmdId));
2264
2264
  return;
2265
2265
  case "search":
2266
2266
  input.setValue(`/${cmdId} `);
@@ -2286,7 +2286,7 @@ function SourceChip({
2286
2286
  }) {
2287
2287
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
2288
2288
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
2289
- const cta = _chunkZWMPAFGBcjs.resolveSourceRowCTA.call(void 0,
2289
+ const cta = _chunkHAWQA5FIcjs.resolveSourceRowCTA.call(void 0,
2290
2290
  {
2291
2291
  sourceRepo: src.sourceRepo,
2292
2292
  documentType: src.documentType,
@@ -2296,15 +2296,15 @@ function SourceChip({
2296
2296
  targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
2297
2297
  path: src.path
2298
2298
  },
2299
- _chunkZWMPAFGBcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2299
+ _chunkHAWQA5FIcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2300
2300
  );
2301
2301
  const Icon = cta.icon;
2302
2302
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
2303
- const chipClass = _chunkZWMPAFGBcjs.chatChipClass.call(void 0, { tone: "secondary" });
2304
- const decideTab = (href, targetPlatform) => _chunkXOQ2UUVScjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
2303
+ const chipClass = _chunkHAWQA5FIcjs.chatChipClass.call(void 0, { tone: "secondary" });
2304
+ const decideTab = (href, targetPlatform) => _chunkDHIISS4Wcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
2305
2305
  if (src.items && src.items.length > 0) {
2306
2306
  const dropdownItems = src.items.map((item) => {
2307
- const itemCta = _chunkZWMPAFGBcjs.resolveSourceRowCTA.call(void 0,
2307
+ const itemCta = _chunkHAWQA5FIcjs.resolveSourceRowCTA.call(void 0,
2308
2308
  {
2309
2309
  sourceRepo: src.sourceRepo,
2310
2310
  documentType: item.documentType,
@@ -2314,7 +2314,7 @@ function SourceChip({
2314
2314
  targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
2315
2315
  path: item.path
2316
2316
  },
2317
- _chunkZWMPAFGBcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2317
+ _chunkHAWQA5FIcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
2318
2318
  );
2319
2319
  const ItemIcon = itemCta.icon;
2320
2320
  const itemChatRef = itemCta.chatRef;
@@ -2334,13 +2334,13 @@ function SourceChip({
2334
2334
  };
2335
2335
  });
2336
2336
  const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
2337
- const groupIndices = itemIndices.length > 0 ? _chunkZWMPAFGBcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
2337
+ const groupIndices = itemIndices.length > 0 ? _chunkHAWQA5FIcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
2338
2338
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2339
- _chunkMEDDKM3Acjs.HoverDropdown,
2339
+ _chunk3HPB4H4Ccjs.HoverDropdown,
2340
2340
  {
2341
2341
  items: dropdownItems,
2342
2342
  renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2343
- _chunkZWMPAFGBcjs.NavLinkAnchorViaRuntime,
2343
+ _chunkHAWQA5FIcjs.NavLinkAnchorViaRuntime,
2344
2344
  {
2345
2345
  href,
2346
2346
  targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
@@ -2373,10 +2373,10 @@ function SourceChip({
2373
2373
  ] });
2374
2374
  const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
2375
2375
  clickable,
2376
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
2376
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
2377
2377
  ] });
2378
2378
  const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
2379
- const handled = _chunkZWMPAFGBcjs.executeNavigation.call(void 0, {
2379
+ const handled = _chunkHAWQA5FIcjs.executeNavigation.call(void 0, {
2380
2380
  event: e,
2381
2381
  runtime,
2382
2382
  href,
@@ -2387,14 +2387,14 @@ function SourceChip({
2387
2387
  if (handled && !isNewTab && onClose) onClose();
2388
2388
  };
2389
2389
  if (cta.href && !!src.externalUrl) {
2390
- const resolvedHref = _chunkZWMPAFGBcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
2390
+ const resolvedHref = _chunkHAWQA5FIcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
2391
2391
  const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
2392
2392
  return wrapChip(
2393
2393
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2394
2394
  _chunkV45KLJQPcjs.next_link_default,
2395
2395
  {
2396
2396
  href: resolvedHref,
2397
- ..._chunkXOQ2UUVScjs.newTabAnchorAttrs.call(void 0, isNewTab),
2397
+ ..._chunkDHIISS4Wcjs.newTabAnchorAttrs.call(void 0, isNewTab),
2398
2398
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
2399
2399
  className: chipClass,
2400
2400
  children: chipBody(src.name)
@@ -2403,14 +2403,14 @@ function SourceChip({
2403
2403
  );
2404
2404
  }
2405
2405
  if (cta.href) {
2406
- const resolvedHref = _chunkZWMPAFGBcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
2406
+ const resolvedHref = _chunkHAWQA5FIcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
2407
2407
  const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
2408
2408
  return wrapChip(
2409
2409
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2410
2410
  _chunkV45KLJQPcjs.next_link_default,
2411
2411
  {
2412
2412
  href: resolvedHref,
2413
- ..._chunkXOQ2UUVScjs.newTabAnchorAttrs.call(void 0, isNewTab),
2413
+ ..._chunkDHIISS4Wcjs.newTabAnchorAttrs.call(void 0, isNewTab),
2414
2414
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
2415
2415
  className: chipClass,
2416
2416
  title: displayName,
@@ -2522,7 +2522,7 @@ function EmbeddableChatInner({
2522
2522
  defaultActiveMode,
2523
2523
  shell = "drawer",
2524
2524
  closable = true,
2525
- appearance = _chunkE3N24573cjs.CHAT_APPEARANCE.CLASSIC,
2525
+ appearance = _chunkDUXLZPMJcjs.CHAT_APPEARANCE.CLASSIC,
2526
2526
  onCollapse,
2527
2527
  collapseTo = "list",
2528
2528
  onExpand,
@@ -2537,14 +2537,16 @@ function EmbeddableChatInner({
2537
2537
  guidePendingPrompt,
2538
2538
  onGuidePromptConsumed,
2539
2539
  contextMemory,
2540
+ aboveComposer,
2541
+ onWhatToAsk,
2540
2542
  handleRef
2541
2543
  }) {
2542
2544
  const shellLess = shell !== "drawer";
2543
- const isV2 = appearance === _chunkE3N24573cjs.CHAT_APPEARANCE.V2;
2545
+ const isV2 = appearance === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
2544
2546
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
2545
2547
  const source = _nullishCoalesce(runtime.source, () => ( ""));
2546
2548
  const commandsUrl = runtime.endpoints.commandsUrl;
2547
- const { attachmentsEnabled, user: identityUser } = _chunkZWMPAFGBcjs.useChatIdentity.call(void 0, );
2549
+ const { attachmentsEnabled, user: identityUser } = _chunkHAWQA5FIcjs.useChatIdentity.call(void 0, );
2548
2550
  const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
2549
2551
  _react.useEffect.call(void 0, () => {
2550
2552
  if (process.env.NODE_ENV !== "production") {
@@ -2598,11 +2600,11 @@ function EmbeddableChatInner({
2598
2600
  const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
2599
2601
  const slashCommandsProp = _react.useMemo.call(void 0,
2600
2602
  () => ({
2601
- fetchCommands: (prefix, signal) => _chunkZWMPAFGBcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2603
+ fetchCommands: (prefix, signal) => _chunkHAWQA5FIcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
2602
2604
  resolveSourceIcon: (sourceId) => {
2603
- const iconName = _chunkZWMPAFGBcjs.getSourceIconName.call(void 0, sourceId);
2605
+ const iconName = _chunkHAWQA5FIcjs.getSourceIconName.call(void 0, sourceId);
2604
2606
  if (!iconName) return void 0;
2605
- return { Icon: _chunkMANNIJ42cjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
2607
+ return { Icon: _chunkFICJS5OAcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
2606
2608
  },
2607
2609
  onAction: (cmd, actionId) => {
2608
2610
  dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
@@ -2629,7 +2631,7 @@ function EmbeddableChatInner({
2629
2631
  },
2630
2632
  [controlledActiveMode, onActiveModeChange]
2631
2633
  );
2632
- const { commands: commandsList, loaded: commandsLoaded } = _chunkZWMPAFGBcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2634
+ const { commands: commandsList, loaded: commandsLoaded } = _chunkHAWQA5FIcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
2633
2635
  enabled: activeMode === "guide"
2634
2636
  });
2635
2637
  const commandsById = _react.useMemo.call(void 0, () => {
@@ -2640,7 +2642,7 @@ function EmbeddableChatInner({
2640
2642
  const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
2641
2643
  const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
2642
2644
  const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
2643
- const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkZWMPAFGBcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2645
+ const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkHAWQA5FIcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
2644
2646
  enabled: activeMode === "guide" || !!activeAgentSlug
2645
2647
  });
2646
2648
  const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
@@ -2687,7 +2689,7 @@ function EmbeddableChatInner({
2687
2689
  hasMoreMessages,
2688
2690
  loadMoreMessages,
2689
2691
  dialogCapabilities
2690
- } = _chunkZWMPAFGBcjs.useUnifiedChat.call(void 0, {
2692
+ } = _chunkHAWQA5FIcjs.useUnifiedChat.call(void 0, {
2691
2693
  modes: effectiveModes,
2692
2694
  activeMode,
2693
2695
  mingoStateOverride: mingoState,
@@ -2734,8 +2736,8 @@ function EmbeddableChatInner({
2734
2736
  addFiles: addAttachmentFiles,
2735
2737
  removeAttachment,
2736
2738
  clear: clearAttachments
2737
- } = _chunkZWMPAFGBcjs.useChatAttachments.call(void 0, );
2738
- const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkZWMPAFGBcjs.useChatAttachmentImageGallery.call(void 0, );
2739
+ } = _chunkHAWQA5FIcjs.useChatAttachments.call(void 0, );
2740
+ const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkHAWQA5FIcjs.useChatAttachmentImageGallery.call(void 0, );
2739
2741
  const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
2740
2742
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
2741
2743
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
@@ -2850,7 +2852,7 @@ function EmbeddableChatInner({
2850
2852
  const askAboutRef = _react.useRef.call(void 0, discussRef);
2851
2853
  const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
2852
2854
  const renderEntityCard = _react.useCallback.call(void 0,
2853
- (reference) => _chunkZWMPAFGBcjs.renderChatInlineEntityCard.call(void 0, reference, {
2855
+ (reference) => _chunkHAWQA5FIcjs.renderChatInlineEntityCard.call(void 0, reference, {
2854
2856
  onDiscuss: askAbout,
2855
2857
  onDisplay: displayRef,
2856
2858
  baseRoute: resolvedBaseRoute,
@@ -2860,7 +2862,7 @@ function EmbeddableChatInner({
2860
2862
  [askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
2861
2863
  );
2862
2864
  const mingoAssistantIcon = _react.useMemo.call(void 0,
2863
- () => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXOQ2UUVScjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHH4BMYDXcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
2865
+ () => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDHIISS4Wcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
2864
2866
  [effectiveAssistantIcon]
2865
2867
  );
2866
2868
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
@@ -2877,7 +2879,7 @@ function EmbeddableChatInner({
2877
2879
  if (composerLock) return;
2878
2880
  let augmentedText = text;
2879
2881
  if (readyAttachments.length > 0) {
2880
- const markdown = readyAttachments.map((att) => _chunkZWMPAFGBcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2882
+ const markdown = readyAttachments.map((att) => _chunkHAWQA5FIcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
2881
2883
  augmentedText = `${text}${markdown}`;
2882
2884
  }
2883
2885
  void sendMessage(augmentedText, {
@@ -2916,7 +2918,7 @@ function EmbeddableChatInner({
2916
2918
  // agent/persona (`icon_props.color`) wins; the built-in slug map
2917
2919
  // (fae→pink, mingo→cyan) is only the fallback for unconfigured
2918
2920
  // built-in agents.
2919
- accent: _nullishCoalesce(_chunkZWMPAFGBcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkZWMPAFGBcjs.getAgentAccent.call(void 0, activeAgentSlug)))
2921
+ accent: _nullishCoalesce(_chunkHAWQA5FIcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkHAWQA5FIcjs.getAgentAccent.call(void 0, activeAgentSlug)))
2920
2922
  }));
2921
2923
  }
2922
2924
  return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
@@ -2964,7 +2966,7 @@ function EmbeddableChatInner({
2964
2966
  unarchiveDialog: mingoCaps.unarchiveDialog
2965
2967
  });
2966
2968
  const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
2967
- _chunkZWMPAFGBcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2969
+ _chunkHAWQA5FIcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
2968
2970
  _react.useEffect.call(void 0, () => {
2969
2971
  const handler = (e) => {
2970
2972
  const detail = e.detail;
@@ -2972,8 +2974,8 @@ function EmbeddableChatInner({
2972
2974
  setIsOpen(true);
2973
2975
  setTimeout(() => askAbout(detail.ref), 0);
2974
2976
  };
2975
- window.addEventListener(_chunkZWMPAFGBcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2976
- return () => window.removeEventListener(_chunkZWMPAFGBcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2977
+ window.addEventListener(_chunkHAWQA5FIcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2978
+ return () => window.removeEventListener(_chunkHAWQA5FIcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
2977
2979
  }, [source, askAbout, setIsOpen]);
2978
2980
  const pendingAskRef = _react.useRef.call(void 0, null);
2979
2981
  const isDraft = activeDialogId == null && messages.length === 0;
@@ -3007,10 +3009,10 @@ function EmbeddableChatInner({
3007
3009
  const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
3008
3010
  if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
3009
3011
  };
3010
- window.addEventListener(_chunkZWMPAFGBcjs.ASK_AI_OPEN_EVENT, handler);
3011
- return () => window.removeEventListener(_chunkZWMPAFGBcjs.ASK_AI_OPEN_EVENT, handler);
3012
+ window.addEventListener(_chunkHAWQA5FIcjs.ASK_AI_OPEN_EVENT, handler);
3013
+ return () => window.removeEventListener(_chunkHAWQA5FIcjs.ASK_AI_OPEN_EVENT, handler);
3012
3014
  }, [source, setIsOpen, sendAskPrompt]);
3013
- _react.useEffect.call(void 0, () => _chunkZWMPAFGBcjs.chatListensForAskAiOpens.call(void 0, ), []);
3015
+ _react.useEffect.call(void 0, () => _chunkHAWQA5FIcjs.chatListensForAskAiOpens.call(void 0, ), []);
3014
3016
  const hasMessages = messages.length > 0;
3015
3017
  const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
3016
3018
  const dialogsLoadError = dialogsError && dialogs.length === 0;
@@ -3046,7 +3048,7 @@ function EmbeddableChatInner({
3046
3048
  (message, index) => {
3047
3049
  if (message.role !== "assistant") return null;
3048
3050
  if (chatLoading && index === messages.length - 1) return null;
3049
- const { cited, uncited } = splitCitedSources(message.sources, _chunkZWMPAFGBcjs.flattenAssistantContent.call(void 0, message.content));
3051
+ const { cited, uncited } = splitCitedSources(message.sources, _chunkHAWQA5FIcjs.flattenAssistantContent.call(void 0, message.content));
3050
3052
  if (cited.length === 0 && uncited.length === 0) return null;
3051
3053
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3052
3054
  SourceChips,
@@ -3064,7 +3066,7 @@ function EmbeddableChatInner({
3064
3066
  );
3065
3067
  const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
3066
3068
  const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
3067
- const splitMinWidth = (isV2 ? _chunkZWMPAFGBcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkZWMPAFGBcjs.CHAT_BLOCK_MIN_WIDTH;
3069
+ const splitMinWidth = (isV2 ? _chunkHAWQA5FIcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkHAWQA5FIcjs.CHAT_BLOCK_MIN_WIDTH;
3068
3070
  const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
3069
3071
  _react.useEffect.call(void 0, () => {
3070
3072
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
@@ -3083,7 +3085,7 @@ function EmbeddableChatInner({
3083
3085
  [splitMinWidth]
3084
3086
  );
3085
3087
  const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
3086
- const railStorageHydrated = _chunkZWMPAFGBcjs.useIsHydrated.call(void 0, );
3088
+ const railStorageHydrated = _chunkHAWQA5FIcjs.useIsHydrated.call(void 0, );
3087
3089
  const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
3088
3090
  if (railStorageHydrated && !railStorageRead) {
3089
3091
  setRailStorageRead(true);
@@ -3194,7 +3196,7 @@ function EmbeddableChatInner({
3194
3196
  }),
3195
3197
  [resetToNewChat, contextMaxItems]
3196
3198
  );
3197
- const splitHeaderMenuItems = _chunkZWMPAFGBcjs.chatDialogMenuItems.call(void 0, {
3199
+ const splitHeaderMenuItems = _chunkHAWQA5FIcjs.chatDialogMenuItems.call(void 0, {
3198
3200
  onCopyLink: headerOnCopyLink,
3199
3201
  onRename: headerOnRename,
3200
3202
  onCompact: headerOnCompact,
@@ -3247,8 +3249,8 @@ function EmbeddableChatInner({
3247
3249
  onNewChat: leaveArchiveThen(handleNewChat),
3248
3250
  onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
3249
3251
  archiveActive: archiveOpen,
3250
- // The suggestions a new chat opens on.
3251
- onWhatToAsk: leaveArchiveThen(handleNewChat),
3252
+ // The suggestions a new chat opens on, unless the host has a surface of its own.
3253
+ onWhatToAsk: leaveArchiveThen(_nullishCoalesce(onWhatToAsk, () => ( handleNewChat))),
3252
3254
  statusOf: dialogStatusOf,
3253
3255
  onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
3254
3256
  onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
@@ -3268,7 +3270,7 @@ function EmbeddableChatInner({
3268
3270
  onRetry: reloadDialogs
3269
3271
  };
3270
3272
  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,
3271
- _chunkZWMPAFGBcjs.MingoChatHeader,
3273
+ _chunkHAWQA5FIcjs.MingoChatHeader,
3272
3274
  {
3273
3275
  title: headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
3274
3276
  subtitle: headerPersonName,
@@ -3287,7 +3289,7 @@ function EmbeddableChatInner({
3287
3289
  const body = (
3288
3290
  // The whole panel reads the appearance (the composer's footer too), not
3289
3291
  // only the thread `ChatMessageList` provides it to.
3290
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5M5C6UV4cjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5M5C6UV4cjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
3292
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5M5C6UV4cjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5M5C6UV4cjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
3291
3293
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3292
3294
  "div",
3293
3295
  {
@@ -3295,7 +3297,7 @@ function EmbeddableChatInner({
3295
3297
  "data-surface": isV2 ? "mingo" : void 0,
3296
3298
  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" : ""}`,
3297
3299
  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,
3298
- _chunkZWMPAFGBcjs.ChatArchivePage,
3300
+ _chunkHAWQA5FIcjs.ChatArchivePage,
3299
3301
  {
3300
3302
  dialogs: archivedDialogs,
3301
3303
  onSelectDialog: handleArchivedSelect,
@@ -3325,7 +3327,7 @@ function EmbeddableChatInner({
3325
3327
  narrow: true,
3326
3328
  className: "col-start-1 row-span-3 row-start-1",
3327
3329
  innerClassName: "flex min-h-0 flex-col",
3328
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
3330
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
3329
3331
  }
3330
3332
  ),
3331
3333
  isV2 ? v2Header : showWideHeader ? (
@@ -3349,7 +3351,7 @@ function EmbeddableChatInner({
3349
3351
  // Back is a full-height leading cell, matching the other
3350
3352
  // header cells (not a small inline chevron).
3351
3353
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3352
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
3354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
3353
3355
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Chat Archive" }) })
3354
3356
  ] })
3355
3357
  ) : (
@@ -3359,7 +3361,7 @@ function EmbeddableChatInner({
3359
3361
  // (Figma 116:51217) and the magnifier toggle is hidden.
3360
3362
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3361
3363
  railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3362
- _chunkZWMPAFGBcjs.ChatHeaderSearchField,
3364
+ _chunkHAWQA5FIcjs.ChatHeaderSearchField,
3363
3365
  {
3364
3366
  initialValue: mingoCaps.searchQuery,
3365
3367
  onSearchChange: mingoCaps.onSearchChange,
@@ -3368,7 +3370,7 @@ function EmbeddableChatInner({
3368
3370
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3369
3371
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Current Chats" }) }),
3370
3372
  mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3371
- _chunkZWMPAFGBcjs.ChatHeaderIconButton,
3373
+ _chunkHAWQA5FIcjs.ChatHeaderIconButton,
3372
3374
  {
3373
3375
  onClick: () => setRailSearchOpen((o) => !o),
3374
3376
  "aria-label": "Search chats",
@@ -3377,7 +3379,7 @@ function EmbeddableChatInner({
3377
3379
  }
3378
3380
  )
3379
3381
  ] }),
3380
- headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
3382
+ headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
3381
3383
  ] })
3382
3384
  ) }),
3383
3385
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
@@ -3400,7 +3402,7 @@ function EmbeddableChatInner({
3400
3402
  headerAvatar ? (
3401
3403
  // Owner avatar at the title cell's right edge (Figma 113:63273).
3402
3404
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3403
- _chunkKLXHCNDCcjs.SquareAvatar,
3405
+ _chunkFTTLBMHUcjs.SquareAvatar,
3404
3406
  {
3405
3407
  variant: "round",
3406
3408
  sizePx: 32,
@@ -3414,17 +3416,17 @@ function EmbeddableChatInner({
3414
3416
  )
3415
3417
  ) : null
3416
3418
  ] }),
3417
- isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
3419
+ isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
3418
3420
  headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3419
3421
  _chunkMJGX357Lcjs.ActionsMenuDropdown,
3420
3422
  {
3421
3423
  triggerAriaLabel: "Chat actions",
3422
3424
  onCloseAutoFocus: (e) => e.preventDefault(),
3423
3425
  groups: [{ items: splitHeaderMenuItems }],
3424
- customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
3426
+ customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
3425
3427
  }
3426
3428
  ),
3427
- closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
3429
+ closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
3428
3430
  ] })
3429
3431
  ] })
3430
3432
  ) : (
@@ -3432,10 +3434,10 @@ function EmbeddableChatInner({
3432
3434
  // guide, resolved into `narrowHeaderProps` above. (Wide layouts,
3433
3435
  // including rail-collapsed, use the wide header above.) Embedded
3434
3436
  // previews (hero demo tabs) force the compact bar via `compact`.
3435
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3437
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
3436
3438
  ),
3437
3439
  activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3438
- _chunkZWMPAFGBcjs.GuideModeBanner,
3440
+ _chunkHAWQA5FIcjs.GuideModeBanner,
3439
3441
  {
3440
3442
  className: _chunk3ATAYP36cjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
3441
3443
  }
@@ -3445,7 +3447,7 @@ function EmbeddableChatInner({
3445
3447
  // Archive list inside the rail (header lives in the split
3446
3448
  // header's left cell above). Right chat block stays put.
3447
3449
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3448
- _chunkZWMPAFGBcjs.ChatArchivePage,
3450
+ _chunkHAWQA5FIcjs.ChatArchivePage,
3449
3451
  {
3450
3452
  embedded: true,
3451
3453
  dialogs: archivedDialogs,
@@ -3459,7 +3461,7 @@ function EmbeddableChatInner({
3459
3461
  }
3460
3462
  )
3461
3463
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3462
- _chunkZWMPAFGBcjs.MingoHistoryRail,
3464
+ _chunkHAWQA5FIcjs.MingoHistoryRail,
3463
3465
  {
3464
3466
  dialogs,
3465
3467
  activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
@@ -3486,7 +3488,7 @@ function EmbeddableChatInner({
3486
3488
  // v2: the archive opens in the chat column under the chat's
3487
3489
  // header; the list stays, and "Chat Archive" there toggles back.
3488
3490
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3489
- _chunkZWMPAFGBcjs.MingoArchiveList,
3491
+ _chunkHAWQA5FIcjs.MingoArchiveList,
3490
3492
  {
3491
3493
  dialogs: archivedDialogs,
3492
3494
  onSelectDialog: handleArchivedSelect,
@@ -3499,7 +3501,7 @@ function EmbeddableChatInner({
3499
3501
  }
3500
3502
  )
3501
3503
  ) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3502
- _chunkZWMPAFGBcjs.MingoChatRail,
3504
+ _chunkHAWQA5FIcjs.MingoChatRail,
3503
3505
  {
3504
3506
  ...mingoRailProps,
3505
3507
  onNewChat: () => setComposeOpen(true),
@@ -3518,7 +3520,7 @@ function EmbeddableChatInner({
3518
3520
  // single-column view. No composer here; "Start New Chat" opens
3519
3521
  // the compose view.
3520
3522
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3521
- _chunkZWMPAFGBcjs.MingoHistoryRail,
3523
+ _chunkHAWQA5FIcjs.MingoHistoryRail,
3522
3524
  {
3523
3525
  className: "duration-200 animate-in fade-in-0",
3524
3526
  dialogs,
@@ -3558,14 +3560,14 @@ function EmbeddableChatInner({
3558
3560
  // skeleton overflows a short panel and grows its OWN
3559
3561
  // scrollbar — ugly. `fill` top-anchors + clips overflow so
3560
3562
  // it reads as "the whole panel is loading" and never scrolls.
3561
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
3563
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
3562
3564
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3563
- _chunkZWMPAFGBcjs.ChatMessageList,
3565
+ _chunkHAWQA5FIcjs.ChatMessageList,
3564
3566
  {
3565
3567
  messages,
3566
3568
  appearance,
3567
3569
  isTyping: chatLoading,
3568
- typingMessage: streamingProgress ? _chunkZWMPAFGBcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3570
+ typingMessage: streamingProgress ? _chunkHAWQA5FIcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
3569
3571
  pendingApprovals,
3570
3572
  autoScroll: !previewMode,
3571
3573
  pinBottom: previewMode,
@@ -3578,7 +3580,7 @@ function EmbeddableChatInner({
3578
3580
  renderMention,
3579
3581
  renderAfterMessage: renderMessageSources,
3580
3582
  onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
3581
- NavLinkAnchor: _chunkZWMPAFGBcjs.NavLinkAnchorViaRuntime,
3583
+ NavLinkAnchor: _chunkHAWQA5FIcjs.NavLinkAnchorViaRuntime,
3582
3584
  className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
3583
3585
  contentClassName: "max-w-none pb-0",
3584
3586
  fullWidth: true,
@@ -3592,7 +3594,7 @@ function EmbeddableChatInner({
3592
3594
  quick-action chips. Guide mode keeps the slash-command
3593
3595
  onboarding list below. */
3594
3596
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3595
- _chunkZWMPAFGBcjs.MingoWelcome,
3597
+ _chunkHAWQA5FIcjs.MingoWelcome,
3596
3598
  {
3597
3599
  onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
3598
3600
  ...mingoWelcome,
@@ -3607,7 +3609,7 @@ function EmbeddableChatInner({
3607
3609
  + slash-command onboarding list share one scroll region,
3608
3610
  with a pinned quick-action chip row above the composer. */
3609
3611
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3610
- _chunkZWMPAFGBcjs.GuideWelcome,
3612
+ _chunkHAWQA5FIcjs.GuideWelcome,
3611
3613
  {
3612
3614
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
3613
3615
  subtitleLoading: emptyStateLoading,
@@ -3624,7 +3626,7 @@ function EmbeddableChatInner({
3624
3626
  agentSlug: activeAgentSlug,
3625
3627
  children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
3626
3628
  !commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3627
- _chunkZWMPAFGBcjs.MingoOnboardingCardSkeleton,
3629
+ _chunkHAWQA5FIcjs.MingoOnboardingCardSkeleton,
3628
3630
  {
3629
3631
  titleWidth: variant.titleWidth,
3630
3632
  slashWidth: variant.slashWidth,
@@ -3633,7 +3635,7 @@ function EmbeddableChatInner({
3633
3635
  `chip-skeleton-${i}`
3634
3636
  )),
3635
3637
  chipCommands.map((cmd) => {
3636
- const Icon = _chunkMANNIJ42cjs.resolveIcon.call(void 0, cmd.iconName);
3638
+ const Icon = _chunkFICJS5OAcjs.resolveIcon.call(void 0, cmd.iconName);
3637
3639
  const cmdId = cmd.id;
3638
3640
  const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
3639
3641
  const cardActions = cmd.actions.map((action) => ({
@@ -3642,7 +3644,7 @@ function EmbeddableChatInner({
3642
3644
  onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
3643
3645
  }));
3644
3646
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3645
- _chunkE3N24573cjs.MingoOnboardingCard,
3647
+ _chunkDUXLZPMJcjs.MingoOnboardingCard,
3646
3648
  {
3647
3649
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
3648
3650
  title: label,
@@ -3660,8 +3662,9 @@ function EmbeddableChatInner({
3660
3662
  },
3661
3663
  contentViewKey
3662
3664
  ) }),
3665
+ aboveComposer != null && aboveComposer !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]", children: aboveComposer }),
3663
3666
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3664
- _chunkZWMPAFGBcjs.ChatAttachmentChipStrip,
3667
+ _chunkHAWQA5FIcjs.ChatAttachmentChipStrip,
3665
3668
  {
3666
3669
  attachments: stagedAttachments,
3667
3670
  onRemove: removeAttachment,
@@ -3669,7 +3672,7 @@ function EmbeddableChatInner({
3669
3672
  }
3670
3673
  ),
3671
3674
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3672
- _chunkZWMPAFGBcjs.ChatComposer,
3675
+ _chunkHAWQA5FIcjs.ChatComposer,
3673
3676
  {
3674
3677
  archived: isViewingArchived,
3675
3678
  lock: composerLock,
@@ -3720,7 +3723,7 @@ function EmbeddableChatInner({
3720
3723
  ),
3721
3724
  galleryModal,
3722
3725
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3723
- _chunkZWMPAFGBcjs.ChatDialogModals,
3726
+ _chunkHAWQA5FIcjs.ChatDialogModals,
3724
3727
  {
3725
3728
  renameTarget,
3726
3729
  setRenameTarget,
@@ -3736,14 +3739,14 @@ function EmbeddableChatInner({
3736
3739
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
3737
3740
  ] }) }) })
3738
3741
  );
3739
- const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZWMPAFGBcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3742
+ const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHAWQA5FIcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
3740
3743
  shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
3741
3744
  sourceLabel,
3742
3745
  " AI Assistant"
3743
3746
  ] }) }),
3744
3747
  body
3745
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMEDDKM3Acjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZWMPAFGBcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3746
- _chunkMEDDKM3Acjs.DrawerContent,
3748
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HPB4H4Ccjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAWQA5FIcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3749
+ _chunk3HPB4H4Ccjs.DrawerContent,
3747
3750
  {
3748
3751
  side: "right",
3749
3752
  flush: true,
@@ -3775,7 +3778,7 @@ function EmbeddableChatInner({
3775
3778
  _chunkAZL332TKcjs.Button,
3776
3779
  {
3777
3780
  onClick: handleOpen,
3778
- leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHH4BMYDXcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
3781
+ leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
3779
3782
  tabIndex: isOpen ? -1 : 0,
3780
3783
  className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
3781
3784
  children: "Ask AI"