ai12z 3.0.11 → 3.0.12
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-6eae888f.js → ai12z-search-panel-4608b57e.js} +10 -5
- package/dist/cjs/ai12z-search-panel-4608b57e.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +9 -4
- package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
- package/dist/esm/ai12z-bot_12.entry.js +2 -2
- package/dist/esm/{ai12z-search-panel-f28ffd09.js → ai12z-search-panel-cda9f280.js} +10 -5
- package/dist/esm/ai12z-search-panel-cda9f280.js.map +1 -0
- 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-37f9d283.js → p-462fadb0.js} +2 -2
- package/dist/library/{p-37f9d283.js.map → p-462fadb0.js.map} +1 -1
- package/dist/library/{p-8a19176f.entry.js → p-ea2bdb8a.entry.js} +2 -2
- package/package.json +2 -2
- package/dist/cjs/ai12z-search-panel-6eae888f.js.map +0 -1
- package/dist/esm/ai12z-search-panel-f28ffd09.js.map +0 -1
- /package/dist/library/{p-8a19176f.entry.js.map → p-ea2bdb8a.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const ai12zSearchPanel = require('./ai12z-search-panel-
|
|
5
|
+
const ai12zSearchPanel = require('./ai12z-search-panel-4608b57e.js');
|
|
6
6
|
const index = require('./index-171f7ecf.js');
|
|
7
7
|
const socketService = require('./socket-service-fa78b351.js');
|
|
8
8
|
const showdown = require('./showdown-b9a60008.js');
|
|
@@ -5367,10 +5367,11 @@ const Ai12zBot = class {
|
|
|
5367
5367
|
}
|
|
5368
5368
|
else {
|
|
5369
5369
|
const scriptDom = this.el.shadowRoot.querySelector(`script[type="text/javascript"]`);
|
|
5370
|
-
console.log("scriptDom", scriptDom)
|
|
5371
|
-
console.log("newScript", newScript)
|
|
5370
|
+
// console.log("scriptDom", scriptDom)
|
|
5371
|
+
// console.log("newScript", newScript)
|
|
5372
5372
|
if (scriptDom && !newScript.src) {
|
|
5373
|
-
|
|
5373
|
+
console.log("scriptDom", this.scriptArray);
|
|
5374
|
+
if (this.scriptArray.length > 0) {
|
|
5374
5375
|
this.scriptArray.forEach(script => {
|
|
5375
5376
|
if (!script.src && script.innerHTML !== newScript.innerHTML) {
|
|
5376
5377
|
this.el.shadowRoot.appendChild(newScript);
|
|
@@ -5378,11 +5379,15 @@ const Ai12zBot = class {
|
|
|
5378
5379
|
});
|
|
5379
5380
|
}
|
|
5380
5381
|
else {
|
|
5381
|
-
console.log("ele", this.el.shadowRoot)
|
|
5382
|
+
// console.log("ele", this.el.shadowRoot)
|
|
5382
5383
|
this.el.shadowRoot.appendChild(newScript);
|
|
5383
5384
|
}
|
|
5384
5385
|
// this.el.shadowRoot.appendChild(newScript)
|
|
5385
5386
|
}
|
|
5387
|
+
else {
|
|
5388
|
+
// console.log("scriptDom not found")
|
|
5389
|
+
this.el.shadowRoot.appendChild(newScript);
|
|
5390
|
+
}
|
|
5386
5391
|
}
|
|
5387
5392
|
});
|
|
5388
5393
|
// Step 4: Ensure Google Charts is loaded, then call the `drawGoogleChart` function
|
|
@@ -6607,4 +6612,4 @@ exports.Handlebars = Handlebars;
|
|
|
6607
6612
|
exports.SearchPanel = SearchPanel;
|
|
6608
6613
|
exports.setItemListElement = setItemListElement;
|
|
6609
6614
|
|
|
6610
|
-
//# sourceMappingURL=ai12z-search-panel-
|
|
6615
|
+
//# sourceMappingURL=ai12z-search-panel-4608b57e.js.map
|