apxor-rtm-ui 0.9.3 → 0.9.5
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 +182 -160
- package/dist/apxor.rtm.min.js +3 -3
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -12296,14 +12296,14 @@
|
|
|
12296
12296
|
_config$wait_interval,
|
|
12297
12297
|
_config$termination;
|
|
12298
12298
|
_classCallCheck(this, TemplateContent);
|
|
12299
|
-
_defineProperty(this, "
|
|
12299
|
+
_defineProperty(this, "PyAT", function () {
|
|
12300
12300
|
return new Promise(function (resolve, reject) {
|
|
12301
12301
|
try {
|
|
12302
|
-
var element = _this.
|
|
12302
|
+
var element = _this.CZfr(_this.layout);
|
|
12303
12303
|
var styleElement = document.createElement("style");
|
|
12304
12304
|
styleElement.innerHTML = _this.styleContent;
|
|
12305
12305
|
document.head.appendChild(styleElement);
|
|
12306
|
-
_this.
|
|
12306
|
+
_this.AVsY();
|
|
12307
12307
|
try {
|
|
12308
12308
|
eval(_this.script);
|
|
12309
12309
|
} catch (e) {
|
|
@@ -12314,15 +12314,15 @@
|
|
|
12314
12314
|
}
|
|
12315
12315
|
_this.imageElements.forEach(function (img) {
|
|
12316
12316
|
img.addEventListener("error", function () {
|
|
12317
|
-
_this.
|
|
12317
|
+
_this.mIrr("provided image doesn't exists");
|
|
12318
12318
|
});
|
|
12319
12319
|
});
|
|
12320
12320
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
12321
12321
|
_this.wait_interval -= 1;
|
|
12322
12322
|
if (_this.wait_interval <= 0) {
|
|
12323
|
-
_this.
|
|
12323
|
+
_this.mIrr("provided media doesn't exists");
|
|
12324
12324
|
} else {
|
|
12325
|
-
if (_this.
|
|
12325
|
+
if (_this.qNbo() && _this.BcAJ() && _this.SeJW()) {
|
|
12326
12326
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
12327
12327
|
resolve(element);
|
|
12328
12328
|
}
|
|
@@ -12336,7 +12336,7 @@
|
|
|
12336
12336
|
}
|
|
12337
12337
|
});
|
|
12338
12338
|
});
|
|
12339
|
-
_defineProperty(this, "
|
|
12339
|
+
_defineProperty(this, "mIrr", function (reason) {
|
|
12340
12340
|
var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
|
|
12341
12341
|
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
12342
12342
|
apx_nudge_name: _this.name,
|
|
@@ -12352,13 +12352,13 @@
|
|
|
12352
12352
|
_this.closeCallBack("cancel");
|
|
12353
12353
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
|
|
12354
12354
|
});
|
|
12355
|
-
_defineProperty(this, "
|
|
12355
|
+
_defineProperty(this, "AVsY", function () {
|
|
12356
12356
|
var BuilderTemplatesStyles = document.createElement("style");
|
|
12357
12357
|
BuilderTemplatesStyles.innerHTML = _this.initialStyles;
|
|
12358
12358
|
BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
|
|
12359
12359
|
document.head.appendChild(BuilderTemplatesStyles);
|
|
12360
12360
|
});
|
|
12361
|
-
_defineProperty(this, "
|
|
12361
|
+
_defineProperty(this, "CZfr", function (config) {
|
|
12362
12362
|
var _window$Apxor3;
|
|
12363
12363
|
var element;
|
|
12364
12364
|
switch (config.type) {
|
|
@@ -12444,7 +12444,7 @@
|
|
|
12444
12444
|
if (config.type === "cta_button" || config.type === "button") {
|
|
12445
12445
|
reason = "cta-clicked";
|
|
12446
12446
|
}
|
|
12447
|
-
_this.
|
|
12447
|
+
_this.GAvR(e, "redirect", reason);
|
|
12448
12448
|
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) {
|
|
12449
12449
|
var _window4, _this$config8;
|
|
12450
12450
|
(_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);
|
|
@@ -12460,7 +12460,7 @@
|
|
|
12460
12460
|
} else if (config.type === "cta_button" || config.type === "button") {
|
|
12461
12461
|
reason = "cta-clicked";
|
|
12462
12462
|
}
|
|
12463
|
-
_this.
|
|
12463
|
+
_this.GAvR(e, "cancel", reason);
|
|
12464
12464
|
// window.Apxor.logActionEvent(
|
|
12465
12465
|
// "walk_through_cancelled",
|
|
12466
12466
|
// this.configId,
|
|
@@ -12479,7 +12479,7 @@
|
|
|
12479
12479
|
} else if (config.type === "cta_button" || config.type === "button") {
|
|
12480
12480
|
reason = "cta-clicked";
|
|
12481
12481
|
}
|
|
12482
|
-
_this.
|
|
12482
|
+
_this.GAvR(e, "dismiss", reason);
|
|
12483
12483
|
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) {
|
|
12484
12484
|
var _window5, _this$config10;
|
|
12485
12485
|
(_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);
|
|
@@ -12490,7 +12490,7 @@
|
|
|
12490
12490
|
element.onclick = function (e) {
|
|
12491
12491
|
e.stopPropagation();
|
|
12492
12492
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
12493
|
-
_this.
|
|
12493
|
+
_this.GAvR(e, "never");
|
|
12494
12494
|
};
|
|
12495
12495
|
break;
|
|
12496
12496
|
case "toggle-class":
|
|
@@ -12515,7 +12515,7 @@
|
|
|
12515
12515
|
tempInput.select();
|
|
12516
12516
|
document.execCommand("copy");
|
|
12517
12517
|
document.body.removeChild(tempInput);
|
|
12518
|
-
_this.
|
|
12518
|
+
_this.GAvR(e, "copy-content", "cta-clicked");
|
|
12519
12519
|
setTimeout(function () {
|
|
12520
12520
|
window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
|
|
12521
12521
|
}, 500);
|
|
@@ -12537,7 +12537,7 @@
|
|
|
12537
12537
|
}
|
|
12538
12538
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
12539
12539
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
12540
|
-
var childElement = _this.
|
|
12540
|
+
var childElement = _this.CZfr(childConfig);
|
|
12541
12541
|
element.appendChild(childElement);
|
|
12542
12542
|
});
|
|
12543
12543
|
}
|
|
@@ -12545,7 +12545,7 @@
|
|
|
12545
12545
|
// Process children
|
|
12546
12546
|
if (config.children && config.children.length > 0) {
|
|
12547
12547
|
config.children.forEach(function (childConfig) {
|
|
12548
|
-
var childElement = _this.
|
|
12548
|
+
var childElement = _this.CZfr(childConfig);
|
|
12549
12549
|
element.appendChild(childElement);
|
|
12550
12550
|
});
|
|
12551
12551
|
}
|
|
@@ -12572,7 +12572,7 @@
|
|
|
12572
12572
|
}
|
|
12573
12573
|
return element;
|
|
12574
12574
|
});
|
|
12575
|
-
_defineProperty(this, "
|
|
12575
|
+
_defineProperty(this, "GAvR", function (e, action) {
|
|
12576
12576
|
var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
|
|
12577
12577
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
12578
12578
|
var additional_info = {
|
|
@@ -12601,7 +12601,7 @@
|
|
|
12601
12601
|
_this.closeCallBack(action);
|
|
12602
12602
|
}
|
|
12603
12603
|
});
|
|
12604
|
-
_defineProperty(this, "
|
|
12604
|
+
_defineProperty(this, "BcAJ", function () {
|
|
12605
12605
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
12606
12606
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
12607
12607
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -12609,13 +12609,13 @@
|
|
|
12609
12609
|
return img.complete;
|
|
12610
12610
|
});
|
|
12611
12611
|
});
|
|
12612
|
-
_defineProperty(this, "
|
|
12612
|
+
_defineProperty(this, "SeJW", function () {
|
|
12613
12613
|
if (!_this.bgImageUrl) return true;
|
|
12614
12614
|
var img = new Image();
|
|
12615
12615
|
img.src = _this.bgImageUrl;
|
|
12616
12616
|
return img.complete;
|
|
12617
12617
|
});
|
|
12618
|
-
_defineProperty(this, "
|
|
12618
|
+
_defineProperty(this, "qNbo", function () {
|
|
12619
12619
|
if (_this.videoElements.length === 0) return true;
|
|
12620
12620
|
return _this.videoElements.every(function (video) {
|
|
12621
12621
|
return video.readyState >= 3;
|
|
@@ -13554,7 +13554,7 @@
|
|
|
13554
13554
|
case 0:
|
|
13555
13555
|
_context2.prev = 0;
|
|
13556
13556
|
_context2.next = 3;
|
|
13557
|
-
return this.templateContent.
|
|
13557
|
+
return this.templateContent.PyAT();
|
|
13558
13558
|
case 3:
|
|
13559
13559
|
this.inLineContainer = _context2.sent;
|
|
13560
13560
|
_context2.next = 9;
|
|
@@ -15131,7 +15131,7 @@
|
|
|
15131
15131
|
* @description Creates the styles for Marketing message.
|
|
15132
15132
|
* @returns {string} css styles
|
|
15133
15133
|
*/
|
|
15134
|
-
_defineProperty(this, "
|
|
15134
|
+
_defineProperty(this, "Feqc", function () {
|
|
15135
15135
|
if (!_this.enable_marketing) {
|
|
15136
15136
|
return "";
|
|
15137
15137
|
}
|
|
@@ -15150,7 +15150,7 @@
|
|
|
15150
15150
|
* @private
|
|
15151
15151
|
* @description Sets the marketing content at the end of the Inline
|
|
15152
15152
|
*/
|
|
15153
|
-
_defineProperty(this, "
|
|
15153
|
+
_defineProperty(this, "Nlsc", function () {
|
|
15154
15154
|
if (_this.enable_marketing) {
|
|
15155
15155
|
var marketingContainer = document.createElement("div");
|
|
15156
15156
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -15764,7 +15764,7 @@
|
|
|
15764
15764
|
if (apxor_tooltip_styles) {
|
|
15765
15765
|
return;
|
|
15766
15766
|
}
|
|
15767
|
-
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.
|
|
15767
|
+
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.Feqc(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
15768
15768
|
var styleNode = document.createElement("style");
|
|
15769
15769
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
15770
15770
|
styleNode.innerHTML = styles;
|
|
@@ -16574,7 +16574,7 @@
|
|
|
16574
16574
|
this._setCloseButton();
|
|
16575
16575
|
|
|
16576
16576
|
//Set the Marketing content
|
|
16577
|
-
this.
|
|
16577
|
+
this.Nlsc();
|
|
16578
16578
|
}
|
|
16579
16579
|
|
|
16580
16580
|
/**
|
|
@@ -19471,7 +19471,7 @@
|
|
|
19471
19471
|
case 0:
|
|
19472
19472
|
_context2.prev = 0;
|
|
19473
19473
|
_context2.next = 3;
|
|
19474
|
-
return this.templateContent.
|
|
19474
|
+
return this.templateContent.PyAT();
|
|
19475
19475
|
case 3:
|
|
19476
19476
|
this.inAppContainer = _context2.sent;
|
|
19477
19477
|
this.inAppContainer.style.zIndex = 99999;
|
|
@@ -19670,7 +19670,7 @@
|
|
|
19670
19670
|
* @description Creates the styles for Marketing message.
|
|
19671
19671
|
* @returns {string} css styles
|
|
19672
19672
|
*/
|
|
19673
|
-
_defineProperty(this, "
|
|
19673
|
+
_defineProperty(this, "Feqc", function () {
|
|
19674
19674
|
if (!_this.enable_marketing) {
|
|
19675
19675
|
return "";
|
|
19676
19676
|
}
|
|
@@ -19716,7 +19716,7 @@
|
|
|
19716
19716
|
* @private
|
|
19717
19717
|
* @description Get the response for Form content in the InApp modal.
|
|
19718
19718
|
*/
|
|
19719
|
-
_defineProperty(this, "
|
|
19719
|
+
_defineProperty(this, "FiBJ", function (form_elements) {
|
|
19720
19720
|
var obj = {};
|
|
19721
19721
|
var callback = "";
|
|
19722
19722
|
form_elements.forEach(function (element) {
|
|
@@ -19756,7 +19756,7 @@
|
|
|
19756
19756
|
* @private
|
|
19757
19757
|
* @description Sets the marketing content at the end of the InApp
|
|
19758
19758
|
*/
|
|
19759
|
-
_defineProperty(this, "
|
|
19759
|
+
_defineProperty(this, "Nlsc", function () {
|
|
19760
19760
|
if (_this.enable_marketing) {
|
|
19761
19761
|
var marketingContainer = document.createElement("div");
|
|
19762
19762
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -20016,7 +20016,7 @@
|
|
|
20016
20016
|
}, {
|
|
20017
20017
|
key: "_setStyles",
|
|
20018
20018
|
value: function _setStyles() {
|
|
20019
|
-
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.
|
|
20019
|
+
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.Feqc(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
20020
20020
|
var styleNode = document.createElement("style");
|
|
20021
20021
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
20022
20022
|
styleNode.innerHTML = styles;
|
|
@@ -20510,7 +20510,7 @@
|
|
|
20510
20510
|
this._setCloseButton();
|
|
20511
20511
|
|
|
20512
20512
|
//Set the Marketing content
|
|
20513
|
-
this.
|
|
20513
|
+
this.Nlsc();
|
|
20514
20514
|
}
|
|
20515
20515
|
|
|
20516
20516
|
/**
|
|
@@ -20782,7 +20782,7 @@
|
|
|
20782
20782
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
20783
20783
|
form.addEventListener("submit", function (e) {
|
|
20784
20784
|
e.preventDefault();
|
|
20785
|
-
var _this8$generateRespon = _this8.
|
|
20785
|
+
var _this8$generateRespon = _this8.FiBJ(_this8.form.elements),
|
|
20786
20786
|
obj = _this8$generateRespon.obj,
|
|
20787
20787
|
callback = _this8$generateRespon.callback;
|
|
20788
20788
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -21142,7 +21142,7 @@
|
|
|
21142
21142
|
};
|
|
21143
21143
|
} else {
|
|
21144
21144
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
21145
|
-
_this.
|
|
21145
|
+
_this.fEjA();
|
|
21146
21146
|
}
|
|
21147
21147
|
_this.showCallback();
|
|
21148
21148
|
} catch (e) {
|
|
@@ -21163,7 +21163,7 @@
|
|
|
21163
21163
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
21164
21164
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
21165
21165
|
*/
|
|
21166
|
-
_defineProperty(this, "
|
|
21166
|
+
_defineProperty(this, "BzkK", function () {
|
|
21167
21167
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
21168
21168
|
width = _getHeightWidthFromRe.width,
|
|
21169
21169
|
height = _getHeightWidthFromRe.height;
|
|
@@ -21175,7 +21175,7 @@
|
|
|
21175
21175
|
* @private
|
|
21176
21176
|
* @description Removes the video player style element.
|
|
21177
21177
|
*/
|
|
21178
|
-
_defineProperty(this, "
|
|
21178
|
+
_defineProperty(this, "DEWK", function () {
|
|
21179
21179
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
21180
21180
|
if (playerStyles) {
|
|
21181
21181
|
playerStyles.remove();
|
|
@@ -21186,7 +21186,7 @@
|
|
|
21186
21186
|
* @private
|
|
21187
21187
|
* @description Attach listeners on the video controls
|
|
21188
21188
|
*/
|
|
21189
|
-
_defineProperty(this, "
|
|
21189
|
+
_defineProperty(this, "LyPc", function () {
|
|
21190
21190
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
21191
21191
|
_this.videoElement.addEventListener("ended", function () {
|
|
21192
21192
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -21289,7 +21289,7 @@
|
|
|
21289
21289
|
* @private
|
|
21290
21290
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21291
21291
|
*/
|
|
21292
|
-
_defineProperty(this, "
|
|
21292
|
+
_defineProperty(this, "KpqY", function () {
|
|
21293
21293
|
var _this$terminationConf;
|
|
21294
21294
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
21295
21295
|
// On Exit of the PIP,
|
|
@@ -21329,7 +21329,7 @@
|
|
|
21329
21329
|
* @private Sets the custom controls on the video player.
|
|
21330
21330
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
21331
21331
|
*/
|
|
21332
|
-
_defineProperty(this, "
|
|
21332
|
+
_defineProperty(this, "mkBf", function () {
|
|
21333
21333
|
_this.enable_close_button;
|
|
21334
21334
|
if (_this.enable_close_button) {
|
|
21335
21335
|
var closeButton = document.createElement("span");
|
|
@@ -21376,21 +21376,21 @@
|
|
|
21376
21376
|
* @function hideVideoPlayer
|
|
21377
21377
|
* @description Sets the visibility of the video player to hidden.
|
|
21378
21378
|
*/
|
|
21379
|
-
_defineProperty(this, "
|
|
21379
|
+
_defineProperty(this, "UaAZ", function () {
|
|
21380
21380
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21381
21381
|
});
|
|
21382
21382
|
/**
|
|
21383
21383
|
* @function unhideVideoPlayer
|
|
21384
21384
|
* @description Unhides video player.
|
|
21385
21385
|
*/
|
|
21386
|
-
_defineProperty(this, "
|
|
21386
|
+
_defineProperty(this, "fEjA", function () {
|
|
21387
21387
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21388
21388
|
});
|
|
21389
21389
|
/**
|
|
21390
21390
|
* @function getVideoElement
|
|
21391
21391
|
* @returns {HTMLElement} Video ekement
|
|
21392
21392
|
*/
|
|
21393
|
-
_defineProperty(this, "
|
|
21393
|
+
_defineProperty(this, "IQDs", function () {
|
|
21394
21394
|
return _this.videoElement;
|
|
21395
21395
|
});
|
|
21396
21396
|
this.videoPlayer = null;
|
|
@@ -21445,7 +21445,7 @@
|
|
|
21445
21445
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
21446
21446
|
|
|
21447
21447
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
21448
|
-
this.
|
|
21448
|
+
this.BzkK();
|
|
21449
21449
|
//Generate the styles and add them to the document head.
|
|
21450
21450
|
this._setVideoPlayerStyles();
|
|
21451
21451
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -21453,16 +21453,16 @@
|
|
|
21453
21453
|
//Create a video element,set the source and add to the container.
|
|
21454
21454
|
this._setPlayerContent();
|
|
21455
21455
|
//Set the listeners on the video control buttons.
|
|
21456
|
-
this.
|
|
21456
|
+
this.LyPc();
|
|
21457
21457
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21458
|
-
this.
|
|
21458
|
+
this.KpqY();
|
|
21459
21459
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
21460
21460
|
//Reason - We want to position them at the top right and left positions.
|
|
21461
|
-
this.
|
|
21461
|
+
this.mkBf();
|
|
21462
21462
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
21463
21463
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
21464
21464
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
21465
|
-
this.
|
|
21465
|
+
this.UaAZ();
|
|
21466
21466
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
21467
21467
|
this._setAutoTerminate();
|
|
21468
21468
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -21577,7 +21577,7 @@
|
|
|
21577
21577
|
}
|
|
21578
21578
|
}
|
|
21579
21579
|
this.videoPlayer.remove();
|
|
21580
|
-
this.
|
|
21580
|
+
this.DEWK();
|
|
21581
21581
|
if (closeButtonName !== "auto_dismiss") {
|
|
21582
21582
|
var _window$ApxorRTM8;
|
|
21583
21583
|
(_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_close_button_clicked", {
|
|
@@ -21647,7 +21647,7 @@
|
|
|
21647
21647
|
replayCount: _this3.replayCount
|
|
21648
21648
|
});
|
|
21649
21649
|
_this3.videoPlayer.remove();
|
|
21650
|
-
_this3.
|
|
21650
|
+
_this3.DEWK();
|
|
21651
21651
|
_this3.hideCallback();
|
|
21652
21652
|
} catch (e) {
|
|
21653
21653
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -21741,14 +21741,14 @@
|
|
|
21741
21741
|
try {
|
|
21742
21742
|
var _window;
|
|
21743
21743
|
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
|
|
21744
|
-
var element = _this.
|
|
21745
|
-
_this.
|
|
21744
|
+
var element = _this.IPHJ(_this.layout);
|
|
21745
|
+
_this.dYwu();
|
|
21746
21746
|
window.onresize = function () {
|
|
21747
|
-
_this.
|
|
21747
|
+
_this.FLOH();
|
|
21748
21748
|
};
|
|
21749
21749
|
_this.imageElements.forEach(function (img) {
|
|
21750
21750
|
img.addEventListener("error", function () {
|
|
21751
|
-
_this.
|
|
21751
|
+
_this.mIrr("provided image doesn't exists");
|
|
21752
21752
|
});
|
|
21753
21753
|
});
|
|
21754
21754
|
var rootContainer = document.createElement("div");
|
|
@@ -21759,7 +21759,7 @@
|
|
|
21759
21759
|
var styleElement = document.createElement("style");
|
|
21760
21760
|
styleElement.innerHTML = _this.styleContent;
|
|
21761
21761
|
document.head.appendChild(styleElement);
|
|
21762
|
-
_this.
|
|
21762
|
+
_this.Mfpa(_this.termination);
|
|
21763
21763
|
try {
|
|
21764
21764
|
eval(_this.script);
|
|
21765
21765
|
} catch (e) {
|
|
@@ -21770,10 +21770,10 @@
|
|
|
21770
21770
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
21771
21771
|
_this.wait_interval -= 1;
|
|
21772
21772
|
if (_this.wait_interval <= 0) {
|
|
21773
|
-
_this.
|
|
21773
|
+
_this.mIrr("provided media doesn't exists");
|
|
21774
21774
|
} else {
|
|
21775
|
-
if (_this.
|
|
21776
|
-
_this.
|
|
21775
|
+
if (_this.qNbo() && _this.BcAJ() && _this.SeJW()) {
|
|
21776
|
+
_this.FLOH();
|
|
21777
21777
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
21778
21778
|
}
|
|
21779
21779
|
}
|
|
@@ -21784,9 +21784,9 @@
|
|
|
21784
21784
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorLogger) === null || _window3 === void 0 || _window3.error("failed while creating embed card with error: ".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
21785
21785
|
}
|
|
21786
21786
|
});
|
|
21787
|
-
_defineProperty(this, "
|
|
21788
|
-
var _window$
|
|
21789
|
-
!_this.loggedNudgeNotShownEvent && ((_window$
|
|
21787
|
+
_defineProperty(this, "mIrr", function (reason) {
|
|
21788
|
+
var _window$ApxorRTM, _window4;
|
|
21789
|
+
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
21790
21790
|
apx_nudge_name: _this.name,
|
|
21791
21791
|
apx_nudge_id: _this.configId,
|
|
21792
21792
|
apx_template_time: "embed-card",
|
|
@@ -21798,14 +21798,14 @@
|
|
|
21798
21798
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
21799
21799
|
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
|
|
21800
21800
|
});
|
|
21801
|
-
_defineProperty(this, "
|
|
21801
|
+
_defineProperty(this, "dYwu", function () {
|
|
21802
21802
|
var EmbeddedCardsStyles = document.createElement("style");
|
|
21803
21803
|
EmbeddedCardsStyles.innerHTML = _this.initialStyles;
|
|
21804
21804
|
EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
|
|
21805
21805
|
document.head.appendChild(EmbeddedCardsStyles);
|
|
21806
21806
|
});
|
|
21807
|
-
_defineProperty(this, "
|
|
21808
|
-
var _window$
|
|
21807
|
+
_defineProperty(this, "IPHJ", function (config) {
|
|
21808
|
+
var _window$Apxor;
|
|
21809
21809
|
var element;
|
|
21810
21810
|
switch (config.type) {
|
|
21811
21811
|
case "cell":
|
|
@@ -21822,7 +21822,7 @@
|
|
|
21822
21822
|
element.muted = true;
|
|
21823
21823
|
element.disablePictureInPicture = true;
|
|
21824
21824
|
element.autoplay = true;
|
|
21825
|
-
if (((_window$
|
|
21825
|
+
if (((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.platform) === "ios") {
|
|
21826
21826
|
element.playsInline = true;
|
|
21827
21827
|
}
|
|
21828
21828
|
break;
|
|
@@ -21884,40 +21884,40 @@
|
|
|
21884
21884
|
element.onclick = function (e) {
|
|
21885
21885
|
e.stopPropagation();
|
|
21886
21886
|
window.Apxor.redirect(JSON.stringify(action));
|
|
21887
|
-
_this.
|
|
21887
|
+
_this.GAvR(e);
|
|
21888
21888
|
};
|
|
21889
21889
|
break;
|
|
21890
21890
|
case "show-video":
|
|
21891
21891
|
element.onclick = function (e) {
|
|
21892
21892
|
e.stopPropagation();
|
|
21893
21893
|
window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
|
|
21894
|
-
_this.
|
|
21894
|
+
_this.GAvR(e);
|
|
21895
21895
|
};
|
|
21896
21896
|
break;
|
|
21897
21897
|
case "cancel":
|
|
21898
21898
|
element.onclick = function (e) {
|
|
21899
21899
|
e.stopPropagation();
|
|
21900
|
-
_this.
|
|
21900
|
+
_this.GAvR(e);
|
|
21901
21901
|
window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
|
|
21902
21902
|
};
|
|
21903
21903
|
break;
|
|
21904
21904
|
case "dismiss":
|
|
21905
21905
|
element.onclick = function (e) {
|
|
21906
21906
|
e.stopPropagation();
|
|
21907
|
-
_this.
|
|
21907
|
+
_this.GAvR(e);
|
|
21908
21908
|
};
|
|
21909
21909
|
break;
|
|
21910
21910
|
case "never":
|
|
21911
21911
|
element.onclick = function (e) {
|
|
21912
|
-
var _window$
|
|
21912
|
+
var _window$ApxorRTM2;
|
|
21913
21913
|
e.stopPropagation();
|
|
21914
21914
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
21915
|
-
(_window$
|
|
21915
|
+
(_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 || _window$ApxorRTM2.logEvent("apx_nudge_terminated", {
|
|
21916
21916
|
apx_nudge_name: _this.name,
|
|
21917
21917
|
apx_nudge_id: _this.configId,
|
|
21918
21918
|
apx_termination_type: "never-show"
|
|
21919
21919
|
});
|
|
21920
|
-
_this.
|
|
21920
|
+
_this.GAvR(e);
|
|
21921
21921
|
};
|
|
21922
21922
|
break;
|
|
21923
21923
|
case "toggle-class":
|
|
@@ -21942,13 +21942,14 @@
|
|
|
21942
21942
|
tempInput.select();
|
|
21943
21943
|
document.execCommand("copy");
|
|
21944
21944
|
document.body.removeChild(tempInput);
|
|
21945
|
-
_this.
|
|
21945
|
+
_this.GAvR(e);
|
|
21946
21946
|
};
|
|
21947
21947
|
break;
|
|
21948
21948
|
case "log-app-event":
|
|
21949
21949
|
element.onclick = function (e) {
|
|
21950
|
+
var _window$ApxorRTM3;
|
|
21950
21951
|
e.stopPropagation();
|
|
21951
|
-
window.
|
|
21952
|
+
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent(action === null || action === void 0 ? void 0 : action.event_name);
|
|
21952
21953
|
};
|
|
21953
21954
|
break;
|
|
21954
21955
|
case "log-client-event":
|
|
@@ -21961,7 +21962,7 @@
|
|
|
21961
21962
|
}
|
|
21962
21963
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
21963
21964
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
21964
|
-
var childElement = _this.
|
|
21965
|
+
var childElement = _this.CZfr(childConfig);
|
|
21965
21966
|
element.appendChild(childElement);
|
|
21966
21967
|
});
|
|
21967
21968
|
}
|
|
@@ -21969,7 +21970,7 @@
|
|
|
21969
21970
|
// Process children
|
|
21970
21971
|
if (config.children && config.children.length > 0) {
|
|
21971
21972
|
config.children.forEach(function (childConfig) {
|
|
21972
|
-
var childElement = _this.
|
|
21973
|
+
var childElement = _this.IPHJ(childConfig);
|
|
21973
21974
|
element.appendChild(childElement);
|
|
21974
21975
|
});
|
|
21975
21976
|
}
|
|
@@ -21995,7 +21996,7 @@
|
|
|
21995
21996
|
}
|
|
21996
21997
|
return element;
|
|
21997
21998
|
});
|
|
21998
|
-
_defineProperty(this, "
|
|
21999
|
+
_defineProperty(this, "GAvR", function (e) {
|
|
21999
22000
|
var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
|
|
22000
22001
|
var additional_info = {
|
|
22001
22002
|
apx_nudge_name: _this.name,
|
|
@@ -22004,15 +22005,15 @@
|
|
|
22004
22005
|
apx_template_name: "embed-card"
|
|
22005
22006
|
};
|
|
22006
22007
|
if (e.target.tagName === "BUTTON") {
|
|
22007
|
-
var _e$target$innerHTML, _e$target2, _window$
|
|
22008
|
+
var _e$target$innerHTML, _e$target2, _window$ApxorRTM4;
|
|
22008
22009
|
additional_info["apx_cta_text"] = (_e$target$innerHTML = e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.innerHTML) !== null && _e$target$innerHTML !== void 0 ? _e$target$innerHTML : "";
|
|
22009
|
-
(_window$
|
|
22010
|
+
(_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_card_CTA_clicked", additional_info);
|
|
22010
22011
|
} else {
|
|
22011
|
-
var _window$
|
|
22012
|
-
(_window$
|
|
22012
|
+
var _window$ApxorRTM5;
|
|
22013
|
+
(_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("apx_card_interaction", additional_info);
|
|
22013
22014
|
}
|
|
22014
22015
|
});
|
|
22015
|
-
_defineProperty(this, "
|
|
22016
|
+
_defineProperty(this, "Mfpa", function (config) {
|
|
22016
22017
|
config.forEach(function (id) {
|
|
22017
22018
|
var element = document.getElementById(id);
|
|
22018
22019
|
if (element) {
|
|
@@ -22020,7 +22021,7 @@
|
|
|
22020
22021
|
}
|
|
22021
22022
|
});
|
|
22022
22023
|
});
|
|
22023
|
-
_defineProperty(this, "
|
|
22024
|
+
_defineProperty(this, "BcAJ", function () {
|
|
22024
22025
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
22025
22026
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
22026
22027
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -22028,19 +22029,19 @@
|
|
|
22028
22029
|
return img.complete;
|
|
22029
22030
|
});
|
|
22030
22031
|
});
|
|
22031
|
-
_defineProperty(this, "
|
|
22032
|
+
_defineProperty(this, "qNbo", function () {
|
|
22032
22033
|
if (_this.videoElements.length === 0) return true;
|
|
22033
22034
|
return _this.videoElements.every(function (video) {
|
|
22034
22035
|
return video.readyState >= 3;
|
|
22035
22036
|
});
|
|
22036
22037
|
});
|
|
22037
|
-
_defineProperty(this, "
|
|
22038
|
+
_defineProperty(this, "SeJW", function () {
|
|
22038
22039
|
if (!_this.bgImageUrl) return true;
|
|
22039
22040
|
var img = new Image();
|
|
22040
22041
|
img.src = _this.bgImageUrl;
|
|
22041
22042
|
return img.complete;
|
|
22042
22043
|
});
|
|
22043
|
-
_defineProperty(this, "
|
|
22044
|
+
_defineProperty(this, "FLOH", function () {
|
|
22044
22045
|
var _window6, _window7;
|
|
22045
22046
|
var width = window.document.querySelector("html").offsetWidth;
|
|
22046
22047
|
var height = window.document.querySelector("html").offsetHeight;
|
|
@@ -22088,7 +22089,8 @@
|
|
|
22088
22089
|
|
|
22089
22090
|
var Stories = /*#__PURE__*/function () {
|
|
22090
22091
|
function Stories(_config, configId, name, position, slidesSeenCount, view_id, showCallback, closeCallback) {
|
|
22091
|
-
var _this = this
|
|
22092
|
+
var _this = this,
|
|
22093
|
+
_config$position;
|
|
22092
22094
|
_classCallCheck(this, Stories);
|
|
22093
22095
|
_defineProperty(this, "showStories", function () {
|
|
22094
22096
|
_this.storyContainer = document.createElement("div");
|
|
@@ -22129,8 +22131,8 @@
|
|
|
22129
22131
|
_this.storyContainer.appendChild(currentElement);
|
|
22130
22132
|
_this.storyContainer.appendChild(slideDetails);
|
|
22131
22133
|
document.body.appendChild(_this.storyContainer);
|
|
22132
|
-
_this.
|
|
22133
|
-
_this.
|
|
22134
|
+
_this.mZHL();
|
|
22135
|
+
_this.VeEd();
|
|
22134
22136
|
_this.progress = Array.from(document.querySelectorAll(".progress"));
|
|
22135
22137
|
var current_slide = document.querySelector(".slide-details");
|
|
22136
22138
|
var playNext = function playNext(e) {
|
|
@@ -22176,7 +22178,7 @@
|
|
|
22176
22178
|
_existingAbsoluteElements2.forEach(function (element) {
|
|
22177
22179
|
element.remove();
|
|
22178
22180
|
});
|
|
22179
|
-
// this.
|
|
22181
|
+
// this.Qhbi();
|
|
22180
22182
|
var _currentSlideDetails = document.querySelector(".slide-details");
|
|
22181
22183
|
_currentSlideDetails.innerHTML = "";
|
|
22182
22184
|
_this.position = _this.position + 1;
|
|
@@ -22272,7 +22274,7 @@
|
|
|
22272
22274
|
absolute_header = document.createElement("div");
|
|
22273
22275
|
current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
|
|
22274
22276
|
var current_absolute_element;
|
|
22275
|
-
current_absolute_element = _this.
|
|
22277
|
+
current_absolute_element = _this.CZfr(current_element);
|
|
22276
22278
|
absolute_header.appendChild(current_absolute_element);
|
|
22277
22279
|
});
|
|
22278
22280
|
(_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
|
|
@@ -22332,7 +22334,7 @@
|
|
|
22332
22334
|
document.body.style.backgroundRepeat = "";
|
|
22333
22335
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
22334
22336
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
22335
|
-
element = _this.
|
|
22337
|
+
element = _this.CZfr(updated_layout_without_absolute_elements);
|
|
22336
22338
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
22337
22339
|
document.body.style.margin = "0px";
|
|
22338
22340
|
}
|
|
@@ -22340,9 +22342,9 @@
|
|
|
22340
22342
|
current_slide.removeChild(current_slide.children[0]);
|
|
22341
22343
|
}
|
|
22342
22344
|
current_slide.appendChild(element);
|
|
22343
|
-
_this.
|
|
22345
|
+
_this.AIAj();
|
|
22344
22346
|
window.intervalToCheckImgStatus = setInterval(function () {
|
|
22345
|
-
if (_this.
|
|
22347
|
+
if (_this.wVBl()) {
|
|
22346
22348
|
clearInterval(window.intervalToCheckImgStatus);
|
|
22347
22349
|
}
|
|
22348
22350
|
}, 500);
|
|
@@ -22370,7 +22372,7 @@
|
|
|
22370
22372
|
});
|
|
22371
22373
|
playNext();
|
|
22372
22374
|
});
|
|
22373
|
-
_defineProperty(this, "
|
|
22375
|
+
_defineProperty(this, "Qhbi", function () {
|
|
22374
22376
|
document.body.classList.add("slide-right");
|
|
22375
22377
|
var animationEndCounter = 0;
|
|
22376
22378
|
var onAnimationEnd = function onAnimationEnd() {
|
|
@@ -22382,7 +22384,7 @@
|
|
|
22382
22384
|
};
|
|
22383
22385
|
document.body.addEventListener("animationend", onAnimationEnd);
|
|
22384
22386
|
});
|
|
22385
|
-
_defineProperty(this, "
|
|
22387
|
+
_defineProperty(this, "CZfr", function (config) {
|
|
22386
22388
|
var _window$Apxor4;
|
|
22387
22389
|
var element;
|
|
22388
22390
|
var explicit_styles = "";
|
|
@@ -22440,7 +22442,7 @@
|
|
|
22440
22442
|
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>";
|
|
22441
22443
|
element.id = "apx-mute-icon";
|
|
22442
22444
|
element.addEventListener("touchstart", function (event) {
|
|
22443
|
-
_this.
|
|
22445
|
+
_this.DhGb(event);
|
|
22444
22446
|
});
|
|
22445
22447
|
break;
|
|
22446
22448
|
case "copy_icon":
|
|
@@ -22497,6 +22499,22 @@
|
|
|
22497
22499
|
var styles;
|
|
22498
22500
|
styles = objectToCSS(imgStyleObject);
|
|
22499
22501
|
element.style = styles;
|
|
22502
|
+
} else if (config.type == "cell") {
|
|
22503
|
+
var _styleObject = parseCSS(config.css);
|
|
22504
|
+
var _styles;
|
|
22505
|
+
if (!_this.status_bar_height) {
|
|
22506
|
+
_styles = objectToCSS(_styleObject);
|
|
22507
|
+
element.style = _styles;
|
|
22508
|
+
} else {
|
|
22509
|
+
var elementTop = 0;
|
|
22510
|
+
if ("top" in _styleObject) {
|
|
22511
|
+
elementTop = parseInt(_styleObject.top.split("px")[0]) + _this.status_bar_height;
|
|
22512
|
+
}
|
|
22513
|
+
var stylesObject = removeKeys(_styleObject, ["top"]);
|
|
22514
|
+
var _styles2 = objectToCSS(stylesObject);
|
|
22515
|
+
element.style = _styles2;
|
|
22516
|
+
element.style.top = "".concat(elementTop, "px");
|
|
22517
|
+
}
|
|
22500
22518
|
} else {
|
|
22501
22519
|
var _config$properties3;
|
|
22502
22520
|
element.style = config.css;
|
|
@@ -22521,6 +22539,7 @@
|
|
|
22521
22539
|
updated_action = _objectSpread2(_objectSpread2({}, action), {}, {
|
|
22522
22540
|
display_type: "stories"
|
|
22523
22541
|
});
|
|
22542
|
+
window.ApxorRTM.pauseVideos();
|
|
22524
22543
|
window.Apxor.redirect(JSON.stringify(updated_action));
|
|
22525
22544
|
var progress = Array.from(document.querySelectorAll(".progress"));
|
|
22526
22545
|
var activeIndex = progress.findIndex(function (el) {
|
|
@@ -22639,7 +22658,7 @@
|
|
|
22639
22658
|
}
|
|
22640
22659
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
22641
22660
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
22642
|
-
var childElement = _this.
|
|
22661
|
+
var childElement = _this.CZfr(childConfig);
|
|
22643
22662
|
element.appendChild(childElement);
|
|
22644
22663
|
});
|
|
22645
22664
|
}
|
|
@@ -22647,7 +22666,7 @@
|
|
|
22647
22666
|
// Process children
|
|
22648
22667
|
if (config.children && config.children.length > 0) {
|
|
22649
22668
|
config.children.forEach(function (childConfig) {
|
|
22650
|
-
var childElement = _this.
|
|
22669
|
+
var childElement = _this.CZfr(childConfig);
|
|
22651
22670
|
element.appendChild(childElement);
|
|
22652
22671
|
});
|
|
22653
22672
|
}
|
|
@@ -22657,12 +22676,12 @@
|
|
|
22657
22676
|
element["src"] = src ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePathF = _window5.getFilePathForStories) === null || _window5$getFilePathF === void 0 ? void 0 : _window5$getFilePathF.call(_window5, _this.config[_this.position].id, src)) || src : src;
|
|
22658
22677
|
_this.imageElements.push(element);
|
|
22659
22678
|
var imgWrapper = document.createElement("div");
|
|
22660
|
-
var
|
|
22679
|
+
var _styleObject2 = parseCSS(config.css);
|
|
22661
22680
|
Object.keys(imgWrapperStylesForStories).forEach(function (prop) {
|
|
22662
|
-
if (prop in
|
|
22663
|
-
imgWrapper.style[imgWrapperStylesForStories[prop]] =
|
|
22681
|
+
if (prop in _styleObject2) {
|
|
22682
|
+
imgWrapper.style[imgWrapperStylesForStories[prop]] = _styleObject2[prop];
|
|
22664
22683
|
if (prop === "width") {
|
|
22665
|
-
element.style.width =
|
|
22684
|
+
element.style.width = _styleObject2[prop];
|
|
22666
22685
|
}
|
|
22667
22686
|
}
|
|
22668
22687
|
});
|
|
@@ -22675,7 +22694,7 @@
|
|
|
22675
22694
|
element.appendChild(ElementStyles);
|
|
22676
22695
|
return element;
|
|
22677
22696
|
});
|
|
22678
|
-
_defineProperty(this, "
|
|
22697
|
+
_defineProperty(this, "DhGb", function (event) {
|
|
22679
22698
|
var slide_details_to_be_deleted;
|
|
22680
22699
|
var mute_child_elements;
|
|
22681
22700
|
var unmute_child_elements;
|
|
@@ -22705,11 +22724,11 @@
|
|
|
22705
22724
|
}
|
|
22706
22725
|
// this.muteElement.addEventListener("touchstart", (event) => {
|
|
22707
22726
|
// event.stopPropagation();
|
|
22708
|
-
// this.
|
|
22727
|
+
// this.DhGb(event);
|
|
22709
22728
|
// });
|
|
22710
22729
|
}
|
|
22711
22730
|
});
|
|
22712
|
-
_defineProperty(this, "
|
|
22731
|
+
_defineProperty(this, "VeEd", function () {
|
|
22713
22732
|
var tapTimeout;
|
|
22714
22733
|
var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
|
|
22715
22734
|
var longPressDuration = 200;
|
|
@@ -22833,7 +22852,7 @@
|
|
|
22833
22852
|
event.target.dataset.touchStartTime = event.timeStamp;
|
|
22834
22853
|
});
|
|
22835
22854
|
});
|
|
22836
|
-
_defineProperty(this, "
|
|
22855
|
+
_defineProperty(this, "mZHL", function () {
|
|
22837
22856
|
var startY, startX;
|
|
22838
22857
|
_this.storyContainer.addEventListener("touchstart", function (event) {
|
|
22839
22858
|
_this.swipeTouch = true;
|
|
@@ -23040,7 +23059,7 @@
|
|
|
23040
23059
|
}, 50);
|
|
23041
23060
|
});
|
|
23042
23061
|
});
|
|
23043
|
-
_defineProperty(this, "
|
|
23062
|
+
_defineProperty(this, "AIAj", function () {
|
|
23044
23063
|
_this.loader.style.display = "block";
|
|
23045
23064
|
var progress = Array.from(document.querySelectorAll(".progress"));
|
|
23046
23065
|
var activeIndex = progress.findIndex(function (el) {
|
|
@@ -23056,7 +23075,7 @@
|
|
|
23056
23075
|
}
|
|
23057
23076
|
}
|
|
23058
23077
|
});
|
|
23059
|
-
_defineProperty(this, "
|
|
23078
|
+
_defineProperty(this, "URNM", function () {
|
|
23060
23079
|
if (!_this.continueLoading) {
|
|
23061
23080
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
23062
23081
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
@@ -23076,19 +23095,19 @@
|
|
|
23076
23095
|
_this.loader.style.display = "none";
|
|
23077
23096
|
}
|
|
23078
23097
|
});
|
|
23079
|
-
_defineProperty(this, "
|
|
23098
|
+
_defineProperty(this, "BcAJ", function () {
|
|
23080
23099
|
if (_this.imageElements.length === 0) return true;
|
|
23081
23100
|
return _this.imageElements.every(function (img) {
|
|
23082
23101
|
return img.complete;
|
|
23083
23102
|
});
|
|
23084
23103
|
});
|
|
23085
|
-
_defineProperty(this, "
|
|
23104
|
+
_defineProperty(this, "qNbo", function () {
|
|
23086
23105
|
if (_this.videoElements.length === 0) return true;
|
|
23087
23106
|
return _this.videoElements.every(function (video) {
|
|
23088
23107
|
return video.readyState >= 3;
|
|
23089
23108
|
});
|
|
23090
23109
|
});
|
|
23091
|
-
_defineProperty(this, "
|
|
23110
|
+
_defineProperty(this, "wVBl", function () {
|
|
23092
23111
|
var bodyStyles = window.getComputedStyle(document.body);
|
|
23093
23112
|
var backgroundImage = bodyStyles.backgroundImage;
|
|
23094
23113
|
if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
|
|
@@ -23098,7 +23117,7 @@
|
|
|
23098
23117
|
var img = new Image();
|
|
23099
23118
|
img.src = imageUrl;
|
|
23100
23119
|
if (img.complete) {
|
|
23101
|
-
_this.
|
|
23120
|
+
_this.URNM();
|
|
23102
23121
|
return true;
|
|
23103
23122
|
}
|
|
23104
23123
|
return false;
|
|
@@ -23106,21 +23125,21 @@
|
|
|
23106
23125
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
23107
23126
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
23108
23127
|
if (childElements[0].readyState >= 3) {
|
|
23109
|
-
_this.
|
|
23128
|
+
_this.URNM();
|
|
23110
23129
|
return true;
|
|
23111
23130
|
}
|
|
23112
23131
|
return false;
|
|
23113
23132
|
} else {
|
|
23114
23133
|
if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
|
|
23115
|
-
_this.
|
|
23134
|
+
_this.URNM();
|
|
23116
23135
|
return true;
|
|
23117
|
-
} else if (_this.
|
|
23118
|
-
_this.
|
|
23136
|
+
} else if (_this.BcAJ() && _this.qNbo()) {
|
|
23137
|
+
_this.URNM();
|
|
23119
23138
|
return true;
|
|
23120
23139
|
}
|
|
23121
23140
|
}
|
|
23122
23141
|
});
|
|
23123
|
-
_defineProperty(this, "
|
|
23142
|
+
_defineProperty(this, "tgxN", function (event, startY, action) {
|
|
23124
23143
|
event.stopPropagation();
|
|
23125
23144
|
var endY = event.changedTouches[0].clientY;
|
|
23126
23145
|
var deltaY = startY - endY;
|
|
@@ -23129,6 +23148,7 @@
|
|
|
23129
23148
|
var _window$ApxorRTM14;
|
|
23130
23149
|
_this.swipe_up_redirect = true;
|
|
23131
23150
|
_this.swipeUpTouch = true;
|
|
23151
|
+
window.ApxorRTM.pauseVideos();
|
|
23132
23152
|
window.Apxor.redirect(JSON.stringify(action));
|
|
23133
23153
|
var progress = Array.from(document.querySelectorAll(".progress"));
|
|
23134
23154
|
var activeIndex = progress.findIndex(function (el) {
|
|
@@ -23173,6 +23193,7 @@
|
|
|
23173
23193
|
this.view_id = view_id;
|
|
23174
23194
|
this.showCallback = showCallback;
|
|
23175
23195
|
this.closeCallback = closeCallback;
|
|
23196
|
+
this.status_bar_height = (_config$position = _config[position]) === null || _config$position === void 0 ? void 0 : _config$position.status_bar_height;
|
|
23176
23197
|
this.progress_bar = new ProgressBar$1(_config[position].progress_bar);
|
|
23177
23198
|
this.slides = _config[position].slides;
|
|
23178
23199
|
if (this.slides.length === this.slidesSeenCount) {
|
|
@@ -23215,18 +23236,19 @@
|
|
|
23215
23236
|
this.swipe_action;
|
|
23216
23237
|
this.continueLoading = false;
|
|
23217
23238
|
this.boundSwipeUpHandling = function (event) {
|
|
23218
|
-
return _this.
|
|
23239
|
+
return _this.tgxN(event, _this.startY, _this.swipe_action);
|
|
23219
23240
|
};
|
|
23220
23241
|
}
|
|
23221
23242
|
_createClass(Stories, [{
|
|
23222
23243
|
key: "_getStoriesStyles",
|
|
23223
23244
|
value: function _getStoriesStyles() {
|
|
23245
|
+
var _this$status_bar_heig;
|
|
23224
23246
|
var head = document.head || document.getElementsByTagName("head")[0];
|
|
23225
23247
|
var styleNodes = head.querySelectorAll(".apx-progressbar-styles");
|
|
23226
23248
|
styleNodes.forEach(function (node) {
|
|
23227
23249
|
node.parentNode.removeChild(node);
|
|
23228
23250
|
});
|
|
23229
|
-
this.storiesStyles = "\n .progress-container {\n position:absolute;\n top:
|
|
23251
|
+
this.storiesStyles = "\n .progress-container {\n position:absolute;\n top:".concat((_this$status_bar_heig = this.status_bar_height) !== null && _this$status_bar_heig !== void 0 ? _this$status_bar_heig : 12, "px;\n display: flex !important;\n flex-direction: row !important;\n width:100%;\n }\n\n *,:before,:after {\n box-sizing: border-box;\n -webkit-user-select: none;\n -webkit-touch-callout: none;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb\n }\n\n .progress {\n height: 4px; \n flex-grow: 1;\n border-radius: 4px;\n margin: 0 4px;\n display: flex;\n background-image: linear-gradient(\n to right,\n ").concat(this.progress_bar.seen_color, " 0%,\n ").concat(this.progress_bar.seen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 50%,\n ").concat(this.progress_bar.unseen_color, " 100%\n );\n background-repeat: no-repeat;\n background-size: 200%;\n background-position: 100% 50%;\n animation-timing-function: linear;\n animation-delay: 0.2s;\n }\n\n .progress.active {\n animation-name: Loader;\n }\n\n .progress.passed { \n background-position: 0 0;\n }\n\n .slide-right {\n animation: 0.5s slide-right forwards;\n background: linear-gradient(to right, rgba(225, 219, 30, 0.99), rgb(36, 202, 238)); \n background-size: 200% 100%;\n }\n \n @keyframes slide-right {\n from {\n background-position: 0% 0;\n }\n to {\n background-position: 100% 0;\n }\n }\n\n @-webkit-keyframes Loader {\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: 0 0;\n }\n }\n\n @keyframes moveUpDownButton {\n 0%,\n 100% {\n bottom: 12px;\n }\n 50% {\n bottom: 32px;\n }\n } \n\n body {\n background: #121216;\n }\n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
23230
23252
|
var styleNode = document.createElement("style");
|
|
23231
23253
|
styleNode.setAttribute("apx-stories-styles", "");
|
|
23232
23254
|
styleNode.classList.add("apx-progressbar-styles");
|
|
@@ -23278,7 +23300,7 @@
|
|
|
23278
23300
|
} else {
|
|
23279
23301
|
var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
|
|
23280
23302
|
// Move to the first slide of the next group
|
|
23281
|
-
// this.
|
|
23303
|
+
// this.Qhbi();
|
|
23282
23304
|
this.position++;
|
|
23283
23305
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
23284
23306
|
this.slides = this.config[this.position].slides;
|
|
@@ -23404,7 +23426,7 @@
|
|
|
23404
23426
|
if (activeIndex === 0) {
|
|
23405
23427
|
var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
|
|
23406
23428
|
// If at the first slide of the current group, move to the last slide of the previous group
|
|
23407
|
-
// this.
|
|
23429
|
+
// this.Qhbi();
|
|
23408
23430
|
this.position--;
|
|
23409
23431
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
23410
23432
|
this.slides = this.config[this.position].slides;
|
|
@@ -23591,25 +23613,25 @@
|
|
|
23591
23613
|
// Create custom content
|
|
23592
23614
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
23593
23615
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
23594
|
-
element = this.
|
|
23616
|
+
element = this.CZfr(updated_layout_without_absolute_elements);
|
|
23595
23617
|
}
|
|
23596
23618
|
// Append slide content to slide details container
|
|
23597
23619
|
|
|
23598
23620
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
23599
23621
|
document.body.style.margin = "0px";
|
|
23600
23622
|
currentSlideDetails.appendChild(element);
|
|
23601
|
-
this.
|
|
23623
|
+
this.AIAj();
|
|
23602
23624
|
|
|
23603
23625
|
// Handle absolute position children
|
|
23604
23626
|
if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
|
|
23605
23627
|
current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
|
|
23606
|
-
var childElement = _this2.
|
|
23628
|
+
var childElement = _this2.CZfr(childConfig);
|
|
23607
23629
|
// Append absolute position children to slide details container
|
|
23608
23630
|
currentSlideDetails.appendChild(childElement);
|
|
23609
23631
|
});
|
|
23610
23632
|
}
|
|
23611
23633
|
window.intervalToCheckImgStatus2 = setInterval(function () {
|
|
23612
|
-
if (_this2.
|
|
23634
|
+
if (_this2.wVBl()) {
|
|
23613
23635
|
clearInterval(window.intervalToCheckImgStatus2);
|
|
23614
23636
|
}
|
|
23615
23637
|
}, 500);
|
|
@@ -24044,15 +24066,15 @@
|
|
|
24044
24066
|
_this$badge$animation2,
|
|
24045
24067
|
_this$badge$animation3;
|
|
24046
24068
|
_classCallCheck(this, ApxorBadge);
|
|
24047
|
-
_defineProperty(this, "
|
|
24069
|
+
_defineProperty(this, "YJBe", function () {
|
|
24048
24070
|
var delayMillis = _this.delayMillis * 1000;
|
|
24049
24071
|
_this.shakeAnimationRepeat(_this.interCount, delayMillis);
|
|
24050
24072
|
});
|
|
24051
|
-
_defineProperty(this, "
|
|
24073
|
+
_defineProperty(this, "RRte", function () {
|
|
24052
24074
|
var delayMillis = _this.delayMillis * 1000;
|
|
24053
24075
|
_this.fadeAnimationRepeat(_this.interCount, delayMillis);
|
|
24054
24076
|
});
|
|
24055
|
-
_defineProperty(this, "
|
|
24077
|
+
_defineProperty(this, "meeG", function () {
|
|
24056
24078
|
var _this$targetElement;
|
|
24057
24079
|
var delayMillis = _this.delayMillis * 1000;
|
|
24058
24080
|
var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
@@ -24061,7 +24083,7 @@
|
|
|
24061
24083
|
(_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
|
|
24062
24084
|
_this.rippleAnimationRepeat(_this.interCount, delayMillis);
|
|
24063
24085
|
});
|
|
24064
|
-
_defineProperty(this, "
|
|
24086
|
+
_defineProperty(this, "WRyz", function () {
|
|
24065
24087
|
var delayMillis = _this.delayMillis * 1000;
|
|
24066
24088
|
//let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
|
|
24067
24089
|
//let badgeAnimationElement = document.querySelector(badgeContainerClass);
|
|
@@ -24078,7 +24100,7 @@
|
|
|
24078
24100
|
// newstyleNode1.innerHTML = finalStyles;
|
|
24079
24101
|
// this.targetElement?.appendChild(newstyleNode1);
|
|
24080
24102
|
});
|
|
24081
|
-
_defineProperty(this, "
|
|
24103
|
+
_defineProperty(this, "mayB", function () {
|
|
24082
24104
|
var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
|
|
24083
24105
|
elements === null || elements === void 0 || elements.forEach(function (ele) {
|
|
24084
24106
|
ele === null || ele === void 0 || ele.remove();
|
|
@@ -24087,9 +24109,9 @@
|
|
|
24087
24109
|
dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
|
|
24088
24110
|
ele === null || ele === void 0 || ele.remove();
|
|
24089
24111
|
});
|
|
24090
|
-
_this.
|
|
24112
|
+
_this.bFdF();
|
|
24091
24113
|
});
|
|
24092
|
-
_defineProperty(this, "
|
|
24114
|
+
_defineProperty(this, "bFdF", function () {
|
|
24093
24115
|
var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
|
|
24094
24116
|
// Ensure the target element is the wrapper with class 'image-container'
|
|
24095
24117
|
if (targetWrapperElement) {
|
|
@@ -24113,12 +24135,12 @@
|
|
|
24113
24135
|
* @param {boolean} optimized
|
|
24114
24136
|
* @returns viewId
|
|
24115
24137
|
*/
|
|
24116
|
-
_defineProperty(this, "
|
|
24138
|
+
_defineProperty(this, "eIhd", function (node, optimized) {
|
|
24117
24139
|
if (node.nodeType !== Node.ELEMENT_NODE) return "";
|
|
24118
24140
|
var steps = [];
|
|
24119
24141
|
var contextNode = node;
|
|
24120
24142
|
while (contextNode) {
|
|
24121
|
-
var step = _this.
|
|
24143
|
+
var step = _this.jLln(contextNode, !!optimized, contextNode === node);
|
|
24122
24144
|
if (!step) break; // Error - bail out early.
|
|
24123
24145
|
steps.push(step);
|
|
24124
24146
|
if (step.optimized) break;
|
|
@@ -24133,7 +24155,7 @@
|
|
|
24133
24155
|
* @param {boolean} optimized
|
|
24134
24156
|
* @param {object} isTargetNode
|
|
24135
24157
|
*/
|
|
24136
|
-
_defineProperty(this, "
|
|
24158
|
+
_defineProperty(this, "jLln", function (node, optimized, isTargetNode) {
|
|
24137
24159
|
if (node.nodeType !== Node.ELEMENT_NODE) return null;
|
|
24138
24160
|
var id = node.getAttribute("id");
|
|
24139
24161
|
if (optimized) {
|
|
@@ -24255,7 +24277,7 @@
|
|
|
24255
24277
|
this.contentZindexValue = 1;
|
|
24256
24278
|
}
|
|
24257
24279
|
_createClass(ApxorBadge, [{
|
|
24258
|
-
key: "
|
|
24280
|
+
key: "EOyo",
|
|
24259
24281
|
value: function createBadge() {
|
|
24260
24282
|
var _this2 = this;
|
|
24261
24283
|
var targetFoundCallback = function targetFoundCallback() {
|
|
@@ -25072,16 +25094,16 @@
|
|
|
25072
25094
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
25073
25095
|
var _this = this;
|
|
25074
25096
|
_classCallCheck(this, RTM);
|
|
25075
|
-
_defineProperty(this, "
|
|
25097
|
+
_defineProperty(this, "fHZG", {});
|
|
25076
25098
|
_defineProperty(this, "isShowingAction", false);
|
|
25077
25099
|
_defineProperty(this, "currentAction", null);
|
|
25078
|
-
_defineProperty(this, "
|
|
25079
|
-
_defineProperty(this, "version",
|
|
25100
|
+
_defineProperty(this, "AJVx", null);
|
|
25101
|
+
_defineProperty(this, "version", 95);
|
|
25080
25102
|
_defineProperty(this, "isInitialised", false);
|
|
25081
|
-
_defineProperty(this, "
|
|
25082
|
-
_defineProperty(this, "
|
|
25103
|
+
_defineProperty(this, "BqLl", {});
|
|
25104
|
+
_defineProperty(this, "RdLI", false);
|
|
25083
25105
|
_defineProperty(this, "_isShownECCalled", false);
|
|
25084
|
-
_defineProperty(this, "
|
|
25106
|
+
_defineProperty(this, "pjzM", function () {
|
|
25085
25107
|
_this.isInitialised = true;
|
|
25086
25108
|
var oldPushState = history.pushState;
|
|
25087
25109
|
history.pushState = function pushState() {
|
|
@@ -25108,7 +25130,7 @@
|
|
|
25108
25130
|
var _window;
|
|
25109
25131
|
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
|
|
25110
25132
|
if (!_this.isInitialised) {
|
|
25111
|
-
_this.
|
|
25133
|
+
_this.pjzM();
|
|
25112
25134
|
}
|
|
25113
25135
|
window.addEventListener("pagehide", function () {
|
|
25114
25136
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -25133,7 +25155,7 @@
|
|
|
25133
25155
|
} else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
|
|
25134
25156
|
_this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
|
|
25135
25157
|
} else if (ui_config.display_type === "coach_mark_v2") {
|
|
25136
|
-
_this.
|
|
25158
|
+
_this.qXJu(ui_config, duration, uuid, name);
|
|
25137
25159
|
} else {
|
|
25138
25160
|
showCoachmarkWithDelay(_this, ui_config, {
|
|
25139
25161
|
configId: uuid,
|
|
@@ -25173,7 +25195,7 @@
|
|
|
25173
25195
|
});
|
|
25174
25196
|
_defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
|
|
25175
25197
|
if (!_this.isInitialised) {
|
|
25176
|
-
_this.
|
|
25198
|
+
_this.pjzM();
|
|
25177
25199
|
}
|
|
25178
25200
|
window.addEventListener("pagehide", function () {
|
|
25179
25201
|
var _window$Apxor2, _window$Apxor2$pageUn;
|
|
@@ -25185,7 +25207,7 @@
|
|
|
25185
25207
|
_this.removeBadge(name, uuid);
|
|
25186
25208
|
}
|
|
25187
25209
|
var termination_config = JSON.parse(terminationConfig);
|
|
25188
|
-
_this.
|
|
25210
|
+
_this.EOyo(ui_config, duration, uuid, name, termination_config);
|
|
25189
25211
|
});
|
|
25190
25212
|
_defineProperty(this, "showInApp", function (config, duration, configId, name) {
|
|
25191
25213
|
try {
|
|
@@ -25251,7 +25273,7 @@
|
|
|
25251
25273
|
try {
|
|
25252
25274
|
config = config.split("\n").join("\\n");
|
|
25253
25275
|
var ui_config = JSON.parse(config);
|
|
25254
|
-
_this.
|
|
25276
|
+
_this.UCak(ui_config, configId, name, position, slidesSeenCount, view_id);
|
|
25255
25277
|
} catch (e) {
|
|
25256
25278
|
var _window$Apxor4;
|
|
25257
25279
|
if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
|
|
@@ -25265,7 +25287,7 @@
|
|
|
25265
25287
|
console.error(e);
|
|
25266
25288
|
}
|
|
25267
25289
|
});
|
|
25268
|
-
_defineProperty(this, "
|
|
25290
|
+
_defineProperty(this, "UCak", function (config, configId, name, position, slidesSeenCount, view_id) {
|
|
25269
25291
|
var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
|
|
25270
25292
|
var _window$ApxorRTM3, _config$additional_in3, _config$additional_in4;
|
|
25271
25293
|
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_nudge_shown", {
|
|
@@ -25314,7 +25336,7 @@
|
|
|
25314
25336
|
var _window22, _window22$updateFlag, _window23;
|
|
25315
25337
|
_this.isShowingAction = false;
|
|
25316
25338
|
_this.currentAction = null;
|
|
25317
|
-
_this.
|
|
25339
|
+
_this.AJVx = null;
|
|
25318
25340
|
(_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);
|
|
25319
25341
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
25320
25342
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -25325,21 +25347,21 @@
|
|
|
25325
25347
|
}
|
|
25326
25348
|
};
|
|
25327
25349
|
if (action_class === "new-inline") {
|
|
25328
|
-
_this.
|
|
25350
|
+
_this.AJVx = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
25329
25351
|
configId: uuid,
|
|
25330
25352
|
configName: name
|
|
25331
25353
|
}, _this, onShow, onHide, function () {}, false, 0);
|
|
25332
25354
|
} else if (action_class === "tooltip_builder") {
|
|
25333
|
-
_this.
|
|
25355
|
+
_this.AJVx = new NewInLineTooltip(ui_config, terminationConfig, {
|
|
25334
25356
|
configId: uuid,
|
|
25335
25357
|
configName: name
|
|
25336
25358
|
}, _this, onShow, onHide);
|
|
25337
25359
|
}
|
|
25338
25360
|
setTimeout(function () {
|
|
25339
|
-
_this.
|
|
25361
|
+
_this.AJVx.createNewTooltip();
|
|
25340
25362
|
}, ui_config.delay);
|
|
25341
25363
|
});
|
|
25342
|
-
_defineProperty(this, "
|
|
25364
|
+
_defineProperty(this, "qXJu", function (ui_config, duration, uuid, name) {
|
|
25343
25365
|
var terminationConfig = {};
|
|
25344
25366
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
25345
25367
|
terminationConfig["duration"] = duration;
|
|
@@ -25363,7 +25385,7 @@
|
|
|
25363
25385
|
var _window27, _window27$updateFlag, _window28;
|
|
25364
25386
|
_this.isShowingAction = false;
|
|
25365
25387
|
_this.currentAction = null;
|
|
25366
|
-
_this.
|
|
25388
|
+
_this.AJVx = null;
|
|
25367
25389
|
(_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);
|
|
25368
25390
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
25369
25391
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -25375,7 +25397,7 @@
|
|
|
25375
25397
|
}, _this.stepperCallback, false, 0);
|
|
25376
25398
|
_this._currentCoachmark.createNewCoachMark();
|
|
25377
25399
|
});
|
|
25378
|
-
_defineProperty(this, "
|
|
25400
|
+
_defineProperty(this, "EOyo", function (ui_config, duration, uuid, name, terminationConfig) {
|
|
25379
25401
|
_this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
|
|
25380
25402
|
configId: uuid,
|
|
25381
25403
|
configName: name
|
|
@@ -25392,12 +25414,12 @@
|
|
|
25392
25414
|
}
|
|
25393
25415
|
}
|
|
25394
25416
|
});
|
|
25395
|
-
_this._currentBadge.
|
|
25396
|
-
_this._currentBadge.
|
|
25417
|
+
_this._currentBadge.mayB();
|
|
25418
|
+
_this._currentBadge.EOyo();
|
|
25397
25419
|
});
|
|
25398
25420
|
_defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
|
|
25399
|
-
if (_this.
|
|
25400
|
-
_this.
|
|
25421
|
+
if (_this.AJVx) {
|
|
25422
|
+
_this.AJVx.updateElementPositionOnScroll(top, left, height, width);
|
|
25401
25423
|
}
|
|
25402
25424
|
});
|
|
25403
25425
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -25532,10 +25554,10 @@
|
|
|
25532
25554
|
});
|
|
25533
25555
|
_defineProperty(this, "showPlaceHolder", function () {
|
|
25534
25556
|
var _window38;
|
|
25535
|
-
if (_this.
|
|
25557
|
+
if (_this.RdLI) {
|
|
25536
25558
|
return;
|
|
25537
25559
|
}
|
|
25538
|
-
_this.
|
|
25560
|
+
_this.RdLI = true;
|
|
25539
25561
|
var ele = document.createElement("div");
|
|
25540
25562
|
ele.innerHTML = "place your immersive card here";
|
|
25541
25563
|
ele.style.backgroundColor = "#f5f5f5";
|