@wizishop/wizi-block 3.3.21 → 3.3.22

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.
@@ -8897,6 +8897,7 @@
8897
8897
  }
8898
8898
  };
8899
8899
  WiziBlockComponent.prototype.ngOnInit = function () {
8900
+ var e_1, _a;
8900
8901
  var _this = this;
8901
8902
  if (!this.availableComponents || this.availableComponents.length === 0) {
8902
8903
  this.availableComponents = [
@@ -8959,6 +8960,23 @@
8959
8960
  });
8960
8961
  this.contentService.contents = this.setContent();
8961
8962
  this.resizeWithWidth(window.innerWidth);
8963
+ try {
8964
+ for (var _b = __values(this.contentService.contents), _c = _b.next(); !_c.done; _c = _b.next()) {
8965
+ var item = _c.value;
8966
+ if (typeof item.block.hide_block !== typeof undefined) {
8967
+ if (item.block.hide_block) {
8968
+ this.isHiddenConfig.push(item.block.uuid);
8969
+ }
8970
+ }
8971
+ }
8972
+ }
8973
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
8974
+ finally {
8975
+ try {
8976
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8977
+ }
8978
+ finally { if (e_1) throw e_1.error; }
8979
+ }
8962
8980
  };
8963
8981
  WiziBlockComponent.prototype.addThis = function (selected) {
8964
8982
  this.blockComponent.addThisSelected(selected, this.verbose);
@@ -9041,7 +9059,7 @@
9041
9059
  }
9042
9060
  };
9043
9061
  WiziBlockComponent.prototype.changeConfigWiziblocks = function (event) {
9044
- var e_1, _a;
9062
+ var e_2, _a;
9045
9063
  var _this = this;
9046
9064
  this.selectedConfig = event.config;
9047
9065
  if (typeof this.selectedConfig.forms !== typeof undefined) {
@@ -9056,12 +9074,12 @@
9056
9074
  }
9057
9075
  }
9058
9076
  }
9059
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
9077
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
9060
9078
  finally {
9061
9079
  try {
9062
9080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9063
9081
  }
9064
- finally { if (e_1) throw e_1.error; }
9082
+ finally { if (e_2) throw e_2.error; }
9065
9083
  }
9066
9084
  }
9067
9085
  };
@@ -9632,33 +9650,12 @@
9632
9650
  this.contentEventSubscription = null;
9633
9651
  }
9634
9652
  StructureToolsComponent.prototype.ngOnInit = function () {
9635
- var e_1, _a;
9636
9653
  var _this = this;
9637
9654
  this.checkOnContents();
9638
9655
  this.contentEventSubscription = this.contentService.contentEvent().subscribe(function () {
9639
9656
  _this.checkOnContents();
9640
9657
  });
9641
9658
  var thisContent = this.contentService.getContentByUUID(this.uuid);
9642
- if (typeof thisContent.forms !== typeof undefined) {
9643
- try {
9644
- for (var _b = __values(thisContent.forms), _c = _b.next(); !_c.done; _c = _b.next()) {
9645
- var item = _c.value;
9646
- if (item.id === 'hide_block' && typeof item.value !== typeof undefined) {
9647
- this.dynamicHiddenStructure = true;
9648
- }
9649
- else {
9650
- this.dynamicHiddenStructure = false;
9651
- }
9652
- }
9653
- }
9654
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
9655
- finally {
9656
- try {
9657
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
9658
- }
9659
- finally { if (e_1) throw e_1.error; }
9660
- }
9661
- }
9662
9659
  this.hideConfig = thisContent.forms.length === 0;
9663
9660
  this.wiziBlockService.getBlocksService().forEach(function (service) {
9664
9661
  if (service.type() === thisContent.type) {