ai12z 2.0.16 → 2.0.17
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_11.cjs.entry.js +13 -13
- package/dist/cjs/{ai12z-knowledge-box-e6eba5d4.js → ai12z-knowledge-box-8b326d6f.js} +12 -12
- package/dist/cjs/ai12z-knowledge-box-8b326d6f.js.map +1 -0
- package/dist/cjs/ai12z-mic.cjs.entry.js +5 -5
- package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
- package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +10 -10
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/collection/components/ai12z-bot/bot-popover.js +1 -1
- package/dist/collection/components/ai12z-bot/bot-welcome.js +1 -1
- package/dist/collection/components/ai12z-bot/chat-history.js +1 -1
- package/dist/collection/components/ai12z-cta/components/Chat.js +2 -2
- package/dist/collection/components/ai12z-cta/components/DynamicForm.js +1 -1
- package/dist/collection/components/ai12z-cta/components/audiorecorder/audio-recorder.js +1 -1
- package/dist/collection/components/ai12z-cta/components/voicetotext/ai12z-mic.js +5 -5
- package/dist/collection/components/ai12z-knowledge-box/ai12z-knowledge-box.js +1 -1
- package/dist/collection/components/input/Input.js +6 -6
- package/dist/collection/components/spinner/Spinner.js +1 -1
- package/dist/esm/ai12z-bot_11.entry.js +14 -14
- package/dist/esm/{ai12z-knowledge-box-908422d5.js → ai12z-knowledge-box-a4e24ab9.js} +12 -12
- package/dist/esm/ai12z-knowledge-box-a4e24ab9.js.map +1 -0
- package/dist/esm/ai12z-mic.entry.js +5 -5
- package/dist/esm/ai12z-spinner.entry.js +1 -1
- package/dist/esm/dynamic-form.entry.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/{p-651fb454.entry.js → p-00c88923.entry.js} +2 -2
- package/dist/library/{p-c177b22b.js → p-4c5b1e45.js} +2 -2
- package/dist/library/p-4c5b1e45.js.map +1 -0
- package/dist/library/{p-cca0ed73.entry.js → p-56e472cb.entry.js} +2 -2
- package/dist/library/{p-e49089fc.entry.js → p-db09bb78.entry.js} +2 -2
- package/dist/library/{p-d1051108.entry.js → p-e591a68a.entry.js} +2 -2
- package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/ai12z-knowledge-box-e6eba5d4.js.map +0 -1
- package/dist/esm/ai12z-knowledge-box-908422d5.js.map +0 -1
- package/dist/library/p-c177b22b.js.map +0 -1
- /package/dist/library/{p-651fb454.entry.js.map → p-00c88923.entry.js.map} +0 -0
- /package/dist/library/{p-cca0ed73.entry.js.map → p-56e472cb.entry.js.map} +0 -0
- /package/dist/library/{p-e49089fc.entry.js.map → p-db09bb78.entry.js.map} +0 -0
- /package/dist/library/{p-d1051108.entry.js.map → p-e591a68a.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const ai12zKnowledgeBox = require('./ai12z-knowledge-box-
|
|
5
|
+
const ai12zKnowledgeBox = require('./ai12z-knowledge-box-8b326d6f.js');
|
|
6
6
|
const index = require('./index-171f7ecf.js');
|
|
7
7
|
|
|
8
8
|
const ai12zCtaCss = ":host{--bg-smoke-light:rgba(0, 0, 0, 0.5);margin-left:20px;font-family:var(--ai12z-search-font-family) var(--ai12z-font-family) !important;font-size:var(--ai12z-search-font-size, var(--ai12z-font-size)) !important}ai12z-category{font-family:var(--ai12z-font-family) !important;font-size:var(--ai12z-search-font-size, var(--ai12z-font-size)) !important}.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 1rem 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;max-width:90ch !important}.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}";
|
|
@@ -63887,7 +63887,7 @@ const MyChat = class {
|
|
|
63887
63887
|
render() {
|
|
63888
63888
|
var _a;
|
|
63889
63889
|
const email = "";
|
|
63890
|
-
return (index.h("ul", { key: '
|
|
63890
|
+
return (index.h("ul", { key: '35521717f90e6e5ddd6e41349ff1ac770ae3ec0b', class: "chat-list" }, (_a = this.chats) === null || _a === void 0 ? void 0 :
|
|
63891
63891
|
_a.map((chat, idx) => {
|
|
63892
63892
|
var _a, _b;
|
|
63893
63893
|
return (index.h("li", { class: {
|
|
@@ -63924,7 +63924,7 @@ const MyChat = class {
|
|
|
63924
63924
|
}
|
|
63925
63925
|
// this.isPlayed = false
|
|
63926
63926
|
} }, index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "icon-md-heavy" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9.5 8.5C8.94772 8.5 8.5 8.94772 8.5 9.5V14.5C8.5 15.0523 8.94772 15.5 9.5 15.5H14.5C15.0523 15.5 15.5 15.0523 15.5 14.5V9.5C15.5 8.94772 15.0523 8.5 14.5 8.5H9.5Z", fill: "currentColor" })))), !this.isPlayed && (index.h("button", { class: "copy-btn", onClick: () => this.speakText(this.removeHtmlTags(chat.clipboard)) }, index.h("svg", { class: "w-6 h-6", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11 4.9099C11 4.47485 10.4828 4.24734 10.1621 4.54132L6.67572 7.7372C6.49129 7.90626 6.25019 8.00005 6 8.00005H4C3.44772 8.00005 3 8.44776 3 9.00005V15C3 15.5523 3.44772 16 4 16H6C6.25019 16 6.49129 16.0938 6.67572 16.2629L10.1621 19.4588C10.4828 19.7527 11 19.5252 11 19.0902V4.9099ZM8.81069 3.06701C10.4142 1.59714 13 2.73463 13 4.9099V19.0902C13 21.2655 10.4142 22.403 8.81069 20.9331L5.61102 18H4C2.34315 18 1 16.6569 1 15V9.00005C1 7.34319 2.34315 6.00005 4 6.00005H5.61102L8.81069 3.06701ZM20.3166 6.35665C20.8019 6.09313 21.409 6.27296 21.6725 6.75833C22.5191 8.3176 22.9996 10.1042 22.9996 12.0001C22.9996 13.8507 22.5418 15.5974 21.7323 17.1302C21.4744 17.6185 20.8695 17.8054 20.3811 17.5475C19.8927 17.2896 19.7059 16.6846 19.9638 16.1962C20.6249 14.9444 20.9996 13.5175 20.9996 12.0001C20.9996 10.4458 20.6064 8.98627 19.9149 7.71262C19.6514 7.22726 19.8312 6.62017 20.3166 6.35665ZM15.7994 7.90049C16.241 7.5688 16.8679 7.65789 17.1995 8.09947C18.0156 9.18593 18.4996 10.5379 18.4996 12.0001C18.4996 13.3127 18.1094 14.5372 17.4385 15.5604C17.1357 16.0222 16.5158 16.1511 16.0539 15.8483C15.5921 15.5455 15.4632 14.9255 15.766 14.4637C16.2298 13.7564 16.4996 12.9113 16.4996 12.0001C16.4996 10.9859 16.1653 10.0526 15.6004 9.30063C15.2687 8.85905 15.3578 8.23218 15.7994 7.90049Z", fill: "currentColor" })))), index.h("button", { class: "copy-btn", onClick: () => this.copyToClipboard(chat.clipboard) }, !this.copied && (index.h("svg", { class: "w-6 h-6", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7 5C7 3.34315 8.34315 2 10 2H19C20.6569 2 22 3.34315 22 5V14C22 15.6569 20.6569 17 19 17H17V19C17 20.6569 15.6569 22 14 22H5C3.34315 22 2 20.6569 2 19V10C2 8.34315 3.34315 7 5 7H7V5ZM9 7H14C15.6569 7 17 8.34315 17 10V15H19C19.5523 15 20 14.5523 20 14V5C20 4.44772 19.5523 4 19 4H10C9.44772 4 9 4.44772 9 5V7ZM5 9C4.44772 9 4 9.44772 4 10V19C4 19.5523 4.44772 20 5 20H14C14.5523 20 15 19.5523 15 19V10C15 9.44772 14.5523 9 14 9H5Z", fill: "currentColor" }))), this.copied && (index.h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "w-6 h-6" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M19.8198 6.19526C20.0601 6.45561 20.0601 6.87772 19.8198 7.13807L9.9736 17.8047C9.73328 18.0651 9.34364 18.0651 9.10332 17.8047L4.18024 12.4714C3.93992 12.2111 3.93992 11.7889 4.18024 11.5286C4.42056 11.2682 4.8102 11.2682 5.05053 11.5286L9.53846 16.3905L18.9495 6.19526C19.1898 5.93491 19.5794 5.93491 19.8198 6.19526Z", fill: "currentColor" })))), index.h("button", { id: `thumbsUp_${chat.thumbsId}`, onClick: () => this.thumbsUp(chat.thumbsId, chat.insightId), class: "chat-thumbs-up" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z" }))), index.h("button", { id: `thumbsDown_${chat.thumbsId}`, onClick: () => this.thumbsDown(chat.thumbsId, chat.insightId), class: "chat-thumbs-up" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" }))), index.h("button", { class: "copy-btn" }, index.h("a", { href: `mailto:${email}?subject=${encodeURIComponent(this.chats[idx - 1].message)}&body=${encodeURIComponent(this.removeHtmlTags(chat.clipboard))}`, target: "_blank" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", "stroke-width": "0.3", class: "w-6 h-6" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.75 5.25L3 6V18L3.75 18.75H20.25L21 18V6L20.25 5.25H3.75ZM4.5 7.6955V17.25H19.5V7.69525L11.9999 14.5136L4.5 7.6955ZM18.3099 6.75H5.68986L11.9999 12.4864L18.3099 6.75Z", fill: "currentColor" }), " "))))))));
|
|
63927
|
-
}), index.h("div", { key: '
|
|
63927
|
+
}), index.h("div", { key: '12aed72f51c2a8fb915fef424608a780b750ef52', class: "scroll-bottom" })));
|
|
63928
63928
|
}
|
|
63929
63929
|
get element() { return index.getElement(this); }
|
|
63930
63930
|
static get watchers() { return {
|
|
@@ -64319,17 +64319,17 @@ const InputForm = class {
|
|
|
64319
64319
|
// </div>
|
|
64320
64320
|
// )}
|
|
64321
64321
|
// </form>
|
|
64322
|
-
index.h("form", { key: '
|
|
64323
|
-
${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}` }, index.h("ul", { key: '
|
|
64322
|
+
index.h("form", { key: '1784b9894047f4c4aebeae79750dd78c26a39200', class: "w-full flex flex-col gap-1.5", onSubmit: this.handleFormSubmit }, index.h("div", { key: 'c17a7418508a120bf24b32e35472594e16698772', class: "flex-1 flex flex-col relative w-full rounded-3xl px-1 bg-gray-600/5 dark:bg-gray-400/5 dark:text-gray-100", dir: "LTR", ref: el => (this.searchFormElem = el) }, this.isImage && (index.h("div", { key: '736c325d1e19f64fd9e59334c960efc2975a0974', class: "mx-1 mt-2.5 mb-1 flex flex-wrap gap-2" }, index.h("div", { key: '4d125336af9fc734fe053ea5d9ff2392728cf6cd', id: "previewContainer", draggable: true }))), index.h("div", { key: 'd71df45ca195eac1c9f374bf8b8cd11d2eecfa13', class: "flex" }, index.h("div", { key: '3e8e12b60e8eab0940ae4000aba350b4085bb084', class: "ml-1 self-end mb-1.5 flex space-x-1" }, this.isImageUpload && !this.hideAllButtons && (index.h("div", { key: '7f44f0cc21060547d33220a18dc7e4fc991b043f', class: "relative inline-block", style: { width: "5%" } }, index.h("button", { key: '8e30cc485b81b47425b292a8517f97a6ce4b7a11', class: "text-blue-500", onClick: this.toggleBox }, index.h("svg", { key: '601f48147dc69436014440d2748efef5effccaa6', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'd3109393179359bf684b36ac4db979efc9ecf71d', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" }))), index.h("div", { key: '5ac03719fa77defbaa02d6aae1d16131271c62da', class: `absolute bottom-12 left-0 w-44 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
|
|
64323
|
+
${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}` }, index.h("ul", { key: '223fa7757fe19f7444569abb8bc0a70a3d09859f', class: "space-y-2" }, index.h("li", { key: 'fb36da8950f173059306abb0ff802aa761b3e804', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
|
|
64324
64324
|
this.uploadElem.click();
|
|
64325
64325
|
this.isOpen = false;
|
|
64326
|
-
} }, index.h("input", { key: '
|
|
64326
|
+
} }, index.h("input", { key: '87d432a2467bd7041cb9921658ee0db0ba302071', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "image-upload__input", onChange: ($event) => {
|
|
64327
64327
|
this.isImage = true;
|
|
64328
64328
|
this.onInputChange($event.target.files);
|
|
64329
|
-
}, ref: el => (this.uploadElem = el) }), index.h("div", { key: '
|
|
64329
|
+
}, ref: el => (this.uploadElem = el) }), index.h("div", { key: 'baeab3ea7efc9d3d486d1bd0af4e7ab4498f494a', class: "mr-1" }, index.h("svg", { key: 'a75d01ec20b6405de52a5786b4cb44fcd2301548', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: 'a844f43f18ec1ffa90675dd7723d293da79262f6', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: '5625ee7824d1133a1be24ef5c8da607a5b25b398' }, "Upload Images"))))))), !this.hideAllButtons && (index.h("div", { key: '7450658107ff18d565450344f2d7e879210fa66e', class: "scrollbar-hidden text-left bg-transparent dark:text-gray-100 outline-none w-full py-2.5 px-1 rounded-xl resize-none h-fit max-h-80 overflow-auto" }, index.h("div", { key: '9f2bcb365efa0b9476c3700fca6f57aa46553e9b', class: "relative w-full min-w-full h-full min-h-fit input-prose" }, index.h("textarea", { key: '95b800a473d2da0c1ea1cbad32fbac136c30b2ec', readOnly: this.submitted, id: "searchInput", ref: el => {
|
|
64330
64330
|
this.searchInputElem = el;
|
|
64331
64331
|
el === null || el === void 0 ? void 0 : el.focus();
|
|
64332
|
-
}, placeholder: this.placeholder, autoComplete: "off", class: "custom-input", value: this.searchInput, rows: 1, onInput: ai12zKnowledgeBox.debounce(e => this.handleInputChange(e), 500), onKeyUp: this.adjustHeight, onKeyDown: this.handleKeyDown, onFocus: () => this.searchFormElem.classList.add("input-focus-color"), onBlur: () => this.searchFormElem.classList.remove("input-focus-color") })))), index.h("div", { key: '
|
|
64332
|
+
}, placeholder: this.placeholder, autoComplete: "off", class: "custom-input", value: this.searchInput, rows: 1, onInput: ai12zKnowledgeBox.debounce(e => this.handleInputChange(e), 500), onKeyUp: this.adjustHeight, onKeyDown: this.handleKeyDown, onFocus: () => this.searchFormElem.classList.add("input-focus-color"), onBlur: () => this.searchFormElem.classList.remove("input-focus-color") })))), index.h("div", { key: '6d83e4da21e1230145004a3c053ebbb1a1469297', class: "self-end mb-1.5 flex space-x-1 mr-1 flex-row", style: { width: this.hideAllButtons ? "100%" : "auto" } }, index.h("div", { key: '8c45dea0aedfd7c708381d289f0b9c565ab74f9d', "aria-label": "Record voice", class: "flex", style: { width: this.hideAllButtons ? "100%" : "auto" } }, this.isEnableMic && (index.h("audio-recorder", { key: 'a71375aef5097caaf5374d229143bb47aa1b6aac', "component-type": "search", onStartRecord: _ev => {
|
|
64333
64333
|
// console.log("test", ev)
|
|
64334
64334
|
this.hideAllButtons = true;
|
|
64335
64335
|
}, onStopRecord: _ev => {
|
|
@@ -64342,7 +64342,7 @@ const InputForm = class {
|
|
|
64342
64342
|
this.searchInputElem.value = ev.detail;
|
|
64343
64343
|
}
|
|
64344
64344
|
}, 1000);
|
|
64345
|
-
}, style: { width: "100%" } }))), " ", !this.hideAllButtons && (index.h("div", { key: '
|
|
64345
|
+
}, style: { width: "100%" } }))), " ", !this.hideAllButtons && (index.h("div", { key: 'ad1abe5bed69c97447295055be96d5fb9ba8709e', class: "flex items-center" }, index.h("div", { key: '268f7c00bbc5a59d0d741664c5512c93f6f19eb4', "aria-label": "Send message", class: "flex" }, index.h("button", { key: '3f9bf167c6495e56abb7489b9ee7485f10c18db1', id: "send-message-button", class: "bg-blue-500 text-white transition rounded-full p-1.5 self-center", type: "submit", disabled: this.submitted, onClick: this.handleAskAI }, index.h("svg", { key: 'c80394048e675f7dce3f30cdadd19e762e3f6812', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, index.h("path", { key: 'd197685bda50e0a39e97b25800748f730396960f', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" }))))))))), index.h("div", { key: '83a1ec9073ec75c38ac9326dab88354536666991', class: "flex" }, this.showErrorMessage && index.h("p", { key: 'ae9c19d0d64ec4e390a82d22b17fec264319fc58', class: "error-msg" }, "You can upload a maximum of 10 images once at a time."), this.isChat && (index.h("div", { key: '2d20ade356a70e2c7f01c8d33da47dfd6ef21dc3', class: "follow-up" }, index.h("input", { key: '79c19693ca4da5624873905e6ca9ecfcafd75c10', 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: '85e0a42dee6cdf74ec2c26fe0155677b1d1c0578', htmlFor: "followUp" }, this.followUpLabel), index.h("svg", { key: 'e45c5da8bdaeb9ac0f73799c0a03339ad92dee36', 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: 'f4399874e34f4b6dd0d4eb8eea7f313ce7db1593', points: "20 6 9 17 4 12" })))))));
|
|
64346
64346
|
}
|
|
64347
64347
|
get el() { return index.getElement(this); }
|
|
64348
64348
|
};
|
|
@@ -66222,7 +66222,7 @@ const AudioRecorder = class {
|
|
|
66222
66222
|
render() {
|
|
66223
66223
|
const minutes = Math.floor(this.time / 60);
|
|
66224
66224
|
const seconds = this.time % 60;
|
|
66225
|
-
return (index.h("div", { key: '
|
|
66225
|
+
return (index.h("div", { key: '24b0e3ea08310cbfcacb7fa658d850a0995120f5', class: "flex w-full" }, this.isRecording && (index.h("div", { key: 'ef547fc8ccac6417558e94651208cb041b6b11a0', class: `relative flex items-center w-full max-w-3xl rounded-full` }, this.isRecording && (index.h("button", { key: 'cfe892dbf118bf4cf79a5f326012e1606fbe8e24', onClick: () => this.stopRecording("cancel"), class: "w-10 h-10 rounded-full flex items-center justify-center text-white" }, "\u274C")), index.h("div", { key: '4d1bb9c6e25160cce6365398d6ca8364d09ce072', id: "mic", style: { width: "100%" } }), this.isRecording ? (index.h("div", { class: "ml-auto text-blue-600 font-semibold" }, String(minutes).padStart(2, "0"), ":", String(seconds).padStart(2, "0"))) : null, this.isRecording && (index.h("button", { key: '6c056c7135dadae139d06b7c71b8e06374dd8a04', onClick: () => this.stopRecording("stop"), class: "w-10 h-10 text-blue-600 ml-2 rounded-full flex items-center justify-center" }, index.h("span", { key: 'e1c4839236c85354431fdae8f35750f2cdddc7fc', class: "text-blue-600 font-sans" }, "\u2714"))))), !this.isRecording && (index.h("button", { key: '515ee3ab92681ba7ef507638f9fddb2dd1f9cfa4', onClick: () => this.startRecording(), class: `flex ${this.componentType === "search" ? "p-1.5 mr-0.5 self-center mt-0.5" : "w-10 h-10 p-0 mt-4"}` }, index.h("svg", { key: '2dadfc429db1331ca462f1e6d2caa75aed2d417a', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: `${this.componentType === "search" ? "#007bff" : "#007bff"}`, class: "w-5 h-5 translate-y-[0.5px]" }, index.h("path", { key: '54ca8431f8b13270bced80a4b711b51f660b3f8d', d: "M7 4a3 3 0 016 0v6a3 3 0 11-6 0V4z" }), index.h("path", { key: 'ebcab453c9bd54dcdcb16575b2eb2ed53ef69cf9', d: "M5.5 9.643a.75.75 0 00-1.5 0V10c0 3.06 2.29 5.585 5.25 5.954V17.5h-1.5a.75.75 0 000 1.5h4.5a.75.75 0 000-1.5h-1.5v-1.546A6.001 6.001 0 0016 10v-.357a.75.75 0 00-1.5 0V10a4.5 4.5 0 01-9 0v-.357z" }))))));
|
|
66226
66226
|
}
|
|
66227
66227
|
get element() { return index.getElement(this); }
|
|
66228
66228
|
};
|
|
@@ -66288,7 +66288,7 @@ const BotPopover = class {
|
|
|
66288
66288
|
}
|
|
66289
66289
|
render() {
|
|
66290
66290
|
var _a, _b;
|
|
66291
|
-
return (index.h("div", { key: '
|
|
66291
|
+
return (index.h("div", { key: 'ad90b530fa88e9dea37ce1dd82abcb55faf9023d', class: "popover-wrapper" }, this.isVisible && (index.h("div", { key: 'dde480cabb6affe0c9512441e26aa85555f1e48c', class: "popover-content" }, index.h("button", { key: '62f86c759b02326df14ce77527876bb1955e7443', class: "popover-close", onClick: () => this.closePopover() }, "\u2715"), index.h("span", { key: '6a1841f63c3983e4497452fae6646788bb760da5', innerHTML: this.isBack ? (_a = this.popoverConfig) === null || _a === void 0 ? void 0 : _a.returnMessage : (_b = this.popoverConfig) === null || _b === void 0 ? void 0 : _b.newMessage, onClick: () => this.showChat() })))));
|
|
66292
66292
|
}
|
|
66293
66293
|
};
|
|
66294
66294
|
BotPopover.style = BotPopoverStyle0;
|
|
@@ -66372,7 +66372,7 @@ const ChatbotHistory = class {
|
|
|
66372
66372
|
}
|
|
66373
66373
|
render() {
|
|
66374
66374
|
const sortedItems = this.sortByDateDesc();
|
|
66375
|
-
return (index.h("div", { key: '
|
|
66375
|
+
return (index.h("div", { key: '8ddfa6250dff18c161643b662d16083679e33417' }, index.h("ul", { key: '005fb6d69a8fe3a1e5ba9e745169ca92fef6a0db', class: "history-list" }, sortedItems.map(chat => {
|
|
66376
66376
|
return (index.h("li", { class: "conversation-list-item" }, index.h("div", { class: "conversation-list-item-body" }, index.h("div", null, index.h("img", { class: "avatar", src: this.chatlogo, alt: "Avatar" })), index.h("div", { class: "conversation-list-item-body-content" }, index.h("h2", { onClick: () => this.handleClick(chat.messages) }, new Date(chat.date).toLocaleString()), index.h("span", { class: "conversation-list-item-time" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", height: "20px", width: "20px", onClick: () => this.downloadChat(chat), style: { "margin-right": "10px" } }, index.h("path", { opacity: "0.5", d: "M3 15C3 17.8284 3 19.2426 3.87868 20.1213C4.75736 21 6.17157 21 9 21H15C17.8284 21 19.2426 21 20.1213 20.1213C21 19.2426 21 17.8284 21 15", stroke: "#1C274C", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), " ", index.h("path", { d: "M12 3V16M12 16L16 11.625M12 16L8 11.625", stroke: "#1C274C", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), " "), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 29 29", id: "delete", height: "20px", width: "20px", onClick: () => this.deleteHistory(chat) }, index.h("path", { d: "M10 3v3h9V3a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1z" }), index.h("path", { d: "M4 5v1h21V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1zM6 8l1.812 17.209A2 2 0 0 0 9.801 27H19.2a2 2 0 0 0 1.989-1.791L23 8H6zm4.577 16.997a.999.999 0 0 1-1.074-.92l-1-13a1 1 0 0 1 .92-1.074.989.989 0 0 1 1.074.92l1 13a1 1 0 0 1-.92 1.074zM15.5 24a1 1 0 0 1-2 0V11a1 1 0 0 1 2 0v13zm3.997.077a.999.999 0 1 1-1.994-.154l1-13a.985.985 0 0 1 1.074-.92 1 1 0 0 1 .92 1.074l-1 13z" }))), index.h("p", { class: "conversation-list-item-last-message" }, " ", this.convertHtmlToPlainText(chat.messages[0].text), " ")))));
|
|
66377
66377
|
}))));
|
|
66378
66378
|
}
|
|
@@ -66398,7 +66398,7 @@ const ChatbotWelcome = class {
|
|
|
66398
66398
|
}
|
|
66399
66399
|
render() {
|
|
66400
66400
|
var _a, _b;
|
|
66401
|
-
return (index.h("div", { key: '
|
|
66401
|
+
return (index.h("div", { key: '8aa1ce4d6dd4c443e806bfb7e678051cf20afe26', class: "welcome-screen" }, index.h("img", { key: '341adcb2786d7b515a170fcee3520cc5e0458bfa', src: (_a = this.welcomelogo) !== null && _a !== void 0 ? _a : this.cdnPath + `/v1/ai12z-bot/img/headset.png`, alt: "Avatar", height: "64" }), index.h("p", { key: 'f4ac486947306944947f599c3615d9a10c06dc05', innerHTML: this.welcomeMessage }), index.h("div", { key: 'f7a4633b3db6b08655fab13c9f67777ba8974f3e', class: "button-container" }, (_b = this.buttonsList) === null || _b === void 0 ? void 0 : _b.map(button => index.h("button", { onClick: () => this.handleButtonClick(button) }, button.label)))));
|
|
66402
66402
|
}
|
|
66403
66403
|
};
|
|
66404
66404
|
ChatbotWelcome.style = ChatbotWelcomeStyle0;
|
|
@@ -10202,32 +10202,32 @@ const Ai12zBot = class {
|
|
|
10202
10202
|
}
|
|
10203
10203
|
}
|
|
10204
10204
|
render() {
|
|
10205
|
-
var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
10205
|
+
var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
10206
10206
|
// const imageSrc = getAssetPath(`./assets/ai12z-bot/img/chatbot.jpg`)
|
|
10207
10207
|
const style = {
|
|
10208
10208
|
width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
|
|
10209
10209
|
height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
|
|
10210
10210
|
};
|
|
10211
|
-
return (index.h("div", { key: '
|
|
10211
|
+
return (index.h("div", { key: '3fdcaf4cd45aa7b107657820667d6fd765f697f2' }, index.h("div", { key: '2d7d40e614466e33e7f3f60db3aa7574fd0ebb77', class: {
|
|
10212
10212
|
"right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
|
|
10213
10213
|
"left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
|
|
10214
10214
|
"custom-floating-icon ": this.isBot,
|
|
10215
10215
|
"hide-chatbot": this.isChatOpen,
|
|
10216
|
-
}, 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: '
|
|
10216
|
+
}, 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: '89ddc54fa26823aed5c31523879a808ab13512ec', 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: '63f163eb2f994eec9a08ddc78ba4094f7001f9de', popoverConfig: (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.popover }), this.isChatOpen && (index.h("div", { key: 'dfae157dce62e54fc707076419cdc99245d92b0c', class: {
|
|
10217
10217
|
"chat-window": true,
|
|
10218
10218
|
"chat-window-open": this.isChatOpen,
|
|
10219
10219
|
"chat-window-close": !this.isChatOpen,
|
|
10220
10220
|
"chat-right": ((_m = this.botSettings) === null || _m === void 0 ? void 0 : _m.botPosition) === "right",
|
|
10221
10221
|
"chat-left": ((_o = this.botSettings) === null || _o === void 0 ? void 0 : _o.botPosition) === "left",
|
|
10222
|
-
}, style: style }, !this.hideInput && (index.h("div", { key: '
|
|
10222
|
+
}, style: style }, !this.hideInput && (index.h("div", { key: 'fe9504f25b045ccb375d6cb23f4285686a3ebb88', 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: '78097fc73df48e11f3f3276d1bd1a1277bb8b980', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '2bcf1f2e0ff5e199bd56953b1ef06e7c2e45efba', 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: 'b183c5d7ebc5ab7d01a91c717a71129047f68c18', class: "chat-name" }, (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.botName), this.showHistory && (index.h("button", { key: 'c8e325c981403d1a6f1f44aa42212139eb7664c6', onClick: () => this.loadConversation() }, index.h("svg", { key: '6ee9c5c75636c896d0f3dcf298bbc7556adc503e', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '1c5d62571d43dfb421fbb478c71e48eca34e3165', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: 'f126f16c097d09643852496771461d69fbd9beb1', 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: 'd98d76b6283f1fba614eb872d3e92a4e52f40e1a', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: '0f741905e1d401fb49632a8532198da7ae478c2f', 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: 'c6fd8f54974f7973a37b8ba0930e060007434b19', 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: 'e3ee4293edfaa7ba3e59cc52534a611ffc926d4d', 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: '00421c842b87c95d945802ab1ea800d844c749bb', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '38d78ff9e059e7f6399c0f7023e796dd6876267f', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: 'a80573ee54037f29b2ddf9c39a8d60586d27c3ef', "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: '2f66242b219f78ba075e27e41a0bbc86f443e196', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: 'edc53bbbf1e4a4e9f123fb0ba216c9a18e0ab4dd' }, (_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: () => {
|
|
10223
10223
|
this.isMenuOpen = !this.isMenuOpen;
|
|
10224
10224
|
this.menuAction = item.action;
|
|
10225
10225
|
this.handleSend(item.label);
|
|
10226
|
-
} }, item.label))))), this.hideInput && (index.h("div", { key: '
|
|
10226
|
+
} }, item.label))))), this.hideInput && (index.h("div", { key: '52dd48704d39e3279a55e027adc9fd2e2b38935a', class: "chat-header" }, index.h("button", { key: '4834361bdaa1d69bf5b7077277509e0c721ad322', onClick: () => {
|
|
10227
10227
|
this.showWelcomeScreen = true;
|
|
10228
10228
|
this.hideInput = false;
|
|
10229
10229
|
this.checkHistory();
|
|
10230
|
-
} }, index.h("svg", { key: '
|
|
10230
|
+
} }, index.h("svg", { key: '35dc40369ee8237436976050c80a6666e8f09492', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '6817b7493239bc353e65818ce28e3866246ce6b7', 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: '9fd7c1212c334b5b5b0a67af4965b741d614d20d', class: "header-title" }, "Conversation History"))), index.h("div", { key: '4f64c993513c181db1dbf444a4b57e62e0177337', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '6b04b4d94d41e089ac17304a970613b885dfcb19', 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: '50e87bfc5a62412f488f0d1fb0eca19c3655cfb6', 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: 'ee3c8c714cefbe4826eb431046e17e849ac753a4', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
|
|
10231
10231
|
this.messages.length > 0 &&
|
|
10232
10232
|
this.messages.map(msg => {
|
|
10233
10233
|
var _a, _b, _c;
|
|
@@ -10235,11 +10235,11 @@ const Ai12zBot = class {
|
|
|
10235
10235
|
_c.map(img => {
|
|
10236
10236
|
return index.h("img", { src: img, class: "thumbnail", alt: "thumbnail" });
|
|
10237
10237
|
}), !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)))));
|
|
10238
|
-
})), index.h("div", { key: '
|
|
10239
|
-
${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}` }, index.h("ul", { key: '
|
|
10238
|
+
})), index.h("div", { key: 'e906386f1bfa86bf998b67f79101731e18132066', id: "previewContainer" }), index.h("div", { key: 'cbfc2824fad5c55775d2c058e2d4da1752331919', class: "ml-2" }, this.messages.length === 0 && (index.h("div", { key: '04def4c8bcb62aba22fc3e195d9aaf173353633c', class: "custom-privacy" }, index.h("slot", { key: '853759cc52d1e48201f7e9e70eb146c305493403', name: "custom-privacy" }))), ((_3 = this.messages) === null || _3 === void 0 ? void 0 : _3.length) > 0 && (index.h("div", { key: '2f6fb29640a58a0c84cc2a9101dbd55b1cf216c2', class: "follow-up" }, index.h("input", { key: '54ed8f04bc1b2edb24ef4d76f1238bf11f3ddc59', 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: '4e88bb7c419c28c3019d8dca3720435fe96cf0e6', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: 'dfbf02db291eaa1a96de2b692069b2716f4cea05', 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: 'd102d41a8f7ae3e07add79638863934242c78228', points: "20 6 9 17 4 12" }))))), !this.hideInput && (index.h("div", { key: '27d7db34293ee811e702003a1e90d06cac7e3ec7', class: "chat-footer border-t border-gray-300" }, index.h("div", { key: '69df9682c6929eacc28f5dd42406dc7c0c45c917', class: "flex items-center flex-row" }, ((_4 = this.botSettings) === null || _4 === void 0 ? void 0 : _4.imageUpload) && (index.h("div", { key: '3448d27ddaf3ef241a9aea6cfde893d275731656', class: "relative inline-block", style: { width: "5%" } }, !this.hideAllButtons && (index.h("button", { key: '14ed62417f88a327c6fbd5b34c072d3bd3498f75', class: "w-8 h-8 text-blue-500", onClick: this.toggleBox }, index.h("svg", { key: '21798920be73fb335cf2a3cd45d6528fa92e4ba0', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: '4fb42d4b664b556f5afbb7918014d9af9a3fbf9c', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" })))), index.h("div", { key: '3f8c57a3220b2c65f4f87dbedc92d8548f9b9143', class: `absolute bottom-12 left-0 w-44 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
|
|
10239
|
+
${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}` }, index.h("ul", { key: 'de795f770140fdc91988631cded684ab265d7703', class: "space-y-2" }, index.h("li", { key: 'f77634afa73a6d3fb94bb03f8cf33e109732ee72', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
|
|
10240
10240
|
this.uploadElem.click();
|
|
10241
10241
|
this.isOpen = false;
|
|
10242
|
-
} }, index.h("input", { key: '
|
|
10242
|
+
} }, index.h("input", { key: 'f44b88893032ca43f2be378b4056347e01c29bc4', 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("div", { key: 'd742134e97a6ed7b63a5f8edf2e279cbb7b098f1', class: "mr-1" }, index.h("svg", { key: 'f7618c6d59a93304f287a39bab52e0b72776292f', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: 'bfb3ef9165a80c3a41b88c87deccdc8b351a0947', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: '4196bb5433750d914ed6089a33685ef9454c9f3f' }, "Upload Images")))))), !this.hideAllButtons && (index.h("div", { key: 'a9f047df7ad58743741f83f071456a69ae15abd3', style: { width: "80%" } }, index.h("textarea", { key: '9d05e5d359841572c4274aac16d4c6ecc32d502b', rows: this.rowCount, placeholder: (_6 = (_5 = this.botSettings) === null || _5 === void 0 ? void 0 : _5.botPlaceholderText) !== null && _6 !== void 0 ? _6 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight, onFocus: e => this.showButton(e), class: "flex-1 px-4 py-2 w-full focus:outline-none" }))), index.h("audio-recorder", { key: '69f22274ca274c863e236ebfba3316951d633b33', "component-type": "bot", onStartRecord: _ev => {
|
|
10243
10243
|
// console.log("test", ev)
|
|
10244
10244
|
this.hideAllButtons = true;
|
|
10245
10245
|
}, onStopRecord: _ev => {
|
|
@@ -10254,7 +10254,7 @@ const Ai12zBot = class {
|
|
|
10254
10254
|
this.showSubmit = true;
|
|
10255
10255
|
}
|
|
10256
10256
|
}, 1000);
|
|
10257
|
-
}, style: { width: this.hideAllButtons ? "100%" : "10%" } }), !this.hideAllButtons && (index.h("div", { key: '
|
|
10257
|
+
}, style: { width: this.hideAllButtons ? "100%" : "10%" } }), !this.hideAllButtons && (index.h("div", { key: '1483b3b1cdafb7b4c21415413a829391ad6d497c' }, index.h("button", { key: '62c0551e4ab1f91501b7855ead3a7519773bf940', class: "relative w-10 h-10 flex items-center justify-center rounded-full transition-transform duration-300 ease-in-out bg-blue-500", onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: 'd150f60889cfcddc76a63d72370f73c6f138ab98', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "white", class: "w-5 h-5" }, index.h("path", { key: '16cba9b2e03f5a6cdf5b9c80382a4fadf390312f', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" }))))))))))));
|
|
10258
10258
|
}
|
|
10259
10259
|
get el() { return index.getElement(this); }
|
|
10260
10260
|
static get watchers() { return {
|
|
@@ -11038,7 +11038,7 @@ const Ai12zKnowledgeBox = class {
|
|
|
11038
11038
|
this.clearThumbsHistory();
|
|
11039
11039
|
}
|
|
11040
11040
|
render() {
|
|
11041
|
-
return (index.h("div", { key: '
|
|
11041
|
+
return (index.h("div", { key: '183ebe0c4af49f4b9719f72bd3dd3aa27c4e9778' }, this.error ? index.h("p", { class: "ai12z-suggest-error-msg" }, "Error please try again!") : null, this.items.map(item => {
|
|
11042
11042
|
return (index.h("div", { class: "prose ai12z-suggest-container" }, this.isLoading && (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("div", null, index.h("div", { class: { "ai12z-suggest-title": true, "ai12z-suggest-align": item["thumbsUpDown"] } }, index.h("a", { href: item["title"], target: "_blank" }, item["title"])), item.thumbsUpDown && !this.isLoading && (index.h("div", { class: "ai12z-suggest-thumbs", id: "thumbsupdown" }, index.h("button", { id: `thumbsUp_${item.insightId}`, onClick: () => this.thumbsUp(item.insightId), class: "chat-thumbs-up" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z" }))), index.h("button", { id: `thumbsDown_${item.insightId}`, onClick: () => this.thumbsDown(item.insightId), class: "chat-thumbs-down" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" })))))), index.h("div", { class: "ai12z-suggest-answer", id: item["id"], innerHTML: item["answer"] }), index.h("div", { class: { "ai12z-suggest-relevance": true, "ai12z-suggest-hide": !item["isRelavance"] } }, index.h("a", { href: "" }, item["relavanceScore"])), index.h("div", { class: "custom-privacy" }, index.h("slot", { name: "custom-privacy" }))));
|
|
11043
11043
|
})));
|
|
11044
11044
|
}
|
|
@@ -11065,4 +11065,4 @@ exports.getTemplate = getTemplate;
|
|
|
11065
11065
|
exports.showdown = showdown;
|
|
11066
11066
|
exports.splitContent = splitContent;
|
|
11067
11067
|
|
|
11068
|
-
//# sourceMappingURL=ai12z-knowledge-box-
|
|
11068
|
+
//# sourceMappingURL=ai12z-knowledge-box-8b326d6f.js.map
|