@brndts/brndts-ads 1.14.5 → 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.css +5 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +105 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -74084,6 +74084,9 @@ var YoutubeMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74084
74084
|
this.instance = event.target;
|
74085
74085
|
this.ready = true;
|
74086
74086
|
this.observeResize();
|
74087
|
+
if (this._source && this._source.type === "playlist") {
|
74088
|
+
this._source.videoId = this.videoId;
|
74089
|
+
}
|
74087
74090
|
this.context.store.dispatch({
|
74088
74091
|
type: "READY"
|
74089
74092
|
});
|
@@ -81534,11 +81537,18 @@ var Backdrop = /*#__PURE__*/ function() {
|
|
81534
81537
|
"use strict";
|
81535
81538
|
function Backdrop(context) {
|
81536
81539
|
_class_call_check(this, Backdrop);
|
81540
|
+
var _this_context_config_get_backdrop, _this_context_config_get;
|
81537
81541
|
this.context = context;
|
81538
81542
|
this.container = document.createElement("div");
|
81539
81543
|
this.container.id = "BRNDTS_BKD";
|
81540
81544
|
this.container.style.width = "100%";
|
81541
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
|
+
}
|
81542
81552
|
}
|
81543
81553
|
_create_class(Backdrop, [
|
81544
81554
|
{
|
@@ -81546,6 +81556,18 @@ var Backdrop = /*#__PURE__*/ function() {
|
|
81546
81556
|
get: function get() {
|
81547
81557
|
return this.container;
|
81548
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
|
+
}
|
81549
81571
|
}
|
81550
81572
|
]);
|
81551
81573
|
return Backdrop;
|
@@ -81849,7 +81871,7 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
|
|
81849
81871
|
{
|
81850
81872
|
key: "wrapMedia",
|
81851
81873
|
value: function wrapMedia() {
|
81852
|
-
var _this_media_view_parentElement, _this_media_view;
|
81874
|
+
var _this_media_view_parentElement, _this_media_view, _this_context_config_get;
|
81853
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") {
|
81854
81876
|
this.context.elements.container = this.media.view.parentElement;
|
81855
81877
|
}
|
@@ -81859,12 +81881,12 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
|
|
81859
81881
|
} else if (this.context.elements.container) {
|
81860
81882
|
this.container = this.context.elements.container;
|
81861
81883
|
}
|
81862
|
-
|
81863
|
-
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));
|
81864
81886
|
if (existingBackdrop) {
|
81865
81887
|
this.container.removeChild(existingBackdrop);
|
81866
81888
|
}
|
81867
|
-
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);
|
81868
81890
|
this.migrateStyles();
|
81869
81891
|
if (this.media.view) {
|
81870
81892
|
this.media.view.style.position = "absolute";
|
@@ -81875,6 +81897,14 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
|
|
81875
81897
|
this.media.view.classList.toggle("transition");
|
81876
81898
|
}
|
81877
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
|
+
}
|
81878
81908
|
}
|
81879
81909
|
},
|
81880
81910
|
{
|
@@ -83067,7 +83097,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83067
83097
|
y: 0
|
83068
83098
|
};
|
83069
83099
|
_this.sizePercentage = 100;
|
83070
|
-
_this.positionOffset =
|
83100
|
+
_this.positionOffset = {
|
83101
|
+
x: 0,
|
83102
|
+
y: 0
|
83103
|
+
};
|
83071
83104
|
_this.context = context;
|
83072
83105
|
if (_this.context.media.view) {
|
83073
83106
|
_this.context.media.view.style.setProperty("transition", "width 0.5s ease, height 0.5s ease");
|
@@ -83087,17 +83120,18 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83087
83120
|
{
|
83088
83121
|
key: "expectedDimensions",
|
83089
83122
|
value: function expectedDimensions(percentage) {
|
83090
|
-
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
83123
|
+
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
83124
|
+
x: 0,
|
83125
|
+
y: 0
|
83126
|
+
};
|
83091
83127
|
if (this.context.media.view) {
|
83092
83128
|
var _this_context_elements_container, _this_context_elements_container1, _this_context_elements_container2, _this_context_elements_container3;
|
83093
83129
|
this.sizePercentage = percentage;
|
83094
83130
|
this.positionOffset = position;
|
83095
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);
|
83096
|
-
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);
|
83097
|
-
var marginValue = Math.min(adjustedPosition.width, adjustedPosition.height);
|
83098
83132
|
var newPosition = {
|
83099
|
-
x:
|
83100
|
-
y:
|
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)
|
83101
83135
|
};
|
83102
83136
|
return {
|
83103
83137
|
size: size,
|
@@ -83110,7 +83144,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83110
83144
|
{
|
83111
83145
|
key: "reduceSizeByPercentage",
|
83112
83146
|
value: function reduceSizeByPercentage(percentage) {
|
83113
|
-
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
83147
|
+
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
83148
|
+
x: 0,
|
83149
|
+
y: 0
|
83150
|
+
};
|
83114
83151
|
var updated = false;
|
83115
83152
|
if (this.context.media.view) {
|
83116
83153
|
var _this_context_elements_container, _this_context_elements_container1, _this_context_elements_container2, _this_context_elements_container3;
|
@@ -83124,15 +83161,17 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83124
83161
|
this.context.media.setSize(this.size.width, this.size.height);
|
83125
83162
|
updated = true;
|
83126
83163
|
}
|
83127
|
-
var adjustedPosition =
|
83128
|
-
|
83129
|
-
|
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) {
|
83130
83169
|
var _this_context_interface;
|
83131
|
-
this.position.x =
|
83132
|
-
this.position.y =
|
83170
|
+
this.position.x = adjustedPosition.width;
|
83171
|
+
this.position.y = adjustedPosition.height;
|
83133
83172
|
this.context.media.view.style.left = "".concat(this.position.x, "px");
|
83134
83173
|
this.context.media.view.style.top = "".concat(this.position.y, "px");
|
83135
|
-
(_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(
|
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);
|
83136
83175
|
updated = true;
|
83137
83176
|
}
|
83138
83177
|
}
|
@@ -83145,7 +83184,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83145
83184
|
{
|
83146
83185
|
key: "update",
|
83147
83186
|
value: function update(percentage) {
|
83148
|
-
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
83187
|
+
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
83188
|
+
x: 0,
|
83189
|
+
y: 0
|
83190
|
+
};
|
83149
83191
|
if (!this.isResized) {
|
83150
83192
|
return this.restore();
|
83151
83193
|
}
|
@@ -83162,15 +83204,17 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83162
83204
|
this.context.media.setSize(this.size.width, this.size.height);
|
83163
83205
|
updated = true;
|
83164
83206
|
}
|
83165
|
-
var adjustedPosition =
|
83166
|
-
|
83167
|
-
|
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) {
|
83168
83212
|
var _this_context_interface;
|
83169
|
-
this.position.x =
|
83170
|
-
this.position.y =
|
83213
|
+
this.position.x = adjustedPosition.width;
|
83214
|
+
this.position.y = adjustedPosition.height;
|
83171
83215
|
this.context.media.view.style.left = "".concat(this.position.x, "px");
|
83172
83216
|
this.context.media.view.style.top = "".concat(this.position.y, "px");
|
83173
|
-
(_this_context_interface = this.context.interface) === null || _this_context_interface === void 0 ? void 0 : _this_context_interface.updatePosition(
|
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);
|
83174
83218
|
updated = true;
|
83175
83219
|
}
|
83176
83220
|
}
|
@@ -83195,7 +83239,10 @@ var MediaElementSizeController = /*#__PURE__*/ function(_import_events9_default)
|
|
83195
83239
|
y: 0
|
83196
83240
|
};
|
83197
83241
|
this.sizePercentage = 100;
|
83198
|
-
this.positionOffset =
|
83242
|
+
this.positionOffset = {
|
83243
|
+
x: 0,
|
83244
|
+
y: 0
|
83245
|
+
};
|
83199
83246
|
if (size.width !== this.size.width || size.height !== this.size.height) {
|
83200
83247
|
this.size = size;
|
83201
83248
|
this.context.media.setSize(this.size.width, this.size.height);
|
@@ -83271,7 +83318,13 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
83271
83318
|
this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config);
|
83272
83319
|
(_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.on("presentation", function() {
|
83273
83320
|
var _this_mediaElementSizeController;
|
83274
|
-
var expected = (_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.expectedDimensions(70, _this.context.store.getState().fullscreen ?
|
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
|
+
});
|
83275
83328
|
_this.packer.setCutout({
|
83276
83329
|
x: (expected === null || expected === void 0 ? void 0 : expected.position.x) || 0,
|
83277
83330
|
y: (expected === null || expected === void 0 ? void 0 : expected.position.y) || 0,
|
@@ -83280,19 +83333,27 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
83280
83333
|
}, _this.context.store.getState().fullscreen ? "fullscreen" : "default");
|
83281
83334
|
_this.packer.pack();
|
83282
83335
|
if (_this.packer.packed.length > 0) {
|
83283
|
-
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();
|
83284
83338
|
(_this_adPresentationStrategy = _this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.startedPresentation();
|
83285
83339
|
(_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.addAreas(_this.packer.areas);
|
83286
83340
|
(_this_regionsRenderer1 = _this.regionsRenderer) === null || _this_regionsRenderer1 === void 0 ? void 0 : _this_regionsRenderer1.render(_this.packer.packed);
|
83287
|
-
(_this_mediaElementSizeController1 = _this.mediaElementSizeController) === null || _this_mediaElementSizeController1 === void 0 ? void 0 : _this_mediaElementSizeController1.reduceSizeByPercentage(70, _this.context.store.getState().fullscreen ?
|
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
|
+
});
|
83288
83348
|
}
|
83289
83349
|
}).on("pace", function() {}).on("cooldown", function() {
|
83290
83350
|
var _this_regionsRenderer;
|
83291
83351
|
(_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
|
83292
83352
|
_this.packer.reset();
|
83293
83353
|
setTimeout(function() {
|
83294
|
-
var _this_mediaElementSizeController;
|
83354
|
+
var _this_mediaElementSizeController, _this_context_interface_backdrop, _this_context_interface;
|
83295
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();
|
83296
83357
|
}, 500);
|
83297
83358
|
});
|
83298
83359
|
this.resizeObserver = new ResizeObserver(function() {
|
@@ -83321,7 +83382,13 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
83321
83382
|
var fullscreen = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
83322
83383
|
var _this_context_elements_container, _this_context_elements_container1, _this_regionsRenderer, _this_mediaElementSizeController;
|
83323
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);
|
83324
|
-
var updatedMediaSize = (_this_mediaElementSizeController = this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.update(70, fullscreen ?
|
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
|
+
});
|
83325
83392
|
if (updatedMediaSize) {
|
83326
83393
|
var _this_mediaElementSizeController1, _this_mediaElementSizeController2, _this_mediaElementSizeController3, _this_mediaElementSizeController4;
|
83327
83394
|
this.packer.setCutout({
|
@@ -83332,13 +83399,15 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
83332
83399
|
}, fullscreen ? "fullscreen" : "default");
|
83333
83400
|
this.packer.repack();
|
83334
83401
|
if (this.packer.packed.length > 0) {
|
83335
|
-
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();
|
83336
83404
|
(_this_regionsRenderer1 = this.regionsRenderer) === null || _this_regionsRenderer1 === void 0 ? void 0 : _this_regionsRenderer1.addAreas(this.packer.areas);
|
83337
83405
|
(_this_regionsRenderer2 = this.regionsRenderer) === null || _this_regionsRenderer2 === void 0 ? void 0 : _this_regionsRenderer2.render(this.packer.packed);
|
83338
83406
|
} else {
|
83339
|
-
var _this_regionsRenderer3, _this_mediaElementSizeController5;
|
83407
|
+
var _this_regionsRenderer3, _this_mediaElementSizeController5, _this_context_interface_backdrop1, _this_context_interface1;
|
83340
83408
|
(_this_regionsRenderer3 = this.regionsRenderer) === null || _this_regionsRenderer3 === void 0 ? void 0 : _this_regionsRenderer3.clear();
|
83341
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();
|
83342
83411
|
}
|
83343
83412
|
}
|
83344
83413
|
}
|
@@ -83369,9 +83438,10 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
83369
83438
|
{
|
83370
83439
|
key: "stop",
|
83371
83440
|
value: function stop() {
|
83372
|
-
var _this_adPresentationStrategy, _this_regionsRenderer;
|
83441
|
+
var _this_adPresentationStrategy, _this_regionsRenderer, _this_context_interface_backdrop, _this_context_interface;
|
83373
83442
|
(_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.stop();
|
83374
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();
|
83375
83445
|
}
|
83376
83446
|
},
|
83377
83447
|
{
|
@@ -84493,7 +84563,7 @@ var VideoAd = /*#__PURE__*/ function() {
|
|
84493
84563
|
{
|
84494
84564
|
key: "handleInfo",
|
84495
84565
|
value: function handleInfo(data) {
|
84496
|
-
var _this_presentation;
|
84566
|
+
var _this_presentation, _this_presentation1;
|
84497
84567
|
if (!data.video) {
|
84498
84568
|
ErrorHandler.handle(new InternalError("Setup failed: no video identifier"));
|
84499
84569
|
return;
|
@@ -84528,6 +84598,7 @@ var VideoAd = /*#__PURE__*/ function() {
|
|
84528
84598
|
ts: 0
|
84529
84599
|
});
|
84530
84600
|
(_this_presentation = this.presentation) === null || _this_presentation === void 0 ? void 0 : _this_presentation.setup();
|
84601
|
+
(_this_presentation1 = this.presentation) === null || _this_presentation1 === void 0 ? void 0 : _this_presentation1.start();
|
84531
84602
|
}
|
84532
84603
|
},
|
84533
84604
|
{
|