apxor-rtm-ui 0.5.0 → 0.5.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.
- package/dist/apxor.rtm.js.bak +112 -76
- package/dist/apxor.rtm.min.js +1 -1
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -8007,7 +8007,7 @@
|
|
|
8007
8007
|
scrollToView = _uiConfig$scrollToVie === void 0 ? true : _uiConfig$scrollToVie;
|
|
8008
8008
|
var scrollTo = false;
|
|
8009
8009
|
// when dim-dim_background is true and scrollToView is false and element is not in viewport then a black mask is applied to the webview and scrolling behaviour doesn't work, to resolve it the below case is written.
|
|
8010
|
-
if (dim_background) {
|
|
8010
|
+
if (dim_background && !isElementInViewport(getElementFromSelector(view_id))) {
|
|
8011
8011
|
scrollTo = {
|
|
8012
8012
|
behavior: "smooth",
|
|
8013
8013
|
block: "center"
|
|
@@ -11464,6 +11464,7 @@
|
|
|
11464
11464
|
modalOverlayMaskOpening: "tippyModalMaskOpening"
|
|
11465
11465
|
};
|
|
11466
11466
|
var createMask = function createMask(targetElement, elementHighlighterConfig) {
|
|
11467
|
+
var _screen;
|
|
11467
11468
|
var containerElement = _createModalContainer$1();
|
|
11468
11469
|
var defsElement = document.createElementNS(svgNS$1, "defs");
|
|
11469
11470
|
var maskContainer = _createMaskContainer$1();
|
|
@@ -11477,7 +11478,7 @@
|
|
|
11477
11478
|
//setAttributes(maskOpening, { "scroll-behavior": "smooth" });
|
|
11478
11479
|
});
|
|
11479
11480
|
|
|
11480
|
-
screen.orientation.addEventListener("change", function () {
|
|
11481
|
+
(_screen = screen) === null || _screen === void 0 || (_screen = _screen.orientation) === null || _screen === void 0 || _screen.addEventListener("change", function () {
|
|
11481
11482
|
positionModalOpening$1(targetElement, maskOpening, maskOpeningBorderStyles, elementHighlighterConfig);
|
|
11482
11483
|
});
|
|
11483
11484
|
maskContainer.appendChild(maskRect);
|
|
@@ -13183,7 +13184,7 @@
|
|
|
13183
13184
|
* @description Creates the styles for Marketing message.
|
|
13184
13185
|
* @returns {string} css styles
|
|
13185
13186
|
*/
|
|
13186
|
-
_defineProperty(this, "
|
|
13187
|
+
_defineProperty(this, "AccS", function () {
|
|
13187
13188
|
if (!_this.enable_marketing) {
|
|
13188
13189
|
return "";
|
|
13189
13190
|
}
|
|
@@ -13202,7 +13203,7 @@
|
|
|
13202
13203
|
* @private
|
|
13203
13204
|
* @description Sets the marketing content at the end of the Inline
|
|
13204
13205
|
*/
|
|
13205
|
-
_defineProperty(this, "
|
|
13206
|
+
_defineProperty(this, "LKpH", function () {
|
|
13206
13207
|
if (_this.enable_marketing) {
|
|
13207
13208
|
var marketingContainer = document.createElement("div");
|
|
13208
13209
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -13306,6 +13307,7 @@
|
|
|
13306
13307
|
this.updateSkid = null;
|
|
13307
13308
|
this.initial_data_placement = this.position.position;
|
|
13308
13309
|
this.recent_placement = this.position.position;
|
|
13310
|
+
this.tippy_box_position = 0;
|
|
13309
13311
|
|
|
13310
13312
|
//badge related config
|
|
13311
13313
|
this.flag = true;
|
|
@@ -13763,7 +13765,7 @@
|
|
|
13763
13765
|
if (apxor_tooltip_styles) {
|
|
13764
13766
|
return;
|
|
13765
13767
|
}
|
|
13766
|
-
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.
|
|
13768
|
+
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.AccS(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
13767
13769
|
var styleNode = document.createElement("style");
|
|
13768
13770
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
13769
13771
|
styleNode.innerHTML = styles;
|
|
@@ -14384,63 +14386,69 @@
|
|
|
14384
14386
|
if (this.enable_arrow) {
|
|
14385
14387
|
switch (this.arrow.type) {
|
|
14386
14388
|
case "round":
|
|
14387
|
-
|
|
14389
|
+
this.tippy_box_position = this.enable_border ? 10 - this.border.width : 10;
|
|
14390
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-10 + this.border.width, "px") : "-10px", ";\n ");
|
|
14388
14391
|
tippyTopArrowStyle = "\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow.color, ";\n ");
|
|
14389
|
-
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-
|
|
14392
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-10 + this.border.width, "px") : "-10px", ";\n ");
|
|
14390
14393
|
tippyRightArrowStyle = "\n bottom:-10px;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow.color, ";\n ");
|
|
14391
|
-
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-
|
|
14394
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-10 + this.border.width, "px") : "-10px", ";\n ");
|
|
14392
14395
|
tippyBottomArrowStyle = "\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow.color, ";\n ");
|
|
14393
|
-
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-
|
|
14396
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-10 + this.border.width, "px") : "-10px", ";\n ");
|
|
14394
14397
|
tippyLeftArrowStyle = "\n top:-50%;\n width:18px;\n height:18px;\n border-radius:5px;\n transform: rotate(45deg);\n background-color:".concat(this.arrow.color, ";\n ");
|
|
14395
14398
|
break;
|
|
14396
14399
|
case "narrow":
|
|
14397
|
-
|
|
14400
|
+
this.tippy_box_position = this.enable_border ? 16 - this.border.width : 16;
|
|
14401
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-16 + this.border.width, "px") : "-16px", ";\n ");
|
|
14398
14402
|
tippyTopArrowStyle = "\n border-width:18px 5px 0;\n ";
|
|
14399
|
-
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-
|
|
14403
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-16 + this.border.width, "px") : "-16px", ";\n ");
|
|
14400
14404
|
tippyRightArrowStyle = "\n border-width:5px 18px 5px 0;\n ";
|
|
14401
|
-
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-
|
|
14405
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-16 + this.border.width, "px") : "-16px", ";\n ");
|
|
14402
14406
|
tippyBottomArrowStyle = "\n border-width:0 5px 18px;\n ";
|
|
14403
|
-
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-
|
|
14407
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-16 + this.border.width, "px") : "-16px", ";\n ");
|
|
14404
14408
|
tippyLeftArrowStyle = "\n border-width:5px 0 5px 18px;\n ";
|
|
14405
14409
|
break;
|
|
14406
14410
|
case "wide":
|
|
14407
|
-
|
|
14411
|
+
this.tippy_box_position = this.enable_border ? 10 - this.border.width : 10;
|
|
14412
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-16 + this.border.width, "px") : "-16px", ";\n ");
|
|
14408
14413
|
tippyTopArrowStyle = "\n left:-50%;\n border-width:9px 18px 0;\n ";
|
|
14409
|
-
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(
|
|
14414
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-8 + this.border.width, "px") : "-8px", ";\n ");
|
|
14410
14415
|
tippyRightArrowStyle = "\n top:-50%;\n border-width:18px 9px 18px 0;\n ";
|
|
14411
|
-
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(
|
|
14416
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-5 + this.border.width, "px") : "-5px", ";\n ");
|
|
14412
14417
|
tippyBottomArrowStyle = "\n left:-50%;\n top:-8px;\n border-width:0 18px 9px;\n bottom:13px;\n ";
|
|
14413
|
-
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-
|
|
14418
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-18 + this.border.width, "px") : "-18px", ";\n ");
|
|
14414
14419
|
tippyLeftArrowStyle = "\n top:-50%;\n border-width:18px 0 18px 8px;\n ";
|
|
14415
14420
|
break;
|
|
14416
14421
|
case "large":
|
|
14417
|
-
|
|
14422
|
+
this.tippy_box_position = this.enable_border ? 15 - this.border.width : 15;
|
|
14423
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-15 + this.border.width, "px") : "-15px", ";\n ");
|
|
14418
14424
|
tippyTopArrowStyle = "\n left:-50%;\n border-width:16px 16px 0;\n ";
|
|
14419
|
-
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-
|
|
14425
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-15 + this.border.width, "px") : "-15px", ";\n ");
|
|
14420
14426
|
tippyRightArrowStyle = "\n top:-50%;\n border-width:16px 16px 16px 0;\n ";
|
|
14421
|
-
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-
|
|
14427
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-15 + this.border.width, "px") : "-15px", ";\n ");
|
|
14422
14428
|
tippyBottomArrowStyle = "\n left:-50%;\n border-width:0 16px 16px;\n ";
|
|
14423
|
-
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-
|
|
14429
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-15 + this.border.width, "px") : "-15px", ";\n ");
|
|
14424
14430
|
tippyLeftArrowStyle = "\n top:-50%;\n border-width:16px 0 16px 16px;\n ";
|
|
14425
14431
|
break;
|
|
14426
14432
|
case "small":
|
|
14427
|
-
|
|
14433
|
+
this.tippy_box_position = this.enable_border ? 6 - this.border.width : 6;
|
|
14434
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-6 + this.border.width, "px") : "-6px", ";\n ");
|
|
14428
14435
|
tippyTopArrowStyle = "\n left:-50%;\n border-width:16px 16px 0;\n ";
|
|
14429
|
-
tippyRightArrowAdjustment = "\n left:
|
|
14436
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-6 + this.border.width, "px") : "-6px", ";\n ");
|
|
14430
14437
|
tippyRightArrowStyle = "\n top:-50%;\n border-width:16px 16px 16px 0;\n ";
|
|
14431
|
-
tippyBottomArrowAdjustment = "\n top: -
|
|
14438
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-6 + this.border.width, "px") : "-6px", ";\n ");
|
|
14432
14439
|
tippyBottomArrowStyle = "\n left:-50%;\n border-width:0 16px 16px;\n ";
|
|
14433
|
-
tippyLeftArrowAdjustment = "\n
|
|
14440
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-6 + this.border.width, "px") : "-6px", ";\n ");
|
|
14434
14441
|
tippyLeftArrowStyle = "\n top:-50%;\n border-width:16px 0 16px 16px;\n ";
|
|
14435
14442
|
break;
|
|
14436
14443
|
default:
|
|
14437
|
-
|
|
14444
|
+
this.tippy_box_position = this.enable_border ? 11 - this.border.width : 11;
|
|
14445
|
+
tippyTopArrowAdjustment = "\n bottom:".concat(this.enable_border ? "".concat(-11 + this.border.width, "px") : "-11px", ";\n ");
|
|
14438
14446
|
tippyTopArrowStyle = "\n left:-50%;\n border-width:16px 16px 0;\n ";
|
|
14439
|
-
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border
|
|
14447
|
+
tippyRightArrowAdjustment = "\n left:".concat(this.enable_border ? "".concat(-11 + this.border.width, "px") : "-11px", ";\n ");
|
|
14440
14448
|
tippyRightArrowStyle = "\n top:-50%;\n border-width:16px 16px 16px 0;\n ";
|
|
14441
|
-
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border
|
|
14449
|
+
tippyBottomArrowAdjustment = "\n top:".concat(this.enable_border ? "".concat(-11 + this.border.width, "px") : "-11px", ";\n ");
|
|
14442
14450
|
tippyBottomArrowStyle = "\n left:-50%;\n border-width:0 16px 16px;\n ";
|
|
14443
|
-
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border
|
|
14451
|
+
tippyLeftArrowAdjustment = "\n right:".concat(this.enable_border ? "".concat(-11 + this.border.width, "px") : "-11px", ";\n ");
|
|
14444
14452
|
tippyLeftArrowStyle = "\n top:-50%;\n border-width:16px 0 16px 16px;\n ";
|
|
14445
14453
|
break;
|
|
14446
14454
|
}
|
|
@@ -14473,7 +14481,8 @@
|
|
|
14473
14481
|
animationStyles = "\n @-webkit-keyframes ".concat(this.animation.type, " {\n 0% { transform: ").concat(translateDir(this.position.position, 0), "; }\n 50% { transform: ").concat(translateDir(this.position.position, 50), "; }\n 100% { transform: ").concat(translateDir(this.position.position, 100), "; }\n }\n \n @keyframes ").concat(this.animation.type, " {\n 0% { transform: ").concat(translateDir(this.position.position, 0), "; }\n 50% { transform: ").concat(translateDir(this.position.position, 50), "; }\n 100% { transform: ").concat(translateDir(this.position.position, 100), "; }\n }\n \n .tippy-box {\n animation-name: ").concat(this.animation.type, ";\n animation-duration: ").concat(this.animation.duration, "ms;\n animation-timing-function: ").concat(this.animation.anim_function, ";\n animation-iteration-count: ").concat(this.animation.iteration_count, ";\n }\n ");
|
|
14474
14482
|
}
|
|
14475
14483
|
// Do not modify these. These tippy styles.
|
|
14476
|
-
var tippyStyles = "\n .tippy-box[data-animation=\"fade\"][data-state=hidden]{\n opacity:0;\n } \n [data-tippy-root] {\n width:".concat(this.inline_width, ";\n max-width:calc(100vw - ").concat(this.enable_arrow && this.arrow.enable_border ? this.arrow.border.width : 0, "px);\n } \n .tippy-box { \n width:").concat(this.inline_width, ";\n position:relative;\n line-height:1.4;\n white-space:normal;\n outline:0;\n transition-property:transform,visibility,opacity;\n } \n .tippy-box[data-placement^=top] > .tippy-arrow {\n ").concat(tippyTopArrowAdjustment, "\n } \n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n ").concat(tippyTopArrowStyle, "\n border-top-color:initial;\n transform-origin:center top;\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow {\n ").concat(tippyBottomArrowAdjustment, "\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n ").concat(tippyBottomArrowStyle, "\n border-bottom-color:initial;\n transform-origin:center bottom;\n } \n .tippy-box[data-placement^=left] > .tippy-arrow {\n ").concat(tippyLeftArrowAdjustment, "\n } \n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n ").concat(tippyLeftArrowStyle, "\n border-left-color:initial;\n transform-origin:center left;\n } \n .tippy-box[data-placement^=right] > .tippy-arrow {\n ").concat(tippyRightArrowAdjustment, "\n } \n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n ").concat(tippyRightArrowStyle, "\n border-right-color:initial;\n transform-origin:center right;\n } \n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)\n } \n .tippy-arrow {\n z-index:9999;\n width:18px;\n height:18px;\n color:").concat(this.enable_arrow ? this.arrow.color : "transparent", ";\n opacity:0;\n visibility:hidden;\n } \n .tippy-arrow.open {\n opacity:1;\n visibility:visible;\n }\n .tippy-arrow:before{ \n transform: scale(").concat(this.fontMultiplier, ");\n content:\"\";\n position:absolute;\n border-color:transparent;\n border-style:").concat(this.enable_arrow && this.arrow.enable_border ? this.arrow.border.style : "solid", ";\n } \n .tippy-content {\n width:").concat(this.inline_width, ";\n
|
|
14484
|
+
var tippyStyles = "\n .tippy-box[data-animation=\"fade\"][data-state=hidden]{\n opacity:0;\n } \n [data-tippy-root] {\n width:".concat(this.inline_width, ";\n max-width:calc(100vw - ").concat(this.enable_arrow && this.arrow.enable_border ? this.arrow.border.width : 0, "px);\n } \n .tippy-box { \n width:").concat(this.inline_width, ";\n position:relative;\n line-height:1.4;\n white-space:normal;\n outline:0;\n transition-property:transform,visibility,opacity;\n } \n .tippy-box[data-placement^=top] > .tippy-arrow {\n ").concat(tippyTopArrowAdjustment, "\n } \n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n ").concat(tippyTopArrowStyle, "\n border-top-color:initial;\n transform-origin:center top;\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow {\n ").concat(tippyBottomArrowAdjustment, "\n } \n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n ").concat(tippyBottomArrowStyle, "\n border-bottom-color:initial;\n transform-origin:center bottom;\n } \n .tippy-box[data-placement^=left] > .tippy-arrow {\n ").concat(tippyLeftArrowAdjustment, "\n } \n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n ").concat(tippyLeftArrowStyle, "\n border-left-color:initial;\n transform-origin:center left;\n } \n .tippy-box[data-placement^=right] > .tippy-arrow {\n ").concat(tippyRightArrowAdjustment, "\n } \n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n ").concat(tippyRightArrowStyle, "\n border-right-color:initial;\n transform-origin:center right;\n } \n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)\n } \n .tippy-arrow {\n z-index:9999;\n width:18px;\n height:18px;\n color:").concat(this.enable_arrow ? this.arrow.color : "transparent", ";\n opacity:0;\n visibility:hidden;\n } \n .tippy-arrow.open {\n opacity:1;\n visibility:visible;\n }\n .tippy-arrow:before{ \n transform: scale(").concat(this.fontMultiplier, ");\n content:\"\";\n position:absolute;\n border-color:transparent;\n border-style:").concat(this.enable_arrow && this.arrow.enable_border ? this.arrow.border.style : "solid", ";\n } \n .tippy-content {\n width:").concat(this.inline_width, ";\n position:relative;\n z-index:9998;\n } \n ").concat(animationStyles, "\n ");
|
|
14485
|
+
//padding: 0.3125rem 0.5625rem; causing arrow distortion
|
|
14477
14486
|
var tippyTheme = "\n ".concat(tippyStyles, "\n ");
|
|
14478
14487
|
return tippyTheme;
|
|
14479
14488
|
//transition:all .5s cubic-bezier(.96,.23,.07,.8); // declaration in .tippy-arrow
|
|
@@ -14566,7 +14575,7 @@
|
|
|
14566
14575
|
this._setCloseButton();
|
|
14567
14576
|
|
|
14568
14577
|
//Set the Marketing content
|
|
14569
|
-
this.
|
|
14578
|
+
this.LKpH();
|
|
14570
14579
|
}
|
|
14571
14580
|
|
|
14572
14581
|
/**
|
|
@@ -14924,12 +14933,12 @@
|
|
|
14924
14933
|
var closeButton = document.createElement("span");
|
|
14925
14934
|
// Close button SVG is decided based on the type of the button in the config.
|
|
14926
14935
|
if (this.close_button.type === CLOSE_BUTTON_STYLE.NORMAL) {
|
|
14927
|
-
closeButton.innerHTML = getCloseSVG(this.close_button.width, this.close_button.height, this.close_button.color);
|
|
14936
|
+
closeButton.innerHTML = getCloseSVG(this.close_button.width * this.fontMultiplier, this.close_button.height * this.fontMultiplier, this.close_button.color);
|
|
14928
14937
|
} else if (this.close_button.type === CLOSE_BUTTON_STYLE.FILL) {
|
|
14929
14938
|
if (this.close_button.shape === "circle") {
|
|
14930
|
-
closeButton.innerHTML = getCloseWithCircleSVG(this.close_button.width, this.close_button.height, this.close_button.fill_color, this.close_button.color);
|
|
14939
|
+
closeButton.innerHTML = getCloseWithCircleSVG(this.close_button.width * this.fontMultiplier, this.close_button.height * this.fontMultiplier, this.close_button.fill_color, this.close_button.color);
|
|
14931
14940
|
} else {
|
|
14932
|
-
closeButton.innerHTML = getCloseWithRectangleSVG(this.close_button.width, this.close_button.height, this.close_button.fill_color, this.close_button.color);
|
|
14941
|
+
closeButton.innerHTML = getCloseWithRectangleSVG(this.close_button.width * this.fontMultiplier, this.close_button.height * this.fontMultiplier, this.close_button.fill_color, this.close_button.color);
|
|
14933
14942
|
}
|
|
14934
14943
|
} else {
|
|
14935
14944
|
closeButton.innerHTML = "<img src=\"".concat(this.close_button.path, "\" width=\"").concat(this.close_button.width, "px\" height=\"").concat(this.close_button.height, "px\"></img>");
|
|
@@ -15260,22 +15269,49 @@
|
|
|
15260
15269
|
var tippyStyleElementContent = document.querySelector("[apx-tooltip-styles]").innerHTML;
|
|
15261
15270
|
//const tippyContent = document.querySelector(".tippy-content");
|
|
15262
15271
|
var placement = tippyBox.getAttribute("data-placement");
|
|
15263
|
-
var rootFontSize = parseFloat(
|
|
15272
|
+
// var rootFontSize = parseFloat(
|
|
15273
|
+
// window.getComputedStyle(document.documentElement).fontSize
|
|
15274
|
+
// );
|
|
15275
|
+
_this12.tippy_box_position = _this12.enable_animation ? _this12.tippy_box_position - 10 : _this12.tippy_box_position;
|
|
15276
|
+
_this12.tippy_box_position = _this12.set_font_to_scale && _this12.fontMultiplier > 1 ? _this12.tippy_box_position + 26 : _this12.tippy_box_position;
|
|
15264
15277
|
if (placement === "left" || placement === "right") {
|
|
15265
15278
|
tippyRoot.style.top = "".concat(_this12.position.offset.skid, "px");
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
|
|
15279
|
+
tippyRoot.style.left = "".concat(placement === "left" ? -_this12.tippy_box_position : _this12.tippy_box_position, "px");
|
|
15280
|
+
// if (this.initial_data_placement !== placement) {
|
|
15281
|
+
// tippyRoot.style.left =
|
|
15282
|
+
// placement === "left"
|
|
15283
|
+
// ? `${
|
|
15284
|
+
// -0.3125 * 2 * rootFontSize -
|
|
15285
|
+
// (this.enable_animation ? 16 : 0)
|
|
15286
|
+
// }px`
|
|
15287
|
+
// : `${
|
|
15288
|
+
// 0.3125 * 2 * rootFontSize +
|
|
15289
|
+
// (this.enable_animation ? 10 : 0)
|
|
15290
|
+
// }px`;
|
|
15291
|
+
// }
|
|
15269
15292
|
} else if (placement === "top" || placement === "bottom") {
|
|
15270
15293
|
tippyRoot.style.left = "".concat(_this12.position.offset.skid, "px");
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15294
|
+
tippyRoot.style.top = "".concat(placement === "bottom" ? _this12.tippy_box_position : -_this12.tippy_box_position, "px");
|
|
15295
|
+
// if (this.initial_data_placement !== placement) {
|
|
15296
|
+
// tippyRoot.style.top =
|
|
15297
|
+
// placement === "top"
|
|
15298
|
+
// ? `${
|
|
15299
|
+
// -0.5625 * 2 * rootFontSize -
|
|
15300
|
+
// (this.enable_animation ? 16 : 0)
|
|
15301
|
+
// }px`
|
|
15302
|
+
// : `${
|
|
15303
|
+
// 0.5625 * 2 * rootFontSize +
|
|
15304
|
+
// (this.enable_animation ? 10 : 0)
|
|
15305
|
+
// }px`;
|
|
15306
|
+
// }
|
|
15274
15307
|
}
|
|
15308
|
+
|
|
15275
15309
|
if (_this12.recent_placement !== placement) {
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15310
|
+
if (_this12.enable_animation) {
|
|
15311
|
+
tippyStyleElementContent = tippyStyleElementContent.replace("@-webkit-keyframes ".concat(_this12.animation.type, " {\n 0% { transform: ").concat(translateDir(_this12.recent_placement, 0), "; }\n 50% { transform: ").concat(translateDir(_this12.recent_placement, 50), "; }\n 100% { transform: ").concat(translateDir(_this12.recent_placement, 100), "; }\n }\n \n @keyframes ").concat(_this12.animation.type, " {\n 0% { transform: ").concat(translateDir(_this12.recent_placement, 0), "; }\n 50% { transform: ").concat(translateDir(_this12.recent_placement, 50), "; }\n 100% { transform: ").concat(translateDir(_this12.recent_placement, 100), "; }\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, ""), "@-webkit-keyframes ".concat(_this12.animation.type, " {\n 0% { transform: ").concat(translateDir(placement, 0), "; }\n 50% { transform: ").concat(translateDir(placement, 50), "; }\n 100% { transform: ").concat(translateDir(placement, 100), "; }\n }\n \n @keyframes ").concat(_this12.animation.type, " {\n 0% { transform: ").concat(translateDir(placement, 0), "; }\n 50% { transform: ").concat(translateDir(placement, 50), "; }\n 100% { transform: ").concat(translateDir(placement, 100), "; }\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, ""));
|
|
15312
|
+
document.querySelector("[apx-tooltip-styles]").innerHTML = tippyStyleElementContent;
|
|
15313
|
+
_this12.recent_placement = placement;
|
|
15314
|
+
}
|
|
15279
15315
|
}
|
|
15280
15316
|
};
|
|
15281
15317
|
_this12.updateSkid();
|
|
@@ -15533,7 +15569,7 @@
|
|
|
15533
15569
|
* @description Creates the styles for Marketing message.
|
|
15534
15570
|
* @returns {string} css styles
|
|
15535
15571
|
*/
|
|
15536
|
-
_defineProperty(this, "
|
|
15572
|
+
_defineProperty(this, "AccS", function () {
|
|
15537
15573
|
if (!_this.enable_marketing) {
|
|
15538
15574
|
return "";
|
|
15539
15575
|
}
|
|
@@ -15579,7 +15615,7 @@
|
|
|
15579
15615
|
* @private
|
|
15580
15616
|
* @description Get the response for Form content in the InApp modal.
|
|
15581
15617
|
*/
|
|
15582
|
-
_defineProperty(this, "
|
|
15618
|
+
_defineProperty(this, "arrC", function (form_elements) {
|
|
15583
15619
|
var obj = {};
|
|
15584
15620
|
var callback = "";
|
|
15585
15621
|
form_elements.forEach(function (element) {
|
|
@@ -15619,7 +15655,7 @@
|
|
|
15619
15655
|
* @private
|
|
15620
15656
|
* @description Sets the marketing content at the end of the InApp
|
|
15621
15657
|
*/
|
|
15622
|
-
_defineProperty(this, "
|
|
15658
|
+
_defineProperty(this, "LKpH", function () {
|
|
15623
15659
|
if (_this.enable_marketing) {
|
|
15624
15660
|
var marketingContainer = document.createElement("div");
|
|
15625
15661
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -15872,7 +15908,7 @@
|
|
|
15872
15908
|
}, {
|
|
15873
15909
|
key: "_setStyles",
|
|
15874
15910
|
value: function _setStyles() {
|
|
15875
|
-
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.
|
|
15911
|
+
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.AccS(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
15876
15912
|
var styleNode = document.createElement("style");
|
|
15877
15913
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
15878
15914
|
styleNode.innerHTML = styles;
|
|
@@ -16349,7 +16385,7 @@
|
|
|
16349
16385
|
this._setCloseButton();
|
|
16350
16386
|
|
|
16351
16387
|
//Set the Marketing content
|
|
16352
|
-
this.
|
|
16388
|
+
this.LKpH();
|
|
16353
16389
|
}
|
|
16354
16390
|
|
|
16355
16391
|
/**
|
|
@@ -16554,7 +16590,7 @@
|
|
|
16554
16590
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
16555
16591
|
form.addEventListener("submit", function (e) {
|
|
16556
16592
|
e.preventDefault();
|
|
16557
|
-
var _this4$generateRespon = _this4.
|
|
16593
|
+
var _this4$generateRespon = _this4.arrC(_this4.form.elements),
|
|
16558
16594
|
obj = _this4$generateRespon.obj,
|
|
16559
16595
|
callback = _this4$generateRespon.callback;
|
|
16560
16596
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -16867,7 +16903,7 @@
|
|
|
16867
16903
|
* @function showVideoInApp
|
|
16868
16904
|
* @description Shows the video InApp with the configured mode.
|
|
16869
16905
|
*/
|
|
16870
|
-
_defineProperty(this, "
|
|
16906
|
+
_defineProperty(this, "CXVQ", function () {
|
|
16871
16907
|
_this.createPlayer();
|
|
16872
16908
|
try {
|
|
16873
16909
|
// In PIP mode, only after the video metadata is loaded, show the PIP.
|
|
@@ -16909,7 +16945,7 @@
|
|
|
16909
16945
|
};
|
|
16910
16946
|
} else {
|
|
16911
16947
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
16912
|
-
_this.
|
|
16948
|
+
_this.ZtjN();
|
|
16913
16949
|
}
|
|
16914
16950
|
_this.showCallback();
|
|
16915
16951
|
} catch (e) {
|
|
@@ -16929,7 +16965,7 @@
|
|
|
16929
16965
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
16930
16966
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
16931
16967
|
*/
|
|
16932
|
-
_defineProperty(this, "
|
|
16968
|
+
_defineProperty(this, "uwcj", function () {
|
|
16933
16969
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
16934
16970
|
width = _getHeightWidthFromRe.width,
|
|
16935
16971
|
height = _getHeightWidthFromRe.height;
|
|
@@ -16941,7 +16977,7 @@
|
|
|
16941
16977
|
* @private
|
|
16942
16978
|
* @description Removes the video player style element.
|
|
16943
16979
|
*/
|
|
16944
|
-
_defineProperty(this, "
|
|
16980
|
+
_defineProperty(this, "uSCp", function () {
|
|
16945
16981
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
16946
16982
|
if (playerStyles) {
|
|
16947
16983
|
playerStyles.remove();
|
|
@@ -16952,7 +16988,7 @@
|
|
|
16952
16988
|
* @private
|
|
16953
16989
|
* @description Attach listeners on the video controls
|
|
16954
16990
|
*/
|
|
16955
|
-
_defineProperty(this, "
|
|
16991
|
+
_defineProperty(this, "tFVB", function () {
|
|
16956
16992
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
16957
16993
|
_this.videoElement.addEventListener("ended", function () {
|
|
16958
16994
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -17063,7 +17099,7 @@
|
|
|
17063
17099
|
* @private
|
|
17064
17100
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
17065
17101
|
*/
|
|
17066
|
-
_defineProperty(this, "
|
|
17102
|
+
_defineProperty(this, "SbsY", function () {
|
|
17067
17103
|
var _this$terminationConf;
|
|
17068
17104
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
17069
17105
|
// On Exit of the PIP,
|
|
@@ -17103,7 +17139,7 @@
|
|
|
17103
17139
|
* @private Sets the custom controls on the video player.
|
|
17104
17140
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
17105
17141
|
*/
|
|
17106
|
-
_defineProperty(this, "
|
|
17142
|
+
_defineProperty(this, "NmxX", function () {
|
|
17107
17143
|
_this.enable_close_button;
|
|
17108
17144
|
if (_this.enable_close_button) {
|
|
17109
17145
|
var closeButton = document.createElement("span");
|
|
@@ -17150,21 +17186,21 @@
|
|
|
17150
17186
|
* @function hideVideoPlayer
|
|
17151
17187
|
* @description Sets the visibility of the video player to hidden.
|
|
17152
17188
|
*/
|
|
17153
|
-
_defineProperty(this, "
|
|
17189
|
+
_defineProperty(this, "SJeU", function () {
|
|
17154
17190
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
17155
17191
|
});
|
|
17156
17192
|
/**
|
|
17157
17193
|
* @function unhideVideoPlayer
|
|
17158
17194
|
* @description Unhides video player.
|
|
17159
17195
|
*/
|
|
17160
|
-
_defineProperty(this, "
|
|
17196
|
+
_defineProperty(this, "ZtjN", function () {
|
|
17161
17197
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
17162
17198
|
});
|
|
17163
17199
|
/**
|
|
17164
17200
|
* @function getVideoElement
|
|
17165
17201
|
* @returns {HTMLElement} Video ekement
|
|
17166
17202
|
*/
|
|
17167
|
-
_defineProperty(this, "
|
|
17203
|
+
_defineProperty(this, "hjZT", function () {
|
|
17168
17204
|
return _this.videoElement;
|
|
17169
17205
|
});
|
|
17170
17206
|
this.videoPlayer = null;
|
|
@@ -17216,7 +17252,7 @@
|
|
|
17216
17252
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
17217
17253
|
|
|
17218
17254
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
17219
|
-
this.
|
|
17255
|
+
this.uwcj();
|
|
17220
17256
|
//Generate the styles and add them to the document head.
|
|
17221
17257
|
this._setVideoPlayerStyles();
|
|
17222
17258
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -17224,16 +17260,16 @@
|
|
|
17224
17260
|
//Create a video element,set the source and add to the container.
|
|
17225
17261
|
this._setPlayerContent();
|
|
17226
17262
|
//Set the listeners on the video control buttons.
|
|
17227
|
-
this.
|
|
17263
|
+
this.tFVB();
|
|
17228
17264
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
17229
|
-
this.
|
|
17265
|
+
this.SbsY();
|
|
17230
17266
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
17231
17267
|
//Reason - We want to position them at the top right and left positions.
|
|
17232
|
-
this.
|
|
17268
|
+
this.NmxX();
|
|
17233
17269
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
17234
17270
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
17235
17271
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
17236
|
-
this.
|
|
17272
|
+
this.SJeU();
|
|
17237
17273
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
17238
17274
|
this._setAutoTerminate();
|
|
17239
17275
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -17347,7 +17383,7 @@
|
|
|
17347
17383
|
}
|
|
17348
17384
|
}
|
|
17349
17385
|
this.videoPlayer.remove();
|
|
17350
|
-
this.
|
|
17386
|
+
this.uSCp();
|
|
17351
17387
|
if (closeButtonName !== "auto_dismiss") {
|
|
17352
17388
|
window.Apxor.logAppEvent("apx_video_inapp_close_button_clicked", {
|
|
17353
17389
|
message_name: this.name,
|
|
@@ -17415,7 +17451,7 @@
|
|
|
17415
17451
|
replayCount: _this3.replayCount
|
|
17416
17452
|
});
|
|
17417
17453
|
_this3.videoPlayer.remove();
|
|
17418
|
-
_this3.
|
|
17454
|
+
_this3.uSCp();
|
|
17419
17455
|
_this3.hideCallback();
|
|
17420
17456
|
} catch (e) {
|
|
17421
17457
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -17503,14 +17539,14 @@
|
|
|
17503
17539
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
17504
17540
|
var _this = this;
|
|
17505
17541
|
_classCallCheck(this, RTM);
|
|
17506
|
-
_defineProperty(this, "
|
|
17542
|
+
_defineProperty(this, "Lbzn", {});
|
|
17507
17543
|
_defineProperty(this, "isShowingAction", false);
|
|
17508
17544
|
_defineProperty(this, "currentAction", null);
|
|
17509
|
-
_defineProperty(this, "
|
|
17510
|
-
_defineProperty(this, "version",
|
|
17545
|
+
_defineProperty(this, "slkw", null);
|
|
17546
|
+
_defineProperty(this, "version", 51);
|
|
17511
17547
|
_defineProperty(this, "isInitialised", false);
|
|
17512
17548
|
_defineProperty(this, "_eventsInDynamicText", {});
|
|
17513
|
-
_defineProperty(this, "
|
|
17549
|
+
_defineProperty(this, "YILU", function () {
|
|
17514
17550
|
_this.isInitialised = true;
|
|
17515
17551
|
var oldPushState = history.pushState;
|
|
17516
17552
|
history.pushState = function pushState() {
|
|
@@ -17535,7 +17571,7 @@
|
|
|
17535
17571
|
});
|
|
17536
17572
|
_defineProperty(this, "show", function (uiJson, duration, uuid, name) {
|
|
17537
17573
|
if (!_this.isInitialised) {
|
|
17538
|
-
_this.
|
|
17574
|
+
_this.YILU();
|
|
17539
17575
|
}
|
|
17540
17576
|
window.addEventListener("pagehide", function () {
|
|
17541
17577
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -17631,7 +17667,7 @@
|
|
|
17631
17667
|
var terminationConfig = {};
|
|
17632
17668
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
17633
17669
|
terminationConfig["duration"] = duration;
|
|
17634
|
-
_this.
|
|
17670
|
+
_this.slkw = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
17635
17671
|
configId: uuid,
|
|
17636
17672
|
configName: name
|
|
17637
17673
|
}, _this, function () {
|
|
@@ -17651,14 +17687,14 @@
|
|
|
17651
17687
|
var _window10, _window10$updateFlag;
|
|
17652
17688
|
_this.isShowingAction = false;
|
|
17653
17689
|
_this.currentAction = null;
|
|
17654
|
-
_this.
|
|
17690
|
+
_this.slkw = null;
|
|
17655
17691
|
(_window10 = window) === null || _window10 === void 0 || (_window10 = _window10.Apxor) === null || _window10 === void 0 || (_window10$updateFlag = _window10.updateFlag) === null || _window10$updateFlag === void 0 || _window10$updateFlag.call(_window10, false);
|
|
17656
17692
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
17657
17693
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
17658
17694
|
}
|
|
17659
17695
|
}, function () {}, false, 0);
|
|
17660
17696
|
setTimeout(function () {
|
|
17661
|
-
_this.
|
|
17697
|
+
_this.slkw.createNewTooltip();
|
|
17662
17698
|
}, ui_config.delay);
|
|
17663
17699
|
});
|
|
17664
17700
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -17688,7 +17724,7 @@
|
|
|
17688
17724
|
window.Apxor.logActionEvent("inapp_dismissed", configId, name);
|
|
17689
17725
|
}
|
|
17690
17726
|
});
|
|
17691
|
-
VideoInAppInstance.
|
|
17727
|
+
VideoInAppInstance.CXVQ();
|
|
17692
17728
|
});
|
|
17693
17729
|
/**
|
|
17694
17730
|
* Creates a modal for the given config and displays it.
|