apxor-rtm-ui 0.9.10 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apxor.rtm.js.bak +176 -177
- package/dist/apxor.rtm.min.js +3 -3
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -7573,7 +7573,6 @@
|
|
|
7573
7573
|
return a.slot - b.slot;
|
|
7574
7574
|
});
|
|
7575
7575
|
buttons_config.forEach(function (button_config) {
|
|
7576
|
-
var _button_config$action;
|
|
7577
7576
|
// let _action = "end";
|
|
7578
7577
|
// let url = "";
|
|
7579
7578
|
// let isExternal = "";
|
|
@@ -7589,7 +7588,7 @@
|
|
|
7589
7588
|
// callbackFunction = action.callback ?? (() => {});
|
|
7590
7589
|
// }
|
|
7591
7590
|
|
|
7592
|
-
var action_config = (
|
|
7591
|
+
var action_config = (button_config === null || button_config === void 0 ? void 0 : button_config.action) || {};
|
|
7593
7592
|
var _action = action_config === null || action_config === void 0 ? void 0 : action_config.action;
|
|
7594
7593
|
var events = (action_config === null || action_config === void 0 ? void 0 : action_config.events) || [];
|
|
7595
7594
|
var user_properties = (action_config === null || action_config === void 0 ? void 0 : action_config.user_props) || [];
|
|
@@ -7629,8 +7628,8 @@
|
|
|
7629
7628
|
case "done":
|
|
7630
7629
|
case "dismiss":
|
|
7631
7630
|
action = function action() {
|
|
7632
|
-
ActionHandler.complete(false, "dismiss");
|
|
7633
7631
|
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7632
|
+
ActionHandler.complete(false, _action);
|
|
7634
7633
|
if (step != -1) {
|
|
7635
7634
|
var _window;
|
|
7636
7635
|
(_window = window) === null || _window === void 0 || (_window = _window.Apxor) === null || _window === void 0 || _window.triggerNextStep(uuid, step + 1);
|
|
@@ -7639,20 +7638,20 @@
|
|
|
7639
7638
|
break;
|
|
7640
7639
|
case "next":
|
|
7641
7640
|
action = function action() {
|
|
7641
|
+
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7642
7642
|
ActionHandler.complete(false, "next");
|
|
7643
7643
|
if (isWalkthrough && ind + 1 < uis.length) {
|
|
7644
7644
|
ActionHandler.next(uuid, ind + 1);
|
|
7645
7645
|
}
|
|
7646
|
-
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7647
7646
|
};
|
|
7648
7647
|
break;
|
|
7649
7648
|
case "prev":
|
|
7650
7649
|
action = function action() {
|
|
7650
|
+
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7651
7651
|
ActionHandler.complete(false, "prev");
|
|
7652
7652
|
if (isWalkthrough && ind - 1 >= 0) {
|
|
7653
7653
|
ActionHandler.prev(uuid, ind - 1);
|
|
7654
7654
|
}
|
|
7655
|
-
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7656
7655
|
};
|
|
7657
7656
|
break;
|
|
7658
7657
|
case "redirect":
|
|
@@ -7669,8 +7668,8 @@
|
|
|
7669
7668
|
(_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || _window2.triggerNextStep(uuid, step + 1);
|
|
7670
7669
|
}
|
|
7671
7670
|
} else {
|
|
7672
|
-
ActionHandler.complete(true, "redirect");
|
|
7673
7671
|
window.Apxor.redirectTo("IN_APP", uuid, name, text, JSON.stringify(action_config));
|
|
7672
|
+
ActionHandler.complete(true, "redirect");
|
|
7674
7673
|
if (step != -1) {
|
|
7675
7674
|
var _window3;
|
|
7676
7675
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.Apxor) === null || _window3 === void 0 || _window3.triggerNextStep(uuid, step + 1);
|
|
@@ -7719,9 +7718,9 @@
|
|
|
7719
7718
|
break;
|
|
7720
7719
|
case "cancel":
|
|
7721
7720
|
action = function action() {
|
|
7722
|
-
ActionHandler.cancel(true, "cancel");
|
|
7723
7721
|
ActionHandler._isCancelled = true;
|
|
7724
7722
|
window.Apxor.logActionEvent(configType + text + "_Clicked", uuid, name);
|
|
7723
|
+
ActionHandler.cancel(true, "cancel");
|
|
7725
7724
|
window.Apxor.logActionEvent("walk_through_cancelled", uuid, name);
|
|
7726
7725
|
};
|
|
7727
7726
|
break;
|
|
@@ -8256,17 +8255,17 @@
|
|
|
8256
8255
|
var buttons_array = [];
|
|
8257
8256
|
var buttons_css = [];
|
|
8258
8257
|
buttons_config.forEach(function (button_config, index) {
|
|
8259
|
-
var _button_config$action2, _button_config$action3, _button_config$action4, _button_config$action5, _button_config$action6, _button_config$action7, _button_config$action8, _button_config$action9, _button_config$action10, _button_config$action11, _button_config$action12, _button_config$action13, _button_config$action14, _button_config$action15, _button_config$action16
|
|
8260
|
-
var _action = (_button_config$
|
|
8261
|
-
var vMap = (_button_config$
|
|
8262
|
-
var url = (_button_config$
|
|
8263
|
-
var events = (button_config === null || button_config === void 0 || (_button_config$
|
|
8264
|
-
var user_properties = (button_config === null || button_config === void 0 || (_button_config$
|
|
8265
|
-
var session_properties = (button_config === null || button_config === void 0 || (_button_config$
|
|
8266
|
-
var copy_content = (button_config === null || button_config === void 0 || (_button_config$
|
|
8267
|
-
var isExternal = (_button_config$
|
|
8268
|
-
var redirectWithin = (_button_config$
|
|
8269
|
-
var callbackFunction = (_button_config$
|
|
8258
|
+
var _button_config$action, _button_config$action2, _button_config$action3, _button_config$action4, _button_config$action5, _button_config$action6, _button_config$action7, _button_config$action8, _button_config$action9, _button_config$action10, _button_config$action11, _button_config$action12, _button_config$action13, _button_config$action14, _button_config$action15, _button_config$action16;
|
|
8259
|
+
var _action = (_button_config$action = button_config === null || button_config === void 0 || (_button_config$action2 = button_config.action_config) === null || _button_config$action2 === void 0 ? void 0 : _button_config$action2.action) !== null && _button_config$action !== void 0 ? _button_config$action : "end";
|
|
8260
|
+
var vMap = (_button_config$action3 = button_config === null || button_config === void 0 || (_button_config$action4 = button_config.action_config) === null || _button_config$action4 === void 0 ? void 0 : _button_config$action4.vmap) !== null && _button_config$action3 !== void 0 ? _button_config$action3 : {};
|
|
8261
|
+
var url = (_button_config$action5 = button_config === null || button_config === void 0 || (_button_config$action6 = button_config.action_config) === null || _button_config$action6 === void 0 ? void 0 : _button_config$action6.url) !== null && _button_config$action5 !== void 0 ? _button_config$action5 : "";
|
|
8262
|
+
var events = (button_config === null || button_config === void 0 || (_button_config$action7 = button_config.action_config) === null || _button_config$action7 === void 0 ? void 0 : _button_config$action7.events) || [];
|
|
8263
|
+
var user_properties = (button_config === null || button_config === void 0 || (_button_config$action8 = button_config.action_config) === null || _button_config$action8 === void 0 ? void 0 : _button_config$action8.user_props) || [];
|
|
8264
|
+
var session_properties = (button_config === null || button_config === void 0 || (_button_config$action9 = button_config.action_config) === null || _button_config$action9 === void 0 ? void 0 : _button_config$action9.session_props) || [];
|
|
8265
|
+
var copy_content = (button_config === null || button_config === void 0 || (_button_config$action10 = button_config.action_config) === null || _button_config$action10 === void 0 ? void 0 : _button_config$action10.copy_content) || "";
|
|
8266
|
+
var isExternal = (_button_config$action11 = button_config === null || button_config === void 0 || (_button_config$action12 = button_config.action_config) === null || _button_config$action12 === void 0 ? void 0 : _button_config$action12.is_external) !== null && _button_config$action11 !== void 0 ? _button_config$action11 : true;
|
|
8267
|
+
var redirectWithin = (_button_config$action13 = button_config === null || button_config === void 0 || (_button_config$action14 = button_config.action_config) === null || _button_config$action14 === void 0 ? void 0 : _button_config$action14.is_within) !== null && _button_config$action13 !== void 0 ? _button_config$action13 : false;
|
|
8268
|
+
var callbackFunction = (_button_config$action15 = button_config === null || button_config === void 0 || (_button_config$action16 = button_config.action_config) === null || _button_config$action16 === void 0 ? void 0 : _button_config$action16.callback_func) !== null && _button_config$action15 !== void 0 ? _button_config$action15 : "";
|
|
8270
8269
|
var action_config_str = JSON.stringify(button_config === null || button_config === void 0 ? void 0 : button_config.action_config);
|
|
8271
8270
|
_action = _action.toLowerCase();
|
|
8272
8271
|
var borders = button_config.borders,
|
|
@@ -12693,14 +12692,14 @@
|
|
|
12693
12692
|
_config$wait_interval,
|
|
12694
12693
|
_config$termination;
|
|
12695
12694
|
_classCallCheck(this, TemplateContent);
|
|
12696
|
-
_defineProperty(this, "
|
|
12695
|
+
_defineProperty(this, "VXSk", function () {
|
|
12697
12696
|
return new Promise(function (resolve, reject) {
|
|
12698
12697
|
try {
|
|
12699
|
-
var element = _this.
|
|
12698
|
+
var element = _this.mqbK(_this.layout);
|
|
12700
12699
|
var styleElement = document.createElement("style");
|
|
12701
12700
|
styleElement.innerHTML = _this.styleContent;
|
|
12702
12701
|
document.head.appendChild(styleElement);
|
|
12703
|
-
_this.
|
|
12702
|
+
_this.FtPp();
|
|
12704
12703
|
try {
|
|
12705
12704
|
eval(_this.script);
|
|
12706
12705
|
} catch (e) {
|
|
@@ -12711,15 +12710,15 @@
|
|
|
12711
12710
|
}
|
|
12712
12711
|
_this.imageElements.forEach(function (img) {
|
|
12713
12712
|
img.addEventListener("error", function () {
|
|
12714
|
-
_this.
|
|
12713
|
+
_this.zFfP("provided image doesn't exists");
|
|
12715
12714
|
});
|
|
12716
12715
|
});
|
|
12717
12716
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
12718
12717
|
_this.wait_interval -= 1;
|
|
12719
12718
|
if (_this.wait_interval <= 0) {
|
|
12720
|
-
_this.
|
|
12719
|
+
_this.zFfP("provided media doesn't exists");
|
|
12721
12720
|
} else {
|
|
12722
|
-
if (_this.
|
|
12721
|
+
if (_this.aJNA() && _this.GtTp() && _this.nXTc()) {
|
|
12723
12722
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
12724
12723
|
resolve(element);
|
|
12725
12724
|
}
|
|
@@ -12733,7 +12732,7 @@
|
|
|
12733
12732
|
}
|
|
12734
12733
|
});
|
|
12735
12734
|
});
|
|
12736
|
-
_defineProperty(this, "
|
|
12735
|
+
_defineProperty(this, "zFfP", function (reason) {
|
|
12737
12736
|
var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
|
|
12738
12737
|
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
12739
12738
|
apx_nudge_name: _this.name,
|
|
@@ -12749,13 +12748,13 @@
|
|
|
12749
12748
|
_this.closeCallBack("cancel");
|
|
12750
12749
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
|
|
12751
12750
|
});
|
|
12752
|
-
_defineProperty(this, "
|
|
12751
|
+
_defineProperty(this, "FtPp", function () {
|
|
12753
12752
|
var BuilderTemplatesStyles = document.createElement("style");
|
|
12754
12753
|
BuilderTemplatesStyles.innerHTML = _this.initialStyles;
|
|
12755
12754
|
BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
|
|
12756
12755
|
document.head.appendChild(BuilderTemplatesStyles);
|
|
12757
12756
|
});
|
|
12758
|
-
_defineProperty(this, "
|
|
12757
|
+
_defineProperty(this, "mqbK", function (config) {
|
|
12759
12758
|
var _window$Apxor3;
|
|
12760
12759
|
var element;
|
|
12761
12760
|
switch (config.type) {
|
|
@@ -12841,7 +12840,7 @@
|
|
|
12841
12840
|
if (config.type === "cta_button" || config.type === "button") {
|
|
12842
12841
|
reason = "cta-clicked";
|
|
12843
12842
|
}
|
|
12844
|
-
_this.
|
|
12843
|
+
_this.fTtB(e, "redirect", reason);
|
|
12845
12844
|
if ((_this$config7 = _this.config) !== null && _this$config7 !== void 0 && (_this$config7 = _this$config7.additional_info) !== null && _this$config7 !== void 0 && _this$config7.apx_step) {
|
|
12846
12845
|
var _window4, _this$config8;
|
|
12847
12846
|
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.Apxor) === null || _window4 === void 0 || _window4.triggerNextStep(_this.configId, ((_this$config8 = _this.config) === null || _this$config8 === void 0 || (_this$config8 = _this$config8.additional_info) === null || _this$config8 === void 0 ? void 0 : _this$config8.apx_step) + 1);
|
|
@@ -12954,7 +12953,7 @@
|
|
|
12954
12953
|
console.error("Failed to copy:", _context2.t2);
|
|
12955
12954
|
window.Apxor.showInfoToast("Failed to copy text");
|
|
12956
12955
|
case 41:
|
|
12957
|
-
_this.
|
|
12956
|
+
_this.fTtB(e, action.type, reason);
|
|
12958
12957
|
// window.Apxor.logActionEvent(
|
|
12959
12958
|
// "walk_through_cancelled",
|
|
12960
12959
|
// this.configId,
|
|
@@ -12981,7 +12980,7 @@
|
|
|
12981
12980
|
} else if (config.type === "cta_button" || config.type === "button") {
|
|
12982
12981
|
reason = "cta-clicked";
|
|
12983
12982
|
}
|
|
12984
|
-
_this.
|
|
12983
|
+
_this.fTtB(e, "dismiss", reason);
|
|
12985
12984
|
if ((_this$config9 = _this.config) !== null && _this$config9 !== void 0 && (_this$config9 = _this$config9.additional_info) !== null && _this$config9 !== void 0 && _this$config9.apx_step) {
|
|
12986
12985
|
var _window5, _this$config10;
|
|
12987
12986
|
(_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || _window5.triggerNextStep(_this.configId, ((_this$config10 = _this.config) === null || _this$config10 === void 0 || (_this$config10 = _this$config10.additional_info) === null || _this$config10 === void 0 ? void 0 : _this$config10.apx_step) + 1);
|
|
@@ -12992,7 +12991,7 @@
|
|
|
12992
12991
|
element.onclick = function (e) {
|
|
12993
12992
|
e.stopPropagation();
|
|
12994
12993
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
12995
|
-
_this.
|
|
12994
|
+
_this.fTtB(e, "never");
|
|
12996
12995
|
};
|
|
12997
12996
|
break;
|
|
12998
12997
|
case "toggle-class":
|
|
@@ -13019,7 +13018,7 @@
|
|
|
13019
13018
|
tempInput.select();
|
|
13020
13019
|
document.execCommand("copy");
|
|
13021
13020
|
document.body.removeChild(tempInput);
|
|
13022
|
-
_this.
|
|
13021
|
+
_this.fTtB(e, "copy-content", "cta-clicked");
|
|
13023
13022
|
setTimeout(function () {
|
|
13024
13023
|
window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
|
|
13025
13024
|
}, 500);
|
|
@@ -13041,7 +13040,7 @@
|
|
|
13041
13040
|
}
|
|
13042
13041
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
13043
13042
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
13044
|
-
var childElement = _this.
|
|
13043
|
+
var childElement = _this.mqbK(childConfig);
|
|
13045
13044
|
element.appendChild(childElement);
|
|
13046
13045
|
});
|
|
13047
13046
|
}
|
|
@@ -13049,7 +13048,7 @@
|
|
|
13049
13048
|
// Process children
|
|
13050
13049
|
if (config.children && config.children.length > 0) {
|
|
13051
13050
|
config.children.forEach(function (childConfig) {
|
|
13052
|
-
var childElement = _this.
|
|
13051
|
+
var childElement = _this.mqbK(childConfig);
|
|
13053
13052
|
element.appendChild(childElement);
|
|
13054
13053
|
});
|
|
13055
13054
|
}
|
|
@@ -13076,7 +13075,7 @@
|
|
|
13076
13075
|
}
|
|
13077
13076
|
return element;
|
|
13078
13077
|
});
|
|
13079
|
-
_defineProperty(this, "
|
|
13078
|
+
_defineProperty(this, "fTtB", function (e, action) {
|
|
13080
13079
|
var _window$Apxor6, _this$config11, _this$config12, _window$Apxor7, _this$config13, _this$config14, _this$config15, _this$config16;
|
|
13081
13080
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
13082
13081
|
var additional_info = {
|
|
@@ -13105,7 +13104,7 @@
|
|
|
13105
13104
|
_this.closeCallBack(action);
|
|
13106
13105
|
}
|
|
13107
13106
|
});
|
|
13108
|
-
_defineProperty(this, "
|
|
13107
|
+
_defineProperty(this, "GtTp", function () {
|
|
13109
13108
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
13110
13109
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
13111
13110
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -13113,13 +13112,13 @@
|
|
|
13113
13112
|
return img.complete;
|
|
13114
13113
|
});
|
|
13115
13114
|
});
|
|
13116
|
-
_defineProperty(this, "
|
|
13115
|
+
_defineProperty(this, "nXTc", function () {
|
|
13117
13116
|
if (!_this.bgImageUrl) return true;
|
|
13118
13117
|
var img = new Image();
|
|
13119
13118
|
img.src = _this.bgImageUrl;
|
|
13120
13119
|
return img.complete;
|
|
13121
13120
|
});
|
|
13122
|
-
_defineProperty(this, "
|
|
13121
|
+
_defineProperty(this, "aJNA", function () {
|
|
13123
13122
|
if (_this.videoElements.length === 0) return true;
|
|
13124
13123
|
return _this.videoElements.every(function (video) {
|
|
13125
13124
|
return video.readyState >= 3;
|
|
@@ -14058,7 +14057,7 @@
|
|
|
14058
14057
|
case 0:
|
|
14059
14058
|
_context2.prev = 0;
|
|
14060
14059
|
_context2.next = 3;
|
|
14061
|
-
return this.templateContent.
|
|
14060
|
+
return this.templateContent.VXSk();
|
|
14062
14061
|
case 3:
|
|
14063
14062
|
this.inLineContainer = _context2.sent;
|
|
14064
14063
|
_context2.next = 9;
|
|
@@ -15635,7 +15634,7 @@
|
|
|
15635
15634
|
* @description Creates the styles for Marketing message.
|
|
15636
15635
|
* @returns {string} css styles
|
|
15637
15636
|
*/
|
|
15638
|
-
_defineProperty(this, "
|
|
15637
|
+
_defineProperty(this, "waRa", function () {
|
|
15639
15638
|
if (!_this.enable_marketing) {
|
|
15640
15639
|
return "";
|
|
15641
15640
|
}
|
|
@@ -15654,7 +15653,7 @@
|
|
|
15654
15653
|
* @private
|
|
15655
15654
|
* @description Sets the marketing content at the end of the Inline
|
|
15656
15655
|
*/
|
|
15657
|
-
_defineProperty(this, "
|
|
15656
|
+
_defineProperty(this, "tkSk", function () {
|
|
15658
15657
|
if (_this.enable_marketing) {
|
|
15659
15658
|
var marketingContainer = document.createElement("div");
|
|
15660
15659
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -16268,7 +16267,7 @@
|
|
|
16268
16267
|
if (apxor_tooltip_styles) {
|
|
16269
16268
|
return;
|
|
16270
16269
|
}
|
|
16271
|
-
var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInLineContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInLineMediaContainerStyles(), "\n ").concat(this._getInLineNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getInLineButtonContainerStyles(), " \n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.
|
|
16270
|
+
var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInLineContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInLineMediaContainerStyles(), "\n ").concat(this._getInLineNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getInLineButtonContainerStyles(), " \n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.waRa(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
16272
16271
|
var styleNode = document.createElement("style");
|
|
16273
16272
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
16274
16273
|
styleNode.innerHTML = styles;
|
|
@@ -17078,7 +17077,7 @@
|
|
|
17078
17077
|
this._setCloseButton();
|
|
17079
17078
|
|
|
17080
17079
|
//Set the Marketing content
|
|
17081
|
-
this.
|
|
17080
|
+
this.tkSk();
|
|
17082
17081
|
}
|
|
17083
17082
|
|
|
17084
17083
|
/**
|
|
@@ -19975,7 +19974,7 @@
|
|
|
19975
19974
|
case 0:
|
|
19976
19975
|
_context2.prev = 0;
|
|
19977
19976
|
_context2.next = 3;
|
|
19978
|
-
return this.templateContent.
|
|
19977
|
+
return this.templateContent.VXSk();
|
|
19979
19978
|
case 3:
|
|
19980
19979
|
this.inAppContainer = _context2.sent;
|
|
19981
19980
|
this.inAppContainer.style.zIndex = 99999;
|
|
@@ -20174,7 +20173,7 @@
|
|
|
20174
20173
|
* @description Creates the styles for Marketing message.
|
|
20175
20174
|
* @returns {string} css styles
|
|
20176
20175
|
*/
|
|
20177
|
-
_defineProperty(this, "
|
|
20176
|
+
_defineProperty(this, "waRa", function () {
|
|
20178
20177
|
if (!_this.enable_marketing) {
|
|
20179
20178
|
return "";
|
|
20180
20179
|
}
|
|
@@ -20220,7 +20219,7 @@
|
|
|
20220
20219
|
* @private
|
|
20221
20220
|
* @description Get the response for Form content in the InApp modal.
|
|
20222
20221
|
*/
|
|
20223
|
-
_defineProperty(this, "
|
|
20222
|
+
_defineProperty(this, "OsDY", function (form_elements) {
|
|
20224
20223
|
var obj = {};
|
|
20225
20224
|
var callback = "";
|
|
20226
20225
|
form_elements.forEach(function (element) {
|
|
@@ -20260,7 +20259,7 @@
|
|
|
20260
20259
|
* @private
|
|
20261
20260
|
* @description Sets the marketing content at the end of the InApp
|
|
20262
20261
|
*/
|
|
20263
|
-
_defineProperty(this, "
|
|
20262
|
+
_defineProperty(this, "tkSk", function () {
|
|
20264
20263
|
if (_this.enable_marketing) {
|
|
20265
20264
|
var marketingContainer = document.createElement("div");
|
|
20266
20265
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -20520,7 +20519,7 @@
|
|
|
20520
20519
|
}, {
|
|
20521
20520
|
key: "_setStyles",
|
|
20522
20521
|
value: function _setStyles() {
|
|
20523
|
-
var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInAppContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInAppMediaContainerStyles(), "\n ").concat(this._getInAppNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getFormStyles(), "\n ").concat(this._getInAppButtonContainerStyles(), "\n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.
|
|
20522
|
+
var styles = "\n ".concat(this._getCustomFonts(), " \n ").concat(this._getBackgroundContainerStyles(), " \n ").concat(this._getInAppContainerStyles(), " \n ").concat(this._getScrollStyles(), " \n ").concat(this._getControlsStyles(), " \n ").concat(this._getInAppMediaContainerStyles(), "\n ").concat(this._getInAppNonMediaContainerStyles(), "\n ").concat(this._getTextConatinerStyles(), "\n ").concat(this._getTitleStyles(), " \n ").concat(this._getDescriptionStyles(), " \n ").concat(this._getFormStyles(), "\n ").concat(this._getInAppButtonContainerStyles(), "\n ").concat(this._getIconStyles(), " \n ").concat(this._getImageStyles(), " \n ").concat(this._getVideoStyles(), " \n ").concat(this.waRa(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
20524
20523
|
var styleNode = document.createElement("style");
|
|
20525
20524
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
20526
20525
|
styleNode.innerHTML = styles;
|
|
@@ -21014,7 +21013,7 @@
|
|
|
21014
21013
|
this._setCloseButton();
|
|
21015
21014
|
|
|
21016
21015
|
//Set the Marketing content
|
|
21017
|
-
this.
|
|
21016
|
+
this.tkSk();
|
|
21018
21017
|
}
|
|
21019
21018
|
|
|
21020
21019
|
/**
|
|
@@ -21286,7 +21285,7 @@
|
|
|
21286
21285
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
21287
21286
|
form.addEventListener("submit", function (e) {
|
|
21288
21287
|
e.preventDefault();
|
|
21289
|
-
var _this8$generateRespon = _this8.
|
|
21288
|
+
var _this8$generateRespon = _this8.OsDY(_this8.form.elements),
|
|
21290
21289
|
obj = _this8$generateRespon.obj,
|
|
21291
21290
|
callback = _this8$generateRespon.callback;
|
|
21292
21291
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -21646,7 +21645,7 @@
|
|
|
21646
21645
|
};
|
|
21647
21646
|
} else {
|
|
21648
21647
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
21649
|
-
_this.
|
|
21648
|
+
_this.kemQ();
|
|
21650
21649
|
}
|
|
21651
21650
|
_this.showCallback();
|
|
21652
21651
|
} catch (e) {
|
|
@@ -21667,7 +21666,7 @@
|
|
|
21667
21666
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
21668
21667
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
21669
21668
|
*/
|
|
21670
|
-
_defineProperty(this, "
|
|
21669
|
+
_defineProperty(this, "RVqm", function () {
|
|
21671
21670
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
21672
21671
|
width = _getHeightWidthFromRe.width,
|
|
21673
21672
|
height = _getHeightWidthFromRe.height;
|
|
@@ -21679,7 +21678,7 @@
|
|
|
21679
21678
|
* @private
|
|
21680
21679
|
* @description Removes the video player style element.
|
|
21681
21680
|
*/
|
|
21682
|
-
_defineProperty(this, "
|
|
21681
|
+
_defineProperty(this, "KTuG", function () {
|
|
21683
21682
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
21684
21683
|
if (playerStyles) {
|
|
21685
21684
|
playerStyles.remove();
|
|
@@ -21690,7 +21689,7 @@
|
|
|
21690
21689
|
* @private
|
|
21691
21690
|
* @description Attach listeners on the video controls
|
|
21692
21691
|
*/
|
|
21693
|
-
_defineProperty(this, "
|
|
21692
|
+
_defineProperty(this, "UbDB", function () {
|
|
21694
21693
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
21695
21694
|
_this.videoElement.addEventListener("ended", function () {
|
|
21696
21695
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -21793,7 +21792,7 @@
|
|
|
21793
21792
|
* @private
|
|
21794
21793
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21795
21794
|
*/
|
|
21796
|
-
_defineProperty(this, "
|
|
21795
|
+
_defineProperty(this, "zWHm", function () {
|
|
21797
21796
|
var _this$terminationConf;
|
|
21798
21797
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
21799
21798
|
// On Exit of the PIP,
|
|
@@ -21833,7 +21832,7 @@
|
|
|
21833
21832
|
* @private Sets the custom controls on the video player.
|
|
21834
21833
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
21835
21834
|
*/
|
|
21836
|
-
_defineProperty(this, "
|
|
21835
|
+
_defineProperty(this, "AibA", function () {
|
|
21837
21836
|
_this.enable_close_button;
|
|
21838
21837
|
if (_this.enable_close_button) {
|
|
21839
21838
|
var closeButton = document.createElement("span");
|
|
@@ -21880,21 +21879,21 @@
|
|
|
21880
21879
|
* @function hideVideoPlayer
|
|
21881
21880
|
* @description Sets the visibility of the video player to hidden.
|
|
21882
21881
|
*/
|
|
21883
|
-
_defineProperty(this, "
|
|
21882
|
+
_defineProperty(this, "lUku", function () {
|
|
21884
21883
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21885
21884
|
});
|
|
21886
21885
|
/**
|
|
21887
21886
|
* @function unhideVideoPlayer
|
|
21888
21887
|
* @description Unhides video player.
|
|
21889
21888
|
*/
|
|
21890
|
-
_defineProperty(this, "
|
|
21889
|
+
_defineProperty(this, "kemQ", function () {
|
|
21891
21890
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21892
21891
|
});
|
|
21893
21892
|
/**
|
|
21894
21893
|
* @function getVideoElement
|
|
21895
21894
|
* @returns {HTMLElement} Video ekement
|
|
21896
21895
|
*/
|
|
21897
|
-
_defineProperty(this, "
|
|
21896
|
+
_defineProperty(this, "RnxB", function () {
|
|
21898
21897
|
return _this.videoElement;
|
|
21899
21898
|
});
|
|
21900
21899
|
this.videoPlayer = null;
|
|
@@ -21949,7 +21948,7 @@
|
|
|
21949
21948
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
21950
21949
|
|
|
21951
21950
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
21952
|
-
this.
|
|
21951
|
+
this.RVqm();
|
|
21953
21952
|
//Generate the styles and add them to the document head.
|
|
21954
21953
|
this._setVideoPlayerStyles();
|
|
21955
21954
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -21957,16 +21956,16 @@
|
|
|
21957
21956
|
//Create a video element,set the source and add to the container.
|
|
21958
21957
|
this._setPlayerContent();
|
|
21959
21958
|
//Set the listeners on the video control buttons.
|
|
21960
|
-
this.
|
|
21959
|
+
this.UbDB();
|
|
21961
21960
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21962
|
-
this.
|
|
21961
|
+
this.zWHm();
|
|
21963
21962
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
21964
21963
|
//Reason - We want to position them at the top right and left positions.
|
|
21965
|
-
this.
|
|
21964
|
+
this.AibA();
|
|
21966
21965
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
21967
21966
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
21968
21967
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
21969
|
-
this.
|
|
21968
|
+
this.lUku();
|
|
21970
21969
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
21971
21970
|
this._setAutoTerminate();
|
|
21972
21971
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -22081,7 +22080,7 @@
|
|
|
22081
22080
|
}
|
|
22082
22081
|
}
|
|
22083
22082
|
this.videoPlayer.remove();
|
|
22084
|
-
this.
|
|
22083
|
+
this.KTuG();
|
|
22085
22084
|
if (closeButtonName !== "auto_dismiss") {
|
|
22086
22085
|
var _window$ApxorRTM8;
|
|
22087
22086
|
(_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_close_button_clicked", {
|
|
@@ -22151,7 +22150,7 @@
|
|
|
22151
22150
|
replayCount: _this3.replayCount
|
|
22152
22151
|
});
|
|
22153
22152
|
_this3.videoPlayer.remove();
|
|
22154
|
-
_this3.
|
|
22153
|
+
_this3.KTuG();
|
|
22155
22154
|
_this3.hideCallback();
|
|
22156
22155
|
} catch (e) {
|
|
22157
22156
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -22249,17 +22248,17 @@
|
|
|
22249
22248
|
try {
|
|
22250
22249
|
var _window, _parseCSS$background, _parseCSS;
|
|
22251
22250
|
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
|
|
22252
|
-
var element = _this.
|
|
22253
|
-
_this.
|
|
22251
|
+
var element = _this.qQDm(_this.layout);
|
|
22252
|
+
_this.bOdn();
|
|
22254
22253
|
var bg_cpp = (_parseCSS$background = (_parseCSS = parseCSS(_this.layout.css)) === null || _parseCSS === void 0 ? void 0 : _parseCSS["background-color"]) !== null && _parseCSS$background !== void 0 ? _parseCSS$background : "transparent";
|
|
22255
22254
|
document.body.style.backgroundColor = bg_cpp;
|
|
22256
22255
|
document.body.style.minWidth = "100%";
|
|
22257
22256
|
window.onresize = function () {
|
|
22258
|
-
_this.
|
|
22257
|
+
_this.LkTM();
|
|
22259
22258
|
};
|
|
22260
22259
|
_this.imageElements.forEach(function (img) {
|
|
22261
22260
|
img.addEventListener("error", function () {
|
|
22262
|
-
_this.
|
|
22261
|
+
_this.zFfP("provided image doesn't exists");
|
|
22263
22262
|
});
|
|
22264
22263
|
});
|
|
22265
22264
|
var rootContainer = document.createElement("div");
|
|
@@ -22267,7 +22266,7 @@
|
|
|
22267
22266
|
rootContainer.style.minWidth = "100%";
|
|
22268
22267
|
if (_this.singleLine) {
|
|
22269
22268
|
// Force the layout element to act as a slider
|
|
22270
|
-
_this.
|
|
22269
|
+
_this.TBTW(element);
|
|
22271
22270
|
|
|
22272
22271
|
// Stack elements vertically (Images on top, Dots on bottom)
|
|
22273
22272
|
rootContainer.style.display = "flex";
|
|
@@ -22279,7 +22278,7 @@
|
|
|
22279
22278
|
document.body.appendChild(rootContainer);
|
|
22280
22279
|
|
|
22281
22280
|
// Start the infinite 2-second slide and create dots
|
|
22282
|
-
_this.
|
|
22281
|
+
_this.QKlV(element, rootContainer);
|
|
22283
22282
|
} else {
|
|
22284
22283
|
// Fallback to original layout behavior
|
|
22285
22284
|
rootContainer.style.display = "flex";
|
|
@@ -22290,7 +22289,7 @@
|
|
|
22290
22289
|
var styleElement = document.createElement("style");
|
|
22291
22290
|
styleElement.innerHTML = _this.styleContent;
|
|
22292
22291
|
document.head.appendChild(styleElement);
|
|
22293
|
-
_this.
|
|
22292
|
+
_this.MMsv(_this.termination);
|
|
22294
22293
|
try {
|
|
22295
22294
|
eval(_this.script);
|
|
22296
22295
|
} catch (e) {
|
|
@@ -22301,10 +22300,10 @@
|
|
|
22301
22300
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
22302
22301
|
_this.wait_interval -= 1;
|
|
22303
22302
|
if (_this.wait_interval <= 0) {
|
|
22304
|
-
_this.
|
|
22303
|
+
_this.zFfP("provided media doesn't exists");
|
|
22305
22304
|
} else {
|
|
22306
|
-
if (_this.
|
|
22307
|
-
_this.
|
|
22305
|
+
if (_this.aJNA() && _this.GtTp() && _this.nXTc()) {
|
|
22306
|
+
_this.LkTM();
|
|
22308
22307
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
22309
22308
|
}
|
|
22310
22309
|
}
|
|
@@ -22316,7 +22315,7 @@
|
|
|
22316
22315
|
}
|
|
22317
22316
|
});
|
|
22318
22317
|
// Applies CSS to force children into a single horizontal row for sliding
|
|
22319
|
-
_defineProperty(this, "
|
|
22318
|
+
_defineProperty(this, "TBTW", function (container) {
|
|
22320
22319
|
container.style.display = "flex";
|
|
22321
22320
|
container.style.flexDirection = "row";
|
|
22322
22321
|
container.style.overflowX = "auto";
|
|
@@ -22361,7 +22360,7 @@
|
|
|
22361
22360
|
});
|
|
22362
22361
|
}
|
|
22363
22362
|
});
|
|
22364
|
-
_defineProperty(this, "
|
|
22363
|
+
_defineProperty(this, "zFfP", function (reason) {
|
|
22365
22364
|
var _window$ApxorRTM, _window4;
|
|
22366
22365
|
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
22367
22366
|
apx_nudge_name: _this.name,
|
|
@@ -22377,7 +22376,7 @@
|
|
|
22377
22376
|
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
|
|
22378
22377
|
});
|
|
22379
22378
|
// Creates pagination dots under the images and handles the infinite loop
|
|
22380
|
-
_defineProperty(this, "
|
|
22379
|
+
_defineProperty(this, "QKlV", function (container, rootContainer) {
|
|
22381
22380
|
var _this$carousel, _this$carousel2, _this$carousel3, _this$carousel4, _this$carousel9;
|
|
22382
22381
|
var childrenCount = container.children.length;
|
|
22383
22382
|
if (childrenCount <= 1) return;
|
|
@@ -22426,7 +22425,7 @@
|
|
|
22426
22425
|
} else {
|
|
22427
22426
|
currentIndex++;
|
|
22428
22427
|
}
|
|
22429
|
-
_this.
|
|
22428
|
+
_this.pqeV(container, currentIndex, dots);
|
|
22430
22429
|
}
|
|
22431
22430
|
}, _this.slideDuration);
|
|
22432
22431
|
};
|
|
@@ -22453,7 +22452,7 @@
|
|
|
22453
22452
|
var index = Math.round(container.scrollLeft / container.offsetWidth);
|
|
22454
22453
|
if (currentIndex !== index) {
|
|
22455
22454
|
currentIndex = index;
|
|
22456
|
-
_this.
|
|
22455
|
+
_this.WChQ(dots, currentIndex);
|
|
22457
22456
|
}
|
|
22458
22457
|
}, 60);
|
|
22459
22458
|
}, {
|
|
@@ -22462,7 +22461,7 @@
|
|
|
22462
22461
|
startTimer();
|
|
22463
22462
|
});
|
|
22464
22463
|
// Helper to handle the scrolling animation
|
|
22465
|
-
_defineProperty(this, "
|
|
22464
|
+
_defineProperty(this, "pqeV", function (container, index, dots) {
|
|
22466
22465
|
var targetChild = container.children[index];
|
|
22467
22466
|
if (targetChild) {
|
|
22468
22467
|
// If index is 0, we explicitly scroll to the far left
|
|
@@ -22471,10 +22470,10 @@
|
|
|
22471
22470
|
left: scrollPos,
|
|
22472
22471
|
behavior: "smooth"
|
|
22473
22472
|
});
|
|
22474
|
-
_this.
|
|
22473
|
+
_this.WChQ(dots, index);
|
|
22475
22474
|
}
|
|
22476
22475
|
});
|
|
22477
|
-
_defineProperty(this, "
|
|
22476
|
+
_defineProperty(this, "WChQ", function (dots, currentIndex) {
|
|
22478
22477
|
var _this$carousel14, _this$carousel16;
|
|
22479
22478
|
if ((_this$carousel14 = _this.carousel) !== null && _this$carousel14 !== void 0 && _this$carousel14.lines) {
|
|
22480
22479
|
var _this$carousel15;
|
|
@@ -22498,13 +22497,13 @@
|
|
|
22498
22497
|
});
|
|
22499
22498
|
}
|
|
22500
22499
|
});
|
|
22501
|
-
_defineProperty(this, "
|
|
22500
|
+
_defineProperty(this, "bOdn", function () {
|
|
22502
22501
|
var EmbeddedCardsStyles = document.createElement("style");
|
|
22503
22502
|
EmbeddedCardsStyles.innerHTML = _this.initialStyles;
|
|
22504
22503
|
EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
|
|
22505
22504
|
document.head.appendChild(EmbeddedCardsStyles);
|
|
22506
22505
|
});
|
|
22507
|
-
_defineProperty(this, "
|
|
22506
|
+
_defineProperty(this, "qQDm", function (config) {
|
|
22508
22507
|
var _window$Apxor;
|
|
22509
22508
|
var element;
|
|
22510
22509
|
switch (config.type) {
|
|
@@ -22535,7 +22534,7 @@
|
|
|
22535
22534
|
case "timer":
|
|
22536
22535
|
//countdown timer case
|
|
22537
22536
|
element = document.createElement("div");
|
|
22538
|
-
_this.
|
|
22537
|
+
_this.swqZ(element, config.properties);
|
|
22539
22538
|
break;
|
|
22540
22539
|
default:
|
|
22541
22540
|
element = document.createElement(config.type);
|
|
@@ -22591,27 +22590,27 @@
|
|
|
22591
22590
|
element.onclick = function (e) {
|
|
22592
22591
|
e.stopPropagation();
|
|
22593
22592
|
window.Apxor.redirect(JSON.stringify(action));
|
|
22594
|
-
_this.
|
|
22593
|
+
_this.fTtB(e);
|
|
22595
22594
|
};
|
|
22596
22595
|
break;
|
|
22597
22596
|
case "show-video":
|
|
22598
22597
|
element.onclick = function (e) {
|
|
22599
22598
|
e.stopPropagation();
|
|
22600
22599
|
window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
|
|
22601
|
-
_this.
|
|
22600
|
+
_this.fTtB(e);
|
|
22602
22601
|
};
|
|
22603
22602
|
break;
|
|
22604
22603
|
case "cancel":
|
|
22605
22604
|
element.onclick = function (e) {
|
|
22606
22605
|
e.stopPropagation();
|
|
22607
|
-
_this.
|
|
22606
|
+
_this.fTtB(e);
|
|
22608
22607
|
window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
|
|
22609
22608
|
};
|
|
22610
22609
|
break;
|
|
22611
22610
|
case "dismiss":
|
|
22612
22611
|
element.onclick = function (e) {
|
|
22613
22612
|
e.stopPropagation();
|
|
22614
|
-
_this.
|
|
22613
|
+
_this.fTtB(e);
|
|
22615
22614
|
};
|
|
22616
22615
|
break;
|
|
22617
22616
|
case "user_props":
|
|
@@ -22621,7 +22620,7 @@
|
|
|
22621
22620
|
var _window$Apxor2;
|
|
22622
22621
|
return (_window$Apxor2 = window.Apxor) === null || _window$Apxor2 === void 0 ? void 0 : _window$Apxor2.setUserProperties(props);
|
|
22623
22622
|
});
|
|
22624
|
-
_this.
|
|
22623
|
+
_this.fTtB(e);
|
|
22625
22624
|
};
|
|
22626
22625
|
break;
|
|
22627
22626
|
case "session_props":
|
|
@@ -22631,7 +22630,7 @@
|
|
|
22631
22630
|
var _window$Apxor3;
|
|
22632
22631
|
return (_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.setSessionProperties(props);
|
|
22633
22632
|
});
|
|
22634
|
-
_this.
|
|
22633
|
+
_this.fTtB(e);
|
|
22635
22634
|
};
|
|
22636
22635
|
break;
|
|
22637
22636
|
case "event":
|
|
@@ -22648,7 +22647,7 @@
|
|
|
22648
22647
|
for (var i = 0; i < action.events.length; i++) {
|
|
22649
22648
|
_loop();
|
|
22650
22649
|
}
|
|
22651
|
-
_this.
|
|
22650
|
+
_this.fTtB(e);
|
|
22652
22651
|
};
|
|
22653
22652
|
break;
|
|
22654
22653
|
case "never":
|
|
@@ -22661,7 +22660,7 @@
|
|
|
22661
22660
|
apx_nudge_id: _this.configId,
|
|
22662
22661
|
apx_termination_type: "never-show"
|
|
22663
22662
|
});
|
|
22664
|
-
_this.
|
|
22663
|
+
_this.fTtB(e);
|
|
22665
22664
|
};
|
|
22666
22665
|
break;
|
|
22667
22666
|
case "toggle-class":
|
|
@@ -22686,7 +22685,7 @@
|
|
|
22686
22685
|
tempInput.select();
|
|
22687
22686
|
document.execCommand("copy");
|
|
22688
22687
|
document.body.removeChild(tempInput);
|
|
22689
|
-
_this.
|
|
22688
|
+
_this.fTtB(e);
|
|
22690
22689
|
};
|
|
22691
22690
|
break;
|
|
22692
22691
|
case "log-app-event":
|
|
@@ -22707,7 +22706,7 @@
|
|
|
22707
22706
|
}
|
|
22708
22707
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
22709
22708
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
22710
|
-
var childElement = _this.
|
|
22709
|
+
var childElement = _this.qQDm(childConfig);
|
|
22711
22710
|
element.appendChild(childElement);
|
|
22712
22711
|
});
|
|
22713
22712
|
}
|
|
@@ -22715,7 +22714,7 @@
|
|
|
22715
22714
|
// Process children
|
|
22716
22715
|
if (config.children && config.children.length > 0) {
|
|
22717
22716
|
config.children.forEach(function (childConfig) {
|
|
22718
|
-
var childElement = _this.
|
|
22717
|
+
var childElement = _this.qQDm(childConfig);
|
|
22719
22718
|
element.appendChild(childElement);
|
|
22720
22719
|
});
|
|
22721
22720
|
}
|
|
@@ -22741,7 +22740,7 @@
|
|
|
22741
22740
|
}
|
|
22742
22741
|
return element;
|
|
22743
22742
|
});
|
|
22744
|
-
_defineProperty(this, "
|
|
22743
|
+
_defineProperty(this, "fTtB", function (e) {
|
|
22745
22744
|
var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
|
|
22746
22745
|
var additional_info = {
|
|
22747
22746
|
apx_nudge_name: _this.name,
|
|
@@ -22758,7 +22757,7 @@
|
|
|
22758
22757
|
(_window$ApxorRTM6 = window.ApxorRTM) === null || _window$ApxorRTM6 === void 0 || _window$ApxorRTM6.logEvent("apx_card_interaction", additional_info);
|
|
22759
22758
|
}
|
|
22760
22759
|
});
|
|
22761
|
-
_defineProperty(this, "
|
|
22760
|
+
_defineProperty(this, "MMsv", function (config) {
|
|
22762
22761
|
config.forEach(function (id) {
|
|
22763
22762
|
var element = document.getElementById(id);
|
|
22764
22763
|
if (element) {
|
|
@@ -22766,7 +22765,7 @@
|
|
|
22766
22765
|
}
|
|
22767
22766
|
});
|
|
22768
22767
|
});
|
|
22769
|
-
_defineProperty(this, "
|
|
22768
|
+
_defineProperty(this, "GtTp", function () {
|
|
22770
22769
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
22771
22770
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
22772
22771
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -22774,19 +22773,19 @@
|
|
|
22774
22773
|
return img.complete;
|
|
22775
22774
|
});
|
|
22776
22775
|
});
|
|
22777
|
-
_defineProperty(this, "
|
|
22776
|
+
_defineProperty(this, "aJNA", function () {
|
|
22778
22777
|
if (_this.videoElements.length === 0) return true;
|
|
22779
22778
|
return _this.videoElements.every(function (video) {
|
|
22780
22779
|
return video.readyState >= 3;
|
|
22781
22780
|
});
|
|
22782
22781
|
});
|
|
22783
|
-
_defineProperty(this, "
|
|
22782
|
+
_defineProperty(this, "nXTc", function () {
|
|
22784
22783
|
if (!_this.bgImageUrl) return true;
|
|
22785
22784
|
var img = new Image();
|
|
22786
22785
|
img.src = _this.bgImageUrl;
|
|
22787
22786
|
return img.complete;
|
|
22788
22787
|
});
|
|
22789
|
-
_defineProperty(this, "
|
|
22788
|
+
_defineProperty(this, "LkTM", function () {
|
|
22790
22789
|
var _window6, _window7;
|
|
22791
22790
|
var html = window.document.querySelector("html");
|
|
22792
22791
|
var width = html.offsetWidth;
|
|
@@ -22798,7 +22797,7 @@
|
|
|
22798
22797
|
_this.loggedNudgeShownEvent = true;
|
|
22799
22798
|
}
|
|
22800
22799
|
});
|
|
22801
|
-
_defineProperty(this, "
|
|
22800
|
+
_defineProperty(this, "swqZ", function (container, props) {
|
|
22802
22801
|
var targetDate = new Date(props.target_date).getTime();
|
|
22803
22802
|
var updateClock = function updateClock() {
|
|
22804
22803
|
var now = new Date().getTime();
|
|
@@ -22813,13 +22812,13 @@
|
|
|
22813
22812
|
var seconds = Math.floor(distance % (1000 * 60) / 1000);
|
|
22814
22813
|
|
|
22815
22814
|
// Timer Layout
|
|
22816
|
-
container.innerHTML = "\n <span style=\"font-size: 12px; margin-right: 4px;\">".concat(props.content, "</span>\n <div style=\"display: flex; gap: 4px;\">\n ").concat(_this.
|
|
22815
|
+
container.innerHTML = "\n <span style=\"font-size: 12px; margin-right: 4px;\">".concat(props.content, "</span>\n <div style=\"display: flex; gap: 4px;\">\n ").concat(_this.uRQm(hours), ":\n ").concat(_this.uRQm(minutes), ":\n ").concat(_this.uRQm(seconds), "\n </div>\n ");
|
|
22817
22816
|
};
|
|
22818
22817
|
var timerInterval = setInterval(updateClock, 1000);
|
|
22819
22818
|
updateClock(); // Initial call
|
|
22820
22819
|
});
|
|
22821
22820
|
// Helper for the "boxed" look
|
|
22822
|
-
_defineProperty(this, "
|
|
22821
|
+
_defineProperty(this, "uRQm", function (num) {
|
|
22823
22822
|
var displayNum = num < 10 ? "0" + num : num;
|
|
22824
22823
|
return "<span style=\"background: rgba(255,255,255,0.2); padding: 2px 4px; border-radius: 2px;\">".concat(displayNum, "</span>");
|
|
22825
22824
|
});
|
|
@@ -22907,8 +22906,8 @@
|
|
|
22907
22906
|
_this.storyContainer.appendChild(currentElement);
|
|
22908
22907
|
_this.storyContainer.appendChild(slideDetails);
|
|
22909
22908
|
document.body.appendChild(_this.storyContainer);
|
|
22910
|
-
_this.
|
|
22911
|
-
_this.
|
|
22909
|
+
_this.eBFA();
|
|
22910
|
+
_this.sFsa();
|
|
22912
22911
|
_this.progress = Array.from(document.querySelectorAll(".progress"));
|
|
22913
22912
|
var current_slide = document.querySelector(".slide-details");
|
|
22914
22913
|
var playNext = function playNext(e) {
|
|
@@ -22954,7 +22953,7 @@
|
|
|
22954
22953
|
_existingAbsoluteElements2.forEach(function (element) {
|
|
22955
22954
|
element.remove();
|
|
22956
22955
|
});
|
|
22957
|
-
// this.
|
|
22956
|
+
// this.Yrzz();
|
|
22958
22957
|
var _currentSlideDetails = document.querySelector(".slide-details");
|
|
22959
22958
|
_currentSlideDetails.innerHTML = "";
|
|
22960
22959
|
_this.position = _this.position + 1;
|
|
@@ -23050,7 +23049,7 @@
|
|
|
23050
23049
|
absolute_header = document.createElement("div");
|
|
23051
23050
|
current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
|
|
23052
23051
|
var current_absolute_element;
|
|
23053
|
-
current_absolute_element = _this.
|
|
23052
|
+
current_absolute_element = _this.mqbK(current_element);
|
|
23054
23053
|
absolute_header.appendChild(current_absolute_element);
|
|
23055
23054
|
});
|
|
23056
23055
|
(_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
|
|
@@ -23110,7 +23109,7 @@
|
|
|
23110
23109
|
document.body.style.backgroundRepeat = "";
|
|
23111
23110
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
23112
23111
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
23113
|
-
element = _this.
|
|
23112
|
+
element = _this.mqbK(updated_layout_without_absolute_elements);
|
|
23114
23113
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
23115
23114
|
document.body.style.margin = "0px";
|
|
23116
23115
|
}
|
|
@@ -23118,9 +23117,9 @@
|
|
|
23118
23117
|
current_slide.removeChild(current_slide.children[0]);
|
|
23119
23118
|
}
|
|
23120
23119
|
current_slide.appendChild(element);
|
|
23121
|
-
_this.
|
|
23120
|
+
_this.ebsc();
|
|
23122
23121
|
window.intervalToCheckImgStatus = setInterval(function () {
|
|
23123
|
-
if (_this.
|
|
23122
|
+
if (_this.FZsN()) {
|
|
23124
23123
|
clearInterval(window.intervalToCheckImgStatus);
|
|
23125
23124
|
}
|
|
23126
23125
|
}, 500);
|
|
@@ -23148,7 +23147,7 @@
|
|
|
23148
23147
|
});
|
|
23149
23148
|
playNext();
|
|
23150
23149
|
});
|
|
23151
|
-
_defineProperty(this, "
|
|
23150
|
+
_defineProperty(this, "Yrzz", function () {
|
|
23152
23151
|
document.body.classList.add("slide-right");
|
|
23153
23152
|
var animationEndCounter = 0;
|
|
23154
23153
|
var onAnimationEnd = function onAnimationEnd() {
|
|
@@ -23160,7 +23159,7 @@
|
|
|
23160
23159
|
};
|
|
23161
23160
|
document.body.addEventListener("animationend", onAnimationEnd);
|
|
23162
23161
|
});
|
|
23163
|
-
_defineProperty(this, "
|
|
23162
|
+
_defineProperty(this, "mqbK", function (config) {
|
|
23164
23163
|
var _window$Apxor4;
|
|
23165
23164
|
var element;
|
|
23166
23165
|
var explicit_styles = "";
|
|
@@ -23218,7 +23217,7 @@
|
|
|
23218
23217
|
element.innerHTML = "<svg width=\"30\" height=\"30\" viewBox=\"0 0 25 25\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.375 4L10.1979 6.17708L7.92708 9.20833H3V15.4583H7.16667L12.375 20.6667V4Z\" fill=\"currentColor\" />\n <path d=\"M14.4905 20.2167C18.9193 20.2167 22.5095 16.6265 22.5095 12.1977C22.5095 7.76894 18.9193 4.17871 14.4905 4.17871\" stroke=\"currentColor\" fill =\"transparent\" stroke-width=\"1.782\"/>\n <path d=\"M14.4905 15.7618C16.4588 15.7618 18.0545 14.1661 18.0545 12.1978C18.0545 10.2294 16.4588 8.63379 14.4905 8.63379\" stroke=\"currentColor\" fill=\"transparent\" stroke-width=\"1.782\"/>\n </svg>";
|
|
23219
23218
|
element.id = "apx-mute-icon";
|
|
23220
23219
|
element.addEventListener("touchstart", function (event) {
|
|
23221
|
-
_this.
|
|
23220
|
+
_this.tHKw(event);
|
|
23222
23221
|
});
|
|
23223
23222
|
break;
|
|
23224
23223
|
case "copy_icon":
|
|
@@ -23458,7 +23457,7 @@
|
|
|
23458
23457
|
}
|
|
23459
23458
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
23460
23459
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
23461
|
-
var childElement = _this.
|
|
23460
|
+
var childElement = _this.mqbK(childConfig);
|
|
23462
23461
|
element.appendChild(childElement);
|
|
23463
23462
|
});
|
|
23464
23463
|
}
|
|
@@ -23466,7 +23465,7 @@
|
|
|
23466
23465
|
// Process children
|
|
23467
23466
|
if (config.children && config.children.length > 0) {
|
|
23468
23467
|
config.children.forEach(function (childConfig) {
|
|
23469
|
-
var childElement = _this.
|
|
23468
|
+
var childElement = _this.mqbK(childConfig);
|
|
23470
23469
|
element.appendChild(childElement);
|
|
23471
23470
|
});
|
|
23472
23471
|
}
|
|
@@ -23494,7 +23493,7 @@
|
|
|
23494
23493
|
element.appendChild(ElementStyles);
|
|
23495
23494
|
return element;
|
|
23496
23495
|
});
|
|
23497
|
-
_defineProperty(this, "
|
|
23496
|
+
_defineProperty(this, "tHKw", function (event) {
|
|
23498
23497
|
var slide_details_to_be_deleted;
|
|
23499
23498
|
var mute_child_elements;
|
|
23500
23499
|
var unmute_child_elements;
|
|
@@ -23524,11 +23523,11 @@
|
|
|
23524
23523
|
}
|
|
23525
23524
|
// this.muteElement.addEventListener("touchstart", (event) => {
|
|
23526
23525
|
// event.stopPropagation();
|
|
23527
|
-
// this.
|
|
23526
|
+
// this.tHKw(event);
|
|
23528
23527
|
// });
|
|
23529
23528
|
}
|
|
23530
23529
|
});
|
|
23531
|
-
_defineProperty(this, "
|
|
23530
|
+
_defineProperty(this, "sFsa", function () {
|
|
23532
23531
|
var tapTimeout;
|
|
23533
23532
|
var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
|
|
23534
23533
|
var longPressDuration = 200;
|
|
@@ -23652,7 +23651,7 @@
|
|
|
23652
23651
|
event.target.dataset.touchStartTime = event.timeStamp;
|
|
23653
23652
|
});
|
|
23654
23653
|
});
|
|
23655
|
-
_defineProperty(this, "
|
|
23654
|
+
_defineProperty(this, "eBFA", function () {
|
|
23656
23655
|
var startY, startX;
|
|
23657
23656
|
_this.storyContainer.addEventListener("touchstart", function (event) {
|
|
23658
23657
|
_this.swipeTouch = true;
|
|
@@ -23859,7 +23858,7 @@
|
|
|
23859
23858
|
}, 50);
|
|
23860
23859
|
});
|
|
23861
23860
|
});
|
|
23862
|
-
_defineProperty(this, "
|
|
23861
|
+
_defineProperty(this, "ebsc", function () {
|
|
23863
23862
|
_this.loader.style.display = "block";
|
|
23864
23863
|
var progress = Array.from(document.querySelectorAll(".progress"));
|
|
23865
23864
|
var activeIndex = progress.findIndex(function (el) {
|
|
@@ -23875,7 +23874,7 @@
|
|
|
23875
23874
|
}
|
|
23876
23875
|
}
|
|
23877
23876
|
});
|
|
23878
|
-
_defineProperty(this, "
|
|
23877
|
+
_defineProperty(this, "WQYs", function () {
|
|
23879
23878
|
if (!_this.continueLoading) {
|
|
23880
23879
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
23881
23880
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
@@ -23895,19 +23894,19 @@
|
|
|
23895
23894
|
_this.loader.style.display = "none";
|
|
23896
23895
|
}
|
|
23897
23896
|
});
|
|
23898
|
-
_defineProperty(this, "
|
|
23897
|
+
_defineProperty(this, "GtTp", function () {
|
|
23899
23898
|
if (_this.imageElements.length === 0) return true;
|
|
23900
23899
|
return _this.imageElements.every(function (img) {
|
|
23901
23900
|
return img.complete;
|
|
23902
23901
|
});
|
|
23903
23902
|
});
|
|
23904
|
-
_defineProperty(this, "
|
|
23903
|
+
_defineProperty(this, "aJNA", function () {
|
|
23905
23904
|
if (_this.videoElements.length === 0) return true;
|
|
23906
23905
|
return _this.videoElements.every(function (video) {
|
|
23907
23906
|
return video.readyState >= 3;
|
|
23908
23907
|
});
|
|
23909
23908
|
});
|
|
23910
|
-
_defineProperty(this, "
|
|
23909
|
+
_defineProperty(this, "FZsN", function () {
|
|
23911
23910
|
var bodyStyles = window.getComputedStyle(document.body);
|
|
23912
23911
|
var backgroundImage = bodyStyles.backgroundImage;
|
|
23913
23912
|
if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
|
|
@@ -23917,7 +23916,7 @@
|
|
|
23917
23916
|
var img = new Image();
|
|
23918
23917
|
img.src = imageUrl;
|
|
23919
23918
|
if (img.complete) {
|
|
23920
|
-
_this.
|
|
23919
|
+
_this.WQYs();
|
|
23921
23920
|
return true;
|
|
23922
23921
|
}
|
|
23923
23922
|
return false;
|
|
@@ -23925,21 +23924,21 @@
|
|
|
23925
23924
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
23926
23925
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
23927
23926
|
if (childElements[0].readyState >= 3) {
|
|
23928
|
-
_this.
|
|
23927
|
+
_this.WQYs();
|
|
23929
23928
|
return true;
|
|
23930
23929
|
}
|
|
23931
23930
|
return false;
|
|
23932
23931
|
} else {
|
|
23933
23932
|
if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
|
|
23934
|
-
_this.
|
|
23933
|
+
_this.WQYs();
|
|
23935
23934
|
return true;
|
|
23936
|
-
} else if (_this.
|
|
23937
|
-
_this.
|
|
23935
|
+
} else if (_this.GtTp() && _this.aJNA()) {
|
|
23936
|
+
_this.WQYs();
|
|
23938
23937
|
return true;
|
|
23939
23938
|
}
|
|
23940
23939
|
}
|
|
23941
23940
|
});
|
|
23942
|
-
_defineProperty(this, "
|
|
23941
|
+
_defineProperty(this, "sWNt", function (event, startY, action) {
|
|
23943
23942
|
event.stopPropagation();
|
|
23944
23943
|
var endY = event.changedTouches[0].clientY;
|
|
23945
23944
|
var deltaY = startY - endY;
|
|
@@ -24036,7 +24035,7 @@
|
|
|
24036
24035
|
this.swipe_action;
|
|
24037
24036
|
this.continueLoading = false;
|
|
24038
24037
|
this.boundSwipeUpHandling = function (event) {
|
|
24039
|
-
return _this.
|
|
24038
|
+
return _this.sWNt(event, _this.startY, _this.swipe_action);
|
|
24040
24039
|
};
|
|
24041
24040
|
}
|
|
24042
24041
|
_createClass(Stories, [{
|
|
@@ -24100,7 +24099,7 @@
|
|
|
24100
24099
|
} else {
|
|
24101
24100
|
var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM17, _window$ApxorRTM18, _window$ApxorRTM19;
|
|
24102
24101
|
// Move to the first slide of the next group
|
|
24103
|
-
// this.
|
|
24102
|
+
// this.Yrzz();
|
|
24104
24103
|
this.position++;
|
|
24105
24104
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
24106
24105
|
this.slides = this.config[this.position].slides;
|
|
@@ -24226,7 +24225,7 @@
|
|
|
24226
24225
|
if (activeIndex === 0) {
|
|
24227
24226
|
var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM23, _window$ApxorRTM24, _window$ApxorRTM25;
|
|
24228
24227
|
// If at the first slide of the current group, move to the last slide of the previous group
|
|
24229
|
-
// this.
|
|
24228
|
+
// this.Yrzz();
|
|
24230
24229
|
this.position--;
|
|
24231
24230
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
24232
24231
|
this.slides = this.config[this.position].slides;
|
|
@@ -24413,25 +24412,25 @@
|
|
|
24413
24412
|
// Create custom content
|
|
24414
24413
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
24415
24414
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
24416
|
-
element = this.
|
|
24415
|
+
element = this.mqbK(updated_layout_without_absolute_elements);
|
|
24417
24416
|
}
|
|
24418
24417
|
// Append slide content to slide details container
|
|
24419
24418
|
|
|
24420
24419
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
24421
24420
|
document.body.style.margin = "0px";
|
|
24422
24421
|
currentSlideDetails.appendChild(element);
|
|
24423
|
-
this.
|
|
24422
|
+
this.ebsc();
|
|
24424
24423
|
|
|
24425
24424
|
// Handle absolute position children
|
|
24426
24425
|
if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
|
|
24427
24426
|
current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
|
|
24428
|
-
var childElement = _this2.
|
|
24427
|
+
var childElement = _this2.mqbK(childConfig);
|
|
24429
24428
|
// Append absolute position children to slide details container
|
|
24430
24429
|
currentSlideDetails.appendChild(childElement);
|
|
24431
24430
|
});
|
|
24432
24431
|
}
|
|
24433
24432
|
window.intervalToCheckImgStatus2 = setInterval(function () {
|
|
24434
|
-
if (_this2.
|
|
24433
|
+
if (_this2.FZsN()) {
|
|
24435
24434
|
clearInterval(window.intervalToCheckImgStatus2);
|
|
24436
24435
|
}
|
|
24437
24436
|
}, 500);
|
|
@@ -24866,15 +24865,15 @@
|
|
|
24866
24865
|
_this$badge$animation2,
|
|
24867
24866
|
_this$badge$animation3;
|
|
24868
24867
|
_classCallCheck(this, ApxorBadge);
|
|
24869
|
-
_defineProperty(this, "
|
|
24868
|
+
_defineProperty(this, "TtiB", function () {
|
|
24870
24869
|
var delayMillis = _this.delayMillis * 1000;
|
|
24871
24870
|
_this.shakeAnimationRepeat(_this.interCount, delayMillis);
|
|
24872
24871
|
});
|
|
24873
|
-
_defineProperty(this, "
|
|
24872
|
+
_defineProperty(this, "YECE", function () {
|
|
24874
24873
|
var delayMillis = _this.delayMillis * 1000;
|
|
24875
24874
|
_this.fadeAnimationRepeat(_this.interCount, delayMillis);
|
|
24876
24875
|
});
|
|
24877
|
-
_defineProperty(this, "
|
|
24876
|
+
_defineProperty(this, "TUQW", function () {
|
|
24878
24877
|
var _this$targetElement;
|
|
24879
24878
|
var delayMillis = _this.delayMillis * 1000;
|
|
24880
24879
|
var finalStyles = ".apxor-badge-container-stylesdummy-".concat(_this.cssPostFix, " {\n opacity:0;\n }").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
@@ -24883,7 +24882,7 @@
|
|
|
24883
24882
|
(_this$targetElement = _this.targetElement) === null || _this$targetElement === void 0 || _this$targetElement.appendChild(newstyleNode1);
|
|
24884
24883
|
_this.rippleAnimationRepeat(_this.interCount, delayMillis);
|
|
24885
24884
|
});
|
|
24886
|
-
_defineProperty(this, "
|
|
24885
|
+
_defineProperty(this, "IIeg", function () {
|
|
24887
24886
|
var delayMillis = _this.delayMillis * 1000;
|
|
24888
24887
|
//let badgeContainerClass = `.apxor-badge-container-styles-${this.cssPostFix}`;
|
|
24889
24888
|
//let badgeAnimationElement = document.querySelector(badgeContainerClass);
|
|
@@ -24900,7 +24899,7 @@
|
|
|
24900
24899
|
// newstyleNode1.innerHTML = finalStyles;
|
|
24901
24900
|
// this.targetElement?.appendChild(newstyleNode1);
|
|
24902
24901
|
});
|
|
24903
|
-
_defineProperty(this, "
|
|
24902
|
+
_defineProperty(this, "ZzVE", function () {
|
|
24904
24903
|
var elements = document.querySelectorAll(".apx-main-styles-".concat(_this.configId));
|
|
24905
24904
|
elements === null || elements === void 0 || elements.forEach(function (ele) {
|
|
24906
24905
|
ele === null || ele === void 0 || ele.remove();
|
|
@@ -24909,9 +24908,9 @@
|
|
|
24909
24908
|
dummy_elements === null || dummy_elements === void 0 || dummy_elements.forEach(function (ele) {
|
|
24910
24909
|
ele === null || ele === void 0 || ele.remove();
|
|
24911
24910
|
});
|
|
24912
|
-
_this.
|
|
24911
|
+
_this.ffxf();
|
|
24913
24912
|
});
|
|
24914
|
-
_defineProperty(this, "
|
|
24913
|
+
_defineProperty(this, "ffxf", function () {
|
|
24915
24914
|
var targetWrapperElement = document.querySelector(".image-container-".concat(_this.configId));
|
|
24916
24915
|
// Ensure the target element is the wrapper with class 'image-container'
|
|
24917
24916
|
if (targetWrapperElement) {
|
|
@@ -24935,12 +24934,12 @@
|
|
|
24935
24934
|
* @param {boolean} optimized
|
|
24936
24935
|
* @returns viewId
|
|
24937
24936
|
*/
|
|
24938
|
-
_defineProperty(this, "
|
|
24937
|
+
_defineProperty(this, "RHpw", function (node, optimized) {
|
|
24939
24938
|
if (node.nodeType !== Node.ELEMENT_NODE) return "";
|
|
24940
24939
|
var steps = [];
|
|
24941
24940
|
var contextNode = node;
|
|
24942
24941
|
while (contextNode) {
|
|
24943
|
-
var step = _this.
|
|
24942
|
+
var step = _this.etad(contextNode, !!optimized, contextNode === node);
|
|
24944
24943
|
if (!step) break; // Error - bail out early.
|
|
24945
24944
|
steps.push(step);
|
|
24946
24945
|
if (step.optimized) break;
|
|
@@ -24955,7 +24954,7 @@
|
|
|
24955
24954
|
* @param {boolean} optimized
|
|
24956
24955
|
* @param {object} isTargetNode
|
|
24957
24956
|
*/
|
|
24958
|
-
_defineProperty(this, "
|
|
24957
|
+
_defineProperty(this, "etad", function (node, optimized, isTargetNode) {
|
|
24959
24958
|
if (node.nodeType !== Node.ELEMENT_NODE) return null;
|
|
24960
24959
|
var id = node.getAttribute("id");
|
|
24961
24960
|
if (optimized) {
|
|
@@ -25077,7 +25076,7 @@
|
|
|
25077
25076
|
this.contentZindexValue = 1;
|
|
25078
25077
|
}
|
|
25079
25078
|
_createClass(ApxorBadge, [{
|
|
25080
|
-
key: "
|
|
25079
|
+
key: "yKSG",
|
|
25081
25080
|
value: function createBadge() {
|
|
25082
25081
|
var _this2 = this;
|
|
25083
25082
|
var targetFoundCallback = function targetFoundCallback() {
|
|
@@ -25894,16 +25893,16 @@
|
|
|
25894
25893
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
25895
25894
|
var _this = this;
|
|
25896
25895
|
_classCallCheck(this, RTM);
|
|
25897
|
-
_defineProperty(this, "
|
|
25896
|
+
_defineProperty(this, "SeDT", {});
|
|
25898
25897
|
_defineProperty(this, "isShowingAction", false);
|
|
25899
25898
|
_defineProperty(this, "currentAction", null);
|
|
25900
|
-
_defineProperty(this, "
|
|
25901
|
-
_defineProperty(this, "version",
|
|
25899
|
+
_defineProperty(this, "QLCB", null);
|
|
25900
|
+
_defineProperty(this, "version", 910);
|
|
25902
25901
|
_defineProperty(this, "isInitialised", false);
|
|
25903
|
-
_defineProperty(this, "
|
|
25904
|
-
_defineProperty(this, "
|
|
25902
|
+
_defineProperty(this, "hUXx", {});
|
|
25903
|
+
_defineProperty(this, "pEXG", false);
|
|
25905
25904
|
_defineProperty(this, "_isShownECCalled", false);
|
|
25906
|
-
_defineProperty(this, "
|
|
25905
|
+
_defineProperty(this, "LuNb", function () {
|
|
25907
25906
|
_this.isInitialised = true;
|
|
25908
25907
|
var oldPushState = history.pushState;
|
|
25909
25908
|
history.pushState = function pushState() {
|
|
@@ -25930,7 +25929,7 @@
|
|
|
25930
25929
|
var _window;
|
|
25931
25930
|
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("logger show");
|
|
25932
25931
|
if (!_this.isInitialised) {
|
|
25933
|
-
_this.
|
|
25932
|
+
_this.LuNb();
|
|
25934
25933
|
}
|
|
25935
25934
|
window.addEventListener("pagehide", function () {
|
|
25936
25935
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -25955,7 +25954,7 @@
|
|
|
25955
25954
|
} else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
|
|
25956
25955
|
_this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
|
|
25957
25956
|
} else if (ui_config.display_type === "coach_mark_v2") {
|
|
25958
|
-
_this.
|
|
25957
|
+
_this.TYOO(ui_config, duration, uuid, name);
|
|
25959
25958
|
} else {
|
|
25960
25959
|
showCoachmarkWithDelay(_this, ui_config, {
|
|
25961
25960
|
configId: uuid,
|
|
@@ -25995,7 +25994,7 @@
|
|
|
25995
25994
|
});
|
|
25996
25995
|
_defineProperty(this, "showBadge", function (uiJson, duration, uuid, name, terminationConfig) {
|
|
25997
25996
|
if (!_this.isInitialised) {
|
|
25998
|
-
_this.
|
|
25997
|
+
_this.LuNb();
|
|
25999
25998
|
}
|
|
26000
25999
|
window.addEventListener("pagehide", function () {
|
|
26001
26000
|
var _window$Apxor2, _window$Apxor2$pageUn;
|
|
@@ -26007,7 +26006,7 @@
|
|
|
26007
26006
|
_this.removeBadge(name, uuid);
|
|
26008
26007
|
}
|
|
26009
26008
|
var termination_config = JSON.parse(terminationConfig);
|
|
26010
|
-
_this.
|
|
26009
|
+
_this.yKSG(ui_config, duration, uuid, name, termination_config);
|
|
26011
26010
|
});
|
|
26012
26011
|
_defineProperty(this, "showInApp", function (config, duration, configId, name) {
|
|
26013
26012
|
try {
|
|
@@ -26073,7 +26072,7 @@
|
|
|
26073
26072
|
try {
|
|
26074
26073
|
config = config.split("\n").join("\\n");
|
|
26075
26074
|
var ui_config = JSON.parse(config);
|
|
26076
|
-
_this.
|
|
26075
|
+
_this.YQiW(ui_config, configId, name, position, slidesSeenCount, view_id);
|
|
26077
26076
|
} catch (e) {
|
|
26078
26077
|
var _window$Apxor4;
|
|
26079
26078
|
if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
|
|
@@ -26087,7 +26086,7 @@
|
|
|
26087
26086
|
console.error(e);
|
|
26088
26087
|
}
|
|
26089
26088
|
});
|
|
26090
|
-
_defineProperty(this, "
|
|
26089
|
+
_defineProperty(this, "YQiW", function (config, configId, name, position, slidesSeenCount, view_id) {
|
|
26091
26090
|
var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
|
|
26092
26091
|
var _window$ApxorRTM3, _config$additional_in3, _config$additional_in4;
|
|
26093
26092
|
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_nudge_shown", {
|
|
@@ -26136,7 +26135,7 @@
|
|
|
26136
26135
|
var _window22, _window22$updateFlag, _window23;
|
|
26137
26136
|
_this.isShowingAction = false;
|
|
26138
26137
|
_this.currentAction = null;
|
|
26139
|
-
_this.
|
|
26138
|
+
_this.QLCB = null;
|
|
26140
26139
|
(_window22 = window) === null || _window22 === void 0 || (_window22 = _window22.Apxor) === null || _window22 === void 0 || (_window22$updateFlag = _window22.updateFlag) === null || _window22$updateFlag === void 0 || _window22$updateFlag.call(_window22, false);
|
|
26141
26140
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
26142
26141
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -26147,21 +26146,21 @@
|
|
|
26147
26146
|
}
|
|
26148
26147
|
};
|
|
26149
26148
|
if (action_class === "new-inline") {
|
|
26150
|
-
_this.
|
|
26149
|
+
_this.QLCB = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
26151
26150
|
configId: uuid,
|
|
26152
26151
|
configName: name
|
|
26153
26152
|
}, _this, onShow, onHide, function () {}, false, 0);
|
|
26154
26153
|
} else if (action_class === "tooltip_builder") {
|
|
26155
|
-
_this.
|
|
26154
|
+
_this.QLCB = new NewInLineTooltip(ui_config, terminationConfig, {
|
|
26156
26155
|
configId: uuid,
|
|
26157
26156
|
configName: name
|
|
26158
26157
|
}, _this, onShow, onHide);
|
|
26159
26158
|
}
|
|
26160
26159
|
setTimeout(function () {
|
|
26161
|
-
_this.
|
|
26160
|
+
_this.QLCB.createNewTooltip();
|
|
26162
26161
|
}, ui_config.delay);
|
|
26163
26162
|
});
|
|
26164
|
-
_defineProperty(this, "
|
|
26163
|
+
_defineProperty(this, "TYOO", function (ui_config, duration, uuid, name) {
|
|
26165
26164
|
var terminationConfig = {};
|
|
26166
26165
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
26167
26166
|
terminationConfig["duration"] = duration;
|
|
@@ -26185,7 +26184,7 @@
|
|
|
26185
26184
|
var _window27, _window27$updateFlag, _window28;
|
|
26186
26185
|
_this.isShowingAction = false;
|
|
26187
26186
|
_this.currentAction = null;
|
|
26188
|
-
_this.
|
|
26187
|
+
_this.QLCB = null;
|
|
26189
26188
|
(_window27 = window) === null || _window27 === void 0 || (_window27 = _window27.Apxor) === null || _window27 === void 0 || (_window27$updateFlag = _window27.updateFlag) === null || _window27$updateFlag === void 0 || _window27$updateFlag.call(_window27, false);
|
|
26190
26189
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
26191
26190
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -26197,7 +26196,7 @@
|
|
|
26197
26196
|
}, _this.stepperCallback, false, 0);
|
|
26198
26197
|
_this._currentCoachmark.createNewCoachMark();
|
|
26199
26198
|
});
|
|
26200
|
-
_defineProperty(this, "
|
|
26199
|
+
_defineProperty(this, "yKSG", function (ui_config, duration, uuid, name, terminationConfig) {
|
|
26201
26200
|
_this._currentBadge = new ApxorBadge(ui_config, terminationConfig, {
|
|
26202
26201
|
configId: uuid,
|
|
26203
26202
|
configName: name
|
|
@@ -26214,12 +26213,12 @@
|
|
|
26214
26213
|
}
|
|
26215
26214
|
}
|
|
26216
26215
|
});
|
|
26217
|
-
_this._currentBadge.
|
|
26218
|
-
_this._currentBadge.
|
|
26216
|
+
_this._currentBadge.ZzVE();
|
|
26217
|
+
_this._currentBadge.yKSG();
|
|
26219
26218
|
});
|
|
26220
26219
|
_defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
|
|
26221
|
-
if (_this.
|
|
26222
|
-
_this.
|
|
26220
|
+
if (_this.QLCB) {
|
|
26221
|
+
_this.QLCB.updateElementPositionOnScroll(top, left, height, width);
|
|
26223
26222
|
}
|
|
26224
26223
|
});
|
|
26225
26224
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -26354,10 +26353,10 @@
|
|
|
26354
26353
|
});
|
|
26355
26354
|
_defineProperty(this, "showPlaceHolder", function () {
|
|
26356
26355
|
var _window38;
|
|
26357
|
-
if (_this.
|
|
26356
|
+
if (_this.pEXG) {
|
|
26358
26357
|
return;
|
|
26359
26358
|
}
|
|
26360
|
-
_this.
|
|
26359
|
+
_this.pEXG = true;
|
|
26361
26360
|
var ele = document.createElement("div");
|
|
26362
26361
|
ele.innerHTML = "place your immersive card here";
|
|
26363
26362
|
ele.style.backgroundColor = "#f5f5f5";
|