apxor-rtm-ui 0.8.1 → 0.8.2

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.
@@ -12128,14 +12128,14 @@
12128
12128
  _config$wait_interval,
12129
12129
  _config$termination;
12130
12130
  _classCallCheck(this, TemplateContent);
12131
- _defineProperty(this, "NszW", function () {
12131
+ _defineProperty(this, "cdVl", function () {
12132
12132
  return new Promise(function (resolve, reject) {
12133
12133
  try {
12134
- var element = _this.xyYY(_this.layout);
12134
+ var element = _this.XiFV(_this.layout);
12135
12135
  var styleElement = document.createElement("style");
12136
12136
  styleElement.innerHTML = _this.styleContent;
12137
12137
  document.head.appendChild(styleElement);
12138
- _this.PfLM();
12138
+ _this.fFOm();
12139
12139
  try {
12140
12140
  eval(_this.script);
12141
12141
  } catch (e) {
@@ -12146,15 +12146,15 @@
12146
12146
  }
12147
12147
  _this.imageElements.forEach(function (img) {
12148
12148
  img.addEventListener("error", function () {
12149
- _this.JmOW("provided image doesn't exists");
12149
+ _this.Mhrx("provided image doesn't exists");
12150
12150
  });
12151
12151
  });
12152
12152
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
12153
12153
  _this.wait_interval -= 1;
12154
12154
  if (_this.wait_interval <= 0) {
12155
- _this.JmOW("provided media doesn't exists");
12155
+ _this.Mhrx("provided media doesn't exists");
12156
12156
  } else {
12157
- if (_this.uDuu() && _this.FgHb() && _this.IJFb()) {
12157
+ if (_this.rgyV() && _this.LmNs() && _this.dPHx()) {
12158
12158
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
12159
12159
  resolve(element);
12160
12160
  }
@@ -12168,7 +12168,7 @@
12168
12168
  }
12169
12169
  });
12170
12170
  });
12171
- _defineProperty(this, "JmOW", function (reason) {
12171
+ _defineProperty(this, "Mhrx", function (reason) {
12172
12172
  var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
12173
12173
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
12174
12174
  apx_nudge_name: _this.name,
@@ -12184,13 +12184,13 @@
12184
12184
  _this.closeCallBack("cancel");
12185
12185
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
12186
12186
  });
12187
- _defineProperty(this, "PfLM", function () {
12187
+ _defineProperty(this, "fFOm", function () {
12188
12188
  var BuilderTemplatesStyles = document.createElement("style");
12189
12189
  BuilderTemplatesStyles.innerHTML = _this.initialStyles;
12190
12190
  BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
12191
12191
  document.head.appendChild(BuilderTemplatesStyles);
12192
12192
  });
12193
- _defineProperty(this, "xyYY", function (config) {
12193
+ _defineProperty(this, "XiFV", function (config) {
12194
12194
  var _window$Apxor3;
12195
12195
  var element;
12196
12196
  switch (config.type) {
@@ -12274,7 +12274,7 @@
12274
12274
  if (config.type === "cta_button" || config.type === "button") {
12275
12275
  reason = "cta-clicked";
12276
12276
  }
12277
- _this.STbC(e, "redirect", reason);
12277
+ _this.aFNw(e, "redirect", reason);
12278
12278
  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) {
12279
12279
  var _window4, _this$config8;
12280
12280
  (_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);
@@ -12290,7 +12290,7 @@
12290
12290
  } else if (config.type === "cta_button" || config.type === "button") {
12291
12291
  reason = "cta-clicked";
12292
12292
  }
12293
- _this.STbC(e, "cancel", reason);
12293
+ _this.aFNw(e, "cancel", reason);
12294
12294
  // window.Apxor.logActionEvent(
12295
12295
  // "walk_through_cancelled",
12296
12296
  // this.configId,
@@ -12309,7 +12309,7 @@
12309
12309
  } else if (config.type === "cta_button" || config.type === "button") {
12310
12310
  reason = "cta-clicked";
12311
12311
  }
12312
- _this.STbC(e, "dismiss", reason);
12312
+ _this.aFNw(e, "dismiss", reason);
12313
12313
  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) {
12314
12314
  var _window5, _this$config10;
12315
12315
  (_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);
@@ -12320,7 +12320,7 @@
12320
12320
  element.onclick = function (e) {
12321
12321
  e.stopPropagation();
12322
12322
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
12323
- _this.STbC(e, "never");
12323
+ _this.aFNw(e, "never");
12324
12324
  };
12325
12325
  break;
12326
12326
  case "toggle-class":
@@ -12345,7 +12345,7 @@
12345
12345
  tempInput.select();
12346
12346
  document.execCommand("copy");
12347
12347
  document.body.removeChild(tempInput);
12348
- _this.STbC(e, "copy-content", "cta-clicked");
12348
+ _this.aFNw(e, "copy-content", "cta-clicked");
12349
12349
  setTimeout(function () {
12350
12350
  window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
12351
12351
  }, 500);
@@ -12367,7 +12367,7 @@
12367
12367
  }
12368
12368
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
12369
12369
  config.absolute_position_children.forEach(function (childConfig) {
12370
- var childElement = _this.xyYY(childConfig);
12370
+ var childElement = _this.XiFV(childConfig);
12371
12371
  element.appendChild(childElement);
12372
12372
  });
12373
12373
  }
@@ -12375,7 +12375,7 @@
12375
12375
  // Process children
12376
12376
  if (config.children && config.children.length > 0) {
12377
12377
  config.children.forEach(function (childConfig) {
12378
- var childElement = _this.xyYY(childConfig);
12378
+ var childElement = _this.XiFV(childConfig);
12379
12379
  element.appendChild(childElement);
12380
12380
  });
12381
12381
  }
@@ -12402,7 +12402,7 @@
12402
12402
  }
12403
12403
  return element;
12404
12404
  });
12405
- _defineProperty(this, "STbC", function (e, action) {
12405
+ _defineProperty(this, "aFNw", function (e, action) {
12406
12406
  var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
12407
12407
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
12408
12408
  var additional_info = {
@@ -12431,7 +12431,7 @@
12431
12431
  _this.closeCallBack(action);
12432
12432
  }
12433
12433
  });
12434
- _defineProperty(this, "FgHb", function () {
12434
+ _defineProperty(this, "LmNs", function () {
12435
12435
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
12436
12436
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
12437
12437
  if (_this.imageElements.length === 0) return true;
@@ -12439,13 +12439,13 @@
12439
12439
  return img.complete;
12440
12440
  });
12441
12441
  });
12442
- _defineProperty(this, "IJFb", function () {
12442
+ _defineProperty(this, "dPHx", function () {
12443
12443
  if (!_this.bgImageUrl) return true;
12444
12444
  var img = new Image();
12445
12445
  img.src = _this.bgImageUrl;
12446
12446
  return img.complete;
12447
12447
  });
12448
- _defineProperty(this, "uDuu", function () {
12448
+ _defineProperty(this, "rgyV", function () {
12449
12449
  if (_this.videoElements.length === 0) return true;
12450
12450
  return _this.videoElements.every(function (video) {
12451
12451
  return video.readyState >= 3;
@@ -13379,7 +13379,7 @@
13379
13379
  case 0:
13380
13380
  _context2.prev = 0;
13381
13381
  _context2.next = 3;
13382
- return this.templateContent.NszW();
13382
+ return this.templateContent.cdVl();
13383
13383
  case 3:
13384
13384
  this.inLineContainer = _context2.sent;
13385
13385
  _context2.next = 9;
@@ -14955,7 +14955,7 @@
14955
14955
  * @description Creates the styles for Marketing message.
14956
14956
  * @returns {string} css styles
14957
14957
  */
14958
- _defineProperty(this, "Rpwa", function () {
14958
+ _defineProperty(this, "jkcO", function () {
14959
14959
  if (!_this.enable_marketing) {
14960
14960
  return "";
14961
14961
  }
@@ -14974,7 +14974,7 @@
14974
14974
  * @private
14975
14975
  * @description Sets the marketing content at the end of the Inline
14976
14976
  */
14977
- _defineProperty(this, "EWkc", function () {
14977
+ _defineProperty(this, "UePG", function () {
14978
14978
  if (_this.enable_marketing) {
14979
14979
  var marketingContainer = document.createElement("div");
14980
14980
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -15586,7 +15586,7 @@
15586
15586
  if (apxor_tooltip_styles) {
15587
15587
  return;
15588
15588
  }
15589
- 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.Rpwa(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15589
+ 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.jkcO(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15590
15590
  var styleNode = document.createElement("style");
15591
15591
  styleNode.setAttribute("apx-tooltip-styles", "");
15592
15592
  styleNode.innerHTML = styles;
@@ -16396,7 +16396,7 @@
16396
16396
  this._setCloseButton();
16397
16397
 
16398
16398
  //Set the Marketing content
16399
- this.EWkc();
16399
+ this.UePG();
16400
16400
  }
16401
16401
 
16402
16402
  /**
@@ -19291,7 +19291,7 @@
19291
19291
  case 0:
19292
19292
  _context2.prev = 0;
19293
19293
  _context2.next = 3;
19294
- return this.templateContent.NszW();
19294
+ return this.templateContent.cdVl();
19295
19295
  case 3:
19296
19296
  this.inAppContainer = _context2.sent;
19297
19297
  this.inAppContainer.style.zIndex = 99999;
@@ -19490,7 +19490,7 @@
19490
19490
  * @description Creates the styles for Marketing message.
19491
19491
  * @returns {string} css styles
19492
19492
  */
19493
- _defineProperty(this, "Rpwa", function () {
19493
+ _defineProperty(this, "jkcO", function () {
19494
19494
  if (!_this.enable_marketing) {
19495
19495
  return "";
19496
19496
  }
@@ -19536,7 +19536,7 @@
19536
19536
  * @private
19537
19537
  * @description Get the response for Form content in the InApp modal.
19538
19538
  */
19539
- _defineProperty(this, "mJrR", function (form_elements) {
19539
+ _defineProperty(this, "buAb", function (form_elements) {
19540
19540
  var obj = {};
19541
19541
  var callback = "";
19542
19542
  form_elements.forEach(function (element) {
@@ -19576,7 +19576,7 @@
19576
19576
  * @private
19577
19577
  * @description Sets the marketing content at the end of the InApp
19578
19578
  */
19579
- _defineProperty(this, "EWkc", function () {
19579
+ _defineProperty(this, "UePG", function () {
19580
19580
  if (_this.enable_marketing) {
19581
19581
  var marketingContainer = document.createElement("div");
19582
19582
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -19835,7 +19835,7 @@
19835
19835
  }, {
19836
19836
  key: "_setStyles",
19837
19837
  value: function _setStyles() {
19838
- 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.Rpwa(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
19838
+ 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.jkcO(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
19839
19839
  var styleNode = document.createElement("style");
19840
19840
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
19841
19841
  styleNode.innerHTML = styles;
@@ -20334,7 +20334,7 @@
20334
20334
  this._setCloseButton();
20335
20335
 
20336
20336
  //Set the Marketing content
20337
- this.EWkc();
20337
+ this.UePG();
20338
20338
  }
20339
20339
 
20340
20340
  /**
@@ -20418,7 +20418,7 @@
20418
20418
  });
20419
20419
  if (format != "") {
20420
20420
  var _window2, _window2$getFilePath;
20421
- imgElement.src.src = this.image.path && format ? ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || (_window2$getFilePath = _window2.getFilePath) === null || _window2$getFilePath === void 0 ? void 0 : _window2$getFilePath.call(_window2, this.configId, this.image.path, format)) || this.image.path : this.image.path;
20421
+ imgElement.src = this.image.path && format ? ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || (_window2$getFilePath = _window2.getFilePath) === null || _window2$getFilePath === void 0 ? void 0 : _window2$getFilePath.call(_window2, this.configId, this.image.path, format)) || this.image.path : this.image.path;
20422
20422
  } else {
20423
20423
  imgElement.src = this.image.path;
20424
20424
  }
@@ -20616,7 +20616,7 @@
20616
20616
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
20617
20617
  form.addEventListener("submit", function (e) {
20618
20618
  e.preventDefault();
20619
- var _this8$generateRespon = _this8.mJrR(_this8.form.elements),
20619
+ var _this8$generateRespon = _this8.buAb(_this8.form.elements),
20620
20620
  obj = _this8$generateRespon.obj,
20621
20621
  callback = _this8$generateRespon.callback;
20622
20622
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -20976,7 +20976,7 @@
20976
20976
  };
20977
20977
  } else {
20978
20978
  // As the video player is hidden by default, unhide if the mode is not PIP.
20979
- _this.FivR();
20979
+ _this.DfFP();
20980
20980
  }
20981
20981
  _this.showCallback();
20982
20982
  } catch (e) {
@@ -20997,7 +20997,7 @@
20997
20997
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
20998
20998
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
20999
20999
  */
21000
- _defineProperty(this, "SXHT", function () {
21000
+ _defineProperty(this, "qLUJ", function () {
21001
21001
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
21002
21002
  width = _getHeightWidthFromRe.width,
21003
21003
  height = _getHeightWidthFromRe.height;
@@ -21009,7 +21009,7 @@
21009
21009
  * @private
21010
21010
  * @description Removes the video player style element.
21011
21011
  */
21012
- _defineProperty(this, "ejyO", function () {
21012
+ _defineProperty(this, "JeHw", function () {
21013
21013
  var playerStyles = document.getElementById("apx-mpl-styles");
21014
21014
  if (playerStyles) {
21015
21015
  playerStyles.remove();
@@ -21020,7 +21020,7 @@
21020
21020
  * @private
21021
21021
  * @description Attach listeners on the video controls
21022
21022
  */
21023
- _defineProperty(this, "WNJK", function () {
21023
+ _defineProperty(this, "YVwh", function () {
21024
21024
  // Listener for the video end. Display the CTA's when the video ends.
21025
21025
  _this.videoElement.addEventListener("ended", function () {
21026
21026
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -21135,7 +21135,7 @@
21135
21135
  * @private
21136
21136
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21137
21137
  */
21138
- _defineProperty(this, "QBel", function () {
21138
+ _defineProperty(this, "RrVD", function () {
21139
21139
  var _this$terminationConf;
21140
21140
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
21141
21141
  // On Exit of the PIP,
@@ -21175,7 +21175,7 @@
21175
21175
  * @private Sets the custom controls on the video player.
21176
21176
  * PIP and close are the custom controls that are created and positions on the video.
21177
21177
  */
21178
- _defineProperty(this, "stqw", function () {
21178
+ _defineProperty(this, "IGDk", function () {
21179
21179
  _this.enable_close_button;
21180
21180
  if (_this.enable_close_button) {
21181
21181
  var closeButton = document.createElement("span");
@@ -21222,21 +21222,21 @@
21222
21222
  * @function hideVideoPlayer
21223
21223
  * @description Sets the visibility of the video player to hidden.
21224
21224
  */
21225
- _defineProperty(this, "XcAB", function () {
21225
+ _defineProperty(this, "GSoE", function () {
21226
21226
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
21227
21227
  });
21228
21228
  /**
21229
21229
  * @function unhideVideoPlayer
21230
21230
  * @description Unhides video player.
21231
21231
  */
21232
- _defineProperty(this, "FivR", function () {
21232
+ _defineProperty(this, "DfFP", function () {
21233
21233
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
21234
21234
  });
21235
21235
  /**
21236
21236
  * @function getVideoElement
21237
21237
  * @returns {HTMLElement} Video ekement
21238
21238
  */
21239
- _defineProperty(this, "MbVl", function () {
21239
+ _defineProperty(this, "aDRs", function () {
21240
21240
  return _this.videoElement;
21241
21241
  });
21242
21242
  this.videoPlayer = null;
@@ -21290,7 +21290,7 @@
21290
21290
  this.videoPlayer.style.backgroundColor = this.bg_color;
21291
21291
 
21292
21292
  // Video has a resolution, not deviating from the resolution set the height and width.
21293
- this.SXHT();
21293
+ this.qLUJ();
21294
21294
  //Generate the styles and add them to the document head.
21295
21295
  this._setVideoPlayerStyles();
21296
21296
  //Set the position of the video player with in the 5 possible positions.
@@ -21298,16 +21298,16 @@
21298
21298
  //Create a video element,set the source and add to the container.
21299
21299
  this._setPlayerContent();
21300
21300
  //Set the listeners on the video control buttons.
21301
- this.WNJK();
21301
+ this.YVwh();
21302
21302
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21303
- this.QBel();
21303
+ this.RrVD();
21304
21304
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
21305
21305
  //Reason - We want to position them at the top right and left positions.
21306
- this.stqw();
21306
+ this.IGDk();
21307
21307
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
21308
21308
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
21309
21309
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
21310
- this.XcAB();
21310
+ this.GSoE();
21311
21311
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
21312
21312
  this._setAutoTerminate();
21313
21313
  document.body.appendChild(this.videoPlayer);
@@ -21422,7 +21422,7 @@
21422
21422
  }
21423
21423
  }
21424
21424
  this.videoPlayer.remove();
21425
- this.ejyO();
21425
+ this.JeHw();
21426
21426
  if (closeButtonName !== "auto_dismiss") {
21427
21427
  var _window$ApxorRTM9;
21428
21428
  (_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
@@ -21492,7 +21492,7 @@
21492
21492
  replayCount: _this3.replayCount
21493
21493
  });
21494
21494
  _this3.videoPlayer.remove();
21495
- _this3.ejyO();
21495
+ _this3.JeHw();
21496
21496
  _this3.hideCallback();
21497
21497
  } catch (e) {
21498
21498
  console.log("Can't close the video player\n".concat(e));
@@ -21586,14 +21586,14 @@
21586
21586
  try {
21587
21587
  var _window;
21588
21588
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
21589
- var element = _this.CiXs(_this.layout);
21590
- _this.cxsH();
21589
+ var element = _this.QjIQ(_this.layout);
21590
+ _this.LgcC();
21591
21591
  window.onresize = function () {
21592
- _this.ahtj();
21592
+ _this.Oave();
21593
21593
  };
21594
21594
  _this.imageElements.forEach(function (img) {
21595
21595
  img.addEventListener("error", function () {
21596
- _this.JmOW("provided image doesn't exists");
21596
+ _this.Mhrx("provided image doesn't exists");
21597
21597
  });
21598
21598
  });
21599
21599
  var rootContainer = document.createElement("div");
@@ -21604,7 +21604,7 @@
21604
21604
  var styleElement = document.createElement("style");
21605
21605
  styleElement.innerHTML = _this.styleContent;
21606
21606
  document.head.appendChild(styleElement);
21607
- _this.hQng(_this.termination);
21607
+ _this.Hbcw(_this.termination);
21608
21608
  try {
21609
21609
  eval(_this.script);
21610
21610
  } catch (e) {
@@ -21615,10 +21615,10 @@
21615
21615
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
21616
21616
  _this.wait_interval -= 1;
21617
21617
  if (_this.wait_interval <= 0) {
21618
- _this.JmOW("provided media doesn't exists");
21618
+ _this.Mhrx("provided media doesn't exists");
21619
21619
  } else {
21620
- if (_this.uDuu() && _this.FgHb() && _this.IJFb()) {
21621
- _this.ahtj();
21620
+ if (_this.rgyV() && _this.LmNs() && _this.dPHx()) {
21621
+ _this.Oave();
21622
21622
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21623
21623
  }
21624
21624
  }
@@ -21629,7 +21629,7 @@
21629
21629
  (_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));
21630
21630
  }
21631
21631
  });
21632
- _defineProperty(this, "JmOW", function (reason) {
21632
+ _defineProperty(this, "Mhrx", function (reason) {
21633
21633
  var _window$ApxorRTM, _window4;
21634
21634
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
21635
21635
  apx_nudge_name: _this.name,
@@ -21643,13 +21643,13 @@
21643
21643
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21644
21644
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
21645
21645
  });
21646
- _defineProperty(this, "cxsH", function () {
21646
+ _defineProperty(this, "LgcC", function () {
21647
21647
  var EmbeddedCardsStyles = document.createElement("style");
21648
21648
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
21649
21649
  EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
21650
21650
  document.head.appendChild(EmbeddedCardsStyles);
21651
21651
  });
21652
- _defineProperty(this, "CiXs", function (config) {
21652
+ _defineProperty(this, "QjIQ", function (config) {
21653
21653
  var _window$Apxor;
21654
21654
  var element;
21655
21655
  switch (config.type) {
@@ -21723,27 +21723,27 @@
21723
21723
  element.onclick = function (e) {
21724
21724
  e.stopPropagation();
21725
21725
  window.Apxor.redirect(JSON.stringify(action));
21726
- _this.STbC(e);
21726
+ _this.aFNw(e);
21727
21727
  };
21728
21728
  break;
21729
21729
  case "show-video":
21730
21730
  element.onclick = function (e) {
21731
21731
  e.stopPropagation();
21732
21732
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
21733
- _this.STbC(e);
21733
+ _this.aFNw(e);
21734
21734
  };
21735
21735
  break;
21736
21736
  case "cancel":
21737
21737
  element.onclick = function (e) {
21738
21738
  e.stopPropagation();
21739
- _this.STbC(e);
21739
+ _this.aFNw(e);
21740
21740
  window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
21741
21741
  };
21742
21742
  break;
21743
21743
  case "dismiss":
21744
21744
  element.onclick = function (e) {
21745
21745
  e.stopPropagation();
21746
- _this.STbC(e);
21746
+ _this.aFNw(e);
21747
21747
  };
21748
21748
  break;
21749
21749
  case "never":
@@ -21751,7 +21751,7 @@
21751
21751
  e.stopPropagation();
21752
21752
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
21753
21753
  window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
21754
- _this.STbC(e);
21754
+ _this.aFNw(e);
21755
21755
  };
21756
21756
  break;
21757
21757
  case "toggle-class":
@@ -21776,7 +21776,7 @@
21776
21776
  tempInput.select();
21777
21777
  document.execCommand("copy");
21778
21778
  document.body.removeChild(tempInput);
21779
- _this.STbC(e);
21779
+ _this.aFNw(e);
21780
21780
  };
21781
21781
  break;
21782
21782
  case "log-app-event":
@@ -21795,7 +21795,7 @@
21795
21795
  }
21796
21796
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
21797
21797
  config.absolute_position_children.forEach(function (childConfig) {
21798
- var childElement = _this.xyYY(childConfig);
21798
+ var childElement = _this.XiFV(childConfig);
21799
21799
  element.appendChild(childElement);
21800
21800
  });
21801
21801
  }
@@ -21803,7 +21803,7 @@
21803
21803
  // Process children
21804
21804
  if (config.children && config.children.length > 0) {
21805
21805
  config.children.forEach(function (childConfig) {
21806
- var childElement = _this.CiXs(childConfig);
21806
+ var childElement = _this.QjIQ(childConfig);
21807
21807
  element.appendChild(childElement);
21808
21808
  });
21809
21809
  }
@@ -21829,7 +21829,7 @@
21829
21829
  }
21830
21830
  return element;
21831
21831
  });
21832
- _defineProperty(this, "STbC", function (e) {
21832
+ _defineProperty(this, "aFNw", function (e) {
21833
21833
  var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
21834
21834
  var additional_info = {
21835
21835
  apx_nudge_name: _this.name,
@@ -21846,7 +21846,7 @@
21846
21846
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_card_interaction", additional_info);
21847
21847
  }
21848
21848
  });
21849
- _defineProperty(this, "hQng", function (config) {
21849
+ _defineProperty(this, "Hbcw", function (config) {
21850
21850
  config.forEach(function (id) {
21851
21851
  var element = document.getElementById(id);
21852
21852
  if (element) {
@@ -21854,7 +21854,7 @@
21854
21854
  }
21855
21855
  });
21856
21856
  });
21857
- _defineProperty(this, "FgHb", function () {
21857
+ _defineProperty(this, "LmNs", function () {
21858
21858
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
21859
21859
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
21860
21860
  if (_this.imageElements.length === 0) return true;
@@ -21862,19 +21862,19 @@
21862
21862
  return img.complete;
21863
21863
  });
21864
21864
  });
21865
- _defineProperty(this, "uDuu", function () {
21865
+ _defineProperty(this, "rgyV", function () {
21866
21866
  if (_this.videoElements.length === 0) return true;
21867
21867
  return _this.videoElements.every(function (video) {
21868
21868
  return video.readyState >= 3;
21869
21869
  });
21870
21870
  });
21871
- _defineProperty(this, "IJFb", function () {
21871
+ _defineProperty(this, "dPHx", function () {
21872
21872
  if (!_this.bgImageUrl) return true;
21873
21873
  var img = new Image();
21874
21874
  img.src = _this.bgImageUrl;
21875
21875
  return img.complete;
21876
21876
  });
21877
- _defineProperty(this, "ahtj", function () {
21877
+ _defineProperty(this, "Oave", function () {
21878
21878
  var _window6, _window7;
21879
21879
  var width = window.document.querySelector("html").offsetWidth;
21880
21880
  var height = window.document.querySelector("html").offsetHeight;
@@ -21963,8 +21963,8 @@
21963
21963
  _this.storyContainer.appendChild(currentElement);
21964
21964
  _this.storyContainer.appendChild(slideDetails);
21965
21965
  document.body.appendChild(_this.storyContainer);
21966
- _this.eceU();
21967
- _this.LYqv();
21966
+ _this.dPXx();
21967
+ _this.KwGj();
21968
21968
  _this.progress = Array.from(document.querySelectorAll(".progress"));
21969
21969
  var current_slide = document.querySelector(".slide-details");
21970
21970
  var playNext = function playNext(e) {
@@ -22010,7 +22010,7 @@
22010
22010
  _existingAbsoluteElements2.forEach(function (element) {
22011
22011
  element.remove();
22012
22012
  });
22013
- // this.sAkH();
22013
+ // this.vvEL();
22014
22014
  var _currentSlideDetails = document.querySelector(".slide-details");
22015
22015
  _currentSlideDetails.innerHTML = "";
22016
22016
  _this.position = _this.position + 1;
@@ -22106,7 +22106,7 @@
22106
22106
  absolute_header = document.createElement("div");
22107
22107
  current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
22108
22108
  var current_absolute_element;
22109
- current_absolute_element = _this.xyYY(current_element);
22109
+ current_absolute_element = _this.XiFV(current_element);
22110
22110
  absolute_header.appendChild(current_absolute_element);
22111
22111
  });
22112
22112
  (_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
@@ -22167,7 +22167,7 @@
22167
22167
  document.body.style.backgroundRepeat = "";
22168
22168
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
22169
22169
  delete updated_layout_without_absolute_elements["absolute_position_children"];
22170
- element = _this.xyYY(updated_layout_without_absolute_elements);
22170
+ element = _this.XiFV(updated_layout_without_absolute_elements);
22171
22171
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
22172
22172
  document.body.style.margin = "0px";
22173
22173
  }
@@ -22175,9 +22175,9 @@
22175
22175
  current_slide.removeChild(current_slide.children[0]);
22176
22176
  }
22177
22177
  current_slide.appendChild(element);
22178
- _this.nJlx();
22178
+ _this.TAUG();
22179
22179
  window.intervalToCheckImgStatus = setInterval(function () {
22180
- if (_this.ZjRm()) {
22180
+ if (_this.Ozlk()) {
22181
22181
  clearInterval(window.intervalToCheckImgStatus);
22182
22182
  }
22183
22183
  }, 500);
@@ -22205,7 +22205,7 @@
22205
22205
  });
22206
22206
  playNext();
22207
22207
  });
22208
- _defineProperty(this, "sAkH", function () {
22208
+ _defineProperty(this, "vvEL", function () {
22209
22209
  document.body.classList.add("slide-right");
22210
22210
  var animationEndCounter = 0;
22211
22211
  var onAnimationEnd = function onAnimationEnd() {
@@ -22217,7 +22217,7 @@
22217
22217
  };
22218
22218
  document.body.addEventListener("animationend", onAnimationEnd);
22219
22219
  });
22220
- _defineProperty(this, "xyYY", function (config) {
22220
+ _defineProperty(this, "XiFV", function (config) {
22221
22221
  var _window$Apxor3;
22222
22222
  var element;
22223
22223
  var startY;
@@ -22273,7 +22273,7 @@
22273
22273
  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>";
22274
22274
  element.id = "apx-mute-icon";
22275
22275
  element.addEventListener("touchstart", function (event) {
22276
- _this.FgHM(event);
22276
+ _this.GReO(event);
22277
22277
  });
22278
22278
  break;
22279
22279
  case "copy_icon":
@@ -22467,7 +22467,7 @@
22467
22467
  }
22468
22468
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
22469
22469
  config.absolute_position_children.forEach(function (childConfig) {
22470
- var childElement = _this.xyYY(childConfig);
22470
+ var childElement = _this.XiFV(childConfig);
22471
22471
  element.appendChild(childElement);
22472
22472
  });
22473
22473
  }
@@ -22475,7 +22475,7 @@
22475
22475
  // Process children
22476
22476
  if (config.children && config.children.length > 0) {
22477
22477
  config.children.forEach(function (childConfig) {
22478
- var childElement = _this.xyYY(childConfig);
22478
+ var childElement = _this.XiFV(childConfig);
22479
22479
  element.appendChild(childElement);
22480
22480
  });
22481
22481
  }
@@ -22502,7 +22502,7 @@
22502
22502
  }
22503
22503
  return element;
22504
22504
  });
22505
- _defineProperty(this, "FgHM", function (event) {
22505
+ _defineProperty(this, "GReO", function (event) {
22506
22506
  var slide_details_to_be_deleted;
22507
22507
  var mute_child_elements;
22508
22508
  var unmute_child_elements;
@@ -22532,11 +22532,11 @@
22532
22532
  }
22533
22533
  // this.muteElement.addEventListener("touchstart", (event) => {
22534
22534
  // event.stopPropagation();
22535
- // this.FgHM(event);
22535
+ // this.GReO(event);
22536
22536
  // });
22537
22537
  }
22538
22538
  });
22539
- _defineProperty(this, "LYqv", function () {
22539
+ _defineProperty(this, "KwGj", function () {
22540
22540
  var tapTimeout;
22541
22541
  var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
22542
22542
  var longPressDuration = 200;
@@ -22660,7 +22660,7 @@
22660
22660
  event.target.dataset.touchStartTime = event.timeStamp;
22661
22661
  });
22662
22662
  });
22663
- _defineProperty(this, "eceU", function () {
22663
+ _defineProperty(this, "dPXx", function () {
22664
22664
  var startY, startX;
22665
22665
  _this.storyContainer.addEventListener("touchstart", function (event) {
22666
22666
  _this.swipeTouch = true;
@@ -22867,7 +22867,7 @@
22867
22867
  }, 50);
22868
22868
  });
22869
22869
  });
22870
- _defineProperty(this, "nJlx", function () {
22870
+ _defineProperty(this, "TAUG", function () {
22871
22871
  _this.loader.style.display = "block";
22872
22872
  var progress = Array.from(document.querySelectorAll(".progress"));
22873
22873
  var activeIndex = progress.findIndex(function (el) {
@@ -22883,7 +22883,7 @@
22883
22883
  }
22884
22884
  }
22885
22885
  });
22886
- _defineProperty(this, "XedP", function () {
22886
+ _defineProperty(this, "uQZd", function () {
22887
22887
  if (!_this.continueLoading) {
22888
22888
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22889
22889
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
@@ -22903,19 +22903,19 @@
22903
22903
  _this.loader.style.display = "none";
22904
22904
  }
22905
22905
  });
22906
- _defineProperty(this, "FgHb", function () {
22906
+ _defineProperty(this, "LmNs", function () {
22907
22907
  if (_this.imageElements.length === 0) return true;
22908
22908
  return _this.imageElements.every(function (img) {
22909
22909
  return img.complete;
22910
22910
  });
22911
22911
  });
22912
- _defineProperty(this, "uDuu", function () {
22912
+ _defineProperty(this, "rgyV", function () {
22913
22913
  if (_this.videoElements.length === 0) return true;
22914
22914
  return _this.videoElements.every(function (video) {
22915
22915
  return video.readyState >= 3;
22916
22916
  });
22917
22917
  });
22918
- _defineProperty(this, "ZjRm", function () {
22918
+ _defineProperty(this, "Ozlk", function () {
22919
22919
  var bodyStyles = window.getComputedStyle(document.body);
22920
22920
  var backgroundImage = bodyStyles.backgroundImage;
22921
22921
  if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
@@ -22925,7 +22925,7 @@
22925
22925
  var img = new Image();
22926
22926
  img.src = imageUrl;
22927
22927
  if (img.complete) {
22928
- _this.XedP();
22928
+ _this.uQZd();
22929
22929
  return true;
22930
22930
  }
22931
22931
  return false;
@@ -22933,21 +22933,21 @@
22933
22933
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22934
22934
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
22935
22935
  if (childElements[0].readyState >= 3) {
22936
- _this.XedP();
22936
+ _this.uQZd();
22937
22937
  return true;
22938
22938
  }
22939
22939
  return false;
22940
22940
  } else {
22941
22941
  if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
22942
- _this.XedP();
22942
+ _this.uQZd();
22943
22943
  return true;
22944
- } else if (_this.FgHb() && _this.uDuu()) {
22945
- _this.XedP();
22944
+ } else if (_this.LmNs() && _this.rgyV()) {
22945
+ _this.uQZd();
22946
22946
  return true;
22947
22947
  }
22948
22948
  }
22949
22949
  });
22950
- _defineProperty(this, "Bosj", function (event, startY, action) {
22950
+ _defineProperty(this, "oLxi", function (event, startY, action) {
22951
22951
  event.stopPropagation();
22952
22952
  var endY = event.changedTouches[0].clientY;
22953
22953
  var deltaY = startY - endY;
@@ -23035,7 +23035,7 @@
23035
23035
  this.swipe_action;
23036
23036
  this.continueLoading = false;
23037
23037
  this.boundSwipeUpHandling = function (event) {
23038
- return _this.Bosj(event, _this.startY, _this.swipe_action);
23038
+ return _this.oLxi(event, _this.startY, _this.swipe_action);
23039
23039
  };
23040
23040
  }
23041
23041
  _createClass(Stories, [{
@@ -23098,7 +23098,7 @@
23098
23098
  } else {
23099
23099
  var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
23100
23100
  // Move to the first slide of the next group
23101
- // this.sAkH();
23101
+ // this.vvEL();
23102
23102
  this.position++;
23103
23103
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23104
23104
  this.slides = this.config[this.position].slides;
@@ -23224,7 +23224,7 @@
23224
23224
  if (activeIndex === 0) {
23225
23225
  var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
23226
23226
  // If at the first slide of the current group, move to the last slide of the previous group
23227
- // this.sAkH();
23227
+ // this.vvEL();
23228
23228
  this.position--;
23229
23229
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23230
23230
  this.slides = this.config[this.position].slides;
@@ -23413,25 +23413,25 @@
23413
23413
  // Create custom content
23414
23414
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
23415
23415
  delete updated_layout_without_absolute_elements["absolute_position_children"];
23416
- element = this.xyYY(updated_layout_without_absolute_elements);
23416
+ element = this.XiFV(updated_layout_without_absolute_elements);
23417
23417
  }
23418
23418
  // Append slide content to slide details container
23419
23419
 
23420
23420
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
23421
23421
  document.body.style.margin = "0px";
23422
23422
  currentSlideDetails.appendChild(element);
23423
- this.nJlx();
23423
+ this.TAUG();
23424
23424
 
23425
23425
  // Handle absolute position children
23426
23426
  if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
23427
23427
  current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
23428
- var childElement = _this2.xyYY(childConfig);
23428
+ var childElement = _this2.XiFV(childConfig);
23429
23429
  // Append absolute position children to slide details container
23430
23430
  currentSlideDetails.appendChild(childElement);
23431
23431
  });
23432
23432
  }
23433
23433
  window.intervalToCheckImgStatus2 = setInterval(function () {
23434
- if (_this2.ZjRm()) {
23434
+ if (_this2.Ozlk()) {
23435
23435
  clearInterval(window.intervalToCheckImgStatus2);
23436
23436
  }
23437
23437
  }, 500);
@@ -23478,16 +23478,16 @@
23478
23478
  var RTM = /*#__PURE__*/_createClass(function RTM() {
23479
23479
  var _this = this;
23480
23480
  _classCallCheck(this, RTM);
23481
- _defineProperty(this, "oVRS", {});
23481
+ _defineProperty(this, "apjN", {});
23482
23482
  _defineProperty(this, "isShowingAction", false);
23483
23483
  _defineProperty(this, "currentAction", null);
23484
- _defineProperty(this, "veMk", null);
23485
- _defineProperty(this, "version", 81);
23484
+ _defineProperty(this, "GnDZ", null);
23485
+ _defineProperty(this, "version", 82);
23486
23486
  _defineProperty(this, "isInitialised", false);
23487
- _defineProperty(this, "rnKR", {});
23488
- _defineProperty(this, "AYSV", false);
23487
+ _defineProperty(this, "ErUd", {});
23488
+ _defineProperty(this, "yqfs", false);
23489
23489
  _defineProperty(this, "_isShownECCalled", false);
23490
- _defineProperty(this, "qqxH", function () {
23490
+ _defineProperty(this, "PutJ", function () {
23491
23491
  _this.isInitialised = true;
23492
23492
  var oldPushState = history.pushState;
23493
23493
  history.pushState = function pushState() {
@@ -23512,7 +23512,7 @@
23512
23512
  });
23513
23513
  _defineProperty(this, "show", function (uiJson, duration, uuid, name) {
23514
23514
  if (!_this.isInitialised) {
23515
- _this.qqxH();
23515
+ _this.PutJ();
23516
23516
  }
23517
23517
  window.addEventListener("pagehide", function () {
23518
23518
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -23539,7 +23539,7 @@
23539
23539
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
23540
23540
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
23541
23541
  } else if (ui_config.display_type === "coach_mark_v2") {
23542
- _this.rJlm(ui_config, duration, uuid, name);
23542
+ _this.lzVw(ui_config, duration, uuid, name);
23543
23543
  } else {
23544
23544
  showCoachmarkWithDelay(_this, ui_config, {
23545
23545
  configId: uuid,
@@ -23640,7 +23640,7 @@
23640
23640
  try {
23641
23641
  config = config.split("\n").join("\\n");
23642
23642
  var ui_config = JSON.parse(config);
23643
- _this.pkOH(ui_config, configId, name, position, slidesSeenCount, view_id);
23643
+ _this.zxjU(ui_config, configId, name, position, slidesSeenCount, view_id);
23644
23644
  } catch (e) {
23645
23645
  var _window$Apxor3;
23646
23646
  if (((_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.platform) === "ios") {
@@ -23654,7 +23654,7 @@
23654
23654
  console.error(e);
23655
23655
  }
23656
23656
  });
23657
- _defineProperty(this, "pkOH", function (config, configId, name, position, slidesSeenCount, view_id) {
23657
+ _defineProperty(this, "zxjU", function (config, configId, name, position, slidesSeenCount, view_id) {
23658
23658
  var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
23659
23659
  window.Apxor.logAppEvent("apx_nudge_shown", {
23660
23660
  campaignName: name,
@@ -23702,7 +23702,7 @@
23702
23702
  var _window22, _window22$updateFlag, _window23;
23703
23703
  _this.isShowingAction = false;
23704
23704
  _this.currentAction = null;
23705
- _this.veMk = null;
23705
+ _this.GnDZ = null;
23706
23706
  (_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);
23707
23707
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
23708
23708
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -23713,21 +23713,21 @@
23713
23713
  }
23714
23714
  };
23715
23715
  if (action_class === "new-inline") {
23716
- _this.veMk = new InLineTooltip(ui_config, [], [], terminationConfig, {
23716
+ _this.GnDZ = new InLineTooltip(ui_config, [], [], terminationConfig, {
23717
23717
  configId: uuid,
23718
23718
  configName: name
23719
23719
  }, _this, onShow, onHide, function () {}, false, 0);
23720
23720
  } else if (action_class === "tooltip_builder") {
23721
- _this.veMk = new NewInLineTooltip(ui_config, terminationConfig, {
23721
+ _this.GnDZ = new NewInLineTooltip(ui_config, terminationConfig, {
23722
23722
  configId: uuid,
23723
23723
  configName: name
23724
23724
  }, _this, onShow, onHide);
23725
23725
  }
23726
23726
  setTimeout(function () {
23727
- _this.veMk.createNewTooltip();
23727
+ _this.GnDZ.createNewTooltip();
23728
23728
  }, ui_config.delay);
23729
23729
  });
23730
- _defineProperty(this, "rJlm", function (ui_config, duration, uuid, name) {
23730
+ _defineProperty(this, "lzVw", function (ui_config, duration, uuid, name) {
23731
23731
  var terminationConfig = {};
23732
23732
  terminationConfig["auto_dismiss"] = duration > 0;
23733
23733
  terminationConfig["duration"] = duration;
@@ -23751,7 +23751,7 @@
23751
23751
  var _window27, _window27$updateFlag, _window28;
23752
23752
  _this.isShowingAction = false;
23753
23753
  _this.currentAction = null;
23754
- _this.veMk = null;
23754
+ _this.GnDZ = null;
23755
23755
  (_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);
23756
23756
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
23757
23757
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -23764,8 +23764,8 @@
23764
23764
  _this._currentCoachmark.createNewCoachMark();
23765
23765
  });
23766
23766
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
23767
- if (_this.veMk) {
23768
- _this.veMk.updateElementPositionOnScroll(top, left, height, width);
23767
+ if (_this.GnDZ) {
23768
+ _this.GnDZ.updateElementPositionOnScroll(top, left, height, width);
23769
23769
  }
23770
23770
  });
23771
23771
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -23902,10 +23902,10 @@
23902
23902
  });
23903
23903
  _defineProperty(this, "showPlaceHolder", function () {
23904
23904
  var _window37;
23905
- if (_this.AYSV) {
23905
+ if (_this.yqfs) {
23906
23906
  return;
23907
23907
  }
23908
- _this.AYSV = true;
23908
+ _this.yqfs = true;
23909
23909
  var ele = document.createElement("div");
23910
23910
  ele.innerHTML = "place your immersive card here";
23911
23911
  ele.style.backgroundColor = "#f5f5f5";