ai12z 3.14.2 → 3.15.1-alpha.1

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 (124) hide show
  1. package/dist/cjs/ai12z-bot.cjs.entry.js +8 -8
  2. package/dist/cjs/ai12z-category_2.cjs.entry.js +3 -3
  3. package/dist/cjs/ai12z-chat-message.cjs.entry.js +13 -13
  4. package/dist/cjs/ai12z-chat_2.cjs.entry.js +8 -8
  5. package/dist/cjs/ai12z-container.cjs.entry.js +3 -3
  6. package/dist/cjs/ai12z-cta.cjs.entry.js +17 -14
  7. package/dist/cjs/ai12z-form.cjs.entry.js +2 -2
  8. package/dist/cjs/ai12z-inline-search.cjs.entry.js +2 -2
  9. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +5 -5
  10. package/dist/cjs/ai12z-search-panel.cjs.entry.js +1 -1
  11. package/dist/cjs/chat-avatar_6.cjs.entry.js +1 -1
  12. package/dist/cjs/{ctaHelpers-_6HvZZie.js → ctaHelpers-BAWdqIb-.js} +1 -1
  13. package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
  14. package/dist/cjs/{index-C-xyfB2W.js → index-DFDcxJlq.js} +1 -1
  15. package/dist/cjs/index.cjs.js +10 -10
  16. package/dist/cjs/item-list.cjs.entry.js +2 -2
  17. package/dist/cjs/{keyboard-shortcuts-CwJb0TM7.js → keyboard-shortcuts-ByaqwMVf.js} +2 -2
  18. package/dist/cjs/{parseHelper-Cp45LpWl.js → parseHelper-ESzSpZiY.js} +1 -1
  19. package/dist/cjs/{processCarouselData-YEoGs649.js → processCarouselData-d26q49FA.js} +1 -1
  20. package/dist/cjs/{reCaptchaHelpers-C5ato8kF.js → reCaptchaHelpers-natZDKlJ.js} +1 -1
  21. package/dist/cjs/search-results-page.cjs.entry.js +4 -4
  22. package/dist/cjs/{socket-service-L0xv4YGT.js → socket-service-DxWW7IWe.js} +1 -1
  23. package/dist/cjs/{styleSheetRegistry-7aecMygn.js → styleSheetRegistry-hbliKi19.js} +1 -1
  24. package/dist/cjs/{surveyHelpers-D4qhA3pY.js → surveyHelpers-mZePYIjS.js} +1 -1
  25. package/dist/cjs/{utils-BAJarpnb.js → utils-BDa8RFVo.js} +11 -14
  26. package/dist/collection/components/ai12z-cta/ai12z-cta.js +13 -10
  27. package/dist/collection/components/ai12z-knowledge-box/components/ai12z-chat-message.js +11 -11
  28. package/dist/collection/utils/utils.js +11 -14
  29. package/dist/components/ai12z-bot.js +1 -1
  30. package/dist/components/ai12z-chat-message.js +1 -1
  31. package/dist/components/ai12z-chat.js +1 -1
  32. package/dist/components/ai12z-container.js +1 -1
  33. package/dist/components/ai12z-cta.js +1 -1
  34. package/dist/components/ai12z-form.js +1 -1
  35. package/dist/components/ai12z-inline-search.js +1 -1
  36. package/dist/components/ai12z-input-form.js +1 -1
  37. package/dist/components/ai12z-knowledge-box.js +1 -1
  38. package/dist/components/ai12z-search-panel.js +1 -1
  39. package/dist/components/audio-recorder.js +1 -1
  40. package/dist/components/dynamic-form.js +1 -1
  41. package/dist/components/index.js +1 -1
  42. package/dist/components/interaction-buttons.js +1 -1
  43. package/dist/components/item-list.js +1 -1
  44. package/dist/components/{p-qwKoi5kn.js → p-B1ShlBNk.js} +1 -1
  45. package/dist/components/{p-CrfXJRIo.js → p-BKP5XWXV.js} +1 -1
  46. package/dist/components/{p-mBjDeFh_.js → p-BL_qtJPP.js} +1 -1
  47. package/dist/components/{p-B9IJbo4G.js → p-BMzOoFOw.js} +1 -1
  48. package/dist/components/{p-Dubjoiw6.js → p-Bgq4ZMxH.js} +1 -1
  49. package/dist/components/{p-pOVc-eI8.js → p-BvASc2_N.js} +1 -1
  50. package/dist/components/{p-COqFEHJ7.js → p-C2lGvQ__.js} +1 -1
  51. package/dist/components/{p-BwqXbNCx.js → p-CVFczCfe.js} +1 -1
  52. package/dist/components/{p-DkRAkHLI.js → p-CrSxikjd.js} +2 -2
  53. package/dist/components/{p-Ci85xHWQ.js → p-Ct9uC_dc.js} +1 -1
  54. package/dist/components/{p-xTOLReQF.js → p-D9Iw0TcK.js} +1 -1
  55. package/dist/components/{p-AQ1MS6Ps.js → p-DMTKXlRs.js} +1 -1
  56. package/dist/components/{p-m0Ed3g6I.js → p-DTY5cnro.js} +1 -1
  57. package/dist/components/{p-BWMhH2R1.js → p-Djp7qZk5.js} +1 -1
  58. package/dist/components/{p-DvtUY5FW.js → p-DzXRYZDH.js} +1 -1
  59. package/dist/components/{p-Bnj1LjUJ.js → p-PcEeWny-.js} +1 -1
  60. package/dist/{library/p-By1gJKXA.js → components/p-VwpZzHS2.js} +1 -1
  61. package/dist/components/p-YsOBmqvw.js +1 -0
  62. package/dist/components/{p-dQEvevXk.js → p-hfSmI4qa.js} +1 -1
  63. package/dist/components/p-micGPeRM.js +1 -0
  64. package/dist/components/{p-3j2aDKYq.js → p-s-gdc7dP.js} +1 -1
  65. package/dist/components/privacy-modal.js +1 -1
  66. package/dist/components/search-results-page.js +1 -1
  67. package/dist/esm/ai12z-bot.entry.js +8 -8
  68. package/dist/esm/ai12z-category_2.entry.js +3 -3
  69. package/dist/esm/ai12z-chat-message.entry.js +13 -13
  70. package/dist/esm/ai12z-chat_2.entry.js +8 -8
  71. package/dist/esm/ai12z-container.entry.js +3 -3
  72. package/dist/esm/ai12z-cta.entry.js +17 -14
  73. package/dist/esm/ai12z-form.entry.js +2 -2
  74. package/dist/esm/ai12z-inline-search.entry.js +2 -2
  75. package/dist/esm/ai12z-knowledge-box.entry.js +5 -5
  76. package/dist/esm/ai12z-search-panel.entry.js +1 -1
  77. package/dist/esm/chat-avatar_6.entry.js +1 -1
  78. package/dist/esm/{ctaHelpers-DrH6S5iU.js → ctaHelpers-B59e2J1D.js} +1 -1
  79. package/dist/esm/dynamic-form.entry.js +1 -1
  80. package/dist/esm/{index-VWr-8RG8.js → index-CRTk3TGT.js} +1 -1
  81. package/dist/esm/index.js +10 -10
  82. package/dist/esm/item-list.entry.js +2 -2
  83. package/dist/esm/{keyboard-shortcuts-BhKv64FZ.js → keyboard-shortcuts-DZVjCtjN.js} +2 -2
  84. package/dist/esm/{parseHelper-kOGOndOe.js → parseHelper-Dut3V0k9.js} +1 -1
  85. package/dist/esm/{processCarouselData-DX152a4X.js → processCarouselData-Gfn8bLpa.js} +1 -1
  86. package/dist/esm/{reCaptchaHelpers-DUpCzUFb.js → reCaptchaHelpers-BC2dj5ag.js} +1 -1
  87. package/dist/esm/search-results-page.entry.js +4 -4
  88. package/dist/esm/{socket-service-D_h5x8Gr.js → socket-service-Gces2efd.js} +1 -1
  89. package/dist/esm/{styleSheetRegistry-Bfi9VkqK.js → styleSheetRegistry-DrXTx0DU.js} +1 -1
  90. package/dist/esm/{surveyHelpers-D-00eWjv.js → surveyHelpers-D_3P5csj.js} +1 -1
  91. package/dist/esm/{utils-DK_Yhmpx.js → utils-TOzLPQa1.js} +11 -14
  92. package/dist/library/index.esm.js +1 -1
  93. package/dist/library/library.esm.js +1 -1
  94. package/dist/library/{p-9cffb6fa.entry.js → p-0a49dc71.entry.js} +1 -1
  95. package/dist/library/p-26650482.entry.js +1 -0
  96. package/dist/library/{p-cbfc9f73.entry.js → p-3dea195a.entry.js} +1 -1
  97. package/dist/library/{p-675d0243.entry.js → p-5ac6037d.entry.js} +1 -1
  98. package/dist/library/{p-646a7eae.entry.js → p-6040aadf.entry.js} +1 -1
  99. package/dist/library/{p-53edf210.entry.js → p-7f82fe72.entry.js} +1 -1
  100. package/dist/library/{p-C0wNDqKO.js → p-B7A2dG20.js} +1 -1
  101. package/dist/library/{p-CwZwG6gL.js → p-BFuWPEwi.js} +1 -1
  102. package/dist/library/{p-KSKiM1sy.js → p-BNdnFgZx.js} +1 -1
  103. package/dist/library/{p-ZyOWOLs5.js → p-BUK6aJmi.js} +1 -1
  104. package/dist/library/{p-C3yxqbFh.js → p-BuLOgRWx.js} +1 -1
  105. package/dist/library/{p-n8ydBHE4.js → p-CSMADLBQ.js} +1 -1
  106. package/dist/library/{p-D1IPrgJe.js → p-CjDMUapa.js} +3 -3
  107. package/dist/library/p-CxY1bD1r.js +1 -0
  108. package/dist/library/{p-8f238b3f.entry.js → p-a7523542.entry.js} +1 -1
  109. package/dist/library/{p-d8506e43.entry.js → p-b2d0207b.entry.js} +1 -1
  110. package/dist/library/{p-1d382046.entry.js → p-c25f8813.entry.js} +1 -1
  111. package/dist/library/{p-6ea05db1.entry.js → p-c3736a20.entry.js} +1 -1
  112. package/dist/library/{p-11c1f91d.entry.js → p-db943e6d.entry.js} +1 -1
  113. package/dist/library/{p-252bb713.entry.js → p-e19a4277.entry.js} +2 -2
  114. package/dist/library/{p-72a5eaf2.entry.js → p-f781f7a6.entry.js} +1 -1
  115. package/dist/library/{p-7154a204.entry.js → p-fd9ed347.entry.js} +1 -1
  116. package/dist/{components/p-g36mIk7k.js → library/p-hu6W_i6r.js} +1 -1
  117. package/dist/library/{p-TJuczvVq.js → p-nGsc8NFw.js} +1 -1
  118. package/dist/types/components/ai12z-cta/ai12z-cta.d.ts +0 -1
  119. package/dist/types/utils/utils.d.ts +1 -1
  120. package/package.json +2 -2
  121. package/dist/components/p-BaXs0IIw.js +0 -1
  122. package/dist/components/p-BwpiW24r.js +0 -1
  123. package/dist/library/p-25a678ca.entry.js +0 -1
  124. package/dist/library/p-BCkDiHIY.js +0 -1
@@ -2,19 +2,19 @@
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
4
  var responseAdapter = require('./response-adapter-CKKyyhMj.js');
5
- var processCarouselData = require('./processCarouselData-YEoGs649.js');
5
+ var processCarouselData = require('./processCarouselData-d26q49FA.js');
6
6
  var logger$1 = require('./logger-B_JTV5L8.js');
7
- var utils = require('./utils-BAJarpnb.js');
8
- var index$1 = require('./index-C-xyfB2W.js');
7
+ var utils = require('./utils-BDa8RFVo.js');
8
+ var index$1 = require('./index-DFDcxJlq.js');
9
9
  var globalStore = require('./global-store-R6x06KvJ.js');
10
- var reCaptchaHelpers = require('./reCaptchaHelpers-C5ato8kF.js');
10
+ var reCaptchaHelpers = require('./reCaptchaHelpers-natZDKlJ.js');
11
11
  var botHelpers = require('./botHelpers-D5Dj7TRA.js');
12
- var surveyHelpers = require('./surveyHelpers-D4qhA3pY.js');
12
+ var surveyHelpers = require('./surveyHelpers-mZePYIjS.js');
13
13
  var scriptStyleLoader = require('./scriptStyleLoader-8VXGYoY8.js');
14
- var keyboardShortcuts = require('./keyboard-shortcuts-CwJb0TM7.js');
15
- var ctaHelpers = require('./ctaHelpers-_6HvZZie.js');
14
+ var keyboardShortcuts = require('./keyboard-shortcuts-ByaqwMVf.js');
15
+ var ctaHelpers = require('./ctaHelpers-BAWdqIb-.js');
16
16
  var appStore = require('./app-store-D249GRTi.js');
17
- var parseHelper = require('./parseHelper-Cp45LpWl.js');
17
+ var parseHelper = require('./parseHelper-ESzSpZiY.js');
18
18
  require('./_commonjsHelpers-MBWFX2dn.js');
19
19
 
20
20
  // ILiveAgentProvider.ts
@@ -2,11 +2,11 @@
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
4
  var SearchResult = require('./SearchResult-DirxAsMi.js');
5
- var utils = require('./utils-BAJarpnb.js');
5
+ var utils = require('./utils-BDa8RFVo.js');
6
6
  var _commonjsHelpers = require('./_commonjsHelpers-MBWFX2dn.js');
7
7
  var appStore = require('./app-store-D249GRTi.js');
8
- var parseHelper = require('./parseHelper-Cp45LpWl.js');
9
- require('./ctaHelpers-_6HvZZie.js');
8
+ var parseHelper = require('./parseHelper-ESzSpZiY.js');
9
+ require('./ctaHelpers-BAWdqIb-.js');
10
10
  require('./logger-B_JTV5L8.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-Ct2DwlDF.js');
4
4
  var botHelpers = require('./botHelpers-D5Dj7TRA.js');
5
- var styleSheetRegistry = require('./styleSheetRegistry-7aecMygn.js');
6
- require('./utils-BAJarpnb.js');
5
+ var styleSheetRegistry = require('./styleSheetRegistry-hbliKi19.js');
6
+ require('./utils-BDa8RFVo.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
 
@@ -55,18 +55,10 @@ const Ai12zChatMessage = class {
55
55
  botHelpers.initializeScript(event.detail.id, this.mainObject);
56
56
  }
57
57
  componentWillLoad() {
58
- var _a, _b;
59
58
  this.loadScriptsSequentially();
60
- // Adopt customCSS in this shadow root using the shared CSSStyleSheet
61
- // already constructed by the parent knowledge-box (zero extra fetches).
62
- if ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.customCSS) {
63
- styleSheetRegistry.adoptStyleSheet(this.kbSettings.customCSS, this.el.shadowRoot);
64
- }
65
- if ((_b = this.kbSettings) === null || _b === void 0 ? void 0 : _b.customJS) {
66
- styleSheetRegistry.loadScriptOnce(this.kbSettings.customJS, this.el.shadowRoot);
67
- }
68
59
  }
69
60
  componentDidLoad() {
61
+ var _a, _b;
70
62
  // Initialise the ai12z global exactly once; never overwrite an existing value.
71
63
  if (!window["ai12z"]) {
72
64
  window["ai12z"] = {};
@@ -75,6 +67,14 @@ const Ai12zChatMessage = class {
75
67
  ai12zHeading.text = `var ai12zChat = window["ai12z"] = {}`;
76
68
  this.el.shadowRoot.appendChild(ai12zHeading);
77
69
  this.checkOverflow();
70
+ // Adopt customCSS in this shadow root using the shared CSSStyleSheet
71
+ // already constructed by the parent knowledge-box (zero extra fetches).
72
+ if ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.customCSS) {
73
+ styleSheetRegistry.adoptStyleSheet(this.kbSettings.customCSS, this.el.shadowRoot);
74
+ }
75
+ if ((_b = this.kbSettings) === null || _b === void 0 ? void 0 : _b.customJS) {
76
+ styleSheetRegistry.loadScriptOnce(this.kbSettings.customJS, this.el.shadowRoot);
77
+ }
78
78
  }
79
79
  async loadScriptsSequentially() {
80
80
  try {
@@ -156,9 +156,9 @@ const Ai12zChatMessage = class {
156
156
  render() {
157
157
  var _a, _b, _c, _d;
158
158
  const lineClamp = (_b = (_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.numberOfLines) !== null && _b !== void 0 ? _b : 10;
159
- return (index.h("div", { key: '54f51ffb7c06bbb20fc1088c0fb63a8669d7ba45', class: "chat-message" }, index.h("div", { key: '281bc75361bcfadb4611eefeb9697d525b9e2d27', ref: (el) => this.messageRef = el, class: { 'message-text': true, "custom-line-clamp": !this.isExpanded && !this.isCollapsing && this.showButton }, style: {
159
+ return (index.h("div", { key: '2d24739583f2f73daa28590c6c121531cf6ab4ce', class: "chat-message" }, index.h("div", { key: '9e8ca0a62a0de746f367164ff51ea9b9a22e93a0', ref: (el) => this.messageRef = el, class: { 'message-text': true, "custom-line-clamp": !this.isExpanded && !this.isCollapsing && this.showButton }, style: {
160
160
  "--line-clamp": `${lineClamp}`,
161
- }, innerHTML: this.text, onClick: this.showButton ? this.toggleExpand : undefined }), !this.isExpanded && this.showButton && this.canExpand && index.h("div", { key: 'd6e262dbca0934b97fafb3dd7723b3b9333d8e10', class: "fade-overlay" }), this.showButton && this.canExpand && index.h("button", { key: 'e1e711b71656763ecdeb1cb6f73166528f023914', class: "show-more-btn", onClick: this.toggleExpand }, this.isExpanded ? (((_c = this.kbSettings) === null || _c === void 0 ? void 0 : _c.showLessButtonLabel) || "Show less") : (((_d = this.kbSettings) === null || _d === void 0 ? void 0 : _d.showMoreButtonLabel) || "Show more"), this.isExpanded ? index.h("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { points: "6 9 12 15 18 9" })) : index.h("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { points: "18 15 12 9 6 15" })))));
161
+ }, innerHTML: this.text, onClick: this.showButton ? this.toggleExpand : undefined }), !this.isExpanded && this.showButton && this.canExpand && index.h("div", { key: '12f386a03fc84f97d2e585ea21cf4f8d31964c34', class: "fade-overlay" }), this.showButton && this.canExpand && index.h("button", { key: '1633be8cd35334eae64f75d7ce5fd87b30054849', class: "show-more-btn", onClick: this.toggleExpand }, this.isExpanded ? (((_c = this.kbSettings) === null || _c === void 0 ? void 0 : _c.showLessButtonLabel) || "Show less") : (((_d = this.kbSettings) === null || _d === void 0 ? void 0 : _d.showMoreButtonLabel) || "Show more"), this.isExpanded ? index.h("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { points: "6 9 12 15 18 9" })) : index.h("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { points: "18 15 12 9 6 15" })))));
162
162
  }
163
163
  get el() { return index.getElement(this); }
164
164
  static get watchers() { return {
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var processCarouselData = require('./processCarouselData-YEoGs649.js');
5
- var parseHelper = require('./parseHelper-Cp45LpWl.js');
6
- var utils = require('./utils-BAJarpnb.js');
7
- var ctaHelpers = require('./ctaHelpers-_6HvZZie.js');
8
- var index$1 = require('./index-C-xyfB2W.js');
9
- var socketService = require('./socket-service-L0xv4YGT.js');
10
- var surveyHelpers = require('./surveyHelpers-D4qhA3pY.js');
11
- var keyboardShortcuts = require('./keyboard-shortcuts-CwJb0TM7.js');
4
+ var processCarouselData = require('./processCarouselData-d26q49FA.js');
5
+ var parseHelper = require('./parseHelper-ESzSpZiY.js');
6
+ var utils = require('./utils-BDa8RFVo.js');
7
+ var ctaHelpers = require('./ctaHelpers-BAWdqIb-.js');
8
+ var index$1 = require('./index-DFDcxJlq.js');
9
+ var socketService = require('./socket-service-DxWW7IWe.js');
10
+ var surveyHelpers = require('./surveyHelpers-mZePYIjS.js');
11
+ var keyboardShortcuts = require('./keyboard-shortcuts-ByaqwMVf.js');
12
12
  var analyticsService = require('./analyticsService-CkAva47S.js');
13
13
  var botHelpers = require('./botHelpers-D5Dj7TRA.js');
14
14
  require('./_commonjsHelpers-MBWFX2dn.js');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
5
- var processCarouselData = require('./processCarouselData-YEoGs649.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
+ var processCarouselData = require('./processCarouselData-d26q49FA.js');
6
6
  var botHelpers = require('./botHelpers-D5Dj7TRA.js');
7
- var index$1 = require('./index-C-xyfB2W.js');
7
+ var index$1 = require('./index-DFDcxJlq.js');
8
8
  require('./_commonjsHelpers-MBWFX2dn.js');
9
9
 
10
10
  /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
5
  var SearchResult = require('./SearchResult-DirxAsMi.js');
6
- var socketService = require('./socket-service-L0xv4YGT.js');
6
+ var socketService = require('./socket-service-DxWW7IWe.js');
7
7
  var globalStore = require('./global-store-R6x06KvJ.js');
8
- var reCaptchaHelpers = require('./reCaptchaHelpers-C5ato8kF.js');
9
- var ctaHelpers = require('./ctaHelpers-_6HvZZie.js');
8
+ var reCaptchaHelpers = require('./reCaptchaHelpers-natZDKlJ.js');
9
+ var ctaHelpers = require('./ctaHelpers-BAWdqIb-.js');
10
10
  var appStore = require('./app-store-D249GRTi.js');
11
11
  require('./response-adapter-CKKyyhMj.js');
12
12
 
@@ -333,6 +333,9 @@ const Ai12zCta = class {
333
333
  this.formSubmitted.emit(event.detail.data);
334
334
  }
335
335
  async componentWillLoad() {
336
+ utils.checkStatus(this.dataKey, this.dataMode).then(enable => {
337
+ this.canRender = enable;
338
+ });
336
339
  utils.insertStyles(`https://cdn.ai12z.net/assets/bot/v2/tailwind.min.css`, this.el);
337
340
  appStore.setParentComponentState("cta", this.dataKey, this.dataMode);
338
341
  await this.configCtaSettings();
@@ -394,16 +397,16 @@ const Ai12zCta = class {
394
397
  ctaHelpers.setLocalData(`ai12z-cta-data`, { qCounter: this.questionCounter });
395
398
  }, (_a = this.ctaSettings) === null || _a === void 0 ? void 0 : _a.autoResetTimer);
396
399
  }
397
- connectedCallback() {
398
- //this.parseMyObjectProp(this.myObject);
399
- utils.checkStatus(this.dataKey, this.dataMode).then(enable => {
400
- this.canRender = enable;
401
- // if (!enable) {
402
- // console.log("ai12z canRender", this.canRender)
403
- // }
404
- });
405
- // this.configCtaSettings()
406
- }
400
+ // connectedCallback() {
401
+ // //this.parseMyObjectProp(this.myObject);
402
+ // checkStatus(this.dataKey, this.dataMode).then(enable => {
403
+ // this.canRender = enable
404
+ // // if (!enable) {
405
+ // // console.log("ai12z canRender", this.canRender)
406
+ // // }
407
+ // })
408
+ // // this.configCtaSettings()
409
+ // }
407
410
  async configCtaSettings() {
408
411
  const payload = {
409
412
  apiKey: this.dataKey,
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
5
- var surveyHelpers = require('./surveyHelpers-D4qhA3pY.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
+ var surveyHelpers = require('./surveyHelpers-mZePYIjS.js');
6
6
  var scriptStyleLoader = require('./scriptStyleLoader-8VXGYoY8.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-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
5
  var SearchResult = require('./SearchResult-DirxAsMi.js');
6
- var socketService = require('./socket-service-L0xv4YGT.js');
6
+ var socketService = require('./socket-service-DxWW7IWe.js');
7
7
  require('./response-adapter-CKKyyhMj.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,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
5
- var styleSheetRegistry = require('./styleSheetRegistry-7aecMygn.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
+ var styleSheetRegistry = require('./styleSheetRegistry-hbliKi19.js');
6
6
  var responseAdapter = require('./response-adapter-CKKyyhMj.js');
7
- var processCarouselData = require('./processCarouselData-YEoGs649.js');
7
+ var processCarouselData = require('./processCarouselData-d26q49FA.js');
8
8
  var globalStore = require('./global-store-R6x06KvJ.js');
9
- var index$1 = require('./index-C-xyfB2W.js');
10
- var surveyHelpers = require('./surveyHelpers-D4qhA3pY.js');
9
+ var index$1 = require('./index-DFDcxJlq.js');
10
+ var surveyHelpers = require('./surveyHelpers-mZePYIjS.js');
11
11
  var botHelpers = require('./botHelpers-D5Dj7TRA.js');
12
12
  var analyticsService = require('./analyticsService-CkAva47S.js');
13
13
  require('./_commonjsHelpers-MBWFX2dn.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
5
  var SearchResult = require('./SearchResult-DirxAsMi.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:1.25rem;padding-top:1.25rem}.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:56rem;justify-content:space-between;-moz-column-gap:1.5rem;column-gap:1.5rem}.cta-search-container-two{display:flex;min-width:0px;-moz-column-gap:1rem;column-gap:1rem}.cta-search-container-three{min-width:0px;flex:1 1 auto}.cta-search-text{font-weight:600;line-height:1.5rem;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:0.25rem;display:flex;font-size:var(--ai12z-search-result-description-font-size);line-height:1rem;line-height:1.25rem;color:var(--ai12z-search-result-description-color)}.cta-search-list-arrow{display:flex;align-items:center;flex-shrink:0;-moz-column-gap:1rem;column-gap:1rem}.custom-icon-width{width:4rem}.results-icon svg{width:1.5rem;height:1.5rem}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Ct2DwlDF.js');
4
- var utils = require('./utils-BAJarpnb.js');
4
+ var utils = require('./utils-BDa8RFVo.js');
5
5
  var analyticsService = require('./analyticsService-CkAva47S.js');
6
6
  var logger$1 = require('./logger-B_JTV5L8.js');
7
7
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('./utils-BAJarpnb.js');
3
+ var utils = require('./utils-BDa8RFVo.js');
4
4
 
5
5
  // Utility: Generate UUID
6
6
  function generateUUID() {