apxor-rtm-ui 0.9.9 → 0.9.12

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.
@@ -7285,7 +7285,7 @@
7285
7285
  var justifyContent = "space-between";
7286
7286
  var fontMultiplier = buttons_css.fontMultiplier;
7287
7287
  buttons_css.forEach(function (button_css, index) {
7288
- var _ref2;
7288
+ var _ref;
7289
7289
  var slot = button_css.slot,
7290
7290
  type = button_css.type,
7291
7291
  sub_type = button_css.sub_type,
@@ -7336,7 +7336,7 @@
7336
7336
  }
7337
7337
  var marginLeft = false;
7338
7338
  var marginRight = false;
7339
- if ((_ref2 = button_direction !== "vertical") !== null && _ref2 !== void 0 ? _ref2 : position !== BUTTON_CONTAINER_POSITION.BOTTOM) {
7339
+ if ((_ref = button_direction !== "vertical") !== null && _ref !== void 0 ? _ref : position !== BUTTON_CONTAINER_POSITION.BOTTOM) {
7340
7340
  var _buttons_css;
7341
7341
  var next = ((_buttons_css = buttons_css[index + 1]) === null || _buttons_css === void 0 ? void 0 : _buttons_css.slot) || totalSlots + 1;
7342
7342
  if (buttons_css.length === 2 && (slot === 2 && next === 3 || slot === 4 && prev === 3 || slot === 3 && (prev === 2 || next === 4))) {
@@ -7429,7 +7429,7 @@
7429
7429
  break;
7430
7430
  case "copy_clipboard":
7431
7431
  action = /*#__PURE__*/function () {
7432
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7432
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7433
7433
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7434
7434
  while (1) switch (_context.prev = _context.next) {
7435
7435
  case 0:
@@ -7455,7 +7455,7 @@
7455
7455
  }, _callee, null, [[1, 9]]);
7456
7456
  }));
7457
7457
  return function action() {
7458
- return _ref3.apply(this, arguments);
7458
+ return _ref2.apply(this, arguments);
7459
7459
  };
7460
7460
  }();
7461
7461
  break;
@@ -7573,7 +7573,6 @@
7573
7573
  return a.slot - b.slot;
7574
7574
  });
7575
7575
  buttons_config.forEach(function (button_config) {
7576
- var _button_config$action;
7577
7576
  // let _action = "end";
7578
7577
  // let url = "";
7579
7578
  // let isExternal = "";
@@ -7589,7 +7588,7 @@
7589
7588
  // callbackFunction = action.callback ?? (() => {});
7590
7589
  // }
7591
7590
 
7592
- var action_config = (_button_config$action = button_config === null || button_config === void 0 ? void 0 : button_config.action_config) !== null && _button_config$action !== void 0 ? _button_config$action : {};
7591
+ var action_config = (button_config === null || button_config === void 0 ? void 0 : button_config.action) || {};
7593
7592
  var _action = action_config === null || action_config === void 0 ? void 0 : action_config.action;
7594
7593
  var events = (action_config === null || action_config === void 0 ? void 0 : action_config.events) || [];
7595
7594
  var user_properties = (action_config === null || action_config === void 0 ? void 0 : action_config.user_props) || [];
@@ -7629,8 +7628,8 @@
7629
7628
  case "done":
7630
7629
  case "dismiss":
7631
7630
  action = function action() {
7632
- ActionHandler.complete(false, "dismiss");
7633
7631
  window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7632
+ ActionHandler.complete(false, _action);
7634
7633
  if (step != -1) {
7635
7634
  var _window;
7636
7635
  (_window = window) === null || _window === void 0 || (_window = _window.Apxor) === null || _window === void 0 || _window.triggerNextStep(uuid, step + 1);
@@ -7639,20 +7638,20 @@
7639
7638
  break;
7640
7639
  case "next":
7641
7640
  action = function action() {
7641
+ window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7642
7642
  ActionHandler.complete(false, "next");
7643
7643
  if (isWalkthrough && ind + 1 < uis.length) {
7644
7644
  ActionHandler.next(uuid, ind + 1);
7645
7645
  }
7646
- window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7647
7646
  };
7648
7647
  break;
7649
7648
  case "prev":
7650
7649
  action = function action() {
7650
+ window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7651
7651
  ActionHandler.complete(false, "prev");
7652
7652
  if (isWalkthrough && ind - 1 >= 0) {
7653
7653
  ActionHandler.prev(uuid, ind - 1);
7654
7654
  }
7655
- window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7656
7655
  };
7657
7656
  break;
7658
7657
  case "redirect":
@@ -7669,8 +7668,8 @@
7669
7668
  (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || _window2.triggerNextStep(uuid, step + 1);
7670
7669
  }
7671
7670
  } else {
7672
- ActionHandler.complete(true, "redirect");
7673
7671
  window.Apxor.redirectTo("IN_APP", uuid, name, text, JSON.stringify(action_config));
7672
+ ActionHandler.complete(true, "redirect");
7674
7673
  if (step != -1) {
7675
7674
  var _window3;
7676
7675
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.Apxor) === null || _window3 === void 0 || _window3.triggerNextStep(uuid, step + 1);
@@ -7686,7 +7685,7 @@
7686
7685
  break;
7687
7686
  case "copy_clipboard":
7688
7687
  action = /*#__PURE__*/function () {
7689
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
7688
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
7690
7689
  var _window$Apxor5, _window$Apxor6;
7691
7690
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7692
7691
  while (1) switch (_context2.prev = _context2.next) {
@@ -7713,15 +7712,15 @@
7713
7712
  }, _callee2, null, [[1, 9]]);
7714
7713
  }));
7715
7714
  return function action() {
7716
- return _ref4.apply(this, arguments);
7715
+ return _ref3.apply(this, arguments);
7717
7716
  };
7718
7717
  }();
7719
7718
  break;
7720
7719
  case "cancel":
7721
7720
  action = function action() {
7722
- ActionHandler.cancel(true, "cancel");
7723
7721
  ActionHandler._isCancelled = true;
7724
7722
  window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
7723
+ ActionHandler.cancel(true, "cancel");
7725
7724
  window.Apxor.logActionEvent("walk_through_cancelled", uuid, name);
7726
7725
  };
7727
7726
  break;
@@ -8054,10 +8053,10 @@
8054
8053
  }
8055
8054
  function objectToCSS(styleObject) {
8056
8055
  var cssString = "";
8057
- Object.entries(styleObject).forEach(function (_ref5) {
8058
- var _ref6 = _slicedToArray(_ref5, 2),
8059
- property = _ref6[0],
8060
- value = _ref6[1];
8056
+ Object.entries(styleObject).forEach(function (_ref4) {
8057
+ var _ref5 = _slicedToArray(_ref4, 2),
8058
+ property = _ref5[0],
8059
+ value = _ref5[1];
8061
8060
  cssString += "".concat(property, ": ").concat(value, ";");
8062
8061
  });
8063
8062
  return cssString;
@@ -8256,17 +8255,17 @@
8256
8255
  var buttons_array = [];
8257
8256
  var buttons_css = [];
8258
8257
  buttons_config.forEach(function (button_config, index) {
8259
- var _button_config$action2, _button_config$action3, _button_config$action4, _button_config$action5, _button_config$action6, _button_config$action7, _button_config$action8, _button_config$action9, _button_config$action10, _button_config$action11, _button_config$action12, _button_config$action13, _button_config$action14, _button_config$action15, _button_config$action16, _button_config$action17;
8260
- var _action = (_button_config$action2 = button_config === null || button_config === void 0 || (_button_config$action3 = button_config.action_config) === null || _button_config$action3 === void 0 ? void 0 : _button_config$action3.action) !== null && _button_config$action2 !== void 0 ? _button_config$action2 : "end";
8261
- var vMap = (_button_config$action4 = button_config === null || button_config === void 0 || (_button_config$action5 = button_config.action_config) === null || _button_config$action5 === void 0 ? void 0 : _button_config$action5.vmap) !== null && _button_config$action4 !== void 0 ? _button_config$action4 : {};
8262
- var url = (_button_config$action6 = button_config === null || button_config === void 0 || (_button_config$action7 = button_config.action_config) === null || _button_config$action7 === void 0 ? void 0 : _button_config$action7.url) !== null && _button_config$action6 !== void 0 ? _button_config$action6 : "";
8263
- var events = (button_config === null || button_config === void 0 || (_button_config$action8 = button_config.action_config) === null || _button_config$action8 === void 0 ? void 0 : _button_config$action8.events) || [];
8264
- var user_properties = (button_config === null || button_config === void 0 || (_button_config$action9 = button_config.action_config) === null || _button_config$action9 === void 0 ? void 0 : _button_config$action9.user_props) || [];
8265
- var session_properties = (button_config === null || button_config === void 0 || (_button_config$action10 = button_config.action_config) === null || _button_config$action10 === void 0 ? void 0 : _button_config$action10.session_props) || [];
8266
- var copy_content = (button_config === null || button_config === void 0 || (_button_config$action11 = button_config.action_config) === null || _button_config$action11 === void 0 ? void 0 : _button_config$action11.copy_content) || "";
8267
- var isExternal = (_button_config$action12 = button_config === null || button_config === void 0 || (_button_config$action13 = button_config.action_config) === null || _button_config$action13 === void 0 ? void 0 : _button_config$action13.is_external) !== null && _button_config$action12 !== void 0 ? _button_config$action12 : true;
8268
- var redirectWithin = (_button_config$action14 = button_config === null || button_config === void 0 || (_button_config$action15 = button_config.action_config) === null || _button_config$action15 === void 0 ? void 0 : _button_config$action15.is_within) !== null && _button_config$action14 !== void 0 ? _button_config$action14 : false;
8269
- var callbackFunction = (_button_config$action16 = button_config === null || button_config === void 0 || (_button_config$action17 = button_config.action_config) === null || _button_config$action17 === void 0 ? void 0 : _button_config$action17.callback_func) !== null && _button_config$action16 !== void 0 ? _button_config$action16 : "";
8258
+ var _button_config$action, _button_config$action2, _button_config$action3, _button_config$action4, _button_config$action5, _button_config$action6, _button_config$action7, _button_config$action8, _button_config$action9, _button_config$action10, _button_config$action11, _button_config$action12, _button_config$action13, _button_config$action14, _button_config$action15, _button_config$action16;
8259
+ var _action = (_button_config$action = button_config === null || button_config === void 0 || (_button_config$action2 = button_config.action_config) === null || _button_config$action2 === void 0 ? void 0 : _button_config$action2.action) !== null && _button_config$action !== void 0 ? _button_config$action : "end";
8260
+ var vMap = (_button_config$action3 = button_config === null || button_config === void 0 || (_button_config$action4 = button_config.action_config) === null || _button_config$action4 === void 0 ? void 0 : _button_config$action4.vmap) !== null && _button_config$action3 !== void 0 ? _button_config$action3 : {};
8261
+ var url = (_button_config$action5 = button_config === null || button_config === void 0 || (_button_config$action6 = button_config.action_config) === null || _button_config$action6 === void 0 ? void 0 : _button_config$action6.url) !== null && _button_config$action5 !== void 0 ? _button_config$action5 : "";
8262
+ var events = (button_config === null || button_config === void 0 || (_button_config$action7 = button_config.action_config) === null || _button_config$action7 === void 0 ? void 0 : _button_config$action7.events) || [];
8263
+ var user_properties = (button_config === null || button_config === void 0 || (_button_config$action8 = button_config.action_config) === null || _button_config$action8 === void 0 ? void 0 : _button_config$action8.user_props) || [];
8264
+ var session_properties = (button_config === null || button_config === void 0 || (_button_config$action9 = button_config.action_config) === null || _button_config$action9 === void 0 ? void 0 : _button_config$action9.session_props) || [];
8265
+ var copy_content = (button_config === null || button_config === void 0 || (_button_config$action10 = button_config.action_config) === null || _button_config$action10 === void 0 ? void 0 : _button_config$action10.copy_content) || "";
8266
+ var isExternal = (_button_config$action11 = button_config === null || button_config === void 0 || (_button_config$action12 = button_config.action_config) === null || _button_config$action12 === void 0 ? void 0 : _button_config$action12.is_external) !== null && _button_config$action11 !== void 0 ? _button_config$action11 : true;
8267
+ var redirectWithin = (_button_config$action13 = button_config === null || button_config === void 0 || (_button_config$action14 = button_config.action_config) === null || _button_config$action14 === void 0 ? void 0 : _button_config$action14.is_within) !== null && _button_config$action13 !== void 0 ? _button_config$action13 : false;
8268
+ var callbackFunction = (_button_config$action15 = button_config === null || button_config === void 0 || (_button_config$action16 = button_config.action_config) === null || _button_config$action16 === void 0 ? void 0 : _button_config$action16.callback_func) !== null && _button_config$action15 !== void 0 ? _button_config$action15 : "";
8270
8269
  var action_config_str = JSON.stringify(button_config === null || button_config === void 0 ? void 0 : button_config.action_config);
8271
8270
  _action = _action.toLowerCase();
8272
8271
  var borders = button_config.borders,
@@ -8314,7 +8313,7 @@
8314
8313
  break;
8315
8314
  case "copy_clipboard":
8316
8315
  action = /*#__PURE__*/function () {
8317
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8316
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
8318
8317
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8319
8318
  while (1) switch (_context3.prev = _context3.next) {
8320
8319
  case 0:
@@ -8340,7 +8339,7 @@
8340
8339
  }, _callee3, null, [[1, 9]]);
8341
8340
  }));
8342
8341
  return function action() {
8343
- return _ref7.apply(this, arguments);
8342
+ return _ref6.apply(this, arguments);
8344
8343
  };
8345
8344
  }();
8346
8345
  break;
@@ -8500,20 +8499,20 @@
8500
8499
  * @param {string} type - Title or Description type
8501
8500
  * @returns
8502
8501
  */
8503
- var createTextElement = function createTextElement(_ref8, currentId) {
8504
- var _ref8$color = _ref8.color,
8505
- color = _ref8$color === void 0 ? "#000" : _ref8$color,
8506
- _ref8$font_family = _ref8.font_family,
8507
- font_family = _ref8$font_family === void 0 ? "cursive" : _ref8$font_family,
8508
- _ref8$size = _ref8.size,
8509
- size = _ref8$size === void 0 ? 14 : _ref8$size,
8510
- _ref8$style = _ref8.style,
8511
- style = _ref8$style === void 0 ? "bold" : _ref8$style,
8512
- text = _ref8.text,
8513
- segments = _ref8.segments,
8514
- quote = _ref8.quote,
8515
- _ref8$link_config = _ref8.link_config,
8516
- link_config = _ref8$link_config === void 0 ? [] : _ref8$link_config;
8502
+ var createTextElement = function createTextElement(_ref7, currentId) {
8503
+ var _ref7$color = _ref7.color,
8504
+ color = _ref7$color === void 0 ? "#000" : _ref7$color,
8505
+ _ref7$font_family = _ref7.font_family,
8506
+ font_family = _ref7$font_family === void 0 ? "cursive" : _ref7$font_family,
8507
+ _ref7$size = _ref7.size,
8508
+ size = _ref7$size === void 0 ? 14 : _ref7$size,
8509
+ _ref7$style = _ref7.style,
8510
+ style = _ref7$style === void 0 ? "bold" : _ref7$style,
8511
+ text = _ref7.text,
8512
+ segments = _ref7.segments,
8513
+ quote = _ref7.quote,
8514
+ _ref7$link_config = _ref7.link_config,
8515
+ link_config = _ref7$link_config === void 0 ? [] : _ref7$link_config;
8517
8516
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "desc";
8518
8517
  var fontMultiplier = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
8519
8518
  size = size * fontMultiplier;
@@ -12693,14 +12692,14 @@
12693
12692
  _config$wait_interval,
12694
12693
  _config$termination;
12695
12694
  _classCallCheck(this, TemplateContent);
12696
- _defineProperty(this, "gVWf", function () {
12695
+ _defineProperty(this, "VXSk", function () {
12697
12696
  return new Promise(function (resolve, reject) {
12698
12697
  try {
12699
- var element = _this.idIX(_this.layout);
12698
+ var element = _this.mqbK(_this.layout);
12700
12699
  var styleElement = document.createElement("style");
12701
12700
  styleElement.innerHTML = _this.styleContent;
12702
12701
  document.head.appendChild(styleElement);
12703
- _this.QNLg();
12702
+ _this.FtPp();
12704
12703
  try {
12705
12704
  eval(_this.script);
12706
12705
  } catch (e) {
@@ -12711,15 +12710,15 @@
12711
12710
  }
12712
12711
  _this.imageElements.forEach(function (img) {
12713
12712
  img.addEventListener("error", function () {
12714
- _this.bcmL("provided image doesn't exists");
12713
+ _this.zFfP("provided image doesn't exists");
12715
12714
  });
12716
12715
  });
12717
12716
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
12718
12717
  _this.wait_interval -= 1;
12719
12718
  if (_this.wait_interval <= 0) {
12720
- _this.bcmL("provided media doesn't exists");
12719
+ _this.zFfP("provided media doesn't exists");
12721
12720
  } else {
12722
- if (_this.UhLg() && _this.TzVx() && _this.YWjn()) {
12721
+ if (_this.aJNA() && _this.GtTp() && _this.nXTc()) {
12723
12722
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
12724
12723
  resolve(element);
12725
12724
  }
@@ -12733,7 +12732,7 @@
12733
12732
  }
12734
12733
  });
12735
12734
  });
12736
- _defineProperty(this, "bcmL", function (reason) {
12735
+ _defineProperty(this, "zFfP", function (reason) {
12737
12736
  var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
12738
12737
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
12739
12738
  apx_nudge_name: _this.name,
@@ -12749,13 +12748,13 @@
12749
12748
  _this.closeCallBack("cancel");
12750
12749
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
12751
12750
  });
12752
- _defineProperty(this, "QNLg", function () {
12751
+ _defineProperty(this, "FtPp", function () {
12753
12752
  var BuilderTemplatesStyles = document.createElement("style");
12754
12753
  BuilderTemplatesStyles.innerHTML = _this.initialStyles;
12755
12754
  BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
12756
12755
  document.head.appendChild(BuilderTemplatesStyles);
12757
12756
  });
12758
- _defineProperty(this, "idIX", function (config) {
12757
+ _defineProperty(this, "mqbK", function (config) {
12759
12758
  var _window$Apxor3;
12760
12759
  var element;
12761
12760
  switch (config.type) {
@@ -12841,7 +12840,7 @@
12841
12840
  if (config.type === "cta_button" || config.type === "button") {
12842
12841
  reason = "cta-clicked";
12843
12842
  }
12844
- _this.dVLB(e, "redirect", reason);
12843
+ _this.fTtB(e, "redirect", reason);
12845
12844
  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) {
12846
12845
  var _window4, _this$config8;
12847
12846
  (_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);
@@ -12954,7 +12953,7 @@
12954
12953
  console.error("Failed to copy:", _context2.t2);
12955
12954
  window.Apxor.showInfoToast("Failed to copy text");
12956
12955
  case 41:
12957
- _this.dVLB(e, action.type, reason);
12956
+ _this.fTtB(e, action.type, reason);
12958
12957
  // window.Apxor.logActionEvent(
12959
12958
  // "walk_through_cancelled",
12960
12959
  // this.configId,
@@ -12981,7 +12980,7 @@
12981
12980
  } else if (config.type === "cta_button" || config.type === "button") {
12982
12981
  reason = "cta-clicked";
12983
12982
  }
12984
- _this.dVLB(e, "dismiss", reason);
12983
+ _this.fTtB(e, "dismiss", reason);
12985
12984
  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) {
12986
12985
  var _window5, _this$config10;
12987
12986
  (_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);
@@ -12992,7 +12991,7 @@
12992
12991
  element.onclick = function (e) {
12993
12992
  e.stopPropagation();
12994
12993
  window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
12995
- _this.dVLB(e, "never");
12994
+ _this.fTtB(e, "never");
12996
12995
  };
12997
12996
  break;
12998
12997
  case "toggle-class":
@@ -13019,7 +13018,7 @@
13019
13018
  tempInput.select();
13020
13019
  document.execCommand("copy");
13021
13020
  document.body.removeChild(tempInput);
13022
- _this.dVLB(e, "copy-content", "cta-clicked");
13021
+ _this.fTtB(e, "copy-content", "cta-clicked");
13023
13022
  setTimeout(function () {
13024
13023
  window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
13025
13024
  }, 500);
@@ -13041,7 +13040,7 @@
13041
13040
  }
13042
13041
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
13043
13042
  config.absolute_position_children.forEach(function (childConfig) {
13044
- var childElement = _this.idIX(childConfig);
13043
+ var childElement = _this.mqbK(childConfig);
13045
13044
  element.appendChild(childElement);
13046
13045
  });
13047
13046
  }
@@ -13049,7 +13048,7 @@
13049
13048
  // Process children
13050
13049
  if (config.children && config.children.length > 0) {
13051
13050
  config.children.forEach(function (childConfig) {
13052
- var childElement = _this.idIX(childConfig);
13051
+ var childElement = _this.mqbK(childConfig);
13053
13052
  element.appendChild(childElement);
13054
13053
  });
13055
13054
  }
@@ -13076,7 +13075,7 @@
13076
13075
  }
13077
13076
  return element;
13078
13077
  });
13079
- _defineProperty(this, "dVLB", function (e, action) {
13078
+ _defineProperty(this, "fTtB", function (e, action) {
13080
13079
  var _window$Apxor6, _this$config11, _this$config12, _window$Apxor7, _this$config13, _this$config14, _this$config15, _this$config16;
13081
13080
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
13082
13081
  var additional_info = {
@@ -13105,7 +13104,7 @@
13105
13104
  _this.closeCallBack(action);
13106
13105
  }
13107
13106
  });
13108
- _defineProperty(this, "TzVx", function () {
13107
+ _defineProperty(this, "GtTp", function () {
13109
13108
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
13110
13109
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
13111
13110
  if (_this.imageElements.length === 0) return true;
@@ -13113,13 +13112,13 @@
13113
13112
  return img.complete;
13114
13113
  });
13115
13114
  });
13116
- _defineProperty(this, "YWjn", function () {
13115
+ _defineProperty(this, "nXTc", function () {
13117
13116
  if (!_this.bgImageUrl) return true;
13118
13117
  var img = new Image();
13119
13118
  img.src = _this.bgImageUrl;
13120
13119
  return img.complete;
13121
13120
  });
13122
- _defineProperty(this, "UhLg", function () {
13121
+ _defineProperty(this, "aJNA", function () {
13123
13122
  if (_this.videoElements.length === 0) return true;
13124
13123
  return _this.videoElements.every(function (video) {
13125
13124
  return video.readyState >= 3;
@@ -14058,7 +14057,7 @@
14058
14057
  case 0:
14059
14058
  _context2.prev = 0;
14060
14059
  _context2.next = 3;
14061
- return this.templateContent.gVWf();
14060
+ return this.templateContent.VXSk();
14062
14061
  case 3:
14063
14062
  this.inLineContainer = _context2.sent;
14064
14063
  _context2.next = 9;
@@ -15635,7 +15634,7 @@
15635
15634
  * @description Creates the styles for Marketing message.
15636
15635
  * @returns {string} css styles
15637
15636
  */
15638
- _defineProperty(this, "bpVP", function () {
15637
+ _defineProperty(this, "waRa", function () {
15639
15638
  if (!_this.enable_marketing) {
15640
15639
  return "";
15641
15640
  }
@@ -15654,7 +15653,7 @@
15654
15653
  * @private
15655
15654
  * @description Sets the marketing content at the end of the Inline
15656
15655
  */
15657
- _defineProperty(this, "pNoA", function () {
15656
+ _defineProperty(this, "tkSk", function () {
15658
15657
  if (_this.enable_marketing) {
15659
15658
  var marketingContainer = document.createElement("div");
15660
15659
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -16268,7 +16267,7 @@
16268
16267
  if (apxor_tooltip_styles) {
16269
16268
  return;
16270
16269
  }
16271
- 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.bpVP(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
16270
+ 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.waRa(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
16272
16271
  var styleNode = document.createElement("style");
16273
16272
  styleNode.setAttribute("apx-tooltip-styles", "");
16274
16273
  styleNode.innerHTML = styles;
@@ -17078,7 +17077,7 @@
17078
17077
  this._setCloseButton();
17079
17078
 
17080
17079
  //Set the Marketing content
17081
- this.pNoA();
17080
+ this.tkSk();
17082
17081
  }
17083
17082
 
17084
17083
  /**
@@ -19975,7 +19974,7 @@
19975
19974
  case 0:
19976
19975
  _context2.prev = 0;
19977
19976
  _context2.next = 3;
19978
- return this.templateContent.gVWf();
19977
+ return this.templateContent.VXSk();
19979
19978
  case 3:
19980
19979
  this.inAppContainer = _context2.sent;
19981
19980
  this.inAppContainer.style.zIndex = 99999;
@@ -20174,7 +20173,7 @@
20174
20173
  * @description Creates the styles for Marketing message.
20175
20174
  * @returns {string} css styles
20176
20175
  */
20177
- _defineProperty(this, "bpVP", function () {
20176
+ _defineProperty(this, "waRa", function () {
20178
20177
  if (!_this.enable_marketing) {
20179
20178
  return "";
20180
20179
  }
@@ -20220,7 +20219,7 @@
20220
20219
  * @private
20221
20220
  * @description Get the response for Form content in the InApp modal.
20222
20221
  */
20223
- _defineProperty(this, "RInK", function (form_elements) {
20222
+ _defineProperty(this, "OsDY", function (form_elements) {
20224
20223
  var obj = {};
20225
20224
  var callback = "";
20226
20225
  form_elements.forEach(function (element) {
@@ -20260,7 +20259,7 @@
20260
20259
  * @private
20261
20260
  * @description Sets the marketing content at the end of the InApp
20262
20261
  */
20263
- _defineProperty(this, "pNoA", function () {
20262
+ _defineProperty(this, "tkSk", function () {
20264
20263
  if (_this.enable_marketing) {
20265
20264
  var marketingContainer = document.createElement("div");
20266
20265
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -20520,7 +20519,7 @@
20520
20519
  }, {
20521
20520
  key: "_setStyles",
20522
20521
  value: function _setStyles() {
20523
- 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.bpVP(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
20522
+ 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.waRa(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
20524
20523
  var styleNode = document.createElement("style");
20525
20524
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
20526
20525
  styleNode.innerHTML = styles;
@@ -21014,7 +21013,7 @@
21014
21013
  this._setCloseButton();
21015
21014
 
21016
21015
  //Set the Marketing content
21017
- this.pNoA();
21016
+ this.tkSk();
21018
21017
  }
21019
21018
 
21020
21019
  /**
@@ -21286,7 +21285,7 @@
21286
21285
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
21287
21286
  form.addEventListener("submit", function (e) {
21288
21287
  e.preventDefault();
21289
- var _this8$generateRespon = _this8.RInK(_this8.form.elements),
21288
+ var _this8$generateRespon = _this8.OsDY(_this8.form.elements),
21290
21289
  obj = _this8$generateRespon.obj,
21291
21290
  callback = _this8$generateRespon.callback;
21292
21291
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -21646,7 +21645,7 @@
21646
21645
  };
21647
21646
  } else {
21648
21647
  // As the video player is hidden by default, unhide if the mode is not PIP.
21649
- _this.HQkM();
21648
+ _this.kemQ();
21650
21649
  }
21651
21650
  _this.showCallback();
21652
21651
  } catch (e) {
@@ -21667,7 +21666,7 @@
21667
21666
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
21668
21667
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
21669
21668
  */
21670
- _defineProperty(this, "PPRB", function () {
21669
+ _defineProperty(this, "RVqm", function () {
21671
21670
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
21672
21671
  width = _getHeightWidthFromRe.width,
21673
21672
  height = _getHeightWidthFromRe.height;
@@ -21679,7 +21678,7 @@
21679
21678
  * @private
21680
21679
  * @description Removes the video player style element.
21681
21680
  */
21682
- _defineProperty(this, "Fden", function () {
21681
+ _defineProperty(this, "KTuG", function () {
21683
21682
  var playerStyles = document.getElementById("apx-mpl-styles");
21684
21683
  if (playerStyles) {
21685
21684
  playerStyles.remove();
@@ -21690,7 +21689,7 @@
21690
21689
  * @private
21691
21690
  * @description Attach listeners on the video controls
21692
21691
  */
21693
- _defineProperty(this, "pNiK", function () {
21692
+ _defineProperty(this, "UbDB", function () {
21694
21693
  // Listener for the video end. Display the CTA's when the video ends.
21695
21694
  _this.videoElement.addEventListener("ended", function () {
21696
21695
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -21793,7 +21792,7 @@
21793
21792
  * @private
21794
21793
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21795
21794
  */
21796
- _defineProperty(this, "sltM", function () {
21795
+ _defineProperty(this, "zWHm", function () {
21797
21796
  var _this$terminationConf;
21798
21797
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
21799
21798
  // On Exit of the PIP,
@@ -21833,7 +21832,7 @@
21833
21832
  * @private Sets the custom controls on the video player.
21834
21833
  * PIP and close are the custom controls that are created and positions on the video.
21835
21834
  */
21836
- _defineProperty(this, "pjwj", function () {
21835
+ _defineProperty(this, "AibA", function () {
21837
21836
  _this.enable_close_button;
21838
21837
  if (_this.enable_close_button) {
21839
21838
  var closeButton = document.createElement("span");
@@ -21880,21 +21879,21 @@
21880
21879
  * @function hideVideoPlayer
21881
21880
  * @description Sets the visibility of the video player to hidden.
21882
21881
  */
21883
- _defineProperty(this, "QwmN", function () {
21882
+ _defineProperty(this, "lUku", function () {
21884
21883
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
21885
21884
  });
21886
21885
  /**
21887
21886
  * @function unhideVideoPlayer
21888
21887
  * @description Unhides video player.
21889
21888
  */
21890
- _defineProperty(this, "HQkM", function () {
21889
+ _defineProperty(this, "kemQ", function () {
21891
21890
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
21892
21891
  });
21893
21892
  /**
21894
21893
  * @function getVideoElement
21895
21894
  * @returns {HTMLElement} Video ekement
21896
21895
  */
21897
- _defineProperty(this, "Zwdr", function () {
21896
+ _defineProperty(this, "RnxB", function () {
21898
21897
  return _this.videoElement;
21899
21898
  });
21900
21899
  this.videoPlayer = null;
@@ -21949,7 +21948,7 @@
21949
21948
  this.videoPlayer.style.backgroundColor = this.bg_color;
21950
21949
 
21951
21950
  // Video has a resolution, not deviating from the resolution set the height and width.
21952
- this.PPRB();
21951
+ this.RVqm();
21953
21952
  //Generate the styles and add them to the document head.
21954
21953
  this._setVideoPlayerStyles();
21955
21954
  //Set the position of the video player with in the 5 possible positions.
@@ -21957,16 +21956,16 @@
21957
21956
  //Create a video element,set the source and add to the container.
21958
21957
  this._setPlayerContent();
21959
21958
  //Set the listeners on the video control buttons.
21960
- this.pNiK();
21959
+ this.UbDB();
21961
21960
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
21962
- this.sltM();
21961
+ this.zWHm();
21963
21962
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
21964
21963
  //Reason - We want to position them at the top right and left positions.
21965
- this.pjwj();
21964
+ this.AibA();
21966
21965
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
21967
21966
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
21968
21967
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
21969
- this.QwmN();
21968
+ this.lUku();
21970
21969
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
21971
21970
  this._setAutoTerminate();
21972
21971
  document.body.appendChild(this.videoPlayer);
@@ -22081,7 +22080,7 @@
22081
22080
  }
22082
22081
  }
22083
22082
  this.videoPlayer.remove();
22084
- this.Fden();
22083
+ this.KTuG();
22085
22084
  if (closeButtonName !== "auto_dismiss") {
22086
22085
  var _window$ApxorRTM8;
22087
22086
  (_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_close_button_clicked", {
@@ -22151,7 +22150,7 @@
22151
22150
  replayCount: _this3.replayCount
22152
22151
  });
22153
22152
  _this3.videoPlayer.remove();
22154
- _this3.Fden();
22153
+ _this3.KTuG();
22155
22154
  _this3.hideCallback();
22156
22155
  } catch (e) {
22157
22156
  console.log("Can't close the video player\n".concat(e));
@@ -22249,17 +22248,17 @@
22249
22248
  try {
22250
22249
  var _window, _parseCSS$background, _parseCSS;
22251
22250
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
22252
- var element = _this.HxDQ(_this.layout);
22253
- _this.zxuq();
22251
+ var element = _this.qQDm(_this.layout);
22252
+ _this.bOdn();
22254
22253
  var bg_cpp = (_parseCSS$background = (_parseCSS = parseCSS(_this.layout.css)) === null || _parseCSS === void 0 ? void 0 : _parseCSS["background-color"]) !== null && _parseCSS$background !== void 0 ? _parseCSS$background : "transparent";
22255
22254
  document.body.style.backgroundColor = bg_cpp;
22256
22255
  document.body.style.minWidth = "100%";
22257
22256
  window.onresize = function () {
22258
- _this.cdlb();
22257
+ _this.LkTM();
22259
22258
  };
22260
22259
  _this.imageElements.forEach(function (img) {
22261
22260
  img.addEventListener("error", function () {
22262
- _this.bcmL("provided image doesn't exists");
22261
+ _this.zFfP("provided image doesn't exists");
22263
22262
  });
22264
22263
  });
22265
22264
  var rootContainer = document.createElement("div");
@@ -22267,7 +22266,7 @@
22267
22266
  rootContainer.style.minWidth = "100%";
22268
22267
  if (_this.singleLine) {
22269
22268
  // Force the layout element to act as a slider
22270
- _this.CFbz(element);
22269
+ _this.TBTW(element);
22271
22270
 
22272
22271
  // Stack elements vertically (Images on top, Dots on bottom)
22273
22272
  rootContainer.style.display = "flex";
@@ -22279,7 +22278,7 @@
22279
22278
  document.body.appendChild(rootContainer);
22280
22279
 
22281
22280
  // Start the infinite 2-second slide and create dots
22282
- _this.ANhh(element, rootContainer);
22281
+ _this.QKlV(element, rootContainer);
22283
22282
  } else {
22284
22283
  // Fallback to original layout behavior
22285
22284
  rootContainer.style.display = "flex";
@@ -22290,7 +22289,7 @@
22290
22289
  var styleElement = document.createElement("style");
22291
22290
  styleElement.innerHTML = _this.styleContent;
22292
22291
  document.head.appendChild(styleElement);
22293
- _this.wYHX(_this.termination);
22292
+ _this.MMsv(_this.termination);
22294
22293
  try {
22295
22294
  eval(_this.script);
22296
22295
  } catch (e) {
@@ -22301,10 +22300,10 @@
22301
22300
  _this.intervalToCheckMediaLoadingStatus = setInterval(function () {
22302
22301
  _this.wait_interval -= 1;
22303
22302
  if (_this.wait_interval <= 0) {
22304
- _this.bcmL("provided media doesn't exists");
22303
+ _this.zFfP("provided media doesn't exists");
22305
22304
  } else {
22306
- if (_this.UhLg() && _this.TzVx() && _this.YWjn()) {
22307
- _this.cdlb();
22305
+ if (_this.aJNA() && _this.GtTp() && _this.nXTc()) {
22306
+ _this.LkTM();
22308
22307
  clearInterval(_this.intervalToCheckMediaLoadingStatus);
22309
22308
  }
22310
22309
  }
@@ -22316,7 +22315,7 @@
22316
22315
  }
22317
22316
  });
22318
22317
  // Applies CSS to force children into a single horizontal row for sliding
22319
- _defineProperty(this, "CFbz", function (container) {
22318
+ _defineProperty(this, "TBTW", function (container) {
22320
22319
  container.style.display = "flex";
22321
22320
  container.style.flexDirection = "row";
22322
22321
  container.style.overflowX = "auto";
@@ -22361,7 +22360,7 @@
22361
22360
  });
22362
22361
  }
22363
22362
  });
22364
- _defineProperty(this, "bcmL", function (reason) {
22363
+ _defineProperty(this, "zFfP", function (reason) {
22365
22364
  var _window$ApxorRTM, _window4;
22366
22365
  !_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
22367
22366
  apx_nudge_name: _this.name,
@@ -22377,7 +22376,7 @@
22377
22376
  (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
22378
22377
  });
22379
22378
  // Creates pagination dots under the images and handles the infinite loop
22380
- _defineProperty(this, "ANhh", function (container, rootContainer) {
22379
+ _defineProperty(this, "QKlV", function (container, rootContainer) {
22381
22380
  var _this$carousel, _this$carousel2, _this$carousel3, _this$carousel4, _this$carousel9;
22382
22381
  var childrenCount = container.children.length;
22383
22382
  if (childrenCount <= 1) return;
@@ -22426,7 +22425,7 @@
22426
22425
  } else {
22427
22426
  currentIndex++;
22428
22427
  }
22429
- _this.maqr(container, currentIndex, dots);
22428
+ _this.pqeV(container, currentIndex, dots);
22430
22429
  }
22431
22430
  }, _this.slideDuration);
22432
22431
  };
@@ -22453,7 +22452,7 @@
22453
22452
  var index = Math.round(container.scrollLeft / container.offsetWidth);
22454
22453
  if (currentIndex !== index) {
22455
22454
  currentIndex = index;
22456
- _this.mtkl(dots, currentIndex);
22455
+ _this.WChQ(dots, currentIndex);
22457
22456
  }
22458
22457
  }, 60);
22459
22458
  }, {
@@ -22462,7 +22461,7 @@
22462
22461
  startTimer();
22463
22462
  });
22464
22463
  // Helper to handle the scrolling animation
22465
- _defineProperty(this, "maqr", function (container, index, dots) {
22464
+ _defineProperty(this, "pqeV", function (container, index, dots) {
22466
22465
  var targetChild = container.children[index];
22467
22466
  if (targetChild) {
22468
22467
  // If index is 0, we explicitly scroll to the far left
@@ -22471,10 +22470,10 @@
22471
22470
  left: scrollPos,
22472
22471
  behavior: "smooth"
22473
22472
  });
22474
- _this.mtkl(dots, index);
22473
+ _this.WChQ(dots, index);
22475
22474
  }
22476
22475
  });
22477
- _defineProperty(this, "mtkl", function (dots, currentIndex) {
22476
+ _defineProperty(this, "WChQ", function (dots, currentIndex) {
22478
22477
  var _this$carousel14, _this$carousel16;
22479
22478
  if ((_this$carousel14 = _this.carousel) !== null && _this$carousel14 !== void 0 && _this$carousel14.lines) {
22480
22479
  var _this$carousel15;
@@ -22498,13 +22497,13 @@
22498
22497
  });
22499
22498
  }
22500
22499
  });
22501
- _defineProperty(this, "zxuq", function () {
22500
+ _defineProperty(this, "bOdn", function () {
22502
22501
  var EmbeddedCardsStyles = document.createElement("style");
22503
22502
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
22504
22503
  EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
22505
22504
  document.head.appendChild(EmbeddedCardsStyles);
22506
22505
  });
22507
- _defineProperty(this, "HxDQ", function (config) {
22506
+ _defineProperty(this, "qQDm", function (config) {
22508
22507
  var _window$Apxor;
22509
22508
  var element;
22510
22509
  switch (config.type) {
@@ -22535,7 +22534,7 @@
22535
22534
  case "timer":
22536
22535
  //countdown timer case
22537
22536
  element = document.createElement("div");
22538
- _this.DUNe(element, config.properties);
22537
+ _this.swqZ(element, config.properties);
22539
22538
  break;
22540
22539
  default:
22541
22540
  element = document.createElement(config.type);
@@ -22591,27 +22590,27 @@
22591
22590
  element.onclick = function (e) {
22592
22591
  e.stopPropagation();
22593
22592
  window.Apxor.redirect(JSON.stringify(action));
22594
- _this.dVLB(e);
22593
+ _this.fTtB(e);
22595
22594
  };
22596
22595
  break;
22597
22596
  case "show-video":
22598
22597
  element.onclick = function (e) {
22599
22598
  e.stopPropagation();
22600
22599
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
22601
- _this.dVLB(e);
22600
+ _this.fTtB(e);
22602
22601
  };
22603
22602
  break;
22604
22603
  case "cancel":
22605
22604
  element.onclick = function (e) {
22606
22605
  e.stopPropagation();
22607
- _this.dVLB(e);
22606
+ _this.fTtB(e);
22608
22607
  window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
22609
22608
  };
22610
22609
  break;
22611
22610
  case "dismiss":
22612
22611
  element.onclick = function (e) {
22613
22612
  e.stopPropagation();
22614
- _this.dVLB(e);
22613
+ _this.fTtB(e);
22615
22614
  };
22616
22615
  break;
22617
22616
  case "user_props":
@@ -22621,7 +22620,7 @@
22621
22620
  var _window$Apxor2;
22622
22621
  return (_window$Apxor2 = window.Apxor) === null || _window$Apxor2 === void 0 ? void 0 : _window$Apxor2.setUserProperties(props);
22623
22622
  });
22624
- _this.dVLB(e);
22623
+ _this.fTtB(e);
22625
22624
  };
22626
22625
  break;
22627
22626
  case "session_props":
@@ -22631,7 +22630,7 @@
22631
22630
  var _window$Apxor3;
22632
22631
  return (_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.setSessionProperties(props);
22633
22632
  });
22634
- _this.dVLB(e);
22633
+ _this.fTtB(e);
22635
22634
  };
22636
22635
  break;
22637
22636
  case "event":
@@ -22648,7 +22647,7 @@
22648
22647
  for (var i = 0; i < action.events.length; i++) {
22649
22648
  _loop();
22650
22649
  }
22651
- _this.dVLB(e);
22650
+ _this.fTtB(e);
22652
22651
  };
22653
22652
  break;
22654
22653
  case "never":
@@ -22661,7 +22660,7 @@
22661
22660
  apx_nudge_id: _this.configId,
22662
22661
  apx_termination_type: "never-show"
22663
22662
  });
22664
- _this.dVLB(e);
22663
+ _this.fTtB(e);
22665
22664
  };
22666
22665
  break;
22667
22666
  case "toggle-class":
@@ -22686,7 +22685,7 @@
22686
22685
  tempInput.select();
22687
22686
  document.execCommand("copy");
22688
22687
  document.body.removeChild(tempInput);
22689
- _this.dVLB(e);
22688
+ _this.fTtB(e);
22690
22689
  };
22691
22690
  break;
22692
22691
  case "log-app-event":
@@ -22707,7 +22706,7 @@
22707
22706
  }
22708
22707
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
22709
22708
  config.absolute_position_children.forEach(function (childConfig) {
22710
- var childElement = _this.HxDQ(childConfig);
22709
+ var childElement = _this.qQDm(childConfig);
22711
22710
  element.appendChild(childElement);
22712
22711
  });
22713
22712
  }
@@ -22715,7 +22714,7 @@
22715
22714
  // Process children
22716
22715
  if (config.children && config.children.length > 0) {
22717
22716
  config.children.forEach(function (childConfig) {
22718
- var childElement = _this.HxDQ(childConfig);
22717
+ var childElement = _this.qQDm(childConfig);
22719
22718
  element.appendChild(childElement);
22720
22719
  });
22721
22720
  }
@@ -22741,7 +22740,7 @@
22741
22740
  }
22742
22741
  return element;
22743
22742
  });
22744
- _defineProperty(this, "dVLB", function (e) {
22743
+ _defineProperty(this, "fTtB", function (e) {
22745
22744
  var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
22746
22745
  var additional_info = {
22747
22746
  apx_nudge_name: _this.name,
@@ -22758,7 +22757,7 @@
22758
22757
  (_window$ApxorRTM6 = window.ApxorRTM) === null || _window$ApxorRTM6 === void 0 || _window$ApxorRTM6.logEvent("apx_card_interaction", additional_info);
22759
22758
  }
22760
22759
  });
22761
- _defineProperty(this, "wYHX", function (config) {
22760
+ _defineProperty(this, "MMsv", function (config) {
22762
22761
  config.forEach(function (id) {
22763
22762
  var element = document.getElementById(id);
22764
22763
  if (element) {
@@ -22766,7 +22765,7 @@
22766
22765
  }
22767
22766
  });
22768
22767
  });
22769
- _defineProperty(this, "TzVx", function () {
22768
+ _defineProperty(this, "GtTp", function () {
22770
22769
  //This logic is to make sure that image has loaded, it doesn't check whether image is broken
22771
22770
  //refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
22772
22771
  if (_this.imageElements.length === 0) return true;
@@ -22774,19 +22773,19 @@
22774
22773
  return img.complete;
22775
22774
  });
22776
22775
  });
22777
- _defineProperty(this, "UhLg", function () {
22776
+ _defineProperty(this, "aJNA", function () {
22778
22777
  if (_this.videoElements.length === 0) return true;
22779
22778
  return _this.videoElements.every(function (video) {
22780
22779
  return video.readyState >= 3;
22781
22780
  });
22782
22781
  });
22783
- _defineProperty(this, "YWjn", function () {
22782
+ _defineProperty(this, "nXTc", function () {
22784
22783
  if (!_this.bgImageUrl) return true;
22785
22784
  var img = new Image();
22786
22785
  img.src = _this.bgImageUrl;
22787
22786
  return img.complete;
22788
22787
  });
22789
- _defineProperty(this, "cdlb", function () {
22788
+ _defineProperty(this, "LkTM", function () {
22790
22789
  var _window6, _window7;
22791
22790
  var html = window.document.querySelector("html");
22792
22791
  var width = html.offsetWidth;
@@ -22798,7 +22797,7 @@
22798
22797
  _this.loggedNudgeShownEvent = true;
22799
22798
  }
22800
22799
  });
22801
- _defineProperty(this, "DUNe", function (container, props) {
22800
+ _defineProperty(this, "swqZ", function (container, props) {
22802
22801
  var targetDate = new Date(props.target_date).getTime();
22803
22802
  var updateClock = function updateClock() {
22804
22803
  var now = new Date().getTime();
@@ -22813,13 +22812,13 @@
22813
22812
  var seconds = Math.floor(distance % (1000 * 60) / 1000);
22814
22813
 
22815
22814
  // Timer Layout
22816
- container.innerHTML = "\n <span style=\"font-size: 12px; margin-right: 4px;\">".concat(props.content, "</span>\n <div style=\"display: flex; gap: 4px;\">\n ").concat(_this.PCtw(hours), ":\n ").concat(_this.PCtw(minutes), ":\n ").concat(_this.PCtw(seconds), "\n </div>\n ");
22815
+ container.innerHTML = "\n <span style=\"font-size: 12px; margin-right: 4px;\">".concat(props.content, "</span>\n <div style=\"display: flex; gap: 4px;\">\n ").concat(_this.uRQm(hours), ":\n ").concat(_this.uRQm(minutes), ":\n ").concat(_this.uRQm(seconds), "\n </div>\n ");
22817
22816
  };
22818
22817
  var timerInterval = setInterval(updateClock, 1000);
22819
22818
  updateClock(); // Initial call
22820
22819
  });
22821
22820
  // Helper for the "boxed" look
22822
- _defineProperty(this, "PCtw", function (num) {
22821
+ _defineProperty(this, "uRQm", function (num) {
22823
22822
  var displayNum = num < 10 ? "0" + num : num;
22824
22823
  return "<span style=\"background: rgba(255,255,255,0.2); padding: 2px 4px; border-radius: 2px;\">".concat(displayNum, "</span>");
22825
22824
  });
@@ -22863,465 +22862,6 @@
22863
22862
  this.unseen_color = getColorOrDefault(data === null || data === void 0 ? void 0 : data.unseen_color, "#000000");
22864
22863
  });
22865
22864
 
22866
- var StoryComponents = /*#__PURE__*/function () {
22867
- function StoryComponents(data, nextSlideCallback) {
22868
- _classCallCheck(this, StoryComponents);
22869
- this.width = data.width;
22870
- this.height = data.height;
22871
- this.background_color = data.background_color;
22872
- this.position = data.position;
22873
- this.enable_border = data.enable_border;
22874
- this.border = data.border;
22875
- this.title = data.title;
22876
- this.description = data.description;
22877
- this.answer = data.answer;
22878
- this.enable_padding = data.enable_padding;
22879
- this.padding = data.padding;
22880
- this.onNextSlide = nextSlideCallback;
22881
- }
22882
- _createClass(StoryComponents, [{
22883
- key: "render",
22884
- value: function render() {
22885
- var _this = this;
22886
- var componentOverlay = document.createElement("div");
22887
- componentOverlay.style.position = "absolute";
22888
- componentOverlay.style.backgroundColor = "transparent";
22889
- componentOverlay.style.top = "0";
22890
- componentOverlay.style.left = "0";
22891
- componentOverlay.style.width = "100%";
22892
- componentOverlay.style.height = "100%";
22893
- componentOverlay.style.zIndex = "10";
22894
- componentOverlay.style.pointerEvents = "none";
22895
- var pollContainer = document.createElement("div");
22896
- pollContainer.style.pointerEvents = "auto";
22897
- pollContainer.style.backgroundColor = this.background_color;
22898
- pollContainer.style.width = "".concat(this.width, "%");
22899
- pollContainer.style.height = "fit-content";
22900
- if (this.position.position === "C") {
22901
- pollContainer.style.position = "absolute";
22902
- pollContainer.style.top = "50%";
22903
- pollContainer.style.left = "50%";
22904
- pollContainer.style.transform = "translate(-50%, -50%)";
22905
- pollContainer.style.zIndex = "999";
22906
- }
22907
- if (this.enable_border) {
22908
- var _this$border = this.border,
22909
- width = _this$border.width,
22910
- style = _this$border.style,
22911
- color = _this$border.color,
22912
- radius = _this$border.radius;
22913
- pollContainer.style.border = "".concat(width, "px ").concat(style, " ").concat(color);
22914
- pollContainer.style.borderRadius = "".concat(radius, "px");
22915
- }
22916
- if (this.enable_padding) {
22917
- var _this$padding = this.padding,
22918
- top = _this$padding.top,
22919
- bottom = _this$padding.bottom,
22920
- left = _this$padding.left,
22921
- right = _this$padding.right;
22922
- pollContainer.style.padding = "".concat(top, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px");
22923
- }
22924
-
22925
- // const cross_button = document.createElement("div");
22926
- // cross_button.innerHTML = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
22927
- // <path fill-rule="evenodd" clip-rule="evenodd" d="M5.46995 5.46983C5.61058 5.32938 5.8012 5.25049 5.99995 5.25049C6.1987 5.25049 6.38933 5.32938 6.52995 5.46983L18.53 17.4698C18.6036 17.5385 18.6627 17.6213 18.7037 17.7133C18.7447 17.8053 18.7668 17.9046 18.7685 18.0053C18.7703 18.106 18.7518 18.206 18.7141 18.2994C18.6764 18.3928 18.6202 18.4776 18.549 18.5489C18.4778 18.6201 18.3929 18.6762 18.2995 18.714C18.2062 18.7517 18.1061 18.7702 18.0054 18.7684C17.9047 18.7666 17.8054 18.7446 17.7134 18.7036C17.6214 18.6626 17.5386 18.6035 17.4699 18.5298L5.46995 6.52983C5.3295 6.3892 5.25061 6.19858 5.25061 5.99983C5.25061 5.80108 5.3295 5.61045 5.46995 5.46983Z" />
22928
- // <path fill-rule="evenodd" clip-rule="evenodd" d="M18.53 5.46983C18.6704 5.61045 18.7493 5.80108 18.7493 5.99983C18.7493 6.19858 18.6704 6.3892 18.53 6.52983L6.52997 18.5298C6.38779 18.6623 6.19975 18.7344 6.00545 18.731C5.81114 18.7276 5.62576 18.6489 5.48835 18.5114C5.35093 18.374 5.27222 18.1887 5.26879 17.9944C5.26537 17.8 5.33749 17.612 5.46997 17.4698L17.47 5.46983C17.6106 5.32938 17.8012 5.25049 18 5.25049C18.1987 5.25049 18.3893 5.32938 18.53 5.46983Z" />
22929
- // </svg>`;
22930
- // cross_button.style.display = "flex";
22931
- // cross_button.style.justifyContent = "flex-end";
22932
- // cross_button.style.alignItems = "center";
22933
- // cross_button.style.color = "red";
22934
- // pollContainer.appendChild(cross_button);
22935
- // cross_button.addEventListener("click", (e) => {
22936
- // e.stopPropagation();
22937
- // componentOverlay.remove();
22938
- // });
22939
-
22940
- var title = document.createElement("h1");
22941
- title.innerText = this.title.text;
22942
- title.style.color = this.title.color;
22943
- title.style.textAlign = this.title.alignment;
22944
- title.style.fontFamily = this.title.font.family;
22945
- title.style.fontSize = "".concat(this.title.font.size, "px");
22946
- title.style.fontStyle = this.title.font.style;
22947
- title.style.fontWeight = this.title.font.weight;
22948
- if (this.title.enable_padding) {
22949
- var _this$title$padding = this.title.padding,
22950
- _top = _this$title$padding.top,
22951
- _bottom = _this$title$padding.bottom,
22952
- _left = _this$title$padding.left,
22953
- _right = _this$title$padding.right;
22954
- title.style.padding = "".concat(_top, "px ").concat(_right, "px ").concat(_bottom, "px ").concat(_left, "px");
22955
- }
22956
- pollContainer.appendChild(title);
22957
- var description = document.createElement("p");
22958
- description.innerText = this.description.text;
22959
- description.style.color = this.description.color;
22960
- description.style.textAlign = this.description.alignment;
22961
- description.style.fontFamily = this.description.font.family;
22962
- description.style.fontSize = "".concat(this.description.font.size, "px");
22963
- description.style.fontStyle = this.description.font.style;
22964
- description.style.fontWeight = this.description.font.weight;
22965
- if (this.description.enable_padding) {
22966
- var _this$description$pad = this.description.padding,
22967
- _top2 = _this$description$pad.top,
22968
- _bottom2 = _this$description$pad.bottom,
22969
- _left2 = _this$description$pad.left,
22970
- _right2 = _this$description$pad.right;
22971
- description.style.padding = "".concat(_top2, "px ").concat(_right2, "px ").concat(_bottom2, "px ").concat(_left2, "px");
22972
- }
22973
- pollContainer.appendChild(description);
22974
- var selectionLocked = false;
22975
- if (this.answer.answer_mode === "single_choice") {
22976
- pollContainer.style.display = "flex";
22977
- pollContainer.style.flexDirection = "column";
22978
- pollContainer.style.webkitTapHighlightColor = "transparent";
22979
- this.answer.choices.list.forEach(function (choice) {
22980
- var choiceElement = document.createElement("button");
22981
- choiceElement.innerText = choice.value;
22982
- choiceElement.style.width = "85%";
22983
- choiceElement.style.display = "block";
22984
- choiceElement.style.justifySelf = "center";
22985
- choiceElement.style.appearance = "none";
22986
- choiceElement.style.outline = "none";
22987
- choiceElement.style.color = _this.answer.choices.color_inactive;
22988
- choiceElement.style.backgroundColor = _this.answer.choices.bg_color_inactive;
22989
- choiceElement.style.fontFamily = _this.answer.font.family;
22990
- choiceElement.style.fontSize = "".concat(_this.answer.font.size, "px");
22991
- choiceElement.style.fontStyle = _this.answer.font.style;
22992
- choiceElement.style.fontWeight = _this.answer.font.weight;
22993
- if (_this.answer.choices.enable_border) {
22994
- var b = _this.answer.choices.border;
22995
- choiceElement.style.border = "".concat(b.width, "px ").concat(b.style, " ").concat(b.inactive_color);
22996
- choiceElement.style.borderRadius = "".concat(b.radius, "px");
22997
- }
22998
- if (_this.answer.enable_padding) {
22999
- var p = _this.answer.padding;
23000
- choiceElement.style.padding = "".concat(p.top, "px ").concat(p.right, "px ").concat(p.bottom, "px ").concat(p.left, "px");
23001
- } else {
23002
- choiceElement.style.padding = "14px 20px";
23003
- }
23004
- if (_this.answer.enable_margin) {
23005
- var m = _this.answer.margin;
23006
- choiceElement.style.margin = "".concat(m.top, "px ").concat(m.right, "px ").concat(m.bottom, "px ").concat(m.left, "px");
23007
- }
23008
- var setActiveState = function setActiveState(isActive) {
23009
- if (isActive) {
23010
- choiceElement.style.backgroundColor = _this.answer.choices.bg_color_active;
23011
- choiceElement.style.color = _this.answer.choices.color_active;
23012
- choiceElement.style.transform = "scale(0.97)"; // IG shrink effect
23013
- if (_this.answer.choices.enable_border) {
23014
- choiceElement.style.borderColor = _this.answer.choices.border.color;
23015
- }
23016
- } else {
23017
- choiceElement.style.backgroundColor = _this.answer.choices.bg_color_inactive;
23018
- choiceElement.style.color = _this.answer.choices.color_inactive;
23019
- choiceElement.style.transform = "scale(1)";
23020
- if (_this.answer.choices.enable_border) {
23021
- choiceElement.style.borderColor = _this.answer.choices.border.inactive_color;
23022
- }
23023
- }
23024
- };
23025
- choiceElement.addEventListener("touchstart", function (e) {
23026
- var _window$ApxorRTM;
23027
- e.stopPropagation();
23028
- if (selectionLocked) return;
23029
- choiceElement.style.transition = "transform 0.1s ease";
23030
- (_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_poll_option_selected", {
23031
- choice_id: choice.id,
23032
- choice_value: choice.value
23033
- });
23034
- setActiveState(true);
23035
- }, {
23036
- passive: false
23037
- });
23038
- choiceElement.addEventListener("touchend", function (e) {
23039
- e.stopPropagation();
23040
- e.preventDefault();
23041
- if (selectionLocked) return;
23042
- selectionLocked = true;
23043
- // setActiveState(false);
23044
- // componentOverlay.remove();
23045
- }, {
23046
- passive: false
23047
- });
23048
- pollContainer.appendChild(choiceElement);
23049
- });
23050
- }
23051
- componentOverlay.appendChild(pollContainer);
23052
- return componentOverlay;
23053
- }
23054
- }]);
23055
- return StoryComponents;
23056
- }();
23057
-
23058
- var data = {
23059
- width: 70,
23060
- height: 100,
23061
- background_color: "#FFFFFF",
23062
- position: {
23063
- position: "C"
23064
- },
23065
- enable_border: true,
23066
- enable_padding: true,
23067
- padding: {
23068
- top: 5,
23069
- right: 5,
23070
- bottom: 5,
23071
- left: 5
23072
- },
23073
- border: {
23074
- radius: 8,
23075
- inactive_color: "#000000",
23076
- color: "#000000",
23077
- width: 0,
23078
- style: "solid"
23079
- },
23080
- title: {
23081
- text: "What is your favourite color?",
23082
- color: "#1a1919ff",
23083
- max_characters: 150,
23084
- alignment: "center",
23085
- font: {
23086
- family: "sans-serif",
23087
- size: 16,
23088
- style: "normal",
23089
- weight: "normal"
23090
- },
23091
- enable_padding: true,
23092
- padding: {
23093
- top: 12,
23094
- bottom: 0,
23095
- left: 0,
23096
- right: 0
23097
- },
23098
- enable_margin: true,
23099
- margin: {
23100
- bottom: 0,
23101
- left: 0,
23102
- right: 0,
23103
- top: 0
23104
- }
23105
- },
23106
- description: {
23107
- text: "Select from the following options",
23108
- color: "#161414ff",
23109
- max_characters: 150,
23110
- alignment: "center",
23111
- font: {
23112
- family: "sans-serif",
23113
- size: 14,
23114
- style: "normal",
23115
- weight: "normal"
23116
- },
23117
- enable_padding: true,
23118
- padding: {
23119
- top: 0,
23120
- bottom: 0,
23121
- left: 0,
23122
- right: 0
23123
- },
23124
- enable_margin: true,
23125
- margin: {
23126
- bottom: 0,
23127
- left: 0,
23128
- right: 0,
23129
- top: 0
23130
- }
23131
- },
23132
- answer: {
23133
- answer_mode: "single_choice",
23134
- choices: {
23135
- color_active: "#E5E5E5",
23136
- color_inactive: "#002845",
23137
- color_disable: "#002845",
23138
- radio_color_active: "#E5E5E5",
23139
- radio_color_inactive: "#002845",
23140
- bg_color_active: "#5965EC",
23141
- bg_color_inactive: "#E5E5E5",
23142
- bg_color_disable: "#E5E5E5",
23143
- bg_type: "filled",
23144
- enable_border: true,
23145
- border: {
23146
- radius: 4,
23147
- inactive_color: "#000000",
23148
- color: "#000000",
23149
- width: 0,
23150
- style: "solid"
23151
- },
23152
- list: [{
23153
- id: 30906,
23154
- value: "red",
23155
- is_other: false,
23156
- next_question_id: -1
23157
- }, {
23158
- id: 50860,
23159
- value: "blue",
23160
- is_other: false,
23161
- next_question_id: -1
23162
- }, {
23163
- id: 63904,
23164
- value: "green",
23165
- is_other: false,
23166
- next_question_id: -1
23167
- }]
23168
- },
23169
- font: {
23170
- family: "sans-serif",
23171
- size: 18,
23172
- style: "normal",
23173
- weight: "normal"
23174
- },
23175
- enable_border: true,
23176
- border: {
23177
- radius: 0,
23178
- inactive_color: "#000000",
23179
- color: "#000000",
23180
- width: 0,
23181
- style: "solid"
23182
- },
23183
- enable_margin: true,
23184
- margin: {
23185
- bottom: 2,
23186
- left: 16,
23187
- right: 16,
23188
- top: 2
23189
- },
23190
- enable_padding: true,
23191
- padding: {
23192
- top: 5,
23193
- bottom: 5,
23194
- left: 0,
23195
- right: 0
23196
- },
23197
- rating: {
23198
- reactions: [],
23199
- buttons: {
23200
- start: 1,
23201
- end: 5,
23202
- type: "numbered",
23203
- split_line: false,
23204
- slider_color: "#000000",
23205
- bg_color_active: "#017DFD",
23206
- bg_color_inactive: "#E5E5E5",
23207
- color_active: "#E5E5E5",
23208
- color_inactive: "#002845",
23209
- height: 20,
23210
- width: 20,
23211
- enable_colors: false,
23212
- buttons: [],
23213
- enable_text: false,
23214
- enable_image: false,
23215
- font: {
23216
- family: "sans-serif",
23217
- size: 16,
23218
- style: "normal",
23219
- weight: "normal"
23220
- },
23221
- enable_fade: false,
23222
- enable_shadow: true,
23223
- shadow: {
23224
- color: "#5EB6CF",
23225
- offset_x: 2,
23226
- offset_y: 2,
23227
- blur_radius: 12,
23228
- spread_radius: 1
23229
- },
23230
- enable_box_model: false,
23231
- box_model: {
23232
- active_color: "#C9CFD5",
23233
- inactive_color: "#8497A5"
23234
- },
23235
- enable_border: true,
23236
- border: {
23237
- radius: 0,
23238
- inactive_color: "#000000",
23239
- color: "#000000",
23240
- width: 0,
23241
- style: "solid"
23242
- },
23243
- enable_padding: true,
23244
- padding: {
23245
- top: 0,
23246
- bottom: 0,
23247
- left: 0,
23248
- right: 0
23249
- },
23250
- enable_margin: true,
23251
- margin: {
23252
- top: 3,
23253
- bottom: 3,
23254
- left: 3,
23255
- right: 3
23256
- }
23257
- },
23258
- enable_labels: true,
23259
- labels: {
23260
- first_rating: {
23261
- position: "top",
23262
- text: {
23263
- text: "Not Likely",
23264
- color: "#B4B1B1",
23265
- background_color: "transparent",
23266
- max_characters: 150,
23267
- alignment: "center",
23268
- font: {
23269
- family: "sans-serif",
23270
- size: 12,
23271
- style: "normal",
23272
- weight: "normal"
23273
- },
23274
- enable_padding: true,
23275
- padding: {
23276
- top: 0,
23277
- bottom: 0,
23278
- left: 0,
23279
- right: 0
23280
- },
23281
- enable_margin: true,
23282
- margin: {
23283
- bottom: 5,
23284
- left: 0,
23285
- right: 0,
23286
- top: 5
23287
- }
23288
- }
23289
- },
23290
- last_rating: {
23291
- position: "bottom",
23292
- text: {
23293
- text: "Very Likely",
23294
- color: "#B4B1B1",
23295
- background_color: "transparent",
23296
- max_characters: 150,
23297
- alignment: "center",
23298
- font: {
23299
- family: "sans-serif",
23300
- size: 12,
23301
- style: "normal",
23302
- weight: "normal"
23303
- },
23304
- enable_padding: true,
23305
- padding: {
23306
- top: 0,
23307
- bottom: 0,
23308
- left: 0,
23309
- right: 0
23310
- },
23311
- enable_margin: true,
23312
- margin: {
23313
- bottom: 5,
23314
- left: 0,
23315
- right: 0,
23316
- top: 5
23317
- }
23318
- }
23319
- }
23320
- },
23321
- q_and_s: []
23322
- }
23323
- }
23324
- };
23325
22865
  var Stories = /*#__PURE__*/function () {
23326
22866
  function Stories(_config, configId, name, position, slidesSeenCount, view_id, showCallback, closeCallback) {
23327
22867
  var _this = this,
@@ -23366,8 +22906,8 @@
23366
22906
  _this.storyContainer.appendChild(currentElement);
23367
22907
  _this.storyContainer.appendChild(slideDetails);
23368
22908
  document.body.appendChild(_this.storyContainer);
23369
- _this.YCkG();
23370
- _this.FBFd();
22909
+ _this.eBFA();
22910
+ _this.sFsa();
23371
22911
  _this.progress = Array.from(document.querySelectorAll(".progress"));
23372
22912
  var current_slide = document.querySelector(".slide-details");
23373
22913
  var playNext = function playNext(e) {
@@ -23413,7 +22953,7 @@
23413
22953
  _existingAbsoluteElements2.forEach(function (element) {
23414
22954
  element.remove();
23415
22955
  });
23416
- // this.YTpx();
22956
+ // this.Yrzz();
23417
22957
  var _currentSlideDetails = document.querySelector(".slide-details");
23418
22958
  _currentSlideDetails.innerHTML = "";
23419
22959
  _this.position = _this.position + 1;
@@ -23509,7 +23049,7 @@
23509
23049
  absolute_header = document.createElement("div");
23510
23050
  current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
23511
23051
  var current_absolute_element;
23512
- current_absolute_element = _this.idIX(current_element);
23052
+ current_absolute_element = _this.mqbK(current_element);
23513
23053
  absolute_header.appendChild(current_absolute_element);
23514
23054
  });
23515
23055
  (_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
@@ -23569,7 +23109,7 @@
23569
23109
  document.body.style.backgroundRepeat = "";
23570
23110
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
23571
23111
  delete updated_layout_without_absolute_elements["absolute_position_children"];
23572
- element = _this.idIX(updated_layout_without_absolute_elements);
23112
+ element = _this.mqbK(updated_layout_without_absolute_elements);
23573
23113
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
23574
23114
  document.body.style.margin = "0px";
23575
23115
  }
@@ -23577,12 +23117,9 @@
23577
23117
  current_slide.removeChild(current_slide.children[0]);
23578
23118
  }
23579
23119
  current_slide.appendChild(element);
23580
- // poll component rendering
23581
- var pollUI = _this.storyPoll.render();
23582
- current_slide.appendChild(pollUI);
23583
- _this.eiDZ();
23120
+ _this.ebsc();
23584
23121
  window.intervalToCheckImgStatus = setInterval(function () {
23585
- if (_this.GFtM()) {
23122
+ if (_this.FZsN()) {
23586
23123
  clearInterval(window.intervalToCheckImgStatus);
23587
23124
  }
23588
23125
  }, 500);
@@ -23610,7 +23147,7 @@
23610
23147
  });
23611
23148
  playNext();
23612
23149
  });
23613
- _defineProperty(this, "YTpx", function () {
23150
+ _defineProperty(this, "Yrzz", function () {
23614
23151
  document.body.classList.add("slide-right");
23615
23152
  var animationEndCounter = 0;
23616
23153
  var onAnimationEnd = function onAnimationEnd() {
@@ -23622,7 +23159,7 @@
23622
23159
  };
23623
23160
  document.body.addEventListener("animationend", onAnimationEnd);
23624
23161
  });
23625
- _defineProperty(this, "idIX", function (config) {
23162
+ _defineProperty(this, "mqbK", function (config) {
23626
23163
  var _window$Apxor4;
23627
23164
  var element;
23628
23165
  var explicit_styles = "";
@@ -23680,7 +23217,7 @@
23680
23217
  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>";
23681
23218
  element.id = "apx-mute-icon";
23682
23219
  element.addEventListener("touchstart", function (event) {
23683
- _this.qqos(event);
23220
+ _this.tHKw(event);
23684
23221
  });
23685
23222
  break;
23686
23223
  case "copy_icon":
@@ -23920,7 +23457,7 @@
23920
23457
  }
23921
23458
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
23922
23459
  config.absolute_position_children.forEach(function (childConfig) {
23923
- var childElement = _this.idIX(childConfig);
23460
+ var childElement = _this.mqbK(childConfig);
23924
23461
  element.appendChild(childElement);
23925
23462
  });
23926
23463
  }
@@ -23928,7 +23465,7 @@
23928
23465
  // Process children
23929
23466
  if (config.children && config.children.length > 0) {
23930
23467
  config.children.forEach(function (childConfig) {
23931
- var childElement = _this.idIX(childConfig);
23468
+ var childElement = _this.mqbK(childConfig);
23932
23469
  element.appendChild(childElement);
23933
23470
  });
23934
23471
  }
@@ -23956,7 +23493,7 @@
23956
23493
  element.appendChild(ElementStyles);
23957
23494
  return element;
23958
23495
  });
23959
- _defineProperty(this, "qqos", function (event) {
23496
+ _defineProperty(this, "tHKw", function (event) {
23960
23497
  var slide_details_to_be_deleted;
23961
23498
  var mute_child_elements;
23962
23499
  var unmute_child_elements;
@@ -23986,11 +23523,11 @@
23986
23523
  }
23987
23524
  // this.muteElement.addEventListener("touchstart", (event) => {
23988
23525
  // event.stopPropagation();
23989
- // this.qqos(event);
23526
+ // this.tHKw(event);
23990
23527
  // });
23991
23528
  }
23992
23529
  });
23993
- _defineProperty(this, "FBFd", function () {
23530
+ _defineProperty(this, "sFsa", function () {
23994
23531
  var tapTimeout;
23995
23532
  var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
23996
23533
  var longPressDuration = 200;
@@ -24114,7 +23651,7 @@
24114
23651
  event.target.dataset.touchStartTime = event.timeStamp;
24115
23652
  });
24116
23653
  });
24117
- _defineProperty(this, "YCkG", function () {
23654
+ _defineProperty(this, "eBFA", function () {
24118
23655
  var startY, startX;
24119
23656
  _this.storyContainer.addEventListener("touchstart", function (event) {
24120
23657
  _this.swipeTouch = true;
@@ -24321,7 +23858,7 @@
24321
23858
  }, 50);
24322
23859
  });
24323
23860
  });
24324
- _defineProperty(this, "eiDZ", function () {
23861
+ _defineProperty(this, "ebsc", function () {
24325
23862
  _this.loader.style.display = "block";
24326
23863
  var progress = Array.from(document.querySelectorAll(".progress"));
24327
23864
  var activeIndex = progress.findIndex(function (el) {
@@ -24337,7 +23874,7 @@
24337
23874
  }
24338
23875
  }
24339
23876
  });
24340
- _defineProperty(this, "DOva", function () {
23877
+ _defineProperty(this, "WQYs", function () {
24341
23878
  if (!_this.continueLoading) {
24342
23879
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
24343
23880
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
@@ -24357,19 +23894,19 @@
24357
23894
  _this.loader.style.display = "none";
24358
23895
  }
24359
23896
  });
24360
- _defineProperty(this, "TzVx", function () {
23897
+ _defineProperty(this, "GtTp", function () {
24361
23898
  if (_this.imageElements.length === 0) return true;
24362
23899
  return _this.imageElements.every(function (img) {
24363
23900
  return img.complete;
24364
23901
  });
24365
23902
  });
24366
- _defineProperty(this, "UhLg", function () {
23903
+ _defineProperty(this, "aJNA", function () {
24367
23904
  if (_this.videoElements.length === 0) return true;
24368
23905
  return _this.videoElements.every(function (video) {
24369
23906
  return video.readyState >= 3;
24370
23907
  });
24371
23908
  });
24372
- _defineProperty(this, "GFtM", function () {
23909
+ _defineProperty(this, "FZsN", function () {
24373
23910
  var bodyStyles = window.getComputedStyle(document.body);
24374
23911
  var backgroundImage = bodyStyles.backgroundImage;
24375
23912
  if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
@@ -24379,7 +23916,7 @@
24379
23916
  var img = new Image();
24380
23917
  img.src = imageUrl;
24381
23918
  if (img.complete) {
24382
- _this.DOva();
23919
+ _this.WQYs();
24383
23920
  return true;
24384
23921
  }
24385
23922
  return false;
@@ -24387,21 +23924,21 @@
24387
23924
  var slide_details_to_be_deleted = document.querySelector(".slide-details");
24388
23925
  var childElements = slide_details_to_be_deleted.querySelectorAll("video");
24389
23926
  if (childElements[0].readyState >= 3) {
24390
- _this.DOva();
23927
+ _this.WQYs();
24391
23928
  return true;
24392
23929
  }
24393
23930
  return false;
24394
23931
  } else {
24395
23932
  if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
24396
- _this.DOva();
23933
+ _this.WQYs();
24397
23934
  return true;
24398
- } else if (_this.TzVx() && _this.UhLg()) {
24399
- _this.DOva();
23935
+ } else if (_this.GtTp() && _this.aJNA()) {
23936
+ _this.WQYs();
24400
23937
  return true;
24401
23938
  }
24402
23939
  }
24403
23940
  });
24404
- _defineProperty(this, "IdQV", function (event, startY, action) {
23941
+ _defineProperty(this, "sWNt", function (event, startY, action) {
24405
23942
  event.stopPropagation();
24406
23943
  var endY = event.changedTouches[0].clientY;
24407
23944
  var deltaY = startY - endY;
@@ -24457,7 +23994,6 @@
24457
23994
  this.closeCallback = closeCallback;
24458
23995
  this.status_bar_height = (_config$position = _config[position]) === null || _config$position === void 0 ? void 0 : _config$position.status_bar_height;
24459
23996
  this.progress_bar = new ProgressBar$1(_config[position].progress_bar);
24460
- this.storyPoll = new StoryComponents(data, this.moveToNextSlide.bind(this));
24461
23997
  this.slides = _config[position].slides;
24462
23998
  if (this.slides.length === this.slidesSeenCount) {
24463
23999
  this.slidesSeenCount = 0;
@@ -24499,7 +24035,7 @@
24499
24035
  this.swipe_action;
24500
24036
  this.continueLoading = false;
24501
24037
  this.boundSwipeUpHandling = function (event) {
24502
- return _this.IdQV(event, _this.startY, _this.swipe_action);
24038
+ return _this.sWNt(event, _this.startY, _this.swipe_action);
24503
24039
  };
24504
24040
  }
24505
24041
  _createClass(Stories, [{
@@ -24563,7 +24099,7 @@
24563
24099
  } else {
24564
24100
  var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM17, _window$ApxorRTM18, _window$ApxorRTM19;
24565
24101
  // Move to the first slide of the next group
24566
- // this.YTpx();
24102
+ // this.Yrzz();
24567
24103
  this.position++;
24568
24104
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
24569
24105
  this.slides = this.config[this.position].slides;
@@ -24689,7 +24225,7 @@
24689
24225
  if (activeIndex === 0) {
24690
24226
  var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM23, _window$ApxorRTM24, _window$ApxorRTM25;
24691
24227
  // If at the first slide of the current group, move to the last slide of the previous group
24692
- // this.YTpx();
24228
+ // this.Yrzz();
24693
24229
  this.position--;
24694
24230
  this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
24695
24231
  this.slides = this.config[this.position].slides;
@@ -24876,28 +24412,25 @@
24876
24412
  // Create custom content
24877
24413
  var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
24878
24414
  delete updated_layout_without_absolute_elements["absolute_position_children"];
24879
- element = this.idIX(updated_layout_without_absolute_elements);
24415
+ element = this.mqbK(updated_layout_without_absolute_elements);
24880
24416
  }
24881
24417
  // Append slide content to slide details container
24882
24418
 
24883
24419
  document.body.style.backgroundColor = current_slide_from_config.media_background_color;
24884
24420
  document.body.style.margin = "0px";
24885
24421
  currentSlideDetails.appendChild(element);
24886
- // poll
24887
- var pollUI = this.storyPoll.render();
24888
- currentSlideDetails.appendChild(pollUI);
24889
- this.eiDZ();
24422
+ this.ebsc();
24890
24423
 
24891
24424
  // Handle absolute position children
24892
24425
  if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
24893
24426
  current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
24894
- var childElement = _this2.idIX(childConfig);
24427
+ var childElement = _this2.mqbK(childConfig);
24895
24428
  // Append absolute position children to slide details container
24896
24429
  currentSlideDetails.appendChild(childElement);
24897
24430
  });
24898
24431
  }
24899
24432
  window.intervalToCheckImgStatus2 = setInterval(function () {
24900
- if (_this2.GFtM()) {
24433
+ if (_this2.FZsN()) {
24901
24434
  clearInterval(window.intervalToCheckImgStatus2);
24902
24435
  }
24903
24436
  }, 500);
@@ -25332,15 +24865,15 @@
25332
24865
  _this$badge$animation2,
25333
24866
  _this$badge$animation3;
25334
24867
  _classCallCheck(this, ApxorBadge);
25335
- _defineProperty(this, "LCqN", function () {
24868
+ _defineProperty(this, "TtiB", function () {
25336
24869
  var delayMillis = _this.delayMillis * 1000;
25337
24870
  _this.shakeAnimationRepeat(_this.interCount, delayMillis);
25338
24871
  });
25339
- _defineProperty(this, "RnAT", function () {
24872
+ _defineProperty(this, "YECE", function () {
25340
24873
  var delayMillis = _this.delayMillis * 1000;
25341
24874
  _this.fadeAnimationRepeat(_this.interCount, delayMillis);
25342
24875
  });
25343
- _defineProperty(this, "Ozvq", function () {
24876
+ _defineProperty(this, "TUQW", function () {
25344
24877
  var _this$targetElement;
25345
24878
  var delayMillis = _this.delayMillis * 1000;
25346
24879
  var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
@@ -25349,7 +24882,7 @@
25349
24882
  (_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
25350
24883
  _this.rippleAnimationRepeat(_this.interCount, delayMillis);
25351
24884
  });
25352
- _defineProperty(this, "AwAA", function () {
24885
+ _defineProperty(this, "IIeg", function () {
25353
24886
  var delayMillis = _this.delayMillis * 1000;
25354
24887
  //let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
25355
24888
  //let badgeAnimationElement = document.querySelector(badgeContainerClass);
@@ -25366,7 +24899,7 @@
25366
24899
  // newstyleNode1.innerHTML = finalStyles;
25367
24900
  // this.targetElement?.appendChild(newstyleNode1);
25368
24901
  });
25369
- _defineProperty(this, "AAlk", function () {
24902
+ _defineProperty(this, "ZzVE", function () {
25370
24903
  var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
25371
24904
  elements === null || elements === void 0 || elements.forEach(function (ele) {
25372
24905
  ele === null || ele === void 0 || ele.remove();
@@ -25375,9 +24908,9 @@
25375
24908
  dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
25376
24909
  ele === null || ele === void 0 || ele.remove();
25377
24910
  });
25378
- _this.sbAR();
24911
+ _this.ffxf();
25379
24912
  });
25380
- _defineProperty(this, "sbAR", function () {
24913
+ _defineProperty(this, "ffxf", function () {
25381
24914
  var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
25382
24915
  // Ensure the target element is the wrapper with class 'image-container'
25383
24916
  if (targetWrapperElement) {
@@ -25401,12 +24934,12 @@
25401
24934
  * @param {boolean} optimized
25402
24935
  * @returns viewId
25403
24936
  */
25404
- _defineProperty(this, "zVVH", function (node, optimized) {
24937
+ _defineProperty(this, "RHpw", function (node, optimized) {
25405
24938
  if (node.nodeType !== Node.ELEMENT_NODE) return "";
25406
24939
  var steps = [];
25407
24940
  var contextNode = node;
25408
24941
  while (contextNode) {
25409
- var step = _this.JUVj(contextNode, !!optimized, contextNode === node);
24942
+ var step = _this.etad(contextNode, !!optimized, contextNode === node);
25410
24943
  if (!step) break; // Error - bail out early.
25411
24944
  steps.push(step);
25412
24945
  if (step.optimized) break;
@@ -25421,7 +24954,7 @@
25421
24954
  * @param {boolean} optimized
25422
24955
  * @param {object} isTargetNode
25423
24956
  */
25424
- _defineProperty(this, "JUVj", function (node, optimized, isTargetNode) {
24957
+ _defineProperty(this, "etad", function (node, optimized, isTargetNode) {
25425
24958
  if (node.nodeType !== Node.ELEMENT_NODE) return null;
25426
24959
  var id = node.getAttribute("id");
25427
24960
  if (optimized) {
@@ -25543,7 +25076,7 @@
25543
25076
  this.contentZindexValue = 1;
25544
25077
  }
25545
25078
  _createClass(ApxorBadge, [{
25546
- key: "HWuf",
25079
+ key: "yKSG",
25547
25080
  value: function createBadge() {
25548
25081
  var _this2 = this;
25549
25082
  var targetFoundCallback = function targetFoundCallback() {
@@ -26360,16 +25893,16 @@
26360
25893
  var RTM = /*#__PURE__*/_createClass(function RTM() {
26361
25894
  var _this = this;
26362
25895
  _classCallCheck(this, RTM);
26363
- _defineProperty(this, "bMVC", {});
25896
+ _defineProperty(this, "SeDT", {});
26364
25897
  _defineProperty(this, "isShowingAction", false);
26365
25898
  _defineProperty(this, "currentAction", null);
26366
- _defineProperty(this, "QVSQ", null);
26367
- _defineProperty(this, "version", 97);
25899
+ _defineProperty(this, "QLCB", null);
25900
+ _defineProperty(this, "version", 910);
26368
25901
  _defineProperty(this, "isInitialised", false);
26369
- _defineProperty(this, "wUgW", {});
26370
- _defineProperty(this, "fMYg", false);
25902
+ _defineProperty(this, "hUXx", {});
25903
+ _defineProperty(this, "pEXG", false);
26371
25904
  _defineProperty(this, "_isShownECCalled", false);
26372
- _defineProperty(this, "DzGl", function () {
25905
+ _defineProperty(this, "LuNb", function () {
26373
25906
  _this.isInitialised = true;
26374
25907
  var oldPushState = history.pushState;
26375
25908
  history.pushState = function pushState() {
@@ -26396,7 +25929,7 @@
26396
25929
  var _window;
26397
25930
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
26398
25931
  if (!_this.isInitialised) {
26399
- _this.DzGl();
25932
+ _this.LuNb();
26400
25933
  }
26401
25934
  window.addEventListener("pagehide", function () {
26402
25935
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -26421,7 +25954,7 @@
26421
25954
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
26422
25955
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
26423
25956
  } else if (ui_config.display_type === "coach_mark_v2") {
26424
- _this.QAps(ui_config, duration, uuid, name);
25957
+ _this.TYOO(ui_config, duration, uuid, name);
26425
25958
  } else {
26426
25959
  showCoachmarkWithDelay(_this, ui_config, {
26427
25960
  configId: uuid,
@@ -26461,7 +25994,7 @@
26461
25994
  });
26462
25995
  _defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
26463
25996
  if (!_this.isInitialised) {
26464
- _this.DzGl();
25997
+ _this.LuNb();
26465
25998
  }
26466
25999
  window.addEventListener("pagehide", function () {
26467
26000
  var _window$Apxor2, _window$Apxor2$pageUn;
@@ -26473,7 +26006,7 @@
26473
26006
  _this.removeBadge(name, uuid);
26474
26007
  }
26475
26008
  var termination_config = JSON.parse(terminationConfig);
26476
- _this.HWuf(ui_config, duration, uuid, name, termination_config);
26009
+ _this.yKSG(ui_config, duration, uuid, name, termination_config);
26477
26010
  });
26478
26011
  _defineProperty(this, "showInApp", function (config, duration, configId, name) {
26479
26012
  try {
@@ -26539,7 +26072,7 @@
26539
26072
  try {
26540
26073
  config = config.split("\n").join("\\n");
26541
26074
  var ui_config = JSON.parse(config);
26542
- _this.auDv(ui_config, configId, name, position, slidesSeenCount, view_id);
26075
+ _this.YQiW(ui_config, configId, name, position, slidesSeenCount, view_id);
26543
26076
  } catch (e) {
26544
26077
  var _window$Apxor4;
26545
26078
  if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
@@ -26553,7 +26086,7 @@
26553
26086
  console.error(e);
26554
26087
  }
26555
26088
  });
26556
- _defineProperty(this, "auDv", function (config, configId, name, position, slidesSeenCount, view_id) {
26089
+ _defineProperty(this, "YQiW", function (config, configId, name, position, slidesSeenCount, view_id) {
26557
26090
  var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
26558
26091
  var _window$ApxorRTM3, _config$additional_in3, _config$additional_in4;
26559
26092
  (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_nudge_shown", {
@@ -26602,7 +26135,7 @@
26602
26135
  var _window22, _window22$updateFlag, _window23;
26603
26136
  _this.isShowingAction = false;
26604
26137
  _this.currentAction = null;
26605
- _this.QVSQ = null;
26138
+ _this.QLCB = null;
26606
26139
  (_window22 = window) === null || _window22 === void 0 || (_window22 = _window22.Apxor) === null || _window22 === void 0 || (_window22$updateFlag = _window22.updateFlag) === null || _window22$updateFlag === void 0 || _window22$updateFlag.call(_window22, false);
26607
26140
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
26608
26141
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -26613,21 +26146,21 @@
26613
26146
  }
26614
26147
  };
26615
26148
  if (action_class === "new-inline") {
26616
- _this.QVSQ = new InLineTooltip(ui_config, [], [], terminationConfig, {
26149
+ _this.QLCB = new InLineTooltip(ui_config, [], [], terminationConfig, {
26617
26150
  configId: uuid,
26618
26151
  configName: name
26619
26152
  }, _this, onShow, onHide, function () {}, false, 0);
26620
26153
  } else if (action_class === "tooltip_builder") {
26621
- _this.QVSQ = new NewInLineTooltip(ui_config, terminationConfig, {
26154
+ _this.QLCB = new NewInLineTooltip(ui_config, terminationConfig, {
26622
26155
  configId: uuid,
26623
26156
  configName: name
26624
26157
  }, _this, onShow, onHide);
26625
26158
  }
26626
26159
  setTimeout(function () {
26627
- _this.QVSQ.createNewTooltip();
26160
+ _this.QLCB.createNewTooltip();
26628
26161
  }, ui_config.delay);
26629
26162
  });
26630
- _defineProperty(this, "QAps", function (ui_config, duration, uuid, name) {
26163
+ _defineProperty(this, "TYOO", function (ui_config, duration, uuid, name) {
26631
26164
  var terminationConfig = {};
26632
26165
  terminationConfig["auto_dismiss"] = duration > 0;
26633
26166
  terminationConfig["duration"] = duration;
@@ -26651,7 +26184,7 @@
26651
26184
  var _window27, _window27$updateFlag, _window28;
26652
26185
  _this.isShowingAction = false;
26653
26186
  _this.currentAction = null;
26654
- _this.QVSQ = null;
26187
+ _this.QLCB = null;
26655
26188
  (_window27 = window) === null || _window27 === void 0 || (_window27 = _window27.Apxor) === null || _window27 === void 0 || (_window27$updateFlag = _window27.updateFlag) === null || _window27$updateFlag === void 0 || _window27$updateFlag.call(_window27, false);
26656
26189
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
26657
26190
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -26663,7 +26196,7 @@
26663
26196
  }, _this.stepperCallback, false, 0);
26664
26197
  _this._currentCoachmark.createNewCoachMark();
26665
26198
  });
26666
- _defineProperty(this, "HWuf", function (ui_config, duration, uuid, name, terminationConfig) {
26199
+ _defineProperty(this, "yKSG", function (ui_config, duration, uuid, name, terminationConfig) {
26667
26200
  _this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
26668
26201
  configId: uuid,
26669
26202
  configName: name
@@ -26680,12 +26213,12 @@
26680
26213
  }
26681
26214
  }
26682
26215
  });
26683
- _this._currentBadge.AAlk();
26684
- _this._currentBadge.HWuf();
26216
+ _this._currentBadge.ZzVE();
26217
+ _this._currentBadge.yKSG();
26685
26218
  });
26686
26219
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
26687
- if (_this.QVSQ) {
26688
- _this.QVSQ.updateElementPositionOnScroll(top, left, height, width);
26220
+ if (_this.QLCB) {
26221
+ _this.QLCB.updateElementPositionOnScroll(top, left, height, width);
26689
26222
  }
26690
26223
  });
26691
26224
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -26820,10 +26353,10 @@
26820
26353
  });
26821
26354
  _defineProperty(this, "showPlaceHolder", function () {
26822
26355
  var _window38;
26823
- if (_this.fMYg) {
26356
+ if (_this.pEXG) {
26824
26357
  return;
26825
26358
  }
26826
- _this.fMYg = true;
26359
+ _this.pEXG = true;
26827
26360
  var ele = document.createElement("div");
26828
26361
  ele.innerHTML = "place your immersive card here";
26829
26362
  ele.style.backgroundColor = "#f5f5f5";