@brndts/brndts-ads 1.12.0 → 1.13.1
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 +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +269 -108
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +269 -108
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
package/dist/index.mjs
CHANGED
@@ -67683,6 +67683,16 @@ var BRNDTSConfig = /*#__PURE__*/ function() {
|
|
67683
67683
|
}).apply(this, arguments);
|
67684
67684
|
}
|
67685
67685
|
},
|
67686
|
+
{
|
67687
|
+
key: "refresh",
|
67688
|
+
value: function refresh(provided, refetch) {
|
67689
|
+
this.provided = provided || this.provided;
|
67690
|
+
if ((refetch === null || refetch === void 0 ? void 0 : refetch.host) && (refetch === null || refetch === void 0 ? void 0 : refetch.key)) {
|
67691
|
+
this.fetch(refetch);
|
67692
|
+
}
|
67693
|
+
this.merge();
|
67694
|
+
}
|
67695
|
+
},
|
67686
67696
|
{
|
67687
67697
|
key: "get",
|
67688
67698
|
value: function get(key) {
|
@@ -67775,7 +67785,38 @@ var AdsConfigsClass = /*#__PURE__*/ function(BRNDTSConfig) {
|
|
67775
67785
|
key: "defaults",
|
67776
67786
|
get: function get() {
|
67777
67787
|
return {
|
67778
|
-
general: {
|
67788
|
+
general: {
|
67789
|
+
clickability: {
|
67790
|
+
value: true,
|
67791
|
+
setting: {
|
67792
|
+
code: "clickability",
|
67793
|
+
name: "clickability",
|
67794
|
+
description: "",
|
67795
|
+
type: "boolean",
|
67796
|
+
constraints: {}
|
67797
|
+
}
|
67798
|
+
},
|
67799
|
+
visibility_on_pause: {
|
67800
|
+
value: true,
|
67801
|
+
setting: {
|
67802
|
+
code: "visibility_on_pause",
|
67803
|
+
name: "visibility_on_pause",
|
67804
|
+
description: "",
|
67805
|
+
type: "boolean",
|
67806
|
+
constraints: {}
|
67807
|
+
}
|
67808
|
+
},
|
67809
|
+
debug_mode: {
|
67810
|
+
value: false,
|
67811
|
+
setting: {
|
67812
|
+
code: "debug_mode",
|
67813
|
+
name: "debug_mode",
|
67814
|
+
description: "",
|
67815
|
+
type: "boolean",
|
67816
|
+
constraints: {}
|
67817
|
+
}
|
67818
|
+
}
|
67819
|
+
},
|
67779
67820
|
adStrategies: {}
|
67780
67821
|
};
|
67781
67822
|
}
|
@@ -67838,7 +67879,6 @@ var AdsConfigsClass = /*#__PURE__*/ function(BRNDTSConfig) {
|
|
67838
67879
|
general: _object_spread({}, ((_this_remote = _this.remote) === null || _this_remote === void 0 ? void 0 : _this_remote.general) || {}),
|
67839
67880
|
adStrategies: strategies
|
67840
67881
|
};
|
67841
|
-
console.log("Ads strategies fetched", _this.remote);
|
67842
67882
|
_this.merge();
|
67843
67883
|
})
|
67844
67884
|
];
|
@@ -67862,15 +67902,21 @@ var Config = /*#__PURE__*/ function() {
|
|
67862
67902
|
var _providedConfigs_auth;
|
67863
67903
|
this.genericConfigs = new GenericConfigsClass(providedConfigs);
|
67864
67904
|
this.adsConfigs = new AdsConfigsClass(providedAdsConfigs || {});
|
67865
|
-
console.log("BRNDTS Config initialized", providedConfigs, providedAdsConfigs);
|
67866
67905
|
if (!((_providedConfigs_auth = providedConfigs.auth) === null || _providedConfigs_auth === void 0 ? void 0 : _providedConfigs_auth.host)) {
|
67867
67906
|
throw new InternalError("No authority configuration provided!");
|
67868
67907
|
}
|
67869
67908
|
if (!providedConfigs.key) {
|
67870
|
-
throw new InternalError("No
|
67909
|
+
throw new InternalError("No key provided!");
|
67871
67910
|
}
|
67872
67911
|
}
|
67873
67912
|
_create_class(Config, [
|
67913
|
+
{
|
67914
|
+
key: "refresh",
|
67915
|
+
value: function refresh(providedConfigs, providedAdsConfigs) {
|
67916
|
+
this.genericConfigs.refresh(providedConfigs);
|
67917
|
+
this.adsConfigs.refresh(providedAdsConfigs);
|
67918
|
+
}
|
67919
|
+
},
|
67874
67920
|
{
|
67875
67921
|
key: "fetch",
|
67876
67922
|
value: function fetch1() {
|
@@ -69082,6 +69128,22 @@ var RecorderFactory = /*#__PURE__*/ function() {
|
|
69082
69128
|
}();
|
69083
69129
|
// src/Ads/Providers/BRNDTSDefault/BRNDTSDefaultProvider.ts
|
69084
69130
|
var icon = '\n<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Camada_1" data-name="Camada 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 875 245">\n <defs>\n <style>\n .cls-1 {\n fill: #fff;\n }\n </style>\n </defs>\n <g>\n <path class="cls-1" d="M279.16,182.12v-116.12h48.13c12.5,0,21.49,2.76,26.96,8.28,5.47,5.52,8.2,13.08,8.2,22.66,0,4.48-.6,8.41-1.8,11.8-1.2,3.39-2.97,6.2-5.31,8.44-2.34,2.24-5.29,3.78-8.83,4.61,2.71.73,5.26,1.82,7.66,3.28,2.4,1.46,4.48,3.39,6.25,5.78,1.77,2.4,3.15,5.21,4.14,8.44.99,3.23,1.48,6.88,1.48,10.94,0,7.61-1.36,13.75-4.06,18.44-2.71,4.69-6.77,8.1-12.19,10.24-5.42,2.14-12.14,3.2-20.16,3.2h-50.48ZM309.48,111.64h17.5c2.29,0,3.98-.88,5.08-2.66,1.09-1.77,1.64-3.96,1.64-6.56,0-3.54-.7-5.96-2.11-7.27-1.41-1.3-2.94-1.95-4.61-1.95h-17.5v18.44ZM309.48,154.93h19.22c1.88,0,3.44-.42,4.69-1.25,1.25-.83,2.21-2,2.89-3.52.68-1.51,1.02-3.31,1.02-5.39s-.34-3.88-1.02-5.39c-.68-1.51-1.64-2.68-2.89-3.52-1.25-.83-2.81-1.25-4.69-1.25h-19.22v20.32Z"/>\n <path class="cls-1" d="M379.65,182.12v-116.12h49.54c5.1,0,9.79.63,14.07,1.88,4.27,1.25,7.97,3.36,11.1,6.33,3.13,2.97,5.55,6.95,7.27,11.96s2.58,11.31,2.58,18.91c0,4.79-.42,8.96-1.25,12.5-.84,3.54-1.95,6.54-3.36,8.99-1.41,2.45-3.07,4.51-5,6.17-1.93,1.67-3.99,3.13-6.17,4.38l20.16,45.01h-30.79l-16.25-40.01h-11.57v40.01h-30.32ZM409.97,118.05h13.75c1.67,0,3.13-.23,4.38-.7s2.32-1.22,3.2-2.27c.88-1.04,1.54-2.37,1.95-3.98.41-1.61.62-3.57.62-5.86s-.21-4.22-.62-5.78c-.42-1.56-1.07-2.79-1.95-3.67-.89-.88-1.95-1.54-3.2-1.95-1.25-.42-2.71-.62-4.38-.62h-13.75v24.85Z"/>\n <path class="cls-1" d="M479.67,182.12v-116.12h24.07l40.79,64.7v-64.7h30.32v116.12h-24.07l-40.79-64.7v64.7h-30.32Z"/>\n <path class="cls-1" d="M592.03,182.12v-116.12h51.26c8.44,0,15.37,1.48,20.79,4.45,5.42,2.97,9.69,7.11,12.81,12.42,3.13,5.31,5.31,11.49,6.56,18.52,1.25,7.03,1.88,14.61,1.88,22.74,0,13.65-1.54,24.72-4.61,33.21-3.07,8.49-7.71,14.74-13.91,18.75-6.2,4.01-14.04,6.02-23.52,6.02h-51.26ZM622.35,154.93h17.82c3.85,0,6.85-1.04,8.99-3.13,2.13-2.08,3.65-5.39,4.53-9.92.88-4.53,1.33-10.44,1.33-17.74,0-6.88-.34-12.37-1.02-16.49-.68-4.11-1.67-7.21-2.97-9.3-1.3-2.08-2.87-3.46-4.69-4.14-1.82-.68-3.88-1.02-6.17-1.02h-17.82v61.73Z"/>\n <path class="cls-1" d="M721.9,182.12v-88.92h-29.22v-27.19h88.77v27.19h-29.22v88.92h-30.32Z"/>\n <path class="cls-1" d="M828.95,183.06c-3.44,0-6.8-.11-10.08-.31-3.28-.21-6.51-.52-9.69-.94-3.18-.42-6.23-.88-9.14-1.41-2.92-.52-5.73-1.15-8.44-1.88v-24.07c3.54.31,7.37.57,11.49.78,4.11.21,8.28.37,12.5.47,4.22.1,8.15.16,11.8.16,3.44,0,6.3-.26,8.6-.78,2.29-.52,4.01-1.35,5.16-2.5,1.15-1.15,1.72-2.71,1.72-4.69v-1.88c0-2.29-.81-4.01-2.42-5.16-1.62-1.15-3.52-1.72-5.7-1.72h-8.28c-12.09,0-21.25-2.66-27.51-7.97-6.25-5.31-9.38-14.22-9.38-26.72v-5.16c0-11.46,3.44-20.03,10.31-25.71,6.88-5.68,16.77-8.52,29.69-8.52,4.9,0,9.51.23,13.83.7,4.32.47,8.39,1.04,12.19,1.72,3.8.68,7.21,1.38,10.24,2.11v24.07c-4.79-.42-10.18-.75-16.17-1.02-5.99-.26-11.44-.39-16.33-.39-2.92,0-5.52.21-7.81.63-2.29.42-4.06,1.25-5.31,2.5-1.25,1.25-1.88,3.07-1.88,5.47v1.56c0,2.61.83,4.59,2.5,5.94,1.67,1.36,4.22,2.03,7.66,2.03h10.31c7.29,0,13.36,1.38,18.21,4.14,4.84,2.76,8.49,6.51,10.94,11.25,2.45,4.74,3.67,10.13,3.67,16.17v5.16c0,9.9-1.72,17.45-5.16,22.66-3.44,5.21-8.34,8.73-14.69,10.55-6.36,1.82-13.96,2.74-22.82,2.74Z"/>\n </g>\n <path class="cls-1" d="M193.77,2.19H53.62C25.87,2.19,3.39,24.68,3.39,52.42v140.15c0,27.75,22.49,50.23,50.23,50.23h140.15c27.75,0,50.23-22.49,50.23-50.23V52.42c0-27.74-22.49-50.23-50.23-50.23ZM127.13,65.24c0-9.25,7.5-16.74,16.74-16.74h53.45v53.45c0,9.25-7.5,16.74-16.74,16.74h-53.45v-53.45ZM120.23,179.77c0,9.25-7.5,16.74-16.74,16.74h-36.71c-9.25,0-16.74-7.5-16.74-16.74v-114.53c0-9.25,7.5-16.74,16.74-16.74h36.71c9.25,0,16.74,7.5,16.74,16.74v114.53ZM197.33,162.19c-.55,18.26-16.3,33.95-34.45,34.31-17.61.35-33.5-12.89-35.21-30.88-1.15-12.1-.22-24.4-.22-38.93,14.98,0,27.35-.98,39.49.23,18.36,1.83,30.93,17.24,30.38,35.27Z"/>\n</svg>';
|
69131
|
+
function getContentFromTemplate(w2, h) {
|
69132
|
+
var container = document.createElement("div");
|
69133
|
+
container.classList.add("BRNDTS_default_content");
|
69134
|
+
container.style.width = "100%";
|
69135
|
+
container.style.height = "100%";
|
69136
|
+
var box = document.createElement("div");
|
69137
|
+
box.classList.add("box");
|
69138
|
+
box.style.width = "".concat(w2, "px");
|
69139
|
+
box.style.height = "".concat(h, "px");
|
69140
|
+
var iconBox = document.createElement("div");
|
69141
|
+
iconBox.classList.add("icon");
|
69142
|
+
iconBox.innerHTML = icon;
|
69143
|
+
box.appendChild(iconBox);
|
69144
|
+
container.appendChild(box);
|
69145
|
+
return container;
|
69146
|
+
}
|
69085
69147
|
var BRNDTSDefaultProvider = /*#__PURE__*/ function(ContentProvider) {
|
69086
69148
|
"use strict";
|
69087
69149
|
_inherits(BRNDTSDefaultProvider, ContentProvider);
|
@@ -69092,21 +69154,8 @@ var BRNDTSDefaultProvider = /*#__PURE__*/ function(ContentProvider) {
|
|
69092
69154
|
context,
|
69093
69155
|
void 0
|
69094
69156
|
]);
|
69095
|
-
var container = document.createElement("div");
|
69096
|
-
container.classList.add("BRNDTS_default_content");
|
69097
|
-
container.style.width = "100%";
|
69098
|
-
container.style.height = "100%";
|
69099
|
-
var box = document.createElement("div");
|
69100
|
-
box.classList.add("box");
|
69101
|
-
var iconBox = document.createElement("div");
|
69102
|
-
iconBox.classList.add("icon");
|
69103
|
-
iconBox.innerHTML = icon;
|
69104
|
-
box.appendChild(iconBox);
|
69105
|
-
container.appendChild(box);
|
69106
69157
|
_this.content = {
|
69107
|
-
content: [
|
69108
|
-
container
|
69109
|
-
],
|
69158
|
+
content: [],
|
69110
69159
|
type: "brndts_placeholder"
|
69111
69160
|
};
|
69112
69161
|
return _this;
|
@@ -69114,14 +69163,26 @@ var BRNDTSDefaultProvider = /*#__PURE__*/ function(ContentProvider) {
|
|
69114
69163
|
_create_class(BRNDTSDefaultProvider, [
|
69115
69164
|
{
|
69116
69165
|
key: "request",
|
69117
|
-
value: function request() {
|
69166
|
+
value: function request(params) {
|
69118
69167
|
return _async_to_generator(function() {
|
69119
69168
|
return _ts_generator(this, function(_state) {
|
69169
|
+
this.content = _object_spread_props(_object_spread({}, this.content), {
|
69170
|
+
content: [
|
69171
|
+
getContentFromTemplate(params.size.width, params.size.height)
|
69172
|
+
],
|
69173
|
+
extra: _object_spread_props(_object_spread({}, this.content.extra || {}), {
|
69174
|
+
sz: {
|
69175
|
+
w: params.size.width,
|
69176
|
+
h: params.size.height
|
69177
|
+
}
|
69178
|
+
})
|
69179
|
+
});
|
69180
|
+
this.notify();
|
69120
69181
|
return [
|
69121
69182
|
2
|
69122
69183
|
];
|
69123
69184
|
});
|
69124
|
-
})();
|
69185
|
+
}).call(this);
|
69125
69186
|
}
|
69126
69187
|
}
|
69127
69188
|
]);
|
@@ -69920,7 +69981,7 @@ var PrebidJS = /*#__PURE__*/ function() {
|
|
69920
69981
|
value: function configure(context, options) {
|
69921
69982
|
var _window_pbjs_que, _window_pbjs;
|
69922
69983
|
(_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : (_window_pbjs_que = _window_pbjs.que) === null || _window_pbjs_que === void 0 ? void 0 : _window_pbjs_que.push(function() {
|
69923
|
-
var _context_config_getAdsConfig_general_debug_mode, _context_config_getAdsConfig_general, _window_pbjs, _window_pbjs1;
|
69984
|
+
var _context_config_getAdsConfig_general_debug_mode, _context_config_getAdsConfig_general, _window_pbjs, _window_pbjs1, _window_pbjs2;
|
69924
69985
|
var configBuilder = new PrebidConfigBuilder();
|
69925
69986
|
configBuilder.setDebug((_context_config_getAdsConfig_general = context.config.getAdsConfig().general) === null || _context_config_getAdsConfig_general === void 0 ? void 0 : (_context_config_getAdsConfig_general_debug_mode = _context_config_getAdsConfig_general.debug_mode) === null || _context_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _context_config_getAdsConfig_general_debug_mode.value).setGAMConfiguration().setUserConfig({
|
69926
69987
|
userIds: [
|
@@ -69939,8 +70000,11 @@ var PrebidJS = /*#__PURE__*/ function() {
|
|
69939
70000
|
]
|
69940
70001
|
}).addConsent(context.consent);
|
69941
70002
|
(_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : _window_pbjs.setConfig(configBuilder.build());
|
70003
|
+
(_window_pbjs1 = window.pbjs) === null || _window_pbjs1 === void 0 ? void 0 : _window_pbjs1.enableAnalytics({
|
70004
|
+
provider: "smartyads"
|
70005
|
+
});
|
69942
70006
|
context.logger.log("Prebid.js configuration set.");
|
69943
|
-
(
|
70007
|
+
(_window_pbjs2 = window.pbjs) === null || _window_pbjs2 === void 0 ? void 0 : _window_pbjs2.setBidderConfig({
|
69944
70008
|
bidders: [
|
69945
70009
|
"bidderA"
|
69946
70010
|
],
|
@@ -69956,9 +70020,9 @@ var PrebidJS = /*#__PURE__*/ function() {
|
|
69956
70020
|
}
|
69957
70021
|
});
|
69958
70022
|
for(var bidderName in options.bidders){
|
69959
|
-
var
|
70023
|
+
var _window_pbjs3;
|
69960
70024
|
var bidderConfig = options.bidders[bidderName];
|
69961
|
-
(
|
70025
|
+
(_window_pbjs3 = window.pbjs) === null || _window_pbjs3 === void 0 ? void 0 : _window_pbjs3.setBidderConfig({
|
69962
70026
|
bidders: [
|
69963
70027
|
bidderName.toLowerCase()
|
69964
70028
|
],
|
@@ -70409,7 +70473,7 @@ var PrebidGAM = /*#__PURE__*/ function() {
|
|
70409
70473
|
value: function configure(context, options) {
|
70410
70474
|
var _window_pbjs_que, _window_pbjs;
|
70411
70475
|
(_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : (_window_pbjs_que = _window_pbjs.que) === null || _window_pbjs_que === void 0 ? void 0 : _window_pbjs_que.push(function() {
|
70412
|
-
var _context_config_getAdsConfig_general_debug_mode, _context_config_getAdsConfig_general, _window_pbjs, _window_pbjs1;
|
70476
|
+
var _context_config_getAdsConfig_general_debug_mode, _context_config_getAdsConfig_general, _window_pbjs, _window_pbjs1, _window_pbjs2;
|
70413
70477
|
var configBuilder = new PrebidConfigBuilder();
|
70414
70478
|
configBuilder.setDebug((_context_config_getAdsConfig_general = context.config.getAdsConfig().general) === null || _context_config_getAdsConfig_general === void 0 ? void 0 : (_context_config_getAdsConfig_general_debug_mode = _context_config_getAdsConfig_general.debug_mode) === null || _context_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _context_config_getAdsConfig_general_debug_mode.value).setGAMConfiguration().setUserConfig({
|
70415
70479
|
userIds: [
|
@@ -70428,8 +70492,11 @@ var PrebidGAM = /*#__PURE__*/ function() {
|
|
70428
70492
|
]
|
70429
70493
|
}).addConsent(context.consent);
|
70430
70494
|
(_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : _window_pbjs.setConfig(configBuilder.build());
|
70495
|
+
(_window_pbjs1 = window.pbjs) === null || _window_pbjs1 === void 0 ? void 0 : _window_pbjs1.enableAnalytics({
|
70496
|
+
provider: "smartyads"
|
70497
|
+
});
|
70431
70498
|
context.logger.log("Prebid.js configuration set.");
|
70432
|
-
(
|
70499
|
+
(_window_pbjs2 = window.pbjs) === null || _window_pbjs2 === void 0 ? void 0 : _window_pbjs2.setBidderConfig({
|
70433
70500
|
bidders: [
|
70434
70501
|
"bidderA"
|
70435
70502
|
],
|
@@ -70445,9 +70512,9 @@ var PrebidGAM = /*#__PURE__*/ function() {
|
|
70445
70512
|
}
|
70446
70513
|
});
|
70447
70514
|
for(var bidderName in options.bidders){
|
70448
|
-
var
|
70515
|
+
var _window_pbjs3;
|
70449
70516
|
var bidderConfig = options.bidders[bidderName];
|
70450
|
-
(
|
70517
|
+
(_window_pbjs3 = window.pbjs) === null || _window_pbjs3 === void 0 ? void 0 : _window_pbjs3.setBidderConfig({
|
70451
70518
|
bidders: [
|
70452
70519
|
bidderName.toLowerCase()
|
70453
70520
|
],
|
@@ -70515,7 +70582,9 @@ var PrebidGAM = /*#__PURE__*/ function() {
|
|
70515
70582
|
var _unitDefinition_mediaTypes_banner;
|
70516
70583
|
sizes = ((_unitDefinition_mediaTypes_banner = unitDefinition.mediaTypes.banner) === null || _unitDefinition_mediaTypes_banner === void 0 ? void 0 : _unitDefinition_mediaTypes_banner.sizes) || [];
|
70517
70584
|
}
|
70518
|
-
GPT.defineSlot("/".concat(gamNetworkId, "/").concat(adName),
|
70585
|
+
GPT.defineSlot("/".concat(gamNetworkId, "/").concat(adName), [
|
70586
|
+
sizes[0] || []
|
70587
|
+
], "".concat(containerId));
|
70519
70588
|
if (!((_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : _window_pbjs.adUnits.some(function(defUnit) {
|
70520
70589
|
return "".concat(containerId) === "".concat(defUnit.code);
|
70521
70590
|
}))) {
|
@@ -70688,7 +70757,6 @@ var PrebidGAMProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70688
70757
|
];
|
70689
70758
|
case 2:
|
70690
70759
|
_state.sent();
|
70691
|
-
console.log("Requesting ad for region ".concat(regionId, " with size ").concat(params.size.width, "x").concat(params.size.height));
|
70692
70760
|
PrebidGAM.defineSlot(this.options, regionId, this.workingSlotId, adType, adName);
|
70693
70761
|
PrebidGAM.request(regionId, this.workingSlotId, function(content) {
|
70694
70762
|
content.style.width = "".concat(regionInfo === null || regionInfo === void 0 ? void 0 : regionInfo.w, "px");
|
@@ -71100,7 +71168,6 @@ var RegionContent = /*#__PURE__*/ function() {
|
|
71100
71168
|
"use strict";
|
71101
71169
|
function RegionContent(id, plane, box, ctx) {
|
71102
71170
|
_class_call_check(this, RegionContent);
|
71103
|
-
var _this_ctx;
|
71104
71171
|
this.scale = null;
|
71105
71172
|
this.id = id;
|
71106
71173
|
this.plane = plane;
|
@@ -71110,9 +71177,6 @@ var RegionContent = /*#__PURE__*/ function() {
|
|
71110
71177
|
this.container.id = "BRNDTS_RB_".concat(this.id);
|
71111
71178
|
this.container.classList.add("BRNDTS_RB");
|
71112
71179
|
this.container.dataset.state = "hidden";
|
71113
|
-
if ((_this_ctx = this.ctx) === null || _this_ctx === void 0 ? void 0 : _this_ctx.color) {
|
71114
|
-
this.container.style.backgroundColor = "#".concat(this.ctx.color, "73");
|
71115
|
-
}
|
71116
71180
|
this.render();
|
71117
71181
|
}
|
71118
71182
|
_create_class(RegionContent, [
|
@@ -71434,7 +71498,6 @@ var RegionDebugPlugin = /*#__PURE__*/ function() {
|
|
71434
71498
|
region.content.view.classList.toggle("BRNDTS_AUXR_B", true);
|
71435
71499
|
if (region.content.view) {
|
71436
71500
|
region.content.view.style.borderColor = "#".concat(color, "73");
|
71437
|
-
region.content.view.style.backgroundColor = "#".concat(color, "73");
|
71438
71501
|
region.content.view.style.borderStyle = "solid";
|
71439
71502
|
region.content.view.style.borderWidth = "2px";
|
71440
71503
|
}
|
@@ -71446,7 +71509,6 @@ var RegionDebugPlugin = /*#__PURE__*/ function() {
|
|
71446
71509
|
value: function afterShow(region) {
|
71447
71510
|
var _region_regionDescriptor_ctx, _region_regionDescriptor_ctx1, _region_regionDescriptor_ctx2;
|
71448
71511
|
if (!region.regionDescriptor) {
|
71449
|
-
console.log("No region descriptor", region);
|
71450
71512
|
this.csLabel.remove();
|
71451
71513
|
return Promise.resolve();
|
71452
71514
|
}
|
@@ -71538,7 +71600,7 @@ var Region = /*#__PURE__*/ function() {
|
|
71538
71600
|
function Region(id, regionDescriptor, planeDescriptor, options, deps) {
|
71539
71601
|
var _this = this;
|
71540
71602
|
_class_call_check(this, Region);
|
71541
|
-
var _this_deps_config_getAdsConfig_general, _this_deps_config, _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general1, _this_deps_config_getAdsConfig_general_debug_mode1, _this_deps_config_getAdsConfig_general2,
|
71603
|
+
var _this_deps_config_getAdsConfig_general_clickability, _this_deps_config_getAdsConfig_general, _this_deps_config, _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general1, _this_deps_config1, _this_deps_config_getAdsConfig_general_debug_mode1, _this_deps_config_getAdsConfig_general2, _this_deps_config2;
|
71542
71604
|
this.onScreen = false;
|
71543
71605
|
this.visible = false;
|
71544
71606
|
this.plugins = [];
|
@@ -71555,12 +71617,13 @@ var Region = /*#__PURE__*/ function() {
|
|
71555
71617
|
this.container.classList.add("BRNDTS_R");
|
71556
71618
|
this.container.style.position = "absolute";
|
71557
71619
|
this.container.style.display = "none";
|
71558
|
-
if (
|
71559
|
-
this.container.style.pointerEvents = "none";
|
71560
|
-
} else {
|
71620
|
+
if ((_this_deps_config = this.deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_clickability = _this_deps_config_getAdsConfig_general.clickability) === null || _this_deps_config_getAdsConfig_general_clickability === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_clickability.value) {
|
71561
71621
|
this.container.style.pointerEvents = "all";
|
71562
71622
|
}
|
71563
|
-
|
71623
|
+
if ((_this_deps_config1 = this.deps.config) === null || _this_deps_config1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general1 = _this_deps_config1.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general1.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value) {
|
71624
|
+
this.container.style.pointerEvents = "none";
|
71625
|
+
}
|
71626
|
+
this.content = new RegionContent(this.id, this.plane, this.box, ((_this_deps_config2 = this.deps.config) === null || _this_deps_config2 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general2 = _this_deps_config2.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general2 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode1 = _this_deps_config_getAdsConfig_general2.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode1 === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode1.value) ? this.regionDescriptor.ctx : void 0);
|
71564
71627
|
this.container.appendChild(this.content.view);
|
71565
71628
|
this.handleClick = this.handleClick.bind(this);
|
71566
71629
|
this.handleMouseEnter = this.handleMouseEnter.bind(this);
|
@@ -71874,7 +71937,7 @@ var Region = /*#__PURE__*/ function() {
|
|
71874
71937
|
key: "render",
|
71875
71938
|
value: function render(contours, box) {
|
71876
71939
|
return _async_to_generator(function() {
|
71877
|
-
var newBox, _this_deps_recorder, _this_deps_recorder1;
|
71940
|
+
var newBox, _this_deps_recorder, _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general, _this_deps_config, _this_deps_recorder1, debugMode;
|
71878
71941
|
return _ts_generator(this, function(_state) {
|
71879
71942
|
switch(_state.label){
|
71880
71943
|
case 0:
|
@@ -71901,13 +71964,14 @@ var Region = /*#__PURE__*/ function() {
|
|
71901
71964
|
(_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.presentationStateChanged(this);
|
71902
71965
|
return [
|
71903
71966
|
3,
|
71904
|
-
|
71967
|
+
5
|
71905
71968
|
];
|
71906
71969
|
case 1:
|
71907
71970
|
if (!this.shouldHide()) return [
|
71908
71971
|
3,
|
71909
|
-
|
71972
|
+
4
|
71910
71973
|
];
|
71974
|
+
debugMode = (_this_deps_config = this.deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value;
|
71911
71975
|
this.content.clear();
|
71912
71976
|
return [
|
71913
71977
|
4,
|
@@ -71920,15 +71984,20 @@ var Region = /*#__PURE__*/ function() {
|
|
71920
71984
|
this.container.style.height = "0px";
|
71921
71985
|
this.container.style.left = "0px";
|
71922
71986
|
this.container.style.top = "0px";
|
71923
|
-
|
71987
|
+
return [
|
71988
|
+
4,
|
71989
|
+
this.applyPlugins("afterHide")
|
71990
|
+
];
|
71991
|
+
case 3:
|
71992
|
+
_state.sent();
|
71924
71993
|
this.visible = false;
|
71925
71994
|
this.content.destroy();
|
71926
71995
|
(_this_deps_recorder1 = this.deps.recorder) === null || _this_deps_recorder1 === void 0 ? void 0 : _this_deps_recorder1.presentationStateChanged(this);
|
71927
71996
|
return [
|
71928
71997
|
3,
|
71929
|
-
|
71998
|
+
5
|
71930
71999
|
];
|
71931
|
-
case
|
72000
|
+
case 4:
|
71932
72001
|
if (this.visible) {
|
71933
72002
|
this.container.style.width = "".concat(this.box.width(this.plane.size), "px");
|
71934
72003
|
this.container.style.height = "".concat(this.box.height(this.plane.size), "px");
|
@@ -71937,8 +72006,8 @@ var Region = /*#__PURE__*/ function() {
|
|
71937
72006
|
this.content.render();
|
71938
72007
|
this.applyPlugins("reRender");
|
71939
72008
|
}
|
71940
|
-
_state.label =
|
71941
|
-
case
|
72009
|
+
_state.label = 5;
|
72010
|
+
case 5:
|
71942
72011
|
this.applyPlugins("afterRender");
|
71943
72012
|
return [
|
71944
72013
|
2
|
@@ -72030,9 +72099,9 @@ var StaticAdRegion = /*#__PURE__*/ function(Region) {
|
|
72030
72099
|
function StaticAdRegion(id, planeDescriptor, options, deps) {
|
72031
72100
|
_class_call_check(this, StaticAdRegion);
|
72032
72101
|
var _this;
|
72033
|
-
var _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general, _this_deps_config;
|
72102
|
+
var _options_ad, _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general, _this_deps_config;
|
72034
72103
|
_this = _call_super(this, StaticAdRegion, [
|
72035
|
-
"".concat(id),
|
72104
|
+
"".concat((options === null || options === void 0 ? void 0 : (_options_ad = options.ad) === null || _options_ad === void 0 ? void 0 : _options_ad.name) || id),
|
72036
72105
|
{
|
72037
72106
|
id: id,
|
72038
72107
|
contours: [],
|
@@ -72051,6 +72120,9 @@ var StaticAdRegion = /*#__PURE__*/ function(Region) {
|
|
72051
72120
|
_this.content.view.remove();
|
72052
72121
|
_this.content = new StaticRegionContent(_this.id, _this.plane, _this.box, ((_this_deps_config = _this.deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value) ? _this.regionDescriptor.ctx : void 0);
|
72053
72122
|
_this.container.appendChild(_this.content.view);
|
72123
|
+
if (_this.deps.provider) {
|
72124
|
+
_this.content.addContent(_this.deps.provider.contents());
|
72125
|
+
}
|
72054
72126
|
return _this;
|
72055
72127
|
}
|
72056
72128
|
_create_class(StaticAdRegion, [
|
@@ -72985,6 +73057,12 @@ var YoutubeMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
72985
73057
|
return this.media;
|
72986
73058
|
}
|
72987
73059
|
},
|
73060
|
+
{
|
73061
|
+
key: "fullscreenElement",
|
73062
|
+
get: function get() {
|
73063
|
+
return this.view || void 0;
|
73064
|
+
}
|
73065
|
+
},
|
72988
73066
|
{
|
72989
73067
|
key: "viewWidth",
|
72990
73068
|
get: function get() {
|
@@ -73431,6 +73509,12 @@ var NativeMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
73431
73509
|
return this.media;
|
73432
73510
|
}
|
73433
73511
|
},
|
73512
|
+
{
|
73513
|
+
key: "fullscreenElement",
|
73514
|
+
get: function get() {
|
73515
|
+
return this.view || void 0;
|
73516
|
+
}
|
73517
|
+
},
|
73434
73518
|
{
|
73435
73519
|
key: "viewWidth",
|
73436
73520
|
get: function get() {
|
@@ -73801,6 +73885,13 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
73801
73885
|
return this.actualMediaElement;
|
73802
73886
|
}
|
73803
73887
|
},
|
73888
|
+
{
|
73889
|
+
key: "fullscreenElement",
|
73890
|
+
get: function get() {
|
73891
|
+
var _this_view;
|
73892
|
+
return ((_this_view = this.view) === null || _this_view === void 0 ? void 0 : _this_view.closest(".bsplayer")) || void 0;
|
73893
|
+
}
|
73894
|
+
},
|
73804
73895
|
{
|
73805
73896
|
key: "viewWidth",
|
73806
73897
|
get: function get() {
|
@@ -74263,6 +74354,12 @@ var DailymotionMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74263
74354
|
return this.rootNode;
|
74264
74355
|
}
|
74265
74356
|
},
|
74357
|
+
{
|
74358
|
+
key: "fullscreenElement",
|
74359
|
+
get: function get() {
|
74360
|
+
return this.view || void 0;
|
74361
|
+
}
|
74362
|
+
},
|
74266
74363
|
{
|
74267
74364
|
key: "viewWidth",
|
74268
74365
|
get: function get() {
|
@@ -74490,7 +74587,6 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74490
74587
|
_this.emit("SEEKED");
|
74491
74588
|
});
|
74492
74589
|
(_this_instance4 = this.instance) === null || _this_instance4 === void 0 ? void 0 : _this_instance4.ready(function() {
|
74493
|
-
console.log("VideoJS media is ready");
|
74494
74590
|
_this.mediaIsReady();
|
74495
74591
|
});
|
74496
74592
|
}
|
@@ -74520,7 +74616,6 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74520
74616
|
clone.autoplay = false;
|
74521
74617
|
this.context.elements.original = clone;
|
74522
74618
|
this.instance = this.media.player;
|
74523
|
-
console.log("VideoJS media instance set", this.instance);
|
74524
74619
|
if (this.instance) {
|
74525
74620
|
this.instance.fluid(false);
|
74526
74621
|
}
|
@@ -74564,6 +74659,12 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74564
74659
|
return this.media;
|
74565
74660
|
}
|
74566
74661
|
},
|
74662
|
+
{
|
74663
|
+
key: "fullscreenElement",
|
74664
|
+
get: function get() {
|
74665
|
+
return this.view || void 0;
|
74666
|
+
}
|
74667
|
+
},
|
74567
74668
|
{
|
74568
74669
|
key: "viewWidth",
|
74569
74670
|
get: function get() {
|
@@ -74607,15 +74708,15 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74607
74708
|
{
|
74608
74709
|
key: "currentTime",
|
74609
74710
|
get: function get() {
|
74610
|
-
var
|
74611
|
-
var
|
74612
|
-
return (
|
74711
|
+
var _this_instance;
|
74712
|
+
var _this_instance_currentTime;
|
74713
|
+
return (_this_instance_currentTime = (_this_instance = this.instance) === null || _this_instance === void 0 ? void 0 : _this_instance.currentTime()) !== null && _this_instance_currentTime !== void 0 ? _this_instance_currentTime : 0;
|
74613
74714
|
},
|
74614
74715
|
set: function set(value2) {
|
74615
74716
|
if (!this.duration) return;
|
74616
74717
|
var validTime = is_default.number(value2) && value2 > 0 ? Math.min(value2, this.duration) : 0;
|
74617
|
-
if (this.
|
74618
|
-
this.
|
74718
|
+
if (this.instance) {
|
74719
|
+
this.instance.currentTime(validTime);
|
74619
74720
|
this.context.logger.log("Seeking to ".concat(this.currentTime, " seconds"));
|
74620
74721
|
}
|
74621
74722
|
}
|
@@ -74623,10 +74724,10 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74623
74724
|
{
|
74624
74725
|
key: "duration",
|
74625
74726
|
get: function get() {
|
74626
|
-
var
|
74727
|
+
var _this_instance;
|
74627
74728
|
var fauxDuration = /* this.context.config.duration */ void 0;
|
74628
|
-
var
|
74629
|
-
var realDuration = (
|
74729
|
+
var _this_instance_duration;
|
74730
|
+
var realDuration = (_this_instance_duration = (_this_instance = this.instance) === null || _this_instance === void 0 ? void 0 : _this_instance.duration()) !== null && _this_instance_duration !== void 0 ? _this_instance_duration : 0;
|
74630
74731
|
return fauxDuration || realDuration;
|
74631
74732
|
}
|
74632
74733
|
},
|
@@ -74766,7 +74867,7 @@ var VideoJSMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
74766
74867
|
key: "forward",
|
74767
74868
|
value: function forward() {
|
74768
74869
|
var seekTime = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_SEEK_INTERVAL5;
|
74769
|
-
this.currentTime
|
74870
|
+
this.currentTime = this.currentTime + seekTime;
|
74770
74871
|
}
|
74771
74872
|
},
|
74772
74873
|
{
|
@@ -74863,6 +74964,10 @@ var MediaElementFactory = /*#__PURE__*/ function() {
|
|
74863
74964
|
var _hasBradMaxPID = _sliced_to_array(hasBradMaxPID, 2), el1 = _hasBradMaxPID[0], value21 = _hasBradMaxPID[1];
|
74864
74965
|
return el1;
|
74865
74966
|
}
|
74967
|
+
var isVideoJS = element.querySelector("video-js");
|
74968
|
+
if (isVideoJS) {
|
74969
|
+
return isVideoJS;
|
74970
|
+
}
|
74866
74971
|
return null;
|
74867
74972
|
case "IFRAME":
|
74868
74973
|
var url2 = element.getAttribute("src");
|
@@ -75113,7 +75218,6 @@ var VideoRegionsDataCollection = /*#__PURE__*/ function() {
|
|
75113
75218
|
if (!to) {
|
75114
75219
|
to = this.totalLengthSeconds;
|
75115
75220
|
}
|
75116
|
-
console.log("from : ", from, " to : ", to);
|
75117
75221
|
var result = {};
|
75118
75222
|
for(var index = 0; index < this.timestampList.length; index++){
|
75119
75223
|
var element = +this.timestampList[index];
|
@@ -75277,7 +75381,6 @@ var VideoRegionsDataManager = /*#__PURE__*/ function(_import_events4_EventEmitte
|
|
75277
75381
|
this.service.send("stop");
|
75278
75382
|
this.service.destroy();
|
75279
75383
|
this.regionsData.load(data);
|
75280
|
-
console.log("loaded data");
|
75281
75384
|
}
|
75282
75385
|
var input = document.createElement("input");
|
75283
75386
|
input.type = "file";
|
@@ -75297,7 +75400,6 @@ var VideoRegionsDataManager = /*#__PURE__*/ function(_import_events4_EventEmitte
|
|
75297
75400
|
_this.service.send("stop");
|
75298
75401
|
_this.service.destroy();
|
75299
75402
|
_this.regionsData.load(parsedData);
|
75300
|
-
console.log("loaded data");
|
75301
75403
|
}
|
75302
75404
|
};
|
75303
75405
|
reader.readAsText(file);
|
@@ -75409,17 +75511,19 @@ var VideoRegionsDurationDecorator = /*#__PURE__*/ function(VideoRegionsDataManag
|
|
75409
75511
|
if (!regions2 || !regions2.regions) {
|
75410
75512
|
return null;
|
75411
75513
|
}
|
75412
|
-
|
75413
|
-
|
75414
|
-
|
75415
|
-
|
75416
|
-
|
75417
|
-
|
75418
|
-
|
75419
|
-
|
75420
|
-
|
75421
|
-
}
|
75422
|
-
|
75514
|
+
if (!last) {
|
75515
|
+
last = regions2.regions.map(function(r3) {
|
75516
|
+
return r3.id;
|
75517
|
+
});
|
75518
|
+
result = _to_consumable_array(regions2.regions);
|
75519
|
+
return {
|
75520
|
+
timestamp_start: timestamp,
|
75521
|
+
timestamp_end: timestamp + totalDuration,
|
75522
|
+
regions: result
|
75523
|
+
};
|
75524
|
+
}
|
75525
|
+
var validRegions = regions2.regions.filter(function(reg) {
|
75526
|
+
return last === null || last === void 0 ? void 0 : last.includes(reg.id);
|
75423
75527
|
});
|
75424
75528
|
if (validRegions.length <= 0) {
|
75425
75529
|
return null;
|
@@ -75431,7 +75535,7 @@ var VideoRegionsDurationDecorator = /*#__PURE__*/ function(VideoRegionsDataManag
|
|
75431
75535
|
duration = regions2.timestamp_end - regions2.timestamp_start;
|
75432
75536
|
}
|
75433
75537
|
totalDuration += duration;
|
75434
|
-
workingTimestamp = regions2.timestamp_end + 1e-3;
|
75538
|
+
workingTimestamp = regions2.timestamp_end + 1e-3 + 1e3;
|
75435
75539
|
last = validRegions.map(function(r3) {
|
75436
75540
|
return r3.id;
|
75437
75541
|
});
|
@@ -75499,7 +75603,7 @@ var VideoRegionsMaxDurationDecorator = /*#__PURE__*/ function(VideoRegionsDataMa
|
|
75499
75603
|
duration = regions2.timestamp_end - regions2.timestamp_start;
|
75500
75604
|
}
|
75501
75605
|
totalDuration += duration;
|
75502
|
-
workingTimestamp = regions2.timestamp_end + 1e-3;
|
75606
|
+
workingTimestamp = regions2.timestamp_end + 1e-3 + 1e3;
|
75503
75607
|
last = filteredRegions.map(function(r3) {
|
75504
75608
|
return r3.id;
|
75505
75609
|
});
|
@@ -75634,6 +75738,8 @@ var Store = /*#__PURE__*/ function() {
|
|
75634
75738
|
]);
|
75635
75739
|
return Store;
|
75636
75740
|
}();
|
75741
|
+
// src/Ads/VideoAds/PresentationMode/Basic/BasicMode.ts
|
75742
|
+
var import_events9 = __toESM(require_events());
|
75637
75743
|
// src/Ads/VideoAds/PresentationStrategy/AbstractPresentation.ts
|
75638
75744
|
var import_events5 = __toESM(require_events());
|
75639
75745
|
var AbstractPresentation = /*#__PURE__*/ function(_import_events5_default) {
|
@@ -76141,12 +76247,14 @@ var PresentationStrategyFactory = /*#__PURE__*/ function() {
|
|
76141
76247
|
_create_class(PresentationStrategyFactory, null, [
|
76142
76248
|
{
|
76143
76249
|
key: "get",
|
76144
|
-
value: function get(
|
76145
|
-
|
76250
|
+
value: function get(config2) {
|
76251
|
+
var _config2_getAdsConfig_general_debug_mode, _config2_getAdsConfig_general;
|
76252
|
+
if (!config2 || (config2 === null || config2 === void 0 ? void 0 : (_config2_getAdsConfig_general = config2.getAdsConfig().general) === null || _config2_getAdsConfig_general === void 0 ? void 0 : (_config2_getAdsConfig_general_debug_mode = _config2_getAdsConfig_general.debug_mode) === null || _config2_getAdsConfig_general_debug_mode === void 0 ? void 0 : _config2_getAdsConfig_general_debug_mode.value) && (config2 === null || config2 === void 0 ? void 0 : config2.getStrategy().code) !== "basic") {
|
76146
76253
|
return new PacedPresentation({
|
76147
76254
|
paceMS: 10
|
76148
76255
|
});
|
76149
76256
|
}
|
76257
|
+
var settings = config2.getStrategySettings();
|
76150
76258
|
if (settings.cooldown_time && settings.minimum_display_time) {
|
76151
76259
|
return new DynamicDurationPresentation({
|
76152
76260
|
cooldownTimeMS: settings.cooldown_time.value * 1e3,
|
@@ -79639,10 +79747,6 @@ var Controls = /*#__PURE__*/ function() {
|
|
79639
79747
|
}
|
79640
79748
|
if (this.context.media.is("NATIVE")) {
|
79641
79749
|
this.setTopBar();
|
79642
|
-
if (this.context.config.get("debug")) {
|
79643
|
-
this.controlBottomBar = new ControlBottomBar(this.context, this.events);
|
79644
|
-
this.container.appendChild(this.controlBottomBar.view);
|
79645
|
-
}
|
79646
79750
|
}
|
79647
79751
|
}
|
79648
79752
|
}
|
@@ -79737,7 +79841,7 @@ var Fullscreen = /*#__PURE__*/ function() {
|
|
79737
79841
|
this.context = context;
|
79738
79842
|
this.container = this.context.elements.container;
|
79739
79843
|
document.addEventListener("fullscreenchange", function() {
|
79740
|
-
if (document.fullscreenElement === _this.context.media.
|
79844
|
+
if (document.fullscreenElement === _this.context.media.fullscreenElement || document.fullscreenElement === _this.context.elements.container) {
|
79741
79845
|
_this.context.elements.fullscreen = document.fullscreenElement;
|
79742
79846
|
_this.container.dataset.fullscreen = "true";
|
79743
79847
|
_this.container.style.paddingBottom = "0";
|
@@ -80013,7 +80117,6 @@ var Interface = /*#__PURE__*/ function(_import_events7_default) {
|
|
80013
80117
|
_this.media = _this.context.media;
|
80014
80118
|
_this.container = document.createElement("div");
|
80015
80119
|
_this.container.id = "BRNDTS";
|
80016
|
-
_this.setDebug(_this.context.config.get("debug"));
|
80017
80120
|
_this.wrapMedia();
|
80018
80121
|
_this.fullscreen = new Fullscreen(_this.context);
|
80019
80122
|
_this.setupControls();
|
@@ -80513,6 +80616,9 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
|
|
80513
80616
|
_this.content.view.remove();
|
80514
80617
|
_this.content = new StaticRegionContent2(_this.id, _this.plane, _this.box, ((_this_deps_config = _this.deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value) ? _this.regionDescriptor.ctx : void 0);
|
80515
80618
|
_this.container.appendChild(_this.content.view);
|
80619
|
+
if (_this.deps.provider) {
|
80620
|
+
_this.content.addContent(_this.deps.provider.contents());
|
80621
|
+
}
|
80516
80622
|
return _this;
|
80517
80623
|
}
|
80518
80624
|
_create_class(BasicAdRegion, [
|
@@ -80526,7 +80632,6 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
|
|
80526
80632
|
key: "requestContent",
|
80527
80633
|
value: function requestContent() {
|
80528
80634
|
var box = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.box;
|
80529
|
-
console.log("Requesting content for region ".concat(this.id, " with box:"), this.deps.provider);
|
80530
80635
|
if (this.deps.provider) {
|
80531
80636
|
var _this_options_ad, _this_options, _this_options_ad1, _this_options1;
|
80532
80637
|
this.deps.provider.request({
|
@@ -80730,7 +80835,6 @@ var RegionsContainerView = /*#__PURE__*/ function() {
|
|
80730
80835
|
this.contentLayer.style.position = "absolute";
|
80731
80836
|
this.contentLayer.style.top = "".concat(this.position.y, "px");
|
80732
80837
|
this.contentLayer.style.left = "".concat(this.position.x, "px");
|
80733
|
-
this.contentLayer.style.pointerEvents = "none";
|
80734
80838
|
this.contentLayer.style.width = "".concat(this.size.width, "px");
|
80735
80839
|
this.contentLayer.style.height = "".concat(this.size.height, "px");
|
80736
80840
|
}
|
@@ -80817,6 +80921,7 @@ var AdRegionsArea = /*#__PURE__*/ function() {
|
|
80817
80921
|
"use strict";
|
80818
80922
|
function AdRegionsArea(context, position, size, id) {
|
80819
80923
|
_class_call_check(this, AdRegionsArea);
|
80924
|
+
var _this_context_config_getAdsConfig_general_debug_mode, _this_context_config_getAdsConfig_general;
|
80820
80925
|
this.position = {
|
80821
80926
|
x: 0,
|
80822
80927
|
y: 0
|
@@ -80827,7 +80932,7 @@ var AdRegionsArea = /*#__PURE__*/ function() {
|
|
80827
80932
|
};
|
80828
80933
|
this.id = id;
|
80829
80934
|
this.context = context;
|
80830
|
-
this.maxRegions = MAX_REGIONS;
|
80935
|
+
this.maxRegions = ((_this_context_config_getAdsConfig_general = this.context.config.getAdsConfig().general) === null || _this_context_config_getAdsConfig_general === void 0 ? void 0 : (_this_context_config_getAdsConfig_general_debug_mode = _this_context_config_getAdsConfig_general.debug_mode) === null || _this_context_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_context_config_getAdsConfig_general_debug_mode.value) ? Number.MAX_SAFE_INTEGER : MAX_REGIONS;
|
80831
80936
|
this.position = position;
|
80832
80937
|
this.size = size;
|
80833
80938
|
this.handleIntersectionChange = this.handleIntersectionChange.bind(this);
|
@@ -80965,12 +81070,18 @@ var RegionRenderer = /*#__PURE__*/ function() {
|
|
80965
81070
|
"use strict";
|
80966
81071
|
function RegionRenderer(context, size) {
|
80967
81072
|
_class_call_check(this, RegionRenderer);
|
81073
|
+
var _this_context_config_getAdsConfig_general_clickability, _this_context_config_getAdsConfig_general, _this_context_config;
|
80968
81074
|
this.regionAreas = {};
|
80969
81075
|
this.context = context;
|
80970
81076
|
this.regionsContainerView = new RegionsContainerView({
|
80971
81077
|
x: 0,
|
80972
81078
|
y: 0
|
80973
81079
|
}, size);
|
81080
|
+
if ((_this_context_config = this.context.config) === null || _this_context_config === void 0 ? void 0 : (_this_context_config_getAdsConfig_general = _this_context_config.getAdsConfig().general) === null || _this_context_config_getAdsConfig_general === void 0 ? void 0 : (_this_context_config_getAdsConfig_general_clickability = _this_context_config_getAdsConfig_general.clickability) === null || _this_context_config_getAdsConfig_general_clickability === void 0 ? void 0 : _this_context_config_getAdsConfig_general_clickability.value) {
|
81081
|
+
this.regionsContainerView.view.style.pointerEvents = "all";
|
81082
|
+
} else {
|
81083
|
+
this.regionsContainerView.view.style.pointerEvents = "none";
|
81084
|
+
}
|
80974
81085
|
}
|
80975
81086
|
_create_class(RegionRenderer, [
|
80976
81087
|
{
|
@@ -81051,7 +81162,6 @@ var RegionRenderer = /*#__PURE__*/ function() {
|
|
81051
81162
|
return RegionRenderer;
|
81052
81163
|
}();
|
81053
81164
|
// src/Ads/VideoAds/PresentationMode/Basic/BasicMode.ts
|
81054
|
-
var import_events9 = __toESM(require_events());
|
81055
81165
|
function adjustSizeWithAspectRatio(maxWidth, maxHeight, aspectRatio) {
|
81056
81166
|
var width = maxWidth;
|
81057
81167
|
var height = maxHeight;
|
@@ -81293,9 +81403,14 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
81293
81403
|
var _this_adPresentationStrategy;
|
81294
81404
|
(_this_adPresentationStrategy = _this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.start();
|
81295
81405
|
} else {
|
81296
|
-
var _this_adPresentationStrategy1;
|
81406
|
+
var _this_adPresentationStrategy1, _adsConfigs_general_visibility_on_pause, _adsConfigs_general;
|
81297
81407
|
var adsConfigs = _this.context.config.getAdsConfig();
|
81298
81408
|
(_this_adPresentationStrategy1 = _this.adPresentationStrategy) === null || _this_adPresentationStrategy1 === void 0 ? void 0 : _this_adPresentationStrategy1.stop();
|
81409
|
+
if (!((_adsConfigs_general = adsConfigs.general) === null || _adsConfigs_general === void 0 ? void 0 : (_adsConfigs_general_visibility_on_pause = _adsConfigs_general.visibility_on_pause) === null || _adsConfigs_general_visibility_on_pause === void 0 ? void 0 : _adsConfigs_general_visibility_on_pause.value)) {
|
81410
|
+
var _this_mediaElementSizeController, _this_regionsRenderer;
|
81411
|
+
(_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.restore();
|
81412
|
+
(_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
|
81413
|
+
}
|
81299
81414
|
}
|
81300
81415
|
}
|
81301
81416
|
if (oldState.fullscreen !== newState.fullscreen) {
|
@@ -81312,10 +81427,9 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
81312
81427
|
height: this.context.media.viewHeight
|
81313
81428
|
});
|
81314
81429
|
if (this.context.elements.container) {
|
81315
|
-
|
81316
|
-
(_this_regionsRenderer = this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.attach(this.context.elements.container, this.context.media.view);
|
81430
|
+
this.regionsRenderer.attach(this.context.elements.container, this.context.media.view);
|
81317
81431
|
}
|
81318
|
-
this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config
|
81432
|
+
this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config);
|
81319
81433
|
(_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.on("presentation", function() {
|
81320
81434
|
var _this_mediaElementSizeController;
|
81321
81435
|
var expected = (_this_mediaElementSizeController = _this.mediaElementSizeController) === null || _this_mediaElementSizeController === void 0 ? void 0 : _this_mediaElementSizeController.expectedDimensions(70, _this.context.store.getState().fullscreen ? 10 : 0);
|
@@ -81335,7 +81449,6 @@ var BasicPresentationMode = /*#__PURE__*/ function() {
|
|
81335
81449
|
}
|
81336
81450
|
}).on("pace", function() {}).on("cooldown", function() {
|
81337
81451
|
var _this_regionsRenderer;
|
81338
|
-
console.log("Cooldown");
|
81339
81452
|
(_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
|
81340
81453
|
_this.packer.reset();
|
81341
81454
|
setTimeout(function() {
|
@@ -81506,12 +81619,10 @@ var RegionFactory = /*#__PURE__*/ function() {
|
|
81506
81619
|
{
|
81507
81620
|
key: "getPluginForStrategy",
|
81508
81621
|
value: function getPluginForStrategy() {
|
81509
|
-
var _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general, _this_deps_config, _this_deps, _this_deps1;
|
81622
|
+
var _this_deps_config_getAdsConfig_general_debug_mode, _this_deps_config_getAdsConfig_general, _this_deps_config, _this_deps, _this_deps1, _this_deps_config_getAdsConfig_general_debug_mode1, _this_deps_config_getAdsConfig_general1, _this_deps_config1, _this_deps2;
|
81510
81623
|
var plugins2 = [];
|
81511
81624
|
if ((_this_deps = this.deps) === null || _this_deps === void 0 ? void 0 : (_this_deps_config = _this_deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value) {
|
81512
81625
|
plugins2.push(new RegionDebugPlugin());
|
81513
|
-
} else {
|
81514
|
-
plugins2.push(new RegionBorderPlugin());
|
81515
81626
|
}
|
81516
81627
|
if (!((_this_deps1 = this.deps) === null || _this_deps1 === void 0 ? void 0 : _this_deps1.strategy)) {
|
81517
81628
|
return [
|
@@ -81531,10 +81642,10 @@ var RegionFactory = /*#__PURE__*/ function() {
|
|
81531
81642
|
})
|
81532
81643
|
];
|
81533
81644
|
}
|
81534
|
-
if (this.deps.strategy === "banner" || this.deps.strategy === "bannerv2" || this.deps.strategy === "bannerv2_ocr" || this.deps.strategy === "test") {
|
81535
|
-
plugins2.push(new RegionAnimationPlugin());
|
81536
|
-
return plugins2;
|
81645
|
+
if (!((_this_deps2 = this.deps) === null || _this_deps2 === void 0 ? void 0 : (_this_deps_config1 = _this_deps2.config) === null || _this_deps_config1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general1 = _this_deps_config1.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode1 = _this_deps_config_getAdsConfig_general1.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode1 === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode1.value) && (this.deps.strategy === "banner" || this.deps.strategy === "bannerv2" || this.deps.strategy === "bannerv2_ocr" || this.deps.strategy === "test")) {
|
81646
|
+
plugins2.push(new RegionBorderPlugin(), new RegionAnimationPlugin());
|
81537
81647
|
}
|
81648
|
+
return plugins2;
|
81538
81649
|
}
|
81539
81650
|
},
|
81540
81651
|
{
|
@@ -81923,10 +82034,11 @@ var RegionRenderer2 = /*#__PURE__*/ function() {
|
|
81923
82034
|
"use strict";
|
81924
82035
|
function RegionRenderer2(context, width, height) {
|
81925
82036
|
_class_call_check(this, RegionRenderer2);
|
82037
|
+
var _this_context_config_getAdsConfig_general_debug_mode, _this_context_config_getAdsConfig_general;
|
81926
82038
|
this.regionsData = [];
|
81927
82039
|
this.context = context;
|
81928
82040
|
this.regionsObjects = new AdRegionsCollection3();
|
81929
|
-
this.maxRegions = MAX_REGIONS2;
|
82041
|
+
this.maxRegions = ((_this_context_config_getAdsConfig_general = this.context.config.getAdsConfig().general) === null || _this_context_config_getAdsConfig_general === void 0 ? void 0 : (_this_context_config_getAdsConfig_general_debug_mode = _this_context_config_getAdsConfig_general.debug_mode) === null || _this_context_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_context_config_getAdsConfig_general_debug_mode.value) ? Number.MAX_SAFE_INTEGER : MAX_REGIONS2;
|
81930
82042
|
this.regionsContainerView = new RegionsContainerView3(width, height);
|
81931
82043
|
this.regionFactory = new RegionFactory({
|
81932
82044
|
recorder: this.context.recorder,
|
@@ -82087,10 +82199,10 @@ var NotBasicPresentationMode = /*#__PURE__*/ function() {
|
|
82087
82199
|
var _this_adPresentationStrategy;
|
82088
82200
|
(_this_adPresentationStrategy = _this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.start();
|
82089
82201
|
} else {
|
82090
|
-
var _this_adPresentationStrategy1, _adsConfigs_general;
|
82202
|
+
var _this_adPresentationStrategy1, _adsConfigs_general_visibility_on_pause, _adsConfigs_general;
|
82091
82203
|
var adsConfigs = _this.context.config.getAdsConfig();
|
82092
82204
|
(_this_adPresentationStrategy1 = _this.adPresentationStrategy) === null || _this_adPresentationStrategy1 === void 0 ? void 0 : _this_adPresentationStrategy1.stop();
|
82093
|
-
if (!((_adsConfigs_general = adsConfigs.general) === null || _adsConfigs_general === void 0 ? void 0 : _adsConfigs_general.visibility_on_pause)) {
|
82205
|
+
if (!((_adsConfigs_general = adsConfigs.general) === null || _adsConfigs_general === void 0 ? void 0 : (_adsConfigs_general_visibility_on_pause = _adsConfigs_general.visibility_on_pause) === null || _adsConfigs_general_visibility_on_pause === void 0 ? void 0 : _adsConfigs_general_visibility_on_pause.value)) {
|
82094
82206
|
var _this_regionsRenderer, _this_auxElementsRenderer;
|
82095
82207
|
(_this_regionsRenderer = _this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.clear();
|
82096
82208
|
(_this_auxElementsRenderer = _this.auxElementsRenderer) === null || _this_auxElementsRenderer === void 0 ? void 0 : _this_auxElementsRenderer.clear();
|
@@ -82108,7 +82220,7 @@ var NotBasicPresentationMode = /*#__PURE__*/ function() {
|
|
82108
82220
|
(_this_auxElementsRenderer = this.auxElementsRenderer) === null || _this_auxElementsRenderer === void 0 ? void 0 : _this_auxElementsRenderer.attach(this.context.elements.container);
|
82109
82221
|
(_this_regionsRenderer = this.regionsRenderer) === null || _this_regionsRenderer === void 0 ? void 0 : _this_regionsRenderer.attach(this.context.elements.container);
|
82110
82222
|
}
|
82111
|
-
this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config
|
82223
|
+
this.adPresentationStrategy = PresentationStrategyFactory.get(this.context.config);
|
82112
82224
|
(_this_adPresentationStrategy = this.adPresentationStrategy) === null || _this_adPresentationStrategy === void 0 ? void 0 : _this_adPresentationStrategy.on("presentation", function() {
|
82113
82225
|
var _this_context_data;
|
82114
82226
|
var regions2 = (_this_context_data = _this.context.data) === null || _this_context_data === void 0 ? void 0 : _this_context_data.check(_this.context.media.currentTime);
|
@@ -82343,6 +82455,12 @@ var VideoAd = /*#__PURE__*/ function() {
|
|
82343
82455
|
}
|
82344
82456
|
}
|
82345
82457
|
},
|
82458
|
+
{
|
82459
|
+
key: "media",
|
82460
|
+
get: function get() {
|
82461
|
+
return this.videoAdContext.media;
|
82462
|
+
}
|
82463
|
+
},
|
82346
82464
|
{
|
82347
82465
|
key: "updateRegionData",
|
82348
82466
|
value: function updateRegionData() {
|
@@ -82489,6 +82607,15 @@ var VideoAds = /*#__PURE__*/ function() {
|
|
82489
82607
|
}
|
82490
82608
|
}
|
82491
82609
|
},
|
82610
|
+
{
|
82611
|
+
key: "getVideoAd",
|
82612
|
+
value: function getVideoAd(index) {
|
82613
|
+
if (index === void 0) {
|
82614
|
+
return this.videoAdElements[0];
|
82615
|
+
}
|
82616
|
+
return this.videoAdElements[index];
|
82617
|
+
}
|
82618
|
+
},
|
82492
82619
|
{
|
82493
82620
|
key: "destroy",
|
82494
82621
|
value: function destroy() {
|
@@ -82832,7 +82959,7 @@ var User = /*#__PURE__*/ function() {
|
|
82832
82959
|
if (this.info.buyerUID) {
|
82833
82960
|
return Promise.resolve(this);
|
82834
82961
|
}
|
82835
|
-
return fetch("".concat(this.config.get("auth").host, "/authority/tp/user-matching?partner_id=").concat(publisherId, "&pub_user_id=").concat(this.info.id, "&gdpr=").concat(this.consent.gdpr().
|
82962
|
+
return fetch("".concat(this.config.get("auth").host, "/authority/tp/user-matching?partner_id=").concat(publisherId, "&pub_user_id=").concat(this.info.id, "&gdpr=").concat(this.consent.gdpr().gdprApplies ? 1 : 0, "&gdpr_consent=").concat(this.consent.gdpr().tcString)).then(function(response) {
|
82836
82963
|
return response.json();
|
82837
82964
|
}).then(function(data) {
|
82838
82965
|
_this.info.buyerUID = data.remote_user_id;
|
@@ -86858,8 +86985,7 @@ var BrndtsAds = /*#__PURE__*/ function() {
|
|
86858
86985
|
try {
|
86859
86986
|
var config2 = new Config(options || {}, adsOptions || {});
|
86860
86987
|
config2.fetch().then(function() {
|
86861
|
-
var
|
86862
|
-
var logger3 = new Logger((_config2_getAdsConfig_general = config2.getAdsConfig().general) === null || _config2_getAdsConfig_general === void 0 ? void 0 : (_config2_getAdsConfig_general_debug_mode = _config2_getAdsConfig_general.debug_mode) === null || _config2_getAdsConfig_general_debug_mode === void 0 ? void 0 : _config2_getAdsConfig_general_debug_mode.value);
|
86988
|
+
var logger3 = new Logger(true);
|
86863
86989
|
_this.context = {
|
86864
86990
|
config: config2,
|
86865
86991
|
timers: {},
|
@@ -86979,6 +87105,21 @@ var BrndtsAds = /*#__PURE__*/ function() {
|
|
86979
87105
|
}
|
86980
87106
|
}
|
86981
87107
|
},
|
87108
|
+
{
|
87109
|
+
key: "refreshConfigs",
|
87110
|
+
value: function refreshConfigs(options, adsOptions) {
|
87111
|
+
if (!this.ready.value) {
|
87112
|
+
return;
|
87113
|
+
}
|
87114
|
+
this.context.config.refresh(options, adsOptions);
|
87115
|
+
if (this.context.ads) {
|
87116
|
+
var _this_context_ads;
|
87117
|
+
(_this_context_ads = this.context.ads) === null || _this_context_ads === void 0 ? void 0 : _this_context_ads.destroy();
|
87118
|
+
this.context.ads = new Ads_default(this.context);
|
87119
|
+
this.context.ads.start();
|
87120
|
+
}
|
87121
|
+
}
|
87122
|
+
},
|
86982
87123
|
{
|
86983
87124
|
key: "restartControls",
|
86984
87125
|
value: function restartControls(controlsConfig) {
|
@@ -86986,6 +87127,26 @@ var BrndtsAds = /*#__PURE__*/ function() {
|
|
86986
87127
|
this.context.config.set("controls", controlsConfig);
|
86987
87128
|
}
|
86988
87129
|
},
|
87130
|
+
{
|
87131
|
+
key: "rewind",
|
87132
|
+
value: function rewind(value2) {
|
87133
|
+
var _this_context_ads_videoAds_getVideoAd, _this_context_ads_videoAds, _this_context_ads;
|
87134
|
+
if (!this.ready.value) {
|
87135
|
+
return;
|
87136
|
+
}
|
87137
|
+
(_this_context_ads = this.context.ads) === null || _this_context_ads === void 0 ? void 0 : (_this_context_ads_videoAds = _this_context_ads.videoAds) === null || _this_context_ads_videoAds === void 0 ? void 0 : (_this_context_ads_videoAds_getVideoAd = _this_context_ads_videoAds.getVideoAd()) === null || _this_context_ads_videoAds_getVideoAd === void 0 ? void 0 : _this_context_ads_videoAds_getVideoAd.media.rewind(value2);
|
87138
|
+
}
|
87139
|
+
},
|
87140
|
+
{
|
87141
|
+
key: "forward",
|
87142
|
+
value: function forward(value2) {
|
87143
|
+
var _this_context_ads_videoAds_getVideoAd, _this_context_ads_videoAds, _this_context_ads;
|
87144
|
+
if (!this.ready.value) {
|
87145
|
+
return;
|
87146
|
+
}
|
87147
|
+
(_this_context_ads = this.context.ads) === null || _this_context_ads === void 0 ? void 0 : (_this_context_ads_videoAds = _this_context_ads.videoAds) === null || _this_context_ads_videoAds === void 0 ? void 0 : (_this_context_ads_videoAds_getVideoAd = _this_context_ads_videoAds.getVideoAd()) === null || _this_context_ads_videoAds_getVideoAd === void 0 ? void 0 : _this_context_ads_videoAds_getVideoAd.media.forward(value2);
|
87148
|
+
}
|
87149
|
+
},
|
86989
87150
|
{
|
86990
87151
|
key: "destroy",
|
86991
87152
|
value: function destroy() {
|