ai12z 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ai12z-bot_12.cjs.entry.js +1 -1
- package/dist/cjs/{ai12z-search-panel-5fa6b9fc.js → ai12z-search-panel-09f068c9.js} +12 -1
- package/dist/cjs/ai12z-search-panel-09f068c9.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 +14 -2
- 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-295d3991.js} +15 -4
- package/dist/esm/ai12z-search-panel-295d3991.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-95e055ba.entry.js → p-85a3cd8a.entry.js} +2 -2
- package/dist/library/{p-0df5c0b4.js → p-8a001c33.js} +2 -2
- package/dist/library/{p-0df5c0b4.js.map → p-8a001c33.js.map} +1 -1
- package/dist/library/{p-4660d823.js → p-9e3df302.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-95e055ba.entry.js.map → p-85a3cd8a.entry.js.map} +0 -0
- /package/dist/library/{p-4660d823.js.map → p-9e3df302.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() {
|
|
@@ -5835,6 +5843,9 @@ const Ai12zBot = class {
|
|
|
5835
5843
|
width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
|
|
5836
5844
|
height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
|
|
5837
5845
|
};
|
|
5846
|
+
if (!this.canRender) {
|
|
5847
|
+
return (h(Host, null, h("span", { style: { display: "none" } }, "Failed to load ai12z bot control due to insufficient fund")));
|
|
5848
|
+
}
|
|
5838
5849
|
return this.botSettings.botVersion === "v1" ? (h("div", null, h("div", { class: {
|
|
5839
5850
|
"right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
|
|
5840
5851
|
"left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
|
|
@@ -6593,4 +6604,4 @@ SearchPanel.style = Ai12zSearchPanelStyle0 + Ai12zSearchPanelStyle1;
|
|
|
6593
6604
|
|
|
6594
6605
|
export { Ai12zBot as A, Handlebars as H, SearchPanel as S, Ai12zCta as a, setItemListElement as s };
|
|
6595
6606
|
|
|
6596
|
-
//# sourceMappingURL=ai12z-search-panel-
|
|
6607
|
+
//# sourceMappingURL=ai12z-search-panel-295d3991.js.map
|