@brndts/brndts-ads 1.13.18 → 1.13.19

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.js CHANGED
@@ -74321,6 +74321,9 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74321
74321
  }(GenericMediaElement);
74322
74322
  // src/Ads/VideoAds/Media/DailymotionMediaElement.ts
74323
74323
  var URLMatch = /^https:\/\/geo\.dailymotion\.com\/player(?:\/[a-zA-Z0-9]+)?\.html\?video=([a-zA-Z0-9]+)/;
74324
+ function generateId2(prefix) {
74325
+ return "".concat(prefix, "-").concat(Math.floor(Math.random() * 1e4));
74326
+ }
74324
74327
  function aspectRatioToNumber(ratioString) {
74325
74328
  var parts2 = ratioString.split(":");
74326
74329
  if (parts2.length !== 2) {
@@ -74498,6 +74501,9 @@ var DailymotionMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74498
74501
  key: "setMediaElement",
74499
74502
  value: function setMediaElement(target) {
74500
74503
  var _this = this;
74504
+ if (!target.id) {
74505
+ target.id = generateId2("brndts-dailymotion");
74506
+ }
74501
74507
  this.context.logger.log("Checking DM API");
74502
74508
  if (is_default.object(window.dailymotion)) {
74503
74509
  this.context.logger.log("DM API is already loaded");