ai12z 2.0.7 → 2.0.8
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.
- package/dist/cjs/ai12z-bot_10.cjs.entry.js +3 -3
- package/dist/cjs/ai12z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/{ai12z-cta-7eb3dd6c.js → ai12z-cta-92484e63.js} +13 -13
- package/dist/cjs/ai12z-cta-92484e63.js.map +1 -0
- package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js → ai12z-knowledge-box-c33465fe.js} +3 -3
- package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js.map → ai12z-knowledge-box-c33465fe.js.map} +1 -1
- package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +3 -3
- package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
- package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/{index-f098743c.js → index-171f7ecf.js} +2 -2
- package/dist/cjs/index-171f7ecf.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/library.cjs.js +1 -1
- package/dist/cjs/list-data.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-f0adbba9.js → utils-c9b045e3.js} +2 -2
- package/dist/cjs/{utils-f0adbba9.js.map → utils-c9b045e3.js.map} +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +8 -8
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/collection/utils/logger.js +15 -1
- package/dist/collection/utils/logger.js.map +1 -1
- package/dist/esm/ai12z-bot_10.entry.js +4 -4
- package/dist/esm/ai12z-carousel.entry.js +1 -1
- package/dist/esm/{ai12z-cta-e143bfc1.js → ai12z-cta-2b941e5b.js} +11 -11
- package/dist/esm/ai12z-cta-2b941e5b.js.map +1 -0
- package/dist/esm/{ai12z-knowledge-box-704c29af.js → ai12z-knowledge-box-aceba174.js} +3 -3
- package/dist/esm/{ai12z-knowledge-box-704c29af.js.map → ai12z-knowledge-box-aceba174.js.map} +1 -1
- package/dist/esm/ai12z-knowledge-box.entry.js +3 -3
- package/dist/esm/ai12z-spinner.entry.js +1 -1
- package/dist/esm/dynamic-form.entry.js +1 -1
- package/dist/esm/{index-39265a7d.js → index-9f7965fd.js} +2 -2
- package/dist/esm/index-9f7965fd.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/library.js +2 -2
- package/dist/esm/list-data.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-96bbd030.js → utils-a4deff47.js} +2 -2
- package/dist/esm/{utils-96bbd030.js.map → utils-a4deff47.js.map} +1 -1
- package/dist/library/index.esm.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/p-682c54c0.js +3 -0
- package/dist/library/p-682c54c0.js.map +1 -0
- package/dist/library/{p-85691232.entry.js → p-7673db22.entry.js} +2 -2
- package/dist/library/{p-4fc9c2e8.js → p-973b27e2.js} +2 -2
- package/dist/library/{p-eeec7af3.js → p-9c383265.js} +2 -2
- package/dist/library/{p-eeec7af3.js.map → p-9c383265.js.map} +1 -1
- package/dist/library/{p-cfcf9f4d.js → p-b5fa76af.js} +2 -2
- package/dist/library/{p-c42b9950.entry.js → p-de0be744.entry.js} +2 -2
- package/dist/library/p-dea64110.entry.js +2 -0
- package/dist/library/{p-233361ad.entry.js → p-e81a8495.entry.js} +2 -2
- package/dist/library/{p-8dc9633d.entry.js → p-ed972184.entry.js} +2 -2
- package/dist/library/{p-b46a067b.entry.js → p-ee0c4132.entry.js} +2 -2
- package/package.json +2 -2
- package/dist/cjs/ai12z-cta-7eb3dd6c.js.map +0 -1
- package/dist/cjs/index-f098743c.js.map +0 -1
- package/dist/esm/ai12z-cta-e143bfc1.js.map +0 -1
- package/dist/esm/index-39265a7d.js.map +0 -1
- package/dist/library/p-b48f3cde.js +0 -3
- package/dist/library/p-b48f3cde.js.map +0 -1
- package/dist/library/p-e6aa7d00.entry.js +0 -2
- /package/dist/library/{p-85691232.entry.js.map → p-7673db22.entry.js.map} +0 -0
- /package/dist/library/{p-4fc9c2e8.js.map → p-973b27e2.js.map} +0 -0
- /package/dist/library/{p-cfcf9f4d.js.map → p-b5fa76af.js.map} +0 -0
- /package/dist/library/{p-c42b9950.entry.js.map → p-de0be744.entry.js.map} +0 -0
- /package/dist/library/{p-e6aa7d00.entry.js.map → p-dea64110.entry.js.map} +0 -0
- /package/dist/library/{p-233361ad.entry.js.map → p-e81a8495.entry.js.map} +0 -0
- /package/dist/library/{p-8dc9633d.entry.js.map → p-ed972184.entry.js.map} +0 -0
- /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-
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const utils$1 = require('./utils-
|
|
5
|
+
const ai12zCta = require('./ai12z-cta-92484e63.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-
|
|
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-
|
|
4
|
-
const utils = require('./utils-
|
|
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;
|
|
@@ -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-
|
|
174
|
+
this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-92484e63.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: '
|
|
686
|
+
return (index.h("div", { key: 'e203cff051f2fa637b4dea3b74e91567476916f1' }, index.h("div", { key: '0060110723f316ac85ea2e822e4e9fc60a9ac099', 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: '
|
|
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: '2b34cc1ef63ea7657975c9e8f297523d06e8f2c7', 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: 'b9adaf06beabeae5288db51ebfc6aa1ffca72850', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: 'eb8487c7ab9df9f7e1cd1b4c6081b2728e5f46a2', 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: '
|
|
697
|
+
}, style: style }, !this.hideInput && (index.h("div", { key: 'cc145ee117efff71b1ab6d194e1dd1614d200208', 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: '8604e94f8a90cf4957392747cfac6288d8d7a6c5', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: 'bf233682fbf60e0d0275d0eb0856f74c33368ec4', 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: 'd49e3c1aa4930bb9a607e13b7188da646d091a03', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: '88f0dffc307ee3b4f6a699b8b9fa65bfb59dfb33', onClick: () => this.loadConversation() }, index.h("svg", { key: '4bec42dc70f1f446aa0e2effb43548c6cfe5a631', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '7dd04e7a811ee086ba7bd556c50950c6226e9ea7', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: 'bab30ebb72c626ed805a63da1e65c8575a068a81', 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: 'f4c70a5d3f1f355d5ae3d172b08f7c8e3122155f', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'db501702b415e7a57729b5ef7b057d144d454d27', 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: '4e0d2aa370dfa4ecdc372f8ddf66de81de799251', 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: 'b826ebcff4c796110914a233b859325822c8af97', 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: '47c6fd0add3e92994cd6c027b4a45e51cfa8ea3a', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '024b7de7d04ac3d15385f6484663a87f653c7b3f', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: '22d428253ee54170437a4c4e7b7402d3163526a2', "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: 'e9b7cf5546f2a29c30f3cbd5573b39046a02125e', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '20c8c7428e8e013f779300628be71a6ea791a28f' }, (_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: '
|
|
701
|
+
} }, item.label))))), this.hideInput && (index.h("div", { key: 'f5dba3aeca8e2cd63fb3f4876ad006e2e2901277', class: "chat-header" }, index.h("button", { key: '3657db986f568dc700f79bf0a958a594737d863c', onClick: () => {
|
|
702
702
|
this.showWelcomeScreen = true;
|
|
703
703
|
this.hideInput = false;
|
|
704
704
|
this.checkHistory();
|
|
705
|
-
} }, index.h("svg", { key: '
|
|
705
|
+
} }, index.h("svg", { key: 'ecd16f8fd6f21b2b0a8195121adabf356217fab9', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '625fb4fb39b7818eacd0a10e3bdefafdbee6ce38', 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: '5547409e34ef1b74120466af8a201f47852803a5', class: "header-title" }, "Conversation History"))), index.h("div", { key: 'bda3338fc7a140c88b27735d9db8fe9e934ef03a', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '75051ec276ba4251a5549d702858a292697fd410', 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: '9db352c048804c4dba59301e61f028cbea101d3c', 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: 'a068df0252edadf97fc20222be1acc38f752d342', 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: '
|
|
713
|
+
})), index.h("div", { key: '2f00cc2e06861c20ce468146ca9da65cb4a02241', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: '896d3634aa68465dee10ed5416e0046d6ba5d2e6', class: "chat-footer" }, this.messages.length === 0 && (index.h("div", { key: 'ced0cc3718ca83f3667a4692215e78e16e5250c1', class: "custom-privacy" }, index.h("slot", { key: 'a86fbfceadd1096cf57f6ca8e465c1b29ac92ee6', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: '9a36a3a9c8388292219432489df79abacb94a0dd', class: "follow-up" }, index.h("input", { key: 'fb02065c2f4246d583a034d50dddf5cb68c6ecef', 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: 'b17fdc6072e821328c80e6dc4b32cc33b9100df1', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: 'aa2e080da7394efb19d8d9b6cf23d732ae1f8023', 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: '0dcd7ba1405e93d6450d4fb7755bdb57b017af5d', points: "20 6 9 17 4 12" })))), index.h("div", { key: '522b0d3681a0a26f4c7fc65f72d0a0176acd74ab', style: { display: "flex" } }, index.h("textarea", { key: '04e8f923c4ff9eee252a05cceb7013c6c4ba83dd', 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: '54b01d06596e8c00ef02dca5d988964d8f9aae19', class: "custom-attachment" }, index.h("input", { key: 'c872a67300ce5e1b4bd6a551adf6b75f1b943aff', 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: '1b40497621a3f30a04055b8fd354d002ad919484', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'a27c86bf50d1f300c19ff2225cbb19a78bab36d8', 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: '323f81a8c147e2070ca40919aa63198500039b4d', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: '931be4df1c157f47b4a670d87469289d2c39db18', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: '00c3efefd7080b3f520e1c5753c8efed7d95e664', 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-
|
|
907
|
+
this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-cta-92484e63.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-
|
|
1170
|
+
//# sourceMappingURL=ai12z-cta-92484e63.js.map
|