apxor-rtm-ui 0.9.3 → 0.9.4

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.
@@ -12296,14 +12296,14 @@
12296
12296
  _config$wait_interval,
12297
12297
  _config$termination;
12298
12298
  _classCallCheck(this, TemplateContent);
12299
- _defineProperty(this, "tclX", function () {
12299
+ _defineProperty(this, "uBdi", function () {
12300
12300
  return new Promise(function (resolve, reject) {
12301
12301
  try {
12302
- var element = _this.JssF(_this.layout);
12302
+ var element = _this.wrXb(_this.layout);
12303
12303
  var styleElement = document.createElement("style");
12304
12304
  styleElement.innerHTML = _this.styleContent;
12305
12305
  document.head.appendChild(styleElement);
12306
- _this.jTYU();
12306
+ _this.OVEI();
12307
12307
  try {
12308
12308
  eval(_this.script);
12309
12309
  } catch (e) {
@@ -12314,15 +12314,15 @@
12314
12314
  }
12315
12315
  _this.imageElements.forEach(function (img) {
12316
12316
  img.addEventListener("error", function () {
12317
- _this.ayPc("provided image doesn't exists");
12317
+ _this.CkGl("provided image doesn't exists");
12318
12318
  });
12319
12319
  });
12320
12320
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
12321
12321
  _this.wait_interval -= 1;
12322
12322
  if (_this.wait_interval <= 0) {
12323
- _this.ayPc("provided media doesn't exists");
12323
+ _this.CkGl("provided media doesn't exists");
12324
12324
  } else {
12325
- if (_this.XUBL() && _this.kxrF() && _this.sSIh()) {
12325
+ if (_this.iiWD() && _this.IsLE() && _this.Ffpr()) {
12326
12326
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
12327
12327
  resolve(element);
12328
12328
  }
@@ -12336,7 +12336,7 @@
12336
12336
  }
12337
12337
  });
12338
12338
  });
12339
- _defineProperty(this, "ayPc", function (reason) {
12339
+ _defineProperty(this, "CkGl", function (reason) {
12340
12340
  var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
12341
12341
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
12342
12342
  apx_nudge_name: _this.name,
@@ -12352,13 +12352,13 @@
12352
12352
  _this.closeCallBack("cancel");
12353
12353
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
12354
12354
  });
12355
- _defineProperty(this, "jTYU", function () {
12355
+ _defineProperty(this, "OVEI", function () {
12356
12356
  var BuilderTemplatesStyles = document.createElement("style");
12357
12357
  BuilderTemplatesStyles.innerHTML = _this.initialStyles;
12358
12358
  BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
12359
12359
  document.head.appendChild(BuilderTemplatesStyles);
12360
12360
  });
12361
- _defineProperty(this, "JssF", function (config) {
12361
+ _defineProperty(this, "wrXb", function (config) {
12362
12362
  var _window$Apxor3;
12363
12363
  var element;
12364
12364
  switch (config.type) {
@@ -12444,7 +12444,7 @@
12444
12444
  if (config.type === "cta_button" || config.type === "button") {
12445
12445
  reason = "cta-clicked";
12446
12446
  }
12447
- _this.dGod(e, "redirect", reason);
12447
+ _this.ogIv(e, "redirect", reason);
12448
12448
  if ((_this$config7 = _this.config) !== null && _this$config7 !== void 0 && (_this$config7 = _this$config7.additional_info) !== null && _this$config7 !== void 0 && _this$config7.apx_step) {
12449
12449
  var _window4, _this$config8;
12450
12450
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.Apxor) === null || _window4 === void 0 || _window4.triggerNextStep(_this.configId, ((_this$config8 = _this.config) === null || _this$config8 === void 0 || (_this$config8 = _this$config8.additional_info) === null || _this$config8 === void 0 ? void 0 : _this$config8.apx_step) + 1);
@@ -12460,7 +12460,7 @@
12460
12460
  } else if (config.type === "cta_button" || config.type === "button") {
12461
12461
  reason = "cta-clicked";
12462
12462
  }
12463
- _this.dGod(e, "cancel", reason);
12463
+ _this.ogIv(e, "cancel", reason);
12464
12464
  // window.Apxor.logActionEvent(
12465
12465
  // "walk_through_cancelled",
12466
12466
  // this.configId,
@@ -12479,7 +12479,7 @@
12479
12479
  } else if (config.type === "cta_button" || config.type === "button") {
12480
12480
  reason = "cta-clicked";
12481
12481
  }
12482
- _this.dGod(e, "dismiss", reason);
12482
+ _this.ogIv(e, "dismiss", reason);
12483
12483
  if ((_this$config9 = _this.config) !== null && _this$config9 !== void 0 && (_this$config9 = _this$config9.additional_info) !== null && _this$config9 !== void 0 && _this$config9.apx_step) {
12484
12484
  var _window5, _this$config10;
12485
12485
  (_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || _window5.triggerNextStep(_this.configId, ((_this$config10 = _this.config) === null || _this$config10 === void 0 || (_this$config10 = _this$config10.additional_info) === null || _this$config10 === void 0 ? void 0 : _this$config10.apx_step) + 1);
@@ -12490,7 +12490,7 @@
12490
12490
  element.onclick = function (e) {
12491
12491
  e.stopPropagation();
12492
12492
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
12493
- _this.dGod(e, "never");
12493
+ _this.ogIv(e, "never");
12494
12494
  };
12495
12495
  break;
12496
12496
  case "toggle-class":
@@ -12515,7 +12515,7 @@
12515
12515
  tempInput.select();
12516
12516
  document.execCommand("copy");
12517
12517
  document.body.removeChild(tempInput);
12518
- _this.dGod(e, "copy-content", "cta-clicked");
12518
+ _this.ogIv(e, "copy-content", "cta-clicked");
12519
12519
  setTimeout(function () {
12520
12520
  window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
12521
12521
  }, 500);
@@ -12537,7 +12537,7 @@
12537
12537
  }
12538
12538
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
12539
12539
  config.absolute_position_children.forEach(function (childConfig) {
12540
- var childElement = _this.JssF(childConfig);
12540
+ var childElement = _this.wrXb(childConfig);
12541
12541
  element.appendChild(childElement);
12542
12542
  });
12543
12543
  }
@@ -12545,7 +12545,7 @@
12545
12545
  // Process children
12546
12546
  if (config.children && config.children.length > 0) {
12547
12547
  config.children.forEach(function (childConfig) {
12548
- var childElement = _this.JssF(childConfig);
12548
+ var childElement = _this.wrXb(childConfig);
12549
12549
  element.appendChild(childElement);
12550
12550
  });
12551
12551
  }
@@ -12572,7 +12572,7 @@
12572
12572
  }
12573
12573
  return element;
12574
12574
  });
12575
- _defineProperty(this, "dGod", function (e, action) {
12575
+ _defineProperty(this, "ogIv", function (e, action) {
12576
12576
  var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
12577
12577
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
12578
12578
  var additional_info = {
@@ -12601,7 +12601,7 @@
12601
12601
  _this.closeCallBack(action);
12602
12602
  }
12603
12603
  });
12604
- _defineProperty(this, "kxrF", function () {
12604
+ _defineProperty(this, "IsLE", function () {
12605
12605
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
12606
12606
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
12607
12607
  if (_this.imageElements.length === 0) return true;
@@ -12609,13 +12609,13 @@
12609
12609
  return img.complete;
12610
12610
  });
12611
12611
  });
12612
- _defineProperty(this, "sSIh", function () {
12612
+ _defineProperty(this, "Ffpr", function () {
12613
12613
  if (!_this.bgImageUrl) return true;
12614
12614
  var img = new Image();
12615
12615
  img.src = _this.bgImageUrl;
12616
12616
  return img.complete;
12617
12617
  });
12618
- _defineProperty(this, "XUBL", function () {
12618
+ _defineProperty(this, "iiWD", function () {
12619
12619
  if (_this.videoElements.length === 0) return true;
12620
12620
  return _this.videoElements.every(function (video) {
12621
12621
  return video.readyState >= 3;
@@ -13554,7 +13554,7 @@
13554
13554
  case 0:
13555
13555
  _context2.prev = 0;
13556
13556
  _context2.next = 3;
13557
- return this.templateContent.tclX();
13557
+ return this.templateContent.uBdi();
13558
13558
  case 3:
13559
13559
  this.inLineContainer = _context2.sent;
13560
13560
  _context2.next = 9;
@@ -15131,7 +15131,7 @@
15131
15131
  * @description Creates the styles for Marketing message.
15132
15132
  * @returns {string} css styles
15133
15133
  */
15134
- _defineProperty(this, "nqOV", function () {
15134
+ _defineProperty(this, "iVBk", function () {
15135
15135
  if (!_this.enable_marketing) {
15136
15136
  return "";
15137
15137
  }
@@ -15150,7 +15150,7 @@
15150
15150
  * @private
15151
15151
  * @description Sets the marketing content at the end of the Inline
15152
15152
  */
15153
- _defineProperty(this, "BHya", function () {
15153
+ _defineProperty(this, "cXKr", function () {
15154
15154
  if (_this.enable_marketing) {
15155
15155
  var marketingContainer = document.createElement("div");
15156
15156
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -15764,7 +15764,7 @@
15764
15764
  if (apxor_tooltip_styles) {
15765
15765
  return;
15766
15766
  }
15767
- var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInLineContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInLineMediaContainerStyles(), "\n ").concat(this._getInLineNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getInLineButtonContainerStyles(), " \n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.nqOV(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15767
+ var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInLineContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInLineMediaContainerStyles(), "\n ").concat(this._getInLineNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getInLineButtonContainerStyles(), " \n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.iVBk(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15768
15768
  var styleNode = document.createElement("style");
15769
15769
  styleNode.setAttribute("apx-tooltip-styles", "");
15770
15770
  styleNode.innerHTML = styles;
@@ -16574,7 +16574,7 @@
16574
16574
  this._setCloseButton();
16575
16575
 
16576
16576
  //Set the Marketing content
16577
- this.BHya();
16577
+ this.cXKr();
16578
16578
  }
16579
16579
 
16580
16580
  /**
@@ -19471,7 +19471,7 @@
19471
19471
  case 0:
19472
19472
  _context2.prev = 0;
19473
19473
  _context2.next = 3;
19474
- return this.templateContent.tclX();
19474
+ return this.templateContent.uBdi();
19475
19475
  case 3:
19476
19476
  this.inAppContainer = _context2.sent;
19477
19477
  this.inAppContainer.style.zIndex = 99999;
@@ -19670,7 +19670,7 @@
19670
19670
  * @description Creates the styles for Marketing message.
19671
19671
  * @returns {string} css styles
19672
19672
  */
19673
- _defineProperty(this, "nqOV", function () {
19673
+ _defineProperty(this, "iVBk", function () {
19674
19674
  if (!_this.enable_marketing) {
19675
19675
  return "";
19676
19676
  }
@@ -19716,7 +19716,7 @@
19716
19716
  * @private
19717
19717
  * @description Get the response for Form content in the InApp modal.
19718
19718
  */
19719
- _defineProperty(this, "VNyc", function (form_elements) {
19719
+ _defineProperty(this, "waUV", function (form_elements) {
19720
19720
  var obj = {};
19721
19721
  var callback = "";
19722
19722
  form_elements.forEach(function (element) {
@@ -19756,7 +19756,7 @@
19756
19756
  * @private
19757
19757
  * @description Sets the marketing content at the end of the InApp
19758
19758
  */
19759
- _defineProperty(this, "BHya", function () {
19759
+ _defineProperty(this, "cXKr", function () {
19760
19760
  if (_this.enable_marketing) {
19761
19761
  var marketingContainer = document.createElement("div");
19762
19762
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -20016,7 +20016,7 @@
20016
20016
  }, {
20017
20017
  key: "_setStyles",
20018
20018
  value: function _setStyles() {
20019
- var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInAppContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInAppMediaContainerStyles(), "\n ").concat(this._getInAppNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getFormStyles(), "\n ").concat(this._getInAppButtonContainerStyles(), "\n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.nqOV(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
20019
+ var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInAppContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInAppMediaContainerStyles(), "\n ").concat(this._getInAppNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getFormStyles(), "\n ").concat(this._getInAppButtonContainerStyles(), "\n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.iVBk(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
20020
20020
  var styleNode = document.createElement("style");
20021
20021
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
20022
20022
  styleNode.innerHTML = styles;
@@ -20510,7 +20510,7 @@
20510
20510
  this._setCloseButton();
20511
20511
 
20512
20512
  //Set the Marketing content
20513
- this.BHya();
20513
+ this.cXKr();
20514
20514
  }
20515
20515
 
20516
20516
  /**
@@ -20782,7 +20782,7 @@
20782
20782
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
20783
20783
  form.addEventListener("submit", function (e) {
20784
20784
  e.preventDefault();
20785
- var _this8$generateRespon = _this8.VNyc(_this8.form.elements),
20785
+ var _this8$generateRespon = _this8.waUV(_this8.form.elements),
20786
20786
  obj = _this8$generateRespon.obj,
20787
20787
  callback = _this8$generateRespon.callback;
20788
20788
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -21142,7 +21142,7 @@
21142
21142
  };
21143
21143
  } else {
21144
21144
  // As the video player is hidden by default, unhide if the mode is not PIP.
21145
- _this.qkwF();
21145
+ _this.uNLx();
21146
21146
  }
21147
21147
  _this.showCallback();
21148
21148
  } catch (e) {
@@ -21163,7 +21163,7 @@
21163
21163
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
21164
21164
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
21165
21165
  */
21166
- _defineProperty(this, "FVBl", function () {
21166
+ _defineProperty(this, "CvsT", function () {
21167
21167
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
21168
21168
  width = _getHeightWidthFromRe.width,
21169
21169
  height = _getHeightWidthFromRe.height;
@@ -21175,7 +21175,7 @@
21175
21175
  * @private
21176
21176
  * @description Removes the video player style element.
21177
21177
  */
21178
- _defineProperty(this, "Vbqc", function () {
21178
+ _defineProperty(this, "ryUc", function () {
21179
21179
  var playerStyles = document.getElementById("apx-mpl-styles");
21180
21180
  if (playerStyles) {
21181
21181
  playerStyles.remove();
@@ -21186,7 +21186,7 @@
21186
21186
  * @private
21187
21187
  * @description Attach listeners on the video controls
21188
21188
  */
21189
- _defineProperty(this, "zTef", function () {
21189
+ _defineProperty(this, "XajC", function () {
21190
21190
  // Listener for the video end. Display the CTA's when the video ends.
21191
21191
  _this.videoElement.addEventListener("ended", function () {
21192
21192
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -21289,7 +21289,7 @@
21289
21289
  * @private
21290
21290
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21291
21291
  */
21292
- _defineProperty(this, "pAjc", function () {
21292
+ _defineProperty(this, "SJgE", function () {
21293
21293
  var _this$terminationConf;
21294
21294
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
21295
21295
  // On Exit of the PIP,
@@ -21329,7 +21329,7 @@
21329
21329
  * @private Sets the custom controls on the video player.
21330
21330
  * PIP and close are the custom controls that are created and positions on the video.
21331
21331
  */
21332
- _defineProperty(this, "EVzk", function () {
21332
+ _defineProperty(this, "BWYs", function () {
21333
21333
  _this.enable_close_button;
21334
21334
  if (_this.enable_close_button) {
21335
21335
  var closeButton = document.createElement("span");
@@ -21376,21 +21376,21 @@
21376
21376
  * @function hideVideoPlayer
21377
21377
  * @description Sets the visibility of the video player to hidden.
21378
21378
  */
21379
- _defineProperty(this, "lKkb", function () {
21379
+ _defineProperty(this, "mRDN", function () {
21380
21380
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
21381
21381
  });
21382
21382
  /**
21383
21383
  * @function unhideVideoPlayer
21384
21384
  * @description Unhides video player.
21385
21385
  */
21386
- _defineProperty(this, "qkwF", function () {
21386
+ _defineProperty(this, "uNLx", function () {
21387
21387
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
21388
21388
  });
21389
21389
  /**
21390
21390
  * @function getVideoElement
21391
21391
  * @returns {HTMLElement} Video ekement
21392
21392
  */
21393
- _defineProperty(this, "CVxJ", function () {
21393
+ _defineProperty(this, "pItt", function () {
21394
21394
  return _this.videoElement;
21395
21395
  });
21396
21396
  this.videoPlayer = null;
@@ -21445,7 +21445,7 @@
21445
21445
  this.videoPlayer.style.backgroundColor = this.bg_color;
21446
21446
 
21447
21447
  // Video has a resolution, not deviating from the resolution set the height and width.
21448
- this.FVBl();
21448
+ this.CvsT();
21449
21449
  //Generate the styles and add them to the document head.
21450
21450
  this._setVideoPlayerStyles();
21451
21451
  //Set the position of the video player with in the 5 possible positions.
@@ -21453,16 +21453,16 @@
21453
21453
  //Create a video element,set the source and add to the container.
21454
21454
  this._setPlayerContent();
21455
21455
  //Set the listeners on the video control buttons.
21456
- this.zTef();
21456
+ this.XajC();
21457
21457
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21458
- this.pAjc();
21458
+ this.SJgE();
21459
21459
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
21460
21460
  //Reason - We want to position them at the top right and left positions.
21461
- this.EVzk();
21461
+ this.BWYs();
21462
21462
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
21463
21463
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
21464
21464
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
21465
- this.lKkb();
21465
+ this.mRDN();
21466
21466
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
21467
21467
  this._setAutoTerminate();
21468
21468
  document.body.appendChild(this.videoPlayer);
@@ -21577,7 +21577,7 @@
21577
21577
  }
21578
21578
  }
21579
21579
  this.videoPlayer.remove();
21580
- this.Vbqc();
21580
+ this.ryUc();
21581
21581
  if (closeButtonName !== "auto_dismiss") {
21582
21582
  var _window$ApxorRTM8;
21583
21583
  (_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_close_button_clicked", {
@@ -21647,7 +21647,7 @@
21647
21647
  replayCount: _this3.replayCount
21648
21648
  });
21649
21649
  _this3.videoPlayer.remove();
21650
- _this3.Vbqc();
21650
+ _this3.ryUc();
21651
21651
  _this3.hideCallback();
21652
21652
  } catch (e) {
21653
21653
  console.log("Can't close the video player\n".concat(e));
@@ -21741,14 +21741,14 @@
21741
21741
  try {
21742
21742
  var _window;
21743
21743
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
21744
- var element = _this.THPB(_this.layout);
21745
- _this.vIRY();
21744
+ var element = _this.xzeq(_this.layout);
21745
+ _this.oPco();
21746
21746
  window.onresize = function () {
21747
- _this.hRVV();
21747
+ _this.OEJQ();
21748
21748
  };
21749
21749
  _this.imageElements.forEach(function (img) {
21750
21750
  img.addEventListener("error", function () {
21751
- _this.ayPc("provided image doesn't exists");
21751
+ _this.CkGl("provided image doesn't exists");
21752
21752
  });
21753
21753
  });
21754
21754
  var rootContainer = document.createElement("div");
@@ -21759,7 +21759,7 @@
21759
21759
  var styleElement = document.createElement("style");
21760
21760
  styleElement.innerHTML = _this.styleContent;
21761
21761
  document.head.appendChild(styleElement);
21762
- _this.KGpF(_this.termination);
21762
+ _this.jixP(_this.termination);
21763
21763
  try {
21764
21764
  eval(_this.script);
21765
21765
  } catch (e) {
@@ -21770,10 +21770,10 @@
21770
21770
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
21771
21771
  _this.wait_interval -= 1;
21772
21772
  if (_this.wait_interval <= 0) {
21773
- _this.ayPc("provided media doesn't exists");
21773
+ _this.CkGl("provided media doesn't exists");
21774
21774
  } else {
21775
- if (_this.XUBL() && _this.kxrF() && _this.sSIh()) {
21776
- _this.hRVV();
21775
+ if (_this.iiWD() && _this.IsLE() && _this.Ffpr()) {
21776
+ _this.OEJQ();
21777
21777
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21778
21778
  }
21779
21779
  }
@@ -21784,9 +21784,9 @@
21784
21784
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorLogger) === null || _window3 === void 0 || _window3.error("failed while creating embed card with error: ".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
21785
21785
  }
21786
21786
  });
21787
- _defineProperty(this, "ayPc", function (reason) {
21788
- var _window$Apxor, _window4;
21789
- !_this.loggedNudgeNotShownEvent && ((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.logAppEvent("apx_nudge_not_shown", {
21787
+ _defineProperty(this, "CkGl", function (reason) {
21788
+ var _window$ApxorRTM, _window4;
21789
+ !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
21790
21790
  apx_nudge_name: _this.name,
21791
21791
  apx_nudge_id: _this.configId,
21792
21792
  apx_template_time: "embed-card",
@@ -21798,14 +21798,14 @@
21798
21798
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21799
21799
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
21800
21800
  });
21801
- _defineProperty(this, "vIRY", function () {
21801
+ _defineProperty(this, "oPco", function () {
21802
21802
  var EmbeddedCardsStyles = document.createElement("style");
21803
21803
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
21804
21804
  EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
21805
21805
  document.head.appendChild(EmbeddedCardsStyles);
21806
21806
  });
21807
- _defineProperty(this, "THPB", function (config) {
21808
- var _window$Apxor2;
21807
+ _defineProperty(this, "xzeq", function (config) {
21808
+ var _window$Apxor;
21809
21809
  var element;
21810
21810
  switch (config.type) {
21811
21811
  case "cell":
@@ -21822,7 +21822,7 @@
21822
21822
  element.muted = true;
21823
21823
  element.disablePictureInPicture = true;
21824
21824
  element.autoplay = true;
21825
- if (((_window$Apxor2 = window.Apxor) === null || _window$Apxor2 === void 0 ? void 0 : _window$Apxor2.platform) === "ios") {
21825
+ if (((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.platform) === "ios") {
21826
21826
  element.playsInline = true;
21827
21827
  }
21828
21828
  break;
@@ -21884,40 +21884,40 @@
21884
21884
  element.onclick = function (e) {
21885
21885
  e.stopPropagation();
21886
21886
  window.Apxor.redirect(JSON.stringify(action));
21887
- _this.dGod(e);
21887
+ _this.ogIv(e);
21888
21888
  };
21889
21889
  break;
21890
21890
  case "show-video":
21891
21891
  element.onclick = function (e) {
21892
21892
  e.stopPropagation();
21893
21893
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
21894
- _this.dGod(e);
21894
+ _this.ogIv(e);
21895
21895
  };
21896
21896
  break;
21897
21897
  case "cancel":
21898
21898
  element.onclick = function (e) {
21899
21899
  e.stopPropagation();
21900
- _this.dGod(e);
21900
+ _this.ogIv(e);
21901
21901
  window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
21902
21902
  };
21903
21903
  break;
21904
21904
  case "dismiss":
21905
21905
  element.onclick = function (e) {
21906
21906
  e.stopPropagation();
21907
- _this.dGod(e);
21907
+ _this.ogIv(e);
21908
21908
  };
21909
21909
  break;
21910
21910
  case "never":
21911
21911
  element.onclick = function (e) {
21912
- var _window$Apxor3;
21912
+ var _window$ApxorRTM2;
21913
21913
  e.stopPropagation();
21914
21914
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
21915
- (_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 || _window$Apxor3.logAppEvent("apx_nudge_terminated", {
21915
+ (_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 || _window$ApxorRTM2.logEvent("apx_nudge_terminated", {
21916
21916
  apx_nudge_name: _this.name,
21917
21917
  apx_nudge_id: _this.configId,
21918
21918
  apx_termination_type: "never-show"
21919
21919
  });
21920
- _this.dGod(e);
21920
+ _this.ogIv(e);
21921
21921
  };
21922
21922
  break;
21923
21923
  case "toggle-class":
@@ -21942,13 +21942,14 @@
21942
21942
  tempInput.select();
21943
21943
  document.execCommand("copy");
21944
21944
  document.body.removeChild(tempInput);
21945
- _this.dGod(e);
21945
+ _this.ogIv(e);
21946
21946
  };
21947
21947
  break;
21948
21948
  case "log-app-event":
21949
21949
  element.onclick = function (e) {
21950
+ var _window$ApxorRTM3;
21950
21951
  e.stopPropagation();
21951
- window.Apxor.logAppEvent(action === null || action === void 0 ? void 0 : action.event_name);
21952
+ (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent(action === null || action === void 0 ? void 0 : action.event_name);
21952
21953
  };
21953
21954
  break;
21954
21955
  case "log-client-event":
@@ -21961,7 +21962,7 @@
21961
21962
  }
21962
21963
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
21963
21964
  config.absolute_position_children.forEach(function (childConfig) {
21964
- var childElement = _this.JssF(childConfig);
21965
+ var childElement = _this.wrXb(childConfig);
21965
21966
  element.appendChild(childElement);
21966
21967
  });
21967
21968
  }
@@ -21969,7 +21970,7 @@
21969
21970
  // Process children
21970
21971
  if (config.children && config.children.length > 0) {
21971
21972
  config.children.forEach(function (childConfig) {
21972
- var childElement = _this.THPB(childConfig);
21973
+ var childElement = _this.xzeq(childConfig);
21973
21974
  element.appendChild(childElement);
21974
21975
  });
21975
21976
  }
@@ -21995,7 +21996,7 @@
21995
21996
  }
21996
21997
  return element;
21997
21998
  });
21998
- _defineProperty(this, "dGod", function (e) {
21999
+ _defineProperty(this, "ogIv", function (e) {
21999
22000
  var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
22000
22001
  var additional_info = {
22001
22002
  apx_nudge_name: _this.name,
@@ -22004,15 +22005,15 @@
22004
22005
  apx_template_name: "embed-card"
22005
22006
  };
22006
22007
  if (e.target.tagName === "BUTTON") {
22007
- var _e$target$innerHTML, _e$target2, _window$Apxor4;
22008
+ var _e$target$innerHTML, _e$target2, _window$ApxorRTM4;
22008
22009
  additional_info["apx_cta_text"] = (_e$target$innerHTML = e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.innerHTML) !== null && _e$target$innerHTML !== void 0 ? _e$target$innerHTML : "";
22009
- (_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 || _window$Apxor4.logAppEvent("apx_card_CTA_clicked", additional_info);
22010
+ (_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_card_CTA_clicked", additional_info);
22010
22011
  } else {
22011
- var _window$Apxor5;
22012
- (_window$Apxor5 = window.Apxor) === null || _window$Apxor5 === void 0 || _window$Apxor5.logAppEvent("apx_card_interaction", additional_info);
22012
+ var _window$ApxorRTM5;
22013
+ (_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("apx_card_interaction", additional_info);
22013
22014
  }
22014
22015
  });
22015
- _defineProperty(this, "KGpF", function (config) {
22016
+ _defineProperty(this, "jixP", function (config) {
22016
22017
  config.forEach(function (id) {
22017
22018
  var element = document.getElementById(id);
22018
22019
  if (element) {
@@ -22020,7 +22021,7 @@
22020
22021
  }
22021
22022
  });
22022
22023
  });
22023
- _defineProperty(this, "kxrF", function () {
22024
+ _defineProperty(this, "IsLE", function () {
22024
22025
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
22025
22026
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
22026
22027
  if (_this.imageElements.length === 0) return true;
@@ -22028,19 +22029,19 @@
22028
22029
  return img.complete;
22029
22030
  });
22030
22031
  });
22031
- _defineProperty(this, "XUBL", function () {
22032
+ _defineProperty(this, "iiWD", function () {
22032
22033
  if (_this.videoElements.length === 0) return true;
22033
22034
  return _this.videoElements.every(function (video) {
22034
22035
  return video.readyState >= 3;
22035
22036
  });
22036
22037
  });
22037
- _defineProperty(this, "sSIh", function () {
22038
+ _defineProperty(this, "Ffpr", function () {
22038
22039
  if (!_this.bgImageUrl) return true;
22039
22040
  var img = new Image();
22040
22041
  img.src = _this.bgImageUrl;
22041
22042
  return img.complete;
22042
22043
  });
22043
- _defineProperty(this, "hRVV", function () {
22044
+ _defineProperty(this, "OEJQ", function () {
22044
22045
  var _window6, _window7;
22045
22046
  var width = window.document.querySelector("html").offsetWidth;
22046
22047
  var height = window.document.querySelector("html").offsetHeight;
@@ -22088,7 +22089,8 @@
22088
22089
 
22089
22090
  var Stories = /*#__PURE__*/function () {
22090
22091
  function Stories(_config, configId, name, position, slidesSeenCount, view_id, showCallback, closeCallback) {
22091
- var _this = this;
22092
+ var _this = this,
22093
+ _config$position;
22092
22094
  _classCallCheck(this, Stories);
22093
22095
  _defineProperty(this, "showStories", function () {
22094
22096
  _this.storyContainer = document.createElement("div");
@@ -22129,8 +22131,8 @@
22129
22131
  _this.storyContainer.appendChild(currentElement);
22130
22132
  _this.storyContainer.appendChild(slideDetails);
22131
22133
  document.body.appendChild(_this.storyContainer);
22132
- _this.QWQi();
22133
- _this.Hxdq();
22134
+ _this.gdCQ();
22135
+ _this.TWfo();
22134
22136
  _this.progress = Array.from(document.querySelectorAll(".progress"));
22135
22137
  var current_slide = document.querySelector(".slide-details");
22136
22138
  var playNext = function playNext(e) {
@@ -22176,7 +22178,7 @@
22176
22178
  _existingAbsoluteElements2.forEach(function (element) {
22177
22179
  element.remove();
22178
22180
  });
22179
- // this.pZHH();
22181
+ // this.DdQu();
22180
22182
  var _currentSlideDetails = document.querySelector(".slide-details");
22181
22183
  _currentSlideDetails.innerHTML = "";
22182
22184
  _this.position = _this.position + 1;
@@ -22272,7 +22274,7 @@
22272
22274
  absolute_header = document.createElement("div");
22273
22275
  current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
22274
22276
  var current_absolute_element;
22275
- current_absolute_element = _this.JssF(current_element);
22277
+ current_absolute_element = _this.wrXb(current_element);
22276
22278
  absolute_header.appendChild(current_absolute_element);
22277
22279
  });
22278
22280
  (_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
@@ -22332,7 +22334,7 @@
22332
22334
  document.body.style.backgroundRepeat = "";
22333
22335
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
22334
22336
  delete updated_layout_without_absolute_elements["absolute_position_children"];
22335
- element = _this.JssF(updated_layout_without_absolute_elements);
22337
+ element = _this.wrXb(updated_layout_without_absolute_elements);
22336
22338
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
22337
22339
  document.body.style.margin = "0px";
22338
22340
  }
@@ -22340,9 +22342,9 @@
22340
22342
  current_slide.removeChild(current_slide.children[0]);
22341
22343
  }
22342
22344
  current_slide.appendChild(element);
22343
- _this.lJjJ();
22345
+ _this.KsJU();
22344
22346
  window.intervalToCheckImgStatus = setInterval(function () {
22345
- if (_this.Aayi()) {
22347
+ if (_this.PWKX()) {
22346
22348
  clearInterval(window.intervalToCheckImgStatus);
22347
22349
  }
22348
22350
  }, 500);
@@ -22370,7 +22372,7 @@
22370
22372
  });
22371
22373
  playNext();
22372
22374
  });
22373
- _defineProperty(this, "pZHH", function () {
22375
+ _defineProperty(this, "DdQu", function () {
22374
22376
  document.body.classList.add("slide-right");
22375
22377
  var animationEndCounter = 0;
22376
22378
  var onAnimationEnd = function onAnimationEnd() {
@@ -22382,7 +22384,7 @@
22382
22384
  };
22383
22385
  document.body.addEventListener("animationend", onAnimationEnd);
22384
22386
  });
22385
- _defineProperty(this, "JssF", function (config) {
22387
+ _defineProperty(this, "wrXb", function (config) {
22386
22388
  var _window$Apxor4;
22387
22389
  var element;
22388
22390
  var explicit_styles = "";
@@ -22440,7 +22442,7 @@
22440
22442
  element.innerHTML = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 25 25\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.375 4L10.1979 6.17708L7.92708 9.20833H3V15.4583H7.16667L12.375 20.6667V4Z\" fill=\"currentColor\" />\n <path d=\"M14.4905 20.2167C18.9193 20.2167 22.5095 16.6265 22.5095 12.1977C22.5095 7.76894 18.9193 4.17871 14.4905 4.17871\" stroke=\"currentColor\" fill =\"transparent\" stroke-width=\"1.782\"/>\n <path d=\"M14.4905 15.7618C16.4588 15.7618 18.0545 14.1661 18.0545 12.1978C18.0545 10.2294 16.4588 8.63379 14.4905 8.63379\" stroke=\"currentColor\" fill=\"transparent\" stroke-width=\"1.782\"/>\n </svg>";
22441
22443
  element.id = "apx-mute-icon";
22442
22444
  element.addEventListener("touchstart", function (event) {
22443
- _this.HChJ(event);
22445
+ _this.rEMF(event);
22444
22446
  });
22445
22447
  break;
22446
22448
  case "copy_icon":
@@ -22497,6 +22499,22 @@
22497
22499
  var styles;
22498
22500
  styles = objectToCSS(imgStyleObject);
22499
22501
  element.style = styles;
22502
+ } else if (config.type == "cell") {
22503
+ var _styleObject = parseCSS(config.css);
22504
+ var _styles;
22505
+ if (!_this.status_bar_height) {
22506
+ _styles = objectToCSS(_styleObject);
22507
+ element.style = _styles;
22508
+ } else {
22509
+ var elementTop = 0;
22510
+ if ("top" in _styleObject) {
22511
+ elementTop = parseInt(_styleObject.top.split("px")[0]) + _this.status_bar_height;
22512
+ }
22513
+ var stylesObject = removeKeys(_styleObject, ["top"]);
22514
+ var _styles2 = objectToCSS(stylesObject);
22515
+ element.style = _styles2;
22516
+ element.style.top = "".concat(elementTop, "px");
22517
+ }
22500
22518
  } else {
22501
22519
  var _config$properties3;
22502
22520
  element.style = config.css;
@@ -22639,7 +22657,7 @@
22639
22657
  }
22640
22658
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
22641
22659
  config.absolute_position_children.forEach(function (childConfig) {
22642
- var childElement = _this.JssF(childConfig);
22660
+ var childElement = _this.wrXb(childConfig);
22643
22661
  element.appendChild(childElement);
22644
22662
  });
22645
22663
  }
@@ -22647,7 +22665,7 @@
22647
22665
  // Process children
22648
22666
  if (config.children && config.children.length > 0) {
22649
22667
  config.children.forEach(function (childConfig) {
22650
- var childElement = _this.JssF(childConfig);
22668
+ var childElement = _this.wrXb(childConfig);
22651
22669
  element.appendChild(childElement);
22652
22670
  });
22653
22671
  }
@@ -22657,12 +22675,12 @@
22657
22675
  element["src"] = src ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePathF = _window5.getFilePathForStories) === null || _window5$getFilePathF === void 0 ? void 0 : _window5$getFilePathF.call(_window5, _this.config[_this.position].id, src)) || src : src;
22658
22676
  _this.imageElements.push(element);
22659
22677
  var imgWrapper = document.createElement("div");
22660
- var _styleObject = parseCSS(config.css);
22678
+ var _styleObject2 = parseCSS(config.css);
22661
22679
  Object.keys(imgWrapperStylesForStories).forEach(function (prop) {
22662
- if (prop in _styleObject) {
22663
- imgWrapper.style[imgWrapperStylesForStories[prop]] = _styleObject[prop];
22680
+ if (prop in _styleObject2) {
22681
+ imgWrapper.style[imgWrapperStylesForStories[prop]] = _styleObject2[prop];
22664
22682
  if (prop === "width") {
22665
- element.style.width = _styleObject[prop];
22683
+ element.style.width = _styleObject2[prop];
22666
22684
  }
22667
22685
  }
22668
22686
  });
@@ -22675,7 +22693,7 @@
22675
22693
  element.appendChild(ElementStyles);
22676
22694
  return element;
22677
22695
  });
22678
- _defineProperty(this, "HChJ", function (event) {
22696
+ _defineProperty(this, "rEMF", function (event) {
22679
22697
  var slide_details_to_be_deleted;
22680
22698
  var mute_child_elements;
22681
22699
  var unmute_child_elements;
@@ -22705,11 +22723,11 @@
22705
22723
  }
22706
22724
  // this.muteElement.addEventListener("touchstart", (event) => {
22707
22725
  // event.stopPropagation();
22708
- // this.HChJ(event);
22726
+ // this.rEMF(event);
22709
22727
  // });
22710
22728
  }
22711
22729
  });
22712
- _defineProperty(this, "Hxdq", function () {
22730
+ _defineProperty(this, "TWfo", function () {
22713
22731
  var tapTimeout;
22714
22732
  var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
22715
22733
  var longPressDuration = 200;
@@ -22833,7 +22851,7 @@
22833
22851
  event.target.dataset.touchStartTime = event.timeStamp;
22834
22852
  });
22835
22853
  });
22836
- _defineProperty(this, "QWQi", function () {
22854
+ _defineProperty(this, "gdCQ", function () {
22837
22855
  var startY, startX;
22838
22856
  _this.storyContainer.addEventListener("touchstart", function (event) {
22839
22857
  _this.swipeTouch = true;
@@ -23040,7 +23058,7 @@
23040
23058
  }, 50);
23041
23059
  });
23042
23060
  });
23043
- _defineProperty(this, "lJjJ", function () {
23061
+ _defineProperty(this, "KsJU", function () {
23044
23062
  _this.loader.style.display = "block";
23045
23063
  var progress = Array.from(document.querySelectorAll(".progress"));
23046
23064
  var activeIndex = progress.findIndex(function (el) {
@@ -23056,7 +23074,7 @@
23056
23074
  }
23057
23075
  }
23058
23076
  });
23059
- _defineProperty(this, "ofzx", function () {
23077
+ _defineProperty(this, "HeZe", function () {
23060
23078
  if (!_this.continueLoading) {
23061
23079
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
23062
23080
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
@@ -23076,19 +23094,19 @@
23076
23094
  _this.loader.style.display = "none";
23077
23095
  }
23078
23096
  });
23079
- _defineProperty(this, "kxrF", function () {
23097
+ _defineProperty(this, "IsLE", function () {
23080
23098
  if (_this.imageElements.length === 0) return true;
23081
23099
  return _this.imageElements.every(function (img) {
23082
23100
  return img.complete;
23083
23101
  });
23084
23102
  });
23085
- _defineProperty(this, "XUBL", function () {
23103
+ _defineProperty(this, "iiWD", function () {
23086
23104
  if (_this.videoElements.length === 0) return true;
23087
23105
  return _this.videoElements.every(function (video) {
23088
23106
  return video.readyState >= 3;
23089
23107
  });
23090
23108
  });
23091
- _defineProperty(this, "Aayi", function () {
23109
+ _defineProperty(this, "PWKX", function () {
23092
23110
  var bodyStyles = window.getComputedStyle(document.body);
23093
23111
  var backgroundImage = bodyStyles.backgroundImage;
23094
23112
  if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
@@ -23098,7 +23116,7 @@
23098
23116
  var img = new Image();
23099
23117
  img.src = imageUrl;
23100
23118
  if (img.complete) {
23101
- _this.ofzx();
23119
+ _this.HeZe();
23102
23120
  return true;
23103
23121
  }
23104
23122
  return false;
@@ -23106,21 +23124,21 @@
23106
23124
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
23107
23125
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
23108
23126
  if (childElements[0].readyState >= 3) {
23109
- _this.ofzx();
23127
+ _this.HeZe();
23110
23128
  return true;
23111
23129
  }
23112
23130
  return false;
23113
23131
  } else {
23114
23132
  if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
23115
- _this.ofzx();
23133
+ _this.HeZe();
23116
23134
  return true;
23117
- } else if (_this.kxrF() && _this.XUBL()) {
23118
- _this.ofzx();
23135
+ } else if (_this.IsLE() && _this.iiWD()) {
23136
+ _this.HeZe();
23119
23137
  return true;
23120
23138
  }
23121
23139
  }
23122
23140
  });
23123
- _defineProperty(this, "jJUR", function (event, startY, action) {
23141
+ _defineProperty(this, "bamD", function (event, startY, action) {
23124
23142
  event.stopPropagation();
23125
23143
  var endY = event.changedTouches[0].clientY;
23126
23144
  var deltaY = startY - endY;
@@ -23173,6 +23191,7 @@
23173
23191
  this.view_id = view_id;
23174
23192
  this.showCallback = showCallback;
23175
23193
  this.closeCallback = closeCallback;
23194
+ this.status_bar_height = (_config$position = _config[position]) === null || _config$position === void 0 ? void 0 : _config$position.status_bar_height;
23176
23195
  this.progress_bar = new ProgressBar$1(_config[position].progress_bar);
23177
23196
  this.slides = _config[position].slides;
23178
23197
  if (this.slides.length === this.slidesSeenCount) {
@@ -23215,18 +23234,19 @@
23215
23234
  this.swipe_action;
23216
23235
  this.continueLoading = false;
23217
23236
  this.boundSwipeUpHandling = function (event) {
23218
- return _this.jJUR(event, _this.startY, _this.swipe_action);
23237
+ return _this.bamD(event, _this.startY, _this.swipe_action);
23219
23238
  };
23220
23239
  }
23221
23240
  _createClass(Stories, [{
23222
23241
  key: "_getStoriesStyles",
23223
23242
  value: function _getStoriesStyles() {
23243
+ var _this$status_bar_heig;
23224
23244
  var head = document.head || document.getElementsByTagName("head")[0];
23225
23245
  var styleNodes = head.querySelectorAll(".apx-progressbar-styles");
23226
23246
  styleNodes.forEach(function (node) {
23227
23247
  node.parentNode.removeChild(node);
23228
23248
  });
23229
- this.storiesStyles = "\n .progress-container {\n position:absolute;\n top:12px;\n display: flex;\n flex-direction: row;\n width:100%;\n }\n\n *,:before,:after {\n box-sizing: border-box;\n -webkit-user-select: none;\n -webkit-touch-callout: none;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb\n }\n\n .progress {\n height: 4px;\n flex-grow: 1;\n border-radius: 4px;\n margin: 0 4px;\n display: flex;\n background-image: linear-gradient(\n to right,\n ".concat(this.progress_bar.seen_color, " 0%,\n ").concat(this.progress_bar.seen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 100%\n );\n background-repeat: no-repeat;\n background-size: 200%;\n background-position: 100% 50%;\n animation-timing-function: linear;\n animation-delay: 0.2s;\n }\n\n .progress.active {\n animation-name: Loader;\n }\n\n .progress.passed { \n background-position: 0 0;\n }\n\n .slide-right {\n animation: 0.5s slide-right forwards;\n background: linear-gradient(to right, rgba(225, 219, 30, 0.99), rgb(36, 202, 238)); \n background-size: 200% 100%;\n }\n \n @keyframes slide-right {\n from {\n background-position: 0% 0;\n }\n to {\n background-position: 100% 0;\n }\n }\n\n @-webkit-keyframes Loader {\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: 0 0;\n }\n }\n\n @keyframes moveUpDownButton {\n 0%,\n 100% {\n bottom: 12px;\n }\n 50% {\n bottom: 32px;\n }\n } \n\n body {\n background: #121216;\n }\n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
23249
+ this.storiesStyles = "\n .progress-container {\n position:absolute;\n top:".concat((_this$status_bar_heig = this.status_bar_height) !== null && _this$status_bar_heig !== void 0 ? _this$status_bar_heig : 12, "px;\n display: flex !important;\n flex-direction: row !important;\n width:100%;\n }\n\n *,:before,:after {\n box-sizing: border-box;\n -webkit-user-select: none;\n -webkit-touch-callout: none;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb\n }\n\n .progress {\n height: 4px; \n flex-grow: 1;\n border-radius: 4px;\n margin: 0 4px;\n display: flex;\n background-image: linear-gradient(\n to right,\n ").concat(this.progress_bar.seen_color, " 0%,\n ").concat(this.progress_bar.seen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 100%\n );\n background-repeat: no-repeat;\n background-size: 200%;\n background-position: 100% 50%;\n animation-timing-function: linear;\n animation-delay: 0.2s;\n }\n\n .progress.active {\n animation-name: Loader;\n }\n\n .progress.passed { \n background-position: 0 0;\n }\n\n .slide-right {\n animation: 0.5s slide-right forwards;\n background: linear-gradient(to right, rgba(225, 219, 30, 0.99), rgb(36, 202, 238)); \n background-size: 200% 100%;\n }\n \n @keyframes slide-right {\n from {\n background-position: 0% 0;\n }\n to {\n background-position: 100% 0;\n }\n }\n\n @-webkit-keyframes Loader {\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: 0 0;\n }\n }\n\n @keyframes moveUpDownButton {\n 0%,\n 100% {\n bottom: 12px;\n }\n 50% {\n bottom: 32px;\n }\n } \n\n body {\n background: #121216;\n }\n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
23230
23250
  var styleNode = document.createElement("style");
23231
23251
  styleNode.setAttribute("apx-stories-styles", "");
23232
23252
  styleNode.classList.add("apx-progressbar-styles");
@@ -23278,7 +23298,7 @@
23278
23298
  } else {
23279
23299
  var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
23280
23300
  // Move to the first slide of the next group
23281
- // this.pZHH();
23301
+ // this.DdQu();
23282
23302
  this.position++;
23283
23303
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23284
23304
  this.slides = this.config[this.position].slides;
@@ -23404,7 +23424,7 @@
23404
23424
  if (activeIndex === 0) {
23405
23425
  var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
23406
23426
  // If at the first slide of the current group, move to the last slide of the previous group
23407
- // this.pZHH();
23427
+ // this.DdQu();
23408
23428
  this.position--;
23409
23429
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23410
23430
  this.slides = this.config[this.position].slides;
@@ -23591,25 +23611,25 @@
23591
23611
  // Create custom content
23592
23612
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
23593
23613
  delete updated_layout_without_absolute_elements["absolute_position_children"];
23594
- element = this.JssF(updated_layout_without_absolute_elements);
23614
+ element = this.wrXb(updated_layout_without_absolute_elements);
23595
23615
  }
23596
23616
  // Append slide content to slide details container
23597
23617
 
23598
23618
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
23599
23619
  document.body.style.margin = "0px";
23600
23620
  currentSlideDetails.appendChild(element);
23601
- this.lJjJ();
23621
+ this.KsJU();
23602
23622
 
23603
23623
  // Handle absolute position children
23604
23624
  if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
23605
23625
  current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
23606
- var childElement = _this2.JssF(childConfig);
23626
+ var childElement = _this2.wrXb(childConfig);
23607
23627
  // Append absolute position children to slide details container
23608
23628
  currentSlideDetails.appendChild(childElement);
23609
23629
  });
23610
23630
  }
23611
23631
  window.intervalToCheckImgStatus2 = setInterval(function () {
23612
- if (_this2.Aayi()) {
23632
+ if (_this2.PWKX()) {
23613
23633
  clearInterval(window.intervalToCheckImgStatus2);
23614
23634
  }
23615
23635
  }, 500);
@@ -24044,15 +24064,15 @@
24044
24064
  _this$badge$animation2,
24045
24065
  _this$badge$animation3;
24046
24066
  _classCallCheck(this, ApxorBadge);
24047
- _defineProperty(this, "nJJY", function () {
24067
+ _defineProperty(this, "auVR", function () {
24048
24068
  var delayMillis = _this.delayMillis * 1000;
24049
24069
  _this.shakeAnimationRepeat(_this.interCount, delayMillis);
24050
24070
  });
24051
- _defineProperty(this, "PfNh", function () {
24071
+ _defineProperty(this, "UQku", function () {
24052
24072
  var delayMillis = _this.delayMillis * 1000;
24053
24073
  _this.fadeAnimationRepeat(_this.interCount, delayMillis);
24054
24074
  });
24055
- _defineProperty(this, "UIWW", function () {
24075
+ _defineProperty(this, "zIql", function () {
24056
24076
  var _this$targetElement;
24057
24077
  var delayMillis = _this.delayMillis * 1000;
24058
24078
  var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
@@ -24061,7 +24081,7 @@
24061
24081
  (_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
24062
24082
  _this.rippleAnimationRepeat(_this.interCount, delayMillis);
24063
24083
  });
24064
- _defineProperty(this, "xisV", function () {
24084
+ _defineProperty(this, "Jums", function () {
24065
24085
  var delayMillis = _this.delayMillis * 1000;
24066
24086
  //let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
24067
24087
  //let badgeAnimationElement = document.querySelector(badgeContainerClass);
@@ -24078,7 +24098,7 @@
24078
24098
  // newstyleNode1.innerHTML = finalStyles;
24079
24099
  // this.targetElement?.appendChild(newstyleNode1);
24080
24100
  });
24081
- _defineProperty(this, "iuYq", function () {
24101
+ _defineProperty(this, "DfZq", function () {
24082
24102
  var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
24083
24103
  elements === null || elements === void 0 || elements.forEach(function (ele) {
24084
24104
  ele === null || ele === void 0 || ele.remove();
@@ -24087,9 +24107,9 @@
24087
24107
  dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
24088
24108
  ele === null || ele === void 0 || ele.remove();
24089
24109
  });
24090
- _this.moVg();
24110
+ _this.xIUH();
24091
24111
  });
24092
- _defineProperty(this, "moVg", function () {
24112
+ _defineProperty(this, "xIUH", function () {
24093
24113
  var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
24094
24114
  // Ensure the target element is the wrapper with class 'image-container'
24095
24115
  if (targetWrapperElement) {
@@ -24113,12 +24133,12 @@
24113
24133
  * @param {boolean} optimized
24114
24134
  * @returns viewId
24115
24135
  */
24116
- _defineProperty(this, "xuge", function (node, optimized) {
24136
+ _defineProperty(this, "nRJS", function (node, optimized) {
24117
24137
  if (node.nodeType !== Node.ELEMENT_NODE) return "";
24118
24138
  var steps = [];
24119
24139
  var contextNode = node;
24120
24140
  while (contextNode) {
24121
- var step = _this.DnjD(contextNode, !!optimized, contextNode === node);
24141
+ var step = _this.Mpsc(contextNode, !!optimized, contextNode === node);
24122
24142
  if (!step) break; // Error - bail out early.
24123
24143
  steps.push(step);
24124
24144
  if (step.optimized) break;
@@ -24133,7 +24153,7 @@
24133
24153
  * @param {boolean} optimized
24134
24154
  * @param {object} isTargetNode
24135
24155
  */
24136
- _defineProperty(this, "DnjD", function (node, optimized, isTargetNode) {
24156
+ _defineProperty(this, "Mpsc", function (node, optimized, isTargetNode) {
24137
24157
  if (node.nodeType !== Node.ELEMENT_NODE) return null;
24138
24158
  var id = node.getAttribute("id");
24139
24159
  if (optimized) {
@@ -24255,7 +24275,7 @@
24255
24275
  this.contentZindexValue = 1;
24256
24276
  }
24257
24277
  _createClass(ApxorBadge, [{
24258
- key: "euPP",
24278
+ key: "TQJb",
24259
24279
  value: function createBadge() {
24260
24280
  var _this2 = this;
24261
24281
  var targetFoundCallback = function targetFoundCallback() {
@@ -25072,16 +25092,16 @@
25072
25092
  var RTM = /*#__PURE__*/_createClass(function RTM() {
25073
25093
  var _this = this;
25074
25094
  _classCallCheck(this, RTM);
25075
- _defineProperty(this, "tdGc", {});
25095
+ _defineProperty(this, "wsef", {});
25076
25096
  _defineProperty(this, "isShowingAction", false);
25077
25097
  _defineProperty(this, "currentAction", null);
25078
- _defineProperty(this, "ThXo", null);
25079
- _defineProperty(this, "version", 93);
25098
+ _defineProperty(this, "snrW", null);
25099
+ _defineProperty(this, "version", 94);
25080
25100
  _defineProperty(this, "isInitialised", false);
25081
- _defineProperty(this, "MSgZ", {});
25082
- _defineProperty(this, "gkkE", false);
25101
+ _defineProperty(this, "PlOH", {});
25102
+ _defineProperty(this, "LEVi", false);
25083
25103
  _defineProperty(this, "_isShownECCalled", false);
25084
- _defineProperty(this, "DvMV", function () {
25104
+ _defineProperty(this, "ltqt", function () {
25085
25105
  _this.isInitialised = true;
25086
25106
  var oldPushState = history.pushState;
25087
25107
  history.pushState = function pushState() {
@@ -25108,7 +25128,7 @@
25108
25128
  var _window;
25109
25129
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
25110
25130
  if (!_this.isInitialised) {
25111
- _this.DvMV();
25131
+ _this.ltqt();
25112
25132
  }
25113
25133
  window.addEventListener("pagehide", function () {
25114
25134
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -25133,7 +25153,7 @@
25133
25153
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
25134
25154
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
25135
25155
  } else if (ui_config.display_type === "coach_mark_v2") {
25136
- _this.FxIS(ui_config, duration, uuid, name);
25156
+ _this.ouIf(ui_config, duration, uuid, name);
25137
25157
  } else {
25138
25158
  showCoachmarkWithDelay(_this, ui_config, {
25139
25159
  configId: uuid,
@@ -25173,7 +25193,7 @@
25173
25193
  });
25174
25194
  _defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
25175
25195
  if (!_this.isInitialised) {
25176
- _this.DvMV();
25196
+ _this.ltqt();
25177
25197
  }
25178
25198
  window.addEventListener("pagehide", function () {
25179
25199
  var _window$Apxor2, _window$Apxor2$pageUn;
@@ -25185,7 +25205,7 @@
25185
25205
  _this.removeBadge(name, uuid);
25186
25206
  }
25187
25207
  var termination_config = JSON.parse(terminationConfig);
25188
- _this.euPP(ui_config, duration, uuid, name, termination_config);
25208
+ _this.TQJb(ui_config, duration, uuid, name, termination_config);
25189
25209
  });
25190
25210
  _defineProperty(this, "showInApp", function (config, duration, configId, name) {
25191
25211
  try {
@@ -25251,7 +25271,7 @@
25251
25271
  try {
25252
25272
  config = config.split("\n").join("\\n");
25253
25273
  var ui_config = JSON.parse(config);
25254
- _this.NaBI(ui_config, configId, name, position, slidesSeenCount, view_id);
25274
+ _this.GvJD(ui_config, configId, name, position, slidesSeenCount, view_id);
25255
25275
  } catch (e) {
25256
25276
  var _window$Apxor4;
25257
25277
  if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
@@ -25265,7 +25285,7 @@
25265
25285
  console.error(e);
25266
25286
  }
25267
25287
  });
25268
- _defineProperty(this, "NaBI", function (config, configId, name, position, slidesSeenCount, view_id) {
25288
+ _defineProperty(this, "GvJD", function (config, configId, name, position, slidesSeenCount, view_id) {
25269
25289
  var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
25270
25290
  var _window$ApxorRTM3, _config$additional_in3, _config$additional_in4;
25271
25291
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_nudge_shown", {
@@ -25314,7 +25334,7 @@
25314
25334
  var _window22, _window22$updateFlag, _window23;
25315
25335
  _this.isShowingAction = false;
25316
25336
  _this.currentAction = null;
25317
- _this.ThXo = null;
25337
+ _this.snrW = null;
25318
25338
  (_window22 = window) === null || _window22 === void 0 || (_window22 = _window22.Apxor) === null || _window22 === void 0 || (_window22$updateFlag = _window22.updateFlag) === null || _window22$updateFlag === void 0 || _window22$updateFlag.call(_window22, false);
25319
25339
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25320
25340
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25325,21 +25345,21 @@
25325
25345
  }
25326
25346
  };
25327
25347
  if (action_class === "new-inline") {
25328
- _this.ThXo = new InLineTooltip(ui_config, [], [], terminationConfig, {
25348
+ _this.snrW = new InLineTooltip(ui_config, [], [], terminationConfig, {
25329
25349
  configId: uuid,
25330
25350
  configName: name
25331
25351
  }, _this, onShow, onHide, function () {}, false, 0);
25332
25352
  } else if (action_class === "tooltip_builder") {
25333
- _this.ThXo = new NewInLineTooltip(ui_config, terminationConfig, {
25353
+ _this.snrW = new NewInLineTooltip(ui_config, terminationConfig, {
25334
25354
  configId: uuid,
25335
25355
  configName: name
25336
25356
  }, _this, onShow, onHide);
25337
25357
  }
25338
25358
  setTimeout(function () {
25339
- _this.ThXo.createNewTooltip();
25359
+ _this.snrW.createNewTooltip();
25340
25360
  }, ui_config.delay);
25341
25361
  });
25342
- _defineProperty(this, "FxIS", function (ui_config, duration, uuid, name) {
25362
+ _defineProperty(this, "ouIf", function (ui_config, duration, uuid, name) {
25343
25363
  var terminationConfig = {};
25344
25364
  terminationConfig["auto_dismiss"] = duration > 0;
25345
25365
  terminationConfig["duration"] = duration;
@@ -25363,7 +25383,7 @@
25363
25383
  var _window27, _window27$updateFlag, _window28;
25364
25384
  _this.isShowingAction = false;
25365
25385
  _this.currentAction = null;
25366
- _this.ThXo = null;
25386
+ _this.snrW = null;
25367
25387
  (_window27 = window) === null || _window27 === void 0 || (_window27 = _window27.Apxor) === null || _window27 === void 0 || (_window27$updateFlag = _window27.updateFlag) === null || _window27$updateFlag === void 0 || _window27$updateFlag.call(_window27, false);
25368
25388
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25369
25389
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25375,7 +25395,7 @@
25375
25395
  }, _this.stepperCallback, false, 0);
25376
25396
  _this._currentCoachmark.createNewCoachMark();
25377
25397
  });
25378
- _defineProperty(this, "euPP", function (ui_config, duration, uuid, name, terminationConfig) {
25398
+ _defineProperty(this, "TQJb", function (ui_config, duration, uuid, name, terminationConfig) {
25379
25399
  _this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
25380
25400
  configId: uuid,
25381
25401
  configName: name
@@ -25392,12 +25412,12 @@
25392
25412
  }
25393
25413
  }
25394
25414
  });
25395
- _this._currentBadge.iuYq();
25396
- _this._currentBadge.euPP();
25415
+ _this._currentBadge.DfZq();
25416
+ _this._currentBadge.TQJb();
25397
25417
  });
25398
25418
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
25399
- if (_this.ThXo) {
25400
- _this.ThXo.updateElementPositionOnScroll(top, left, height, width);
25419
+ if (_this.snrW) {
25420
+ _this.snrW.updateElementPositionOnScroll(top, left, height, width);
25401
25421
  }
25402
25422
  });
25403
25423
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -25532,10 +25552,10 @@
25532
25552
  });
25533
25553
  _defineProperty(this, "showPlaceHolder", function () {
25534
25554
  var _window38;
25535
- if (_this.gkkE) {
25555
+ if (_this.LEVi) {
25536
25556
  return;
25537
25557
  }
25538
- _this.gkkE = true;
25558
+ _this.LEVi = true;
25539
25559
  var ele = document.createElement("div");
25540
25560
  ele.innerHTML = "place your immersive card here";
25541
25561
  ele.style.backgroundColor = "#f5f5f5";