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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const ai12zSearchPanel = require('./ai12z-search-panel-6eae888f.js');
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
- if (this.scriptArray.length > 1) {
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-6eae888f.js.map
6615
+ //# sourceMappingURL=ai12z-search-panel-4608b57e.js.map