ai12z 2.0.7 → 2.0.9

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 (68) hide show
  1. package/dist/cjs/ai12z-bot_10.cjs.entry.js +3 -3
  2. package/dist/cjs/ai12z-carousel.cjs.entry.js +1 -1
  3. package/dist/cjs/{ai12z-cta-7eb3dd6c.js → ai12z-cta-f9f94753.js} +16 -16
  4. package/dist/cjs/ai12z-cta-f9f94753.js.map +1 -0
  5. package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js → ai12z-knowledge-box-c33465fe.js} +3 -3
  6. package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js.map → ai12z-knowledge-box-c33465fe.js.map} +1 -1
  7. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +3 -3
  8. package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
  10. package/dist/cjs/{index-f098743c.js → index-171f7ecf.js} +2 -2
  11. package/dist/cjs/index-171f7ecf.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +4 -4
  13. package/dist/cjs/library.cjs.js +1 -1
  14. package/dist/cjs/list-data.cjs.entry.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/{utils-f0adbba9.js → utils-c9b045e3.js} +2 -2
  17. package/dist/cjs/{utils-f0adbba9.js.map → utils-c9b045e3.js.map} +1 -1
  18. package/dist/collection/components/ai12z-bot/ai12z-bot.js +11 -11
  19. package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
  20. package/dist/collection/utils/logger.js +15 -1
  21. package/dist/collection/utils/logger.js.map +1 -1
  22. package/dist/esm/ai12z-bot_10.entry.js +4 -4
  23. package/dist/esm/ai12z-carousel.entry.js +1 -1
  24. package/dist/esm/{ai12z-cta-e143bfc1.js → ai12z-cta-b4e80b50.js} +14 -14
  25. package/dist/esm/ai12z-cta-b4e80b50.js.map +1 -0
  26. package/dist/esm/{ai12z-knowledge-box-704c29af.js → ai12z-knowledge-box-aceba174.js} +3 -3
  27. package/dist/esm/{ai12z-knowledge-box-704c29af.js.map → ai12z-knowledge-box-aceba174.js.map} +1 -1
  28. package/dist/esm/ai12z-knowledge-box.entry.js +3 -3
  29. package/dist/esm/ai12z-spinner.entry.js +1 -1
  30. package/dist/esm/dynamic-form.entry.js +1 -1
  31. package/dist/esm/{index-39265a7d.js → index-9f7965fd.js} +2 -2
  32. package/dist/esm/index-9f7965fd.js.map +1 -0
  33. package/dist/esm/index.js +4 -4
  34. package/dist/esm/library.js +2 -2
  35. package/dist/esm/list-data.entry.js +1 -1
  36. package/dist/esm/loader.js +2 -2
  37. package/dist/esm/{utils-96bbd030.js → utils-a4deff47.js} +2 -2
  38. package/dist/esm/{utils-96bbd030.js.map → utils-a4deff47.js.map} +1 -1
  39. package/dist/library/index.esm.js +1 -1
  40. package/dist/library/library.esm.js +1 -1
  41. package/dist/library/{p-eeec7af3.js → p-23f2e962.js} +2 -2
  42. package/dist/library/{p-eeec7af3.js.map → p-23f2e962.js.map} +1 -1
  43. package/dist/library/p-682c54c0.js +3 -0
  44. package/dist/library/p-682c54c0.js.map +1 -0
  45. package/dist/library/{p-85691232.entry.js → p-7673db22.entry.js} +2 -2
  46. package/dist/library/{p-233361ad.entry.js → p-7f764876.entry.js} +2 -2
  47. package/dist/library/{p-4fc9c2e8.js → p-973b27e2.js} +2 -2
  48. package/dist/library/{p-cfcf9f4d.js → p-b5fa76af.js} +2 -2
  49. package/dist/library/{p-c42b9950.entry.js → p-de0be744.entry.js} +2 -2
  50. package/dist/library/p-dea64110.entry.js +2 -0
  51. package/dist/library/{p-8dc9633d.entry.js → p-ed972184.entry.js} +2 -2
  52. package/dist/library/{p-b46a067b.entry.js → p-ee0c4132.entry.js} +2 -2
  53. package/package.json +2 -2
  54. package/dist/cjs/ai12z-cta-7eb3dd6c.js.map +0 -1
  55. package/dist/cjs/index-f098743c.js.map +0 -1
  56. package/dist/esm/ai12z-cta-e143bfc1.js.map +0 -1
  57. package/dist/esm/index-39265a7d.js.map +0 -1
  58. package/dist/library/p-b48f3cde.js +0 -3
  59. package/dist/library/p-b48f3cde.js.map +0 -1
  60. package/dist/library/p-e6aa7d00.entry.js +0 -2
  61. /package/dist/library/{p-85691232.entry.js.map → p-7673db22.entry.js.map} +0 -0
  62. /package/dist/library/{p-233361ad.entry.js.map → p-7f764876.entry.js.map} +0 -0
  63. /package/dist/library/{p-4fc9c2e8.js.map → p-973b27e2.js.map} +0 -0
  64. /package/dist/library/{p-cfcf9f4d.js.map → p-b5fa76af.js.map} +0 -0
  65. /package/dist/library/{p-c42b9950.entry.js.map → p-de0be744.entry.js.map} +0 -0
  66. /package/dist/library/{p-e6aa7d00.entry.js.map → p-dea64110.entry.js.map} +0 -0
  67. /package/dist/library/{p-8dc9633d.entry.js.map → p-ed972184.entry.js.map} +0 -0
  68. /package/dist/library/{p-b46a067b.entry.js.map → p-ee0c4132.entry.js.map} +0 -0
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const ai12zCta = require('./ai12z-cta-7eb3dd6c.js');
6
- const index = require('./index-f098743c.js');
7
- const utils$1 = require('./utils-f0adbba9.js');
5
+ const ai12zCta = require('./ai12z-cta-f9f94753.js');
6
+ const index = require('./index-171f7ecf.js');
7
+ const utils$1 = require('./utils-c9b045e3.js');
8
8
 
9
9
  const ai12zCtaCss = ":host{--bg-smoke-light:rgba(0, 0, 0, 0.5);margin-left:20px}.bg-smoke-light{transition:opacity 300ms ease-in-out;position:fixed;top:0;left:0;z-index:200;display:flex;height:100vh;width:100vw;cursor:auto;flex-direction:column;background-color:#0003;--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)\n var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-content{transition:transform 300ms ease-in-out,\n opacity 300ms ease-in-out;transform:scale(0.9);opacity:0}.modal-position{position:relative;padding:2rem 0 0.5rem 1rem;flex-direction:column}.modal-close{color:rgb(0 0 0)}.modal-close:hover{color:rgb(31 41 55)}.model-heading{color:var(--ai12z-heading-color);font-size:var(--ai12z-heading-font-size)}:host(.show-modal) .bg-smoke-light{opacity:1}:host(.show-modal) .modal-content{transform:scale(1);opacity:1}.modal-content-wrapper{background-color:rgb(255 255 255);width:100%;max-width:48rem;border-radius:0.5rem;margin:var(--ai12z-dialog-margin);}.custom-title{font-size:var(--ai12z-category-font-size);color:var(--ai12z-category-font-color)}.model-wrapper{position:fixed;top:0;left:0;z-index:200;display:flex;height:100vh;width:100vw;cursor:auto;flex-direction:column;background-color:#0003;padding:1rem;--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)\n var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)\n var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.custom-model{overflow:auto;inset:0px;position:fixed;min-height:100vh;place-items:center;display:flex}.modal-position .btn-position{position:absolute;right:0px;top:0px;padding:0.25rem}@media (max-width: 768px){.modal-content-wrapper{width:100%;height:100dvh;margin:0;border-radius:0;padding:1rem}.custom-privacy{position:fixed;bottom:0;left:0;width:100%;padding:10px}.modal-position .btn-position{padding:0rem}}.custom-privacy{color:var(--ai12z-knowledge-box-privacy-color);text-align:center;margin-top:auto;}.custom-button{align-items:center;text-align:left;background-color:rgb(255 255 255);color:rgb(148 163 184);border-radius:0.5rem;width:18rem;min-height:3rem;padding-left:1rem;padding-right:1rem;}.custom-msg{text-align:center;color:var(--ai12z-font-mute);justify-content:center;padding:2.5rem;}.cta-search-results{border-top-width:1px;border-bottom-width:0px;border-color:rgb(243 244 246)}.cta-search-results-list{position:relative;padding-bottom:1.25rem;padding-top:1.25rem}.cta-search-results-list:hover{background-color:var(--ai12z-hover-bg-color)}.cta-search-container{margin-left:auto;margin-right:auto;display:flex;max-width:56rem;justify-content:space-between;column-gap:1.5rem}.cta-search-container-two{display:flex;min-width:0px;column-gap:1rem}.cta-search-container-three{min-width:0px;flex:1 1 auto}.cta-search-text{font-weight:600;line-height:1.5rem;font-size:var(--ai12z-search-result-title-font-size);color:var(--ai12z-search-result-title-color)}.cta-search-text-position{position:absolute;left:0px;right:0px;top:-1px;bottom:0px}.cta-search-description{margin-top:0.25rem;display:flex;font-size:var(--ai12z-search-result-description-font-size);line-height:1rem;line-height:1.25rem;color:var(--ai12z-search-result-description-color)}.cta-search-list-arrow{display:flex;align-items:center;flex-shrink:0;column-gap:1rem}.custom-icon-width{width:4rem}.results-icon svg{width:1.5rem;height:1.5rem}";
10
10
  const Ai12zCategoryStyle0 = ai12zCtaCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f098743c.js');
5
+ const index = require('./index-171f7ecf.js');
6
6
 
7
7
  const ai12zCarouselCss = ".carousel-container{display:flex;align-items:center;justify-content:space-between;width:100%;overflow:hidden;position:relative;flex-direction:column}.carousel{width:87%;display:flex;transition:transform 0.5s ease-in-out;transform:translateX(calc(-100% * var(--active-index) / var(--items-per-row)));}.carousel-item{flex:1 0 calc(100% / var(--items-per-row) - 30px);min-width:30%;background-color:#fff;border-radius:8px;margin-right:15px;min-height:500px;margin-left:15px}.carousel-more-item{min-height:350px;max-height:400px;overflow-y:auto}.carousel-item-des2{min-height:300px;overflow-y:auto}.carousel-item-img-container{justify-content:center;align-items:center;width:100%;display:flex}.carousel-item-img{width:250px;height:auto;border-radius:8px}.carousel-item-des{max-height:150px;overflow-y:auto}.prev,.next{background:#007bff;border:none;color:white;padding:10px;cursor:pointer;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);z-index:10}.prev{cursor:pointer;left:0px}.next{cursor:pointer;right:0px}button:disabled{opacity:0.5;cursor:not-allowed}.carousel-item-info{margin-left:10px}.carousel-btn{background-color:#007bff;color:white;padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.carousel-item p{font-size:14px;line-height:1.5;white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.indicators{display:flex;justify-content:center;margin-top:10px}.indicator{width:10px;height:10px;background-color:gray;border-radius:50%;margin:0 5px;cursor:pointer}.indicator.active{background-color:black}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar{width:8px;}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-track{background:#f1f1f1;}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.carousel-more-item::-webkit-scrollbar,.carousel-item-des::-webkit-scrollbar-thumb:hover{background:#555;}";
8
8
  const Ai12zCarouselStyle0 = ai12zCarouselCss;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-f098743c.js');
4
- const utils = require('./utils-f0adbba9.js');
3
+ const index = require('./index-171f7ecf.js');
4
+ const utils = require('./utils-c9b045e3.js');
5
5
 
6
6
  function _interopNamespace(e) {
7
7
  if (e && e.__esModule) return e;
@@ -78,12 +78,12 @@ const Ai12zBot = class {
78
78
  this.invokeSocket();
79
79
  };
80
80
  this.renderSurvey = chat => {
81
- var _a, _b, _c;
82
- const survey = new window["Survey"].Model((_b = (_a = chat.controlData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.source);
81
+ var _a, _b, _c, _d;
82
+ const survey = new window["Survey"].Model((_c = (_b = (_a = chat.controlData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.source) !== null && _c !== void 0 ? _c : chat.controlData);
83
83
  if (this.surveyDomId === "") {
84
84
  return;
85
85
  }
86
- const domELe = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector(`#${this.surveyDomId}`);
86
+ const domELe = (_d = this.el.shadowRoot) === null || _d === void 0 ? void 0 : _d.querySelector(`#${this.surveyDomId}`);
87
87
  if (domELe) {
88
88
  window["jQuery"](domELe).Survey({ model: survey });
89
89
  }
@@ -171,7 +171,7 @@ const Ai12zBot = class {
171
171
  this.rowCount = 1;
172
172
  }
173
173
  };
174
- this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-7eb3dd6c.js', document.baseURI).href));
174
+ this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-f9f94753.js', document.baseURI).href));
175
175
  this.dataKey = undefined;
176
176
  this.dataMode = undefined;
177
177
  this.configId = undefined;
@@ -452,7 +452,7 @@ const Ai12zBot = class {
452
452
  });
453
453
  }
454
454
  updateConversations(finalHtml, data) {
455
- var _a, _b, _c;
455
+ var _a, _b, _c, _d;
456
456
  const updatedmsg = {
457
457
  id: this.currentDomId,
458
458
  text: finalHtml,
@@ -460,7 +460,7 @@ const Ai12zBot = class {
460
460
  timestamp: new Date().toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }),
461
461
  images: [],
462
462
  conversationId: this.conversationId,
463
- formModel: (_c = (_b = (_a = data.controlData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.source) !== null && _c !== void 0 ? _c : {},
463
+ formModel: (_d = (_c = (_b = (_a = data.controlData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.source) !== null && _c !== void 0 ? _c : data.controlData) !== null && _d !== void 0 ? _d : {},
464
464
  surveyDomId: this.surveyDomId,
465
465
  };
466
466
  this.addEventListeners(`#${this.currentDomId}`);
@@ -683,26 +683,26 @@ const Ai12zBot = class {
683
683
  width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
684
684
  height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
685
685
  };
686
- return (index.h("div", { key: 'ce24ff53cc3859f16fc379e17a699938b41d9518' }, index.h("div", { key: 'ab88c5c22d09b10c22ae1d4d8cf55c515342b5ca', class: {
686
+ return (index.h("div", { key: 'd6f536a876ce1b2afe85b402c92318ea32b2113c' }, index.h("div", { key: '0c2868ca0414b0b9143e72ab4dac0ad23a36fb2e', class: {
687
687
  "right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
688
688
  "left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
689
689
  "custom-floating-icon ": this.isBot,
690
690
  "hide-chatbot": this.isChatOpen,
691
- }, onClick: () => this.action("open") }, !this.isBot && ((_h = this.botSettings) === null || _h === void 0 ? void 0 : _h.botPosition) && this.defaultTemplate(), this.isBot && index.h("slot", { key: '5ebadd46a2b76cd497bc37bcc2f48c095151ac69', name: "bot" })), !this.isChatOpen && ((_k = (_j = this.botSettings) === null || _j === void 0 ? void 0 : _j.popover) === null || _k === void 0 ? void 0 : _k.returnMessage) && index.h("bot-popover", { key: '39c22121a8aecf072fe709d52ed3339fb484a288', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: 'f7b6f0bfd8c5cd92c3ae6e100eaf3c3cd42c3343', class: {
691
+ }, onClick: () => this.action("open") }, !this.isBot && ((_h = this.botSettings) === null || _h === void 0 ? void 0 : _h.botPosition) && this.defaultTemplate(), this.isBot && index.h("slot", { key: 'be39ec889b01f8fcf526b4a7b6e23892b884dee3', name: "bot" })), !this.isChatOpen && ((_k = (_j = this.botSettings) === null || _j === void 0 ? void 0 : _j.popover) === null || _k === void 0 ? void 0 : _k.returnMessage) && index.h("bot-popover", { key: '9875ebdf45cb8bac16c6297f6cf1d488a8392080', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: '7ee80eb1932355548781d7d2eb870229f20a31f6', class: {
692
692
  "chat-window": true,
693
693
  "chat-window-open": this.isChatOpen,
694
694
  "chat-window-close": !this.isChatOpen,
695
695
  "chat-right": ((_m = this.botSettings) === null || _m === void 0 ? void 0 : _m.botPosition) === "right",
696
696
  "chat-left": ((_o = this.botSettings) === null || _o === void 0 ? void 0 : _o.botPosition) === "left",
697
- }, style: style }, !this.hideInput && (index.h("div", { key: 'd7c7c96ae2bc310593108910cf07a9ca8841dd2f', class: "chat-header" }, ((_q = (_p = this.botSettings) === null || _p === void 0 ? void 0 : _p.buttons) === null || _q === void 0 ? void 0 : _q.length) > 0 && (index.h("button", { key: 'ca008f9137da10de1286bf3e112805e429bf26e4', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: 'bfd98efa2a295e7703855af743ad8cdc5a4e3d01', class: "avatar", src: (_s = (_r = this.botSettings) === null || _r === void 0 ? void 0 : _r.botLogo) !== null && _s !== void 0 ? _s : this.botlogo, alt: "Avatar" }), index.h("span", { key: '9f4c7a2cf0774852630e4c0be71c301991806cc3', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: 'd2c0ca77ae4d800a97ad91e35d84be6d27b727ec', onClick: () => this.loadConversation() }, index.h("svg", { key: 'e3527909317f464827e58a08e9f5dbd3dd83617c', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '432fd4bc5ec9bda9c4f0a08f2b31836de43a0dd7', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: '7523d8cc3ee9a4b92216ceb9dc76b5d5467c7c31', d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10c-1.702 0-3.305-.425-4.708-1.175L2 22l1.176-5.29C2.426 15.306 2 13.703 2 12 2 6.477 6.477 2 12 2zm0 2c-4.418 0-8 3.582-8 8 0 1.335.326 2.618.94 3.766l.35.654-.656 2.946 2.948-.654.653.349c1.148.614 2.43.939 3.765.939 4.418 0 8-3.582 8-8s-3.582-8-8-8zm1 3v5h4v2h-6V7h2z" }), " "))), index.h("button", { key: 'd7fd155d02c2f14d16ee4077e23a6d3e74a7094e', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: '406ecb25337b5da17766552984f29cdc29678f62', fill: "white", height: "20px", width: "20px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { key: '6381342ac54824edce3460477e88da169ba4d683', d: "M505.752,6.248c-8.331-8.331-21.839-8.331-30.17,0L320,161.83V64c0-11.782-9.551-21.333-21.333-21.333 c-11.782,0-21.333,9.551-21.333,21.333v149.333c0,0.007,0.001,0.015,0.001,0.022c0.001,0.695,0.037,1.39,0.105,2.083 c0.031,0.318,0.091,0.627,0.136,0.94c0.054,0.375,0.098,0.75,0.171,1.122c0.071,0.359,0.17,0.708,0.259,1.061 c0.081,0.322,0.151,0.645,0.248,0.964c0.105,0.346,0.234,0.68,0.356,1.018c0.114,0.318,0.219,0.639,0.349,0.953 c0.131,0.316,0.284,0.618,0.43,0.926c0.152,0.323,0.296,0.649,0.465,0.966c0.158,0.295,0.338,0.575,0.509,0.861 c0.186,0.311,0.361,0.626,0.564,0.929c0.211,0.316,0.447,0.613,0.674,0.917c0.19,0.253,0.365,0.513,0.568,0.759 c0.892,1.087,1.889,2.085,2.977,2.977c0.246,0.202,0.506,0.378,0.759,0.568c0.304,0.228,0.601,0.463,0.917,0.674 c0.303,0.203,0.618,0.379,0.929,0.564c0.286,0.171,0.566,0.351,0.861,0.509c0.317,0.169,0.643,0.313,0.966,0.465 c0.308,0.145,0.611,0.299,0.926,0.43c0.314,0.13,0.635,0.235,0.953,0.349c0.338,0.122,0.672,0.251,1.018,0.356 c0.318,0.096,0.642,0.167,0.964,0.248c0.353,0.089,0.701,0.188,1.061,0.259c0.372,0.074,0.748,0.118,1.122,0.171 c0.314,0.045,0.622,0.104,0.94,0.136c0.693,0.068,1.388,0.105,2.083,0.105c0.007,0,0.015,0.001,0.022,0.001H448 c11.782,0,21.333-9.551,21.333-21.333c0-11.782-9.551-21.333-21.333-21.333h-97.83L505.752,36.418 C514.083,28.087,514.083,14.58,505.752,6.248z" }), " ", index.h("path", { key: 'cbe6c1ef746beef378c23630e470a188158b7636', d: "M234.56,296.562c-0.031-0.318-0.091-0.627-0.136-0.94c-0.054-0.375-0.098-0.75-0.171-1.122 c-0.071-0.359-0.17-0.708-0.259-1.061c-0.081-0.322-0.151-0.645-0.248-0.964c-0.105-0.346-0.234-0.68-0.356-1.018 c-0.114-0.318-0.219-0.639-0.349-0.953c-0.131-0.316-0.284-0.618-0.43-0.926c-0.152-0.323-0.296-0.649-0.465-0.966 c-0.158-0.295-0.338-0.575-0.509-0.861c-0.186-0.311-0.361-0.626-0.564-0.929c-0.211-0.316-0.447-0.613-0.674-0.917 c-0.19-0.253-0.365-0.513-0.568-0.759c-0.892-1.087-1.889-2.085-2.977-2.977c-0.246-0.202-0.506-0.378-0.759-0.568 c-0.304-0.228-0.601-0.463-0.917-0.674c-0.303-0.203-0.618-0.379-0.929-0.564c-0.286-0.171-0.566-0.351-0.861-0.509 c-0.317-0.169-0.643-0.313-0.966-0.465c-0.308-0.145-0.611-0.299-0.926-0.43c-0.314-0.13-0.635-0.235-0.953-0.349 c-0.338-0.122-0.672-0.251-1.018-0.356c-0.318-0.096-0.642-0.167-0.964-0.248c-0.353-0.089-0.701-0.188-1.061-0.259 c-0.372-0.074-0.748-0.118-1.122-0.171c-0.314-0.045-0.622-0.104-0.94-0.136c-0.7-0.069-1.402-0.106-2.105-0.106l0,0H64 c-11.782,0-21.333,9.551-21.333,21.333C42.667,310.449,52.218,320,64,320h97.83L6.248,475.582c-8.331,8.331-8.331,21.839,0,30.17 c8.331,8.331,21.839,8.331,30.17,0L192,350.17V448c0,11.782,9.551,21.333,21.333,21.333c11.782,0,21.333-9.551,21.333-21.333 V298.667l0,0C234.667,297.964,234.629,297.262,234.56,296.562z" }), " ")), index.h("button", { key: '90c14b7c71960234c7d4bac8b62cb411cf98e06b', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '9f87d50a4877cbb756ba5ff19bbea5c546c9d0bd', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: 'adf563fdab85f475b19e43708568c6d35979d1a3', "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "white", d: "M9.34583 11.2L0.384011 2.23818C-0.128004 1.72617 -0.128004 0.896026 0.384011 0.384011C0.896026 -0.128004 1.72617 -0.128004 2.23818 0.384011L11.2 9.34583L20.1618 0.384011C20.6738 -0.128004 21.504 -0.128004 22.016 0.384011C22.528 0.896026 22.528 1.72617 22.016 2.23818L13.0542 11.2L22.016 20.1618C22.528 20.6738 22.528 21.504 22.016 22.016C21.504 22.528 20.6738 22.528 20.1618 22.016L11.2 13.0542L2.23818 22.016C1.72617 22.528 0.896026 22.528 0.384011 22.016C-0.128003 21.504 -0.128003 20.6738 0.384011 20.1618L9.34583 11.2Z" }))))), index.h("div", { key: '135cbb31882dab3b0348afd9459de05defa1c98e', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '8c9aa4d159b9e82ab281eee96368c2e4a34ff69b' }, (_v = (_u = this.botSettings) === null || _u === void 0 ? void 0 : _u.buttons) === null || _v === void 0 ? void 0 : _v.map(item => (index.h("li", { onClick: () => {
697
+ }, style: style }, !this.hideInput && (index.h("div", { key: 'edfdfc58806d93d7eb037658bc91a76caa0474e4', class: "chat-header" }, ((_q = (_p = this.botSettings) === null || _p === void 0 ? void 0 : _p.buttons) === null || _q === void 0 ? void 0 : _q.length) > 0 && (index.h("button", { key: '6ed47dda4e394a725a020daad1c6629062616aee', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '344caf0dddde5129ff51d7383c2726b3987079e6', class: "avatar", src: (_s = (_r = this.botSettings) === null || _r === void 0 ? void 0 : _r.botLogo) !== null && _s !== void 0 ? _s : this.botlogo, alt: "Avatar" }), index.h("span", { key: '73a081b106f45d137978af8eec41139b2b251dd8', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: 'c04f40be60bbb0da6e242d3eecf106c8fcc7a729', onClick: () => this.loadConversation() }, index.h("svg", { key: '99b9d8f1d0cc2aaf3ddc64313fc1507a015b7a79', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '725e1f7d4861cc21560b61b05f0394cf08fbc3f2', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: '41e59254effa2cfa894ba197f027347b96d66808', d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10c-1.702 0-3.305-.425-4.708-1.175L2 22l1.176-5.29C2.426 15.306 2 13.703 2 12 2 6.477 6.477 2 12 2zm0 2c-4.418 0-8 3.582-8 8 0 1.335.326 2.618.94 3.766l.35.654-.656 2.946 2.948-.654.653.349c1.148.614 2.43.939 3.765.939 4.418 0 8-3.582 8-8s-3.582-8-8-8zm1 3v5h4v2h-6V7h2z" }), " "))), index.h("button", { key: '6d735419b592c862fbb1fb19433d1a8a7c7c3a4d', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'e69468ceeec63b4b6151ad9c50c9970ccb4777ba', fill: "white", height: "20px", width: "20px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { key: 'ee34d30a291ba566c8d91867a08bb7e1f123c89f', d: "M505.752,6.248c-8.331-8.331-21.839-8.331-30.17,0L320,161.83V64c0-11.782-9.551-21.333-21.333-21.333 c-11.782,0-21.333,9.551-21.333,21.333v149.333c0,0.007,0.001,0.015,0.001,0.022c0.001,0.695,0.037,1.39,0.105,2.083 c0.031,0.318,0.091,0.627,0.136,0.94c0.054,0.375,0.098,0.75,0.171,1.122c0.071,0.359,0.17,0.708,0.259,1.061 c0.081,0.322,0.151,0.645,0.248,0.964c0.105,0.346,0.234,0.68,0.356,1.018c0.114,0.318,0.219,0.639,0.349,0.953 c0.131,0.316,0.284,0.618,0.43,0.926c0.152,0.323,0.296,0.649,0.465,0.966c0.158,0.295,0.338,0.575,0.509,0.861 c0.186,0.311,0.361,0.626,0.564,0.929c0.211,0.316,0.447,0.613,0.674,0.917c0.19,0.253,0.365,0.513,0.568,0.759 c0.892,1.087,1.889,2.085,2.977,2.977c0.246,0.202,0.506,0.378,0.759,0.568c0.304,0.228,0.601,0.463,0.917,0.674 c0.303,0.203,0.618,0.379,0.929,0.564c0.286,0.171,0.566,0.351,0.861,0.509c0.317,0.169,0.643,0.313,0.966,0.465 c0.308,0.145,0.611,0.299,0.926,0.43c0.314,0.13,0.635,0.235,0.953,0.349c0.338,0.122,0.672,0.251,1.018,0.356 c0.318,0.096,0.642,0.167,0.964,0.248c0.353,0.089,0.701,0.188,1.061,0.259c0.372,0.074,0.748,0.118,1.122,0.171 c0.314,0.045,0.622,0.104,0.94,0.136c0.693,0.068,1.388,0.105,2.083,0.105c0.007,0,0.015,0.001,0.022,0.001H448 c11.782,0,21.333-9.551,21.333-21.333c0-11.782-9.551-21.333-21.333-21.333h-97.83L505.752,36.418 C514.083,28.087,514.083,14.58,505.752,6.248z" }), " ", index.h("path", { key: '23caae9de9a381141fcdd2d430d2d4dab7ccd5ac', d: "M234.56,296.562c-0.031-0.318-0.091-0.627-0.136-0.94c-0.054-0.375-0.098-0.75-0.171-1.122 c-0.071-0.359-0.17-0.708-0.259-1.061c-0.081-0.322-0.151-0.645-0.248-0.964c-0.105-0.346-0.234-0.68-0.356-1.018 c-0.114-0.318-0.219-0.639-0.349-0.953c-0.131-0.316-0.284-0.618-0.43-0.926c-0.152-0.323-0.296-0.649-0.465-0.966 c-0.158-0.295-0.338-0.575-0.509-0.861c-0.186-0.311-0.361-0.626-0.564-0.929c-0.211-0.316-0.447-0.613-0.674-0.917 c-0.19-0.253-0.365-0.513-0.568-0.759c-0.892-1.087-1.889-2.085-2.977-2.977c-0.246-0.202-0.506-0.378-0.759-0.568 c-0.304-0.228-0.601-0.463-0.917-0.674c-0.303-0.203-0.618-0.379-0.929-0.564c-0.286-0.171-0.566-0.351-0.861-0.509 c-0.317-0.169-0.643-0.313-0.966-0.465c-0.308-0.145-0.611-0.299-0.926-0.43c-0.314-0.13-0.635-0.235-0.953-0.349 c-0.338-0.122-0.672-0.251-1.018-0.356c-0.318-0.096-0.642-0.167-0.964-0.248c-0.353-0.089-0.701-0.188-1.061-0.259 c-0.372-0.074-0.748-0.118-1.122-0.171c-0.314-0.045-0.622-0.104-0.94-0.136c-0.7-0.069-1.402-0.106-2.105-0.106l0,0H64 c-11.782,0-21.333,9.551-21.333,21.333C42.667,310.449,52.218,320,64,320h97.83L6.248,475.582c-8.331,8.331-8.331,21.839,0,30.17 c8.331,8.331,21.839,8.331,30.17,0L192,350.17V448c0,11.782,9.551,21.333,21.333,21.333c11.782,0,21.333-9.551,21.333-21.333 V298.667l0,0C234.667,297.964,234.629,297.262,234.56,296.562z" }), " ")), index.h("button", { key: 'bd2d013e1263acf6d077565ec53e3f8e14c045fa', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '07afa93891b43b0a93f4f517140619aa97fff2b6', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: '1701d144241711842c616984c8f1d9a43d00216c', "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "white", d: "M9.34583 11.2L0.384011 2.23818C-0.128004 1.72617 -0.128004 0.896026 0.384011 0.384011C0.896026 -0.128004 1.72617 -0.128004 2.23818 0.384011L11.2 9.34583L20.1618 0.384011C20.6738 -0.128004 21.504 -0.128004 22.016 0.384011C22.528 0.896026 22.528 1.72617 22.016 2.23818L13.0542 11.2L22.016 20.1618C22.528 20.6738 22.528 21.504 22.016 22.016C21.504 22.528 20.6738 22.528 20.1618 22.016L11.2 13.0542L2.23818 22.016C1.72617 22.528 0.896026 22.528 0.384011 22.016C-0.128003 21.504 -0.128003 20.6738 0.384011 20.1618L9.34583 11.2Z" }))))), index.h("div", { key: 'a9677b63a99182bcd28581e48f4314995787fea9', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '463d7f7658176dd002b6ef8c0107c55188e6f53e' }, (_v = (_u = this.botSettings) === null || _u === void 0 ? void 0 : _u.buttons) === null || _v === void 0 ? void 0 : _v.map(item => (index.h("li", { onClick: () => {
698
698
  this.isMenuOpen = !this.isMenuOpen;
699
699
  this.menuAction = item.action;
700
700
  this.handleSend(item.label);
701
- } }, item.label))))), this.hideInput && (index.h("div", { key: 'd166fa21d0ee4143f145fe5870d8ed6a1e26e2da', class: "chat-header" }, index.h("button", { key: '3d85085fa1bc06b7f2b7d83c0fdb19d71e6d3c8a', onClick: () => {
701
+ } }, item.label))))), this.hideInput && (index.h("div", { key: '2085d15859940d2f438b0129c8fae1b17f63c1d5', class: "chat-header" }, index.h("button", { key: '637f10a587c30112f794d7569898f1d4c1b1f3a9', onClick: () => {
702
702
  this.showWelcomeScreen = true;
703
703
  this.hideInput = false;
704
704
  this.checkHistory();
705
- } }, index.h("svg", { key: '8318859ebfed0322009190eac0e58f96d82cd02e', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '4688abab773bee8d9e7729af60f29713fe0d525e', fill: "#FFFFFF", d: "M9.70711 0.542893C10.0976 0.933418 10.0976 1.56658 9.70711 1.95711L2.41421 9.25L9.70711 16.5429C10.0976 16.9334 10.0976 17.5666 9.70711 17.9571C9.31658 18.3476 8.68342 18.3476 8.29289 17.9571L0.292893 9.95711C0.105357 9.76957 -4.04995e-07 9.51522 -3.93402e-07 9.25C-3.81809e-07 8.98478 0.105357 8.73043 0.292893 8.54289L8.29289 0.542893C8.68342 0.152369 9.31658 0.152369 9.70711 0.542893Z", "clip-rule": "evenodd", "fill-rule": "evenodd" }))), index.h("span", { key: 'f37121db15f0fc8984a54d3f2799deeea44cdfa4', class: "header-title" }, "Conversation History"))), index.h("div", { key: 'fc22fde049397618a1b5ba8963712efbeecddde1', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: 'a5d7cba95eeeeaf5756586b992f4f1009ac4c507', welcomeMessage: (_x = (_w = this.botSettings) === null || _w === void 0 ? void 0 : _w.welcome) === null || _x === void 0 ? void 0 : _x.message, buttonsList: (_z = (_y = this.botSettings) === null || _y === void 0 ? void 0 : _y.welcome) === null || _z === void 0 ? void 0 : _z.buttons, welcomelogo: (_1 = (_0 = this.botSettings) === null || _0 === void 0 ? void 0 : _0.welcome) === null || _1 === void 0 ? void 0 : _1.image })), this.showHistory && this.conversationHistory.length > 0 && this.hideInput && (index.h("chatbot-history", { key: '26d4fb36aaf5f62afe511a5a2f4a31214f318c8c', chatList: this.conversationHistory, botName: (_2 = this.botSettings) === null || _2 === void 0 ? void 0 : _2.botName })), !this.showWelcomeScreen && this.messages.length > 0 && index.h("p", { key: 'cfdda3439616f6f637be2a60af3cc43d5b8675be', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
705
+ } }, index.h("svg", { key: '0a137f333ff96220c7f18f068a34a2f4bb4dc344', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: 'e1a51577489f2bd1cfc00437a7c4c8748102f280', fill: "#FFFFFF", d: "M9.70711 0.542893C10.0976 0.933418 10.0976 1.56658 9.70711 1.95711L2.41421 9.25L9.70711 16.5429C10.0976 16.9334 10.0976 17.5666 9.70711 17.9571C9.31658 18.3476 8.68342 18.3476 8.29289 17.9571L0.292893 9.95711C0.105357 9.76957 -4.04995e-07 9.51522 -3.93402e-07 9.25C-3.81809e-07 8.98478 0.105357 8.73043 0.292893 8.54289L8.29289 0.542893C8.68342 0.152369 9.31658 0.152369 9.70711 0.542893Z", "clip-rule": "evenodd", "fill-rule": "evenodd" }))), index.h("span", { key: '32b10dbdca392183dc7a698139f7fc400046f67d', class: "header-title" }, "Conversation History"))), index.h("div", { key: '409bf2aee5509b8afd966d9e0a42214137542a98', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: 'a057f01e211ebaa38747fa86ffea695dadf6154a', welcomeMessage: (_x = (_w = this.botSettings) === null || _w === void 0 ? void 0 : _w.welcome) === null || _x === void 0 ? void 0 : _x.message, buttonsList: (_z = (_y = this.botSettings) === null || _y === void 0 ? void 0 : _y.welcome) === null || _z === void 0 ? void 0 : _z.buttons, welcomelogo: (_1 = (_0 = this.botSettings) === null || _0 === void 0 ? void 0 : _0.welcome) === null || _1 === void 0 ? void 0 : _1.image })), this.showHistory && this.conversationHistory.length > 0 && this.hideInput && (index.h("chatbot-history", { key: '32ddf71396cb43d4ffdf5bbca23f47d313abc622', chatList: this.conversationHistory, botName: (_2 = this.botSettings) === null || _2 === void 0 ? void 0 : _2.botName })), !this.showWelcomeScreen && this.messages.length > 0 && index.h("p", { key: 'b1c06bbfa50a97be7a63026a83f104431bf7b459', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
706
706
  this.messages.length > 0 &&
707
707
  this.messages.map(msg => {
708
708
  var _a, _b, _c;
@@ -710,7 +710,7 @@ const Ai12zBot = class {
710
710
  _c.map(img => {
711
711
  return index.h("img", { src: img, class: "thumbnail", alt: "thumbnail" });
712
712
  }), !msg.isUser && msg.text === "" && (index.h("svg", { class: "animate-spin h-5 w-5 text-gray-400", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", id: "spinner" }, index.h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", "stroke-width": "4" }), index.h("path", { class: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })))), index.h("span", { class: "message-timestamp" }, msg.timestamp)))));
713
- })), index.h("div", { key: 'a4d92c6e981394a183e81e426b68277bd4971e62', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: '43c209b2a6987c6a5f6949f6cb950cd008eb4225', class: "chat-footer" }, this.messages.length === 0 && (index.h("div", { key: '1e02dbf08ea4267d040442bfa19daa9d3e9b268a', class: "custom-privacy" }, index.h("slot", { key: '98a8362490c3deaec589c11e9777a5a114e74a8d', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: 'a8cb213fe64e06ad1155a9c717f7805516f1e424', class: "follow-up" }, index.h("input", { key: 'e4908b2a14fb907f186f36120a9e5dba60fe646f', ref: el => (this.followUpElem = el), type: "checkbox", name: "followUp", id: "followUp", defaultChecked: true, class: "follow-up-input", onChange: ev => this.handleFollowUp(ev) }), index.h("label", { key: '1310f3b8822b387c4dc57c5efc387ad913382996', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: '0bf8bbe18f559979ee24b1467dc9003580c507be', onClick: () => this.followUpElem.click(), class: "custom-svg-checkbox\n peer-checked:block text-white", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { key: 'b0812d5684019e24583e68045fc6042bc1f202c0', points: "20 6 9 17 4 12" })))), index.h("div", { key: '03e774c58bc74ffeb39da1a8d80effdd1ddc7f3a', style: { display: "flex" } }, index.h("textarea", { key: 'ac19e4f9189f1a42a5bd46d964b64f9874ce6396', rows: this.rowCount, placeholder: (_5 = (_4 = this.botSettings) === null || _4 === void 0 ? void 0 : _4.botPlaceholderText) !== null && _5 !== void 0 ? _5 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight }), this.botSettings.imageUpload && (index.h("div", { key: '7c2eb89692327e9e13190abeaaf462c0edda4a96', class: "custom-attachment" }, index.h("input", { key: '48390916c46de3aec4af5a8c1533abceb622975b', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "image-upload__input", onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) }), index.h("svg", { key: '593f59d4a4c4c7082e54f6babcc2833723186369', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'b1a3537e05a2d559f95fa097efccc0f79143f685', fill: "#687882", "fill-rule": "evenodd", d: "M8.078 16a.71.71 0 0 1-.513-.222.784.784 0 0 1 0-1.075l7.53-7.879c.562-.587.871-1.368.871-2.199 0-.83-.31-1.611-.87-2.197a2.883 2.883 0 0 0-4.204 0l-8.735 9.139c-.493.516-.73 1.012-.703 1.476.026.452.298.801.46.968.27.284.563.402.892.358.413-.054.888-.35 1.375-.86l6.854-7.172a.703.703 0 0 1 1.026 0 .784.784 0 0 1 0 1.074l-6.853 7.172c-.728.761-1.475 1.196-2.222 1.293-.783.102-1.509-.172-2.1-.79-.528-.553-.841-1.246-.881-1.952-.053-.917.326-1.805 1.125-2.64l8.735-9.14a4.292 4.292 0 0 1 6.257 0 4.706 4.706 0 0 1 1.296 3.271c0 1.236-.461 2.4-1.296 3.274l-7.53 7.879a.71.71 0 0 1-.514.222z" })))), index.h("button", { key: '7085079dca222acb7f1112d78f0bd60d3ea3b017', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: '6285c9667e2c879d539cff99eb99d343a690c979', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: '42ffd4e4fc65fbc1072c5ad0275414354341ebfc', fill: "#687882", "fill-rule": "evenodd", stroke: "#687882", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M1 1l2.166 5.39 8.5 1.564-8.5 1.666L1 15l16-7z" }))))))))));
713
+ })), index.h("div", { key: '536a25738305040278ba43d938a73e8cd3222b8b', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: '45372c79f111cfb7efbecfe03152c39f97881abe', class: "chat-footer" }, this.messages.length === 0 && (index.h("div", { key: 'd3837d7b9107ac84559a4a3a70ca3513a7ab6106', class: "custom-privacy" }, index.h("slot", { key: '2223b871c6f7599eaaf05f8389fb98eb85f1549f', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: '939a31e6ece87bf69b287c5808981043fa7cf19b', class: "follow-up" }, index.h("input", { key: '153ef7232a6b4d59bedd0a943f22d46e26142d01', ref: el => (this.followUpElem = el), type: "checkbox", name: "followUp", id: "followUp", defaultChecked: true, class: "follow-up-input", onChange: ev => this.handleFollowUp(ev) }), index.h("label", { key: 'af920529c2c451dc112a5d093054a3b10f447f60', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: '7c6f4e875e8df39ada6c3d3e9c9e2fbedfd259a5', onClick: () => this.followUpElem.click(), class: "custom-svg-checkbox\n peer-checked:block text-white", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { key: '01046a1274a82130e718964ff81fdc0ed736cf1f', points: "20 6 9 17 4 12" })))), index.h("div", { key: '934039f9afce1cf8e51eb8b14a6a023e2dfae46c', style: { display: "flex" } }, index.h("textarea", { key: 'a7d2bc93b1faef92a7e4f75d352a4c48c8e396df', rows: this.rowCount, placeholder: (_5 = (_4 = this.botSettings) === null || _4 === void 0 ? void 0 : _4.botPlaceholderText) !== null && _5 !== void 0 ? _5 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight }), this.botSettings.imageUpload && (index.h("div", { key: '21eff255f32118d9c407017ef00930ad501360d8', class: "custom-attachment" }, index.h("input", { key: '820ccbafa26cce5d8787a5f7abb575fb6ec813dc', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "image-upload__input", onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) }), index.h("svg", { key: 'd5990aee7b1710ab6b327ed169303d8fa05c4f59', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: '91090a85fc6cf2e3f1c7db10238c289bf050f3c1', fill: "#687882", "fill-rule": "evenodd", d: "M8.078 16a.71.71 0 0 1-.513-.222.784.784 0 0 1 0-1.075l7.53-7.879c.562-.587.871-1.368.871-2.199 0-.83-.31-1.611-.87-2.197a2.883 2.883 0 0 0-4.204 0l-8.735 9.139c-.493.516-.73 1.012-.703 1.476.026.452.298.801.46.968.27.284.563.402.892.358.413-.054.888-.35 1.375-.86l6.854-7.172a.703.703 0 0 1 1.026 0 .784.784 0 0 1 0 1.074l-6.853 7.172c-.728.761-1.475 1.196-2.222 1.293-.783.102-1.509-.172-2.1-.79-.528-.553-.841-1.246-.881-1.952-.053-.917.326-1.805 1.125-2.64l8.735-9.14a4.292 4.292 0 0 1 6.257 0 4.706 4.706 0 0 1 1.296 3.271c0 1.236-.461 2.4-1.296 3.274l-7.53 7.879a.71.71 0 0 1-.514.222z" })))), index.h("button", { key: '873e048c55f5f3ad0f0ac7f34f39dd8ca25104ff', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: 'a1c00737f8f8b11ec73e5528b2100544e461aeb5', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: 'fd57766be760b227b30710ae3be72c86b74f73f1', fill: "#687882", "fill-rule": "evenodd", stroke: "#687882", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M1 1l2.166 5.39 8.5 1.564-8.5 1.666L1 15l16-7z" }))))))))));
714
714
  }
715
715
  get el() { return index.getElement(this); }
716
716
  static get watchers() { return {
@@ -904,7 +904,7 @@ const Ai12zCta = class {
904
904
  this.isSubmitted = false;
905
905
  };
906
906
  this.showModal = false;
907
- this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-7eb3dd6c.js', document.baseURI).href));
907
+ this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-f9f94753.js', document.baseURI).href));
908
908
  this.isCta = false;
909
909
  this.formData = { search: "" };
910
910
  this.searchResults = [];
@@ -1167,4 +1167,4 @@ exports.Ai12zBot = Ai12zBot;
1167
1167
  exports.Ai12zCta = Ai12zCta;
1168
1168
  exports.SearchResult = SearchResult;
1169
1169
 
1170
- //# sourceMappingURL=ai12z-cta-7eb3dd6c.js.map
1170
+ //# sourceMappingURL=ai12z-cta-f9f94753.js.map