apxor-rtm-ui 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12172,14 +12172,14 @@
12172
12172
  _config$wait_interval,
12173
12173
  _config$termination;
12174
12174
  _classCallCheck(this, TemplateContent);
12175
- _defineProperty(this, "izJx", function () {
12175
+ _defineProperty(this, "YyDb", function () {
12176
12176
  return new Promise(function (resolve, reject) {
12177
12177
  try {
12178
- var element = _this.uFpJ(_this.layout);
12178
+ var element = _this.tmRn(_this.layout);
12179
12179
  var styleElement = document.createElement("style");
12180
12180
  styleElement.innerHTML = _this.styleContent;
12181
12181
  document.head.appendChild(styleElement);
12182
- _this.IQem();
12182
+ _this.qYHJ();
12183
12183
  try {
12184
12184
  eval(_this.script);
12185
12185
  } catch (e) {
@@ -12190,15 +12190,15 @@
12190
12190
  }
12191
12191
  _this.imageElements.forEach(function (img) {
12192
12192
  img.addEventListener("error", function () {
12193
- _this.gRtY("provided image doesn't exists");
12193
+ _this.woit("provided image doesn't exists");
12194
12194
  });
12195
12195
  });
12196
12196
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
12197
12197
  _this.wait_interval -= 1;
12198
12198
  if (_this.wait_interval <= 0) {
12199
- _this.gRtY("provided media doesn't exists");
12199
+ _this.woit("provided media doesn't exists");
12200
12200
  } else {
12201
- if (_this.rlcV() && _this.IGHo() && _this.tVkh()) {
12201
+ if (_this.xbQr() && _this.fqDl() && _this.uTAP()) {
12202
12202
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
12203
12203
  resolve(element);
12204
12204
  }
@@ -12212,7 +12212,7 @@
12212
12212
  }
12213
12213
  });
12214
12214
  });
12215
- _defineProperty(this, "gRtY", function (reason) {
12215
+ _defineProperty(this, "woit", function (reason) {
12216
12216
  var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
12217
12217
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
12218
12218
  apx_nudge_name: _this.name,
@@ -12228,13 +12228,13 @@
12228
12228
  _this.closeCallBack("cancel");
12229
12229
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
12230
12230
  });
12231
- _defineProperty(this, "IQem", function () {
12231
+ _defineProperty(this, "qYHJ", function () {
12232
12232
  var BuilderTemplatesStyles = document.createElement("style");
12233
12233
  BuilderTemplatesStyles.innerHTML = _this.initialStyles;
12234
12234
  BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
12235
12235
  document.head.appendChild(BuilderTemplatesStyles);
12236
12236
  });
12237
- _defineProperty(this, "uFpJ", function (config) {
12237
+ _defineProperty(this, "tmRn", function (config) {
12238
12238
  var _window$Apxor3;
12239
12239
  var element;
12240
12240
  switch (config.type) {
@@ -12318,7 +12318,7 @@
12318
12318
  if (config.type === "cta_button" || config.type === "button") {
12319
12319
  reason = "cta-clicked";
12320
12320
  }
12321
- _this.BGSc(e, "redirect", reason);
12321
+ _this.mPVm(e, "redirect", reason);
12322
12322
  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) {
12323
12323
  var _window4, _this$config8;
12324
12324
  (_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);
@@ -12334,7 +12334,7 @@
12334
12334
  } else if (config.type === "cta_button" || config.type === "button") {
12335
12335
  reason = "cta-clicked";
12336
12336
  }
12337
- _this.BGSc(e, "cancel", reason);
12337
+ _this.mPVm(e, "cancel", reason);
12338
12338
  // window.Apxor.logActionEvent(
12339
12339
  // "walk_through_cancelled",
12340
12340
  // this.configId,
@@ -12353,7 +12353,7 @@
12353
12353
  } else if (config.type === "cta_button" || config.type === "button") {
12354
12354
  reason = "cta-clicked";
12355
12355
  }
12356
- _this.BGSc(e, "dismiss", reason);
12356
+ _this.mPVm(e, "dismiss", reason);
12357
12357
  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) {
12358
12358
  var _window5, _this$config10;
12359
12359
  (_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);
@@ -12364,7 +12364,7 @@
12364
12364
  element.onclick = function (e) {
12365
12365
  e.stopPropagation();
12366
12366
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
12367
- _this.BGSc(e, "never");
12367
+ _this.mPVm(e, "never");
12368
12368
  };
12369
12369
  break;
12370
12370
  case "toggle-class":
@@ -12389,7 +12389,7 @@
12389
12389
  tempInput.select();
12390
12390
  document.execCommand("copy");
12391
12391
  document.body.removeChild(tempInput);
12392
- _this.BGSc(e, "copy-content", "cta-clicked");
12392
+ _this.mPVm(e, "copy-content", "cta-clicked");
12393
12393
  setTimeout(function () {
12394
12394
  window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
12395
12395
  }, 500);
@@ -12411,7 +12411,7 @@
12411
12411
  }
12412
12412
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
12413
12413
  config.absolute_position_children.forEach(function (childConfig) {
12414
- var childElement = _this.uFpJ(childConfig);
12414
+ var childElement = _this.tmRn(childConfig);
12415
12415
  element.appendChild(childElement);
12416
12416
  });
12417
12417
  }
@@ -12419,7 +12419,7 @@
12419
12419
  // Process children
12420
12420
  if (config.children && config.children.length > 0) {
12421
12421
  config.children.forEach(function (childConfig) {
12422
- var childElement = _this.uFpJ(childConfig);
12422
+ var childElement = _this.tmRn(childConfig);
12423
12423
  element.appendChild(childElement);
12424
12424
  });
12425
12425
  }
@@ -12446,7 +12446,7 @@
12446
12446
  }
12447
12447
  return element;
12448
12448
  });
12449
- _defineProperty(this, "BGSc", function (e, action) {
12449
+ _defineProperty(this, "mPVm", function (e, action) {
12450
12450
  var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
12451
12451
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
12452
12452
  var additional_info = {
@@ -12475,7 +12475,7 @@
12475
12475
  _this.closeCallBack(action);
12476
12476
  }
12477
12477
  });
12478
- _defineProperty(this, "IGHo", function () {
12478
+ _defineProperty(this, "fqDl", function () {
12479
12479
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
12480
12480
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
12481
12481
  if (_this.imageElements.length === 0) return true;
@@ -12483,13 +12483,13 @@
12483
12483
  return img.complete;
12484
12484
  });
12485
12485
  });
12486
- _defineProperty(this, "tVkh", function () {
12486
+ _defineProperty(this, "uTAP", function () {
12487
12487
  if (!_this.bgImageUrl) return true;
12488
12488
  var img = new Image();
12489
12489
  img.src = _this.bgImageUrl;
12490
12490
  return img.complete;
12491
12491
  });
12492
- _defineProperty(this, "rlcV", function () {
12492
+ _defineProperty(this, "xbQr", function () {
12493
12493
  if (_this.videoElements.length === 0) return true;
12494
12494
  return _this.videoElements.every(function (video) {
12495
12495
  return video.readyState >= 3;
@@ -13425,7 +13425,7 @@
13425
13425
  case 0:
13426
13426
  _context2.prev = 0;
13427
13427
  _context2.next = 3;
13428
- return this.templateContent.izJx();
13428
+ return this.templateContent.YyDb();
13429
13429
  case 3:
13430
13430
  this.inLineContainer = _context2.sent;
13431
13431
  _context2.next = 9;
@@ -15002,7 +15002,7 @@
15002
15002
  * @description Creates the styles for Marketing message.
15003
15003
  * @returns {string} css styles
15004
15004
  */
15005
- _defineProperty(this, "LXYP", function () {
15005
+ _defineProperty(this, "fPEj", function () {
15006
15006
  if (!_this.enable_marketing) {
15007
15007
  return "";
15008
15008
  }
@@ -15021,7 +15021,7 @@
15021
15021
  * @private
15022
15022
  * @description Sets the marketing content at the end of the Inline
15023
15023
  */
15024
- _defineProperty(this, "aozU", function () {
15024
+ _defineProperty(this, "VoOg", function () {
15025
15025
  if (_this.enable_marketing) {
15026
15026
  var marketingContainer = document.createElement("div");
15027
15027
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -15634,7 +15634,7 @@
15634
15634
  if (apxor_tooltip_styles) {
15635
15635
  return;
15636
15636
  }
15637
- 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.LXYP(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15637
+ 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.fPEj(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15638
15638
  var styleNode = document.createElement("style");
15639
15639
  styleNode.setAttribute("apx-tooltip-styles", "");
15640
15640
  styleNode.innerHTML = styles;
@@ -16444,7 +16444,7 @@
16444
16444
  this._setCloseButton();
16445
16445
 
16446
16446
  //Set the Marketing content
16447
- this.aozU();
16447
+ this.VoOg();
16448
16448
  }
16449
16449
 
16450
16450
  /**
@@ -19339,7 +19339,7 @@
19339
19339
  case 0:
19340
19340
  _context2.prev = 0;
19341
19341
  _context2.next = 3;
19342
- return this.templateContent.izJx();
19342
+ return this.templateContent.YyDb();
19343
19343
  case 3:
19344
19344
  this.inAppContainer = _context2.sent;
19345
19345
  this.inAppContainer.style.zIndex = 99999;
@@ -19538,7 +19538,7 @@
19538
19538
  * @description Creates the styles for Marketing message.
19539
19539
  * @returns {string} css styles
19540
19540
  */
19541
- _defineProperty(this, "LXYP", function () {
19541
+ _defineProperty(this, "fPEj", function () {
19542
19542
  if (!_this.enable_marketing) {
19543
19543
  return "";
19544
19544
  }
@@ -19584,7 +19584,7 @@
19584
19584
  * @private
19585
19585
  * @description Get the response for Form content in the InApp modal.
19586
19586
  */
19587
- _defineProperty(this, "FmiR", function (form_elements) {
19587
+ _defineProperty(this, "bINs", function (form_elements) {
19588
19588
  var obj = {};
19589
19589
  var callback = "";
19590
19590
  form_elements.forEach(function (element) {
@@ -19624,7 +19624,7 @@
19624
19624
  * @private
19625
19625
  * @description Sets the marketing content at the end of the InApp
19626
19626
  */
19627
- _defineProperty(this, "aozU", function () {
19627
+ _defineProperty(this, "VoOg", function () {
19628
19628
  if (_this.enable_marketing) {
19629
19629
  var marketingContainer = document.createElement("div");
19630
19630
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -19883,7 +19883,7 @@
19883
19883
  }, {
19884
19884
  key: "_setStyles",
19885
19885
  value: function _setStyles() {
19886
- 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.LXYP(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
19886
+ 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.fPEj(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
19887
19887
  var styleNode = document.createElement("style");
19888
19888
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
19889
19889
  styleNode.innerHTML = styles;
@@ -20382,7 +20382,7 @@
20382
20382
  this._setCloseButton();
20383
20383
 
20384
20384
  //Set the Marketing content
20385
- this.aozU();
20385
+ this.VoOg();
20386
20386
  }
20387
20387
 
20388
20388
  /**
@@ -20664,7 +20664,7 @@
20664
20664
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
20665
20665
  form.addEventListener("submit", function (e) {
20666
20666
  e.preventDefault();
20667
- var _this8$generateRespon = _this8.FmiR(_this8.form.elements),
20667
+ var _this8$generateRespon = _this8.bINs(_this8.form.elements),
20668
20668
  obj = _this8$generateRespon.obj,
20669
20669
  callback = _this8$generateRespon.callback;
20670
20670
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -21024,7 +21024,7 @@
21024
21024
  };
21025
21025
  } else {
21026
21026
  // As the video player is hidden by default, unhide if the mode is not PIP.
21027
- _this.PVYW();
21027
+ _this.RFlT();
21028
21028
  }
21029
21029
  _this.showCallback();
21030
21030
  } catch (e) {
@@ -21045,7 +21045,7 @@
21045
21045
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
21046
21046
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
21047
21047
  */
21048
- _defineProperty(this, "gTth", function () {
21048
+ _defineProperty(this, "DcxS", function () {
21049
21049
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
21050
21050
  width = _getHeightWidthFromRe.width,
21051
21051
  height = _getHeightWidthFromRe.height;
@@ -21057,7 +21057,7 @@
21057
21057
  * @private
21058
21058
  * @description Removes the video player style element.
21059
21059
  */
21060
- _defineProperty(this, "uBtp", function () {
21060
+ _defineProperty(this, "EHdv", function () {
21061
21061
  var playerStyles = document.getElementById("apx-mpl-styles");
21062
21062
  if (playerStyles) {
21063
21063
  playerStyles.remove();
@@ -21068,7 +21068,7 @@
21068
21068
  * @private
21069
21069
  * @description Attach listeners on the video controls
21070
21070
  */
21071
- _defineProperty(this, "KFuB", function () {
21071
+ _defineProperty(this, "MsLs", function () {
21072
21072
  // Listener for the video end. Display the CTA's when the video ends.
21073
21073
  _this.videoElement.addEventListener("ended", function () {
21074
21074
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -21183,7 +21183,7 @@
21183
21183
  * @private
21184
21184
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21185
21185
  */
21186
- _defineProperty(this, "VYlT", function () {
21186
+ _defineProperty(this, "drXm", function () {
21187
21187
  var _this$terminationConf;
21188
21188
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
21189
21189
  // On Exit of the PIP,
@@ -21223,7 +21223,7 @@
21223
21223
  * @private Sets the custom controls on the video player.
21224
21224
  * PIP and close are the custom controls that are created and positions on the video.
21225
21225
  */
21226
- _defineProperty(this, "euHT", function () {
21226
+ _defineProperty(this, "iXXi", function () {
21227
21227
  _this.enable_close_button;
21228
21228
  if (_this.enable_close_button) {
21229
21229
  var closeButton = document.createElement("span");
@@ -21270,21 +21270,21 @@
21270
21270
  * @function hideVideoPlayer
21271
21271
  * @description Sets the visibility of the video player to hidden.
21272
21272
  */
21273
- _defineProperty(this, "FEeR", function () {
21273
+ _defineProperty(this, "sbcq", function () {
21274
21274
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
21275
21275
  });
21276
21276
  /**
21277
21277
  * @function unhideVideoPlayer
21278
21278
  * @description Unhides video player.
21279
21279
  */
21280
- _defineProperty(this, "PVYW", function () {
21280
+ _defineProperty(this, "RFlT", function () {
21281
21281
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
21282
21282
  });
21283
21283
  /**
21284
21284
  * @function getVideoElement
21285
21285
  * @returns {HTMLElement} Video ekement
21286
21286
  */
21287
- _defineProperty(this, "FSGH", function () {
21287
+ _defineProperty(this, "gkcW", function () {
21288
21288
  return _this.videoElement;
21289
21289
  });
21290
21290
  this.videoPlayer = null;
@@ -21338,7 +21338,7 @@
21338
21338
  this.videoPlayer.style.backgroundColor = this.bg_color;
21339
21339
 
21340
21340
  // Video has a resolution, not deviating from the resolution set the height and width.
21341
- this.gTth();
21341
+ this.DcxS();
21342
21342
  //Generate the styles and add them to the document head.
21343
21343
  this._setVideoPlayerStyles();
21344
21344
  //Set the position of the video player with in the 5 possible positions.
@@ -21346,16 +21346,16 @@
21346
21346
  //Create a video element,set the source and add to the container.
21347
21347
  this._setPlayerContent();
21348
21348
  //Set the listeners on the video control buttons.
21349
- this.KFuB();
21349
+ this.MsLs();
21350
21350
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21351
- this.VYlT();
21351
+ this.drXm();
21352
21352
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
21353
21353
  //Reason - We want to position them at the top right and left positions.
21354
- this.euHT();
21354
+ this.iXXi();
21355
21355
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
21356
21356
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
21357
21357
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
21358
- this.FEeR();
21358
+ this.sbcq();
21359
21359
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
21360
21360
  this._setAutoTerminate();
21361
21361
  document.body.appendChild(this.videoPlayer);
@@ -21470,7 +21470,7 @@
21470
21470
  }
21471
21471
  }
21472
21472
  this.videoPlayer.remove();
21473
- this.uBtp();
21473
+ this.EHdv();
21474
21474
  if (closeButtonName !== "auto_dismiss") {
21475
21475
  var _window$ApxorRTM9;
21476
21476
  (_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
@@ -21540,7 +21540,7 @@
21540
21540
  replayCount: _this3.replayCount
21541
21541
  });
21542
21542
  _this3.videoPlayer.remove();
21543
- _this3.uBtp();
21543
+ _this3.EHdv();
21544
21544
  _this3.hideCallback();
21545
21545
  } catch (e) {
21546
21546
  console.log("Can't close the video player\n".concat(e));
@@ -21634,14 +21634,14 @@
21634
21634
  try {
21635
21635
  var _window;
21636
21636
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
21637
- var element = _this.pwLs(_this.layout);
21638
- _this.LxnJ();
21637
+ var element = _this.LJbh(_this.layout);
21638
+ _this.RUIz();
21639
21639
  window.onresize = function () {
21640
- _this.qoWw();
21640
+ _this.gwwj();
21641
21641
  };
21642
21642
  _this.imageElements.forEach(function (img) {
21643
21643
  img.addEventListener("error", function () {
21644
- _this.gRtY("provided image doesn't exists");
21644
+ _this.woit("provided image doesn't exists");
21645
21645
  });
21646
21646
  });
21647
21647
  var rootContainer = document.createElement("div");
@@ -21652,7 +21652,7 @@
21652
21652
  var styleElement = document.createElement("style");
21653
21653
  styleElement.innerHTML = _this.styleContent;
21654
21654
  document.head.appendChild(styleElement);
21655
- _this.ukpn(_this.termination);
21655
+ _this.JoIM(_this.termination);
21656
21656
  try {
21657
21657
  eval(_this.script);
21658
21658
  } catch (e) {
@@ -21663,10 +21663,10 @@
21663
21663
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
21664
21664
  _this.wait_interval -= 1;
21665
21665
  if (_this.wait_interval <= 0) {
21666
- _this.gRtY("provided media doesn't exists");
21666
+ _this.woit("provided media doesn't exists");
21667
21667
  } else {
21668
- if (_this.rlcV() && _this.IGHo() && _this.tVkh()) {
21669
- _this.qoWw();
21668
+ if (_this.xbQr() && _this.fqDl() && _this.uTAP()) {
21669
+ _this.gwwj();
21670
21670
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21671
21671
  }
21672
21672
  }
@@ -21677,7 +21677,7 @@
21677
21677
  (_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));
21678
21678
  }
21679
21679
  });
21680
- _defineProperty(this, "gRtY", function (reason) {
21680
+ _defineProperty(this, "woit", function (reason) {
21681
21681
  var _window$ApxorRTM, _window4;
21682
21682
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
21683
21683
  apx_nudge_name: _this.name,
@@ -21691,13 +21691,13 @@
21691
21691
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21692
21692
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
21693
21693
  });
21694
- _defineProperty(this, "LxnJ", function () {
21694
+ _defineProperty(this, "RUIz", function () {
21695
21695
  var EmbeddedCardsStyles = document.createElement("style");
21696
21696
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
21697
21697
  EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
21698
21698
  document.head.appendChild(EmbeddedCardsStyles);
21699
21699
  });
21700
- _defineProperty(this, "pwLs", function (config) {
21700
+ _defineProperty(this, "LJbh", function (config) {
21701
21701
  var _window$Apxor;
21702
21702
  var element;
21703
21703
  switch (config.type) {
@@ -21771,27 +21771,27 @@
21771
21771
  element.onclick = function (e) {
21772
21772
  e.stopPropagation();
21773
21773
  window.Apxor.redirect(JSON.stringify(action));
21774
- _this.BGSc(e);
21774
+ _this.mPVm(e);
21775
21775
  };
21776
21776
  break;
21777
21777
  case "show-video":
21778
21778
  element.onclick = function (e) {
21779
21779
  e.stopPropagation();
21780
21780
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
21781
- _this.BGSc(e);
21781
+ _this.mPVm(e);
21782
21782
  };
21783
21783
  break;
21784
21784
  case "cancel":
21785
21785
  element.onclick = function (e) {
21786
21786
  e.stopPropagation();
21787
- _this.BGSc(e);
21787
+ _this.mPVm(e);
21788
21788
  window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
21789
21789
  };
21790
21790
  break;
21791
21791
  case "dismiss":
21792
21792
  element.onclick = function (e) {
21793
21793
  e.stopPropagation();
21794
- _this.BGSc(e);
21794
+ _this.mPVm(e);
21795
21795
  };
21796
21796
  break;
21797
21797
  case "never":
@@ -21799,7 +21799,7 @@
21799
21799
  e.stopPropagation();
21800
21800
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
21801
21801
  window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
21802
- _this.BGSc(e);
21802
+ _this.mPVm(e);
21803
21803
  };
21804
21804
  break;
21805
21805
  case "toggle-class":
@@ -21824,7 +21824,7 @@
21824
21824
  tempInput.select();
21825
21825
  document.execCommand("copy");
21826
21826
  document.body.removeChild(tempInput);
21827
- _this.BGSc(e);
21827
+ _this.mPVm(e);
21828
21828
  };
21829
21829
  break;
21830
21830
  case "log-app-event":
@@ -21843,7 +21843,7 @@
21843
21843
  }
21844
21844
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
21845
21845
  config.absolute_position_children.forEach(function (childConfig) {
21846
- var childElement = _this.uFpJ(childConfig);
21846
+ var childElement = _this.tmRn(childConfig);
21847
21847
  element.appendChild(childElement);
21848
21848
  });
21849
21849
  }
@@ -21851,7 +21851,7 @@
21851
21851
  // Process children
21852
21852
  if (config.children && config.children.length > 0) {
21853
21853
  config.children.forEach(function (childConfig) {
21854
- var childElement = _this.pwLs(childConfig);
21854
+ var childElement = _this.LJbh(childConfig);
21855
21855
  element.appendChild(childElement);
21856
21856
  });
21857
21857
  }
@@ -21877,7 +21877,7 @@
21877
21877
  }
21878
21878
  return element;
21879
21879
  });
21880
- _defineProperty(this, "BGSc", function (e) {
21880
+ _defineProperty(this, "mPVm", function (e) {
21881
21881
  var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
21882
21882
  var additional_info = {
21883
21883
  apx_nudge_name: _this.name,
@@ -21894,7 +21894,7 @@
21894
21894
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_card_interaction", additional_info);
21895
21895
  }
21896
21896
  });
21897
- _defineProperty(this, "ukpn", function (config) {
21897
+ _defineProperty(this, "JoIM", function (config) {
21898
21898
  config.forEach(function (id) {
21899
21899
  var element = document.getElementById(id);
21900
21900
  if (element) {
@@ -21902,7 +21902,7 @@
21902
21902
  }
21903
21903
  });
21904
21904
  });
21905
- _defineProperty(this, "IGHo", function () {
21905
+ _defineProperty(this, "fqDl", function () {
21906
21906
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
21907
21907
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
21908
21908
  if (_this.imageElements.length === 0) return true;
@@ -21910,19 +21910,19 @@
21910
21910
  return img.complete;
21911
21911
  });
21912
21912
  });
21913
- _defineProperty(this, "rlcV", function () {
21913
+ _defineProperty(this, "xbQr", function () {
21914
21914
  if (_this.videoElements.length === 0) return true;
21915
21915
  return _this.videoElements.every(function (video) {
21916
21916
  return video.readyState >= 3;
21917
21917
  });
21918
21918
  });
21919
- _defineProperty(this, "tVkh", function () {
21919
+ _defineProperty(this, "uTAP", function () {
21920
21920
  if (!_this.bgImageUrl) return true;
21921
21921
  var img = new Image();
21922
21922
  img.src = _this.bgImageUrl;
21923
21923
  return img.complete;
21924
21924
  });
21925
- _defineProperty(this, "qoWw", function () {
21925
+ _defineProperty(this, "gwwj", function () {
21926
21926
  var _window6, _window7;
21927
21927
  var width = window.document.querySelector("html").offsetWidth;
21928
21928
  var height = window.document.querySelector("html").offsetHeight;
@@ -22011,8 +22011,8 @@
22011
22011
  _this.storyContainer.appendChild(currentElement);
22012
22012
  _this.storyContainer.appendChild(slideDetails);
22013
22013
  document.body.appendChild(_this.storyContainer);
22014
- _this.PPkW();
22015
- _this.EDNh();
22014
+ _this.Jmwb();
22015
+ _this.mKEK();
22016
22016
  _this.progress = Array.from(document.querySelectorAll(".progress"));
22017
22017
  var current_slide = document.querySelector(".slide-details");
22018
22018
  var playNext = function playNext(e) {
@@ -22058,7 +22058,7 @@
22058
22058
  _existingAbsoluteElements2.forEach(function (element) {
22059
22059
  element.remove();
22060
22060
  });
22061
- // this.WImt();
22061
+ // this.uqKf();
22062
22062
  var _currentSlideDetails = document.querySelector(".slide-details");
22063
22063
  _currentSlideDetails.innerHTML = "";
22064
22064
  _this.position = _this.position + 1;
@@ -22154,7 +22154,7 @@
22154
22154
  absolute_header = document.createElement("div");
22155
22155
  current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
22156
22156
  var current_absolute_element;
22157
- current_absolute_element = _this.uFpJ(current_element);
22157
+ current_absolute_element = _this.tmRn(current_element);
22158
22158
  absolute_header.appendChild(current_absolute_element);
22159
22159
  });
22160
22160
  (_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
@@ -22214,7 +22214,7 @@
22214
22214
  document.body.style.backgroundRepeat = "";
22215
22215
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
22216
22216
  delete updated_layout_without_absolute_elements["absolute_position_children"];
22217
- element = _this.uFpJ(updated_layout_without_absolute_elements);
22217
+ element = _this.tmRn(updated_layout_without_absolute_elements);
22218
22218
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
22219
22219
  document.body.style.margin = "0px";
22220
22220
  }
@@ -22222,9 +22222,9 @@
22222
22222
  current_slide.removeChild(current_slide.children[0]);
22223
22223
  }
22224
22224
  current_slide.appendChild(element);
22225
- _this.HkDr();
22225
+ _this.dioq();
22226
22226
  window.intervalToCheckImgStatus = setInterval(function () {
22227
- if (_this.tXMg()) {
22227
+ if (_this.JdWy()) {
22228
22228
  clearInterval(window.intervalToCheckImgStatus);
22229
22229
  }
22230
22230
  }, 500);
@@ -22252,7 +22252,7 @@
22252
22252
  });
22253
22253
  playNext();
22254
22254
  });
22255
- _defineProperty(this, "WImt", function () {
22255
+ _defineProperty(this, "uqKf", function () {
22256
22256
  document.body.classList.add("slide-right");
22257
22257
  var animationEndCounter = 0;
22258
22258
  var onAnimationEnd = function onAnimationEnd() {
@@ -22264,7 +22264,7 @@
22264
22264
  };
22265
22265
  document.body.addEventListener("animationend", onAnimationEnd);
22266
22266
  });
22267
- _defineProperty(this, "uFpJ", function (config) {
22267
+ _defineProperty(this, "tmRn", function (config) {
22268
22268
  var _window$Apxor4;
22269
22269
  var element;
22270
22270
  var startY;
@@ -22320,7 +22320,7 @@
22320
22320
  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>";
22321
22321
  element.id = "apx-mute-icon";
22322
22322
  element.addEventListener("touchstart", function (event) {
22323
- _this.FbJI(event);
22323
+ _this.lCIW(event);
22324
22324
  });
22325
22325
  break;
22326
22326
  case "copy_icon":
@@ -22514,7 +22514,7 @@
22514
22514
  }
22515
22515
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
22516
22516
  config.absolute_position_children.forEach(function (childConfig) {
22517
- var childElement = _this.uFpJ(childConfig);
22517
+ var childElement = _this.tmRn(childConfig);
22518
22518
  element.appendChild(childElement);
22519
22519
  });
22520
22520
  }
@@ -22522,7 +22522,7 @@
22522
22522
  // Process children
22523
22523
  if (config.children && config.children.length > 0) {
22524
22524
  config.children.forEach(function (childConfig) {
22525
- var childElement = _this.uFpJ(childConfig);
22525
+ var childElement = _this.tmRn(childConfig);
22526
22526
  element.appendChild(childElement);
22527
22527
  });
22528
22528
  }
@@ -22548,7 +22548,7 @@
22548
22548
  }
22549
22549
  return element;
22550
22550
  });
22551
- _defineProperty(this, "FbJI", function (event) {
22551
+ _defineProperty(this, "lCIW", function (event) {
22552
22552
  var slide_details_to_be_deleted;
22553
22553
  var mute_child_elements;
22554
22554
  var unmute_child_elements;
@@ -22578,11 +22578,11 @@
22578
22578
  }
22579
22579
  // this.muteElement.addEventListener("touchstart", (event) => {
22580
22580
  // event.stopPropagation();
22581
- // this.FbJI(event);
22581
+ // this.lCIW(event);
22582
22582
  // });
22583
22583
  }
22584
22584
  });
22585
- _defineProperty(this, "EDNh", function () {
22585
+ _defineProperty(this, "mKEK", function () {
22586
22586
  var tapTimeout;
22587
22587
  var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
22588
22588
  var longPressDuration = 200;
@@ -22706,7 +22706,7 @@
22706
22706
  event.target.dataset.touchStartTime = event.timeStamp;
22707
22707
  });
22708
22708
  });
22709
- _defineProperty(this, "PPkW", function () {
22709
+ _defineProperty(this, "Jmwb", function () {
22710
22710
  var startY, startX;
22711
22711
  _this.storyContainer.addEventListener("touchstart", function (event) {
22712
22712
  _this.swipeTouch = true;
@@ -22913,7 +22913,7 @@
22913
22913
  }, 50);
22914
22914
  });
22915
22915
  });
22916
- _defineProperty(this, "HkDr", function () {
22916
+ _defineProperty(this, "dioq", function () {
22917
22917
  _this.loader.style.display = "block";
22918
22918
  var progress = Array.from(document.querySelectorAll(".progress"));
22919
22919
  var activeIndex = progress.findIndex(function (el) {
@@ -22929,7 +22929,7 @@
22929
22929
  }
22930
22930
  }
22931
22931
  });
22932
- _defineProperty(this, "Fgqz", function () {
22932
+ _defineProperty(this, "XEwF", function () {
22933
22933
  if (!_this.continueLoading) {
22934
22934
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22935
22935
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
@@ -22949,19 +22949,19 @@
22949
22949
  _this.loader.style.display = "none";
22950
22950
  }
22951
22951
  });
22952
- _defineProperty(this, "IGHo", function () {
22952
+ _defineProperty(this, "fqDl", function () {
22953
22953
  if (_this.imageElements.length === 0) return true;
22954
22954
  return _this.imageElements.every(function (img) {
22955
22955
  return img.complete;
22956
22956
  });
22957
22957
  });
22958
- _defineProperty(this, "rlcV", function () {
22958
+ _defineProperty(this, "xbQr", function () {
22959
22959
  if (_this.videoElements.length === 0) return true;
22960
22960
  return _this.videoElements.every(function (video) {
22961
22961
  return video.readyState >= 3;
22962
22962
  });
22963
22963
  });
22964
- _defineProperty(this, "tXMg", function () {
22964
+ _defineProperty(this, "JdWy", function () {
22965
22965
  var bodyStyles = window.getComputedStyle(document.body);
22966
22966
  var backgroundImage = bodyStyles.backgroundImage;
22967
22967
  if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
@@ -22971,7 +22971,7 @@
22971
22971
  var img = new Image();
22972
22972
  img.src = imageUrl;
22973
22973
  if (img.complete) {
22974
- _this.Fgqz();
22974
+ _this.XEwF();
22975
22975
  return true;
22976
22976
  }
22977
22977
  return false;
@@ -22979,21 +22979,21 @@
22979
22979
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22980
22980
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
22981
22981
  if (childElements[0].readyState >= 3) {
22982
- _this.Fgqz();
22982
+ _this.XEwF();
22983
22983
  return true;
22984
22984
  }
22985
22985
  return false;
22986
22986
  } else {
22987
22987
  if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
22988
- _this.Fgqz();
22988
+ _this.XEwF();
22989
22989
  return true;
22990
- } else if (_this.IGHo() && _this.rlcV()) {
22991
- _this.Fgqz();
22990
+ } else if (_this.fqDl() && _this.xbQr()) {
22991
+ _this.XEwF();
22992
22992
  return true;
22993
22993
  }
22994
22994
  }
22995
22995
  });
22996
- _defineProperty(this, "qVjo", function (event, startY, action) {
22996
+ _defineProperty(this, "Ktty", function (event, startY, action) {
22997
22997
  event.stopPropagation();
22998
22998
  var endY = event.changedTouches[0].clientY;
22999
22999
  var deltaY = startY - endY;
@@ -23088,7 +23088,7 @@
23088
23088
  this.swipe_action;
23089
23089
  this.continueLoading = false;
23090
23090
  this.boundSwipeUpHandling = function (event) {
23091
- return _this.qVjo(event, _this.startY, _this.swipe_action);
23091
+ return _this.Ktty(event, _this.startY, _this.swipe_action);
23092
23092
  };
23093
23093
  }
23094
23094
  _createClass(Stories, [{
@@ -23151,7 +23151,7 @@
23151
23151
  } else {
23152
23152
  var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
23153
23153
  // Move to the first slide of the next group
23154
- // this.WImt();
23154
+ // this.uqKf();
23155
23155
  this.position++;
23156
23156
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23157
23157
  this.slides = this.config[this.position].slides;
@@ -23277,7 +23277,7 @@
23277
23277
  if (activeIndex === 0) {
23278
23278
  var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
23279
23279
  // If at the first slide of the current group, move to the last slide of the previous group
23280
- // this.WImt();
23280
+ // this.uqKf();
23281
23281
  this.position--;
23282
23282
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23283
23283
  this.slides = this.config[this.position].slides;
@@ -23464,25 +23464,25 @@
23464
23464
  // Create custom content
23465
23465
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
23466
23466
  delete updated_layout_without_absolute_elements["absolute_position_children"];
23467
- element = this.uFpJ(updated_layout_without_absolute_elements);
23467
+ element = this.tmRn(updated_layout_without_absolute_elements);
23468
23468
  }
23469
23469
  // Append slide content to slide details container
23470
23470
 
23471
23471
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
23472
23472
  document.body.style.margin = "0px";
23473
23473
  currentSlideDetails.appendChild(element);
23474
- this.HkDr();
23474
+ this.dioq();
23475
23475
 
23476
23476
  // Handle absolute position children
23477
23477
  if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
23478
23478
  current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
23479
- var childElement = _this2.uFpJ(childConfig);
23479
+ var childElement = _this2.tmRn(childConfig);
23480
23480
  // Append absolute position children to slide details container
23481
23481
  currentSlideDetails.appendChild(childElement);
23482
23482
  });
23483
23483
  }
23484
23484
  window.intervalToCheckImgStatus2 = setInterval(function () {
23485
- if (_this2.tXMg()) {
23485
+ if (_this2.JdWy()) {
23486
23486
  clearInterval(window.intervalToCheckImgStatus2);
23487
23487
  }
23488
23488
  }, 500);
@@ -23917,15 +23917,15 @@
23917
23917
  _this$badge$animation2,
23918
23918
  _this$badge$animation3;
23919
23919
  _classCallCheck(this, ApxorBadge);
23920
- _defineProperty(this, "sOno", function () {
23920
+ _defineProperty(this, "abJr", function () {
23921
23921
  var delayMillis = _this.delayMillis * 1000;
23922
23922
  _this.shakeAnimationRepeat(_this.interCount, delayMillis);
23923
23923
  });
23924
- _defineProperty(this, "Dujl", function () {
23924
+ _defineProperty(this, "ySbr", function () {
23925
23925
  var delayMillis = _this.delayMillis * 1000;
23926
23926
  _this.fadeAnimationRepeat(_this.interCount, delayMillis);
23927
23927
  });
23928
- _defineProperty(this, "ExWA", function () {
23928
+ _defineProperty(this, "nEhw", function () {
23929
23929
  var _this$targetElement;
23930
23930
  var delayMillis = _this.delayMillis * 1000;
23931
23931
  var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
@@ -23934,7 +23934,7 @@
23934
23934
  (_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
23935
23935
  _this.rippleAnimationRepeat(_this.interCount, delayMillis);
23936
23936
  });
23937
- _defineProperty(this, "qAWh", function () {
23937
+ _defineProperty(this, "Rfqe", function () {
23938
23938
  var delayMillis = _this.delayMillis * 1000;
23939
23939
  //let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
23940
23940
  //let badgeAnimationElement = document.querySelector(badgeContainerClass);
@@ -23951,7 +23951,7 @@
23951
23951
  // newstyleNode1.innerHTML = finalStyles;
23952
23952
  // this.targetElement?.appendChild(newstyleNode1);
23953
23953
  });
23954
- _defineProperty(this, "Krgj", function () {
23954
+ _defineProperty(this, "wXSj", function () {
23955
23955
  var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
23956
23956
  elements === null || elements === void 0 || elements.forEach(function (ele) {
23957
23957
  ele === null || ele === void 0 || ele.remove();
@@ -23960,9 +23960,9 @@
23960
23960
  dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
23961
23961
  ele === null || ele === void 0 || ele.remove();
23962
23962
  });
23963
- _this.UuHQ();
23963
+ _this.qgiQ();
23964
23964
  });
23965
- _defineProperty(this, "UuHQ", function () {
23965
+ _defineProperty(this, "qgiQ", function () {
23966
23966
  var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
23967
23967
  // Ensure the target element is the wrapper with class 'image-container'
23968
23968
  if (targetWrapperElement) {
@@ -23986,12 +23986,12 @@
23986
23986
  * @param {boolean} optimized
23987
23987
  * @returns viewId
23988
23988
  */
23989
- _defineProperty(this, "Awdk", function (node, optimized) {
23989
+ _defineProperty(this, "dKzi", function (node, optimized) {
23990
23990
  if (node.nodeType !== Node.ELEMENT_NODE) return "";
23991
23991
  var steps = [];
23992
23992
  var contextNode = node;
23993
23993
  while (contextNode) {
23994
- var step = _this.gmDO(contextNode, !!optimized, contextNode === node);
23994
+ var step = _this.aFBg(contextNode, !!optimized, contextNode === node);
23995
23995
  if (!step) break; // Error - bail out early.
23996
23996
  steps.push(step);
23997
23997
  if (step.optimized) break;
@@ -24006,7 +24006,7 @@
24006
24006
  * @param {boolean} optimized
24007
24007
  * @param {object} isTargetNode
24008
24008
  */
24009
- _defineProperty(this, "gmDO", function (node, optimized, isTargetNode) {
24009
+ _defineProperty(this, "aFBg", function (node, optimized, isTargetNode) {
24010
24010
  if (node.nodeType !== Node.ELEMENT_NODE) return null;
24011
24011
  var id = node.getAttribute("id");
24012
24012
  if (optimized) {
@@ -24127,7 +24127,7 @@
24127
24127
  this.contentZindexValue = 1;
24128
24128
  }
24129
24129
  _createClass(ApxorBadge, [{
24130
- key: "Ipuh",
24130
+ key: "HGOD",
24131
24131
  value: function createBadge() {
24132
24132
  var _this2 = this;
24133
24133
  var targetFoundCallback = function targetFoundCallback() {
@@ -24898,16 +24898,16 @@
24898
24898
  var RTM = /*#__PURE__*/_createClass(function RTM() {
24899
24899
  var _this = this;
24900
24900
  _classCallCheck(this, RTM);
24901
- _defineProperty(this, "yQZE", {});
24901
+ _defineProperty(this, "YRfU", {});
24902
24902
  _defineProperty(this, "isShowingAction", false);
24903
24903
  _defineProperty(this, "currentAction", null);
24904
- _defineProperty(this, "XHla", null);
24905
- _defineProperty(this, "version", 90);
24904
+ _defineProperty(this, "HyJc", null);
24905
+ _defineProperty(this, "version", 91);
24906
24906
  _defineProperty(this, "isInitialised", false);
24907
- _defineProperty(this, "gGQU", {});
24908
- _defineProperty(this, "AvTU", false);
24907
+ _defineProperty(this, "lbLW", {});
24908
+ _defineProperty(this, "etai", false);
24909
24909
  _defineProperty(this, "_isShownECCalled", false);
24910
- _defineProperty(this, "KJyT", function () {
24910
+ _defineProperty(this, "WLeB", function () {
24911
24911
  _this.isInitialised = true;
24912
24912
  var oldPushState = history.pushState;
24913
24913
  history.pushState = function pushState() {
@@ -24934,7 +24934,7 @@
24934
24934
  var _window;
24935
24935
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
24936
24936
  if (!_this.isInitialised) {
24937
- _this.KJyT();
24937
+ _this.WLeB();
24938
24938
  }
24939
24939
  window.addEventListener("pagehide", function () {
24940
24940
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -24959,7 +24959,7 @@
24959
24959
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
24960
24960
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
24961
24961
  } else if (ui_config.display_type === "coach_mark_v2") {
24962
- _this.FKRN(ui_config, duration, uuid, name);
24962
+ _this.sYRk(ui_config, duration, uuid, name);
24963
24963
  } else {
24964
24964
  showCoachmarkWithDelay(_this, ui_config, {
24965
24965
  configId: uuid,
@@ -24999,7 +24999,7 @@
24999
24999
  });
25000
25000
  _defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
25001
25001
  if (!_this.isInitialised) {
25002
- _this.KJyT();
25002
+ _this.WLeB();
25003
25003
  }
25004
25004
  window.addEventListener("pagehide", function () {
25005
25005
  var _window$Apxor2, _window$Apxor2$pageUn;
@@ -25011,7 +25011,7 @@
25011
25011
  _this.removeBadge(name, uuid);
25012
25012
  }
25013
25013
  var termination_config = JSON.parse(terminationConfig);
25014
- _this.Ipuh(ui_config, duration, uuid, name, termination_config);
25014
+ _this.HGOD(ui_config, duration, uuid, name, termination_config);
25015
25015
  });
25016
25016
  _defineProperty(this, "showInApp", function (config, duration, configId, name) {
25017
25017
  try {
@@ -25075,7 +25075,7 @@
25075
25075
  try {
25076
25076
  config = config.split("\n").join("\\n");
25077
25077
  var ui_config = JSON.parse(config);
25078
- _this.dOEQ(ui_config, configId, name, position, slidesSeenCount, view_id);
25078
+ _this.fZFC(ui_config, configId, name, position, slidesSeenCount, view_id);
25079
25079
  } catch (e) {
25080
25080
  var _window$Apxor4;
25081
25081
  if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
@@ -25089,7 +25089,7 @@
25089
25089
  console.error(e);
25090
25090
  }
25091
25091
  });
25092
- _defineProperty(this, "dOEQ", function (config, configId, name, position, slidesSeenCount, view_id) {
25092
+ _defineProperty(this, "fZFC", function (config, configId, name, position, slidesSeenCount, view_id) {
25093
25093
  var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
25094
25094
  window.Apxor.logAppEvent("apx_nudge_shown", {
25095
25095
  campaignName: name,
@@ -25136,7 +25136,7 @@
25136
25136
  var _window23, _window23$updateFlag, _window24;
25137
25137
  _this.isShowingAction = false;
25138
25138
  _this.currentAction = null;
25139
- _this.XHla = null;
25139
+ _this.HyJc = null;
25140
25140
  (_window23 = window) === null || _window23 === void 0 || (_window23 = _window23.Apxor) === null || _window23 === void 0 || (_window23$updateFlag = _window23.updateFlag) === null || _window23$updateFlag === void 0 || _window23$updateFlag.call(_window23, false);
25141
25141
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25142
25142
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25147,21 +25147,21 @@
25147
25147
  }
25148
25148
  };
25149
25149
  if (action_class === "new-inline") {
25150
- _this.XHla = new InLineTooltip(ui_config, [], [], terminationConfig, {
25150
+ _this.HyJc = new InLineTooltip(ui_config, [], [], terminationConfig, {
25151
25151
  configId: uuid,
25152
25152
  configName: name
25153
25153
  }, _this, onShow, onHide, function () {}, false, 0);
25154
25154
  } else if (action_class === "tooltip_builder") {
25155
- _this.XHla = new NewInLineTooltip(ui_config, terminationConfig, {
25155
+ _this.HyJc = new NewInLineTooltip(ui_config, terminationConfig, {
25156
25156
  configId: uuid,
25157
25157
  configName: name
25158
25158
  }, _this, onShow, onHide);
25159
25159
  }
25160
25160
  setTimeout(function () {
25161
- _this.XHla.createNewTooltip();
25161
+ _this.HyJc.createNewTooltip();
25162
25162
  }, ui_config.delay);
25163
25163
  });
25164
- _defineProperty(this, "FKRN", function (ui_config, duration, uuid, name) {
25164
+ _defineProperty(this, "sYRk", function (ui_config, duration, uuid, name) {
25165
25165
  var terminationConfig = {};
25166
25166
  terminationConfig["auto_dismiss"] = duration > 0;
25167
25167
  terminationConfig["duration"] = duration;
@@ -25185,7 +25185,7 @@
25185
25185
  var _window28, _window28$updateFlag, _window29;
25186
25186
  _this.isShowingAction = false;
25187
25187
  _this.currentAction = null;
25188
- _this.XHla = null;
25188
+ _this.HyJc = null;
25189
25189
  (_window28 = window) === null || _window28 === void 0 || (_window28 = _window28.Apxor) === null || _window28 === void 0 || (_window28$updateFlag = _window28.updateFlag) === null || _window28$updateFlag === void 0 || _window28$updateFlag.call(_window28, false);
25190
25190
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25191
25191
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25197,7 +25197,7 @@
25197
25197
  }, _this.stepperCallback, false, 0);
25198
25198
  _this._currentCoachmark.createNewCoachMark();
25199
25199
  });
25200
- _defineProperty(this, "Ipuh", function (ui_config, duration, uuid, name, terminationConfig) {
25200
+ _defineProperty(this, "HGOD", function (ui_config, duration, uuid, name, terminationConfig) {
25201
25201
  _this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
25202
25202
  configId: uuid,
25203
25203
  configName: name
@@ -25205,7 +25205,6 @@
25205
25205
  // this.isShowingAction = true;
25206
25206
  if (window.Apxor && window.Apxor.logActionEvent) {
25207
25207
  var _window$Apxor5;
25208
- window.Apxor.logActionEvent("inline_shown", uuid, name);
25209
25208
  (_window$Apxor5 = window.Apxor) === null || _window$Apxor5 === void 0 || _window$Apxor5.updateBadgeStatus("show", uuid);
25210
25209
  if (ui_config !== null && ui_config !== void 0 && ui_config.is_preview) {
25211
25210
  setTimeout(function () {
@@ -25215,12 +25214,12 @@
25215
25214
  }
25216
25215
  }
25217
25216
  });
25218
- _this._currentBadge.Krgj();
25219
- _this._currentBadge.Ipuh();
25217
+ _this._currentBadge.wXSj();
25218
+ _this._currentBadge.HGOD();
25220
25219
  });
25221
25220
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
25222
- if (_this.XHla) {
25223
- _this.XHla.updateElementPositionOnScroll(top, left, height, width);
25221
+ if (_this.HyJc) {
25222
+ _this.HyJc.updateElementPositionOnScroll(top, left, height, width);
25224
25223
  }
25225
25224
  });
25226
25225
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -25357,10 +25356,10 @@
25357
25356
  });
25358
25357
  _defineProperty(this, "showPlaceHolder", function () {
25359
25358
  var _window39;
25360
- if (_this.AvTU) {
25359
+ if (_this.etai) {
25361
25360
  return;
25362
25361
  }
25363
- _this.AvTU = true;
25362
+ _this.etai = true;
25364
25363
  var ele = document.createElement("div");
25365
25364
  ele.innerHTML = "place your immersive card here";
25366
25365
  ele.style.backgroundColor = "#f5f5f5";