ai12z 2.0.13 → 2.0.14

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const ai12zCta = require('./ai12z-cta-4a30aa57.js');
5
+ const ai12zCta = require('./ai12z-cta-1cde6caf.js');
6
6
  const index = require('./index-171f7ecf.js');
7
7
  const utils$1 = require('./utils-e71f939d.js');
8
8
 
@@ -182,7 +182,7 @@ const Ai12zBot = class {
182
182
  this.rowCount = 1;
183
183
  }
184
184
  };
185
- this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-4a30aa57.js', document.baseURI).href));
185
+ this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-1cde6caf.js', document.baseURI).href));
186
186
  this.dataKey = undefined;
187
187
  this.dataMode = undefined;
188
188
  this.configId = undefined;
@@ -354,10 +354,14 @@ const Ai12zBot = class {
354
354
  this.socket.off("response");
355
355
  this.socket.off("end_response");
356
356
  // console.log("currentDomId changed")
357
- if (this.questionCounter <= this.botSettings.maxQuestion) {
357
+ // console.log("questionCounter", this.botSettings.maxQuestion)
358
+ if (this.botSettings.maxQuestion === undefined || this.botSettings.maxQuestion === 0) {
359
+ this.botSettings.maxQuestion = 0;
360
+ this.handleBotMessages();
361
+ }
362
+ else if (this.questionCounter <= this.botSettings.maxQuestion) {
358
363
  this.handleBotMessages();
359
364
  }
360
- // this.handleBotMessages()
361
365
  }
362
366
  generateMessage() {
363
367
  return {
@@ -737,26 +741,26 @@ const Ai12zBot = class {
737
741
  width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
738
742
  height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
739
743
  };
740
- return (index.h("div", { key: 'ee781efbff4247b8a21cb654e4ef0344334935cb' }, index.h("div", { key: 'fc149fc8dbece72a6491261465879006c014920e', class: {
744
+ return (index.h("div", { key: '71d35538417b5440c700a3c2702aa9f1ea947490' }, index.h("div", { key: '4565aab18d81809aa7eea4a33306789f406e74cf', class: {
741
745
  "right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
742
746
  "left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
743
747
  "custom-floating-icon ": this.isBot,
744
748
  "hide-chatbot": this.isChatOpen,
745
- }, 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: '641abf32f0a9392b61d818d4da3bd362d1ad55a2', 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: 'b63370f95d012b97ba32982d9b9dcd93818625ca', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: '2f6668ceb7c3dbd7dc3f49c768b7c73038aa8950', class: {
749
+ }, 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: '4f1f3a383d85d486ff7f06ef433541ff1c0931ae', 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: 'e0df075649303a47af780b08b0061d2e6154a5e4', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: 'bb9dc42044aa05c689305ed18d978da4de2d3d8b', class: {
746
750
  "chat-window": true,
747
751
  "chat-window-open": this.isChatOpen,
748
752
  "chat-window-close": !this.isChatOpen,
749
753
  "chat-right": ((_m = this.botSettings) === null || _m === void 0 ? void 0 : _m.botPosition) === "right",
750
754
  "chat-left": ((_o = this.botSettings) === null || _o === void 0 ? void 0 : _o.botPosition) === "left",
751
- }, style: style }, !this.hideInput && (index.h("div", { key: '68a80618837b682dd104909fb3d561679e024433', 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: '0c07e109e907d6a1c4f6b2f4a2153435b0d7951f', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '0ea075dd4c68ad658a3f8130b2721b232097ffd8', 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: 'd9c9e0da6e4602e5308162443bb3754e1d59f03d', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: 'a056e9ae597345bfc88fab591b98246434bf815f', onClick: () => this.loadConversation() }, index.h("svg", { key: 'abbb03eb3af80c7d813a320ebf5bfe83c9af18c5', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: 'ae3f1f5c094aec3694b191775d5cf8b5e5843720', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: 'f2754fa367786b3096cd73c2dc6bf611aa378015', 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: '1ff95e5fc35cae7240e33c0206ad7600db2c21da', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'd0065edebbb2d06a65dc13a92f58ae6c9e56120f', 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: '57b7f0a0c3c3214114e6272a6e092c57b92a97de', 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: 'a127dbb7e0f46f6f6e6004bf226a41c9cc179aed', 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: 'bcd5c806a891698ea502d56d6989293b2a61137f', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: 'faeffd01841a4020b017848517f305c0b0a6a5bf', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: 'b07c6bf8584a54631347e1b6a0a44d09fa404719', "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: 'a6839a3b580eea582c96e6df859603bce45ef57b', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '6bbd9075ceb188e24b737d0cc1ef13266aada865' }, (_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: () => {
755
+ }, style: style }, !this.hideInput && (index.h("div", { key: '2504320ea26c91b1eaacb82af46d9a6ebc04e02b', 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: '562929d8d747c17c972b493adda9f3e088d8e501', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: 'b6042552918f4f308f8138b3a7e70dd72c715da7', 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: '75c3d6c3e3ccb4bb56715b268d635ae6ce71436d', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: '92f25d91c948b099fe0bdbf87c2666d20c77c649', onClick: () => this.loadConversation() }, index.h("svg", { key: 'ee0cd5d6b4d497058662a3d8c98a187387e3a7a5', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '0890f7d91816c6bca4e5196a3f36bf125c1efbf2', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: '89563d07884ce7d0a37f8aa15693cad541b6d37b', 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: '5cf3b93ea9afff4e114124783d6b71f1d80a3324', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: '09620f8f5c49e8944d0384f0a47ddb2575a10776', 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: '125cb34f68e273b8966b1785584426834fb5c6f7', 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: 'fd4d534531bcefee07caac5d64f0b188fc22d3c5', 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: '8a4e5d81f3aed18c104ebf96f39e77fb4eade19b', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '44e937b76b0bb3c315c2d5ba134ef712432f5bdd', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: '775cc9b646820631f181be02b6b25fd5849b4573', "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: '7926603a4b1293c03b6f5ef4227ffbafa2d2cb5b', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '13b92ed29f2d78e4a90a0107902b8846c2ce7c8f' }, (_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: () => {
752
756
  this.isMenuOpen = !this.isMenuOpen;
753
757
  this.menuAction = item.action;
754
758
  this.handleSend(item.label);
755
- } }, item.label))))), this.hideInput && (index.h("div", { key: '3ed38043073f41d6c371c493851f6d70d68a3cc8', class: "chat-header" }, index.h("button", { key: '4a4d03408e7315f6fdafe62cb17882b1b9e2f6fc', onClick: () => {
759
+ } }, item.label))))), this.hideInput && (index.h("div", { key: 'abb24086c5fc218c9d47663d871772ffde4b9ec8', class: "chat-header" }, index.h("button", { key: 'ec2106cef28c03d106e08517331ef407ae1a84d2', onClick: () => {
756
760
  this.showWelcomeScreen = true;
757
761
  this.hideInput = false;
758
762
  this.checkHistory();
759
- } }, index.h("svg", { key: '7abc0221a1042997077c323bd415db7c03a6bd45', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '4fcf2441133cf2afa4307a83b3d32d60770aa7fe', 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: '867a989aed2afd3876d59f79a7c6854022836606', class: "header-title" }, "Conversation History"))), index.h("div", { key: 'd60dd638dbc9905512b6ac87ff5ae4051fb5d560', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: 'c6f70c35168beecb868e9a4974d8b73a1cf894a4', 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: 'b1992490bf897d0640dca54e49edfd78cd3d0740', 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: 'fc5b35a45e61d81edde6dbd446d45d6cb9b0f67a', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
763
+ } }, index.h("svg", { key: 'b45eda7282b9b2a1346a09f5e625589098159e6f', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '61d2f0619551a8d69eb2e9d1546c1f61a400e971', 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: '586643a23836801f4132cf3e448dfc7321c03ea0', class: "header-title" }, "Conversation History"))), index.h("div", { key: '3fc7a26d53cddfd0ad995913060adb574c88f31a', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '26fb157199e39aea3abf469b591117e7d55a5cf1', 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: '93f61057008bab88e6b7b8309178e703db937e71', 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: 'f536c0a37dc5727616debb01c9d9d9921b8887fe', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
760
764
  this.messages.length > 0 &&
761
765
  this.messages.map(msg => {
762
766
  var _a, _b, _c;
@@ -764,7 +768,7 @@ const Ai12zBot = class {
764
768
  _c.map(img => {
765
769
  return index.h("img", { src: img, class: "thumbnail", alt: "thumbnail" });
766
770
  }), !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)))));
767
- })), index.h("div", { key: 'defcfd766998ac54931dcd62021a4aeaa751aa51', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: 'b0cf1997623c7aac42b679ee22ff158532aeb445', class: "chat-footer" }, this.messages.length === 0 && (index.h("div", { key: '8ac520e0c9adf5a6a6d40f2a4961c4a115b556b6', class: "custom-privacy" }, index.h("slot", { key: '674411931e7abea5fafc72e627f098bd208e66fe', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: 'b7eacb2b01b5000d85868e6541be36fee903a4d8', class: "follow-up" }, index.h("input", { key: '2d675b52c7fe23f57e4f9faba67cf94455603a2e', 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: 'b34810f1bb7f12166bb31f11bc09beb97043f4a2', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: '7f06aad5081d66022bfd732f7fda5aec28444632', 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: '540be2a267052693802faad1eabbfcb260330207', points: "20 6 9 17 4 12" })))), index.h("div", { key: '33ff3f036181ee0b93a87be10b5128e37c61d82b', style: { display: "flex" } }, index.h("textarea", { key: 'f5ff20d63c4656f0932d798e4d0758bf791c02a7', 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: 'a0fd6f228342297496e14434a2737d3b0bccea55', class: "custom-attachment" }, index.h("input", { key: 'bdd9ae5b081f2389d82b9256d033d4c3d6d0e89b', 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: '58f6c2b1df0f4ebdde8e3f30abb9fa635f1becd9', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'd9b3c80281b4ce299bc883013f0eea161253eee9', 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: '0618e5e55446cc2545c10cf8387f30c17b1b1409', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: 'f9b3a626e6562baf8fb23d1f73d1693157e7c784', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: 'bba62057b37d678b1d4cfee2fc339ffc2d8afbfc', 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" }))))))))));
771
+ })), index.h("div", { key: '71a0f4d20ad2bc9624f73b5ab301422885d2732e', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: 'b33f4ceb088f0cf165429a15ce39bba8eaf55881', class: "chat-footer" }, this.messages.length === 0 && (index.h("div", { key: 'd748ad44a28bf86b847a178d4fc8ef406dde8fe5', class: "custom-privacy" }, index.h("slot", { key: '561a51c80b2f634e272e9a794199a44e74c0f9be', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: 'fc971870dbdd43f01cc9834991ee7ec39dd7911f', class: "follow-up" }, index.h("input", { key: 'f6f9d4889dca67428b7b7ca57a501fa45e1f2694', 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: '26f7862bd7ac617acf09935aef0d2ddc3ddc19af', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: '82a5a41993971b56e369c56bd50828b9d54064fa', 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: '6b15d09196e1b43b329c25cde0b7dd8e797989b0', points: "20 6 9 17 4 12" })))), index.h("div", { key: '87908d26dd7705595af90f8f938c1717ce6bfda2', style: { display: "flex" } }, index.h("textarea", { key: 'f1e4f4dd270918c1fcc27bd8ff78e16aa8412b03', 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: '31afc56382eb2232f10ebde2d703c3831713eacb', class: "custom-attachment" }, index.h("input", { key: 'c40d2c19e38e9e58d6f628ad15cb6857648aea3e', 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: 'bb77cbf19035db64f45e1cdf67598f8e18f37355', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: '942e91616b4339a3bba646f5ce34fc6566b7a24b', 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: '6185431ac4dc5d0d5d750b4a95b02ddb29af0813', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: '6197e4a0c679fabfc38562950e44465549cf5ca0', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: 'b28ade30e45550d2d1bdcb23e732e1d0ed4e49c9', 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" }))))))))));
768
772
  }
769
773
  get el() { return index.getElement(this); }
770
774
  static get watchers() { return {
@@ -974,7 +978,7 @@ const Ai12zCta = class {
974
978
  this.showModal = false;
975
979
  this.timer = undefined;
976
980
  this.questionCounter = 0;
977
- this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-4a30aa57.js', document.baseURI).href));
981
+ this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-1cde6caf.js', document.baseURI).href));
978
982
  this.isCta = false;
979
983
  this.formData = { search: "" };
980
984
  this.searchResults = [];
@@ -1253,4 +1257,4 @@ exports.Ai12zBot = Ai12zBot;
1253
1257
  exports.Ai12zCta = Ai12zCta;
1254
1258
  exports.SearchResult = SearchResult;
1255
1259
 
1256
- //# sourceMappingURL=ai12z-cta-4a30aa57.js.map
1260
+ //# sourceMappingURL=ai12z-cta-1cde6caf.js.map