ai12z 3.0.13 → 3.0.15
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_12.cjs.entry.js +1 -1
- package/dist/cjs/{ai12z-search-panel-5fa6b9fc.js → ai12z-search-panel-a6ce2627.js} +21 -6
- package/dist/cjs/ai12z-search-panel-a6ce2627.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 +23 -7
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/esm/ai12z-bot_12.entry.js +4 -4
- package/dist/esm/{ai12z-inline-search-d046e41f.js → ai12z-inline-search-742ea5aa.js} +3 -3
- package/dist/esm/{ai12z-inline-search-d046e41f.js.map → ai12z-inline-search-742ea5aa.js.map} +1 -1
- package/dist/esm/ai12z-inline-search.entry.js +3 -3
- package/dist/esm/{ai12z-knowledge-box-84c06d7b.js → ai12z-knowledge-box-61edd1b8.js} +2 -2
- package/dist/esm/{ai12z-knowledge-box-84c06d7b.js.map → ai12z-knowledge-box-61edd1b8.js.map} +1 -1
- package/dist/esm/ai12z-knowledge-box.entry.js +2 -2
- package/dist/esm/{ai12z-search-panel-fe7c8f83.js → ai12z-search-panel-d7df7043.js} +24 -9
- package/dist/esm/ai12z-search-panel-d7df7043.js.map +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/library.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/search-results-page.entry.js +3 -3
- package/dist/esm/{search-results-view-239a5088.js → search-results-view-832ccc50.js} +3 -3
- package/dist/esm/{search-results-view-239a5088.js.map → search-results-view-832ccc50.js.map} +1 -1
- package/dist/esm/{socket-service-a7dc24ef.js → socket-service-9c7e7bfc.js} +2 -2
- package/dist/esm/{socket-service-a7dc24ef.js.map → socket-service-9c7e7bfc.js.map} +1 -1
- package/dist/esm/{utils-76c67168.js → utils-61923ae6.js} +2 -2
- package/dist/esm/{utils-76c67168.js.map → utils-61923ae6.js.map} +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-4a5123de.entry.js +2 -0
- package/dist/library/{p-3d69bc82.js → p-599eee15.js} +2 -2
- package/dist/library/{p-7dfd6e9b.js → p-5c620570.js} +2 -2
- package/dist/library/p-6433707a.entry.js +2 -0
- package/dist/library/{p-0df5c0b4.js → p-8d25d927.js} +2 -2
- package/dist/library/{p-0df5c0b4.js.map → p-8d25d927.js.map} +1 -1
- package/dist/library/{p-4660d823.js → p-9e3df302.js} +2 -2
- package/dist/library/{p-95e055ba.entry.js → p-b3a2de8d.entry.js} +2 -2
- package/dist/library/{p-cfac4c14.js → p-bcf74d74.js} +2 -2
- package/dist/library/{p-75377ae8.js → p-e49a0ab7.js} +2 -2
- package/dist/library/p-eb9ee526.entry.js +2 -0
- package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/ai12z-search-panel-5fa6b9fc.js.map +0 -1
- package/dist/esm/ai12z-search-panel-fe7c8f83.js.map +0 -1
- package/dist/library/p-89e108df.entry.js +0 -2
- package/dist/library/p-b9015ffe.entry.js +0 -2
- package/dist/library/p-f00223ec.entry.js +0 -2
- /package/dist/library/{p-89e108df.entry.js.map → p-4a5123de.entry.js.map} +0 -0
- /package/dist/library/{p-3d69bc82.js.map → p-599eee15.js.map} +0 -0
- /package/dist/library/{p-7dfd6e9b.js.map → p-5c620570.js.map} +0 -0
- /package/dist/library/{p-b9015ffe.entry.js.map → p-6433707a.entry.js.map} +0 -0
- /package/dist/library/{p-4660d823.js.map → p-9e3df302.js.map} +0 -0
- /package/dist/library/{p-95e055ba.entry.js.map → p-b3a2de8d.entry.js.map} +0 -0
- /package/dist/library/{p-cfac4c14.js.map → p-bcf74d74.js.map} +0 -0
- /package/dist/library/{p-75377ae8.js.map → p-e49a0ab7.js.map} +0 -0
- /package/dist/library/{p-f00223ec.entry.js.map → p-eb9ee526.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ai12z_knowledge_box } from './ai12z-knowledge-box-
|
|
1
|
+
export { A as ai12z_knowledge_box } from './ai12z-knowledge-box-61edd1b8.js';
|
|
2
2
|
import './index-9f7965fd.js';
|
|
3
|
-
import './utils-
|
|
3
|
+
import './utils-61923ae6.js';
|
|
4
4
|
import './showdown-c0591a81.js';
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=ai12z-knowledge-box.entry.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, E as Env, h,
|
|
2
|
-
import { g as generateUUID, a as getOrCreateVisitorId, b as getConfig,
|
|
1
|
+
import { r as registerInstance, c as createEvent, E as Env, h, a as Host, g as getElement } from './index-9f7965fd.js';
|
|
2
|
+
import { g as generateUUID, a as getOrCreateVisitorId, c as checkStatus, b as getConfig, d as getComponentByControlType, u as updateButtonEvents, s as splitContent, l as lookup$1, e as getMetaInfo, f as getEndpoint, h as search, i as sendFeedback } from './utils-61923ae6.js';
|
|
3
3
|
import { g as getDefaultExportFromCjs, s as showdown } from './showdown-c0591a81.js';
|
|
4
|
-
import { S as SocketService, a as SearchResult } from './socket-service-
|
|
4
|
+
import { S as SocketService, a as SearchResult } from './socket-service-9c7e7bfc.js';
|
|
5
5
|
|
|
6
6
|
var handlebars = {exports: {}};
|
|
7
7
|
|
|
@@ -4996,6 +4996,7 @@ const Ai12zBot = class {
|
|
|
4996
4996
|
this.excludeTags = [];
|
|
4997
4997
|
this.includeTags = [];
|
|
4998
4998
|
this.botSettings = {};
|
|
4999
|
+
this.canRender = true;
|
|
4999
5000
|
this.isOpen = false;
|
|
5000
5001
|
this.isListening = false;
|
|
5001
5002
|
this.showSubmit = false;
|
|
@@ -5201,6 +5202,13 @@ const Ai12zBot = class {
|
|
|
5201
5202
|
}
|
|
5202
5203
|
}
|
|
5203
5204
|
connectedCallback() {
|
|
5205
|
+
//this.parseMyObjectProp(this.myObject);
|
|
5206
|
+
checkStatus(this.dataKey, this.dataMode).then(enable => {
|
|
5207
|
+
this.canRender = enable;
|
|
5208
|
+
// if (!enable) {
|
|
5209
|
+
// console.log("ai12z canRender", this.canRender)
|
|
5210
|
+
// }
|
|
5211
|
+
});
|
|
5204
5212
|
this.configBot();
|
|
5205
5213
|
}
|
|
5206
5214
|
componentWillLoad() {
|
|
@@ -5222,7 +5230,7 @@ const Ai12zBot = class {
|
|
|
5222
5230
|
if (!this.botSettings.botVersion) {
|
|
5223
5231
|
this.botSettings.botVersion = "v1"; // Default to v1 if not specified
|
|
5224
5232
|
}
|
|
5225
|
-
if (this.botSettings.botVersion === "v2" && !this.botSettings.isExpanded) {
|
|
5233
|
+
if (this.botSettings.botVersion === "v2" && !this.botSettings.isExpanded && !this.isBot) {
|
|
5226
5234
|
// this.botSettings.imageUpload = true
|
|
5227
5235
|
this.isMinimized = true;
|
|
5228
5236
|
}
|
|
@@ -5247,6 +5255,7 @@ const Ai12zBot = class {
|
|
|
5247
5255
|
for (var i = 0; i < slot.length; i++) {
|
|
5248
5256
|
if (slot[i].tagName.toLowerCase() === "bot" || slot[i].getAttribute("slot") === "bot") {
|
|
5249
5257
|
this.isBot = true;
|
|
5258
|
+
this.isExpanded = false;
|
|
5250
5259
|
}
|
|
5251
5260
|
}
|
|
5252
5261
|
}
|
|
@@ -5835,6 +5844,9 @@ const Ai12zBot = class {
|
|
|
5835
5844
|
width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
|
|
5836
5845
|
height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
|
|
5837
5846
|
};
|
|
5847
|
+
if (!this.canRender) {
|
|
5848
|
+
return (h(Host, null, h("span", { style: { display: "none" } }, "Failed to load ai12z bot control due to insufficient fund")));
|
|
5849
|
+
}
|
|
5838
5850
|
return this.botSettings.botVersion === "v1" ? (h("div", null, h("div", { class: {
|
|
5839
5851
|
"right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
|
|
5840
5852
|
"left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
|
|
@@ -5994,15 +6006,18 @@ const Ai12zBot = class {
|
|
|
5994
6006
|
this.isContent = false;
|
|
5995
6007
|
this.isOpened = true;
|
|
5996
6008
|
this.isExpanded = true;
|
|
5997
|
-
} }, h("div", { class: "font-bold text-body2 text-white hidden md:flex pl-3 items-center" }, "Return to AI", h("i", { class: "inline-block pl-3 ai-minimize-icon block wes-icon--loading text-body1", style: { color: " rgb(255, 255, 255)" } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 16", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.30775 9.15362H14.077C14.4231 9.15362 14.577 9.5767 14.3462 9.80747L10.6539 13.4998C10.4231 13.7305 10.4231 14.0767 10.6539 14.3075L11.5001 15.1536C11.7308 15.3844 12.077 15.3844 12.3077 15.1536L19.0385 8.38439C19.2693 8.15362 19.2693 7.80747 19.0385 7.5767L12.3077 0.845928C12.077 0.615159 11.7308 0.615159 11.5001 0.845928L10.6924 1.65362C10.4616 1.88439 10.4616 2.23054 10.6924 2.46131L14.3847 6.15362C14.6154 6.42285 14.4616 6.84593 14.1154 6.84593H1.34621C1.03852 6.84593 0.769287 7.0767 0.769287 7.38439V8.53824C0.769287 8.84593 1.00006 9.15362 1.30775 9.15362Z", fill: "white" })))))), this.isExpanded && !this.isOpened && h("privacy-modal", { show: this.showPrivacy, message: this.botSettings.privacyTemplate })))), h("div", {
|
|
6009
|
+
} }, h("div", { class: "font-bold text-body2 text-white hidden md:flex pl-3 items-center" }, "Return to AI", h("i", { class: "inline-block pl-3 ai-minimize-icon block wes-icon--loading text-body1", style: { color: " rgb(255, 255, 255)" } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 16", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.30775 9.15362H14.077C14.4231 9.15362 14.577 9.5767 14.3462 9.80747L10.6539 13.4998C10.4231 13.7305 10.4231 14.0767 10.6539 14.3075L11.5001 15.1536C11.7308 15.3844 12.077 15.3844 12.3077 15.1536L19.0385 8.38439C19.2693 8.15362 19.2693 7.80747 19.0385 7.5767L12.3077 0.845928C12.077 0.615159 11.7308 0.615159 11.5001 0.845928L10.6924 1.65362C10.4616 1.88439 10.4616 2.23054 10.6924 2.46131L14.3847 6.15362C14.6154 6.42285 14.4616 6.84593 14.1154 6.84593H1.34621C1.03852 6.84593 0.769287 7.0767 0.769287 7.38439V8.53824C0.769287 8.84593 1.00006 9.15362 1.30775 9.15362Z", fill: "white" })))))), this.isExpanded && !this.isOpened && h("privacy-modal", { show: this.showPrivacy, message: this.botSettings.privacyTemplate })))), h("div", {
|
|
6010
|
+
// slot="bot"
|
|
6011
|
+
class: "fab pointer-events-auto fixed right-7 whitespace-nowrap transition-transform duration-300 ease-in-out", style: {
|
|
5998
6012
|
opacity: this.isMinimized ? "1" : "0",
|
|
5999
6013
|
transform: this.isMinimized ? "translateX(0)" : "translateX(-100%)",
|
|
6000
6014
|
pointerEvents: this.isMinimized ? "auto" : "none",
|
|
6001
6015
|
transformOrigin: "50% 50% 0px",
|
|
6002
|
-
}
|
|
6016
|
+
}, onClick: () => {
|
|
6003
6017
|
this.openChat();
|
|
6004
|
-
}
|
|
6005
|
-
|
|
6018
|
+
}
|
|
6019
|
+
}, this.isBot && h("slot", { name: "bot" }), !this.isBot && (h("button", { class: "rounded-full flex cursor-pointer items-center pr-[14px] md:gap-x-3 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-blue-focused", tabindex: "0" }, h("div", { class: "w-10 h-10 flex items-center justify-center bg-white rounded-full border relative" }, this.botSettings.botLaunchIcon && h("img", { src: this.botSettings.botLaunchIcon, alt: "bot icon", class: "w-8 h-8 rounded-lg" }), !this.botSettings.botLaunchIcon && (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "#2095ae" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, " ", h("path", { d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#2095ae", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), " ")))), h("span", { class: "font-medium text-white" }, "Ask ", (_23 = this.botSettings) === null || _23 === void 0 ? void 0 :
|
|
6020
|
+
_23.botName))))));
|
|
6006
6021
|
}
|
|
6007
6022
|
get el() { return getElement(this); }
|
|
6008
6023
|
static get watchers() { return {
|
|
@@ -6593,4 +6608,4 @@ SearchPanel.style = Ai12zSearchPanelStyle0 + Ai12zSearchPanelStyle1;
|
|
|
6593
6608
|
|
|
6594
6609
|
export { Ai12zBot as A, Handlebars as H, SearchPanel as S, Ai12zCta as a, setItemListElement as s };
|
|
6595
6610
|
|
|
6596
|
-
//# sourceMappingURL=ai12z-search-panel-
|
|
6611
|
+
//# sourceMappingURL=ai12z-search-panel-d7df7043.js.map
|