ai12z 1.0.4 → 1.0.5
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_9.cjs.entry.js +1 -1
- package/dist/cjs/{ai12z-knowledge-box-89fa2f36.js → ai12z-knowledge-box-d48d9c65.js} +11 -11
- package/dist/cjs/ai12z-knowledge-box-d48d9c65.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/library.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +26 -8
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/esm/ai12z-bot_9.entry.js +2 -2
- package/dist/esm/{ai12z-knowledge-box-76f1a05f.js → ai12z-knowledge-box-8dd49a54.js} +9 -9
- package/dist/esm/ai12z-knowledge-box-8dd49a54.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/library.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/library.esm.js.map +1 -1
- package/dist/library/{p-79a8d7f0.entry.js → p-05018b8b.entry.js} +2 -2
- package/dist/library/{p-fcd77de2.js → p-40ddc426.js} +2 -2
- package/dist/library/{p-fcd77de2.js.map → p-40ddc426.js.map} +1 -1
- package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/ai12z-knowledge-box-89fa2f36.js.map +0 -1
- package/dist/esm/ai12z-knowledge-box-76f1a05f.js.map +0 -1
- /package/dist/library/{p-79a8d7f0.entry.js.map → p-05018b8b.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-d48d9c65.js');
|
|
6
6
|
const index = require('./index-54750598.js');
|
|
7
7
|
|
|
8
8
|
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;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{padding:2rem;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:1rem}@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}";
|
|
@@ -9243,6 +9243,7 @@ const Ai12zBot = class {
|
|
|
9243
9243
|
this.rowCount = 1;
|
|
9244
9244
|
}
|
|
9245
9245
|
};
|
|
9246
|
+
this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-knowledge-box-d48d9c65.js', document.baseURI).href));
|
|
9246
9247
|
this.dataKey = undefined;
|
|
9247
9248
|
this.dataMode = undefined;
|
|
9248
9249
|
this.configId = undefined;
|
|
@@ -9298,7 +9299,7 @@ const Ai12zBot = class {
|
|
|
9298
9299
|
}
|
|
9299
9300
|
}
|
|
9300
9301
|
getAsset(assetPath) {
|
|
9301
|
-
index.setAssetPath(
|
|
9302
|
+
index.setAssetPath(this.assetPath);
|
|
9302
9303
|
return index.getAssetPath(assetPath);
|
|
9303
9304
|
}
|
|
9304
9305
|
componentDidLoad() {
|
|
@@ -9528,12 +9529,11 @@ const Ai12zBot = class {
|
|
|
9528
9529
|
this.menuAction = "";
|
|
9529
9530
|
}
|
|
9530
9531
|
onInputChange(files) {
|
|
9531
|
-
var _a;
|
|
9532
9532
|
if (files.length > 0) {
|
|
9533
9533
|
this.uploadImage(files);
|
|
9534
9534
|
}
|
|
9535
9535
|
else {
|
|
9536
|
-
console.error(
|
|
9536
|
+
console.error(files.length === 0 || "NO IMAGE UPLOADED");
|
|
9537
9537
|
return false;
|
|
9538
9538
|
}
|
|
9539
9539
|
}
|
|
@@ -9658,21 +9658,21 @@ const Ai12zBot = class {
|
|
|
9658
9658
|
width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
|
|
9659
9659
|
height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
|
|
9660
9660
|
};
|
|
9661
|
-
return (index.h("div", { key: '
|
|
9661
|
+
return (index.h("div", { key: '9d95aa228327bafc4930038cd2b26d7d6439c3f5' }, index.h("div", { key: 'c67f06cf8261e52b733cbdeaa0f6527976488fc6', class: { "right": ((_e = this.botSettings) === null || _e === void 0 ? void 0 : _e.botPosition) === "right", "left": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "left", "custom-floating-icon ": this.isBot }, onClick: () => this.action("open") }, !this.isBot && this.defaultTemplate(), this.isBot && index.h("slot", { key: '3278c8dc669799c981a507f9f96d9745332409b5', name: "bot" })), !this.isChatOpen && ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.popover) && index.h("bot-popover", { key: '9410d2f13e6ae3ec0a1647ea7ed675496de9f8d3', popoverConfig: (_h = this.botSettings) === null || _h === void 0 ? void 0 : _h.popover }), this.isChatOpen && (index.h("div", { key: '2f23695edd928f9702365b9067a6f4443340969c', class: {
|
|
9662
9662
|
"chat-window": true,
|
|
9663
9663
|
"chat-window-open": this.isChatOpen,
|
|
9664
9664
|
"chat-window-close": !this.isChatOpen,
|
|
9665
9665
|
"chat-right": ((_j = this.botSettings) === null || _j === void 0 ? void 0 : _j.botPosition) === "right",
|
|
9666
9666
|
"chat-left": ((_k = this.botSettings) === null || _k === void 0 ? void 0 : _k.botPosition) === "left",
|
|
9667
|
-
}, style: style }, !this.hideInput && (index.h("div", { key: '
|
|
9667
|
+
}, style: style }, !this.hideInput && (index.h("div", { key: 'da99d10c75c44ad3c2d05b06f15b3dd461954b96', class: "chat-header" }, ((_m = (_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.buttons) === null || _m === void 0 ? void 0 : _m.length) > 0 && (index.h("button", { key: '65efeb97ea59d119ecccfefb3156b97275f835eb', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '06c583176b9a4deef2d8f23ec3a33d0531b02555', class: "avatar", src: (_p = (_o = this.botSettings) === null || _o === void 0 ? void 0 : _o.botLogo) !== null && _p !== void 0 ? _p : this.botlogo, alt: "Avatar" }), index.h("span", { key: '13727d5c744abd02e339e7a36d98116effa1a65d', class: "chat-name" }, (_q = this.botSettings) === null || _q === void 0 ? void 0 : _q.botName), this.showHistory && (index.h("button", { key: 'ca3e2fbaf8d7abf183eb4793f5533532c8e1057b', onClick: () => this.loadConversation() }, index.h("svg", { key: '86bc022032e523a1c45a3ae541c2dd858dc74802', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: 'cc08b8a6c6b318363db1dc538af0858f8a1d8173', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: '7aeb456fe45423fc956150d2095a5b39d9de2e0a', 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: '5a1cdf030c91ea5cb08a193858e79b615a78132d', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'b70da34f24f812244fb04c9d97ebc1461d2a80a8', 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: '6f7e7f7f225b8594c23d260b59c8f41bfb7ac48c', 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: '702ebc329c5fe18cb8325433ef4ababce0739d13', 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: '6b5b5d44f1300e52bc8a2ec5221f43f657488293', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '0c7ea4f9c80828f8881b93edae156c42da3f06ac', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: '6d017a6079a6c8fa41b85a9b4fb3ebed30367017', "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: 'f6842ed0d563db95a422f445f747bfa82d547fa4', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '4a8f836fd9add0ceca2ca277c4fe6f044d235ae3' }, (_s = (_r = this.botSettings) === null || _r === void 0 ? void 0 : _r.buttons) === null || _s === void 0 ? void 0 : _s.map(item => (index.h("li", { onClick: () => {
|
|
9668
9668
|
this.isMenuOpen = !this.isMenuOpen;
|
|
9669
9669
|
this.menuAction = item.action;
|
|
9670
9670
|
this.handleSend(item.label);
|
|
9671
|
-
} }, item.label))))), this.hideInput && (index.h("div", { key: '
|
|
9671
|
+
} }, item.label))))), this.hideInput && (index.h("div", { key: '04c1a57fd80a1d3859bfadaaffa773a33d098fe5', class: "chat-header" }, index.h("button", { key: '2ec25912a4e3d26670a9fa82f604ac9775242bba', onClick: () => {
|
|
9672
9672
|
this.showWelcomeScreen = true;
|
|
9673
9673
|
this.hideInput = false;
|
|
9674
9674
|
this.checkHistory();
|
|
9675
|
-
} }, index.h("svg", { key: '
|
|
9675
|
+
} }, index.h("svg", { key: '7c67b6ceb6515f3f1af38f6bf3d7f63df075edc7', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '4aea69bedba58205d899057a69b8350af126bfbb', 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: '488ea16c623cd738d2a32b41d2e5022edaea073c', class: "header-title" }, "Conversation History"))), index.h("div", { key: '07a4610dddfbd202ad4371b0594fe8d9df29e4cc', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '2dbbae15201860afd5f195ee13cb6dc159c5a176', welcomeMessage: (_u = (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.welcome) === null || _u === void 0 ? void 0 : _u.message, buttonsList: (_w = (_v = this.botSettings) === null || _v === void 0 ? void 0 : _v.welcome) === null || _w === void 0 ? void 0 : _w.buttons, welcomelogo: (_y = (_x = this.botSettings) === null || _x === void 0 ? void 0 : _x.welcome) === null || _y === void 0 ? void 0 : _y.image })), this.showHistory && this.conversationHistory.length > 0 && this.hideInput && (index.h("chatbot-history", { key: '0fbe1ec33974a12202e5a39e36ec62e751d24010', chatList: this.conversationHistory, botName: (_z = this.botSettings) === null || _z === void 0 ? void 0 : _z.botName })), !this.showWelcomeScreen && this.messages.length > 0 && index.h("p", { key: '4e6e025537ff725dfc017477e811562f9f9acb43', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
|
|
9676
9676
|
this.messages.length > 0 &&
|
|
9677
9677
|
this.messages.map(msg => {
|
|
9678
9678
|
var _a, _b, _c;
|
|
@@ -9680,7 +9680,7 @@ const Ai12zBot = class {
|
|
|
9680
9680
|
_c.map(img => {
|
|
9681
9681
|
return index.h("img", { src: img, class: "thumbnail", alt: "thumbnail" });
|
|
9682
9682
|
}), !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)))));
|
|
9683
|
-
})), index.h("div", { key: '
|
|
9683
|
+
})), index.h("div", { key: 'a1efad0dbe8d30bca4162ff4cf21f52b7b1e5d56', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: 'dddb6504f30f660ecfedc7398d12021aec5ac797', class: "chat-footer" }, index.h("textarea", { key: 'e17fd95ff00ca10ba714198eb631b228b7a5e2aa', rows: this.rowCount, placeholder: (_1 = (_0 = this.botSettings) === null || _0 === void 0 ? void 0 : _0.botPlaceholderText) !== null && _1 !== void 0 ? _1 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight }), this.botSettings.imageUpload && (index.h("div", { key: '65f4708ece5049dedb0a5d9c9c15d19a88707b5b', class: "custom-attachment" }, index.h("input", { key: '43f12e3e90e5aa5b64bbb3f2d879b1288d2e4ff9', 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: 'c6fb2d0779243a3ec6ef360366f460276e9a5815', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'e768fe3d30f2287e928247224748ec623ad9ade9', 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: 'c633a3a267fe68c54d31a58a4afb789402ffdebc', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: '59fc1ad6c819dc5cae0b4e500bed1fcf5c01fcdd', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: '238cf66800ff49ce203c2dcd97f3c4fde219f5ed', 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" })))))))));
|
|
9684
9684
|
}
|
|
9685
9685
|
static get assetsDirs() { return ["assets"]; }
|
|
9686
9686
|
get el() { return index.getElement(this); }
|
|
@@ -9970,7 +9970,7 @@ const Ai12zCta = class {
|
|
|
9970
9970
|
}
|
|
9971
9971
|
}
|
|
9972
9972
|
getAsset(assetPath) {
|
|
9973
|
-
index.setAssetPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-knowledge-box-
|
|
9973
|
+
index.setAssetPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-knowledge-box-d48d9c65.js', document.baseURI).href)));
|
|
9974
9974
|
return index.getAssetPath(assetPath);
|
|
9975
9975
|
}
|
|
9976
9976
|
clearSearchHistory() {
|
|
@@ -10205,7 +10205,7 @@ const Ai12zKnowledgeBox = class {
|
|
|
10205
10205
|
this.buttons = [];
|
|
10206
10206
|
}
|
|
10207
10207
|
getAsset(assetPath) {
|
|
10208
|
-
index.setAssetPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-knowledge-box-
|
|
10208
|
+
index.setAssetPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-knowledge-box-d48d9c65.js', document.baseURI).href)));
|
|
10209
10209
|
return index.getAssetPath(assetPath);
|
|
10210
10210
|
}
|
|
10211
10211
|
componentDidLoad() {
|
|
@@ -10384,4 +10384,4 @@ exports.getEndpoint = getEndpoint;
|
|
|
10384
10384
|
exports.lookup = lookup;
|
|
10385
10385
|
exports.showdown = showdown;
|
|
10386
10386
|
|
|
10387
|
-
//# sourceMappingURL=ai12z-knowledge-box-
|
|
10387
|
+
//# sourceMappingURL=ai12z-knowledge-box-d48d9c65.js.map
|