@brndts/brndts-ads 1.11.1 → 1.11.2

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/index.mjs CHANGED
@@ -71751,6 +71751,7 @@ var StaticRegionContent = /*#__PURE__*/ function(RegionContent) {
71751
71751
  {
71752
71752
  key: "render",
71753
71753
  value: function render(force) {
71754
+ var _this = this;
71754
71755
  var _this_content, _this_content_extra_sz, _this_content_extra, _this_content1, _this_content_extra_sz1, _this_content_extra1, _this_content2;
71755
71756
  if ((_this_content = this.content) === null || _this_content === void 0 ? void 0 : _this_content.pending) {
71756
71757
  return;
@@ -71758,6 +71759,13 @@ var StaticRegionContent = /*#__PURE__*/ function(RegionContent) {
71758
71759
  this.container.style.width = "".concat((_this_content1 = this.content) === null || _this_content1 === void 0 ? void 0 : (_this_content_extra = _this_content1.extra) === null || _this_content_extra === void 0 ? void 0 : (_this_content_extra_sz = _this_content_extra.sz) === null || _this_content_extra_sz === void 0 ? void 0 : _this_content_extra_sz.w, "px");
71759
71760
  this.container.style.height = "".concat((_this_content2 = this.content) === null || _this_content2 === void 0 ? void 0 : (_this_content_extra1 = _this_content2.extra) === null || _this_content_extra1 === void 0 ? void 0 : (_this_content_extra_sz1 = _this_content_extra1.sz) === null || _this_content_extra_sz1 === void 0 ? void 0 : _this_content_extra_sz1.h, "px");
71760
71761
  this.container.dataset.state = this.box.area(this.plane.size) > 0 ? "visible" : "hidden";
71762
+ this.container.childNodes.forEach(function(node) {
71763
+ if (_instanceof(node, HTMLElement)) {
71764
+ var _this_content_extra_sz, _this_content_extra, _this_content, _this_content_extra_sz1, _this_content_extra1, _this_content1;
71765
+ node.style.width = "".concat((_this_content = _this.content) === null || _this_content === void 0 ? void 0 : (_this_content_extra = _this_content.extra) === null || _this_content_extra === void 0 ? void 0 : (_this_content_extra_sz = _this_content_extra.sz) === null || _this_content_extra_sz === void 0 ? void 0 : _this_content_extra_sz.w, "px");
71766
+ node.style.height = "".concat((_this_content1 = _this.content) === null || _this_content1 === void 0 ? void 0 : (_this_content_extra1 = _this_content1.extra) === null || _this_content_extra1 === void 0 ? void 0 : (_this_content_extra_sz1 = _this_content_extra1.sz) === null || _this_content_extra_sz1 === void 0 ? void 0 : _this_content_extra_sz1.h, "px");
71767
+ }
71768
+ });
71761
71769
  }
71762
71770
  }
71763
71771
  ]);