@brndts/brndts-ads 1.14.6 → 1.14.7

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
@@ -81537,11 +81537,18 @@ var Backdrop = /*#__PURE__*/ function() {
81537
81537
  "use strict";
81538
81538
  function Backdrop(context) {
81539
81539
  _class_call_check(this, Backdrop);
81540
+ var _this_context_config_get_backdrop, _this_context_config_get;
81540
81541
  this.context = context;
81541
81542
  this.container = document.createElement("div");
81542
81543
  this.container.id = "BRNDTS_BKD";
81543
81544
  this.container.style.width = "100%";
81544
81545
  this.container.style.height = "100%";
81546
+ if ((_this_context_config_get = this.context.config.get("branding")) === null || _this_context_config_get === void 0 ? void 0 : (_this_context_config_get_backdrop = _this_context_config_get.backdrop) === null || _this_context_config_get_backdrop === void 0 ? void 0 : _this_context_config_get_backdrop.src) {
81547
+ var _this_context_config_get_backdrop1, _this_context_config_get1;
81548
+ this.container.style.backgroundImage = "url(".concat((_this_context_config_get1 = this.context.config.get("branding")) === null || _this_context_config_get1 === void 0 ? void 0 : (_this_context_config_get_backdrop1 = _this_context_config_get1.backdrop) === null || _this_context_config_get_backdrop1 === void 0 ? void 0 : _this_context_config_get_backdrop1.src, ")");
81549
+ this.container.style.backgroundSize = "cover";
81550
+ this.container.style.backgroundPosition = "center";
81551
+ }
81545
81552
  }
81546
81553
  _create_class(Backdrop, [
81547
81554
  {
@@ -81549,6 +81556,18 @@ var Backdrop = /*#__PURE__*/ function() {
81549
81556
  get: function get() {
81550
81557
  return this.container;
81551
81558
  }
81559
+ },
81560
+ {
81561
+ key: "show",
81562
+ value: function show() {
81563
+ this.container.style.opacity = "1";
81564
+ }
81565
+ },
81566
+ {
81567
+ key: "hide",
81568
+ value: function hide() {
81569
+ this.container.style.opacity = "0";
81570
+ }
81552
81571
  }
81553
81572
  ]);
81554
81573
  return Backdrop;
@@ -81852,7 +81871,7 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
81852
81871
  {
81853
81872
  key: "wrapMedia",
81854
81873
  value: function wrapMedia() {
81855
- var _this_media_view_parentElement, _this_media_view;
81874
+ var _this_media_view_parentElement, _this_media_view, _this_context_config_get;
81856
81875
  if (((_this_media_view = this.media.view) === null || _this_media_view === void 0 ? void 0 : (_this_media_view_parentElement = _this_media_view.parentElement) === null || _this_media_view_parentElement === void 0 ? void 0 : _this_media_view_parentElement.id) === "BRNDTS") {
81857
81876
  this.context.elements.container = this.media.view.parentElement;
81858
81877
  }
@@ -81862,12 +81881,12 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
81862
81881
  } else if (this.context.elements.container) {
81863
81882
  this.container = this.context.elements.container;
81864
81883
  }
81865
- var backdrop = new Backdrop(this.context);
81866
- var existingBackdrop = this.container.querySelector("#".concat(backdrop.view.id));
81884
+ this.backdrop = new Backdrop(this.context);
81885
+ var existingBackdrop = this.container.querySelector("#".concat(this.backdrop.view.id));
81867
81886
  if (existingBackdrop) {
81868
81887
  this.container.removeChild(existingBackdrop);
81869
81888
  }
81870
- this.container.firstChild ? this.container.insertBefore(backdrop.view, this.container.firstChild) : this.container.appendChild(backdrop.view);
81889
+ this.container.firstChild ? this.container.insertBefore(this.backdrop.view, this.container.firstChild) : this.container.appendChild(this.backdrop.view);
81871
81890
  this.migrateStyles();
81872
81891
  if (this.media.view) {
81873
81892
  this.media.view.style.position = "absolute";
@@ -81878,6 +81897,14 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
81878
81897
  this.media.view.classList.toggle("transition");
81879
81898
  }
81880
81899
  this.container.dataset.brndts_d = this.context.device.device.type;
81900
+ if ((_this_context_config_get = this.context.config.get("branding")) === null || _this_context_config_get === void 0 ? void 0 : _this_context_config_get.colors) {
81901
+ var _this_context_config_get_colors, _this_context_config_get1;
81902
+ if ((_this_context_config_get1 = this.context.config.get("branding")) === null || _this_context_config_get1 === void 0 ? void 0 : (_this_context_config_get_colors = _this_context_config_get1.colors) === null || _this_context_config_get_colors === void 0 ? void 0 : _this_context_config_get_colors.primary) {
81903
+ var _this_context_config_get_colors1, _this_context_config_get2, _this_context_config_get_colors2, _this_context_config_get3, _this_context_config_get_colors3, _this_context_config_get4;
81904
+ this.container.style.setProperty("--brndts-primary-color", ((_this_context_config_get2 = this.context.config.get("branding")) === null || _this_context_config_get2 === void 0 ? void 0 : (_this_context_config_get_colors1 = _this_context_config_get2.colors) === null || _this_context_config_get_colors1 === void 0 ? void 0 : _this_context_config_get_colors1.primary) || "#024ab67a");
81905
+ this.container.style.setProperty("--brndts-secondary-color", ((_this_context_config_get3 = this.context.config.get("branding")) === null || _this_context_config_get3 === void 0 ? void 0 : (_this_context_config_get_colors2 = _this_context_config_get3.colors) === null || _this_context_config_get_colors2 === void 0 ? void 0 : _this_context_config_get_colors2.primary) || ((_this_context_config_get4 = this.context.config.get("branding")) === null || _this_context_config_get4 === void 0 ? void 0 : (_this_context_config_get_colors3 = _this_context_config_get4.colors) === null || _this_context_config_get_colors3 === void 0 ? void 0 : _this_context_config_get_colors3.primary) || "#26e29483");
81906
+ }
81907
+ }
81881
81908
  }
81882
81909
  },
81883
81910
  {
@@ -83070,7 +83097,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83070
83097
  y: 0
83071
83098
  };
83072
83099
  _this.sizePercentage = 100;
83073
- _this.positionOffset = 0;
83100
+ _this.positionOffset = {
83101
+ x: 0,
83102
+ y: 0
83103
+ };
83074
83104
  _this.context = context;
83075
83105
  if (_this.context.media.view) {
83076
83106
  _this.context.media.view.style.setProperty("transition", "width 0.5s ease, height 0.5s ease");
@@ -83090,17 +83120,18 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83090
83120
  {
83091
83121
  key: "expectedDimensions",
83092
83122
  value: function expectedDimensions(percentage) {
83093
- var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
83123
+ var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
83124
+ x: 0,
83125
+ y: 0
83126
+ };
83094
83127
  if (this.context.media.view) {
83095
83128
  var _this_context_elements_container, _this_context_elements_container1, _this_context_elements_container2, _this_context_elements_container3;
83096
83129
  this.sizePercentage = percentage;
83097
83130
  this.positionOffset = position;
83098
83131
  var size = adjustSizeWithAspectRatio((((_this_context_elements_container = this.context.elements.container) === null || _this_context_elements_container === void 0 ? void 0 : _this_context_elements_container.getBoundingClientRect().width) || 0) * (percentage / 100), (((_this_context_elements_container1 = this.context.elements.container) === null || _this_context_elements_container1 === void 0 ? void 0 : _this_context_elements_container1.getBoundingClientRect().height) || 0) * (percentage / 100), this.context.media.aspectRatio);
83099
- var adjustedPosition = adjustSizeWithAspectRatio((((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (position / 100), (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (position / 100), this.context.media.aspectRatio);
83100
- var marginValue = Math.min(adjustedPosition.width, adjustedPosition.height);
83101
83132
  var newPosition = {
83102
- x: marginValue,
83103
- y: marginValue
83133
+ x: (((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (position.x / 100),
83134
+ y: (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (position.y / 100)
83104
83135
  };
83105
83136
  return {
83106
83137
  size: size,
@@ -83113,7 +83144,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83113
83144
  {
83114
83145
  key: "reduceSizeByPercentage",
83115
83146
  value: function reduceSizeByPercentage(percentage) {
83116
- var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
83147
+ var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
83148
+ x: 0,
83149
+ y: 0
83150
+ };
83117
83151
  var updated = false;
83118
83152
  if (this.context.media.view) {
83119
83153
  var _this_context_elements_container, _this_context_elements_container1, _this_context_elements_container2, _this_context_elements_container3;
@@ -83127,15 +83161,17 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83127
83161
  this.context.media.setSize(this.size.width, this.size.height);
83128
83162
  updated = true;
83129
83163
  }
83130
- var adjustedPosition = adjustSizeWithAspectRatio((((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (position / 100), (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (position / 100), this.context.media.aspectRatio);
83131
- var marginValue = Math.min(adjustedPosition.width, adjustedPosition.height);
83132
- if (this.position.x !== marginValue || this.position.y !== marginValue) {
83164
+ var adjustedPosition = {
83165
+ width: (((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (position.x / 100),
83166
+ height: (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (position.y / 100)
83167
+ };
83168
+ if (this.position.x !== adjustedPosition.width || this.position.y !== adjustedPosition.height) {
83133
83169
  var _this_context_interface;
83134
- this.position.x = marginValue;
83135
- this.position.y = marginValue;
83170
+ this.position.x = adjustedPosition.width;
83171
+ this.position.y = adjustedPosition.height;
83136
83172
  this.context.media.view.style.left = "".concat(this.position.x, "px");
83137
83173
  this.context.media.view.style.top = "".concat(this.position.y, "px");
83138
- (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(marginValue, marginValue);
83174
+ (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(this.position.y, this.position.x);
83139
83175
  updated = true;
83140
83176
  }
83141
83177
  }
@@ -83148,7 +83184,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83148
83184
  {
83149
83185
  key: "update",
83150
83186
  value: function update(percentage) {
83151
- var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
83187
+ var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
83188
+ x: 0,
83189
+ y: 0
83190
+ };
83152
83191
  if (!this.isResized) {
83153
83192
  return this.restore();
83154
83193
  }
@@ -83165,15 +83204,17 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83165
83204
  this.context.media.setSize(this.size.width, this.size.height);
83166
83205
  updated = true;
83167
83206
  }
83168
- var adjustedPosition = adjustSizeWithAspectRatio((((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (this.positionOffset / 100), (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (this.positionOffset / 100), this.context.media.aspectRatio);
83169
- var marginValue = Math.min(adjustedPosition.width, adjustedPosition.height);
83170
- if (this.position.x !== marginValue || this.position.y !== marginValue) {
83207
+ var adjustedPosition = {
83208
+ width: (((_this_context_elements_container2 = this.context.elements.container) === null || _this_context_elements_container2 === void 0 ? void 0 : _this_context_elements_container2.getBoundingClientRect().width) || 0) * (position.x / 100),
83209
+ height: (((_this_context_elements_container3 = this.context.elements.container) === null || _this_context_elements_container3 === void 0 ? void 0 : _this_context_elements_container3.getBoundingClientRect().height) || 0) * (position.y / 100)
83210
+ };
83211
+ if (this.position.x !== adjustedPosition.width || this.position.y !== adjustedPosition.height) {
83171
83212
  var _this_context_interface;
83172
- this.position.x = marginValue;
83173
- this.position.y = marginValue;
83213
+ this.position.x = adjustedPosition.width;
83214
+ this.position.y = adjustedPosition.height;
83174
83215
  this.context.media.view.style.left = "".concat(this.position.x, "px");
83175
83216
  this.context.media.view.style.top = "".concat(this.position.y, "px");
83176
- (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(marginValue, marginValue);
83217
+ (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(this.position.y, this.position.x);
83177
83218
  updated = true;
83178
83219
  }
83179
83220
  }
@@ -83198,7 +83239,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
83198
83239
  y: 0
83199
83240
  };
83200
83241
  this.sizePercentage = 100;
83201
- this.positionOffset = 0;
83242
+ this.positionOffset = {
83243
+ x: 0,
83244
+ y: 0
83245
+ };
83202
83246
  if (size.width !== this.size.width || size.height !== this.size.height) {
83203
83247
  this.size = size;
83204
83248
  this.context.media.setSize(this.size.width, this.size.height);
@@ -83274,7 +83318,13 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
83274
83318
  this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config);
83275
83319
  (_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.on("presentation", function() {
83276
83320
  var _this_mediaElementSizeController;
83277
- var expected = (_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.expectedDimensions(70, _this.context.store.getState().fullscreen ? 10 : 0);
83321
+ var expected = (_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.expectedDimensions(70, _this.context.store.getState().fullscreen ? {
83322
+ x: 10,
83323
+ y: 10
83324
+ } : {
83325
+ x: 0,
83326
+ y: 10
83327
+ });
83278
83328
  _this.packer.setCutout({
83279
83329
  x: (expected === null || expected === void 0 ? void 0 : expected.position.x) || 0,
83280
83330
  y: (expected === null || expected === void 0 ? void 0 : expected.position.y) || 0,
@@ -83283,19 +83333,27 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
83283
83333
  }, _this.context.store.getState().fullscreen ? "fullscreen" : "default");
83284
83334
  _this.packer.pack();
83285
83335
  if (_this.packer.packed.length > 0) {
83286
- var _this_adPresentationStrategy, _this_regionsRenderer, _this_regionsRenderer1, _this_mediaElementSizeController1;
83336
+ var _this_context_interface_backdrop, _this_context_interface, _this_adPresentationStrategy, _this_regionsRenderer, _this_regionsRenderer1, _this_mediaElementSizeController1;
83337
+ (_this_context_interface = _this.context.interface) === null || _this_context_interface === void 0 ? void 0 : (_this_context_interface_backdrop = _this_context_interface.backdrop) === null || _this_context_interface_backdrop === void 0 ? void 0 : _this_context_interface_backdrop.show();
83287
83338
  (_this_adPresentationStrategy = _this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.startedPresentation();
83288
83339
  (_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.addAreas(_this.packer.areas);
83289
83340
  (_this_regionsRenderer1 = _this.regionsRenderer) === null || _this_regionsRenderer1 === void 0 ? void 0 : _this_regionsRenderer1.render(_this.packer.packed);
83290
- (_this_mediaElementSizeController1 = _this.mediaElementSizeController) === null || _this_mediaElementSizeController1 === void 0 ? void 0 : _this_mediaElementSizeController1.reduceSizeByPercentage(70, _this.context.store.getState().fullscreen ? 10 : 0);
83341
+ (_this_mediaElementSizeController1 = _this.mediaElementSizeController) === null || _this_mediaElementSizeController1 === void 0 ? void 0 : _this_mediaElementSizeController1.reduceSizeByPercentage(70, _this.context.store.getState().fullscreen ? {
83342
+ x: 10,
83343
+ y: 10
83344
+ } : {
83345
+ x: 0,
83346
+ y: 10
83347
+ });
83291
83348
  }
83292
83349
  }).on("pace", function() {}).on("cooldown", function() {
83293
83350
  var _this_regionsRenderer;
83294
83351
  (_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
83295
83352
  _this.packer.reset();
83296
83353
  setTimeout(function() {
83297
- var _this_mediaElementSizeController;
83354
+ var _this_mediaElementSizeController, _this_context_interface_backdrop, _this_context_interface;
83298
83355
  (_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.restore();
83356
+ (_this_context_interface = _this.context.interface) === null || _this_context_interface === void 0 ? void 0 : (_this_context_interface_backdrop = _this_context_interface.backdrop) === null || _this_context_interface_backdrop === void 0 ? void 0 : _this_context_interface_backdrop.hide();
83299
83357
  }, 500);
83300
83358
  });
83301
83359
  this.resizeObserver = new ResizeObserver(function() {
@@ -83324,7 +83382,13 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
83324
83382
  var fullscreen = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
83325
83383
  var _this_context_elements_container, _this_context_elements_container1, _this_regionsRenderer, _this_mediaElementSizeController;
83326
83384
  (_this_regionsRenderer = this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.updateSize(((_this_context_elements_container = this.context.elements.container) === null || _this_context_elements_container === void 0 ? void 0 : _this_context_elements_container.getBoundingClientRect().width) || 0, ((_this_context_elements_container1 = this.context.elements.container) === null || _this_context_elements_container1 === void 0 ? void 0 : _this_context_elements_container1.getBoundingClientRect().height) || 0, this.context.media.aspectRatio);
83327
- var updatedMediaSize = (_this_mediaElementSizeController = this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.update(70, fullscreen ? 10 : 0);
83385
+ var updatedMediaSize = (_this_mediaElementSizeController = this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.update(70, fullscreen ? {
83386
+ x: 10,
83387
+ y: 10
83388
+ } : {
83389
+ x: 0,
83390
+ y: 10
83391
+ });
83328
83392
  if (updatedMediaSize) {
83329
83393
  var _this_mediaElementSizeController1, _this_mediaElementSizeController2, _this_mediaElementSizeController3, _this_mediaElementSizeController4;
83330
83394
  this.packer.setCutout({
@@ -83335,13 +83399,15 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
83335
83399
  }, fullscreen ? "fullscreen" : "default");
83336
83400
  this.packer.repack();
83337
83401
  if (this.packer.packed.length > 0) {
83338
- var _this_regionsRenderer1, _this_regionsRenderer2;
83402
+ var _this_context_interface_backdrop, _this_context_interface, _this_regionsRenderer1, _this_regionsRenderer2;
83403
+ (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : (_this_context_interface_backdrop = _this_context_interface.backdrop) === null || _this_context_interface_backdrop === void 0 ? void 0 : _this_context_interface_backdrop.show();
83339
83404
  (_this_regionsRenderer1 = this.regionsRenderer) === null || _this_regionsRenderer1 === void 0 ? void 0 : _this_regionsRenderer1.addAreas(this.packer.areas);
83340
83405
  (_this_regionsRenderer2 = this.regionsRenderer) === null || _this_regionsRenderer2 === void 0 ? void 0 : _this_regionsRenderer2.render(this.packer.packed);
83341
83406
  } else {
83342
- var _this_regionsRenderer3, _this_mediaElementSizeController5;
83407
+ var _this_regionsRenderer3, _this_mediaElementSizeController5, _this_context_interface_backdrop1, _this_context_interface1;
83343
83408
  (_this_regionsRenderer3 = this.regionsRenderer) === null || _this_regionsRenderer3 === void 0 ? void 0 : _this_regionsRenderer3.clear();
83344
83409
  (_this_mediaElementSizeController5 = this.mediaElementSizeController) === null || _this_mediaElementSizeController5 === void 0 ? void 0 : _this_mediaElementSizeController5.restore();
83410
+ (_this_context_interface1 = this.context.interface) === null || _this_context_interface1 === void 0 ? void 0 : (_this_context_interface_backdrop1 = _this_context_interface1.backdrop) === null || _this_context_interface_backdrop1 === void 0 ? void 0 : _this_context_interface_backdrop1.hide();
83345
83411
  }
83346
83412
  }
83347
83413
  }
@@ -83372,9 +83438,10 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
83372
83438
  {
83373
83439
  key: "stop",
83374
83440
  value: function stop() {
83375
- var _this_adPresentationStrategy, _this_regionsRenderer;
83441
+ var _this_adPresentationStrategy, _this_regionsRenderer, _this_context_interface_backdrop, _this_context_interface;
83376
83442
  (_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.stop();
83377
83443
  (_this_regionsRenderer = this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
83444
+ (_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : (_this_context_interface_backdrop = _this_context_interface.backdrop) === null || _this_context_interface_backdrop === void 0 ? void 0 : _this_context_interface_backdrop.hide();
83378
83445
  }
83379
83446
  },
83380
83447
  {