apxor-rtm-ui 0.5.4 → 0.5.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 +81 -60
- package/dist/apxor.rtm.min.js +1 -1
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -7378,6 +7378,14 @@
|
|
|
7378
7378
|
while (elementAtPoint) {
|
|
7379
7379
|
if (elementAtPoint === element) {
|
|
7380
7380
|
return false;
|
|
7381
|
+
} else {
|
|
7382
|
+
var childElements = elementAtPoint.children;
|
|
7383
|
+
for (var i = 0; i < childElements.length; i++) {
|
|
7384
|
+
var child = childElements[i];
|
|
7385
|
+
if (child === element) {
|
|
7386
|
+
return false;
|
|
7387
|
+
}
|
|
7388
|
+
}
|
|
7381
7389
|
}
|
|
7382
7390
|
elementAtPoint = elementAtPoint.parentElement;
|
|
7383
7391
|
}
|
|
@@ -11534,8 +11542,8 @@
|
|
|
11534
11542
|
var _this = this,
|
|
11535
11543
|
_config$termination;
|
|
11536
11544
|
_classCallCheck(this, TemplateContent);
|
|
11537
|
-
_defineProperty(this, "
|
|
11538
|
-
var element = _this.
|
|
11545
|
+
_defineProperty(this, "uEWO", function () {
|
|
11546
|
+
var element = _this.aDYe(_this.layout);
|
|
11539
11547
|
//document.body.appendChild(element);
|
|
11540
11548
|
var styleElement = document.createElement("style");
|
|
11541
11549
|
styleElement.innerHTML = _this.styleContent;
|
|
@@ -11547,7 +11555,7 @@
|
|
|
11547
11555
|
}
|
|
11548
11556
|
return element;
|
|
11549
11557
|
});
|
|
11550
|
-
_defineProperty(this, "
|
|
11558
|
+
_defineProperty(this, "aDYe", function (config) {
|
|
11551
11559
|
var _window$Apxor;
|
|
11552
11560
|
var element;
|
|
11553
11561
|
switch (config.type) {
|
|
@@ -11655,7 +11663,7 @@
|
|
|
11655
11663
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
11656
11664
|
element.style.position = "relative";
|
|
11657
11665
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
11658
|
-
var childElement = _this.
|
|
11666
|
+
var childElement = _this.aDYe(childConfig);
|
|
11659
11667
|
childElement.style.position = "absolute";
|
|
11660
11668
|
for (var _prop3 in childConfig.offset) {
|
|
11661
11669
|
childElement.style[_prop3] = childConfig.offset[_prop3];
|
|
@@ -11673,7 +11681,7 @@
|
|
|
11673
11681
|
// }
|
|
11674
11682
|
|
|
11675
11683
|
config.children.forEach(function (childConfig) {
|
|
11676
|
-
var childElement = _this.
|
|
11684
|
+
var childElement = _this.aDYe(childConfig);
|
|
11677
11685
|
element.appendChild(childElement);
|
|
11678
11686
|
});
|
|
11679
11687
|
}
|
|
@@ -12584,7 +12592,7 @@
|
|
|
12584
12592
|
}, {
|
|
12585
12593
|
key: "_setInLineContent",
|
|
12586
12594
|
value: function _setInLineContent() {
|
|
12587
|
-
this.inLineContainer = this.templateContent.
|
|
12595
|
+
this.inLineContainer = this.templateContent.uEWO();
|
|
12588
12596
|
}
|
|
12589
12597
|
}, {
|
|
12590
12598
|
key: "_setObservors",
|
|
@@ -14132,7 +14140,7 @@
|
|
|
14132
14140
|
* @description Creates the styles for Marketing message.
|
|
14133
14141
|
* @returns {string} css styles
|
|
14134
14142
|
*/
|
|
14135
|
-
_defineProperty(this, "
|
|
14143
|
+
_defineProperty(this, "ybFC", function () {
|
|
14136
14144
|
if (!_this.enable_marketing) {
|
|
14137
14145
|
return "";
|
|
14138
14146
|
}
|
|
@@ -14151,7 +14159,7 @@
|
|
|
14151
14159
|
* @private
|
|
14152
14160
|
* @description Sets the marketing content at the end of the Inline
|
|
14153
14161
|
*/
|
|
14154
|
-
_defineProperty(this, "
|
|
14162
|
+
_defineProperty(this, "smLX", function () {
|
|
14155
14163
|
if (_this.enable_marketing) {
|
|
14156
14164
|
var marketingContainer = document.createElement("div");
|
|
14157
14165
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -14717,7 +14725,7 @@
|
|
|
14717
14725
|
if (apxor_tooltip_styles) {
|
|
14718
14726
|
return;
|
|
14719
14727
|
}
|
|
14720
|
-
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.
|
|
14728
|
+
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.ybFC(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
14721
14729
|
var styleNode = document.createElement("style");
|
|
14722
14730
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
14723
14731
|
styleNode.innerHTML = styles;
|
|
@@ -15527,7 +15535,7 @@
|
|
|
15527
15535
|
this._setCloseButton();
|
|
15528
15536
|
|
|
15529
15537
|
//Set the Marketing content
|
|
15530
|
-
this.
|
|
15538
|
+
this.smLX();
|
|
15531
15539
|
}
|
|
15532
15540
|
|
|
15533
15541
|
/**
|
|
@@ -16158,6 +16166,19 @@
|
|
|
16158
16166
|
key: "_createTippyInstance",
|
|
16159
16167
|
value: function _createTippyInstance() {
|
|
16160
16168
|
var _this12 = this;
|
|
16169
|
+
if (this.targetElement.disabled) {
|
|
16170
|
+
// Wrap the disabled element in a span
|
|
16171
|
+
var span = document.createElement("span");
|
|
16172
|
+
|
|
16173
|
+
// Set ID for the span
|
|
16174
|
+
var spanId = "apx_tooltip_span"; // Generating a uni
|
|
16175
|
+
span.setAttribute("id", spanId);
|
|
16176
|
+
|
|
16177
|
+
// Wrap the element with the span
|
|
16178
|
+
this.targetElement.parentNode.insertBefore(span, this.targetElement);
|
|
16179
|
+
span.appendChild(this.targetElement);
|
|
16180
|
+
this.targetElement = span;
|
|
16181
|
+
}
|
|
16161
16182
|
this.tooltip = tippy$1(this.targetElement, {
|
|
16162
16183
|
allowHTML: false,
|
|
16163
16184
|
aria: {
|
|
@@ -18359,7 +18380,7 @@
|
|
|
18359
18380
|
}, {
|
|
18360
18381
|
key: "_setInAppModalContent",
|
|
18361
18382
|
value: function _setInAppModalContent() {
|
|
18362
|
-
this.inAppContainer = this.templateContent.
|
|
18383
|
+
this.inAppContainer = this.templateContent.uEWO();
|
|
18363
18384
|
this.inAppContainer.style.zIndex = 99999;
|
|
18364
18385
|
this.overlayElement.appendChild(this.inAppContainer);
|
|
18365
18386
|
}
|
|
@@ -18507,7 +18528,7 @@
|
|
|
18507
18528
|
* @description Creates the styles for Marketing message.
|
|
18508
18529
|
* @returns {string} css styles
|
|
18509
18530
|
*/
|
|
18510
|
-
_defineProperty(this, "
|
|
18531
|
+
_defineProperty(this, "ybFC", function () {
|
|
18511
18532
|
if (!_this.enable_marketing) {
|
|
18512
18533
|
return "";
|
|
18513
18534
|
}
|
|
@@ -18553,7 +18574,7 @@
|
|
|
18553
18574
|
* @private
|
|
18554
18575
|
* @description Get the response for Form content in the InApp modal.
|
|
18555
18576
|
*/
|
|
18556
|
-
_defineProperty(this, "
|
|
18577
|
+
_defineProperty(this, "YLdL", function (form_elements) {
|
|
18557
18578
|
var obj = {};
|
|
18558
18579
|
var callback = "";
|
|
18559
18580
|
form_elements.forEach(function (element) {
|
|
@@ -18593,7 +18614,7 @@
|
|
|
18593
18614
|
* @private
|
|
18594
18615
|
* @description Sets the marketing content at the end of the InApp
|
|
18595
18616
|
*/
|
|
18596
|
-
_defineProperty(this, "
|
|
18617
|
+
_defineProperty(this, "smLX", function () {
|
|
18597
18618
|
if (_this.enable_marketing) {
|
|
18598
18619
|
var marketingContainer = document.createElement("div");
|
|
18599
18620
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -18846,7 +18867,7 @@
|
|
|
18846
18867
|
}, {
|
|
18847
18868
|
key: "_setStyles",
|
|
18848
18869
|
value: function _setStyles() {
|
|
18849
|
-
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.
|
|
18870
|
+
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.ybFC(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
18850
18871
|
var styleNode = document.createElement("style");
|
|
18851
18872
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
18852
18873
|
styleNode.innerHTML = styles;
|
|
@@ -19323,7 +19344,7 @@
|
|
|
19323
19344
|
this._setCloseButton();
|
|
19324
19345
|
|
|
19325
19346
|
//Set the Marketing content
|
|
19326
|
-
this.
|
|
19347
|
+
this.smLX();
|
|
19327
19348
|
}
|
|
19328
19349
|
|
|
19329
19350
|
/**
|
|
@@ -19528,7 +19549,7 @@
|
|
|
19528
19549
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
19529
19550
|
form.addEventListener("submit", function (e) {
|
|
19530
19551
|
e.preventDefault();
|
|
19531
|
-
var _this4$generateRespon = _this4.
|
|
19552
|
+
var _this4$generateRespon = _this4.YLdL(_this4.form.elements),
|
|
19532
19553
|
obj = _this4$generateRespon.obj,
|
|
19533
19554
|
callback = _this4$generateRespon.callback;
|
|
19534
19555
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -19841,7 +19862,7 @@
|
|
|
19841
19862
|
* @function showVideoInApp
|
|
19842
19863
|
* @description Shows the video InApp with the configured mode.
|
|
19843
19864
|
*/
|
|
19844
|
-
_defineProperty(this, "
|
|
19865
|
+
_defineProperty(this, "NpYM", function () {
|
|
19845
19866
|
_this.createPlayer();
|
|
19846
19867
|
try {
|
|
19847
19868
|
// In PIP mode, only after the video metadata is loaded, show the PIP.
|
|
@@ -19883,7 +19904,7 @@
|
|
|
19883
19904
|
};
|
|
19884
19905
|
} else {
|
|
19885
19906
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
19886
|
-
_this.
|
|
19907
|
+
_this.zvCD();
|
|
19887
19908
|
}
|
|
19888
19909
|
_this.showCallback();
|
|
19889
19910
|
} catch (e) {
|
|
@@ -19903,7 +19924,7 @@
|
|
|
19903
19924
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
19904
19925
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
19905
19926
|
*/
|
|
19906
|
-
_defineProperty(this, "
|
|
19927
|
+
_defineProperty(this, "lwnm", function () {
|
|
19907
19928
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
19908
19929
|
width = _getHeightWidthFromRe.width,
|
|
19909
19930
|
height = _getHeightWidthFromRe.height;
|
|
@@ -19915,7 +19936,7 @@
|
|
|
19915
19936
|
* @private
|
|
19916
19937
|
* @description Removes the video player style element.
|
|
19917
19938
|
*/
|
|
19918
|
-
_defineProperty(this, "
|
|
19939
|
+
_defineProperty(this, "dQmQ", function () {
|
|
19919
19940
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
19920
19941
|
if (playerStyles) {
|
|
19921
19942
|
playerStyles.remove();
|
|
@@ -19926,7 +19947,7 @@
|
|
|
19926
19947
|
* @private
|
|
19927
19948
|
* @description Attach listeners on the video controls
|
|
19928
19949
|
*/
|
|
19929
|
-
_defineProperty(this, "
|
|
19950
|
+
_defineProperty(this, "pycW", function () {
|
|
19930
19951
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
19931
19952
|
_this.videoElement.addEventListener("ended", function () {
|
|
19932
19953
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -20037,7 +20058,7 @@
|
|
|
20037
20058
|
* @private
|
|
20038
20059
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
20039
20060
|
*/
|
|
20040
|
-
_defineProperty(this, "
|
|
20061
|
+
_defineProperty(this, "xnYc", function () {
|
|
20041
20062
|
var _this$terminationConf;
|
|
20042
20063
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
20043
20064
|
// On Exit of the PIP,
|
|
@@ -20077,7 +20098,7 @@
|
|
|
20077
20098
|
* @private Sets the custom controls on the video player.
|
|
20078
20099
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
20079
20100
|
*/
|
|
20080
|
-
_defineProperty(this, "
|
|
20101
|
+
_defineProperty(this, "HTLJ", function () {
|
|
20081
20102
|
_this.enable_close_button;
|
|
20082
20103
|
if (_this.enable_close_button) {
|
|
20083
20104
|
var closeButton = document.createElement("span");
|
|
@@ -20124,21 +20145,21 @@
|
|
|
20124
20145
|
* @function hideVideoPlayer
|
|
20125
20146
|
* @description Sets the visibility of the video player to hidden.
|
|
20126
20147
|
*/
|
|
20127
|
-
_defineProperty(this, "
|
|
20148
|
+
_defineProperty(this, "KNRZ", function () {
|
|
20128
20149
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
20129
20150
|
});
|
|
20130
20151
|
/**
|
|
20131
20152
|
* @function unhideVideoPlayer
|
|
20132
20153
|
* @description Unhides video player.
|
|
20133
20154
|
*/
|
|
20134
|
-
_defineProperty(this, "
|
|
20155
|
+
_defineProperty(this, "zvCD", function () {
|
|
20135
20156
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
20136
20157
|
});
|
|
20137
20158
|
/**
|
|
20138
20159
|
* @function getVideoElement
|
|
20139
20160
|
* @returns {HTMLElement} Video ekement
|
|
20140
20161
|
*/
|
|
20141
|
-
_defineProperty(this, "
|
|
20162
|
+
_defineProperty(this, "gowd", function () {
|
|
20142
20163
|
return _this.videoElement;
|
|
20143
20164
|
});
|
|
20144
20165
|
this.videoPlayer = null;
|
|
@@ -20190,7 +20211,7 @@
|
|
|
20190
20211
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
20191
20212
|
|
|
20192
20213
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
20193
|
-
this.
|
|
20214
|
+
this.lwnm();
|
|
20194
20215
|
//Generate the styles and add them to the document head.
|
|
20195
20216
|
this._setVideoPlayerStyles();
|
|
20196
20217
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -20198,16 +20219,16 @@
|
|
|
20198
20219
|
//Create a video element,set the source and add to the container.
|
|
20199
20220
|
this._setPlayerContent();
|
|
20200
20221
|
//Set the listeners on the video control buttons.
|
|
20201
|
-
this.
|
|
20222
|
+
this.pycW();
|
|
20202
20223
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
20203
|
-
this.
|
|
20224
|
+
this.xnYc();
|
|
20204
20225
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
20205
20226
|
//Reason - We want to position them at the top right and left positions.
|
|
20206
|
-
this.
|
|
20227
|
+
this.HTLJ();
|
|
20207
20228
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
20208
20229
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
20209
20230
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
20210
|
-
this.
|
|
20231
|
+
this.KNRZ();
|
|
20211
20232
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
20212
20233
|
this._setAutoTerminate();
|
|
20213
20234
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -20321,7 +20342,7 @@
|
|
|
20321
20342
|
}
|
|
20322
20343
|
}
|
|
20323
20344
|
this.videoPlayer.remove();
|
|
20324
|
-
this.
|
|
20345
|
+
this.dQmQ();
|
|
20325
20346
|
if (closeButtonName !== "auto_dismiss") {
|
|
20326
20347
|
window.Apxor.logAppEvent("apx_video_inapp_close_button_clicked", JSON.stringify({
|
|
20327
20348
|
message_name: this.name,
|
|
@@ -20389,7 +20410,7 @@
|
|
|
20389
20410
|
replayCount: _this3.replayCount
|
|
20390
20411
|
}));
|
|
20391
20412
|
_this3.videoPlayer.remove();
|
|
20392
|
-
_this3.
|
|
20413
|
+
_this3.dQmQ();
|
|
20393
20414
|
_this3.hideCallback();
|
|
20394
20415
|
} catch (e) {
|
|
20395
20416
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -20479,31 +20500,31 @@
|
|
|
20479
20500
|
_config$termination;
|
|
20480
20501
|
_classCallCheck(this, EmbedCards);
|
|
20481
20502
|
_defineProperty(this, "showEmbedCardsv2", function () {
|
|
20482
|
-
var element = _this.
|
|
20483
|
-
_this.
|
|
20503
|
+
var element = _this.cJtv(_this.layout);
|
|
20504
|
+
_this.VnpN();
|
|
20484
20505
|
window.onresize = function () {
|
|
20485
|
-
_this.
|
|
20506
|
+
_this.vLoj();
|
|
20486
20507
|
};
|
|
20487
20508
|
document.body.appendChild(element);
|
|
20488
20509
|
var styleElement = document.createElement("style");
|
|
20489
20510
|
styleElement.innerHTML = _this.styleContent;
|
|
20490
20511
|
document.head.appendChild(styleElement);
|
|
20491
|
-
_this.
|
|
20512
|
+
_this.yfBX(_this.termination);
|
|
20492
20513
|
try {
|
|
20493
20514
|
eval(_this.script);
|
|
20494
20515
|
} catch (e) {
|
|
20495
20516
|
console.log("found error while executing script: ".concat(e));
|
|
20496
20517
|
}
|
|
20497
20518
|
_this.showCallback();
|
|
20498
|
-
_this.
|
|
20519
|
+
_this.vLoj();
|
|
20499
20520
|
});
|
|
20500
|
-
_defineProperty(this, "
|
|
20521
|
+
_defineProperty(this, "VnpN", function () {
|
|
20501
20522
|
var EmbeddedCardsStyles = document.createElement("style");
|
|
20502
20523
|
EmbeddedCardsStyles.innerHTML = _this.initialStyles;
|
|
20503
20524
|
EmbeddedCardsStyles.setAttribute("apx-tooltip-styles", "");
|
|
20504
20525
|
document.head.appendChild(EmbeddedCardsStyles);
|
|
20505
20526
|
});
|
|
20506
|
-
_defineProperty(this, "
|
|
20527
|
+
_defineProperty(this, "cJtv", function (config) {
|
|
20507
20528
|
var _window$Apxor;
|
|
20508
20529
|
var element;
|
|
20509
20530
|
switch (config.type) {
|
|
@@ -20626,7 +20647,7 @@
|
|
|
20626
20647
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
20627
20648
|
element.style.position = "relative";
|
|
20628
20649
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
20629
|
-
var childElement = _this.
|
|
20650
|
+
var childElement = _this.aDYe(childConfig);
|
|
20630
20651
|
childElement.style.position = "absolute";
|
|
20631
20652
|
for (var _prop3 in childConfig.offset) {
|
|
20632
20653
|
childElement.style[_prop3] = childConfig.offset[_prop3];
|
|
@@ -20644,13 +20665,13 @@
|
|
|
20644
20665
|
// }
|
|
20645
20666
|
|
|
20646
20667
|
config.children.forEach(function (childConfig) {
|
|
20647
|
-
var childElement = _this.
|
|
20668
|
+
var childElement = _this.cJtv(childConfig);
|
|
20648
20669
|
element.appendChild(childElement);
|
|
20649
20670
|
});
|
|
20650
20671
|
}
|
|
20651
20672
|
return element;
|
|
20652
20673
|
});
|
|
20653
|
-
_defineProperty(this, "
|
|
20674
|
+
_defineProperty(this, "yfBX", function (config) {
|
|
20654
20675
|
config.forEach(function (id) {
|
|
20655
20676
|
var element = document.getElementById(id);
|
|
20656
20677
|
if (element) {
|
|
@@ -20658,7 +20679,7 @@
|
|
|
20658
20679
|
}
|
|
20659
20680
|
});
|
|
20660
20681
|
});
|
|
20661
|
-
_defineProperty(this, "
|
|
20682
|
+
_defineProperty(this, "vLoj", function () {
|
|
20662
20683
|
var _window;
|
|
20663
20684
|
var width = window.document.querySelector("html").offsetWidth;
|
|
20664
20685
|
var height = window.document.querySelector("html").offsetHeight;
|
|
@@ -20678,14 +20699,14 @@
|
|
|
20678
20699
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
20679
20700
|
var _this = this;
|
|
20680
20701
|
_classCallCheck(this, RTM);
|
|
20681
|
-
_defineProperty(this, "
|
|
20702
|
+
_defineProperty(this, "XcHu", {});
|
|
20682
20703
|
_defineProperty(this, "isShowingAction", false);
|
|
20683
20704
|
_defineProperty(this, "currentAction", null);
|
|
20684
|
-
_defineProperty(this, "
|
|
20685
|
-
_defineProperty(this, "version",
|
|
20705
|
+
_defineProperty(this, "ZTdX", null);
|
|
20706
|
+
_defineProperty(this, "version", 55);
|
|
20686
20707
|
_defineProperty(this, "isInitialised", false);
|
|
20687
20708
|
_defineProperty(this, "_eventsInDynamicText", {});
|
|
20688
|
-
_defineProperty(this, "
|
|
20709
|
+
_defineProperty(this, "ivBX", function () {
|
|
20689
20710
|
_this.isInitialised = true;
|
|
20690
20711
|
var oldPushState = history.pushState;
|
|
20691
20712
|
history.pushState = function pushState() {
|
|
@@ -20710,7 +20731,7 @@
|
|
|
20710
20731
|
});
|
|
20711
20732
|
_defineProperty(this, "show", function (uiJson, duration, uuid, name) {
|
|
20712
20733
|
if (!_this.isInitialised) {
|
|
20713
|
-
_this.
|
|
20734
|
+
_this.ivBX();
|
|
20714
20735
|
}
|
|
20715
20736
|
window.addEventListener("pagehide", function () {
|
|
20716
20737
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -20735,7 +20756,7 @@
|
|
|
20735
20756
|
} else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
|
|
20736
20757
|
_this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
|
|
20737
20758
|
} else if (ui_config.display_type === "coach_mark_v2") {
|
|
20738
|
-
_this.
|
|
20759
|
+
_this.AQBm(ui_config, duration, uuid, name);
|
|
20739
20760
|
} else {
|
|
20740
20761
|
showCoachmarkWithDelay(_this, ui_config, {
|
|
20741
20762
|
configId: uuid,
|
|
@@ -20856,7 +20877,7 @@
|
|
|
20856
20877
|
var _window14, _window14$updateFlag, _window15;
|
|
20857
20878
|
_this.isShowingAction = false;
|
|
20858
20879
|
_this.currentAction = null;
|
|
20859
|
-
_this.
|
|
20880
|
+
_this.ZTdX = null;
|
|
20860
20881
|
(_window14 = window) === null || _window14 === void 0 || (_window14 = _window14.Apxor) === null || _window14 === void 0 || (_window14$updateFlag = _window14.updateFlag) === null || _window14$updateFlag === void 0 || _window14$updateFlag.call(_window14, false);
|
|
20861
20882
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
20862
20883
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -20867,21 +20888,21 @@
|
|
|
20867
20888
|
}
|
|
20868
20889
|
};
|
|
20869
20890
|
if (action_class === "new-inline") {
|
|
20870
|
-
_this.
|
|
20891
|
+
_this.ZTdX = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
20871
20892
|
configId: uuid,
|
|
20872
20893
|
configName: name
|
|
20873
20894
|
}, _this, onShow, onHide, function () {}, false, 0);
|
|
20874
20895
|
} else if (action_class === "tooltip_builder") {
|
|
20875
|
-
_this.
|
|
20896
|
+
_this.ZTdX = new NewInLineTooltip(ui_config, terminationConfig, {
|
|
20876
20897
|
configId: uuid,
|
|
20877
20898
|
configName: name
|
|
20878
20899
|
}, _this, onShow, onHide);
|
|
20879
20900
|
}
|
|
20880
20901
|
setTimeout(function () {
|
|
20881
|
-
_this.
|
|
20902
|
+
_this.ZTdX.createNewTooltip();
|
|
20882
20903
|
}, ui_config.delay);
|
|
20883
20904
|
});
|
|
20884
|
-
_defineProperty(this, "
|
|
20905
|
+
_defineProperty(this, "AQBm", function (ui_config, duration, uuid, name) {
|
|
20885
20906
|
var terminationConfig = {};
|
|
20886
20907
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
20887
20908
|
terminationConfig["duration"] = duration;
|
|
@@ -20905,7 +20926,7 @@
|
|
|
20905
20926
|
var _window19, _window19$updateFlag, _window20;
|
|
20906
20927
|
_this.isShowingAction = false;
|
|
20907
20928
|
_this.currentAction = null;
|
|
20908
|
-
_this.
|
|
20929
|
+
_this.ZTdX = null;
|
|
20909
20930
|
(_window19 = window) === null || _window19 === void 0 || (_window19 = _window19.Apxor) === null || _window19 === void 0 || (_window19$updateFlag = _window19.updateFlag) === null || _window19$updateFlag === void 0 || _window19$updateFlag.call(_window19, false);
|
|
20910
20931
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
20911
20932
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -20918,8 +20939,8 @@
|
|
|
20918
20939
|
_this._currentCoachmark.createNewCoachMark();
|
|
20919
20940
|
});
|
|
20920
20941
|
_defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
|
|
20921
|
-
if (_this.
|
|
20922
|
-
_this.
|
|
20942
|
+
if (_this.ZTdX) {
|
|
20943
|
+
_this.ZTdX.updateElementPositionOnScroll(top, left, height, width);
|
|
20923
20944
|
}
|
|
20924
20945
|
});
|
|
20925
20946
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -20949,7 +20970,7 @@
|
|
|
20949
20970
|
window.Apxor.logActionEvent("inapp_dismissed", configId, name);
|
|
20950
20971
|
}
|
|
20951
20972
|
});
|
|
20952
|
-
VideoInAppInstance.
|
|
20973
|
+
VideoInAppInstance.NpYM();
|
|
20953
20974
|
});
|
|
20954
20975
|
/**
|
|
20955
20976
|
* Creates a modal for the given config and displays it.
|