@flamingo-stack/openframe-frontend-core 0.0.797 → 0.0.799

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 (92) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-VFCPLZFY.cjs → chunk-247LDSQE.cjs} +61 -61
  3. package/dist/{chunk-UKLSEI7S.cjs → chunk-2KEBGXA4.cjs} +4 -4
  4. package/dist/{chunk-GAFNJDZV.cjs → chunk-3MRK7X6Z.cjs} +3 -3
  5. package/dist/{chunk-7GFKJGWH.cjs → chunk-4RK62AMV.cjs} +68 -68
  6. package/dist/{chunk-PBL66EVT.cjs → chunk-6CB3AXZM.cjs} +30 -30
  7. package/dist/{chunk-BUCCV72E.cjs → chunk-6EDOASF4.cjs} +11 -11
  8. package/dist/{chunk-NBUHCGGG.cjs → chunk-AVAE5B2A.cjs} +2 -2
  9. package/dist/{chunk-YHCC3BLP.cjs → chunk-B3X4J4HQ.cjs} +14 -14
  10. package/dist/{chunk-ZPTHTGHK.cjs → chunk-BSBCZIPQ.cjs} +39 -39
  11. package/dist/{chunk-CO6FB4DR.cjs → chunk-CS2KLF4O.cjs} +13 -13
  12. package/dist/{chunk-FFEE2ON2.cjs → chunk-DBRXZC2I.cjs} +139 -129
  13. package/dist/{chunk-5CEXT3V7.cjs → chunk-FDDM5Z52.cjs} +2 -2
  14. package/dist/{chunk-QKXXHOOD.cjs → chunk-FIKIPO4F.cjs} +13 -0
  15. package/dist/{chunk-3H3CQ7BQ.cjs → chunk-GRNTIKPD.cjs} +54 -44
  16. package/dist/{chunk-LAJNO2EW.cjs → chunk-HB7FVY46.cjs} +32 -32
  17. package/dist/{chunk-RD57WBJK.cjs → chunk-IJGIWG6G.cjs} +4 -4
  18. package/dist/{chunk-OZUUCVDZ.cjs → chunk-O6KQ64RI.cjs} +2 -2
  19. package/dist/{chunk-KWINW3FC.cjs → chunk-PO5IIN4S.cjs} +11 -11
  20. package/dist/{chunk-YMWK7GOC.cjs → chunk-PPORXZI7.cjs} +139 -119
  21. package/dist/{chunk-IS77JFF6.cjs → chunk-SDV335EO.cjs} +4 -4
  22. package/dist/{chunk-7MLK7BGF.cjs → chunk-T5OCU3EL.cjs} +4 -4
  23. package/dist/{chunk-4M5JIVAH.cjs → chunk-TETW5NR4.cjs} +3 -3
  24. package/dist/{chunk-CHF6PHOR.cjs → chunk-UFCKY7OL.cjs} +16 -16
  25. package/dist/{chunk-7AMU2ZD2.cjs → chunk-XJD7IZR2.cjs} +48 -48
  26. package/dist/{chunk-NX4QOEPJ.cjs → chunk-ZOK4OWMJ.cjs} +2 -2
  27. package/dist/{cloud-tenants-THCY3N2P.cjs → cloud-tenants-BQAVRN44.cjs} +6 -6
  28. package/dist/components/case-studies/index.cjs +20 -20
  29. package/dist/components/chat/entity-cards/roadmap-card.d.ts +5 -0
  30. package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
  31. package/dist/components/chat/entity-cards/roadmap-card.js +16 -1
  32. package/dist/components/chat/index.cjs +5 -5
  33. package/dist/components/chat/types/entities/roadmap-item.d.ts +8 -0
  34. package/dist/components/chat/types/entities/roadmap-item.d.ts.map +1 -1
  35. package/dist/components/contact/index.cjs +7 -7
  36. package/dist/components/docs/index.cjs +10 -10
  37. package/dist/components/embeds/index.cjs +7 -7
  38. package/dist/components/faq/index.cjs +8 -8
  39. package/dist/components/features/index.cjs +6 -6
  40. package/dist/components/help-center-pages/index.cjs +82 -82
  41. package/dist/components/index.cjs +52 -52
  42. package/dist/components/loading/loading-fallback.d.ts +27 -3
  43. package/dist/components/loading/loading-fallback.d.ts.map +1 -1
  44. package/dist/components/loading/loading-fallback.js +17 -9
  45. package/dist/components/meeting-scheduler/index.cjs +38 -38
  46. package/dist/components/navigation/index.cjs +9 -9
  47. package/dist/components/onboarding-guides/index.cjs +9 -9
  48. package/dist/components/product-demo/index.cjs +15 -15
  49. package/dist/components/related-content/index.cjs +5 -5
  50. package/dist/components/tickets/index.cjs +13 -13
  51. package/dist/components/ui/feature-card.d.ts +1 -1
  52. package/dist/components/ui/feature-card.d.ts.map +1 -1
  53. package/dist/components/ui/feature-card.js +1 -0
  54. package/dist/components/ui/index.cjs +6 -6
  55. package/dist/components/ui/index.d.ts +1 -1
  56. package/dist/components/ui/index.d.ts.map +1 -1
  57. package/dist/components/ui/index.js +9 -1
  58. package/dist/components/ui/markdown-editor.d.ts.map +1 -1
  59. package/dist/components/ui/trendline.d.ts +1 -1
  60. package/dist/components/ui/trendline.d.ts.map +1 -1
  61. package/dist/components/ui/trendline.js +11 -2
  62. package/dist/{devices-N4EF5QDS.cjs → devices-KDT5ZGSG.cjs} +7 -7
  63. package/dist/{embeddable-chat-7Z2OQK3X.cjs → embeddable-chat-ODKTSW3C.cjs} +62 -62
  64. package/dist/index.cjs +12 -10
  65. package/dist/{knowledge-TL4DSXYQ.cjs → knowledge-4NLP77HP.cjs} +7 -7
  66. package/dist/loading-standard/engine.d.mts +22 -4
  67. package/dist/loading-standard/engine.d.mts.map +1 -1
  68. package/dist/loading-standard/rule-examples.d.mts.map +1 -1
  69. package/dist/{logs-4VRUBGKE.cjs → logs-U6VMTY4N.cjs} +14 -14
  70. package/dist/{policies-TLNVCQGG.cjs → policies-TBLFBRFM.cjs} +10 -10
  71. package/dist/{scripts-4LFWHIMH.cjs → scripts-ZMNJWX7I.cjs} +11 -11
  72. package/dist/{software-update-J4ZXQABW.cjs → software-update-Q5AEQ4A4.cjs} +9 -9
  73. package/dist/utils/clickup-drop-down.cjs +22 -0
  74. package/dist/utils/clickup-drop-down.d.ts +26 -0
  75. package/dist/utils/clickup-drop-down.d.ts.map +1 -0
  76. package/dist/utils/clickup-drop-down.js +20 -0
  77. package/dist/utils/index.cjs +20 -0
  78. package/dist/utils/index.d.ts +1 -0
  79. package/dist/utils/index.d.ts.map +1 -1
  80. package/dist/utils/index.js +1 -0
  81. package/package.json +7 -1
  82. package/src/components/chat/entity-cards/roadmap-card.tsx +18 -1
  83. package/src/components/chat/types/entities/roadmap-item.ts +8 -0
  84. package/src/components/loading/loading-fallback.tsx +52 -12
  85. package/src/components/ui/feature-card.tsx +2 -1
  86. package/src/components/ui/index.ts +13 -1
  87. package/src/components/ui/markdown-editor.tsx +1 -0
  88. package/src/components/ui/trendline.tsx +27 -10
  89. package/src/loading-standard/engine.mjs +170 -14
  90. package/src/loading-standard/rule-examples.mjs +50 -0
  91. package/src/utils/clickup-drop-down.ts +41 -0
  92. package/src/utils/index.ts +1 -0
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunk3H3CQ7BQcjs = require('./chunk-3H3CQ7BQ.cjs');
17
+ var _chunkGRNTIKPDcjs = require('./chunk-GRNTIKPD.cjs');
18
18
 
19
19
 
20
20
 
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
107
107
  var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
108
108
 
109
109
 
110
- var _chunkIS77JFF6cjs = require('./chunk-IS77JFF6.cjs');
110
+ var _chunkSDV335EOcjs = require('./chunk-SDV335EO.cjs');
111
111
 
112
112
 
113
113
 
114
114
 
115
115
 
116
- var _chunkQKXXHOODcjs = require('./chunk-QKXXHOOD.cjs');
116
+ var _chunkFIKIPO4Fcjs = require('./chunk-FIKIPO4F.cjs');
117
117
 
118
118
 
119
119
 
@@ -204,7 +204,7 @@ function ChatMessageRow(props) {
204
204
  }
205
205
  function ChatMessageRowLoaded(props) {
206
206
  const { displayName, avatarUrl, timeLabel, body, footer } = props;
207
- const proxiedAvatar = _chunkQKXXHOODcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
207
+ const proxiedAvatar = _chunkFIKIPO4Fcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
208
208
  const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
209
209
  const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
210
210
  const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
@@ -475,6 +475,25 @@ function brandMarkDataUri(name) {
475
475
  return `data:image/svg+xml,${encodeURIComponent(svg)}`;
476
476
  }
477
477
 
478
+ // src/utils/clickup-drop-down.ts
479
+ function optionsOf(field) {
480
+ return Array.isArray(_optionalChain([field, 'optionalAccess', _14 => _14.type_config, 'optionalAccess', _15 => _15.options])) ? field.type_config.options : [];
481
+ }
482
+ function fieldOf(fields, fieldId) {
483
+ return Array.isArray(fields) ? fields.find((f) => _optionalChain([f, 'optionalAccess', _16 => _16.id]) === fieldId) : void 0;
484
+ }
485
+ function clickUpDropDownOption(fields, fieldId) {
486
+ const field = fieldOf(fields, fieldId);
487
+ const value = _optionalChain([field, 'optionalAccess', _17 => _17.value]);
488
+ if (value === null || value === void 0 || value === "") return null;
489
+ const options = optionsOf(field);
490
+ const byId = typeof value === "string" ? options.find((o) => o.id === value) : void 0;
491
+ const position = Number(value);
492
+ const option = _nullishCoalesce(byId, () => ( (Number.isFinite(position) ? options.find((o) => Number(o.orderindex) === position) : void 0)));
493
+ if (!_optionalChain([option, 'optionalAccess', _18 => _18.id])) return null;
494
+ return { id: option.id, name: _optionalChain([option, 'access', _19 => _19.name, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || null };
495
+ }
496
+
478
497
  // src/utils/os-platforms.ts
479
498
  var OS_PLATFORMS = [
480
499
  { id: "windows", name: "Windows", icon: _chunkSXGDKNVEcjs.WindowsClassicIcon },
@@ -797,7 +816,7 @@ function getShellIcon(shellType) {
797
816
  if (!shellType) return void 0;
798
817
  const normalized = shellType.toUpperCase();
799
818
  const shellDef = SHELL_TYPES.find((s) => s.id === normalized);
800
- return _optionalChain([shellDef, 'optionalAccess', _14 => _14.icon]);
819
+ return _optionalChain([shellDef, 'optionalAccess', _22 => _22.icon]);
801
820
  }
802
821
 
803
822
  // src/utils/video-bite-id.ts
@@ -899,7 +918,7 @@ function getOSIcon(osType) {
899
918
  const normalized = normalizeOSType(osType);
900
919
  if (!normalized) return void 0;
901
920
  const osTypeDef = OS_TYPES.find((t) => t.id === normalized);
902
- return _optionalChain([osTypeDef, 'optionalAccess', _15 => _15.icon]);
921
+ return _optionalChain([osTypeDef, 'optionalAccess', _23 => _23.icon]);
903
922
  }
904
923
  function getOSTypeDefinition(osType) {
905
924
  if (!osType) return void 0;
@@ -909,7 +928,7 @@ function getOSTypeDefinition(osType) {
909
928
  }
910
929
  function getOSPlatformId(osType) {
911
930
  const osTypeDef = getOSTypeDefinition(osType);
912
- return _optionalChain([osTypeDef, 'optionalAccess', _16 => _16.platformId]);
931
+ return _optionalChain([osTypeDef, 'optionalAccess', _24 => _24.platformId]);
913
932
  }
914
933
  function isOSPlatform(deviceOS, targetPlatform) {
915
934
  if (!deviceOS || !targetPlatform) return false;
@@ -1072,7 +1091,7 @@ function getCountryByName(name) {
1072
1091
  }
1073
1092
  function getFlagFromCountryName(countryName) {
1074
1093
  const country = getCountryByName(countryName);
1075
- return _optionalChain([country, 'optionalAccess', _17 => _17.flag]);
1094
+ return _optionalChain([country, 'optionalAccess', _25 => _25.flag]);
1076
1095
  }
1077
1096
  function validatePhoneNumber(phoneNumber, countryCode) {
1078
1097
  if (!phoneNumber.trim()) return true;
@@ -1181,10 +1200,10 @@ var GENERIC_EMAIL_DOMAINS = [
1181
1200
  ];
1182
1201
  function extractDomainFromEmail(email) {
1183
1202
  if (!email || !email.includes("@")) return null;
1184
- return _optionalChain([email, 'access', _18 => _18.split, 'call', _19 => _19("@"), 'access', _20 => _20[1], 'optionalAccess', _21 => _21.toLowerCase, 'call', _22 => _22()]) || null;
1203
+ return _optionalChain([email, 'access', _26 => _26.split, 'call', _27 => _27("@"), 'access', _28 => _28[1], 'optionalAccess', _29 => _29.toLowerCase, 'call', _30 => _30()]) || null;
1185
1204
  }
1186
1205
  function normalizeDomain(domain) {
1187
- return _optionalChain([domain, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24(), 'access', _25 => _25.replace, 'call', _26 => _26(/^https?:\/\//, ""), 'access', _27 => _27.replace, 'call', _28 => _28(/^www\./, ""), 'access', _29 => _29.split, 'call', _30 => _30("/"), 'access', _31 => _31[0], 'access', _32 => _32.trim, 'call', _33 => _33()]) || "";
1206
+ return _optionalChain([domain, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32(), 'access', _33 => _33.replace, 'call', _34 => _34(/^https?:\/\//, ""), 'access', _35 => _35.replace, 'call', _36 => _36(/^www\./, ""), 'access', _37 => _37.split, 'call', _38 => _38("/"), 'access', _39 => _39[0], 'access', _40 => _40.trim, 'call', _41 => _41()]) || "";
1188
1207
  }
1189
1208
  function isGenericDomain(domain) {
1190
1209
  const normalized = normalizeDomain(domain);
@@ -1285,7 +1304,7 @@ function clearLegacyAnnouncementCache(platform) {
1285
1304
  // src/utils/announcement-surface.ts
1286
1305
  function isAnnouncementOnSurface(announcement, surface) {
1287
1306
  const surfaces = announcement.surfaces;
1288
- return !_optionalChain([surfaces, 'optionalAccess', _34 => _34.length]) || surfaces.includes(surface);
1307
+ return !_optionalChain([surfaces, 'optionalAccess', _42 => _42.length]) || surfaces.includes(surface);
1289
1308
  }
1290
1309
 
1291
1310
  // src/utils/after-page-load.ts
@@ -1306,7 +1325,7 @@ function afterPageLoad(run, maxWaitMs = 2e3) {
1306
1325
  return () => {
1307
1326
  cancelled = true;
1308
1327
  window.removeEventListener("load", whenIdle);
1309
- if (idleHandle !== null) _optionalChain([w, 'access', _35 => _35.cancelIdleCallback, 'optionalCall', _36 => _36(idleHandle)]);
1328
+ if (idleHandle !== null) _optionalChain([w, 'access', _43 => _43.cancelIdleCallback, 'optionalCall', _44 => _44(idleHandle)]);
1310
1329
  if (timer !== null) clearTimeout(timer);
1311
1330
  };
1312
1331
  }
@@ -1375,7 +1394,7 @@ function createSseSubscription(options) {
1375
1394
  if (connected === next) return;
1376
1395
  connected = next;
1377
1396
  try {
1378
- _optionalChain([onConnectedChange, 'optionalCall', _37 => _37(next)]);
1397
+ _optionalChain([onConnectedChange, 'optionalCall', _45 => _45(next)]);
1379
1398
  } catch (err) {
1380
1399
  console.error("[sse-subscription] onConnectedChange threw:", err);
1381
1400
  }
@@ -1391,7 +1410,7 @@ function createSseSubscription(options) {
1391
1410
  if (status !== "open") {
1392
1411
  confirmTimerId = clearLifecycleTimer(confirmTimerId);
1393
1412
  }
1394
- _optionalChain([onStatusChange, 'optionalCall', _38 => _38(status)]);
1413
+ _optionalChain([onStatusChange, 'optionalCall', _46 => _46(status)]);
1395
1414
  };
1396
1415
  const internalReconnect = (delayMs) => {
1397
1416
  failedDelayTimerId = clearLifecycleTimer(failedDelayTimerId);
@@ -1405,7 +1424,7 @@ function createSseSubscription(options) {
1405
1424
  }, delayMs);
1406
1425
  };
1407
1426
  const handleServerStatus = (data) => {
1408
- const status = _optionalChain([data, 'optionalAccess', _39 => _39.status]);
1427
+ const status = _optionalChain([data, 'optionalAccess', _47 => _47.status]);
1409
1428
  if (status === "subscribed") {
1410
1429
  confirmTimerId = clearLifecycleTimer(confirmTimerId);
1411
1430
  serverGraceTimerId = clearLifecycleTimer(serverGraceTimerId);
@@ -1446,7 +1465,7 @@ function createSseSubscription(options) {
1446
1465
  const armSilenceTimer = () => {
1447
1466
  if (silenceTimerId) clearTimeout(silenceTimerId);
1448
1467
  silenceTimerId = setTimeout(() => {
1449
- _optionalChain([abortController, 'optionalAccess', _40 => _40.abort, 'call', _41 => _41()]);
1468
+ _optionalChain([abortController, 'optionalAccess', _48 => _48.abort, 'call', _49 => _49()]);
1450
1469
  }, silenceTimeoutMs);
1451
1470
  };
1452
1471
  const scheduleReconnect = (delayMs) => {
@@ -1599,7 +1618,7 @@ function createSseSubscription(options) {
1599
1618
  generation += 1;
1600
1619
  clearTimers();
1601
1620
  attempt = 0;
1602
- _optionalChain([abortController, 'optionalAccess', _42 => _42.abort, 'call', _43 => _43()]);
1621
+ _optionalChain([abortController, 'optionalAccess', _50 => _50.abort, 'call', _51 => _51()]);
1603
1622
  void connect();
1604
1623
  }
1605
1624
  const suspend = () => {
@@ -1607,7 +1626,7 @@ function createSseSubscription(options) {
1607
1626
  suspended = true;
1608
1627
  generation += 1;
1609
1628
  clearTimers();
1610
- _optionalChain([abortController, 'optionalAccess', _44 => _44.abort, 'call', _45 => _45()]);
1629
+ _optionalChain([abortController, 'optionalAccess', _52 => _52.abort, 'call', _53 => _53()]);
1611
1630
  setStatus("suspended");
1612
1631
  };
1613
1632
  const retryIfStalled = () => {
@@ -1652,15 +1671,15 @@ function createSseSubscription(options) {
1652
1671
  generation += 1;
1653
1672
  clearTimers();
1654
1673
  hiddenGraceTimerId = clearLifecycleTimer(hiddenGraceTimerId);
1655
- _optionalChain([abortController, 'optionalAccess', _46 => _46.abort, 'call', _47 => _47()]);
1674
+ _optionalChain([abortController, 'optionalAccess', _54 => _54.abort, 'call', _55 => _55()]);
1656
1675
  if (listenersActive) {
1657
1676
  document.removeEventListener("visibilitychange", onVisibilityChange);
1658
1677
  window.removeEventListener("online", onOnline);
1659
1678
  window.removeEventListener("focus", retryIfStalled);
1660
1679
  }
1661
- _optionalChain([unsubscribeCredentials, 'optionalCall', _48 => _48()]);
1680
+ _optionalChain([unsubscribeCredentials, 'optionalCall', _56 => _56()]);
1662
1681
  setConnected(false);
1663
- _optionalChain([onStatusChange, 'optionalCall', _49 => _49("closed")]);
1682
+ _optionalChain([onStatusChange, 'optionalCall', _57 => _57("closed")]);
1664
1683
  },
1665
1684
  reconnectNow: () => {
1666
1685
  if (closed) return;
@@ -1672,7 +1691,7 @@ function createSseSubscription(options) {
1672
1691
 
1673
1692
  // src/utils/sse-decision-frame.ts
1674
1693
  async function readLeadingDecisionFrame(response) {
1675
- const reader = _optionalChain([response, 'access', _50 => _50.body, 'optionalAccess', _51 => _51.getReader, 'call', _52 => _52()]);
1694
+ const reader = _optionalChain([response, 'access', _58 => _58.body, 'optionalAccess', _59 => _59.getReader, 'call', _60 => _60()]);
1676
1695
  if (!reader) throw new Error("readLeadingDecisionFrame: response has no body");
1677
1696
  const decoder = new TextDecoder();
1678
1697
  let buffer = "";
@@ -1697,8 +1716,8 @@ async function readLeadingDecisionFrame(response) {
1697
1716
  throw new Error(`readLeadingDecisionFrame: leading JSON parse failed: ${err.message}`);
1698
1717
  }
1699
1718
  const obj = parsed;
1700
- if (_optionalChain([obj, 'optionalAccess', _53 => _53.kind]) !== "decision_resolved") {
1701
- throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess', _54 => _54.kind]))}`);
1719
+ if (_optionalChain([obj, 'optionalAccess', _61 => _61.kind]) !== "decision_resolved") {
1720
+ throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess', _62 => _62.kind]))}`);
1702
1721
  }
1703
1722
  frame = normalizeDecisionFrame(obj);
1704
1723
  buffer = buffer.slice(nullIdx + 1);
@@ -1909,12 +1928,12 @@ var FullscreenSwitchController = class {
1909
1928
  if (fullscreenElementOf(doc)) {
1910
1929
  if (doc.exitFullscreen) doc.exitFullscreen().catch(() => {
1911
1930
  });
1912
- else _optionalChain([doc, 'access', _55 => _55.webkitExitFullscreen, 'optionalCall', _56 => _56()]);
1931
+ else _optionalChain([doc, 'access', _63 => _63.webkitExitFullscreen, 'optionalCall', _64 => _64()]);
1913
1932
  } else {
1914
- const el = _nullishCoalesce(_optionalChain([this, 'access', _57 => _57.opts, 'access', _58 => _58.target, 'optionalCall', _59 => _59()]), () => ( document.documentElement));
1933
+ const el = _nullishCoalesce(_optionalChain([this, 'access', _65 => _65.opts, 'access', _66 => _66.target, 'optionalCall', _67 => _67()]), () => ( document.documentElement));
1915
1934
  if (el.requestFullscreen) el.requestFullscreen({ navigationUI: "hide" }).catch(() => {
1916
1935
  });
1917
- else _optionalChain([el, 'access', _60 => _60.webkitRequestFullscreen, 'optionalCall', _61 => _61()]);
1936
+ else _optionalChain([el, 'access', _68 => _68.webkitRequestFullscreen, 'optionalCall', _69 => _69()]);
1918
1937
  }
1919
1938
  };
1920
1939
  /** Raise the mask + start tracking. Idempotent — safe from the pre-emptive
@@ -1929,7 +1948,7 @@ var FullscreenSwitchController = class {
1929
1948
  window.clearTimeout(this.quietTimer);
1930
1949
  window.clearTimeout(this.capTimer);
1931
1950
  window.removeEventListener("resize", this.onResize);
1932
- _optionalChain([this, 'access', _62 => _62.opts, 'access', _63 => _63.onGeometryPulse, 'optionalCall', _64 => _64()]);
1951
+ _optionalChain([this, 'access', _70 => _70.opts, 'access', _71 => _71.onGeometryPulse, 'optionalCall', _72 => _72()]);
1933
1952
  if (this.opts.switchingClass) document.documentElement.classList.remove(this.opts.switchingClass);
1934
1953
  };
1935
1954
  this.armQuiet = () => {
@@ -1937,7 +1956,7 @@ var FullscreenSwitchController = class {
1937
1956
  this.quietTimer = window.setTimeout(this.endSwitch, _nullishCoalesce(this.opts.quietMs, () => ( DEFAULT_QUIET_MS)));
1938
1957
  };
1939
1958
  this.onResize = () => {
1940
- _optionalChain([this, 'access', _65 => _65.opts, 'access', _66 => _66.onGeometryPulse, 'optionalCall', _67 => _67()]);
1959
+ _optionalChain([this, 'access', _73 => _73.opts, 'access', _74 => _74.onGeometryPulse, 'optionalCall', _75 => _75()]);
1941
1960
  this.armQuiet();
1942
1961
  };
1943
1962
  /** Escape is the one exit path that skips toggle() — pre-mask on the
@@ -1949,7 +1968,7 @@ var FullscreenSwitchController = class {
1949
1968
  const fs = this.isFullscreen;
1950
1969
  if (this.opts.activeClass) document.documentElement.classList.toggle(this.opts.activeClass, fs);
1951
1970
  this.beginSwitch();
1952
- requestAnimationFrame(() => _optionalChain([this, 'access', _68 => _68.opts, 'access', _69 => _69.onGeometryPulse, 'optionalCall', _70 => _70()]));
1971
+ requestAnimationFrame(() => _optionalChain([this, 'access', _76 => _76.opts, 'access', _77 => _77.onGeometryPulse, 'optionalCall', _78 => _78()]));
1953
1972
  this.armQuiet();
1954
1973
  this.opts.onFullscreenChange(fs);
1955
1974
  };
@@ -1963,7 +1982,7 @@ var FullscreenSwitchController = class {
1963
1982
  }
1964
1983
  get isFullscreen() {
1965
1984
  const fs = fullscreenElementOf(document);
1966
- const target = _optionalChain([this, 'access', _71 => _71.opts, 'access', _72 => _72.target, 'optionalCall', _73 => _73()]);
1985
+ const target = _optionalChain([this, 'access', _79 => _79.opts, 'access', _80 => _80.target, 'optionalCall', _81 => _81()]);
1967
1986
  return target ? fs === target : Boolean(fs);
1968
1987
  }
1969
1988
  attach() {
@@ -2010,7 +2029,7 @@ function primaryPlatformOf(platforms) {
2010
2029
  if (!Array.isArray(platforms)) return null;
2011
2030
  for (const entry of platforms) {
2012
2031
  const row = entry;
2013
- const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess', _74 => _74.platforms, 'optionalAccess', _75 => _75.name]), () => ( _optionalChain([row, 'optionalAccess', _76 => _76.platform_name]))), () => ( _optionalChain([row, 'optionalAccess', _77 => _77.name])));
2032
+ const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess', _82 => _82.platforms, 'optionalAccess', _83 => _83.name]), () => ( _optionalChain([row, 'optionalAccess', _84 => _84.platform_name]))), () => ( _optionalChain([row, 'optionalAccess', _85 => _85.name])));
2014
2033
  if (typeof name === "string" && name.trim()) return name.trim();
2015
2034
  }
2016
2035
  return null;
@@ -2027,21 +2046,21 @@ function lastPathSegment(url) {
2027
2046
  function makeComposeContentUrl(opts) {
2028
2047
  const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
2029
2048
  return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
2030
- const type = _chunkQKXXHOODcjs.canonicalContentRefType.call(void 0, rawType);
2049
+ const type = _chunkFIKIPO4Fcjs.canonicalContentRefType.call(void 0, rawType);
2031
2050
  const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
2032
2051
  if (override) return { ...override(identifier), hostOverride: true };
2033
2052
  const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
2034
2053
  if (opts.hostedTypes.has(type)) {
2035
2054
  const recovered = externalUrl ? lastPathSegment(externalUrl) : null;
2036
- const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess', _78 => _78.trim, 'call', _79 => _79()]) || identifier;
2055
+ const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]) || identifier;
2037
2056
  return { href: `/${seg}/${slug}`, targetPlatform: null };
2038
2057
  }
2039
2058
  if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
2040
2059
  const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
2041
- const owner = claimedOwner && _chunk3H3CQ7BQcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
2042
- const origin = owner ? _chunk3H3CQ7BQcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
2060
+ const owner = claimedOwner && _chunkGRNTIKPDcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
2061
+ const origin = owner ? _chunkGRNTIKPDcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
2043
2062
  return {
2044
- href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || identifier}`,
2063
+ href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
2045
2064
  // Report the owner so `decideNewTab` can compare it against the current
2046
2065
  // app instead of falling back to an origin guess (which is unreliable in
2047
2066
  // dev, where every platform shares localhost). `null` whenever the href
@@ -2117,7 +2136,7 @@ function getDocSourceDefaultPath(structure, folderIndexFile = DEFAULT_FOLDER_IND
2117
2136
  const hasRootIndex = structure.some((node) => node.type === "file" && node.path === folderIndexFile);
2118
2137
  if (hasRootIndex) return null;
2119
2138
  const firstFolderWithReadme = structure.find((node) => node.type === "folder" && node.hasReadme && !!node.path);
2120
- return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess', _82 => _82.path]), () => ( null));
2139
+ return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess', _90 => _90.path]), () => ( null));
2121
2140
  }
2122
2141
 
2123
2142
  // src/utils/doc-path-utils.ts
@@ -2128,7 +2147,7 @@ function pathToNodeId(path) {
2128
2147
  return path.replace(/[/\s]/g, "-").toLowerCase();
2129
2148
  }
2130
2149
  function normalizeDocPath(segments, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE) {
2131
- const lowerPath = (_optionalChain([segments, 'optionalAccess', _83 => _83.join, 'call', _84 => _84("/")]) || "").toLowerCase();
2150
+ const lowerPath = (_optionalChain([segments, 'optionalAccess', _91 => _91.join, 'call', _92 => _92("/")]) || "").toLowerCase();
2132
2151
  const lowerIndex = folderIndexFile.toLowerCase();
2133
2152
  const suffix = `/${lowerIndex}`;
2134
2153
  if (lowerPath.endsWith(suffix)) return lowerPath.slice(0, -suffix.length);
@@ -2220,7 +2239,7 @@ function extractSections(markdown, options = {}) {
2220
2239
  if (heading.level > opts.maxLevel) continue;
2221
2240
  let title = heading.text;
2222
2241
  if (opts.stripFormattingMarkers) {
2223
- title = _chunk3H3CQ7BQcjs.stripInlineMarkdown.call(void 0, title).trim();
2242
+ title = _chunkGRNTIKPDcjs.stripInlineMarkdown.call(void 0, title).trim();
2224
2243
  }
2225
2244
  const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
2226
2245
  const cleanId = baseId || `section-${sections.length + 1}`;
@@ -2486,7 +2505,7 @@ function isValidPathPattern(pattern) {
2486
2505
  return pattern.trim().length > 0 && compile(pattern.trim()) !== null;
2487
2506
  }
2488
2507
  function matchesPathPattern(pathname, pattern) {
2489
- return _nullishCoalesce(_optionalChain([compile, 'call', _85 => _85(pattern.trim()), 'optionalAccess', _86 => _86.test, 'call', _87 => _87(pathname)]), () => ( false));
2508
+ return _nullishCoalesce(_optionalChain([compile, 'call', _93 => _93(pattern.trim()), 'optionalAccess', _94 => _94.test, 'call', _95 => _95(pathname)]), () => ( false));
2490
2509
  }
2491
2510
  function pathMatchesAny(pathname, patterns) {
2492
2511
  return (_nullishCoalesce(patterns, () => ( []))).some((pattern) => matchesPathPattern(pathname, pattern));
@@ -2533,9 +2552,9 @@ function demoClockTimes(seed, options = {}) {
2533
2552
  // src/components/navigation/mingo-ai-button.tsx
2534
2553
 
2535
2554
  function openAskAi(source, options) {
2536
- const prompt = _optionalChain([options, 'optionalAccess', _88 => _88.prompt, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2555
+ const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
2537
2556
  const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
2538
- window.dispatchEvent(new CustomEvent(_chunk3H3CQ7BQcjs.ASK_AI_OPEN_EVENT, { detail }));
2557
+ window.dispatchEvent(new CustomEvent(_chunkGRNTIKPDcjs.ASK_AI_OPEN_EVENT, { detail }));
2539
2558
  }
2540
2559
  function MingoAiButton({
2541
2560
  source,
@@ -2552,10 +2571,10 @@ function MingoAiButton({
2552
2571
  const inPage = variant === "button";
2553
2572
  const commandKey = visitor.known && _chunk6GCXQIUUcjs.usesCommandKey.call(void 0, visitor.os);
2554
2573
  const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
2555
- const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _91 => _91.name])));
2556
- const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _92 => _92.icon])));
2557
- const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _93 => _93.open]);
2558
- const eventSource = _nullishCoalesce(source, () => ( _optionalChain([assistant, 'optionalAccess', _94 => _94.source])));
2574
+ const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _99 => _99.name])));
2575
+ const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _100 => _100.icon])));
2576
+ const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _101 => _101.open]);
2577
+ const eventSource = _nullishCoalesce(source, () => ( _optionalChain([assistant, 'optionalAccess', _102 => _102.source])));
2559
2578
  const openRef = _react.useRef.call(void 0, () => void 0);
2560
2579
  _react.useEffect.call(void 0, () => {
2561
2580
  openRef.current = () => runtimeOpen ? runtimeOpen({}) : openAskAi(eventSource);
@@ -2578,7 +2597,7 @@ function MingoAiButton({
2578
2597
  {
2579
2598
  ...props,
2580
2599
  type: "button",
2581
- ...{ [_chunk3H3CQ7BQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
2600
+ ...{ [_chunkGRNTIKPDcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
2582
2601
  variant: field ? "glyph" : "transparent",
2583
2602
  size: "wrap",
2584
2603
  font: "regular",
@@ -2586,7 +2605,7 @@ function MingoAiButton({
2586
2605
  onClick: (e) => {
2587
2606
  if (runtimeOpen) runtimeOpen({});
2588
2607
  else openAskAi(eventSource);
2589
- _optionalChain([onClick, 'optionalCall', _95 => _95(e)]);
2608
+ _optionalChain([onClick, 'optionalCall', _103 => _103(e)]);
2590
2609
  },
2591
2610
  className: _chunk7JWFMAQBcjs.cn.call(void 0,
2592
2611
  "group/mingo flex shrink-0 justify-start focus-visible:ring-ods-accent",
@@ -2669,7 +2688,7 @@ function buildAskPromptsUrl(base, { count, topic, exclude = [] }) {
2669
2688
  return `${base}${base.includes("?") ? "&" : "?"}${params.toString()}`;
2670
2689
  }
2671
2690
  function assistantAvailable(assistant) {
2672
- return !!_optionalChain([assistant, 'optionalAccess', _96 => _96.available]);
2691
+ return !!_optionalChain([assistant, 'optionalAccess', _104 => _104.available]);
2673
2692
  }
2674
2693
  function useAskPrompts({
2675
2694
  topic,
@@ -2680,14 +2699,14 @@ function useAskPrompts({
2680
2699
  const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
2681
2700
  const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
2682
2701
  const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
2683
- const { data, dataUrl, error } = _chunkIS77JFF6cjs.useSelfFetch.call(void 0, url);
2702
+ const { data, dataUrl, error } = _chunkSDV335EOcjs.useSelfFetch.call(void 0, url);
2684
2703
  const landed = url !== null && (dataUrl === url || error);
2685
- return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _97 => _97.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
2704
+ return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
2686
2705
  }
2687
2706
  function useAssistantOpen(topic, onOpen) {
2688
2707
  const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
2689
- const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _98 => _98.open]);
2690
- const source = _optionalChain([assistant, 'optionalAccess', _99 => _99.source]);
2708
+ const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _106 => _106.open]);
2709
+ const source = _optionalChain([assistant, 'optionalAccess', _107 => _107.source]);
2691
2710
  return _react.useCallback.call(void 0,
2692
2711
  (request) => {
2693
2712
  const full = { ...request, topic };
@@ -2713,7 +2732,7 @@ function createAskQueue() {
2713
2732
  },
2714
2733
  settle(surface, ids) {
2715
2734
  const entry = entries.get(surface);
2716
- if (!entry || (_nullishCoalesce(_optionalChain([entry, 'access', _100 => _100.ids, 'optionalAccess', _101 => _101.join, 'call', _102 => _102(",")]), () => ( null))) === (_nullishCoalesce(_optionalChain([ids, 'optionalAccess', _103 => _103.join, 'call', _104 => _104(",")]), () => ( null)))) return;
2735
+ if (!entry || (_nullishCoalesce(_optionalChain([entry, 'access', _108 => _108.ids, 'optionalAccess', _109 => _109.join, 'call', _110 => _110(",")]), () => ( null))) === (_nullishCoalesce(_optionalChain([ids, 'optionalAccess', _111 => _111.join, 'call', _112 => _112(",")]), () => ( null)))) return;
2717
2736
  entry.ids = ids;
2718
2737
  publish();
2719
2738
  },
@@ -2742,7 +2761,7 @@ function createAskQueue() {
2742
2761
  }
2743
2762
  var askQueues = /* @__PURE__ */ new Map();
2744
2763
  function useAskQueue() {
2745
- const scope = _nullishCoalesce(_optionalChain([_chunkEWPR7662cjs.useAssistantRuntime.call(void 0, ), 'optionalAccess', _105 => _105.askPromptsUrl]), () => ( ""));
2764
+ const scope = _nullishCoalesce(_optionalChain([_chunkEWPR7662cjs.useAssistantRuntime.call(void 0, ), 'optionalAccess', _113 => _113.askPromptsUrl]), () => ( ""));
2746
2765
  let queue = askQueues.get(scope);
2747
2766
  if (!queue) {
2748
2767
  queue = createAskQueue();
@@ -2788,8 +2807,8 @@ function useAskSurface({
2788
2807
  }, [queue, surface, settled]);
2789
2808
  const open = useAssistantOpen(topic, onOpen);
2790
2809
  const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
2791
- const onAsk = _optionalChain([assistant, 'optionalAccess', _106 => _106.onAsk]);
2792
- const reportAsk = _react.useCallback.call(void 0, (prompt) => _optionalChain([onAsk, 'optionalCall', _107 => _107({ promptId: prompt.id, topic })]), [onAsk, topic]);
2810
+ const onAsk = _optionalChain([assistant, 'optionalAccess', _114 => _114.onAsk]);
2811
+ const reportAsk = _react.useCallback.call(void 0, (prompt) => _optionalChain([onAsk, 'optionalCall', _115 => _115({ promptId: prompt.id, topic })]), [onAsk, topic]);
2793
2812
  return { assistant, scoped, prompts, isLoading: supported && (!picks || isLoading), supported, open, reportAsk };
2794
2813
  }
2795
2814
 
@@ -2819,21 +2838,21 @@ function QuestionChips({
2819
2838
  {
2820
2839
  "data-loading-item": true,
2821
2840
  className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
2822
- ...prompt ? { [_chunk3H3CQ7BQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
2841
+ ...prompt ? { [_chunkGRNTIKPDcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
2823
2842
  children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2824
- _chunk3H3CQ7BQcjs.QuickActionChipButton,
2843
+ _chunkGRNTIKPDcjs.QuickActionChipButton,
2825
2844
  {
2826
2845
  loading,
2827
2846
  variant: "question",
2828
- label: _nullishCoalesce(_optionalChain([prompt, 'optionalAccess', _108 => _108.label]), () => ( "")),
2829
- icon: _optionalChain([prompt, 'optionalAccess', _109 => _109.icon]),
2847
+ label: _nullishCoalesce(_optionalChain([prompt, 'optionalAccess', _116 => _116.label]), () => ( "")),
2848
+ icon: _optionalChain([prompt, 'optionalAccess', _117 => _117.icon]),
2830
2849
  labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length],
2831
2850
  onSelect: () => {
2832
2851
  if (!prompt) return;
2833
2852
  const request = { prompt: _nullishCoalesce(prompt.prompt, () => ( prompt.label)) };
2834
2853
  if (onOpen) onOpen(request);
2835
2854
  else openAskAi(source, request);
2836
- _optionalChain([onAsk, 'optionalCall', _110 => _110(prompt)]);
2855
+ _optionalChain([onAsk, 'optionalCall', _118 => _118(prompt)]);
2837
2856
  }
2838
2857
  }
2839
2858
  )
@@ -2965,7 +2984,7 @@ function AssistantAskPrompts({
2965
2984
  }) {
2966
2985
  const card = variant === "card";
2967
2986
  const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
2968
- const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess', _111 => _111.askCard, 'optionalAccess', _112 => _112.count]) : void 0))), () => ( ASK_PROMPTS_DEFAULT_COUNT));
2987
+ const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess', _119 => _119.askCard, 'optionalAccess', _120 => _120.count]) : void 0))), () => ( ASK_PROMPTS_DEFAULT_COUNT));
2969
2988
  const ask = useAskSurface({ topic, count: slots, exclude, enabled, onOpen });
2970
2989
  if (!assistantAvailable(assistant)) return null;
2971
2990
  const shared = {
@@ -2979,12 +2998,12 @@ function AssistantAskPrompts({
2979
2998
  if (card) {
2980
2999
  const name = _nullishCoalesce(label, () => ( assistant.name));
2981
3000
  if (!name) return null;
2982
- const words2 = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _113 => _113.askCard, 'optionalAccess', _114 => _114.description]))), () => ( DEFAULT_ASK_CARD.description));
3001
+ const words2 = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _121 => _121.askCard, 'optionalAccess', _122 => _122.description]))), () => ( DEFAULT_ASK_CARD.description));
2983
3002
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: ask.scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2984
3003
  AskCard,
2985
3004
  {
2986
3005
  ...shared,
2987
- title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _115 => _115.askCard, 'optionalAccess', _116 => _116.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
3006
+ title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _123 => _123.askCard, 'optionalAccess', _124 => _124.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
2988
3007
  description: words2 ? fillAssistant(words2, name) : void 0,
2989
3008
  count: ask.supported ? slots : 0,
2990
3009
  label: name,
@@ -3031,7 +3050,7 @@ function QuickActionMarquee({
3031
3050
  );
3032
3051
  if (items.length === 0) return null;
3033
3052
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3034
- _chunk3H3CQ7BQcjs.QuickActionWall,
3053
+ _chunkGRNTIKPDcjs.QuickActionWall,
3035
3054
  {
3036
3055
  chips,
3037
3056
  mode,
@@ -3072,8 +3091,8 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
3072
3091
  }) : null;
3073
3092
  const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunk7MV23NNTcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
3074
3093
  const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
3075
- const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _117 => _117.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _118 => _118.unread]) ? UNREAD_NOTICE : composedSubtitle)));
3076
- const unread = !!_optionalChain([ticket, 'optionalAccess', _119 => _119.unread]);
3094
+ const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
3095
+ const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
3077
3096
  const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3078
3097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TICKET_ROW_TEXT, "text-left"), children: loading || !ticket ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3079
3098
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
@@ -3096,7 +3115,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
3096
3115
  }
3097
3116
  )
3098
3117
  ] }) }),
3099
- _optionalChain([ticket, 'optionalAccess', _120 => _120.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3118
+ _optionalChain([ticket, 'optionalAccess', _128 => _128.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3100
3119
  _chunk6UKH22NQcjs.Tag,
3101
3120
  {
3102
3121
  "data-loading-optional": true,
@@ -3128,7 +3147,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
3128
3147
  variant: "row",
3129
3148
  ref,
3130
3149
  type: "button",
3131
- onClick: () => _optionalChain([onClick, 'optionalCall', _121 => _121(ticket.id)]),
3150
+ onClick: () => _optionalChain([onClick, 'optionalCall', _129 => _129(ticket.id)]),
3132
3151
  className: _chunk7JWFMAQBcjs.cn.call(void 0, TICKET_ROW_HEIGHT, className),
3133
3152
  ...props,
3134
3153
  children: content
@@ -3183,8 +3202,8 @@ var DialogListItem = _react.forwardRef.call(void 0,
3183
3202
  ({ className, dialog, isActive, onDialogSelect, onClick, loading: loadingProp = false, ...props }, ref) => {
3184
3203
  const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
3185
3204
  const handleClick = (e) => {
3186
- _optionalChain([onDialogSelect, 'optionalCall', _122 => _122(dialog.id)]);
3187
- _optionalChain([onClick, 'optionalCall', _123 => _123(e)]);
3205
+ _optionalChain([onDialogSelect, 'optionalCall', _130 => _130(dialog.id)]);
3206
+ _optionalChain([onClick, 'optionalCall', _131 => _131(e)]);
3188
3207
  };
3189
3208
  const formatTimestamp = (timestamp) => {
3190
3209
  return _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, timestamp, _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "numericDateTime24h");
@@ -3246,7 +3265,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
3246
3265
  hasNextPage,
3247
3266
  isFetchingNextPage,
3248
3267
  onLoadMore,
3249
- pageSize = _chunk3H3CQ7BQcjs.CHAT_HISTORY_PAGE_SIZE,
3268
+ pageSize = _chunkGRNTIKPDcjs.CHAT_HISTORY_PAGE_SIZE,
3250
3269
  ...props
3251
3270
  }, ref) => {
3252
3271
  const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
@@ -3267,7 +3286,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
3267
3286
  (entries) => {
3268
3287
  const [entry] = entries;
3269
3288
  if (entry.isIntersecting && !isFetchingRef.current) {
3270
- _optionalChain([onLoadMoreRef, 'access', _124 => _124.current, 'optionalCall', _125 => _125()]);
3289
+ _optionalChain([onLoadMoreRef, 'access', _132 => _132.current, 'optionalCall', _133 => _133()]);
3271
3290
  }
3272
3291
  },
3273
3292
  { root: scrollContainer, rootMargin: "100px", threshold: 0.1 }
@@ -3482,7 +3501,7 @@ function OnboardingCarousel({
3482
3501
  " of ",
3483
3502
  steps.length,
3484
3503
  ": ",
3485
- _optionalChain([steps, 'access', _126 => _126[index], 'optionalAccess', _127 => _127.title])
3504
+ _optionalChain([steps, 'access', _134 => _134[index], 'optionalAccess', _135 => _135.title])
3486
3505
  ] }),
3487
3506
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", role: "group", "aria-label": "Choose step", children: steps.map((step, i) => {
3488
3507
  const isCurrent = i === index;
@@ -3530,7 +3549,7 @@ function OnboardingCarousel({
3530
3549
 
3531
3550
  var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
3532
3551
  var GRID_CELL_CLASS = "h-full";
3533
- var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQKXXHOODcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
3552
+ var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFIKIPO4Fcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
3534
3553
  function loadingCardOf(loadingCard, Skeleton) {
3535
3554
  if (loadingCard !== void 0) return loadingCard;
3536
3555
  return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
@@ -3544,7 +3563,7 @@ function AdminContentCardGridSkeleton({
3544
3563
  label = "Loading",
3545
3564
  region = true
3546
3565
  }) {
3547
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3H3CQ7BQcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
3566
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
3548
3567
  }
3549
3568
  function AdminContentCardGrid({
3550
3569
  items,
@@ -3808,7 +3827,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
3808
3827
  ] }) : null,
3809
3828
  item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview }) }) : null
3810
3829
  ] }),
3811
- _optionalChain([anchorProps, 'optionalAccess', _128 => _128.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
3830
+ _optionalChain([anchorProps, 'optionalAccess', _136 => _136.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
3812
3831
  ] });
3813
3832
  if (!anchorProps) {
3814
3833
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
@@ -3834,13 +3853,13 @@ function DataRoomDocCardSkeleton({ className }) {
3834
3853
 
3835
3854
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
3836
3855
  if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
3837
- const goalsCount = _optionalChain([campaign, 'access', _129 => _129.goals, 'optionalAccess', _130 => _130.length]) || 0;
3856
+ const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
3838
3857
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3839
3858
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
3840
3859
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
3841
3860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
3842
3861
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUBTITLE, children: [
3843
- campaign.start_date ? _chunkQKXXHOODcjs.formatDateShort.call(void 0, campaign.start_date) : null,
3862
+ campaign.start_date ? _chunkFIKIPO4Fcjs.formatDateShort.call(void 0, campaign.start_date) : null,
3844
3863
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
3845
3864
  "Marketing campaign"
3846
3865
  ].filter(Boolean).join(" \xB7 ") }) }),
@@ -3927,7 +3946,7 @@ var NETWORK_CONFIG = {
3927
3946
 
3928
3947
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
3929
3948
  function prefersReducedMotion() {
3930
- return typeof window !== "undefined" && _optionalChain([window, 'access', _131 => _131.matchMedia, 'optionalCall', _132 => _132("(prefers-reduced-motion: reduce)"), 'access', _133 => _133.matches]) === true;
3949
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _139 => _139.matchMedia, 'optionalCall', _140 => _140("(prefers-reduced-motion: reduce)"), 'access', _141 => _141.matches]) === true;
3931
3950
  }
3932
3951
  function useScriptedStream(frames, resetKey, enabled = true) {
3933
3952
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -3938,7 +3957,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
3938
3957
  setIndex(0);
3939
3958
  }
3940
3959
  _react.useEffect.call(void 0, () => {
3941
- const mq = _optionalChain([window, 'access', _134 => _134.matchMedia, 'optionalCall', _135 => _135("(prefers-reduced-motion: reduce)")]);
3960
+ const mq = _optionalChain([window, 'access', _142 => _142.matchMedia, 'optionalCall', _143 => _143("(prefers-reduced-motion: reduce)")]);
3942
3961
  const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
3943
3962
  sync();
3944
3963
  if (!mq) return void 0;
@@ -4083,7 +4102,7 @@ function useJetStreamDialogSubscription({
4083
4102
  const lifecycle = _chunkKHKPLOU4cjs.startConnectionLifecycle.call(void 0, {
4084
4103
  conn: sharedConn,
4085
4104
  wsUrl,
4086
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _136 => _136.current, 'optionalCall', _137 => _137()]),
4105
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _144 => _144.current, 'optionalCall', _145 => _145()]),
4087
4106
  backoff: reconnectionBackoffRef.current,
4088
4107
  getFreshUrl: () => getNatsWsUrlRef.current(),
4089
4108
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -4098,7 +4117,7 @@ function useJetStreamDialogSubscription({
4098
4117
  setReconnectionCount((c) => c + 1);
4099
4118
  }
4100
4119
  hadConnectionBeforeRef.current = true;
4101
- _optionalChain([onConnectRef, 'access', _138 => _138.current, 'optionalCall', _139 => _139()]);
4120
+ _optionalChain([onConnectRef, 'access', _146 => _146.current, 'optionalCall', _147 => _147()]);
4102
4121
  }
4103
4122
  if (status === "error") {
4104
4123
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -4108,7 +4127,7 @@ function useJetStreamDialogSubscription({
4108
4127
  setIsConnected(false);
4109
4128
  setIsSubscribed(false);
4110
4129
  tearDownSubscription();
4111
- _optionalChain([onDisconnectRef, 'access', _140 => _140.current, 'optionalCall', _141 => _141()]);
4130
+ _optionalChain([onDisconnectRef, 'access', _148 => _148.current, 'optionalCall', _149 => _149()]);
4112
4131
  }
4113
4132
  }
4114
4133
  });
@@ -4252,7 +4271,7 @@ function useJetStreamDialogSubscription({
4252
4271
  subscriptionRef.current = handle;
4253
4272
  setIsSubscribed(true);
4254
4273
  try {
4255
- _optionalChain([onSubscribedRef, 'access', _142 => _142.current, 'optionalCall', _143 => _143()]);
4274
+ _optionalChain([onSubscribedRef, 'access', _150 => _150.current, 'optionalCall', _151 => _151()]);
4256
4275
  } catch (e) {
4257
4276
  console.warn("[JetStream] onSubscribed threw:", e);
4258
4277
  }
@@ -4364,7 +4383,7 @@ function useChat({
4364
4383
  onMessagesChangeRef.current = onMessagesChange;
4365
4384
  });
4366
4385
  _react.useEffect.call(void 0, () => {
4367
- _optionalChain([onMessagesChangeRef, 'access', _144 => _144.current, 'optionalCall', _145 => _145(messages)]);
4386
+ _optionalChain([onMessagesChangeRef, 'access', _152 => _152.current, 'optionalCall', _153 => _153(messages)]);
4368
4387
  }, [messages]);
4369
4388
  const {
4370
4389
  streamMessage,
@@ -4401,7 +4420,7 @@ function useChat({
4401
4420
  name: "You",
4402
4421
  content: text,
4403
4422
  timestamp: /* @__PURE__ */ new Date(),
4404
- ..._optionalChain([options, 'optionalAccess', _146 => _146.hidden]) ? { hidden: true } : {}
4423
+ ..._optionalChain([options, 'optionalAccess', _154 => _154.hidden]) ? { hidden: true } : {}
4405
4424
  };
4406
4425
  addMessage(userMessage);
4407
4426
  setIsTyping(true);
@@ -4632,19 +4651,19 @@ function turnRequestKeys(content) {
4632
4651
  if (!Array.isArray(content)) return keys;
4633
4652
  for (const seg of content) {
4634
4653
  if (seg.type === "tool_execution") {
4635
- const id = _optionalChain([seg, 'access', _147 => _147.data, 'optionalAccess', _148 => _148.toolExecutionRequestId]);
4654
+ const id = _optionalChain([seg, 'access', _155 => _155.data, 'optionalAccess', _156 => _156.toolExecutionRequestId]);
4636
4655
  if (id) keys.add(id);
4637
4656
  } else if (seg.type === "approval_request") {
4638
- const id = _optionalChain([seg, 'access', _149 => _149.data, 'optionalAccess', _150 => _150.requestId]);
4657
+ const id = _optionalChain([seg, 'access', _157 => _157.data, 'optionalAccess', _158 => _158.requestId]);
4639
4658
  if (id) keys.add(id);
4640
4659
  } else if (seg.type === "escalation_offer") {
4641
- const id = _optionalChain([seg, 'access', _151 => _151.data, 'optionalAccess', _152 => _152.offerId]);
4660
+ const id = _optionalChain([seg, 'access', _159 => _159.data, 'optionalAccess', _160 => _160.offerId]);
4642
4661
  if (id) keys.add(id);
4643
4662
  } else if (seg.type === "approval_batch") {
4644
4663
  const data = seg.data;
4645
- if (_optionalChain([data, 'optionalAccess', _153 => _153.approvalRequestId])) keys.add(data.approvalRequestId);
4646
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _154 => _154.toolCalls]), () => ( []))) {
4647
- if (_optionalChain([call, 'optionalAccess', _155 => _155.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
4664
+ if (_optionalChain([data, 'optionalAccess', _161 => _161.approvalRequestId])) keys.add(data.approvalRequestId);
4665
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _162 => _162.toolCalls]), () => ( []))) {
4666
+ if (_optionalChain([call, 'optionalAccess', _163 => _163.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
4648
4667
  }
4649
4668
  }
4650
4669
  }
@@ -4748,18 +4767,18 @@ function mergeHistoryWithRealtime(input) {
4748
4767
  }
4749
4768
  }
4750
4769
  const trailing = processedHistory[processedHistory.length - 1];
4751
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _156 => _156.role]) === "assistant" ? trailing : null;
4752
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _157 => _157.content, 'access', _158 => _158.find, 'call', _159 => _159((s) => s.type === "approval_batch"), 'optionalAccess', _160 => _160.data, 'optionalAccess', _161 => _161.approvalRequestId]), () => ( null)) : null;
4770
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _164 => _164.role]) === "assistant" ? trailing : null;
4771
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _165 => _165.content, 'access', _166 => _166.find, 'call', _167 => _167((s) => s.type === "approval_batch"), 'optionalAccess', _168 => _168.data, 'optionalAccess', _169 => _169.approvalRequestId]), () => ( null)) : null;
4753
4772
  let processedToUse = processedHistory;
4754
4773
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
4755
4774
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
4756
4775
  if (historyBatchId) {
4757
4776
  const batchTwins = existingMessages.filter(
4758
- (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _162 => _162.data, 'optionalAccess', _163 => _163.approvalRequestId]) === historyBatchId)
4777
+ (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _170 => _170.data, 'optionalAccess', _171 => _171.approvalRequestId]) === historyBatchId)
4759
4778
  );
4760
4779
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
4761
4780
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
4762
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _164 => _164.content])) ? historyTrailingAssistant.content.length : 0;
4781
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _172 => _172.content])) ? historyTrailingAssistant.content.length : 0;
4763
4782
  const realtimeSize = existingWithSameBatch.content.length;
4764
4783
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
4765
4784
  processedToUse = processedHistory.slice(0, -1);
@@ -4792,9 +4811,9 @@ function mergeHistoryWithRealtime(input) {
4792
4811
  const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
4793
4812
  const windowSignals = collectTwinSignals(processedToUse);
4794
4813
  const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
4795
- const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _165 => _165.has, 'call', _166 => _166(m.id)]), () => ( false)));
4814
+ const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _173 => _173.has, 'call', _174 => _174(m.id)]), () => ( false)));
4796
4815
  const firstWindowIndex = existingMessages.findIndex(isInWindow);
4797
- const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _167 => _167.timestamp, 'optionalAccess', _168 => _168.getTime, 'call', _169 => _169()]), () => ( 0))) <= historyFetchedAt;
4816
+ const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _175 => _175.timestamp, 'optionalAccess', _176 => _176.getTime, 'call', _177 => _177()]), () => ( 0))) <= historyFetchedAt;
4798
4817
  let lastOlderPersistedIndex = -1;
4799
4818
  if (firstWindowIndex < 0) {
4800
4819
  for (const [index, m] of existingMessages.entries()) {
@@ -4812,7 +4831,7 @@ function mergeHistoryWithRealtime(input) {
4812
4831
  } else if (pm.role === "assistant") {
4813
4832
  windowHasUnstampedAssistant = true;
4814
4833
  }
4815
- const time = _optionalChain([pm, 'access', _170 => _170.timestamp, 'optionalAccess', _171 => _171.getTime, 'call', _172 => _172()]);
4834
+ const time = _optionalChain([pm, 'access', _178 => _178.timestamp, 'optionalAccess', _179 => _179.getTime, 'call', _180 => _180()]);
4816
4835
  if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
4817
4836
  }
4818
4837
  const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
@@ -4830,14 +4849,14 @@ function mergeHistoryWithRealtime(input) {
4830
4849
  const verdict = twinVerdict(windowSignals, m);
4831
4850
  return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
4832
4851
  }
4833
- const time = _optionalChain([m, 'access', _173 => _173.timestamp, 'optionalAccess', _174 => _174.getTime, 'call', _175 => _175()]);
4852
+ const time = _optionalChain([m, 'access', _181 => _181.timestamp, 'optionalAccess', _182 => _182.getTime, 'call', _183 => _183()]);
4834
4853
  if (typeof time !== "number" || time > historyFetchedAt) return false;
4835
4854
  if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
4836
4855
  return twinVerdict(windowSignals, m) === "distinct";
4837
4856
  };
4838
4857
  const keepRealtime = (m) => {
4839
4858
  if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
4840
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _176 => _176.timestamp, 'optionalAccess', _177 => _177.getTime, 'call', _178 => _178()]), () => ( 0))) <= historyFetchedAt;
4859
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _184 => _184.timestamp, 'optionalAccess', _185 => _185.getTime, 'call', _186 => _186()]), () => ( 0))) <= historyFetchedAt;
4841
4860
  return !(canBeInSnapshot && windowSignals.userContents.has(userTwinKey(m)));
4842
4861
  }
4843
4862
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -4862,7 +4881,7 @@ function mergeHistoryWithRealtime(input) {
4862
4881
  } else if (typeof m.streamSeq === "number") {
4863
4882
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
4864
4883
  } else {
4865
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _179 => _179.timestamp, 'optionalAccess', _180 => _180.getTime, 'call', _181 => _181()]), () => ( 0))) <= historyFetchedAt;
4884
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _187 => _187.timestamp, 'optionalAccess', _188 => _188.getTime, 'call', _189 => _189()]), () => ( 0))) <= historyFetchedAt;
4866
4885
  }
4867
4886
  if (covered) return false;
4868
4887
  }
@@ -4953,7 +4972,7 @@ function normalizeHistoricalMessageData(md) {
4953
4972
  function isHistoricalUserTurn(m) {
4954
4973
  return !!m.owner;
4955
4974
  }
4956
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _182 => _182.type]) === "TEXT" && typeof d.text === "string";
4975
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _190 => _190.type]) === "TEXT" && typeof d.text === "string";
4957
4976
  var THINK_MS = 550;
4958
4977
  var TOKEN_MS = 55;
4959
4978
  var USER_MS = 480;
@@ -5120,7 +5139,7 @@ var GROUPS = [
5120
5139
  }
5121
5140
  ];
5122
5141
  function maskKey(key) {
5123
- const prefix = _nullishCoalesce(_optionalChain([/^fpk_[a-z0-9-]+_/i, 'access', _183 => _183.exec, 'call', _184 => _184(key), 'optionalAccess', _185 => _185[0]]), () => ( ""));
5142
+ const prefix = _nullishCoalesce(_optionalChain([/^fpk_[a-z0-9-]+_/i, 'access', _191 => _191.exec, 'call', _192 => _192(key), 'optionalAccess', _193 => _193[0]]), () => ( ""));
5124
5143
  return key.length - prefix.length <= 8 ? `${prefix}\u2022\u2022\u2022\u2022` : `${prefix}\u2026${key.slice(-4)}`;
5125
5144
  }
5126
5145
  function HeaderName({ children }) {
@@ -5136,7 +5155,7 @@ function Section({ title, description, children }) {
5136
5155
  ] });
5137
5156
  }
5138
5157
  function ProxyCredentialsPanel({ description }) {
5139
- const hydrated = _chunk3H3CQ7BQcjs.useIsHydrated.call(void 0, );
5158
+ const hydrated = _chunkGRNTIKPDcjs.useIsHydrated.call(void 0, );
5140
5159
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5141
5160
  ProxyCredentialsForm,
5142
5161
  {
@@ -5157,8 +5176,8 @@ function ProxyCredentialsForm({ description, saved }) {
5157
5176
  const errors = _react.useMemo.call(void 0, () => {
5158
5177
  const out = {};
5159
5178
  for (const { field } of _chunk5GJM7VRRcjs.EMBED_PROXY_OPTIONAL_HEADERS) {
5160
- const value = _optionalChain([optional, 'access', _186 => _186[field], 'optionalAccess', _187 => _187.trim, 'call', _188 => _188()]);
5161
- const message = value ? _optionalChain([OPTIONAL_FIELD_COPY, 'access', _189 => _189[field], 'access', _190 => _190.validate, 'optionalCall', _191 => _191(value)]) : null;
5179
+ const value = _optionalChain([optional, 'access', _194 => _194[field], 'optionalAccess', _195 => _195.trim, 'call', _196 => _196()]);
5180
+ const message = value ? _optionalChain([OPTIONAL_FIELD_COPY, 'access', _197 => _197[field], 'access', _198 => _198.validate, 'optionalCall', _199 => _199(value)]) : null;
5162
5181
  if (message) out[field] = message;
5163
5182
  }
5164
5183
  return out;
@@ -5170,12 +5189,12 @@ function ProxyCredentialsForm({ description, saved }) {
5170
5189
  ...keyForPreview ? [["Authorization", `Bearer ${keyForPreview}`]] : [],
5171
5190
  ...email.trim() ? [["X-Chat-Act-As", email.trim().toLowerCase()]] : [],
5172
5191
  ..._chunk5GJM7VRRcjs.EMBED_PROXY_OPTIONAL_HEADERS.flatMap(({ field, header }) => {
5173
- const value = _optionalChain([optional, 'access', _192 => _192[field], 'optionalAccess', _193 => _193.trim, 'call', _194 => _194()]);
5192
+ const value = _optionalChain([optional, 'access', _200 => _200[field], 'optionalAccess', _201 => _201.trim, 'call', _202 => _202()]);
5174
5193
  return value ? [[header, value]] : [];
5175
5194
  })
5176
5195
  ];
5177
5196
  const save = () => {
5178
- const key = secret.trim() || _optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _195 => _195.secret]);
5197
+ const key = secret.trim() || _optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _203 => _203.secret]);
5179
5198
  const actAs = email.trim().toLowerCase();
5180
5199
  if (!key || !actAs || hasErrors) {
5181
5200
  setStatus(hasErrors ? "Fix the highlighted fields first." : "API key and act-as email are required.");
@@ -5300,21 +5319,21 @@ function ProxyCredentialsForm({ description, saved }) {
5300
5319
 
5301
5320
  // src/components/chat/index.ts
5302
5321
  var LoadedEmbeddableChat = _react.lazy.call(void 0,
5303
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-7Z2OQK3X.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
5322
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-ODKTSW3C.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
5304
5323
  );
5305
5324
  var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
5306
5325
  const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
5307
5326
  const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
5308
- _react.useEffect.call(void 0, () => _chunk3H3CQ7BQcjs.holdAskAiOpens.call(void 0, ), []);
5327
+ _react.useEffect.call(void 0, () => _chunkGRNTIKPDcjs.holdAskAiOpens.call(void 0, ), []);
5309
5328
  _react.useEffect.call(void 0, () => {
5310
5329
  if (load) return void 0;
5311
5330
  const start = () => setLoadRequested(true);
5312
- if (_chunk3H3CQ7BQcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
5313
- for (const name of _chunk3H3CQ7BQcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
5314
- const cancel = _chunk3H3CQ7BQcjs.onAskAiIntent.call(void 0, start);
5331
+ if (_chunkGRNTIKPDcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
5332
+ for (const name of _chunkGRNTIKPDcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
5333
+ const cancel = _chunkGRNTIKPDcjs.onAskAiIntent.call(void 0, start);
5315
5334
  return () => {
5316
5335
  cancel();
5317
- for (const name of _chunk3H3CQ7BQcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
5336
+ for (const name of _chunkGRNTIKPDcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
5318
5337
  };
5319
5338
  }, [load]);
5320
5339
  if (!load) return null;
@@ -5534,4 +5553,5 @@ EmbeddableChat.displayName = "EmbeddableChat";
5534
5553
 
5535
5554
 
5536
5555
 
5537
- exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;
5556
+
5557
+ exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.clickUpDropDownOption = clickUpDropDownOption; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;