apxor-rtm-ui 0.9.0 → 0.9.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.
@@ -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, "kvJP", function () {
12176
12176
  return new Promise(function (resolve, reject) {
12177
12177
  try {
12178
- var element = _this.uFpJ(_this.layout);
12178
+ var element = _this.TlnU(_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.HlMX();
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.ILsW("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.ILsW("provided media doesn't exists");
12200
12200
  } else {
12201
- if (_this.rlcV() && _this.IGHo() && _this.tVkh()) {
12201
+ if (_this.FrMU() && _this.vcYm() && _this.yJEm()) {
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, "ILsW", 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, "HlMX", 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, "TlnU", function (config) {
12238
12238
  var _window$Apxor3;
12239
12239
  var element;
12240
12240
  switch (config.type) {
@@ -12299,7 +12299,9 @@
12299
12299
  }
12300
12300
  styles = ".".concat(config._id, " {\n ").concat(objectToCSS(layoutStyleObject), "\n }\n ");
12301
12301
  } else {
12302
- styles = ".".concat(config._id, " {\n ").concat(config.css, "\n }\n ");
12302
+ var _config$properties$cu, _config$properties3;
12303
+ // custom_font_face
12304
+ styles = "".concat((_config$properties$cu = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 || (_config$properties3 = _config$properties3.custom_font) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.font_face) !== null && _config$properties$cu !== void 0 ? _config$properties$cu : "", ".").concat(config._id, " {\n ").concat(config.css, "\n }\n ");
12303
12305
  }
12304
12306
  _this.initialStyles += styles;
12305
12307
  }
@@ -12318,7 +12320,7 @@
12318
12320
  if (config.type === "cta_button" || config.type === "button") {
12319
12321
  reason = "cta-clicked";
12320
12322
  }
12321
- _this.BGSc(e, "redirect", reason);
12323
+ _this.OSHi(e, "redirect", reason);
12322
12324
  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
12325
  var _window4, _this$config8;
12324
12326
  (_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 +12336,7 @@
12334
12336
  } else if (config.type === "cta_button" || config.type === "button") {
12335
12337
  reason = "cta-clicked";
12336
12338
  }
12337
- _this.BGSc(e, "cancel", reason);
12339
+ _this.OSHi(e, "cancel", reason);
12338
12340
  // window.Apxor.logActionEvent(
12339
12341
  // "walk_through_cancelled",
12340
12342
  // this.configId,
@@ -12353,7 +12355,7 @@
12353
12355
  } else if (config.type === "cta_button" || config.type === "button") {
12354
12356
  reason = "cta-clicked";
12355
12357
  }
12356
- _this.BGSc(e, "dismiss", reason);
12358
+ _this.OSHi(e, "dismiss", reason);
12357
12359
  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
12360
  var _window5, _this$config10;
12359
12361
  (_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 +12366,7 @@
12364
12366
  element.onclick = function (e) {
12365
12367
  e.stopPropagation();
12366
12368
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
12367
- _this.BGSc(e, "never");
12369
+ _this.OSHi(e, "never");
12368
12370
  };
12369
12371
  break;
12370
12372
  case "toggle-class":
@@ -12389,7 +12391,7 @@
12389
12391
  tempInput.select();
12390
12392
  document.execCommand("copy");
12391
12393
  document.body.removeChild(tempInput);
12392
- _this.BGSc(e, "copy-content", "cta-clicked");
12394
+ _this.OSHi(e, "copy-content", "cta-clicked");
12393
12395
  setTimeout(function () {
12394
12396
  window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
12395
12397
  }, 500);
@@ -12411,7 +12413,7 @@
12411
12413
  }
12412
12414
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
12413
12415
  config.absolute_position_children.forEach(function (childConfig) {
12414
- var childElement = _this.uFpJ(childConfig);
12416
+ var childElement = _this.TlnU(childConfig);
12415
12417
  element.appendChild(childElement);
12416
12418
  });
12417
12419
  }
@@ -12419,14 +12421,14 @@
12419
12421
  // Process children
12420
12422
  if (config.children && config.children.length > 0) {
12421
12423
  config.children.forEach(function (childConfig) {
12422
- var childElement = _this.uFpJ(childConfig);
12424
+ var childElement = _this.TlnU(childConfig);
12423
12425
  element.appendChild(childElement);
12424
12426
  });
12425
12427
  }
12426
12428
  if (config.type === "img") {
12427
- var _config$properties3, _config$properties4, _window6, _window6$getFilePath;
12428
- var src = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.src;
12429
- var format = config === null || config === void 0 || (_config$properties4 = config.properties) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.format;
12429
+ var _config$properties4, _config$properties5, _window6, _window6$getFilePath;
12430
+ var src = config === null || config === void 0 || (_config$properties4 = config.properties) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.src;
12431
+ var format = config === null || config === void 0 || (_config$properties5 = config.properties) === null || _config$properties5 === void 0 ? void 0 : _config$properties5.format;
12430
12432
  element["src"] = src && format ? ((_window6 = window) === null || _window6 === void 0 || (_window6 = _window6.Apxor) === null || _window6 === void 0 || (_window6$getFilePath = _window6.getFilePath) === null || _window6$getFilePath === void 0 ? void 0 : _window6$getFilePath.call(_window6, _this.configId, src, format)) || src : src;
12431
12433
  _this.imageElements.push(element);
12432
12434
  var imgWrapper = document.createElement("div");
@@ -12446,7 +12448,7 @@
12446
12448
  }
12447
12449
  return element;
12448
12450
  });
12449
- _defineProperty(this, "BGSc", function (e, action) {
12451
+ _defineProperty(this, "OSHi", function (e, action) {
12450
12452
  var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
12451
12453
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
12452
12454
  var additional_info = {
@@ -12475,7 +12477,7 @@
12475
12477
  _this.closeCallBack(action);
12476
12478
  }
12477
12479
  });
12478
- _defineProperty(this, "IGHo", function () {
12480
+ _defineProperty(this, "vcYm", function () {
12479
12481
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
12480
12482
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
12481
12483
  if (_this.imageElements.length === 0) return true;
@@ -12483,13 +12485,13 @@
12483
12485
  return img.complete;
12484
12486
  });
12485
12487
  });
12486
- _defineProperty(this, "tVkh", function () {
12488
+ _defineProperty(this, "yJEm", function () {
12487
12489
  if (!_this.bgImageUrl) return true;
12488
12490
  var img = new Image();
12489
12491
  img.src = _this.bgImageUrl;
12490
12492
  return img.complete;
12491
12493
  });
12492
- _defineProperty(this, "rlcV", function () {
12494
+ _defineProperty(this, "FrMU", function () {
12493
12495
  if (_this.videoElements.length === 0) return true;
12494
12496
  return _this.videoElements.every(function (video) {
12495
12497
  return video.readyState >= 3;
@@ -13425,7 +13427,7 @@
13425
13427
  case 0:
13426
13428
  _context2.prev = 0;
13427
13429
  _context2.next = 3;
13428
- return this.templateContent.izJx();
13430
+ return this.templateContent.kvJP();
13429
13431
  case 3:
13430
13432
  this.inLineContainer = _context2.sent;
13431
13433
  _context2.next = 9;
@@ -15002,7 +15004,7 @@
15002
15004
  * @description Creates the styles for Marketing message.
15003
15005
  * @returns {string} css styles
15004
15006
  */
15005
- _defineProperty(this, "LXYP", function () {
15007
+ _defineProperty(this, "iJfy", function () {
15006
15008
  if (!_this.enable_marketing) {
15007
15009
  return "";
15008
15010
  }
@@ -15021,7 +15023,7 @@
15021
15023
  * @private
15022
15024
  * @description Sets the marketing content at the end of the Inline
15023
15025
  */
15024
- _defineProperty(this, "aozU", function () {
15026
+ _defineProperty(this, "qVqV", function () {
15025
15027
  if (_this.enable_marketing) {
15026
15028
  var marketingContainer = document.createElement("div");
15027
15029
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -15634,7 +15636,7 @@
15634
15636
  if (apxor_tooltip_styles) {
15635
15637
  return;
15636
15638
  }
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, "");
15639
+ 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.iJfy(), "\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
15640
  var styleNode = document.createElement("style");
15639
15641
  styleNode.setAttribute("apx-tooltip-styles", "");
15640
15642
  styleNode.innerHTML = styles;
@@ -16444,7 +16446,7 @@
16444
16446
  this._setCloseButton();
16445
16447
 
16446
16448
  //Set the Marketing content
16447
- this.aozU();
16449
+ this.qVqV();
16448
16450
  }
16449
16451
 
16450
16452
  /**
@@ -19339,7 +19341,7 @@
19339
19341
  case 0:
19340
19342
  _context2.prev = 0;
19341
19343
  _context2.next = 3;
19342
- return this.templateContent.izJx();
19344
+ return this.templateContent.kvJP();
19343
19345
  case 3:
19344
19346
  this.inAppContainer = _context2.sent;
19345
19347
  this.inAppContainer.style.zIndex = 99999;
@@ -19538,7 +19540,7 @@
19538
19540
  * @description Creates the styles for Marketing message.
19539
19541
  * @returns {string} css styles
19540
19542
  */
19541
- _defineProperty(this, "LXYP", function () {
19543
+ _defineProperty(this, "iJfy", function () {
19542
19544
  if (!_this.enable_marketing) {
19543
19545
  return "";
19544
19546
  }
@@ -19584,7 +19586,7 @@
19584
19586
  * @private
19585
19587
  * @description Get the response for Form content in the InApp modal.
19586
19588
  */
19587
- _defineProperty(this, "FmiR", function (form_elements) {
19589
+ _defineProperty(this, "zbxz", function (form_elements) {
19588
19590
  var obj = {};
19589
19591
  var callback = "";
19590
19592
  form_elements.forEach(function (element) {
@@ -19624,7 +19626,7 @@
19624
19626
  * @private
19625
19627
  * @description Sets the marketing content at the end of the InApp
19626
19628
  */
19627
- _defineProperty(this, "aozU", function () {
19629
+ _defineProperty(this, "qVqV", function () {
19628
19630
  if (_this.enable_marketing) {
19629
19631
  var marketingContainer = document.createElement("div");
19630
19632
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -19883,7 +19885,7 @@
19883
19885
  }, {
19884
19886
  key: "_setStyles",
19885
19887
  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, "");
19888
+ 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.iJfy(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
19887
19889
  var styleNode = document.createElement("style");
19888
19890
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
19889
19891
  styleNode.innerHTML = styles;
@@ -20382,7 +20384,7 @@
20382
20384
  this._setCloseButton();
20383
20385
 
20384
20386
  //Set the Marketing content
20385
- this.aozU();
20387
+ this.qVqV();
20386
20388
  }
20387
20389
 
20388
20390
  /**
@@ -20432,7 +20434,7 @@
20432
20434
  var overlay = this.overlayElement;
20433
20435
  var actionCallback = function actionCallback(isCancelled, action) {
20434
20436
  clearTimeout(_this5.terminationTimeoutId);
20435
- _this5.closeCallback(overlay, action, "new-inline".concat(_this5.cssPostFix), _this5.closeListener, _this5.redirectionListener);
20437
+ _this5.closeCallback(overlay, action, "", ".apx-inapp-container".concat(_this5.cssPostFix), _this5.closeListener, _this5.redirectionListener);
20436
20438
  };
20437
20439
  var next_Callback = function next_Callback(id, action) {
20438
20440
  actionCallback(false, "next");
@@ -20664,7 +20666,7 @@
20664
20666
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
20665
20667
  form.addEventListener("submit", function (e) {
20666
20668
  e.preventDefault();
20667
- var _this8$generateRespon = _this8.FmiR(_this8.form.elements),
20669
+ var _this8$generateRespon = _this8.zbxz(_this8.form.elements),
20668
20670
  obj = _this8$generateRespon.obj,
20669
20671
  callback = _this8$generateRespon.callback;
20670
20672
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -20779,7 +20781,7 @@
20779
20781
  var overlay = this.overlayElement;
20780
20782
  var actionCallback = function actionCallback(isCancelled, action) {
20781
20783
  clearTimeout(_this9.terminationTimeoutId);
20782
- _this9.closeCallback(overlay, action, "", "new-inline".concat(_this9.cssPostFix), _this9.closeListener, _this9.redirectionListener);
20784
+ _this9.closeCallback(overlay, action, "", ".apx-inapp-container".concat(_this9.cssPostFix), _this9.closeListener, _this9.redirectionListener);
20783
20785
  };
20784
20786
  var next_Callback = function next_Callback(id, action) {
20785
20787
  actionCallback(false, "next");
@@ -21024,7 +21026,7 @@
21024
21026
  };
21025
21027
  } else {
21026
21028
  // As the video player is hidden by default, unhide if the mode is not PIP.
21027
- _this.PVYW();
21029
+ _this.Vujz();
21028
21030
  }
21029
21031
  _this.showCallback();
21030
21032
  } catch (e) {
@@ -21045,7 +21047,7 @@
21045
21047
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
21046
21048
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
21047
21049
  */
21048
- _defineProperty(this, "gTth", function () {
21050
+ _defineProperty(this, "ZJYZ", function () {
21049
21051
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
21050
21052
  width = _getHeightWidthFromRe.width,
21051
21053
  height = _getHeightWidthFromRe.height;
@@ -21057,7 +21059,7 @@
21057
21059
  * @private
21058
21060
  * @description Removes the video player style element.
21059
21061
  */
21060
- _defineProperty(this, "uBtp", function () {
21062
+ _defineProperty(this, "guyy", function () {
21061
21063
  var playerStyles = document.getElementById("apx-mpl-styles");
21062
21064
  if (playerStyles) {
21063
21065
  playerStyles.remove();
@@ -21068,7 +21070,7 @@
21068
21070
  * @private
21069
21071
  * @description Attach listeners on the video controls
21070
21072
  */
21071
- _defineProperty(this, "KFuB", function () {
21073
+ _defineProperty(this, "iifB", function () {
21072
21074
  // Listener for the video end. Display the CTA's when the video ends.
21073
21075
  _this.videoElement.addEventListener("ended", function () {
21074
21076
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -21183,7 +21185,7 @@
21183
21185
  * @private
21184
21186
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21185
21187
  */
21186
- _defineProperty(this, "VYlT", function () {
21188
+ _defineProperty(this, "eglC", function () {
21187
21189
  var _this$terminationConf;
21188
21190
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
21189
21191
  // On Exit of the PIP,
@@ -21223,7 +21225,7 @@
21223
21225
  * @private Sets the custom controls on the video player.
21224
21226
  * PIP and close are the custom controls that are created and positions on the video.
21225
21227
  */
21226
- _defineProperty(this, "euHT", function () {
21228
+ _defineProperty(this, "PzeG", function () {
21227
21229
  _this.enable_close_button;
21228
21230
  if (_this.enable_close_button) {
21229
21231
  var closeButton = document.createElement("span");
@@ -21270,21 +21272,21 @@
21270
21272
  * @function hideVideoPlayer
21271
21273
  * @description Sets the visibility of the video player to hidden.
21272
21274
  */
21273
- _defineProperty(this, "FEeR", function () {
21275
+ _defineProperty(this, "sFyk", function () {
21274
21276
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
21275
21277
  });
21276
21278
  /**
21277
21279
  * @function unhideVideoPlayer
21278
21280
  * @description Unhides video player.
21279
21281
  */
21280
- _defineProperty(this, "PVYW", function () {
21282
+ _defineProperty(this, "Vujz", function () {
21281
21283
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
21282
21284
  });
21283
21285
  /**
21284
21286
  * @function getVideoElement
21285
21287
  * @returns {HTMLElement} Video ekement
21286
21288
  */
21287
- _defineProperty(this, "FSGH", function () {
21289
+ _defineProperty(this, "dxIL", function () {
21288
21290
  return _this.videoElement;
21289
21291
  });
21290
21292
  this.videoPlayer = null;
@@ -21338,7 +21340,7 @@
21338
21340
  this.videoPlayer.style.backgroundColor = this.bg_color;
21339
21341
 
21340
21342
  // Video has a resolution, not deviating from the resolution set the height and width.
21341
- this.gTth();
21343
+ this.ZJYZ();
21342
21344
  //Generate the styles and add them to the document head.
21343
21345
  this._setVideoPlayerStyles();
21344
21346
  //Set the position of the video player with in the 5 possible positions.
@@ -21346,16 +21348,16 @@
21346
21348
  //Create a video element,set the source and add to the container.
21347
21349
  this._setPlayerContent();
21348
21350
  //Set the listeners on the video control buttons.
21349
- this.KFuB();
21351
+ this.iifB();
21350
21352
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21351
- this.VYlT();
21353
+ this.eglC();
21352
21354
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
21353
21355
  //Reason - We want to position them at the top right and left positions.
21354
- this.euHT();
21356
+ this.PzeG();
21355
21357
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
21356
21358
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
21357
21359
  //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();
21360
+ this.sFyk();
21359
21361
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
21360
21362
  this._setAutoTerminate();
21361
21363
  document.body.appendChild(this.videoPlayer);
@@ -21470,7 +21472,7 @@
21470
21472
  }
21471
21473
  }
21472
21474
  this.videoPlayer.remove();
21473
- this.uBtp();
21475
+ this.guyy();
21474
21476
  if (closeButtonName !== "auto_dismiss") {
21475
21477
  var _window$ApxorRTM9;
21476
21478
  (_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
@@ -21540,7 +21542,7 @@
21540
21542
  replayCount: _this3.replayCount
21541
21543
  });
21542
21544
  _this3.videoPlayer.remove();
21543
- _this3.uBtp();
21545
+ _this3.guyy();
21544
21546
  _this3.hideCallback();
21545
21547
  } catch (e) {
21546
21548
  console.log("Can't close the video player\n".concat(e));
@@ -21634,14 +21636,14 @@
21634
21636
  try {
21635
21637
  var _window;
21636
21638
  (_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();
21639
+ var element = _this.CJAE(_this.layout);
21640
+ _this.CMhN();
21639
21641
  window.onresize = function () {
21640
- _this.qoWw();
21642
+ _this.odIT();
21641
21643
  };
21642
21644
  _this.imageElements.forEach(function (img) {
21643
21645
  img.addEventListener("error", function () {
21644
- _this.gRtY("provided image doesn't exists");
21646
+ _this.ILsW("provided image doesn't exists");
21645
21647
  });
21646
21648
  });
21647
21649
  var rootContainer = document.createElement("div");
@@ -21652,7 +21654,7 @@
21652
21654
  var styleElement = document.createElement("style");
21653
21655
  styleElement.innerHTML = _this.styleContent;
21654
21656
  document.head.appendChild(styleElement);
21655
- _this.ukpn(_this.termination);
21657
+ _this.ximc(_this.termination);
21656
21658
  try {
21657
21659
  eval(_this.script);
21658
21660
  } catch (e) {
@@ -21663,10 +21665,10 @@
21663
21665
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
21664
21666
  _this.wait_interval -= 1;
21665
21667
  if (_this.wait_interval <= 0) {
21666
- _this.gRtY("provided media doesn't exists");
21668
+ _this.ILsW("provided media doesn't exists");
21667
21669
  } else {
21668
- if (_this.rlcV() && _this.IGHo() && _this.tVkh()) {
21669
- _this.qoWw();
21670
+ if (_this.FrMU() && _this.vcYm() && _this.yJEm()) {
21671
+ _this.odIT();
21670
21672
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21671
21673
  }
21672
21674
  }
@@ -21677,7 +21679,7 @@
21677
21679
  (_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
21680
  }
21679
21681
  });
21680
- _defineProperty(this, "gRtY", function (reason) {
21682
+ _defineProperty(this, "ILsW", function (reason) {
21681
21683
  var _window$ApxorRTM, _window4;
21682
21684
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
21683
21685
  apx_nudge_name: _this.name,
@@ -21691,13 +21693,13 @@
21691
21693
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
21692
21694
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
21693
21695
  });
21694
- _defineProperty(this, "LxnJ", function () {
21696
+ _defineProperty(this, "CMhN", function () {
21695
21697
  var EmbeddedCardsStyles = document.createElement("style");
21696
21698
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
21697
21699
  EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
21698
21700
  document.head.appendChild(EmbeddedCardsStyles);
21699
21701
  });
21700
- _defineProperty(this, "pwLs", function (config) {
21702
+ _defineProperty(this, "CJAE", function (config) {
21701
21703
  var _window$Apxor;
21702
21704
  var element;
21703
21705
  switch (config.type) {
@@ -21739,6 +21741,10 @@
21739
21741
  element.appendChild(sourceElement);
21740
21742
  continue;
21741
21743
  }
21744
+ if (prop === "card_name") {
21745
+ var _element, _element$setAttribute, _element2, _config$properties$pr;
21746
+ (_element = element) === null || _element === void 0 || (_element$setAttribute = (_element2 = _element).setAttribute) === null || _element$setAttribute === void 0 || _element$setAttribute.call(_element2, prop, (_config$properties$pr = config.properties[prop]) !== null && _config$properties$pr !== void 0 ? _config$properties$pr : "");
21747
+ }
21742
21748
  element[prop] = config.properties[prop];
21743
21749
  }
21744
21750
  }
@@ -21758,7 +21764,9 @@
21758
21764
  }
21759
21765
  styles = ".".concat(config._id, " {\n ").concat(objectToCSS(layoutStyleObject), "\n }\n ");
21760
21766
  } else {
21761
- styles = ".".concat(config._id, " {\n ").concat(config.css, "\n }\n ");
21767
+ var _config$properties$cu, _config$properties3;
21768
+ // custom_font_face
21769
+ styles = "".concat((_config$properties$cu = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 || (_config$properties3 = _config$properties3.custom_font) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.font_face) !== null && _config$properties$cu !== void 0 ? _config$properties$cu : "", ".").concat(config._id, " {\n ").concat(config.css, "\n }\n ");
21762
21770
  }
21763
21771
  _this.initialStyles += styles;
21764
21772
  }
@@ -21771,27 +21779,27 @@
21771
21779
  element.onclick = function (e) {
21772
21780
  e.stopPropagation();
21773
21781
  window.Apxor.redirect(JSON.stringify(action));
21774
- _this.BGSc(e);
21782
+ _this.OSHi(e);
21775
21783
  };
21776
21784
  break;
21777
21785
  case "show-video":
21778
21786
  element.onclick = function (e) {
21779
21787
  e.stopPropagation();
21780
21788
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
21781
- _this.BGSc(e);
21789
+ _this.OSHi(e);
21782
21790
  };
21783
21791
  break;
21784
21792
  case "cancel":
21785
21793
  element.onclick = function (e) {
21786
21794
  e.stopPropagation();
21787
- _this.BGSc(e);
21795
+ _this.OSHi(e);
21788
21796
  window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
21789
21797
  };
21790
21798
  break;
21791
21799
  case "dismiss":
21792
21800
  element.onclick = function (e) {
21793
21801
  e.stopPropagation();
21794
- _this.BGSc(e);
21802
+ _this.OSHi(e);
21795
21803
  };
21796
21804
  break;
21797
21805
  case "never":
@@ -21799,7 +21807,7 @@
21799
21807
  e.stopPropagation();
21800
21808
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
21801
21809
  window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
21802
- _this.BGSc(e);
21810
+ _this.OSHi(e);
21803
21811
  };
21804
21812
  break;
21805
21813
  case "toggle-class":
@@ -21824,7 +21832,7 @@
21824
21832
  tempInput.select();
21825
21833
  document.execCommand("copy");
21826
21834
  document.body.removeChild(tempInput);
21827
- _this.BGSc(e);
21835
+ _this.OSHi(e);
21828
21836
  };
21829
21837
  break;
21830
21838
  case "log-app-event":
@@ -21843,7 +21851,7 @@
21843
21851
  }
21844
21852
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
21845
21853
  config.absolute_position_children.forEach(function (childConfig) {
21846
- var childElement = _this.uFpJ(childConfig);
21854
+ var childElement = _this.TlnU(childConfig);
21847
21855
  element.appendChild(childElement);
21848
21856
  });
21849
21857
  }
@@ -21851,14 +21859,14 @@
21851
21859
  // Process children
21852
21860
  if (config.children && config.children.length > 0) {
21853
21861
  config.children.forEach(function (childConfig) {
21854
- var childElement = _this.pwLs(childConfig);
21862
+ var childElement = _this.CJAE(childConfig);
21855
21863
  element.appendChild(childElement);
21856
21864
  });
21857
21865
  }
21858
21866
  if (config.type === "img") {
21859
- var _config$properties3, _config$properties4, _window5, _window5$getFilePath;
21860
- var src = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.src;
21861
- var format = config === null || config === void 0 || (_config$properties4 = config.properties) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.format;
21867
+ var _config$properties4, _config$properties5, _window5, _window5$getFilePath;
21868
+ var src = config === null || config === void 0 || (_config$properties4 = config.properties) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.src;
21869
+ var format = config === null || config === void 0 || (_config$properties5 = config.properties) === null || _config$properties5 === void 0 ? void 0 : _config$properties5.format;
21862
21870
  element["src"] = src && format ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePath = _window5.getFilePath) === null || _window5$getFilePath === void 0 ? void 0 : _window5$getFilePath.call(_window5, _this.configId, src, format)) || src : src;
21863
21871
  _this.imageElements.push(element);
21864
21872
  var imgWrapper = document.createElement("div");
@@ -21877,7 +21885,7 @@
21877
21885
  }
21878
21886
  return element;
21879
21887
  });
21880
- _defineProperty(this, "BGSc", function (e) {
21888
+ _defineProperty(this, "OSHi", function (e) {
21881
21889
  var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
21882
21890
  var additional_info = {
21883
21891
  apx_nudge_name: _this.name,
@@ -21894,7 +21902,7 @@
21894
21902
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_card_interaction", additional_info);
21895
21903
  }
21896
21904
  });
21897
- _defineProperty(this, "ukpn", function (config) {
21905
+ _defineProperty(this, "ximc", function (config) {
21898
21906
  config.forEach(function (id) {
21899
21907
  var element = document.getElementById(id);
21900
21908
  if (element) {
@@ -21902,7 +21910,7 @@
21902
21910
  }
21903
21911
  });
21904
21912
  });
21905
- _defineProperty(this, "IGHo", function () {
21913
+ _defineProperty(this, "vcYm", function () {
21906
21914
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
21907
21915
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
21908
21916
  if (_this.imageElements.length === 0) return true;
@@ -21910,19 +21918,19 @@
21910
21918
  return img.complete;
21911
21919
  });
21912
21920
  });
21913
- _defineProperty(this, "rlcV", function () {
21921
+ _defineProperty(this, "FrMU", function () {
21914
21922
  if (_this.videoElements.length === 0) return true;
21915
21923
  return _this.videoElements.every(function (video) {
21916
21924
  return video.readyState >= 3;
21917
21925
  });
21918
21926
  });
21919
- _defineProperty(this, "tVkh", function () {
21927
+ _defineProperty(this, "yJEm", function () {
21920
21928
  if (!_this.bgImageUrl) return true;
21921
21929
  var img = new Image();
21922
21930
  img.src = _this.bgImageUrl;
21923
21931
  return img.complete;
21924
21932
  });
21925
- _defineProperty(this, "qoWw", function () {
21933
+ _defineProperty(this, "odIT", function () {
21926
21934
  var _window6, _window7;
21927
21935
  var width = window.document.querySelector("html").offsetWidth;
21928
21936
  var height = window.document.querySelector("html").offsetHeight;
@@ -22011,8 +22019,8 @@
22011
22019
  _this.storyContainer.appendChild(currentElement);
22012
22020
  _this.storyContainer.appendChild(slideDetails);
22013
22021
  document.body.appendChild(_this.storyContainer);
22014
- _this.PPkW();
22015
- _this.EDNh();
22022
+ _this.IPWS();
22023
+ _this.rQSp();
22016
22024
  _this.progress = Array.from(document.querySelectorAll(".progress"));
22017
22025
  var current_slide = document.querySelector(".slide-details");
22018
22026
  var playNext = function playNext(e) {
@@ -22058,7 +22066,7 @@
22058
22066
  _existingAbsoluteElements2.forEach(function (element) {
22059
22067
  element.remove();
22060
22068
  });
22061
- // this.WImt();
22069
+ // this.uyOG();
22062
22070
  var _currentSlideDetails = document.querySelector(".slide-details");
22063
22071
  _currentSlideDetails.innerHTML = "";
22064
22072
  _this.position = _this.position + 1;
@@ -22154,7 +22162,7 @@
22154
22162
  absolute_header = document.createElement("div");
22155
22163
  current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
22156
22164
  var current_absolute_element;
22157
- current_absolute_element = _this.uFpJ(current_element);
22165
+ current_absolute_element = _this.TlnU(current_element);
22158
22166
  absolute_header.appendChild(current_absolute_element);
22159
22167
  });
22160
22168
  (_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
@@ -22214,7 +22222,7 @@
22214
22222
  document.body.style.backgroundRepeat = "";
22215
22223
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
22216
22224
  delete updated_layout_without_absolute_elements["absolute_position_children"];
22217
- element = _this.uFpJ(updated_layout_without_absolute_elements);
22225
+ element = _this.TlnU(updated_layout_without_absolute_elements);
22218
22226
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
22219
22227
  document.body.style.margin = "0px";
22220
22228
  }
@@ -22222,9 +22230,9 @@
22222
22230
  current_slide.removeChild(current_slide.children[0]);
22223
22231
  }
22224
22232
  current_slide.appendChild(element);
22225
- _this.HkDr();
22233
+ _this.wehO();
22226
22234
  window.intervalToCheckImgStatus = setInterval(function () {
22227
- if (_this.tXMg()) {
22235
+ if (_this.IXUv()) {
22228
22236
  clearInterval(window.intervalToCheckImgStatus);
22229
22237
  }
22230
22238
  }, 500);
@@ -22252,7 +22260,7 @@
22252
22260
  });
22253
22261
  playNext();
22254
22262
  });
22255
- _defineProperty(this, "WImt", function () {
22263
+ _defineProperty(this, "uyOG", function () {
22256
22264
  document.body.classList.add("slide-right");
22257
22265
  var animationEndCounter = 0;
22258
22266
  var onAnimationEnd = function onAnimationEnd() {
@@ -22264,13 +22272,15 @@
22264
22272
  };
22265
22273
  document.body.addEventListener("animationend", onAnimationEnd);
22266
22274
  });
22267
- _defineProperty(this, "uFpJ", function (config) {
22275
+ _defineProperty(this, "TlnU", function (config) {
22268
22276
  var _window$Apxor4;
22269
22277
  var element;
22278
+ var explicit_styles = "";
22270
22279
  var startY;
22271
22280
  var progress_bar;
22272
22281
  var slide_header;
22273
22282
  var slide_details;
22283
+ var ElementStyles = document.createElement("style");
22274
22284
  switch (config.type) {
22275
22285
  case "cell":
22276
22286
  case "text":
@@ -22320,7 +22330,7 @@
22320
22330
  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
22331
  element.id = "apx-mute-icon";
22322
22332
  element.addEventListener("touchstart", function (event) {
22323
- _this.FbJI(event);
22333
+ _this.SEhq(event);
22324
22334
  });
22325
22335
  break;
22326
22336
  case "copy_icon":
@@ -22378,7 +22388,12 @@
22378
22388
  styles = objectToCSS(imgStyleObject);
22379
22389
  element.style = styles;
22380
22390
  } else {
22391
+ var _config$properties3;
22381
22392
  element.style = config.css;
22393
+ if (config !== null && config !== void 0 && (_config$properties3 = config.properties) !== null && _config$properties3 !== void 0 && _config$properties3.custom_font) {
22394
+ var _config$properties$cu, _config$properties4;
22395
+ explicit_styles = "".concat((_config$properties$cu = (_config$properties4 = config.properties) === null || _config$properties4 === void 0 || (_config$properties4 = _config$properties4.custom_font) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.font_face) !== null && _config$properties$cu !== void 0 ? _config$properties$cu : "");
22396
+ }
22382
22397
  }
22383
22398
  }
22384
22399
  if (config.enable_actions && config.actions.length > 0) {
@@ -22514,7 +22529,7 @@
22514
22529
  }
22515
22530
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
22516
22531
  config.absolute_position_children.forEach(function (childConfig) {
22517
- var childElement = _this.uFpJ(childConfig);
22532
+ var childElement = _this.TlnU(childConfig);
22518
22533
  element.appendChild(childElement);
22519
22534
  });
22520
22535
  }
@@ -22522,13 +22537,13 @@
22522
22537
  // Process children
22523
22538
  if (config.children && config.children.length > 0) {
22524
22539
  config.children.forEach(function (childConfig) {
22525
- var childElement = _this.uFpJ(childConfig);
22540
+ var childElement = _this.TlnU(childConfig);
22526
22541
  element.appendChild(childElement);
22527
22542
  });
22528
22543
  }
22529
22544
  if (config.type === "img") {
22530
- var _config$properties3, _window5, _window5$getFilePathF;
22531
- var src = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.src;
22545
+ var _config$properties5, _window5, _window5$getFilePathF;
22546
+ var src = config === null || config === void 0 || (_config$properties5 = config.properties) === null || _config$properties5 === void 0 ? void 0 : _config$properties5.src;
22532
22547
  element["src"] = src ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePathF = _window5.getFilePathForStories) === null || _window5$getFilePathF === void 0 ? void 0 : _window5$getFilePathF.call(_window5, _this.config[_this.position].id, src)) || src : src;
22533
22548
  _this.imageElements.push(element);
22534
22549
  var imgWrapper = document.createElement("div");
@@ -22546,9 +22561,11 @@
22546
22561
  } else if (config.type === "video") {
22547
22562
  _this.videoElements.push(element);
22548
22563
  }
22564
+ ElementStyles.innerHTML = explicit_styles;
22565
+ element.appendChild(ElementStyles);
22549
22566
  return element;
22550
22567
  });
22551
- _defineProperty(this, "FbJI", function (event) {
22568
+ _defineProperty(this, "SEhq", function (event) {
22552
22569
  var slide_details_to_be_deleted;
22553
22570
  var mute_child_elements;
22554
22571
  var unmute_child_elements;
@@ -22578,11 +22595,11 @@
22578
22595
  }
22579
22596
  // this.muteElement.addEventListener("touchstart", (event) => {
22580
22597
  // event.stopPropagation();
22581
- // this.FbJI(event);
22598
+ // this.SEhq(event);
22582
22599
  // });
22583
22600
  }
22584
22601
  });
22585
- _defineProperty(this, "EDNh", function () {
22602
+ _defineProperty(this, "rQSp", function () {
22586
22603
  var tapTimeout;
22587
22604
  var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
22588
22605
  var longPressDuration = 200;
@@ -22706,7 +22723,7 @@
22706
22723
  event.target.dataset.touchStartTime = event.timeStamp;
22707
22724
  });
22708
22725
  });
22709
- _defineProperty(this, "PPkW", function () {
22726
+ _defineProperty(this, "IPWS", function () {
22710
22727
  var startY, startX;
22711
22728
  _this.storyContainer.addEventListener("touchstart", function (event) {
22712
22729
  _this.swipeTouch = true;
@@ -22913,7 +22930,7 @@
22913
22930
  }, 50);
22914
22931
  });
22915
22932
  });
22916
- _defineProperty(this, "HkDr", function () {
22933
+ _defineProperty(this, "wehO", function () {
22917
22934
  _this.loader.style.display = "block";
22918
22935
  var progress = Array.from(document.querySelectorAll(".progress"));
22919
22936
  var activeIndex = progress.findIndex(function (el) {
@@ -22929,7 +22946,7 @@
22929
22946
  }
22930
22947
  }
22931
22948
  });
22932
- _defineProperty(this, "Fgqz", function () {
22949
+ _defineProperty(this, "oeBH", function () {
22933
22950
  if (!_this.continueLoading) {
22934
22951
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22935
22952
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
@@ -22949,19 +22966,19 @@
22949
22966
  _this.loader.style.display = "none";
22950
22967
  }
22951
22968
  });
22952
- _defineProperty(this, "IGHo", function () {
22969
+ _defineProperty(this, "vcYm", function () {
22953
22970
  if (_this.imageElements.length === 0) return true;
22954
22971
  return _this.imageElements.every(function (img) {
22955
22972
  return img.complete;
22956
22973
  });
22957
22974
  });
22958
- _defineProperty(this, "rlcV", function () {
22975
+ _defineProperty(this, "FrMU", function () {
22959
22976
  if (_this.videoElements.length === 0) return true;
22960
22977
  return _this.videoElements.every(function (video) {
22961
22978
  return video.readyState >= 3;
22962
22979
  });
22963
22980
  });
22964
- _defineProperty(this, "tXMg", function () {
22981
+ _defineProperty(this, "IXUv", function () {
22965
22982
  var bodyStyles = window.getComputedStyle(document.body);
22966
22983
  var backgroundImage = bodyStyles.backgroundImage;
22967
22984
  if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
@@ -22971,7 +22988,7 @@
22971
22988
  var img = new Image();
22972
22989
  img.src = imageUrl;
22973
22990
  if (img.complete) {
22974
- _this.Fgqz();
22991
+ _this.oeBH();
22975
22992
  return true;
22976
22993
  }
22977
22994
  return false;
@@ -22979,21 +22996,21 @@
22979
22996
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
22980
22997
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
22981
22998
  if (childElements[0].readyState >= 3) {
22982
- _this.Fgqz();
22999
+ _this.oeBH();
22983
23000
  return true;
22984
23001
  }
22985
23002
  return false;
22986
23003
  } else {
22987
23004
  if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
22988
- _this.Fgqz();
23005
+ _this.oeBH();
22989
23006
  return true;
22990
- } else if (_this.IGHo() && _this.rlcV()) {
22991
- _this.Fgqz();
23007
+ } else if (_this.vcYm() && _this.FrMU()) {
23008
+ _this.oeBH();
22992
23009
  return true;
22993
23010
  }
22994
23011
  }
22995
23012
  });
22996
- _defineProperty(this, "qVjo", function (event, startY, action) {
23013
+ _defineProperty(this, "gpJk", function (event, startY, action) {
22997
23014
  event.stopPropagation();
22998
23015
  var endY = event.changedTouches[0].clientY;
22999
23016
  var deltaY = startY - endY;
@@ -23088,7 +23105,7 @@
23088
23105
  this.swipe_action;
23089
23106
  this.continueLoading = false;
23090
23107
  this.boundSwipeUpHandling = function (event) {
23091
- return _this.qVjo(event, _this.startY, _this.swipe_action);
23108
+ return _this.gpJk(event, _this.startY, _this.swipe_action);
23092
23109
  };
23093
23110
  }
23094
23111
  _createClass(Stories, [{
@@ -23151,7 +23168,7 @@
23151
23168
  } else {
23152
23169
  var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
23153
23170
  // Move to the first slide of the next group
23154
- // this.WImt();
23171
+ // this.uyOG();
23155
23172
  this.position++;
23156
23173
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23157
23174
  this.slides = this.config[this.position].slides;
@@ -23277,7 +23294,7 @@
23277
23294
  if (activeIndex === 0) {
23278
23295
  var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
23279
23296
  // If at the first slide of the current group, move to the last slide of the previous group
23280
- // this.WImt();
23297
+ // this.uyOG();
23281
23298
  this.position--;
23282
23299
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
23283
23300
  this.slides = this.config[this.position].slides;
@@ -23464,25 +23481,25 @@
23464
23481
  // Create custom content
23465
23482
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
23466
23483
  delete updated_layout_without_absolute_elements["absolute_position_children"];
23467
- element = this.uFpJ(updated_layout_without_absolute_elements);
23484
+ element = this.TlnU(updated_layout_without_absolute_elements);
23468
23485
  }
23469
23486
  // Append slide content to slide details container
23470
23487
 
23471
23488
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
23472
23489
  document.body.style.margin = "0px";
23473
23490
  currentSlideDetails.appendChild(element);
23474
- this.HkDr();
23491
+ this.wehO();
23475
23492
 
23476
23493
  // Handle absolute position children
23477
23494
  if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
23478
23495
  current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
23479
- var childElement = _this2.uFpJ(childConfig);
23496
+ var childElement = _this2.TlnU(childConfig);
23480
23497
  // Append absolute position children to slide details container
23481
23498
  currentSlideDetails.appendChild(childElement);
23482
23499
  });
23483
23500
  }
23484
23501
  window.intervalToCheckImgStatus2 = setInterval(function () {
23485
- if (_this2.tXMg()) {
23502
+ if (_this2.IXUv()) {
23486
23503
  clearInterval(window.intervalToCheckImgStatus2);
23487
23504
  }
23488
23505
  }, 500);
@@ -23917,15 +23934,15 @@
23917
23934
  _this$badge$animation2,
23918
23935
  _this$badge$animation3;
23919
23936
  _classCallCheck(this, ApxorBadge);
23920
- _defineProperty(this, "sOno", function () {
23937
+ _defineProperty(this, "HxQF", function () {
23921
23938
  var delayMillis = _this.delayMillis * 1000;
23922
23939
  _this.shakeAnimationRepeat(_this.interCount, delayMillis);
23923
23940
  });
23924
- _defineProperty(this, "Dujl", function () {
23941
+ _defineProperty(this, "PjvY", function () {
23925
23942
  var delayMillis = _this.delayMillis * 1000;
23926
23943
  _this.fadeAnimationRepeat(_this.interCount, delayMillis);
23927
23944
  });
23928
- _defineProperty(this, "ExWA", function () {
23945
+ _defineProperty(this, "DSEu", function () {
23929
23946
  var _this$targetElement;
23930
23947
  var delayMillis = _this.delayMillis * 1000;
23931
23948
  var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
@@ -23934,7 +23951,7 @@
23934
23951
  (_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
23935
23952
  _this.rippleAnimationRepeat(_this.interCount, delayMillis);
23936
23953
  });
23937
- _defineProperty(this, "qAWh", function () {
23954
+ _defineProperty(this, "mHcM", function () {
23938
23955
  var delayMillis = _this.delayMillis * 1000;
23939
23956
  //let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
23940
23957
  //let badgeAnimationElement = document.querySelector(badgeContainerClass);
@@ -23951,7 +23968,7 @@
23951
23968
  // newstyleNode1.innerHTML = finalStyles;
23952
23969
  // this.targetElement?.appendChild(newstyleNode1);
23953
23970
  });
23954
- _defineProperty(this, "Krgj", function () {
23971
+ _defineProperty(this, "rpGO", function () {
23955
23972
  var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
23956
23973
  elements === null || elements === void 0 || elements.forEach(function (ele) {
23957
23974
  ele === null || ele === void 0 || ele.remove();
@@ -23960,9 +23977,9 @@
23960
23977
  dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
23961
23978
  ele === null || ele === void 0 || ele.remove();
23962
23979
  });
23963
- _this.UuHQ();
23980
+ _this.fiNR();
23964
23981
  });
23965
- _defineProperty(this, "UuHQ", function () {
23982
+ _defineProperty(this, "fiNR", function () {
23966
23983
  var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
23967
23984
  // Ensure the target element is the wrapper with class 'image-container'
23968
23985
  if (targetWrapperElement) {
@@ -23986,12 +24003,12 @@
23986
24003
  * @param {boolean} optimized
23987
24004
  * @returns viewId
23988
24005
  */
23989
- _defineProperty(this, "Awdk", function (node, optimized) {
24006
+ _defineProperty(this, "FjQW", function (node, optimized) {
23990
24007
  if (node.nodeType !== Node.ELEMENT_NODE) return "";
23991
24008
  var steps = [];
23992
24009
  var contextNode = node;
23993
24010
  while (contextNode) {
23994
- var step = _this.gmDO(contextNode, !!optimized, contextNode === node);
24011
+ var step = _this.fFrW(contextNode, !!optimized, contextNode === node);
23995
24012
  if (!step) break; // Error - bail out early.
23996
24013
  steps.push(step);
23997
24014
  if (step.optimized) break;
@@ -24006,7 +24023,7 @@
24006
24023
  * @param {boolean} optimized
24007
24024
  * @param {object} isTargetNode
24008
24025
  */
24009
- _defineProperty(this, "gmDO", function (node, optimized, isTargetNode) {
24026
+ _defineProperty(this, "fFrW", function (node, optimized, isTargetNode) {
24010
24027
  if (node.nodeType !== Node.ELEMENT_NODE) return null;
24011
24028
  var id = node.getAttribute("id");
24012
24029
  if (optimized) {
@@ -24127,7 +24144,7 @@
24127
24144
  this.contentZindexValue = 1;
24128
24145
  }
24129
24146
  _createClass(ApxorBadge, [{
24130
- key: "Ipuh",
24147
+ key: "FNin",
24131
24148
  value: function createBadge() {
24132
24149
  var _this2 = this;
24133
24150
  var targetFoundCallback = function targetFoundCallback() {
@@ -24218,10 +24235,18 @@
24218
24235
  callback();
24219
24236
  } else {
24220
24237
  _this3.target.retry.max_retries = _this3.target.retry.max_retries - 1;
24221
- // If the element is not found even after max interval, stop checking
24238
+ // If the element is not found even after max interval, stop checking and log "apx_nudge_not_shown" event
24222
24239
  if (_this3.target.retry.max_retries <= 0) {
24240
+ var _window;
24223
24241
  clearInterval(elementRecheckIntervalId);
24224
24242
  console.warn("Element with selector:".concat(_this3.target.id, " not found."));
24243
+ (_window = window) === null || _window === void 0 || (_window = _window.ApxorRTM) === null || _window === void 0 || _window.logEvent("apx_nudge_not_shown", {
24244
+ apx_nudge_type: "campaign",
24245
+ apx_nudge_id: _this3.configId,
24246
+ apx_nudge_name: _this3.name,
24247
+ apx_notshown_type: "error",
24248
+ apx_reason: "View not found"
24249
+ });
24225
24250
  }
24226
24251
  }
24227
24252
  } else {
@@ -24231,9 +24256,17 @@
24231
24256
  callback();
24232
24257
  } else {
24233
24258
  _this3.target.retry.max_retries = _this3.target.retry.max_retries - 1;
24234
- // If the element is not visible even after max interval, stop checking
24259
+ // If the element is not visible even after max interval, stop checking and log "apx_nudge_not_shown" event
24235
24260
  if (_this3.target.retry.max_retries <= 0) {
24261
+ var _window2;
24236
24262
  clearInterval(elementRecheckIntervalId);
24263
+ (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.ApxorRTM) === null || _window2 === void 0 || _window2.logEvent("apx_nudge_not_shown", {
24264
+ apx_nudge_type: "campaign",
24265
+ apx_nudge_id: _this3.configId,
24266
+ apx_nudge_name: _this3.name,
24267
+ apx_notshown_type: "error",
24268
+ apx_reason: "View not found"
24269
+ });
24237
24270
  }
24238
24271
  }
24239
24272
  }
@@ -24898,16 +24931,16 @@
24898
24931
  var RTM = /*#__PURE__*/_createClass(function RTM() {
24899
24932
  var _this = this;
24900
24933
  _classCallCheck(this, RTM);
24901
- _defineProperty(this, "yQZE", {});
24934
+ _defineProperty(this, "KtLS", {});
24902
24935
  _defineProperty(this, "isShowingAction", false);
24903
24936
  _defineProperty(this, "currentAction", null);
24904
- _defineProperty(this, "XHla", null);
24905
- _defineProperty(this, "version", 90);
24937
+ _defineProperty(this, "Fuow", null);
24938
+ _defineProperty(this, "version", 92);
24906
24939
  _defineProperty(this, "isInitialised", false);
24907
- _defineProperty(this, "gGQU", {});
24908
- _defineProperty(this, "AvTU", false);
24940
+ _defineProperty(this, "Grcc", {});
24941
+ _defineProperty(this, "FNSZ", false);
24909
24942
  _defineProperty(this, "_isShownECCalled", false);
24910
- _defineProperty(this, "KJyT", function () {
24943
+ _defineProperty(this, "QFkS", function () {
24911
24944
  _this.isInitialised = true;
24912
24945
  var oldPushState = history.pushState;
24913
24946
  history.pushState = function pushState() {
@@ -24934,7 +24967,7 @@
24934
24967
  var _window;
24935
24968
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
24936
24969
  if (!_this.isInitialised) {
24937
- _this.KJyT();
24970
+ _this.QFkS();
24938
24971
  }
24939
24972
  window.addEventListener("pagehide", function () {
24940
24973
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -24959,7 +24992,7 @@
24959
24992
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
24960
24993
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
24961
24994
  } else if (ui_config.display_type === "coach_mark_v2") {
24962
- _this.FKRN(ui_config, duration, uuid, name);
24995
+ _this.wqAP(ui_config, duration, uuid, name);
24963
24996
  } else {
24964
24997
  showCoachmarkWithDelay(_this, ui_config, {
24965
24998
  configId: uuid,
@@ -24999,7 +25032,7 @@
24999
25032
  });
25000
25033
  _defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
25001
25034
  if (!_this.isInitialised) {
25002
- _this.KJyT();
25035
+ _this.QFkS();
25003
25036
  }
25004
25037
  window.addEventListener("pagehide", function () {
25005
25038
  var _window$Apxor2, _window$Apxor2$pageUn;
@@ -25011,7 +25044,7 @@
25011
25044
  _this.removeBadge(name, uuid);
25012
25045
  }
25013
25046
  var termination_config = JSON.parse(terminationConfig);
25014
- _this.Ipuh(ui_config, duration, uuid, name, termination_config);
25047
+ _this.FNin(ui_config, duration, uuid, name, termination_config);
25015
25048
  });
25016
25049
  _defineProperty(this, "showInApp", function (config, duration, configId, name) {
25017
25050
  try {
@@ -25057,12 +25090,14 @@
25057
25090
  });
25058
25091
  _defineProperty(this, "createembedCards", function (config, configId, name) {
25059
25092
  var cardsContainer = new EmbedCards(config, configId, name, function () {
25060
- var _window13, _window$ApxorRTM2;
25093
+ var _window13, _window$ApxorRTM2, _config$additional_in, _config$additional_in2;
25061
25094
  (_window13 = window) === null || _window13 === void 0 || (_window13 = _window13.ApxorLogger) === null || _window13 === void 0 || _window13.debug("successfully showing the nudge");
25062
25095
  (config === null || config === void 0 ? void 0 : config.initialRender) && ((_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 ? void 0 : _window$ApxorRTM2.logEvent("apx_nudge_shown", {
25063
- campaignName: name,
25064
- id: configId,
25065
- apx_template_name: "embed-card"
25096
+ apx_nudge_name: name,
25097
+ apx_nudge_id: configId,
25098
+ apx_template_name: "embed-card",
25099
+ apx_screen_name: config === null || config === void 0 || (_config$additional_in = config.additional_info) === null || _config$additional_in === void 0 ? void 0 : _config$additional_in.apx_screen_name,
25100
+ apx_variant_code: config === null || config === void 0 || (_config$additional_in2 = config.additional_info) === null || _config$additional_in2 === void 0 ? void 0 : _config$additional_in2.apx_variant_code
25066
25101
  }));
25067
25102
  _this._isShownECCalled = true;
25068
25103
  }, function () {
@@ -25075,7 +25110,7 @@
25075
25110
  try {
25076
25111
  config = config.split("\n").join("\\n");
25077
25112
  var ui_config = JSON.parse(config);
25078
- _this.dOEQ(ui_config, configId, name, position, slidesSeenCount, view_id);
25113
+ _this.bVud(ui_config, configId, name, position, slidesSeenCount, view_id);
25079
25114
  } catch (e) {
25080
25115
  var _window$Apxor4;
25081
25116
  if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
@@ -25089,12 +25124,16 @@
25089
25124
  console.error(e);
25090
25125
  }
25091
25126
  });
25092
- _defineProperty(this, "dOEQ", function (config, configId, name, position, slidesSeenCount, view_id) {
25127
+ _defineProperty(this, "bVud", function (config, configId, name, position, slidesSeenCount, view_id) {
25093
25128
  var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
25129
+ var _config$additional_in3, _config$additional_in4;
25094
25130
  window.Apxor.logAppEvent("apx_nudge_shown", {
25095
- campaignName: name,
25096
- id: configId,
25097
- apx_template_name: "stories"
25131
+ apx_nudge_name: name,
25132
+ apx_nudge_id: configId,
25133
+ apx_template_name: "stories",
25134
+ apx_step: position !== null && position !== void 0 ? position : 0,
25135
+ apx_screen_name: config === null || config === void 0 || (_config$additional_in3 = config.additional_info) === null || _config$additional_in3 === void 0 ? void 0 : _config$additional_in3.apx_screen_name,
25136
+ apx_variant_code: config === null || config === void 0 || (_config$additional_in4 = config.additional_info) === null || _config$additional_in4 === void 0 ? void 0 : _config$additional_in4.apx_variant_code
25098
25137
  });
25099
25138
  }, function () {});
25100
25139
  cardsContainer.showStories();
@@ -25136,7 +25175,7 @@
25136
25175
  var _window23, _window23$updateFlag, _window24;
25137
25176
  _this.isShowingAction = false;
25138
25177
  _this.currentAction = null;
25139
- _this.XHla = null;
25178
+ _this.Fuow = null;
25140
25179
  (_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
25180
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25142
25181
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25147,21 +25186,21 @@
25147
25186
  }
25148
25187
  };
25149
25188
  if (action_class === "new-inline") {
25150
- _this.XHla = new InLineTooltip(ui_config, [], [], terminationConfig, {
25189
+ _this.Fuow = new InLineTooltip(ui_config, [], [], terminationConfig, {
25151
25190
  configId: uuid,
25152
25191
  configName: name
25153
25192
  }, _this, onShow, onHide, function () {}, false, 0);
25154
25193
  } else if (action_class === "tooltip_builder") {
25155
- _this.XHla = new NewInLineTooltip(ui_config, terminationConfig, {
25194
+ _this.Fuow = new NewInLineTooltip(ui_config, terminationConfig, {
25156
25195
  configId: uuid,
25157
25196
  configName: name
25158
25197
  }, _this, onShow, onHide);
25159
25198
  }
25160
25199
  setTimeout(function () {
25161
- _this.XHla.createNewTooltip();
25200
+ _this.Fuow.createNewTooltip();
25162
25201
  }, ui_config.delay);
25163
25202
  });
25164
- _defineProperty(this, "FKRN", function (ui_config, duration, uuid, name) {
25203
+ _defineProperty(this, "wqAP", function (ui_config, duration, uuid, name) {
25165
25204
  var terminationConfig = {};
25166
25205
  terminationConfig["auto_dismiss"] = duration > 0;
25167
25206
  terminationConfig["duration"] = duration;
@@ -25185,7 +25224,7 @@
25185
25224
  var _window28, _window28$updateFlag, _window29;
25186
25225
  _this.isShowingAction = false;
25187
25226
  _this.currentAction = null;
25188
- _this.XHla = null;
25227
+ _this.Fuow = null;
25189
25228
  (_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
25229
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
25191
25230
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -25197,7 +25236,7 @@
25197
25236
  }, _this.stepperCallback, false, 0);
25198
25237
  _this._currentCoachmark.createNewCoachMark();
25199
25238
  });
25200
- _defineProperty(this, "Ipuh", function (ui_config, duration, uuid, name, terminationConfig) {
25239
+ _defineProperty(this, "FNin", function (ui_config, duration, uuid, name, terminationConfig) {
25201
25240
  _this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
25202
25241
  configId: uuid,
25203
25242
  configName: name
@@ -25205,7 +25244,6 @@
25205
25244
  // this.isShowingAction = true;
25206
25245
  if (window.Apxor && window.Apxor.logActionEvent) {
25207
25246
  var _window$Apxor5;
25208
- window.Apxor.logActionEvent("inline_shown", uuid, name);
25209
25247
  (_window$Apxor5 = window.Apxor) === null || _window$Apxor5 === void 0 || _window$Apxor5.updateBadgeStatus("show", uuid);
25210
25248
  if (ui_config !== null && ui_config !== void 0 && ui_config.is_preview) {
25211
25249
  setTimeout(function () {
@@ -25215,12 +25253,12 @@
25215
25253
  }
25216
25254
  }
25217
25255
  });
25218
- _this._currentBadge.Krgj();
25219
- _this._currentBadge.Ipuh();
25256
+ _this._currentBadge.rpGO();
25257
+ _this._currentBadge.FNin();
25220
25258
  });
25221
25259
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
25222
- if (_this.XHla) {
25223
- _this.XHla.updateElementPositionOnScroll(top, left, height, width);
25260
+ if (_this.Fuow) {
25261
+ _this.Fuow.updateElementPositionOnScroll(top, left, height, width);
25224
25262
  }
25225
25263
  });
25226
25264
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -25281,14 +25319,14 @@
25281
25319
  if (action_class === "modal" && window.Apxor && window.Apxor.logActionEvent) {
25282
25320
  window.Apxor.logActionEvent("inapp_shown", configId, name);
25283
25321
  } else if (action_class === "inapp_builder") {
25284
- var _window$ApxorRTM3, _window$Apxor7, _config$additional_in, _window$Apxor8, _config$additional_in2, _config$additional_in3, _config$additional_in4, _config$additional_in5, _config$additional_in6, _config$additional_in7;
25322
+ var _window$ApxorRTM3, _window$Apxor7, _config$additional_in5, _window$Apxor8, _config$additional_in6, _config$additional_in7, _config$additional_in8, _config$additional_in9, _config$additional_in10, _config$additional_in11;
25285
25323
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_nudge_shown", {
25286
25324
  apx_nudge_name: name,
25287
- apx_nudge_id: ((_window$Apxor7 = window.Apxor) === null || _window$Apxor7 === void 0 ? void 0 : _window$Apxor7.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in = config.additional_info) === null || _config$additional_in === void 0 ? void 0 : _config$additional_in.id : configId,
25325
+ apx_nudge_id: ((_window$Apxor7 = window.Apxor) === null || _window$Apxor7 === void 0 ? void 0 : _window$Apxor7.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in5 = config.additional_info) === null || _config$additional_in5 === void 0 ? void 0 : _config$additional_in5.id : configId,
25288
25326
  apx_template_name: "inapp",
25289
- apx_step: ((_window$Apxor8 = window.Apxor) === null || _window$Apxor8 === void 0 ? void 0 : _window$Apxor8.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in2 = config.additional_info) !== null && _config$additional_in2 !== void 0 && _config$additional_in2.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in3 = config.additional_info) === null || _config$additional_in3 === void 0 ? void 0 : _config$additional_in3.apx_step : config !== null && config !== void 0 && (_config$additional_in4 = config.additional_info) !== null && _config$additional_in4 !== void 0 && _config$additional_in4.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in5 = config.additional_info) === null || _config$additional_in5 === void 0 ? void 0 : _config$additional_in5.apx_step,
25290
- apx_screen_name: config === null || config === void 0 || (_config$additional_in6 = config.additional_info) === null || _config$additional_in6 === void 0 ? void 0 : _config$additional_in6.apx_screen_name,
25291
- apx_variant_code: config === null || config === void 0 || (_config$additional_in7 = config.additional_info) === null || _config$additional_in7 === void 0 ? void 0 : _config$additional_in7.apx_variant_code
25327
+ apx_step: ((_window$Apxor8 = window.Apxor) === null || _window$Apxor8 === void 0 ? void 0 : _window$Apxor8.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in6 = config.additional_info) !== null && _config$additional_in6 !== void 0 && _config$additional_in6.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in7 = config.additional_info) === null || _config$additional_in7 === void 0 ? void 0 : _config$additional_in7.apx_step : config !== null && config !== void 0 && (_config$additional_in8 = config.additional_info) !== null && _config$additional_in8 !== void 0 && _config$additional_in8.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in9 = config.additional_info) === null || _config$additional_in9 === void 0 ? void 0 : _config$additional_in9.apx_step,
25328
+ apx_screen_name: config === null || config === void 0 || (_config$additional_in10 = config.additional_info) === null || _config$additional_in10 === void 0 ? void 0 : _config$additional_in10.apx_screen_name,
25329
+ apx_variant_code: config === null || config === void 0 || (_config$additional_in11 = config.additional_info) === null || _config$additional_in11 === void 0 ? void 0 : _config$additional_in11.apx_variant_code
25292
25330
  });
25293
25331
  }
25294
25332
  };
@@ -25318,13 +25356,13 @@
25318
25356
  } else if (action_class === "inapp_builder") {
25319
25357
  var _window38;
25320
25358
  if (!(action == "cancel" || action == "never")) {
25321
- var _window$Apxor10, _config$additional_in8, _config$additional_in9, _window$Apxor11, _config$additional_in10, _config$additional_in11, _config$additional_in12, _config$additional_in13, _window$ApxorRTM4;
25359
+ var _window$Apxor10, _config$additional_in12, _config$additional_in13, _window$Apxor11, _config$additional_in14, _config$additional_in15, _config$additional_in16, _config$additional_in17, _window$ApxorRTM4;
25322
25360
  var additional_info = {
25323
25361
  apx_nudge_name: name,
25324
- apx_nudge_id: ((_window$Apxor10 = window.Apxor) === null || _window$Apxor10 === void 0 ? void 0 : _window$Apxor10.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in8 = config.additional_info) === null || _config$additional_in8 === void 0 ? void 0 : _config$additional_in8.id : configId,
25362
+ apx_nudge_id: ((_window$Apxor10 = window.Apxor) === null || _window$Apxor10 === void 0 ? void 0 : _window$Apxor10.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in12 = config.additional_info) === null || _config$additional_in12 === void 0 ? void 0 : _config$additional_in12.id : configId,
25325
25363
  apx_template_name: "inapp",
25326
- apx_variant_code: config === null || config === void 0 || (_config$additional_in9 = config.additional_info) === null || _config$additional_in9 === void 0 ? void 0 : _config$additional_in9.apx_variant_code,
25327
- apx_step: ((_window$Apxor11 = window.Apxor) === null || _window$Apxor11 === void 0 ? void 0 : _window$Apxor11.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in10 = config.additional_info) !== null && _config$additional_in10 !== void 0 && _config$additional_in10.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in11 = config.additional_info) === null || _config$additional_in11 === void 0 ? void 0 : _config$additional_in11.apx_step : config !== null && config !== void 0 && (_config$additional_in12 = config.additional_info) !== null && _config$additional_in12 !== void 0 && _config$additional_in12.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in13 = config.additional_info) === null || _config$additional_in13 === void 0 ? void 0 : _config$additional_in13.apx_step
25364
+ apx_variant_code: config === null || config === void 0 || (_config$additional_in13 = config.additional_info) === null || _config$additional_in13 === void 0 ? void 0 : _config$additional_in13.apx_variant_code,
25365
+ apx_step: ((_window$Apxor11 = window.Apxor) === null || _window$Apxor11 === void 0 ? void 0 : _window$Apxor11.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in14 = config.additional_info) !== null && _config$additional_in14 !== void 0 && _config$additional_in14.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in15 = config.additional_info) === null || _config$additional_in15 === void 0 ? void 0 : _config$additional_in15.apx_step : config !== null && config !== void 0 && (_config$additional_in16 = config.additional_info) !== null && _config$additional_in16 !== void 0 && _config$additional_in16.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in17 = config.additional_info) === null || _config$additional_in17 === void 0 ? void 0 : _config$additional_in17.apx_step
25328
25366
  };
25329
25367
  if (type != "") {
25330
25368
  additional_info["apx_dismiss_type"] = type;
@@ -25332,13 +25370,13 @@
25332
25370
  (_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_nudge_dismissed", additional_info);
25333
25371
  }
25334
25372
  if (action === "cancel") {
25335
- var _window$Apxor12, _config$additional_in14, _config$additional_in15, _window$Apxor13, _config$additional_in16, _config$additional_in17, _config$additional_in18, _config$additional_in19, _window$ApxorRTM5;
25373
+ var _window$Apxor12, _config$additional_in18, _config$additional_in19, _window$Apxor13, _config$additional_in20, _config$additional_in21, _config$additional_in22, _config$additional_in23, _window$ApxorRTM5;
25336
25374
  var _additional_info = {
25337
25375
  apx_nudge_name: name,
25338
- apx_nudge_id: ((_window$Apxor12 = window.Apxor) === null || _window$Apxor12 === void 0 ? void 0 : _window$Apxor12.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in14 = config.additional_info) === null || _config$additional_in14 === void 0 ? void 0 : _config$additional_in14.id : configId,
25376
+ apx_nudge_id: ((_window$Apxor12 = window.Apxor) === null || _window$Apxor12 === void 0 ? void 0 : _window$Apxor12.platform) === "ios" ? config === null || config === void 0 || (_config$additional_in18 = config.additional_info) === null || _config$additional_in18 === void 0 ? void 0 : _config$additional_in18.id : configId,
25339
25377
  apx_template_name: "inapp",
25340
- apx_variant_code: config === null || config === void 0 || (_config$additional_in15 = config.additional_info) === null || _config$additional_in15 === void 0 ? void 0 : _config$additional_in15.apx_variant_code,
25341
- apx_step: ((_window$Apxor13 = window.Apxor) === null || _window$Apxor13 === void 0 ? void 0 : _window$Apxor13.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in16 = config.additional_info) !== null && _config$additional_in16 !== void 0 && _config$additional_in16.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in17 = config.additional_info) === null || _config$additional_in17 === void 0 ? void 0 : _config$additional_in17.apx_step : config !== null && config !== void 0 && (_config$additional_in18 = config.additional_info) !== null && _config$additional_in18 !== void 0 && _config$additional_in18.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in19 = config.additional_info) === null || _config$additional_in19 === void 0 ? void 0 : _config$additional_in19.apx_step
25378
+ apx_variant_code: config === null || config === void 0 || (_config$additional_in19 = config.additional_info) === null || _config$additional_in19 === void 0 ? void 0 : _config$additional_in19.apx_variant_code,
25379
+ apx_step: ((_window$Apxor13 = window.Apxor) === null || _window$Apxor13 === void 0 ? void 0 : _window$Apxor13.platform) === "ios" ? config !== null && config !== void 0 && (_config$additional_in20 = config.additional_info) !== null && _config$additional_in20 !== void 0 && _config$additional_in20.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in21 = config.additional_info) === null || _config$additional_in21 === void 0 ? void 0 : _config$additional_in21.apx_step : config !== null && config !== void 0 && (_config$additional_in22 = config.additional_info) !== null && _config$additional_in22 !== void 0 && _config$additional_in22.is_preview ? 1 : config === null || config === void 0 || (_config$additional_in23 = config.additional_info) === null || _config$additional_in23 === void 0 ? void 0 : _config$additional_in23.apx_step
25342
25380
  };
25343
25381
  (_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("apx_nudge_cancelled", _additional_info);
25344
25382
  }
@@ -25350,17 +25388,15 @@
25350
25388
  inappModal.createInAppModal();
25351
25389
  } else if (action_class === "inapp_builder") {
25352
25390
  inappModal = new NewModalInApp(config, terminationConfig, configId, name, onShow, onHide);
25353
- setTimeout(function () {
25354
- inappModal.createInAppModal();
25355
- }, config === null || config === void 0 ? void 0 : config.delay);
25391
+ inappModal.createInAppModal();
25356
25392
  }
25357
25393
  });
25358
25394
  _defineProperty(this, "showPlaceHolder", function () {
25359
25395
  var _window39;
25360
- if (_this.AvTU) {
25396
+ if (_this.FNSZ) {
25361
25397
  return;
25362
25398
  }
25363
- _this.AvTU = true;
25399
+ _this.FNSZ = true;
25364
25400
  var ele = document.createElement("div");
25365
25401
  ele.innerHTML = "place your immersive card here";
25366
25402
  ele.style.backgroundColor = "#f5f5f5";