apxor-rtm-ui 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7777,7 +7777,7 @@
7777
7777
  // dummySpan.style.display = "none";
7778
7778
  var styleElement = document.createElement("style");
7779
7779
  styleElement.setAttribute("id", "apxor-style-" + configId + "-step-" + index);
7780
- styleElement.innerHTML = "\n #shepherdModalOverlayContainer {\n -ms-filter: \"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)\";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: ".concat(dim_background_opacity !== null && dim_background_opacity !== void 0 ? dim_background_opacity : 0.5, ";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(dim_background_color !== null && dim_background_color !== void 0 ? dim_background_color : "transparent", "\n }\n #shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n }\n .shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n }\n .shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n }\n .shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n }\n .tippy-popper.shepherd {\n z-index: 999999\n }\n .tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n }\n .tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n }\n .tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n }\n .tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n }\n .tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding-top:0px;padding-bottom:0px;text-align: left;max-width: calc(").concat(Math.ceil(fontMultiplier * 400), "px); overflow-wrap: break-word;\n }\n .shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n }\n .shepherd-element {\n outline: none;\n }\n .shepherd-element .shepherd-content header {\n border-top-left-radius: 5px;border-top-right-radius: 5px;\n line-height: 2em;").concat(show_close_icon ? "padding: .75em;" : "", "\n background: ").concat(bg_color, ";\n }\n .shepherd-element .shepherd-content header:after {\n clear: both;content: \"\";display: table\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n }\n\n .shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: \"\xD7\"\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n }\n .shepherd-element .shepherd-content .shepherd-text {\n text-align:").concat(text_alignment, ";\n line-height: 1em;\n padding:14px\n }\n .shepherd-element .shepherd-content .shepherd-text a,\n .shepherd-element .shepherd-content .shepherd-text a:active,\n .shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(textContentCSS["color"], ";\n opacity: 0.75;text-decoration: none\n }\n .shepherd-element .shepherd-content .shepherd-text a:active:hover, \n .shepherd-element .shepherd-content .shepherd-text a:hover,\n .shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n }\n .shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n }\n .shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n }\n .shepherd-content > .shepherd-text p {\n font-size: ").concat(textContentCSS["fontSize"], "px;font-family: ").concat(textContentCSS["fontFamily"], "; \n font-weight: ").concat(textContentCSS["fontStyle"] !== "bold" ? "normal" : textContentCSS["fontStyle"], ";\n font-style: ").concat(textContentCSS["fontStyle"] === "italic" ? "italic" : "unset", ";\n color: ").concat(textContentCSS["color"], ";line-height:\n ").concat(textContentCSS["fontSize"], "px;letter-spacing:0.01em;\n }\n\n @-webkit-keyframes cycle {\n 0% { transform: ").concat(translateDir(position, 0), "; }\n 50% { transform: ").concat(translateDir(position, 50), "; }\n 100% { transform: ").concat(translateDir(position, 100), "; }\n }\n @keyframes cycle {\n 0% { transform: ").concat(translateDir(position, 0), "; }\n 50% { transform: ").concat(translateDir(position, 50), "; }\n 100% { transform: ").concat(translateDir(position, 100), "; }\n }\n .tippy-tooltip.apxor-").concat(configId, "-step-").concat(index, "-theme {\n animation :").concat(animation["enabled"] ? animation["type"] + " " + animation["duration"] + "ms" : "none", ";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(show_shadow ? shadow : "none", ";color: ").concat(textContentCSS["color"], ";\n opacity: ").concat(opacity, ";border-radius: ").concat(tooltipCSS["border-radius"] + "px", ";\n background-color: ").concat(tooltipCSS["background"], ";").concat(getPropertyFrom(position), ";\n }\n .apxor-").concat(configId, "-step-").concat(index, "-theme .tippy-roundarrow {\n fill: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(tooltipCSS["background"], ";\n }\n .shepherd-element .shepherd-content footer .shepherd-button {\n display: inline-block;\n vertical-align: middle;\n border: 0;border-radius: 3px;cursor: pointer;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n .shepherd-element .shepherd-content footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat(button_direction === DIRECTION.HORIZONTAL ? "row" : "column", ";\n \n align-items:center;\n justify-content: ").concat(button_direction === DIRECTION.HORIZONTAL ? getButtonPosition(button_position) : "space-evenly", ";\n padding: 0 .8em .8em;\n background: ").concat(bg_color, ";\n }\n ");
7780
+ styleElement.innerHTML = "\n #shepherdModalOverlayContainer {\n -ms-filter: \"progid:dximagetransform.microsoft.gradient.alpha(Opacity=50)\";\n filter: alpha(opacity=50);height: 100vh;left: 0;opacity: ".concat(dim_background_opacity !== null && dim_background_opacity !== void 0 ? dim_background_opacity : 0.5, ";position: fixed;\n top: 0;transition: all .3s ease-out;width: 100vw;z-index: 9997;fill: ").concat(dim_background_color !== null && dim_background_color !== void 0 ? dim_background_color : "transparent", "\n }\n #shepherdModalOverlayContainer #shepherdModalMask, #shepherdModalOverlayContainer #shepherdModalMaskRect {\n height: 100vh;width: 100vw\n }\n .shepherd-modal.shepherd-enabled {\n position: relative;z-index: 9998\n }\n .shepherd-active.shepherd-modal-is-visible :not(.shepherd-target) {\n pointer-events: none\n }\n .shepherd-active.shepherd-modal-is-visible .shepherd-button, .shepherd-active.shepherd-modal-is-visible .shepherd-button *, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link, .shepherd-active.shepherd-modal-is-visible .shepherd-cancel-link *, .shepherd-active.shepherd-modal-is-visible .shepherd-element, .shepherd-active.shepherd-modal-is-visible .shepherd-element *, .shepherd-active.shepherd-modal-is-visible .shepherd-target, .shepherd-active.shepherd-modal-is-visible .shepherd-target * {\n pointer-events: auto\n }\n .tippy-popper.shepherd {\n z-index: 999999\n }\n .tippy-popper.shepherd[x-placement^=top] {\n margin-top: 0px\n }\n .tippy-popper.shepherd[x-placement^=bottom] {\n margin-top: 8px\n }\n .tippy-popper.shepherd[x-placement^=left] {\n margin-right: 0px\n }\n .tippy-popper.shepherd[x-placement^=right] {\n margin-left: 0px\n }\n .tippy-popper.shepherd .tippy-tooltip .tippy-content {\n max-height: 100%;padding-top:0px;padding-bottom:0px;text-align: left;max-width: calc(").concat(Math.ceil(fontMultiplier * 400), "px); overflow-wrap: break-word;\n }\n .shepherd-element, .shepherd-element *, .shepherd-element:after, .shepherd-element :after, .shepherd-element:before, .shepherd-element :before {\n box-sizing: border-box\n }\n .shepherd-element {\n outline: none;\n }\n .shepherd-element .shepherd-content header {\n border-top-left-radius: 5px;border-top-right-radius: 5px;\n line-height: 2em;").concat(show_close_icon ? "padding: .75em;" : "", "\n background: ").concat(bg_color, ";\n box-shadow: none;\n }\n .shepherd-element .shepherd-content header:after {\n clear: both;content: \"\";display: table\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link, .shepherd-element .shepherd-content header .shepherd-title {\n margin: 0;padding: 0;position: relative;vertical-align: middle\n }\n\n .shepherd-element .shepherd-content header .shepherd-cancel-link {\n color: hsla(0, 0%, 70.2%, .75);font-size: 2em;margin-left: auto;\n text-decoration: none;transition: color .5s ease\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link:before {\n mix-blend-mode: screen;content: \"\xD7\"\n }\n .shepherd-element .shepherd-content header .shepherd-cancel-link:hover {\n mix-blend-mode: difference;\n }\n .shepherd-element .shepherd-content .shepherd-text {\n text-align:").concat(text_alignment, ";\n line-height: 1em;\n padding:14px\n }\n .shepherd-element .shepherd-content .shepherd-text a,\n .shepherd-element .shepherd-content .shepherd-text a:active,\n .shepherd-element .shepherd-content .shepherd-text a:visited {\n border-bottom: 1px dotted rgba(0, 0, 0, .75);color: ").concat(textContentCSS["color"], ";\n opacity: 0.75;text-decoration: none\n }\n .shepherd-element .shepherd-content .shepherd-text a:active:hover, \n .shepherd-element .shepherd-content .shepherd-text a:hover,\n .shepherd-element .shepherd-content .shepherd-text a:visited:hover {\n border-bottom-style: solid\n }\n .shepherd-element .shepherd-content .shepherd-text p {\n margin-top: 0\n }\n .shepherd-element .shepherd-content .shepherd-text p:last-child {\n margin-bottom: 0\n }\n .shepherd-content > .shepherd-text p {\n font-size: ").concat(textContentCSS["fontSize"], "px;font-family: ").concat(textContentCSS["fontFamily"], "; \n font-weight: ").concat(textContentCSS["fontStyle"] !== "bold" ? "normal" : textContentCSS["fontStyle"], ";\n font-style: ").concat(textContentCSS["fontStyle"] === "italic" ? "italic" : "unset", ";\n color: ").concat(textContentCSS["color"], ";line-height:\n ").concat(textContentCSS["fontSize"], "px;letter-spacing:0.01em;\n }\n\n @-webkit-keyframes cycle {\n 0% { transform: ").concat(translateDir(position, 0), "; }\n 50% { transform: ").concat(translateDir(position, 50), "; }\n 100% { transform: ").concat(translateDir(position, 100), "; }\n }\n @keyframes cycle {\n 0% { transform: ").concat(translateDir(position, 0), "; }\n 50% { transform: ").concat(translateDir(position, 50), "; }\n 100% { transform: ").concat(translateDir(position, 100), "; }\n }\n .tippy-tooltip.apxor-").concat(configId, "-step-").concat(index, "-theme {\n animation :").concat(animation["enabled"] ? animation["type"] + " " + animation["duration"] + "ms" : "none", ";\n animation-timing-function: ease-in-out;animation-iteration-count: infinite;\n box-shadow: ").concat(show_shadow ? shadow : "none", ";color: ").concat(textContentCSS["color"], ";\n opacity: ").concat(opacity, ";border-radius: ").concat(tooltipCSS["border-radius"] + "px", ";\n background-color: ").concat(tooltipCSS["background"], ";").concat(getPropertyFrom(position), ";\n }\n .apxor-").concat(configId, "-step-").concat(index, "-theme .tippy-roundarrow {\n fill: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='top'] .tippy-arrow {\n border-top-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='bottom'] .tippy-arrow {\n border-bottom-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='left'] .tippy-arrow {\n border-left-color: ").concat(tooltipCSS["background"], ";\n }\n .tippy-tooltip[data-placement^='right'] .tippy-arrow {\n border-right-color: ").concat(tooltipCSS["background"], ";\n }\n .shepherd-element .shepherd-content footer .shepherd-button {\n display: inline-block;\n vertical-align: middle;\n border: 0;border-radius: 3px;cursor: pointer;font-family: inherit;\n font-size: .8em;letter-spacing: .01em;line-height: 18px;margin-right: 12px;\n padding: 8px 16px;text-transform: none;transition: all .5s ease\n }\n .shepherd-element .shepherd-content footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n display: flex;\n flex-direction:").concat(button_direction === DIRECTION.HORIZONTAL ? "row" : "column", ";\n \n align-items:center;\n justify-content: ").concat(button_direction === DIRECTION.HORIZONTAL ? getButtonPosition(button_position) : "space-evenly", ";\n padding: 0 .8em .8em;\n background: ").concat(bg_color, ";\n }\n ");
7781
7781
  if (Object.keys(title_config).length > 0) {
7782
7782
  //display: flex;
7783
7783
  //padding: .7em;
@@ -7884,6 +7884,14 @@
7884
7884
  targetElement.removeEventListener("click", clickListener);
7885
7885
  };
7886
7886
  var scrolledToView = false;
7887
+ if (isElementInViewport(targetElement)) {
7888
+ if (isElementCovered(targetElement)) {
7889
+ var _window3, _window3$updateFlag;
7890
+ console.info("The tooltip is not visible because another element is overlapping the target element.");
7891
+ (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.Apxor) === null || _window3 === void 0 || (_window3$updateFlag = _window3.updateFlag) === null || _window3$updateFlag === void 0 || _window3$updateFlag.call(_window3, false);
7892
+ return;
7893
+ }
7894
+ }
7887
7895
 
7888
7896
  // Add MutationObserver to the target element
7889
7897
  var targetDeletionObserver = new MutationObserver(function () {
@@ -7910,6 +7918,12 @@
7910
7918
  }
7911
7919
  if (elementInViewPort) {
7912
7920
  scrolledToView = true;
7921
+ if (isElementCovered(targetElement)) {
7922
+ var _window4, _window4$updateFlag;
7923
+ console.info("The tooltip is not visible because another element is overlapping the target element.");
7924
+ (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.Apxor) === null || _window4 === void 0 || (_window4$updateFlag = _window4.updateFlag) === null || _window4$updateFlag === void 0 || _window4$updateFlag.call(_window4, false);
7925
+ return;
7926
+ }
7913
7927
  }
7914
7928
  });
7915
7929
  if (dismiss_outside_touch === true) {
@@ -7951,12 +7965,12 @@
7951
7965
  escapeWithReference: escapeWithReference,
7952
7966
  theme: "apxor-".concat(configId, "-step-").concat(index),
7953
7967
  onShow: function onShow() {
7954
- var _window3, _window3$updateFlag;
7955
- (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.Apxor) === null || _window3 === void 0 || (_window3$updateFlag = _window3.updateFlag) === null || _window3$updateFlag === void 0 || _window3$updateFlag.call(_window3, true);
7968
+ var _window5, _window5$updateFlag;
7969
+ (_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$updateFlag = _window5.updateFlag) === null || _window5$updateFlag === void 0 || _window5$updateFlag.call(_window5, true);
7956
7970
  window.Apxor.logActionEvent("inline_shown", configId, configName);
7957
7971
  if (is_preview) setTimeout(function () {
7958
- var _window4, _window4$logInternalE;
7959
- (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.Apxor) === null || _window4 === void 0 || (_window4$logInternalE = _window4.logInternalEvent) === null || _window4$logInternalE === void 0 || _window4$logInternalE.call(_window4, "capt");
7972
+ var _window6, _window6$logInternalE;
7973
+ (_window6 = window) === null || _window6 === void 0 || (_window6 = _window6.Apxor) === null || _window6 === void 0 || (_window6$logInternalE = _window6.logInternalEvent) === null || _window6$logInternalE === void 0 || _window6$logInternalE.call(_window6, "capt");
7960
7974
  }, 500);
7961
7975
  window.Apxor.updateCount(configId);
7962
7976
  rtmInstance.isShowingAction = true;
@@ -8015,10 +8029,6 @@
8015
8029
  console.warn("Width and height are 0 for: ", view_id, ". Can't show");
8016
8030
  return;
8017
8031
  }
8018
- if (isElementCovered(element)) {
8019
- console.info("The tooltip is not visible because another element is overlapping the target element.");
8020
- return;
8021
- }
8022
8032
  } catch (e) {
8023
8033
  console.error(e);
8024
8034
  }
@@ -8080,7 +8090,11 @@
8080
8090
  ApxorWalkthroughTour.complete();
8081
8091
  }, delay + terminationConfig["duration"]);
8082
8092
  }
8083
- return ApxorWalkthroughTour.complete;
8093
+ var dismiss_callback = function dismiss_callback() {
8094
+ window.Apxor.logActionEvent("inline_dismissed", messageConfig.configId, messageConfig.configName);
8095
+ ApxorWalkthroughTour.complete();
8096
+ };
8097
+ return dismiss_callback;
8084
8098
  };
8085
8099
 
8086
8100
  var DEFAULT_PADDING = 5;
@@ -13162,7 +13176,7 @@
13162
13176
  * @description Creates the styles for Marketing message.
13163
13177
  * @returns {string} css styles
13164
13178
  */
13165
- _defineProperty(this, "doHz", function () {
13179
+ _defineProperty(this, "pxOH", function () {
13166
13180
  if (!_this.enable_marketing) {
13167
13181
  return "";
13168
13182
  }
@@ -13181,7 +13195,7 @@
13181
13195
  * @private
13182
13196
  * @description Sets the marketing content at the end of the Inline
13183
13197
  */
13184
- _defineProperty(this, "rIoA", function () {
13198
+ _defineProperty(this, "fWiS", function () {
13185
13199
  if (_this.enable_marketing) {
13186
13200
  var marketingContainer = document.createElement("div");
13187
13201
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -13742,7 +13756,7 @@
13742
13756
  if (apxor_tooltip_styles) {
13743
13757
  return;
13744
13758
  }
13745
- 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.doHz(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
13759
+ 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.pxOH(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
13746
13760
  var styleNode = document.createElement("style");
13747
13761
  styleNode.setAttribute("apx-tooltip-styles", "");
13748
13762
  styleNode.innerHTML = styles;
@@ -14545,7 +14559,7 @@
14545
14559
  this._setCloseButton();
14546
14560
 
14547
14561
  //Set the Marketing content
14548
- this.rIoA();
14562
+ this.fWiS();
14549
14563
  }
14550
14564
 
14551
14565
  /**
@@ -15508,7 +15522,7 @@
15508
15522
  * @description Creates the styles for Marketing message.
15509
15523
  * @returns {string} css styles
15510
15524
  */
15511
- _defineProperty(this, "doHz", function () {
15525
+ _defineProperty(this, "pxOH", function () {
15512
15526
  if (!_this.enable_marketing) {
15513
15527
  return "";
15514
15528
  }
@@ -15554,7 +15568,7 @@
15554
15568
  * @private
15555
15569
  * @description Get the response for Form content in the InApp modal.
15556
15570
  */
15557
- _defineProperty(this, "cePq", function (form_elements) {
15571
+ _defineProperty(this, "Bdvl", function (form_elements) {
15558
15572
  var obj = {};
15559
15573
  var callback = "";
15560
15574
  form_elements.forEach(function (element) {
@@ -15594,7 +15608,7 @@
15594
15608
  * @private
15595
15609
  * @description Sets the marketing content at the end of the InApp
15596
15610
  */
15597
- _defineProperty(this, "rIoA", function () {
15611
+ _defineProperty(this, "fWiS", function () {
15598
15612
  if (_this.enable_marketing) {
15599
15613
  var marketingContainer = document.createElement("div");
15600
15614
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -15847,7 +15861,7 @@
15847
15861
  }, {
15848
15862
  key: "_setStyles",
15849
15863
  value: function _setStyles() {
15850
- 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.doHz(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15864
+ 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.pxOH(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
15851
15865
  var styleNode = document.createElement("style");
15852
15866
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
15853
15867
  styleNode.innerHTML = styles;
@@ -16324,7 +16338,7 @@
16324
16338
  this._setCloseButton();
16325
16339
 
16326
16340
  //Set the Marketing content
16327
- this.rIoA();
16341
+ this.fWiS();
16328
16342
  }
16329
16343
 
16330
16344
  /**
@@ -16525,7 +16539,7 @@
16525
16539
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
16526
16540
  form.addEventListener("submit", function (e) {
16527
16541
  e.preventDefault();
16528
- var _this4$generateRespon = _this4.cePq(_this4.form.elements),
16542
+ var _this4$generateRespon = _this4.Bdvl(_this4.form.elements),
16529
16543
  obj = _this4$generateRespon.obj,
16530
16544
  callback = _this4$generateRespon.callback;
16531
16545
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -16838,7 +16852,7 @@
16838
16852
  * @function showVideoInApp
16839
16853
  * @description Shows the video InApp with the configured mode.
16840
16854
  */
16841
- _defineProperty(this, "kIKS", function () {
16855
+ _defineProperty(this, "UOWB", function () {
16842
16856
  _this.createPlayer();
16843
16857
  try {
16844
16858
  // In PIP mode, only after the video metadata is loaded, show the PIP.
@@ -16880,7 +16894,7 @@
16880
16894
  };
16881
16895
  } else {
16882
16896
  // As the video player is hidden by default, unhide if the mode is not PIP.
16883
- _this.Lmfb();
16897
+ _this.VXvG();
16884
16898
  }
16885
16899
  _this.showCallback();
16886
16900
  } catch (e) {
@@ -16900,7 +16914,7 @@
16900
16914
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
16901
16915
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
16902
16916
  */
16903
- _defineProperty(this, "hLDl", function () {
16917
+ _defineProperty(this, "zliy", function () {
16904
16918
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
16905
16919
  width = _getHeightWidthFromRe.width,
16906
16920
  height = _getHeightWidthFromRe.height;
@@ -16912,7 +16926,7 @@
16912
16926
  * @private
16913
16927
  * @description Removes the video player style element.
16914
16928
  */
16915
- _defineProperty(this, "Oxfr", function () {
16929
+ _defineProperty(this, "zwkt", function () {
16916
16930
  var playerStyles = document.getElementById("apx-mpl-styles");
16917
16931
  if (playerStyles) {
16918
16932
  playerStyles.remove();
@@ -16923,7 +16937,7 @@
16923
16937
  * @private
16924
16938
  * @description Attach listeners on the video controls
16925
16939
  */
16926
- _defineProperty(this, "JuPs", function () {
16940
+ _defineProperty(this, "Tazp", function () {
16927
16941
  // Listener for the video end. Display the CTA's when the video ends.
16928
16942
  _this.videoElement.addEventListener("ended", function () {
16929
16943
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -17034,7 +17048,7 @@
17034
17048
  * @private
17035
17049
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
17036
17050
  */
17037
- _defineProperty(this, "GBDb", function () {
17051
+ _defineProperty(this, "hitN", function () {
17038
17052
  var _this$terminationConf;
17039
17053
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
17040
17054
  // On Exit of the PIP,
@@ -17074,7 +17088,7 @@
17074
17088
  * @private Sets the custom controls on the video player.
17075
17089
  * PIP and close are the custom controls that are created and positions on the video.
17076
17090
  */
17077
- _defineProperty(this, "MRUu", function () {
17091
+ _defineProperty(this, "FDtb", function () {
17078
17092
  _this.enable_close_button;
17079
17093
  if (_this.enable_close_button) {
17080
17094
  var closeButton = document.createElement("span");
@@ -17121,21 +17135,21 @@
17121
17135
  * @function hideVideoPlayer
17122
17136
  * @description Sets the visibility of the video player to hidden.
17123
17137
  */
17124
- _defineProperty(this, "baBn", function () {
17138
+ _defineProperty(this, "EILB", function () {
17125
17139
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
17126
17140
  });
17127
17141
  /**
17128
17142
  * @function unhideVideoPlayer
17129
17143
  * @description Unhides video player.
17130
17144
  */
17131
- _defineProperty(this, "Lmfb", function () {
17145
+ _defineProperty(this, "VXvG", function () {
17132
17146
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
17133
17147
  });
17134
17148
  /**
17135
17149
  * @function getVideoElement
17136
17150
  * @returns {HTMLElement} Video ekement
17137
17151
  */
17138
- _defineProperty(this, "CkwO", function () {
17152
+ _defineProperty(this, "rWQg", function () {
17139
17153
  return _this.videoElement;
17140
17154
  });
17141
17155
  this.videoPlayer = null;
@@ -17187,7 +17201,7 @@
17187
17201
  this.videoPlayer.style.backgroundColor = this.bg_color;
17188
17202
 
17189
17203
  // Video has a resolution, not deviating from the resolution set the height and width.
17190
- this.hLDl();
17204
+ this.zliy();
17191
17205
  //Generate the styles and add them to the document head.
17192
17206
  this._setVideoPlayerStyles();
17193
17207
  //Set the position of the video player with in the 5 possible positions.
@@ -17195,16 +17209,16 @@
17195
17209
  //Create a video element,set the source and add to the container.
17196
17210
  this._setPlayerContent();
17197
17211
  //Set the listeners on the video control buttons.
17198
- this.JuPs();
17212
+ this.Tazp();
17199
17213
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
17200
- this.GBDb();
17214
+ this.hitN();
17201
17215
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
17202
17216
  //Reason - We want to position them at the top right and left positions.
17203
- this.MRUu();
17217
+ this.FDtb();
17204
17218
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
17205
17219
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
17206
17220
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
17207
- this.baBn();
17221
+ this.EILB();
17208
17222
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
17209
17223
  this._setAutoTerminate();
17210
17224
  document.body.appendChild(this.videoPlayer);
@@ -17314,7 +17328,7 @@
17314
17328
  }
17315
17329
  }
17316
17330
  this.videoPlayer.remove();
17317
- this.Oxfr();
17331
+ this.zwkt();
17318
17332
  if (closeButtonName !== "auto_dismiss") {
17319
17333
  window.Apxor.logAppEvent("apx_video_inapp_close_button_clicked", {
17320
17334
  message_name: this.name,
@@ -17382,7 +17396,7 @@
17382
17396
  replayCount: _this3.replayCount
17383
17397
  });
17384
17398
  _this3.videoPlayer.remove();
17385
- _this3.Oxfr();
17399
+ _this3.zwkt();
17386
17400
  _this3.hideCallback();
17387
17401
  } catch (e) {
17388
17402
  console.log("Can't close the video player\n".concat(e));
@@ -17470,14 +17484,14 @@
17470
17484
  var RTM = /*#__PURE__*/_createClass(function RTM() {
17471
17485
  var _this = this;
17472
17486
  _classCallCheck(this, RTM);
17473
- _defineProperty(this, "YgiF", {});
17487
+ _defineProperty(this, "Ihbh", {});
17474
17488
  _defineProperty(this, "isShowingAction", false);
17475
17489
  _defineProperty(this, "currentAction", null);
17476
- _defineProperty(this, "lwdK", null);
17477
- _defineProperty(this, "version", 40);
17490
+ _defineProperty(this, "SzQk", null);
17491
+ _defineProperty(this, "version", 41);
17478
17492
  _defineProperty(this, "isInitialised", false);
17479
17493
  _defineProperty(this, "_eventsInDynamicText", {});
17480
- _defineProperty(this, "qtBM", function () {
17494
+ _defineProperty(this, "WXYo", function () {
17481
17495
  _this.isInitialised = true;
17482
17496
  var oldPushState = history.pushState;
17483
17497
  history.pushState = function pushState() {
@@ -17502,7 +17516,7 @@
17502
17516
  });
17503
17517
  _defineProperty(this, "show", function (uiJson, duration, uuid, name) {
17504
17518
  if (!_this.isInitialised) {
17505
- _this.qtBM();
17519
+ _this.WXYo();
17506
17520
  }
17507
17521
  window.addEventListener("pagehide", function () {
17508
17522
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -17584,7 +17598,7 @@
17584
17598
  var terminationConfig = {};
17585
17599
  terminationConfig["auto_dismiss"] = duration > 0;
17586
17600
  terminationConfig["duration"] = duration;
17587
- _this.lwdK = new InLineTooltip(ui_config, [], [], terminationConfig, {
17601
+ _this.SzQk = new InLineTooltip(ui_config, [], [], terminationConfig, {
17588
17602
  configId: uuid,
17589
17603
  configName: name
17590
17604
  }, _this, function () {
@@ -17604,14 +17618,14 @@
17604
17618
  var _window8, _window8$updateFlag;
17605
17619
  _this.isShowingAction = false;
17606
17620
  _this.currentAction = null;
17607
- _this.lwdK = null;
17621
+ _this.SzQk = null;
17608
17622
  (_window8 = window) === null || _window8 === void 0 || (_window8 = _window8.Apxor) === null || _window8 === void 0 || (_window8$updateFlag = _window8.updateFlag) === null || _window8$updateFlag === void 0 || _window8$updateFlag.call(_window8, false);
17609
17623
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
17610
17624
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
17611
17625
  }
17612
17626
  }, function () {}, false, 0);
17613
17627
  setTimeout(function () {
17614
- _this.lwdK.createNewTooltip();
17628
+ _this.SzQk.createNewTooltip();
17615
17629
  }, ui_config.delay);
17616
17630
  });
17617
17631
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -17641,7 +17655,7 @@
17641
17655
  window.Apxor.logActionEvent("inapp_dismissed", configId, name);
17642
17656
  }
17643
17657
  });
17644
- VideoInAppInstance.kIKS();
17658
+ VideoInAppInstance.UOWB();
17645
17659
  });
17646
17660
  /**
17647
17661
  * Creates a modal for the given config and displays it.