ai12z 3.18.1-alpha.3 → 3.18.1-alpha.4

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 (135) hide show
  1. package/dist/cjs/ai12z-beacon.cjs.entry.js +2 -2
  2. package/dist/cjs/ai12z-bot.cjs.entry.js +58 -25
  3. package/dist/cjs/ai12z-category_2.cjs.entry.js +3 -3
  4. package/dist/cjs/ai12z-chat-message.cjs.entry.js +2 -2
  5. package/dist/cjs/ai12z-chat_2.cjs.entry.js +9 -9
  6. package/dist/cjs/ai12z-container.cjs.entry.js +3 -3
  7. package/dist/cjs/ai12z-cta.cjs.entry.js +5 -5
  8. package/dist/cjs/ai12z-form.cjs.entry.js +2 -2
  9. package/dist/cjs/ai12z-inline-search.cjs.entry.js +2 -2
  10. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +6 -6
  11. package/dist/cjs/ai12z-search-panel.cjs.entry.js +1 -1
  12. package/dist/cjs/{beacon-Dzm5dknI.js → beacon-Czgnd3CD.js} +1 -1
  13. package/dist/cjs/chat-avatar_6.cjs.entry.js +1 -1
  14. package/dist/cjs/{ctaHelpers-CFn_XVtl.js → ctaHelpers-CBuhL_jB.js} +1 -1
  15. package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
  16. package/dist/cjs/{index-DN109Evg.js → index-Drhs0CJ_.js} +1 -1
  17. package/dist/cjs/index.cjs.js +11 -11
  18. package/dist/cjs/item-list.cjs.entry.js +2 -2
  19. package/dist/cjs/{keyboard-shortcuts-g_HyNYT-.js → keyboard-shortcuts-CGeGLGsZ.js} +2 -2
  20. package/dist/cjs/{parseHelper-DGQ2ETjm.js → parseHelper-BAGEH8aD.js} +1 -1
  21. package/dist/cjs/{processCarouselData-BPxsH6Ck.js → processCarouselData-CUdlWksX.js} +1 -1
  22. package/dist/cjs/{reCaptchaHelpers-C8v6BB6z.js → reCaptchaHelpers-C34b7Ext.js} +1 -1
  23. package/dist/cjs/search-results-page.cjs.entry.js +5 -5
  24. package/dist/cjs/{socket-service-te83hltJ.js → socket-service-BtgTNhJE.js} +1 -1
  25. package/dist/cjs/{styleSheetRegistry-Cv84KUXj.js → styleSheetRegistry-DzdnFWWf.js} +1 -1
  26. package/dist/cjs/{surveyHelpers-DpChOjp8.js → surveyHelpers-BBFiDvDJ.js} +1 -1
  27. package/dist/cjs/{utils-kaVdO3ki.js → utils-CoQdGy0_.js} +9 -3
  28. package/dist/collection/components/ai12z-bot/ai12z-bot.js +49 -16
  29. package/dist/collection/utils/utils.js +9 -3
  30. package/dist/components/ai12z-beacon.js +1 -1
  31. package/dist/components/ai12z-bot.js +1 -1
  32. package/dist/components/ai12z-chat-message.js +1 -1
  33. package/dist/components/ai12z-chat.js +1 -1
  34. package/dist/components/ai12z-container.js +1 -1
  35. package/dist/components/ai12z-cta.js +1 -1
  36. package/dist/components/ai12z-form.js +1 -1
  37. package/dist/components/ai12z-inline-search.js +1 -1
  38. package/dist/components/ai12z-input-form.js +1 -1
  39. package/dist/components/ai12z-knowledge-box.js +1 -1
  40. package/dist/components/ai12z-search-panel.js +1 -1
  41. package/dist/components/audio-recorder.js +1 -1
  42. package/dist/components/dynamic-form.js +1 -1
  43. package/dist/components/index.js +1 -1
  44. package/dist/components/interaction-buttons.js +1 -1
  45. package/dist/components/item-list.js +1 -1
  46. package/dist/components/{p-CFCrlzgY.js → p-1YFhq9-y.js} +1 -1
  47. package/dist/components/{p-BN2-aIWf.js → p-4t1RwaqI.js} +1 -1
  48. package/dist/components/{p-D6-f0_II.js → p-78hwN8YJ.js} +1 -1
  49. package/dist/components/{p-tvFvUUjk.js → p-Ay58tplh.js} +1 -1
  50. package/dist/components/{p-DWBK1wub.js → p-B-VVBifZ.js} +1 -1
  51. package/dist/components/p-B6pTFhhC.js +31 -0
  52. package/dist/components/{p-bpEiYuDq.js → p-B7pLwapW.js} +1 -1
  53. package/dist/components/{p-DxzrIzcK.js → p-BB-L8n9K.js} +1 -1
  54. package/dist/components/{p-Dkus1tH4.js → p-BHn7jecQ.js} +1 -1
  55. package/dist/components/p-BKMFQL0M.js +1 -0
  56. package/dist/components/{p-8eJxsLkS.js → p-Bh75WwP-.js} +1 -1
  57. package/dist/components/{p-BaWiE0V_.js → p-BnR04Axf.js} +1 -1
  58. package/dist/components/p-C6-OU4T3.js +1 -0
  59. package/dist/components/{p-BYO6vh73.js → p-CIcrE-rZ.js} +1 -1
  60. package/dist/components/{p-BGvClrhu.js → p-CIcrweXR.js} +1 -1
  61. package/dist/components/p-ChqFObFj.js +1 -0
  62. package/dist/components/{p-BDfPuPOG.js → p-D4vLxltD.js} +1 -1
  63. package/dist/components/{p-yp55Zv6C.js → p-DH9V752C.js} +1 -1
  64. package/dist/components/{p-Cyx_DKRP.js → p-DLv2aJx5.js} +1 -1
  65. package/dist/components/{p-u3zsAAw1.js → p-DNZpZusY.js} +1 -1
  66. package/dist/components/{p-CLWMGEhc.js → p-DvR8q0mJ.js} +1 -1
  67. package/dist/components/{p-DuK8LlQX.js → p-THqxkFeE.js} +1 -1
  68. package/dist/components/{p-B1v9MUA3.js → p-pt8auS06.js} +1 -1
  69. package/dist/components/privacy-modal.js +1 -1
  70. package/dist/components/search-results-page.js +1 -1
  71. package/dist/esm/ai12z-beacon.entry.js +2 -2
  72. package/dist/esm/ai12z-bot.entry.js +58 -25
  73. package/dist/esm/ai12z-category_2.entry.js +3 -3
  74. package/dist/esm/ai12z-chat-message.entry.js +2 -2
  75. package/dist/esm/ai12z-chat_2.entry.js +9 -9
  76. package/dist/esm/ai12z-container.entry.js +3 -3
  77. package/dist/esm/ai12z-cta.entry.js +5 -5
  78. package/dist/esm/ai12z-form.entry.js +2 -2
  79. package/dist/esm/ai12z-inline-search.entry.js +2 -2
  80. package/dist/esm/ai12z-knowledge-box.entry.js +6 -6
  81. package/dist/esm/ai12z-search-panel.entry.js +1 -1
  82. package/dist/esm/{beacon-QqHlhBch.js → beacon-dVixFB1u.js} +1 -1
  83. package/dist/esm/chat-avatar_6.entry.js +1 -1
  84. package/dist/esm/{ctaHelpers-B-wi91c0.js → ctaHelpers-CdhJFY0U.js} +1 -1
  85. package/dist/esm/dynamic-form.entry.js +1 -1
  86. package/dist/esm/{index-CXzW7Axh.js → index-cUgoYuZQ.js} +1 -1
  87. package/dist/esm/index.js +11 -11
  88. package/dist/esm/item-list.entry.js +2 -2
  89. package/dist/esm/{keyboard-shortcuts-aKnwuXq8.js → keyboard-shortcuts-kPLMseCe.js} +2 -2
  90. package/dist/esm/{parseHelper-Cee8ydll.js → parseHelper-DTnz9Qdt.js} +1 -1
  91. package/dist/esm/{processCarouselData-QBQI4AFj.js → processCarouselData-xHJIFrZv.js} +1 -1
  92. package/dist/esm/{reCaptchaHelpers-cGrPI_7D.js → reCaptchaHelpers-DKI0FON7.js} +1 -1
  93. package/dist/esm/search-results-page.entry.js +5 -5
  94. package/dist/esm/{socket-service-CAIM0w4e.js → socket-service-E3hf212o.js} +1 -1
  95. package/dist/esm/{styleSheetRegistry-B-PmRS4D.js → styleSheetRegistry-BWogq8gZ.js} +1 -1
  96. package/dist/esm/{surveyHelpers-BUZmHEX3.js → surveyHelpers-uluq0H6O.js} +1 -1
  97. package/dist/esm/{utils-D3nP2AJo.js → utils-CCdcWSxC.js} +9 -3
  98. package/dist/library/index.esm.js +1 -1
  99. package/dist/library/library.esm.js +1 -1
  100. package/dist/library/{p-D1LcAm4L.js → p--MKEsZBx.js} +1 -1
  101. package/dist/library/{p-7be84a00.entry.js → p-022080d3.entry.js} +1 -1
  102. package/dist/library/{p-1cbe7a81.entry.js → p-20d3e2c9.entry.js} +1 -1
  103. package/dist/library/{p-337a0c14.entry.js → p-33e99187.entry.js} +1 -1
  104. package/dist/library/{p-93ff1644.entry.js → p-3a0a5b50.entry.js} +1 -1
  105. package/dist/library/{p-a3933c45.entry.js → p-47e53c8a.entry.js} +1 -1
  106. package/dist/library/p-4b4d3c29.entry.js +1 -0
  107. package/dist/library/{p-0a15affd.entry.js → p-4c980283.entry.js} +1 -1
  108. package/dist/library/{p-737bda98.entry.js → p-583f061b.entry.js} +1 -1
  109. package/dist/library/{p-98a862a9.entry.js → p-652f34a1.entry.js} +1 -1
  110. package/dist/library/{p-8bcfd6de.entry.js → p-789ed556.entry.js} +1 -1
  111. package/dist/library/{p-10584795.entry.js → p-79ecfce1.entry.js} +1 -1
  112. package/dist/library/{p-D1m3N8c7.js → p-B3u3hXdc.js} +1 -1
  113. package/dist/library/{p-D82dKYwS.js → p-BDjgH7mq.js} +1 -1
  114. package/dist/library/p-BNdhaX_-.js +1 -0
  115. package/dist/library/{p-0KFBScvP.js → p-BuuiqgJH.js} +2 -2
  116. package/dist/library/{p-nuQI4tUs.js → p-CLlO9j0Q.js} +1 -1
  117. package/dist/library/{p-DXkcorv-.js → p-CZN9OQz-.js} +1 -1
  118. package/dist/library/{p-CDW50yj6.js → p-CpV2ZfVZ.js} +1 -1
  119. package/dist/library/{p-C2ldkXu_.js → p-DpYxsfeB.js} +1 -1
  120. package/dist/library/{p-eXNri847.js → p-bBHIArBe.js} +1 -1
  121. package/dist/library/{p-8793243c.entry.js → p-c02be77e.entry.js} +1 -1
  122. package/dist/library/{p-4a98c2df.entry.js → p-c5d71d16.entry.js} +1 -1
  123. package/dist/library/p-eec388c0.entry.js +1 -0
  124. package/dist/library/{p-fde77918.entry.js → p-f73a10ec.entry.js} +1 -1
  125. package/dist/library/{p-QY9ae39G.js → p-ks1OFGk1.js} +1 -1
  126. package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +3 -0
  127. package/dist/types/utils/utils.d.ts +1 -1
  128. package/package.json +2 -2
  129. package/dist/components/p-C46Y7kat.js +0 -1
  130. package/dist/components/p-CPRWfcS6.js +0 -31
  131. package/dist/components/p-D7e8HNXM.js +0 -1
  132. package/dist/components/p-DrKpCVS_.js +0 -1
  133. package/dist/library/p-77bec202.entry.js +0 -1
  134. package/dist/library/p-80061823.entry.js +0 -1
  135. package/dist/library/p-DmAaiJIq.js +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var beacon = require('./beacon-Dzm5dknI.js');
5
- require('./utils-kaVdO3ki.js');
4
+ var beacon = require('./beacon-Czgnd3CD.js');
5
+ require('./utils-CoQdGy0_.js');
6
6
 
7
7
  const Ai12zBeacon = class {
8
8
  constructor(hostRef) {
@@ -2,20 +2,20 @@
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
4
  var responseAdapter = require('./response-adapter-BiZsYx3F.js');
5
- var processCarouselData = require('./processCarouselData-BPxsH6Ck.js');
5
+ var processCarouselData = require('./processCarouselData-CUdlWksX.js');
6
6
  var logger$2 = require('./logger-D--BUQGx.js');
7
- var utils = require('./utils-kaVdO3ki.js');
8
- var index$1 = require('./index-DN109Evg.js');
7
+ var utils = require('./utils-CoQdGy0_.js');
8
+ var index$1 = require('./index-Drhs0CJ_.js');
9
9
  var globalStore = require('./global-store-R6x06KvJ.js');
10
- var reCaptchaHelpers = require('./reCaptchaHelpers-C8v6BB6z.js');
10
+ var reCaptchaHelpers = require('./reCaptchaHelpers-C34b7Ext.js');
11
11
  var botHelpers = require('./botHelpers-B_lFspU6.js');
12
- var surveyHelpers = require('./surveyHelpers-DpChOjp8.js');
12
+ var surveyHelpers = require('./surveyHelpers-BBFiDvDJ.js');
13
13
  var scriptStyleLoader = require('./scriptStyleLoader-D-bqKqSb.js');
14
- var keyboardShortcuts = require('./keyboard-shortcuts-g_HyNYT-.js');
15
- var ctaHelpers = require('./ctaHelpers-CFn_XVtl.js');
14
+ var keyboardShortcuts = require('./keyboard-shortcuts-CGeGLGsZ.js');
15
+ var ctaHelpers = require('./ctaHelpers-CBuhL_jB.js');
16
16
  var appStore = require('./app-store-BtkiHvcw.js');
17
- var parseHelper = require('./parseHelper-DGQ2ETjm.js');
18
- var beacon = require('./beacon-Dzm5dknI.js');
17
+ var parseHelper = require('./parseHelper-BAGEH8aD.js');
18
+ var beacon = require('./beacon-Czgnd3CD.js');
19
19
  var bodyScrollLock = require('./bodyScrollLock-C7gKTAfx.js');
20
20
  require('./_commonjsHelpers-MBWFX2dn.js');
21
21
 
@@ -1067,7 +1067,8 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
1067
1067
  return t;
1068
1068
  };
1069
1069
  const logger = new logger$2.Logger("Ai12zBot");
1070
- const STREAM_END_TIMEOUT_MS = 30000;
1070
+ // Allow silent backend steps to exceed the 90-second per-call LLM budget.
1071
+ const STREAM_END_TIMEOUT_MS = 120000;
1071
1072
  const Ai12zBot = class {
1072
1073
  constructor(hostRef) {
1073
1074
  index.registerInstance(this, hostRef);
@@ -1089,12 +1090,15 @@ const Ai12zBot = class {
1089
1090
  this.customStyle = "";
1090
1091
  this.customJS = "";
1091
1092
  this.dataOverrideFunction = null;
1093
+ this.socketReady = false;
1092
1094
  this.ignoreChunks = false;
1093
1095
  // finding-agent placeholder is tracked via data-finding-agent attribute in the DOM
1094
1096
  // private originalTitle: string = document.title
1095
1097
  this.unreadCount = 0;
1096
1098
  this.hasPersistedConversationId = false;
1097
1099
  this.tokenExpiresAtMs = null;
1100
+ this.turnTimedOut = false;
1101
+ this.retiringTimedOutSocket = false;
1098
1102
  this.liveAgentButtonText = "Talk to a Live Agent";
1099
1103
  this.isLiveAgentEnabled = false;
1100
1104
  this.isTypingIndicatorVisible = false;
@@ -1307,10 +1311,7 @@ const Ai12zBot = class {
1307
1311
  this.showWelcomeScreen = false;
1308
1312
  }
1309
1313
  try {
1310
- if (this.messages.length === 0 || !((_b = this.socket) === null || _b === void 0 ? void 0 : _b.connected)) {
1311
- await this.socketConnection();
1312
- }
1313
- else if (!this.socket || !this.socket.connected) {
1314
+ if (this.messages.length === 0 || !((_b = this.socket) === null || _b === void 0 ? void 0 : _b.connected) || !this.socketReady) {
1314
1315
  await this.socketConnection();
1315
1316
  }
1316
1317
  }
@@ -1385,6 +1386,7 @@ const Ai12zBot = class {
1385
1386
  this.checkLiveAgentMode();
1386
1387
  this.isStreaming = true;
1387
1388
  this.ignoreChunks = false;
1389
+ this.turnTimedOut = false;
1388
1390
  this.resetStreamEndWatchdog();
1389
1391
  this.invokeSocket(resolvedQuery);
1390
1392
  }
@@ -1952,6 +1954,7 @@ const Ai12zBot = class {
1952
1954
  if (this.streamEndWatchdog) {
1953
1955
  clearTimeout(this.streamEndWatchdog);
1954
1956
  this.streamEndWatchdog = undefined;
1957
+ this.turnTimedOut = false;
1955
1958
  }
1956
1959
  }
1957
1960
  resetStreamEndWatchdog() {
@@ -1962,7 +1965,13 @@ const Ai12zBot = class {
1962
1965
  return;
1963
1966
  }
1964
1967
  console.error("Socket response timed out before completion");
1968
+ // Ignore late chunks from the timed-out turn.
1969
+ this.turnTimedOut = true;
1970
+ this.ignoreChunks = true;
1965
1971
  this.failTurn("Something went wrong. Please try again.");
1972
+ // Retire the timed-out SID; the next send opens a fresh connection.
1973
+ this.retiringTimedOutSocket = true;
1974
+ this.socket.disconnect();
1966
1975
  }, STREAM_END_TIMEOUT_MS);
1967
1976
  }
1968
1977
  componentDidLoad() {
@@ -2340,7 +2349,10 @@ const Ai12zBot = class {
2340
2349
  this.failTurn("Something went wrong. Please try again.");
2341
2350
  return;
2342
2351
  }
2343
- this.clearStreamEndWatchdog();
2352
+ if (this.turnTimedOut) {
2353
+ console.warn("Ignoring chunks due to turn timing out.");
2354
+ return;
2355
+ }
2344
2356
  // For v2, adapt the response format to match legacy expectations
2345
2357
  const data = protocol === "v2" ? responseAdapter.adaptCompleteToLegacy(rawData) : rawData;
2346
2358
  if (data.showInput !== undefined && typeof data.showInput === "boolean") {
@@ -2364,9 +2376,15 @@ const Ai12zBot = class {
2364
2376
  if (!orphaned) {
2365
2377
  this.messageReceived.emit({ data, domId: this.currentDomId });
2366
2378
  }
2379
+ if (this.ignoreChunks) {
2380
+ console.warn("Ignoring chunks due to ignoreChunks flag being set.");
2381
+ this.conversationId = data === null || data === void 0 ? void 0 : data.conversationId;
2382
+ return;
2383
+ }
2367
2384
  this.announce(this.isOpened ? "New message received" : "New message received while chat is minimized");
2368
2385
  requestAnimationFrame(async () => {
2369
2386
  var _a, _b, _c;
2387
+ this.clearStreamEndWatchdog();
2370
2388
  try {
2371
2389
  // ✅ Create config object
2372
2390
  const config = {
@@ -2668,6 +2686,10 @@ const Ai12zBot = class {
2668
2686
  return true;
2669
2687
  }
2670
2688
  async socketConnection() {
2689
+ var _a, _b;
2690
+ this.socketReady = false;
2691
+ (_a = this.socket) === null || _a === void 0 ? void 0 : _a.removeAllListeners();
2692
+ (_b = this.socket) === null || _b === void 0 ? void 0 : _b.disconnect();
2671
2693
  const protocol = utils.getBackendProtocol(this.dataMode);
2672
2694
  let a12z_EndPoint = utils.getEndpoint(this.dataMode);
2673
2695
  this.socket = responseAdapter.lookup(a12z_EndPoint, {
@@ -2700,26 +2722,29 @@ const Ai12zBot = class {
2700
2722
  }, 30000);
2701
2723
  this.socket.on("connect", () => {
2702
2724
  if (protocol === "v2") {
2725
+ const onAuthError = errorData => {
2726
+ if (errorData.code === "AUTH_FAILED" || errorData.code === "AUTH_REQUIRED" || errorData.code === "AUTH_ERROR") {
2727
+ if (!settled) {
2728
+ settled = true;
2729
+ clearTimeout(timeoutId);
2730
+ }
2731
+ this.errored.emit(errorData);
2732
+ reject(new Error(errorData.message));
2733
+ }
2734
+ };
2703
2735
  // v2: authenticate before setting up listeners
2704
2736
  this.socket.emit("authenticate", { api_key: this.dataKey });
2705
2737
  this.socket.once("authenticated", () => {
2738
+ this.socket.off("error", onAuthError);
2706
2739
  if (!settled) {
2707
2740
  settled = true;
2708
2741
  clearTimeout(timeoutId);
2709
2742
  }
2710
2743
  this.handleSocketResponse();
2744
+ this.socketReady = true;
2711
2745
  resolve();
2712
2746
  });
2713
- this.socket.once("error", errorData => {
2714
- if (errorData.code === "AUTH_FAILED" || errorData.code === "AUTH_REQUIRED" || errorData.code === "AUTH_ERROR") {
2715
- if (!settled) {
2716
- settled = true;
2717
- clearTimeout(timeoutId);
2718
- }
2719
- this.errored.emit(errorData);
2720
- reject(new Error(errorData.message));
2721
- }
2722
- });
2747
+ this.socket.once("error", onAuthError);
2723
2748
  }
2724
2749
  else {
2725
2750
  // Legacy: set up listeners immediately
@@ -2728,6 +2753,7 @@ const Ai12zBot = class {
2728
2753
  clearTimeout(timeoutId);
2729
2754
  }
2730
2755
  this.handleSocketResponse();
2756
+ this.socketReady = true;
2731
2757
  resolve();
2732
2758
  }
2733
2759
  });
@@ -2775,9 +2801,16 @@ const Ai12zBot = class {
2775
2801
  ];
2776
2802
  });
2777
2803
  this.socket.on("disconnect", () => {
2804
+ this.socketReady = false;
2778
2805
  // console.log("Disconnected from Socket.IO server")
2779
2806
  this.socket.off("response");
2780
2807
  this.socket.off("chunk");
2808
+ this.socket.off("end_response");
2809
+ this.socket.off("complete");
2810
+ if (this.retiringTimedOutSocket) {
2811
+ this.retiringTimedOutSocket = false;
2812
+ return;
2813
+ }
2781
2814
  // Handle disconnection if needed
2782
2815
  if (this.isStreaming)
2783
2816
  this.failTurn("Connection lost. Please try again.");
@@ -2,11 +2,11 @@
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
4
  var SearchResult = require('./SearchResult-CvTJr55G.js');
5
- var utils = require('./utils-kaVdO3ki.js');
5
+ var utils = require('./utils-CoQdGy0_.js');
6
6
  var _commonjsHelpers = require('./_commonjsHelpers-MBWFX2dn.js');
7
7
  var appStore = require('./app-store-BtkiHvcw.js');
8
- var parseHelper = require('./parseHelper-DGQ2ETjm.js');
9
- require('./ctaHelpers-CFn_XVtl.js');
8
+ var parseHelper = require('./parseHelper-BAGEH8aD.js');
9
+ require('./ctaHelpers-CBuhL_jB.js');
10
10
  require('./logger-D--BUQGx.js');
11
11
 
12
12
  const categoryCss = () => `ai12z-category{font-family:var(--ai12z-font-family) !important;font-size:var(--ai12z-search-font-size, var(--ai12z-font-size)) !important}.custom-title{font-size:var(--ai12z-category-font-size);color:var(--ai12z-category-font-color)}`;
@@ -2,8 +2,8 @@
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
4
  var botHelpers = require('./botHelpers-B_lFspU6.js');
5
- var styleSheetRegistry = require('./styleSheetRegistry-Cv84KUXj.js');
6
- require('./utils-kaVdO3ki.js');
5
+ var styleSheetRegistry = require('./styleSheetRegistry-DzdnFWWf.js');
6
+ require('./utils-CoQdGy0_.js');
7
7
 
8
8
  const ai12zChatMessageCss = () => `.show-more-btn{background:none;color:var(--ai12z-knowledge-box-show-more-color, #4a8aff);font-size:16px;cursor:pointer;font-weight:500;border-radius:6px;transition:color 0.2s ease, background 0.2s ease;border:1px solid var(--ai12z-knowledge-box-show-more-border, blue);padding:10px;border-radius:20px;align-items:center;justify-content:center;margin:auto;display:block;z-index:20;position:relative;width:30%}.show-more-btn:hover{color:var(--ai12z-knowledge-box-show-more-hover-color, #1a73e8);background:rgba(74, 138, 255, 0.08)}.show-more-btn:active{background:rgba(74, 138, 255, 0.15)}.show-more-btn svg{vertical-align:middle;gap:5px;transition:transform 0.3s ease-in-out;display:inline-block;margin-left:10px;font-size:20}.message-text{line-height:1.55;font-size:15px;color:var(--ai12z-knowledge-box-text-color, #1e1e1e);transition:max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}.fade-overlay{position:absolute;bottom:0;left:0;right:0;height:100px;z-index:10;pointer-events:none;opacity:1;transition:opacity 0.3s ease-in-out;background:linear-gradient( to bottom, rgba(255, 255, 255, 0) 0%, var(--ai12z-knowledge-box-bg-color, #ffffff) 85% )}.chat-message{position:relative;}.custom-line-clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp);line-clamp:var(--line-clamp)}.ai12z-form-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.ai12zBtn{background-color:var(--ai12z-knowledge-box-primary-color);color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}`;
9
9
 
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var processCarouselData = require('./processCarouselData-BPxsH6Ck.js');
5
- var parseHelper = require('./parseHelper-DGQ2ETjm.js');
6
- var utils = require('./utils-kaVdO3ki.js');
7
- var ctaHelpers = require('./ctaHelpers-CFn_XVtl.js');
8
- var index$1 = require('./index-DN109Evg.js');
9
- var socketService = require('./socket-service-te83hltJ.js');
10
- var surveyHelpers = require('./surveyHelpers-DpChOjp8.js');
11
- var keyboardShortcuts = require('./keyboard-shortcuts-g_HyNYT-.js');
4
+ var processCarouselData = require('./processCarouselData-CUdlWksX.js');
5
+ var parseHelper = require('./parseHelper-BAGEH8aD.js');
6
+ var utils = require('./utils-CoQdGy0_.js');
7
+ var ctaHelpers = require('./ctaHelpers-CBuhL_jB.js');
8
+ var index$1 = require('./index-Drhs0CJ_.js');
9
+ var socketService = require('./socket-service-BtgTNhJE.js');
10
+ var surveyHelpers = require('./surveyHelpers-BBFiDvDJ.js');
11
+ var keyboardShortcuts = require('./keyboard-shortcuts-CGeGLGsZ.js');
12
12
  var analyticsService = require('./analyticsService-CkAva47S.js');
13
13
  var botHelpers = require('./botHelpers-B_lFspU6.js');
14
- var beacon = require('./beacon-Dzm5dknI.js');
14
+ var beacon = require('./beacon-Czgnd3CD.js');
15
15
  require('./_commonjsHelpers-MBWFX2dn.js');
16
16
  require('./logger-D--BUQGx.js');
17
17
  require('./response-adapter-BiZsYx3F.js');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
5
- var processCarouselData = require('./processCarouselData-BPxsH6Ck.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
+ var processCarouselData = require('./processCarouselData-CUdlWksX.js');
6
6
  var botHelpers = require('./botHelpers-B_lFspU6.js');
7
- var index$1 = require('./index-DN109Evg.js');
7
+ var index$1 = require('./index-Drhs0CJ_.js');
8
8
  var purify_es = require('./purify.es-B7Ashs9w.js');
9
9
  require('./_commonjsHelpers-MBWFX2dn.js');
10
10
 
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
5
  var SearchResult = require('./SearchResult-CvTJr55G.js');
6
- var socketService = require('./socket-service-te83hltJ.js');
6
+ var socketService = require('./socket-service-BtgTNhJE.js');
7
7
  var globalStore = require('./global-store-R6x06KvJ.js');
8
- var reCaptchaHelpers = require('./reCaptchaHelpers-C8v6BB6z.js');
9
- var ctaHelpers = require('./ctaHelpers-CFn_XVtl.js');
10
- var beacon = require('./beacon-Dzm5dknI.js');
8
+ var reCaptchaHelpers = require('./reCaptchaHelpers-C34b7Ext.js');
9
+ var ctaHelpers = require('./ctaHelpers-CBuhL_jB.js');
10
+ var beacon = require('./beacon-Czgnd3CD.js');
11
11
  var appStore = require('./app-store-BtkiHvcw.js');
12
12
  var bodyScrollLock = require('./bodyScrollLock-C7gKTAfx.js');
13
13
  var purify_es = require('./purify.es-B7Ashs9w.js');
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
5
- var surveyHelpers = require('./surveyHelpers-DpChOjp8.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
+ var surveyHelpers = require('./surveyHelpers-BBFiDvDJ.js');
6
6
  var scriptStyleLoader = require('./scriptStyleLoader-D-bqKqSb.js');
7
7
 
8
8
  const ai12zFormCss = () => `.ai12z-form-wrapper{width:100%}.ai12z-form-status,.ai12z-form-error{font-size:14px;margin-bottom:8px}.ai12z-form-error{color:#b91c1c}.ai12z-form-container{width:100%}.ai12z-form-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}@keyframes ai12z-form-spin{to{transform:rotate(360deg)}}@keyframes ai12z-form-bounce{0%,80%,100%{opacity:0.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}`;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
5
  var SearchResult = require('./SearchResult-CvTJr55G.js');
6
- var socketService = require('./socket-service-te83hltJ.js');
6
+ var socketService = require('./socket-service-BtgTNhJE.js');
7
7
  require('./response-adapter-BiZsYx3F.js');
8
8
 
9
9
  const ai12zInlineSearchCss = () => `:host{font-family:var(--ai12z-font-family) !important;font-size:var(--ai12z-font-size) !important;color:var(--ai12z-font-color, black);text-align:var(--ai12z-text-align, left)}`;
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
5
- var styleSheetRegistry = require('./styleSheetRegistry-Cv84KUXj.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
+ var styleSheetRegistry = require('./styleSheetRegistry-DzdnFWWf.js');
6
6
  var responseAdapter = require('./response-adapter-BiZsYx3F.js');
7
- var processCarouselData = require('./processCarouselData-BPxsH6Ck.js');
7
+ var processCarouselData = require('./processCarouselData-CUdlWksX.js');
8
8
  var globalStore = require('./global-store-R6x06KvJ.js');
9
- var index$1 = require('./index-DN109Evg.js');
10
- var surveyHelpers = require('./surveyHelpers-DpChOjp8.js');
9
+ var index$1 = require('./index-Drhs0CJ_.js');
10
+ var surveyHelpers = require('./surveyHelpers-BBFiDvDJ.js');
11
11
  var botHelpers = require('./botHelpers-B_lFspU6.js');
12
12
  var analyticsService = require('./analyticsService-CkAva47S.js');
13
- var beacon = require('./beacon-Dzm5dknI.js');
13
+ var beacon = require('./beacon-Czgnd3CD.js');
14
14
  require('./_commonjsHelpers-MBWFX2dn.js');
15
15
 
16
16
  const ai12zKnowledgeBoxCss = () => `:host{font-family:var(--ai12z-knowledge-box-font-family) !important;font-size:var(--ai12z-knowledge-box-font-size) !important;color:var(--ai12z-knowledge-box-font-color, black);text-align:var(--ai12z-knowledge-box-text-align, left)}.ai12z-kb-wrapper{background-color:var(--ai12z-knowledge-box-bg-color)}.ai12z-suggest-container{padding:32px 32px 32px 32px;flex:none}.ai12z-suggest-answer{font-size:var(--ai12z-knowledge-box-font-size)}.ai12z-suggest-title{font-weight:700}.ai12z-suggest-align{float:left}.ai12z-suggest-relevance{text-align:end}.ai12z-suggest-error-msg{color:rgb(239 68 68)}.ai12z-suggest-hide{display:none}.ai12z-suggest-thumbs{margin-left:90%}.ai12z-suggest-thumbs-up{fill:var(--ai12z-feedback-selected);width:24px}.ai12z-suggest-thumbs-down{fill:var(--ai12z-feedback-selected);width:24px}.not-allowed{cursor:not-allowed}.ai12zBtn{background-color:var(--ai12z-knowledge-box-button-bgcolor);color:var(--ai12z-knowledge-box-button-color) !important;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none !important;margin:5px}.custom-privacy{color:var(--ai12z-knowledge-box-privacy-color);text-align:center;font-size:var(--ai12z-knowledge-box-privacy-font-size);margin-top:10px}button:focus-visible{outline:2px solid var(--ai12z-knowledge-box-focus-visible-color, #0A2A43);outline-offset:2px}button.kb-btn-primary:focus-visible{outline:2px solid var(--ai12z-knowledge-box-focus-visible-color-primary, --ai12z-knowledge-box-focus-visible-color);outline-offset:2px}button.kb-btn-secondary:focus-visible{outline:2px solid var(--ai12z-knowledge-box-focus-visible-color-secondary, --ai12z-knowledge-box-focus-visible-color)}.diamond-icon{color:var(--ai12z-knowledge-box-icon-color, #a5e6e6);width:28px;height:28px;transform-origin:center;}.diamond-icon.loading{animation:rotate 2s linear infinite}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
5
  var SearchResult = require('./SearchResult-CvTJr55G.js');
6
6
 
7
7
  const ai12zSearchPanelCss = () => `:host{display:block;width:100%;font-family:var(--ai12z-font-family);font-size:var(--ai12z-font-size)}.input-focus-color{border:1px solid var(--ai12z-search-panel-focus-color)}.search-btn-bg-color{background-color:var(--ai12z-search-panel-button-bgcolor)}.input-border{border-bottom:1px solid var(--ai12z-search-panel-input-border-color)}.search-container{background-color:var(--ai12z-search-panel-bg)}.search-icon svg{width:20px;height:20px;color:var(--ai12z-search-panel-icon-color);}.search-input::-moz-placeholder{color:#999}.search-input::placeholder{color:#999}.search-results{width:100%;text-align:left}.cta-search-results{border-top-width:1px;border-bottom-width:0px;border-color:rgb(243 244 246)}.cta-search-results-list{position:relative;padding-bottom:20px;padding-top:20px}.cta-search-results-list:hover{background-color:var(--ai12z-hover-bg-color)}.cta-search-container{margin-left:auto;margin-right:auto;display:flex;max-width:896px;justify-content:space-between;-moz-column-gap:24px;column-gap:24px}.cta-search-container-two{display:flex;min-width:0px;-moz-column-gap:16px;column-gap:16px}.cta-search-container-three{min-width:0px;flex:1 1 auto}.cta-search-text{font-weight:600;line-height:24px;font-size:var(--ai12z-search-result-title-font-size);color:var(--ai12z-search-result-title-color)}.cta-search-text-position{position:absolute;left:0px;right:0px;top:-1px;bottom:0px}.cta-search-description{margin-top:4px;display:flex;font-size:var(--ai12z-search-result-description-font-size);line-height:16px;line-height:20px;color:var(--ai12z-search-result-description-color)}.cta-search-list-arrow{display:flex;align-items:center;flex-shrink:0;-moz-column-gap:16px;column-gap:16px}.custom-icon-width{width:64px}.results-icon svg{width:24px;height:24px}`;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('./utils-kaVdO3ki.js');
3
+ var utils = require('./utils-CoQdGy0_.js');
4
4
 
5
5
  // Google supported search domains.
6
6
  // Source: https://www.google.com/supported_domains
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-v8T1EJAJ.js');
4
- var utils = require('./utils-kaVdO3ki.js');
4
+ var utils = require('./utils-CoQdGy0_.js');
5
5
  var analyticsService = require('./analyticsService-CkAva47S.js');
6
6
  var logger$1 = require('./logger-D--BUQGx.js');
7
7
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('./utils-kaVdO3ki.js');
3
+ var utils = require('./utils-CoQdGy0_.js');
4
4
 
5
5
  // Utility: Generate UUID
6
6
  function generateUUID() {