ai12z 3.12.1 → 3.13.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 (119) hide show
  1. package/dist/cjs/ai12z-bot.cjs.entry.js +2 -1
  2. package/dist/cjs/ai12z-chat-message.cjs.entry.js +2 -2
  3. package/dist/cjs/ai12z-chat_2.cjs.entry.js +10 -10
  4. package/dist/cjs/ai12z-form.cjs.entry.js +15 -11
  5. package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
  6. package/dist/cjs/image-uploader_2.cjs.entry.js +28 -19
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/cjs/library.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{scriptStyleLoader-BHz2-bYp.js → scriptStyleLoader-BTtEJqyW.js} +13 -21
  11. package/dist/collection/collection-manifest.json +0 -3
  12. package/dist/collection/components/ai12z-bot/ai12z-bot.js +1 -0
  13. package/dist/collection/components/ai12z-bot/keyboard-shortcuts-dialog.js +32 -18
  14. package/dist/collection/components/ai12z-form/ai12z-form.js +14 -10
  15. package/dist/collection/components/ai12z-knowledge-box/components/ai12z-chat-message.js +2 -2
  16. package/dist/collection/components/input/ImageUploader.js +1 -1
  17. package/dist/collection/components/input/Input.js +10 -10
  18. package/dist/collection/components/spinner/Spinner.js +1 -1
  19. package/dist/collection/utils/scriptStyleLoader.js +14 -25
  20. package/dist/components/ai12z-bot.js +1 -1
  21. package/dist/components/ai12z-chat-message.js +1 -1
  22. package/dist/components/ai12z-chat.js +1 -1
  23. package/dist/components/ai12z-container.js +1 -1
  24. package/dist/components/ai12z-cta.js +1 -1
  25. package/dist/components/ai12z-form.js +1 -1
  26. package/dist/components/ai12z-inline-search.js +1 -1
  27. package/dist/components/ai12z-input-form.js +1 -1
  28. package/dist/components/ai12z-knowledge-box.js +1 -1
  29. package/dist/components/ai12z-search-panel.js +1 -1
  30. package/dist/components/ai12z-spinner.js +1 -1
  31. package/dist/components/audio-recorder.js +1 -1
  32. package/dist/components/dynamic-form.js +1 -1
  33. package/dist/components/image-uploader.js +1 -1
  34. package/dist/components/index.js +1 -1
  35. package/dist/components/interaction-buttons.js +1 -1
  36. package/dist/components/item-list.js +1 -1
  37. package/dist/components/keyboard-shortcuts-dialog.js +1 -1
  38. package/dist/components/p-4WaDR8sJ.js +1 -0
  39. package/dist/components/{p-BEIhWra_.js → p-B1iffyzV.js} +1 -1
  40. package/dist/components/{p-C1k2wTKG.js → p-BGcwn6Qe.js} +1 -1
  41. package/dist/components/{p-DtuGsk4g.js → p-B_j3KwUN.js} +1 -1
  42. package/dist/components/{p-DVGYss9b.js → p-Bg2Xr0Ex.js} +1 -1
  43. package/dist/components/{p-DldmB2Oy.js → p-BmSyW9DN.js} +1 -1
  44. package/dist/components/p-BwTPnzKJ.js +1 -0
  45. package/dist/components/{p-DiRm7QH6.js → p-C0cW6n5O.js} +1 -1
  46. package/dist/components/{p-CIGwUzDO.js → p-C8ih2QKY.js} +1 -1
  47. package/dist/components/{p-CE-SmZfS.js → p-CGjtEy1y.js} +1 -1
  48. package/dist/components/{p-B7IcDrw7.js → p-CaAVleoI.js} +1 -1
  49. package/dist/components/{p-BVFbyB5u.js → p-Cdz8wMqj.js} +1 -1
  50. package/dist/components/{p-DQaJx63p.js → p-CjImNcpz.js} +1 -1
  51. package/dist/components/p-DCrboW5y.js +1 -0
  52. package/dist/components/{p-D4-U5HQl.js → p-DOfDD2pn.js} +1 -1
  53. package/dist/components/{p-C_DJ8AMw.js → p-DQbtAUoK.js} +1 -1
  54. package/dist/components/{p-CH2DlOc4.js → p-DXCT5yQi.js} +1 -1
  55. package/dist/components/p-DXNczkro.js +1 -0
  56. package/dist/components/{p-UhGoOm3s.js → p-DmonjMk8.js} +1 -1
  57. package/dist/components/p-MwEafFHq.js +1 -0
  58. package/dist/components/{p-Bz-PkGGk.js → p-iB3nIZhb.js} +1 -1
  59. package/dist/components/{p-DpLjZFYk.js → p-kyOol22J.js} +1 -1
  60. package/dist/components/{p-CNc33vJH.js → p-rAO3pCAU.js} +1 -1
  61. package/dist/components/{p-BmghPdvp.js → p-ySzZXenY.js} +1 -1
  62. package/dist/components/privacy-modal.js +1 -1
  63. package/dist/components/search-results-page.js +1 -1
  64. package/dist/esm/ai12z-bot.entry.js +2 -1
  65. package/dist/esm/ai12z-chat-message.entry.js +2 -2
  66. package/dist/esm/ai12z-chat_2.entry.js +10 -10
  67. package/dist/esm/ai12z-form.entry.js +15 -11
  68. package/dist/esm/ai12z-spinner.entry.js +1 -1
  69. package/dist/esm/image-uploader_2.entry.js +28 -19
  70. package/dist/esm/index.js +1 -1
  71. package/dist/esm/library.js +1 -1
  72. package/dist/esm/loader.js +1 -1
  73. package/dist/esm/{scriptStyleLoader-DtuGsk4g.js → scriptStyleLoader-B_j3KwUN.js} +13 -21
  74. package/dist/library/index.esm.js +1 -1
  75. package/dist/library/library.esm.js +1 -1
  76. package/dist/library/{p-6b91782d.entry.js → p-31191f51.entry.js} +1 -1
  77. package/dist/library/{p-e5c0929c.entry.js → p-6c58b381.entry.js} +1 -1
  78. package/dist/library/{p-1111677c.entry.js → p-8f164bfb.entry.js} +1 -1
  79. package/dist/library/{p-DtuGsk4g.js → p-B_j3KwUN.js} +1 -1
  80. package/dist/library/{p-29d9ea0a.entry.js → p-bb206145.entry.js} +1 -1
  81. package/dist/library/p-faa959e1.entry.js +1 -0
  82. package/dist/library/{p-6963c55b.entry.js → p-ffd7e67a.entry.js} +1 -1
  83. package/dist/types/components/ai12z-bot/keyboard-shortcuts-dialog.d.ts +4 -0
  84. package/dist/types/components/ai12z-form/ai12z-form.d.ts +1 -0
  85. package/dist/types/components.d.ts +0 -169
  86. package/package.json +2 -2
  87. package/dist/cjs/ai12z-carousel.cjs.entry.js +0 -123
  88. package/dist/cjs/ai12z-mic.cjs.entry.js +0 -127
  89. package/dist/cjs/list-data.cjs.entry.js +0 -190
  90. package/dist/collection/components/ai12z-cta/components/Form.js +0 -31
  91. package/dist/collection/components/ai12z-cta/components/ai12z-carousel.css +0 -143
  92. package/dist/collection/components/ai12z-cta/components/ai12z-carousel.js +0 -226
  93. package/dist/collection/components/ai12z-cta/components/list/list-data.css +0 -229
  94. package/dist/collection/components/ai12z-cta/components/list/list-data.js +0 -375
  95. package/dist/collection/components/ai12z-cta/components/voicetotext/ai12z-mic.css +0 -14
  96. package/dist/collection/components/ai12z-cta/components/voicetotext/ai12z-mic.js +0 -191
  97. package/dist/components/ai12z-carousel.d.ts +0 -11
  98. package/dist/components/ai12z-carousel.js +0 -1
  99. package/dist/components/ai12z-mic.d.ts +0 -11
  100. package/dist/components/ai12z-mic.js +0 -1
  101. package/dist/components/list-data.d.ts +0 -11
  102. package/dist/components/list-data.js +0 -1
  103. package/dist/components/p-BKHnRIHl.js +0 -1
  104. package/dist/components/p-BOL1QncE.js +0 -1
  105. package/dist/components/p-Bt40aKpX.js +0 -1
  106. package/dist/components/p-DWtpbQds.js +0 -1
  107. package/dist/components/p-De9depzV.js +0 -1
  108. package/dist/components/p-DlxyfBqu.js +0 -1
  109. package/dist/esm/ai12z-carousel.entry.js +0 -121
  110. package/dist/esm/ai12z-mic.entry.js +0 -125
  111. package/dist/esm/list-data.entry.js +0 -188
  112. package/dist/library/p-1caa70e3.entry.js +0 -1
  113. package/dist/library/p-5fbe316f.entry.js +0 -1
  114. package/dist/library/p-951eb406.entry.js +0 -1
  115. package/dist/library/p-fdb59342.entry.js +0 -1
  116. package/dist/types/components/ai12z-cta/components/Form.d.ts +0 -1
  117. package/dist/types/components/ai12z-cta/components/ai12z-carousel.d.ts +0 -19
  118. package/dist/types/components/ai12z-cta/components/list/list-data.d.ts +0 -31
  119. package/dist/types/components/ai12z-cta/components/voicetotext/ai12z-mic.d.ts +0 -15
@@ -12,7 +12,7 @@ var reCaptchaHelpers = require('./reCaptchaHelpers-DUlImWQK.js');
12
12
  var botHelpers = require('./botHelpers-aCoootcN.js');
13
13
  var processCarouselData = require('./processCarouselData-DcPRJVyR.js');
14
14
  var surveyHelpers = require('./surveyHelpers-DTDyWBdY.js');
15
- var scriptStyleLoader = require('./scriptStyleLoader-BHz2-bYp.js');
15
+ var scriptStyleLoader = require('./scriptStyleLoader-BTtEJqyW.js');
16
16
  var ctaHelpers = require('./ctaHelpers-CVr3D-cw.js');
17
17
  var appStore = require('./app-store-D249GRTi.js');
18
18
  var parseHelper = require('./parseHelper-XIyoURy9.js');
@@ -943,6 +943,7 @@ const Ai12zBot = class {
943
943
  console.warn("Survey DOM ID is empty");
944
944
  return;
945
945
  }
946
+ await this.assetLoader.loadSurveyDependencies();
946
947
  try {
947
948
  await surveyHelpers.renderSurvey({
948
949
  chat,
@@ -167,9 +167,9 @@ const Ai12zChatMessage = class {
167
167
  render() {
168
168
  var _a, _b, _c, _d;
169
169
  const lineClamp = (_b = (_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.numberOfLines) !== null && _b !== void 0 ? _b : 10;
170
- return (index.h("div", { key: 'e33296958be6ed1dbd041cbee703c69fb1a83451', class: "chat-message" }, index.h("div", { key: 'cb1f7baeaea07baf1ee860e325012d74d9fd1f6f', ref: (el) => this.messageRef = el, class: { 'message-text': true, "custom-line-clamp": !this.isExpanded && !this.isCollapsing && this.showButton }, style: {
170
+ return (index.h("div", { key: 'a7d4c84dc382998c8c0f5a1d41dfa5a54bc60d84', class: "chat-message" }, index.h("div", { key: 'c4fe8c0bbe2571b7a0bd6805b50b5dec8e9f1feb', ref: (el) => this.messageRef = el, class: { 'message-text': true, "custom-line-clamp": !this.isExpanded && !this.isCollapsing && this.showButton }, style: {
171
171
  "--line-clamp": `${lineClamp}`,
172
- }, innerHTML: this.text, onClick: this.showButton ? this.toggleExpand : undefined }), !this.isExpanded && this.showButton && this.canExpand && index.h("div", { key: 'bb2f821265aeeea4b643f50115620812851db6a8', class: "fade-overlay" }), this.showButton && this.canExpand && index.h("button", { key: '541cf238ad25e53970b76f0c6bd875d9d19e512a', 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" })))));
172
+ }, innerHTML: this.text, onClick: this.showButton ? this.toggleExpand : undefined }), !this.isExpanded && this.showButton && this.canExpand && index.h("div", { key: 'c81dab3d5d9ea9cdc3542f1b1e9953fbe4f0ad37', class: "fade-overlay" }), this.showButton && this.canExpand && index.h("button", { key: '3c0dba4ddc1b915fd989fcc5fadd4a7376ec531c', 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" })))));
173
173
  }
174
174
  get el() { return index.getElement(this); }
175
175
  static get watchers() { return {
@@ -1449,29 +1449,29 @@ const InputForm = class {
1449
1449
  // this.icon_width = url.searchParams.get("w") || "28"
1450
1450
  // this.icon_height = url.searchParams.get("h") || "28"
1451
1451
  // }
1452
- return (index.h("div", { key: '196f7fd780cae050fa4f9ab46238864108b1131a' }, index.h("div", { key: 'e27728590590877b83591082380e207c5101230a', class: `absolute left-0 w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out z-10
1453
- ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, ref: el => (this.menuElem = el) }, index.h("ul", { key: '0a96ea8e8cd6533bcef71107cc6d8e741c982422', class: "space-y-2" }, this.isImageUpload && (index.h("li", { key: '3f2fc2907b4c83d43ba0d30368bea4a36a89ab6b', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex" }, index.h("image-uploader", { key: 'cb32d1f81ef0e736a2d62045f708b0b3861f1bf0', maxImages: 10, images: this.imagesBase64List, targetElement: this.searchInputElem, onImagesChange: this.handleImageChange, onError: this.handleImageError, ref: el => (this.imageUploaderRef = el) }))), index.h("li", { key: '0fd946c574d9651736c928cb6fdbdff5a5300201', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
1452
+ return (index.h("div", { key: '623f7b93a8fee68a98ffe0d15fe49232c928d541' }, index.h("div", { key: '33fa75b886a6d845785ab7ad4be2cba4437deead', class: `absolute left-0 w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out z-10
1453
+ ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, ref: el => (this.menuElem = el) }, index.h("ul", { key: 'c7a41dcf7bbb7d3b52d3adac6f7871553d082a97', class: "space-y-2" }, this.isImageUpload && (index.h("li", { key: '4efc17c2a136caf0b8bfc2fba39622a1bab801c9', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex" }, index.h("image-uploader", { key: '8c669dda8dd81f4a24da8232938bbd6cae65ad7f', maxImages: 10, images: this.imagesBase64List, targetElement: this.searchInputElem, onImagesChange: this.handleImageChange, onError: this.handleImageError, ref: el => (this.imageUploaderRef = el) }))), index.h("li", { key: '5fc6b84028c421a57c9b4c3ed36a1b19c6833546', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
1454
1454
  this.captureScreen();
1455
1455
  this.toggleBox(e);
1456
- } }, index.h("div", { key: 'c68379258224f0b78c812d1393f7ae987f34183b', class: "mr-1 mt-px" }, index.h("svg", { key: 'b51611c62b6c6d7995856bea5c1cce3fb5023bb4', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: '33f0a2bf65c0fa16192d26e782c114a35fcc9426', d: "M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" }), index.h("path", { key: 'd6bfac975df6be73eb3b1e7be29f4e1fc0aa7a3c', "fill-rule": "evenodd", d: "M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3h-15a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z", "clip-rule": "evenodd" }))), index.h("div", { key: '776bcde424b5d40a0f34d75c273d8ebf8bf3b6b9' }, "Capture")), index.h("li", { key: 'f2a57b9528639a6155125df4e7e1a1b4291c9798', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", "aria-label": "Start Over", "aria-disabled": this.chatLength === 0, style: { opacity: this.chatLength === 0 ? "0.5" : "1", cursor: this.chatLength === 0 ? "not-allowed" : "pointer" }, onClick: e => {
1456
+ } }, index.h("div", { key: '20cd5b58b14938dde41c3ec82a4d204ddaebea4d', class: "mr-1 mt-px" }, index.h("svg", { key: 'c740a9f51839e41055786d23fd7b4ed44ed29324', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'f8516209c60f8478b6b6e510ceff2ec0a6fb57cd', d: "M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" }), index.h("path", { key: '8c59bd0faf944dedc4b311cf6c7403e4e8c79689', "fill-rule": "evenodd", d: "M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3h-15a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z", "clip-rule": "evenodd" }))), index.h("div", { key: 'e10bf86ebd212649837dfad5094d9f39c0555af4' }, "Capture")), index.h("li", { key: 'd2b7a298b838ed7259019e26f211a09d69f328b5', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", "aria-label": "Start Over", "aria-disabled": this.chatLength === 0, style: { opacity: this.chatLength === 0 ? "0.5" : "1", cursor: this.chatLength === 0 ? "not-allowed" : "pointer" }, onClick: e => {
1457
1457
  if (this.chatLength === 0)
1458
1458
  return;
1459
1459
  // const escapeEvent = new KeyboardEvent("keydown", { key: "Escape" })
1460
1460
  // document.dispatchEvent(escapeEvent)
1461
1461
  this.handleFollowUp(e);
1462
1462
  this.toggleBox(e);
1463
- } }, index.h("div", { key: 'dca241208abfe1965e18bde0fda94c7de7f60c1b', class: "mr-1 mt-px" }, index.h("svg", { key: '0a27bd6854fa90e5a5cfb6fdc8c5544f210fd97f', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: 'c454cbd3749deea3a7234f4bbae6dbdc7d4041e3', d: "M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2" }))), index.h("div", { key: '583ddd353cf98294f65e5a2993840b30ebe00904' }, "Start Over")), index.h("li", { key: 'c0f27a322a19e4ffaae1a61f20311f77ede55ec7', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", "aria-label": "View Recent Chat", onClick: e => {
1463
+ } }, index.h("div", { key: '95729576e7131a1bcde5edf2f00704e3979f0168', class: "mr-1 mt-px" }, index.h("svg", { key: 'aca3169ad3c1933750e6e70156ff3aafa9cb700e', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: 'f09ce7b4c487d62f744ab255274120d648cebd0c', d: "M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2" }))), index.h("div", { key: '22838c5639850ca1520b5859188cd0cc7f62ae78' }, "Start Over")), index.h("li", { key: '0625819dc4f37253f68674ae2f41169abd7249d3', class: "px-4 pb-2 hover:bg-gray-100 cursor-pointer flex", "aria-label": "View Recent Chat", onClick: e => {
1464
1464
  // console.log("View Recent Chat")
1465
1465
  this.handleRecentChat(e);
1466
- } }, index.h("div", { key: 'bff9af1aa530a2e70fa414ef2011050af697e10c', class: "mr-1 mt-px" }, index.h("svg", { key: '5ab199d39f9de4d7a0b8bffc86ce36ab6859e1c8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: 'bd3bf45b4fab8e122ed6cc79140b0c4677e258a1', d: "M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z" }), index.h("path", { key: '3e88e1d905374733afe40a2c2d3366e496dab29a', d: "M12 7v5l3 2" }))), index.h("div", { key: 'f931a2a0e5ac61ecf780a878ea6eac4e75bccdd1' }, "View Recent Chat")))), index.h("form", { key: '70654cc2f31ef172c1b030107132b4171e94806d', class: "w-full flex flex-col gap-1.5 sticky", onSubmit: this.handleFormSubmit }, index.h("div", { key: '026fe8abba7a5a4bf345752ea90a0e79904a513d', class: `flex-1 flex flex-col relative w-full rounded-3xl px-1 ${this.componentType === "inline" ? "inline-searchbar-bgcolor" : "searchbar-bgcolor"}`, dir: "LTR", ref: el => (this.searchFormElem = el) }, index.h("div", { key: 'e6e3a620f1d954f8616b30dd28141372e1f3974f', class: "flex items-center" }, index.h("div", { key: '839231e0a109ee55c11eb5675ddf68ebf3b852a7', class: "ml-1 self-center flex space-x-1" }, !this.hideAllButtons && (index.h("div", { key: '3cabe31a9c9cae17e5eb329c4e607921acf79644', class: "relative inline-block", style: { width: "5%" } }, index.h("button", { key: '4a1f681f66b48f1a66d5b061cf035f0410c89e59', class: "plus-icon", "aria-label": "Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
1466
+ } }, index.h("div", { key: '1bd82e7a2f97481c5215af8b5d67ec71d2c69719', class: "mr-1 mt-px" }, index.h("svg", { key: '1a88182d117cadac2c5c491578533860b008cf75', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: '1e75ddfc584d70d0ada8008463ea08d8d0ac6623', d: "M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z" }), index.h("path", { key: 'd1db69ed6ae7f982b1839204e52a90c32630f1fb', d: "M12 7v5l3 2" }))), index.h("div", { key: '813b01482c85e7b63908facb41c4a48f226ecd3b' }, "View Recent Chat")))), index.h("form", { key: 'b810bd80536347059124d3827e26502e03a97092', class: "w-full flex flex-col gap-1.5 sticky", onSubmit: this.handleFormSubmit }, index.h("div", { key: 'f69b95ec734d662c3e88cdc93aa15f8983f380a7', class: `flex-1 flex flex-col relative w-full rounded-3xl px-1 ${this.componentType === "inline" ? "inline-searchbar-bgcolor" : "searchbar-bgcolor"}`, dir: "LTR", ref: el => (this.searchFormElem = el) }, index.h("div", { key: 'c64d576d4675e5993fcecde579f4a992da296a3f', class: "flex items-center" }, index.h("div", { key: 'e41c8a31a3775a409810f12f856dd6bb5113b67d', class: "ml-1 self-center flex space-x-1" }, !this.hideAllButtons && (index.h("div", { key: '7614880c9a53a7e99ead7090637185b996b7cc2e', class: "relative inline-block", style: { width: "5%" } }, index.h("button", { key: 'edfcedc1fe6e77f2da4d26a60aad3748683ca6ef', class: "plus-icon", "aria-label": "Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
1467
1467
  e.stopPropagation();
1468
1468
  this.toggleBox(e);
1469
- } }, index.h("svg", { key: 'aced39c56478c4d7de87729ae935ac66d1f3f4c5', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'f92c0ecf20a8c454768f7ab586aab6a1505bb94f', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" })))))), !this.hideAllButtons && (index.h("div", { key: 'e021441bd98def76925430ad8c3dcfed510680b5', class: "scrollbar-hidden text-left bg-transparent dark:text-gray-100 outline-none w-full rounded-xl resize-none h-fit max-h-80 overflow-auto" }, index.h("div", { key: 'efe7dddeb7731d926825570b8ca65253afac559c', class: "relative w-full min-w-full h-full min-h-fit flex items-center input-prose" }, index.h("div", { key: 'df52550b0ff65f37fc902a03f8470f6b560d90c6', id: `previewContainer-${this.instanceId}`, draggable: true }), index.h("label", { key: '3080e8dfe6f7a76e7ba3a5071a883bdc7ddffc1a', htmlFor: `searchInput-${this.instanceId}`, class: "sr-only" }, "Your message"), index.h("textarea", { key: 'd0433c4294f871af072403bd35044fdbf08d781a', readOnly: this.submitted, "aria-describedby": this.emptyMessageError ? `message-error-${this.instanceId} search-hint-${this.instanceId}` : `search-hint-${this.instanceId}`, "aria-invalid": this.emptyMessageError, id: `searchInput-${this.instanceId}`, ref: el => {
1469
+ } }, index.h("svg", { key: '123d73fdd31ea56f503df593818a05f5574c6fdb', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'cded16c28c1421bc4c9d4b9f18af6411309a22ba', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" })))))), !this.hideAllButtons && (index.h("div", { key: '9b0213ad6586daecb71c46941b17108f13c58048', class: "scrollbar-hidden text-left bg-transparent dark:text-gray-100 outline-none w-full rounded-xl resize-none h-fit max-h-80 overflow-auto" }, index.h("div", { key: '619ef140b69574f9b5f6b56d3d7dc8355163fbc1', class: "relative w-full min-w-full h-full min-h-fit flex items-center input-prose" }, index.h("div", { key: 'a972c24cc5748376eedced77c91dffd331054293', id: `previewContainer-${this.instanceId}`, draggable: true }), index.h("label", { key: 'b515979270ffdbf8024951c04a826888539a0e64', htmlFor: `searchInput-${this.instanceId}`, class: "sr-only" }, "Your message"), index.h("textarea", { key: '32123cab1fb36680b6e62a53e975988434721974', readOnly: this.submitted, "aria-describedby": this.emptyMessageError ? `message-error-${this.instanceId} search-hint-${this.instanceId}` : `search-hint-${this.instanceId}`, "aria-invalid": this.emptyMessageError, id: `searchInput-${this.instanceId}`, ref: el => {
1470
1470
  this.searchInputElem = el;
1471
1471
  el === null || el === void 0 ? void 0 : el.focus();
1472
1472
  }, placeholder: this.placeholder, autoComplete: "off", class: "w-full p-1 custom-input", value: this.searchInput, rows: 1, onInput: utils.debounce(e => this.handleInputChange(e), 500), onKeyUp: this.adjustHeight, onKeyDown: this.handleKeyDown, onFocus: () => this.searchFormElem.classList.add("input-focus-color"), onBlur: () => this.searchFormElem.classList.remove("input-focus-color"), onPaste: e => {
1473
1473
  this.handlePaste(e);
1474
- } }), index.h("div", { key: '908465f2eeb1c141fb6103a17b33273dfdb1f0f3', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), index.h("span", { key: '6f9934c190b0e94bd71f199990283ff690d8a415', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line")))), index.h("div", { key: 'b958b4b92ea00b34b32254081209fca86bc2cb51', class: "p-1 self-end flex space-x-1 flex-row", style: { width: this.hideAllButtons ? "100%" : "auto" } }, index.h("div", { key: 'c1f50469e7d048c028890e7dc26b4c99e79c3274', "aria-label": "Record voice", class: "flex self-center", style: { width: this.hideAllButtons ? "100%" : "auto" } }, this.isEnableMic && (index.h("audio-recorder", { key: 'b838fc8a914423ba471bc0cfb2055a200b097aee', "component-type": "cta", onStartRecord: _ev => {
1474
+ } }), index.h("div", { key: '4ced8688e0edac2ed1f8a30ea7c0e1099b09e331', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), index.h("span", { key: '114b87fb5a67f955503a87624e402722cad00276', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line")))), index.h("div", { key: 'd9ce04f9657eba2ed56116f3e51ceba84f518052', class: "p-1 self-end flex space-x-1 flex-row", style: { width: this.hideAllButtons ? "100%" : "auto" } }, index.h("div", { key: 'a4752b743e10f5c90e0c7d03192d64e6ba8d2c08', "aria-label": "Record voice", class: "flex self-center", style: { width: this.hideAllButtons ? "100%" : "auto" } }, this.isEnableMic && (index.h("audio-recorder", { key: 'e195ba053e5aeb6d017bccf44c01a3a6df2a684c', "component-type": "cta", onStartRecord: _ev => {
1475
1475
  // console.log("test", ev)
1476
1476
  this.hideAllButtons = true;
1477
1477
  }, onStopRecord: _ev => {
@@ -1489,14 +1489,14 @@ const InputForm = class {
1489
1489
  });
1490
1490
  }
1491
1491
  }, 1000);
1492
- }, style: { width: "100%" } }))), " ", !this.hideAllButtons && (index.h("div", { key: '42a8be4120e3ac7a1d5fee3d97b2e280d1d9c4b9', class: "flex items-center" }, index.h("div", { key: 'f1d27d8d020b7e848c9b20fa56edb12d583b1959', "aria-label": "Send message", class: "flex" }, index.h("button", { key: 'db96238962846b90e443efcf7f388126aa495c7d', id: `send-message-button-${this.instanceId}`, class: "btn-bg-color text-white transition rounded-full p-1.5 self-center",
1492
+ }, style: { width: "100%" } }))), " ", !this.hideAllButtons && (index.h("div", { key: 'bd7cbc198fbeb575c0105f686683ff0b0a7cd078', class: "flex items-center" }, index.h("div", { key: '50b9e47852a3830eb9fbf0915d75d994924990fd', "aria-label": "Send message", class: "flex" }, index.h("button", { key: '15299d903700edfebc1a7084940e2fd6100ccce3', id: `send-message-button-${this.instanceId}`, class: "btn-bg-color text-white transition rounded-full p-1.5 self-center",
1493
1493
  // type="submit"
1494
- disabled: this.submitted, onClick: this.handleAskAI, tabindex: "0", "aria-label": "Send Message", title: "Send Message" }, index.h("svg", { key: 'ba1080650efc9dce22975ca5f07fe62aa531c2ec', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, index.h("path", { key: '5dfa902ad0a5ac009ca0627e4f1b5fd3481b3788', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.imagesBase64List.length > 0 && (index.h("div", { key: 'acff5d4eea915b62200c2d53fd07a1460d298556', class: "flex flex-wrap gap-2 mx-1 mt-2.5 mb-1" }, this.imagesBase64List.map((img, idx) => (index.h("div", { class: "image-Container sc-ai12z-input-form", key: idx }, index.h("img", { src: img, style: { width: "70px", height: "50px", borderRadius: ".75rem" } }), index.h("span", { class: "delete-image sc-ai12z-input-form cursor-pointer ml-1", onClick: () => {
1494
+ disabled: this.submitted, onClick: this.handleAskAI, tabindex: "0", "aria-label": "Send Message", title: "Send Message" }, index.h("svg", { key: 'f27771c390def50b54ec73c295d2c29f4193fafb', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, index.h("path", { key: 'c1c893815c40e536537c0c9f1e486666ad2bb0c9', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.imagesBase64List.length > 0 && (index.h("div", { key: '3f67411ac3c2f9decf28c5e73767c587744619a5', class: "flex flex-wrap gap-2 mx-1 mt-2.5 mb-1" }, this.imagesBase64List.map((img, idx) => (index.h("div", { class: "image-Container sc-ai12z-input-form", key: idx }, index.h("img", { src: img, style: { width: "70px", height: "50px", borderRadius: ".75rem" } }), index.h("span", { class: "delete-image sc-ai12z-input-form cursor-pointer ml-1", onClick: () => {
1495
1495
  this.imagesBase64List = this.imagesBase64List.filter((_, i) => i !== idx);
1496
1496
  if (this.imageUploaderRef && typeof this.imageUploaderRef.removeImageAtIndex === "function") {
1497
1497
  this.imageUploaderRef.removeImageAtIndex(idx);
1498
1498
  }
1499
- } }, "\u00D7"))))))), this.showErrorMessage && (index.h("div", { key: 'fbe9874fdaba00050d9bc32df8064f71ec1ec512', class: "flex" }, " ", index.h("p", { key: '584f058a0f9f55f275ed6ff0bd3ce235c081b42b', class: "error-msg", innerHTML: this.errorMessage }))), this.emptyMessageError && (index.h("div", { key: 'dc64d24f6e88819d159dc0433b858ffe074203c7', class: "flex" }, index.h("p", { key: '574454d7e2b37bd23550f45af354f422fcfb1468', id: `message-error-${this.instanceId}`, class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), this.chatLength === 0 && (index.h("div", { key: '4cb3418e261bab8b7f46003fb835d8c653931c64', class: "enter-tip", role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line", " ", index.h("button", { key: 'cbb9503e570280f9e0ac4c9ee537a2f2a0fbcdec', onClick: () => (this.showShortcutsDialog = true), class: "keyboard-shortcuts-btn", "aria-label": "Show keyboard shortcuts", title: "Keyboard shortcuts (?)", tabindex: "0" }, index.h("svg", { key: '3e7e9487fbb7099e1dae79fa49de15ab355f1748', width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("circle", { key: '6cdd5edab0d1df7dc77edff4858633611ffd1ea5', cx: "12", cy: "12", r: "10" }), index.h("path", { key: '8af60eb2fe2ea30677bb4b9c551defd2367e6951', d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }), index.h("line", { key: '8d7a16ae4b8ab546fb2c8078e892056887f576e0', x1: "12", y1: "17", x2: "12.01", y2: "17" })))))), this.showShortcutsDialog && (index.h("keyboard-shortcuts-dialog", { key: '1d8f77aa691c0baa6140170987b629971743a241', show: this.showShortcutsDialog, shortcuts: this.shortcuts, onCloseDialog: () => (this.showShortcutsDialog = false) }))));
1499
+ } }, "\u00D7"))))))), this.showErrorMessage && (index.h("div", { key: '868075f816f1704f7a033e44c58b457d3221773d', class: "flex" }, " ", index.h("p", { key: 'b3f13d96e369071675db049057032c5e2df64e97', class: "error-msg", innerHTML: this.errorMessage }))), this.emptyMessageError && (index.h("div", { key: 'bdda68e0bdf5067c5c188a33652925453afde468', class: "flex" }, index.h("p", { key: 'bc9f69e378e0b6ad52f9c4420c6db64343ea3be2', id: `message-error-${this.instanceId}`, class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), this.chatLength === 0 && (index.h("div", { key: '5927e7b9968e6dc33cf3f6f4a61c3d3a5e2c86a0', class: "enter-tip", role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line", " ", index.h("button", { key: 'b6cc8c60952881f38a68913949f63647e4dedd3f', onClick: () => (this.showShortcutsDialog = true), class: "keyboard-shortcuts-btn", "aria-label": "Show keyboard shortcuts", title: "Keyboard shortcuts (?)", tabindex: "0" }, index.h("svg", { key: 'a1330e6d41582e0af855b76a463eb4d5ba5b1c14', width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("circle", { key: 'c1e6d8628ad15d82d90d686e7f1608c0b0a1b65d', cx: "12", cy: "12", r: "10" }), index.h("path", { key: 'a339edfb79c587493f9935e19ac3db6439906d11', d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }), index.h("line", { key: '9a5a90516a6dbaef064ad268712ada0ba9877d4f', x1: "12", y1: "17", x2: "12.01", y2: "17" })))))), this.showShortcutsDialog && (index.h("keyboard-shortcuts-dialog", { key: '6f92ef187ba852baf48a50418028ed36ab6ce8dd', show: this.showShortcutsDialog, shortcuts: this.shortcuts, onCloseDialog: () => (this.showShortcutsDialog = false) }))));
1500
1500
  }
1501
1501
  get el() { return index.getElement(this); }
1502
1502
  };
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-Ct2DwlDF.js');
4
4
  var utils = require('./utils-DG2h-dHR.js');
5
5
  var surveyHelpers = require('./surveyHelpers-DTDyWBdY.js');
6
- var scriptStyleLoader = require('./scriptStyleLoader-BHz2-bYp.js');
6
+ var scriptStyleLoader = require('./scriptStyleLoader-BTtEJqyW.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)}}`;
9
9
 
@@ -15,6 +15,7 @@ const Ai12zForm = class {
15
15
  this.formSubmitted = index.createEvent(this, "formSubmitted", 7);
16
16
  this.errored = index.createEvent(this, "errored", 7);
17
17
  this.loadTimer = null;
18
+ this.loadVersion = 0;
18
19
  this.surveyCDNPath = "https://cdn.ai12z.net/pkg/surveyjs";
19
20
  this.dataKey = index.Env.DATA_KEY || "";
20
21
  this.dataMode = index.Env.DATA_MODE || "prod";
@@ -40,6 +41,7 @@ const Ai12zForm = class {
40
41
  });
41
42
  // Load all bot assets
42
43
  await this.assetLoader.loadBotAssets();
44
+ await this.assetLoader.loadSurveyDependencies();
43
45
  // console.log("✅ Asset loader initialized successfully")
44
46
  }
45
47
  catch (error) {
@@ -47,25 +49,25 @@ const Ai12zForm = class {
47
49
  }
48
50
  }
49
51
  disconnectedCallback() {
50
- if (this.loadTimer) {
52
+ // Invalidate any in-flight load by bumping the version
53
+ this.loadVersion++;
54
+ if (this.loadTimer)
51
55
  clearTimeout(this.loadTimer);
52
- this.loadTimer = null;
53
- }
54
56
  }
55
57
  async watchLoadProps() {
56
58
  if (!this.isReady) {
57
59
  return;
58
60
  }
59
- if (this.loadTimer) {
61
+ if (this.loadTimer)
60
62
  clearTimeout(this.loadTimer);
61
- }
62
- this.loadTimer = setTimeout(async () => {
63
- await this.loadDynamicForm();
64
- }, 200);
63
+ this.loadTimer = setTimeout(() => {
64
+ this.loadDynamicForm();
65
+ }, 150);
65
66
  }
66
67
  async loadDynamicForm(keyName) {
67
68
  var _a;
68
69
  const nextKeyName = (_a = (keyName !== null && keyName !== void 0 ? keyName : this.keyName)) === null || _a === void 0 ? void 0 : _a.trim();
70
+ const version = ++this.loadVersion;
69
71
  if (!this.dataKey) {
70
72
  this.setError('Public Key is required. Please provide using attribute "data-key".');
71
73
  return;
@@ -74,6 +76,8 @@ const Ai12zForm = class {
74
76
  this.isLoading = true;
75
77
  try {
76
78
  const response = await this.fetchResponse(nextKeyName);
79
+ if (version !== this.loadVersion)
80
+ return;
77
81
  if (!response.success) {
78
82
  const controlHint = nextKeyName ? ` for keyName "${nextKeyName}"` : "";
79
83
  throw new Error(`No form control found${controlHint}.`);
@@ -82,7 +86,7 @@ const Ai12zForm = class {
82
86
  chat: {
83
87
  keyName: response.form.keyName,
84
88
  controlData: { form_model: response.form.model },
85
- theme: response.form.theme
89
+ theme: response.form.theme,
86
90
  },
87
91
  surveyDomId: this.surveyDomId,
88
92
  shadowRoot: this.el.shadowRoot,
@@ -126,7 +130,7 @@ const Ai12zForm = class {
126
130
  this.errored.emit(message);
127
131
  }
128
132
  render() {
129
- return (index.h("div", { key: 'a3c2cf413b46fc966831f7850183ff707d392e1c', class: "ai12z-form-wrapper" }, this.error && !this.isLoading && index.h("div", { key: '387b611ba0ed6719e0b0eb82378dff1b60bc26a2', class: "ai12z-form-error" }, this.error), index.h("div", { key: 'e5d86dec109eef1155e4633ebb40f843d0cf70ac', id: this.surveyDomId, class: "ai12z-form-container" })));
133
+ return (index.h("div", { key: 'f6d7c6128db43eb0f4c546c364ed2af9c56feb9f', class: "ai12z-form-wrapper" }, this.error && !this.isLoading && index.h("div", { key: 'fd47efae79ab4c4922f558c7892f1b79f1bbdf56', class: "ai12z-form-error" }, this.error), index.h("div", { key: '44e50ecc55cfe7938dfa1c2e2c35bada1be63318', id: this.surveyDomId, class: "ai12z-form-container" })));
130
134
  }
131
135
  get el() { return index.getElement(this); }
132
136
  static get watchers() { return {
@@ -10,7 +10,7 @@ const Spinner = class {
10
10
  this.class = "w-6 h-6";
11
11
  }
12
12
  render() {
13
- return index.h("div", { key: '3f31aa522b976c9f49561e975776b74abcb32d66', class: "loader " + this.class });
13
+ return index.h("div", { key: '336ebb258bf48412e379323d58232a67461385fa', class: "loader " + this.class });
14
14
  }
15
15
  };
16
16
  Spinner.style = spinnerCss();
@@ -128,7 +128,7 @@ const ImageUploader = class {
128
128
  this.imagesChange.emit(newImages);
129
129
  }
130
130
  render() {
131
- return (index.h("div", { key: '291a5fdac46f08b0a37715eae0b2731af4ad08cf', class: "image-uploader" }, index.h("button", { key: '790850a914791f763ee90fc6edbaaf173589cd29', type: "button", class: "py-1", disabled: this.disabled, onClick: () => this.uploadElem && this.uploadElem.click(), "aria-label": "Upload Images" }, index.h("div", { key: 'bdc034f6ba870e274b7570ec3844aa65727f473c', class: "flex items-center gap-2" }, index.h("div", { key: '36f15b2e0cfbb73ba052e549ffc9487ce500767a' }, index.h("svg", { key: 'cea6f7e312d548158c2e535317ec31033a321b0c', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: 'c5f984fd533ea59480c6da5995b2fe6049348e35', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: 'e4bd9cb7372bd4b6732cfc32240df50b5020c188' }, "Upload Images"))), index.h("input", { key: '1b6929046cebe621fbf5727dacf173d56ef78bf9', type: "file", multiple: true, accept: "image/*", style: { display: "none" }, disabled: this.disabled, onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) })));
131
+ return (index.h("div", { key: 'c9818407a99ed0d89a24d8c561497dd22c451d71', class: "image-uploader" }, index.h("button", { key: 'e4346c7faeb97827b4f0d2140c2aadad17c595f6', type: "button", class: "py-1", disabled: this.disabled, onClick: () => this.uploadElem && this.uploadElem.click(), "aria-label": "Upload Images" }, index.h("div", { key: '3f84c3eb9b71f795c775e96c6bf758c736e0f872', class: "flex items-center gap-2" }, index.h("div", { key: 'fd837005d49b988a562d6b2072ff7fd709621d24' }, index.h("svg", { key: 'b787a29fe238db1c981e8f6afc148b54fe83a8f2', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: '7bba989aa3dfbcca5be561c1931f04866e4fc4bc', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: '4c3feb42c66cc98af2b8cc5a863643a671f9cf00' }, "Upload Images"))), index.h("input", { key: 'fe0ae0769c82a7c76f1bb9b9ba97de26cc2f765c', type: "file", multiple: true, accept: "image/*", style: { display: "none" }, disabled: this.disabled, onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) })));
132
132
  }
133
133
  get el() { return index.getElement(this); }
134
134
  };
@@ -142,7 +142,20 @@ const KeyboardShortcutsDialog = class {
142
142
  this.closeDialog = index.createEvent(this, "closeDialog", 7);
143
143
  this.show = false;
144
144
  this.shortcuts = [];
145
- this.isMac = typeof navigator !== 'undefined' && navigator.platform.toUpperCase().indexOf('MAC') >= 0;
145
+ this.groupedShortcuts = [];
146
+ this.isMac = typeof navigator !== "undefined" && navigator.platform.toUpperCase().indexOf("MAC") >= 0;
147
+ this.KEY_MAP = {
148
+ Meta: this.isMac ? "⌘" : "Win",
149
+ Control: this.isMac ? "⌃" : "Ctrl",
150
+ Alt: this.isMac ? "⌥" : "Alt",
151
+ Shift: this.isMac ? "⇧" : "Shift",
152
+ Enter: "↵",
153
+ Escape: "Esc",
154
+ ArrowUp: "↑",
155
+ ArrowDown: "↓",
156
+ ArrowLeft: "←",
157
+ ArrowRight: "→",
158
+ };
146
159
  this.handleKeyDown = (event) => {
147
160
  if (event.key === "Escape") {
148
161
  this.handleClose();
@@ -171,6 +184,12 @@ const KeyboardShortcutsDialog = class {
171
184
  });
172
185
  }
173
186
  }
187
+ handleShortcutsChange() {
188
+ this.groupedShortcuts = this.getGroupedShortcuts();
189
+ }
190
+ componentWillLoad() {
191
+ this.groupedShortcuts = this.getGroupedShortcuts();
192
+ }
174
193
  initFocusTrap() {
175
194
  const dialog = this.el.shadowRoot.querySelector(".shortcuts-content");
176
195
  const focusable = dialog.querySelectorAll(`
@@ -191,19 +210,7 @@ const KeyboardShortcutsDialog = class {
191
210
  this.closeDialog.emit();
192
211
  }
193
212
  formatKey(key) {
194
- const keyMap = {
195
- 'Meta': this.isMac ? '⌘' : 'Win',
196
- 'Control': this.isMac ? '⌃' : 'Ctrl',
197
- 'Alt': this.isMac ? '⌥' : 'Alt',
198
- 'Shift': this.isMac ? '⇧' : 'Shift',
199
- 'Enter': '↵',
200
- 'Escape': 'Esc',
201
- 'ArrowUp': '↑',
202
- 'ArrowDown': '↓',
203
- 'ArrowLeft': '←',
204
- 'ArrowRight': '→',
205
- };
206
- return keyMap[key] || key;
213
+ return this.KEY_MAP[key] || key;
207
214
  }
208
215
  getGroupedShortcuts() {
209
216
  const grouped = this.shortcuts.reduce((acc, shortcut) => {
@@ -219,17 +226,19 @@ const KeyboardShortcutsDialog = class {
219
226
  if (!this.show) {
220
227
  return null;
221
228
  }
222
- const groupedShortcuts = this.getGroupedShortcuts();
223
- return (index.h("div", { role: "dialog", "aria-modal": "true", "aria-labelledby": "shortcuts-dialog-title", class: "shortcuts-backdrop", onClick: () => this.handleClose(), onKeyDown: this.handleKeyDown }, index.h("div", { class: "shortcuts-content", role: "document", tabindex: "-1", onClick: (e) => e.stopPropagation() }, index.h("div", { class: "shortcuts-header" }, index.h("h2", { id: "shortcuts-dialog-title" }, "Keyboard Shortcuts"), index.h("button", { class: "close-button", onClick: () => this.handleClose(), "aria-label": "Close shortcuts dialog" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, index.h("path", { d: "M15 5L5 15M5 5L15 15", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" })))), index.h("div", { class: "shortcuts-body" }, groupedShortcuts.map(([category, shortcuts]) => (index.h("div", { class: "shortcuts-category" }, index.h("h3", null, category), index.h("div", { class: "shortcuts-list" }, shortcuts.map((shortcut) => {
229
+ return (index.h("div", { role: "dialog", "aria-modal": "true", "aria-labelledby": "shortcuts-dialog-title", class: "shortcuts-backdrop", onClick: () => this.handleClose(), onKeyDown: this.handleKeyDown }, index.h("div", { class: "shortcuts-content", role: "document", tabindex: "-1", onClick: e => e.stopPropagation() }, index.h("div", { class: "shortcuts-header" }, index.h("h2", { id: "shortcuts-dialog-title" }, "Keyboard Shortcuts"), index.h("button", { class: "close-button", onClick: () => this.handleClose(), "aria-label": "Close shortcuts dialog" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, index.h("path", { d: "M15 5L5 15M5 5L15 15", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" })))), index.h("div", { class: "shortcuts-body" }, this.groupedShortcuts.map(([category, shortcuts]) => (index.h("div", { class: "shortcuts-category" }, index.h("h3", null, category), index.h("div", { class: "shortcuts-list" }, shortcuts.map(shortcut => {
224
230
  var _a;
225
231
  return (index.h("div", { class: "shortcut-item", tabindex: "0" }, index.h("span", { class: "shortcut-description" }, shortcut.description), index.h("div", { class: "shortcut-keys" }, (_a = shortcut.modifiers) === null || _a === void 0 ? void 0 :
226
- _a.map((modifier, index$1) => (index.h("span", null, index.h("kbd", { class: "key" }, this.formatKey(modifier)), index$1 < shortcut.modifiers.length - 1 && (index.h("span", { class: "key-separator" }, "+"))))), shortcut.modifiers && shortcut.modifiers.length > 0 && (index.h("span", { class: "key-separator" }, "+")), index.h("kbd", { class: "key" }, this.formatKey(shortcut.key)))));
227
- })))))), index.h("div", { class: "shortcuts-footer" }, index.h("p", { class: "shortcuts-hint" }, "Press ", index.h("kbd", { class: "key-inline" }, this.formatKey('Escape')), " to close")))));
232
+ _a.map((modifier, index$1) => (index.h("span", null, index.h("kbd", { class: "key" }, this.formatKey(modifier)), index$1 < shortcut.modifiers.length - 1 && index.h("span", { class: "key-separator" }, "+")))), shortcut.modifiers && shortcut.modifiers.length > 0 && index.h("span", { class: "key-separator" }, "+"), index.h("kbd", { class: "key" }, this.formatKey(shortcut.key)))));
233
+ })))))), index.h("div", { class: "shortcuts-footer" }, index.h("p", { class: "shortcuts-hint" }, "Press ", index.h("kbd", { class: "key-inline" }, this.formatKey("Escape")), " to close")))));
228
234
  }
229
235
  get el() { return index.getElement(this); }
230
236
  static get watchers() { return {
231
237
  "show": [{
232
238
  "handleShowChange": 0
239
+ }],
240
+ "shortcuts": [{
241
+ "handleShortcutsChange": 0
233
242
  }]
234
243
  }; }
235
244
  };
@@ -21,7 +21,7 @@ require('./reCaptchaHelpers-DUlImWQK.js');
21
21
  require('./botHelpers-aCoootcN.js');
22
22
  require('./processCarouselData-DcPRJVyR.js');
23
23
  require('./surveyHelpers-DTDyWBdY.js');
24
- require('./scriptStyleLoader-BHz2-bYp.js');
24
+ require('./scriptStyleLoader-BTtEJqyW.js');
25
25
  require('./ctaHelpers-CVr3D-cw.js');
26
26
  require('./app-store-D249GRTi.js');
27
27
  require('./parseHelper-XIyoURy9.js');
@@ -45,7 +45,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
45
45
 
46
46
  patchBrowser().then(async (options) => {
47
47
  await index.globalScripts();
48
- return index.bootstrapLazy(JSON.parse("[[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[1,\"data-attributes\"],\"options\":[16],\"excludeTags\":[16],\"includeTags\":[16],\"socketService\":[32],\"ctaSettings\":[32],\"showModal\":[32],\"timer\":[32],\"questionCounter\":[32],\"formData\":[32],\"searchResults\":[32],\"error\":[32],\"conversationId\":[32],\"canRender\":[32],\"chatHistory\":[32],\"isChat\":[32],\"aiMessageId\":[32],\"thumbsId\":[32],\"imgFiles\":[32],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"list-data.cjs\",[[1,\"list-data\",{\"template\":[1],\"inputType\":[1,\"input-type\"],\"itemsPerRow\":[2,\"items-per-row\"],\"items\":[1040],\"formSettings\":[8,\"form-settings\"],\"itemsPerPage\":[2,\"items-per-page\"],\"emptyMessage\":[1,\"empty-message\"],\"currentPage\":[32],\"showMoreState\":[32],\"showPanel\":[32],\"activeIndex\":[32],\"activeButton\":[32],\"activeButtonIndex\":[32],\"showImageOnMore\":[32]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-carousel.cjs\",[[1,\"ai12z-carousel\",{\"items\":[16],\"inputType\":[1,\"input-type\"],\"itemsPerRow\":[2,\"items-per-row\"],\"activeIndex\":[32],\"activeButton\":[32],\"activeButtonIndex\":[32]}]]],[\"ai12z-mic.cjs\",[[1,\"ai12z-mic\",{\"isListening\":[1028,\"is-listening\"],\"transcript\":[32],\"isRecording\":[32]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-chat_2.cjs\",[[0,\"ai12z-input-form\",{\"isChat\":[4,\"is-chat\"],\"placeholder\":[1],\"buttonText\":[1,\"button-text\"],\"followUpLabel\":[1,\"follow-up-label\"],\"iconSrc\":[1,\"icon-src\"],\"isImageUpload\":[4,\"is-image-upload\"],\"isEnableMic\":[4,\"is-enable-mic\"],\"componentType\":[1,\"component-type\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"ai-message-id\"],\"imgFiles\":[1032,\"img-files\"],\"env\":[1025],\"conversationId\":[1025,\"conversation-id\"],\"dataAttributes\":[8,\"data-attributes\"],\"chatExcludeTags\":[16],\"chatIncludeTags\":[16],\"target\":[1],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"componentType\":[1,\"component-type\"],\"chatPosition\":[1,\"chat-position\"],\"socketIn\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"currentPage\":[32],\"htmlTemplate\":[32],\"currentIndex\":[32],\"formSettings\":[32],\"itemsPerPage\":[32],\"emptyMessage\":[32],\"buttonText\":[32],\"panelTemplate\":[32],\"panelIndex\":[32],\"panelName\":[32],\"items\":[32],\"theme\":[32],\"selectByIndex\":[64],\"selectByName\":[64]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16]},null,{\"show\":[{\"handleShowChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]]]"), options);
48
+ return index.bootstrapLazy(JSON.parse("[[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"currentPage\":[32],\"htmlTemplate\":[32],\"currentIndex\":[32],\"formSettings\":[32],\"itemsPerPage\":[32],\"emptyMessage\":[32],\"buttonText\":[32],\"panelTemplate\":[32],\"panelIndex\":[32],\"panelName\":[32],\"items\":[32],\"theme\":[32],\"selectByIndex\":[64],\"selectByName\":[64]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[1,\"data-attributes\"],\"options\":[16],\"excludeTags\":[16],\"includeTags\":[16],\"socketService\":[32],\"ctaSettings\":[32],\"showModal\":[32],\"timer\":[32],\"questionCounter\":[32],\"formData\":[32],\"searchResults\":[32],\"error\":[32],\"conversationId\":[32],\"canRender\":[32],\"chatHistory\":[32],\"isChat\":[32],\"aiMessageId\":[32],\"thumbsId\":[32],\"imgFiles\":[32],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}]}]]],[\"ai12z-chat_2.cjs\",[[0,\"ai12z-input-form\",{\"isChat\":[4,\"is-chat\"],\"placeholder\":[1],\"buttonText\":[1,\"button-text\"],\"followUpLabel\":[1,\"follow-up-label\"],\"iconSrc\":[1,\"icon-src\"],\"isImageUpload\":[4,\"is-image-upload\"],\"isEnableMic\":[4,\"is-enable-mic\"],\"componentType\":[1,\"component-type\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"ai-message-id\"],\"imgFiles\":[1032,\"img-files\"],\"env\":[1025],\"conversationId\":[1025,\"conversation-id\"],\"dataAttributes\":[8,\"data-attributes\"],\"chatExcludeTags\":[16],\"chatIncludeTags\":[16],\"target\":[1],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"componentType\":[1,\"component-type\"],\"chatPosition\":[1,\"chat-position\"],\"socketIn\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]]]"), options);
49
49
  });
50
50
 
51
51
  exports.setNonce = index.setNonce;
@@ -5,7 +5,7 @@ var index = require('./index-Ct2DwlDF.js');
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await index.globalScripts();
8
- return index.bootstrapLazy(JSON.parse("[[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[1,\"data-attributes\"],\"options\":[16],\"excludeTags\":[16],\"includeTags\":[16],\"socketService\":[32],\"ctaSettings\":[32],\"showModal\":[32],\"timer\":[32],\"questionCounter\":[32],\"formData\":[32],\"searchResults\":[32],\"error\":[32],\"conversationId\":[32],\"canRender\":[32],\"chatHistory\":[32],\"isChat\":[32],\"aiMessageId\":[32],\"thumbsId\":[32],\"imgFiles\":[32],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"list-data.cjs\",[[1,\"list-data\",{\"template\":[1],\"inputType\":[1,\"input-type\"],\"itemsPerRow\":[2,\"items-per-row\"],\"items\":[1040],\"formSettings\":[8,\"form-settings\"],\"itemsPerPage\":[2,\"items-per-page\"],\"emptyMessage\":[1,\"empty-message\"],\"currentPage\":[32],\"showMoreState\":[32],\"showPanel\":[32],\"activeIndex\":[32],\"activeButton\":[32],\"activeButtonIndex\":[32],\"showImageOnMore\":[32]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-carousel.cjs\",[[1,\"ai12z-carousel\",{\"items\":[16],\"inputType\":[1,\"input-type\"],\"itemsPerRow\":[2,\"items-per-row\"],\"activeIndex\":[32],\"activeButton\":[32],\"activeButtonIndex\":[32]}]]],[\"ai12z-mic.cjs\",[[1,\"ai12z-mic\",{\"isListening\":[1028,\"is-listening\"],\"transcript\":[32],\"isRecording\":[32]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-chat_2.cjs\",[[0,\"ai12z-input-form\",{\"isChat\":[4,\"is-chat\"],\"placeholder\":[1],\"buttonText\":[1,\"button-text\"],\"followUpLabel\":[1,\"follow-up-label\"],\"iconSrc\":[1,\"icon-src\"],\"isImageUpload\":[4,\"is-image-upload\"],\"isEnableMic\":[4,\"is-enable-mic\"],\"componentType\":[1,\"component-type\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"ai-message-id\"],\"imgFiles\":[1032,\"img-files\"],\"env\":[1025],\"conversationId\":[1025,\"conversation-id\"],\"dataAttributes\":[8,\"data-attributes\"],\"chatExcludeTags\":[16],\"chatIncludeTags\":[16],\"target\":[1],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"componentType\":[1,\"component-type\"],\"chatPosition\":[1,\"chat-position\"],\"socketIn\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"currentPage\":[32],\"htmlTemplate\":[32],\"currentIndex\":[32],\"formSettings\":[32],\"itemsPerPage\":[32],\"emptyMessage\":[32],\"buttonText\":[32],\"panelTemplate\":[32],\"panelIndex\":[32],\"panelName\":[32],\"items\":[32],\"theme\":[32],\"selectByIndex\":[64],\"selectByName\":[64]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16]},null,{\"show\":[{\"handleShowChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]]]"), options);
8
+ return index.bootstrapLazy(JSON.parse("[[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"currentPage\":[32],\"htmlTemplate\":[32],\"currentIndex\":[32],\"formSettings\":[32],\"itemsPerPage\":[32],\"emptyMessage\":[32],\"buttonText\":[32],\"panelTemplate\":[32],\"panelIndex\":[32],\"panelName\":[32],\"items\":[32],\"theme\":[32],\"selectByIndex\":[64],\"selectByName\":[64]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[1,\"data-attributes\"],\"options\":[16],\"excludeTags\":[16],\"includeTags\":[16],\"socketService\":[32],\"ctaSettings\":[32],\"showModal\":[32],\"timer\":[32],\"questionCounter\":[32],\"formData\":[32],\"searchResults\":[32],\"error\":[32],\"conversationId\":[32],\"canRender\":[32],\"chatHistory\":[32],\"isChat\":[32],\"aiMessageId\":[32],\"thumbsId\":[32],\"imgFiles\":[32],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}]}]]],[\"ai12z-chat_2.cjs\",[[0,\"ai12z-input-form\",{\"isChat\":[4,\"is-chat\"],\"placeholder\":[1],\"buttonText\":[1,\"button-text\"],\"followUpLabel\":[1,\"follow-up-label\"],\"iconSrc\":[1,\"icon-src\"],\"isImageUpload\":[4,\"is-image-upload\"],\"isEnableMic\":[4,\"is-enable-mic\"],\"componentType\":[1,\"component-type\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"ai-message-id\"],\"imgFiles\":[1032,\"img-files\"],\"env\":[1025],\"conversationId\":[1025,\"conversation-id\"],\"dataAttributes\":[8,\"data-attributes\"],\"chatExcludeTags\":[16],\"chatIncludeTags\":[16],\"target\":[1],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"componentType\":[1,\"component-type\"],\"chatPosition\":[1,\"chat-position\"],\"socketIn\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]]]"), options);
9
9
  };
10
10
 
11
11
  exports.setNonce = index.setNonce;