apxor-rtm-ui 0.8.1 → 0.8.3
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 +149 -155
- package/dist/apxor.rtm.min.js +1 -1
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -6921,15 +6921,6 @@
|
|
|
6921
6921
|
return ["".concat(font_family, ", ").concat(fallbackFont), font_face];
|
|
6922
6922
|
};
|
|
6923
6923
|
|
|
6924
|
-
/**
|
|
6925
|
-
* @function getFileExtension
|
|
6926
|
-
* @param {*} filename takes image or video url and returns extension
|
|
6927
|
-
* @returns extension (jpg ,png etc)
|
|
6928
|
-
*/
|
|
6929
|
-
function getFileExtension(filename) {
|
|
6930
|
-
return filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2);
|
|
6931
|
-
}
|
|
6932
|
-
|
|
6933
6924
|
/**
|
|
6934
6925
|
* @function createNewTextElement
|
|
6935
6926
|
* @description Creates a text element for the given text config. It could either be a title or a description.
|
|
@@ -12128,14 +12119,14 @@
|
|
|
12128
12119
|
_config$wait_interval,
|
|
12129
12120
|
_config$termination;
|
|
12130
12121
|
_classCallCheck(this, TemplateContent);
|
|
12131
|
-
_defineProperty(this, "
|
|
12122
|
+
_defineProperty(this, "cBwB", function () {
|
|
12132
12123
|
return new Promise(function (resolve, reject) {
|
|
12133
12124
|
try {
|
|
12134
|
-
var element = _this.
|
|
12125
|
+
var element = _this.WGMT(_this.layout);
|
|
12135
12126
|
var styleElement = document.createElement("style");
|
|
12136
12127
|
styleElement.innerHTML = _this.styleContent;
|
|
12137
12128
|
document.head.appendChild(styleElement);
|
|
12138
|
-
_this.
|
|
12129
|
+
_this.quNv();
|
|
12139
12130
|
try {
|
|
12140
12131
|
eval(_this.script);
|
|
12141
12132
|
} catch (e) {
|
|
@@ -12146,15 +12137,15 @@
|
|
|
12146
12137
|
}
|
|
12147
12138
|
_this.imageElements.forEach(function (img) {
|
|
12148
12139
|
img.addEventListener("error", function () {
|
|
12149
|
-
_this.
|
|
12140
|
+
_this.HExf("provided image doesn't exists");
|
|
12150
12141
|
});
|
|
12151
12142
|
});
|
|
12152
12143
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
12153
12144
|
_this.wait_interval -= 1;
|
|
12154
12145
|
if (_this.wait_interval <= 0) {
|
|
12155
|
-
_this.
|
|
12146
|
+
_this.HExf("provided media doesn't exists");
|
|
12156
12147
|
} else {
|
|
12157
|
-
if (_this.
|
|
12148
|
+
if (_this.XPjO() && _this.GVvD() && _this.OnXW()) {
|
|
12158
12149
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
12159
12150
|
resolve(element);
|
|
12160
12151
|
}
|
|
@@ -12168,7 +12159,7 @@
|
|
|
12168
12159
|
}
|
|
12169
12160
|
});
|
|
12170
12161
|
});
|
|
12171
|
-
_defineProperty(this, "
|
|
12162
|
+
_defineProperty(this, "HExf", function (reason) {
|
|
12172
12163
|
var _window$ApxorRTM, _window$Apxor, _this$config, _this$config2, _window$Apxor2, _this$config3, _this$config4, _this$config5, _this$config6, _window3;
|
|
12173
12164
|
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
12174
12165
|
apx_nudge_name: _this.name,
|
|
@@ -12184,13 +12175,13 @@
|
|
|
12184
12175
|
_this.closeCallBack("cancel");
|
|
12185
12176
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorInternals) === null || _window3 === void 0 || _window3.removeBuilderTemplate(_this.configId);
|
|
12186
12177
|
});
|
|
12187
|
-
_defineProperty(this, "
|
|
12178
|
+
_defineProperty(this, "quNv", function () {
|
|
12188
12179
|
var BuilderTemplatesStyles = document.createElement("style");
|
|
12189
12180
|
BuilderTemplatesStyles.innerHTML = _this.initialStyles;
|
|
12190
12181
|
BuilderTemplatesStyles.setAttribute("apx-builder-template-styles", "");
|
|
12191
12182
|
document.head.appendChild(BuilderTemplatesStyles);
|
|
12192
12183
|
});
|
|
12193
|
-
_defineProperty(this, "
|
|
12184
|
+
_defineProperty(this, "WGMT", function (config) {
|
|
12194
12185
|
var _window$Apxor3;
|
|
12195
12186
|
var element;
|
|
12196
12187
|
switch (config.type) {
|
|
@@ -12274,7 +12265,7 @@
|
|
|
12274
12265
|
if (config.type === "cta_button" || config.type === "button") {
|
|
12275
12266
|
reason = "cta-clicked";
|
|
12276
12267
|
}
|
|
12277
|
-
_this.
|
|
12268
|
+
_this.jKJD(e, "redirect", reason);
|
|
12278
12269
|
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) {
|
|
12279
12270
|
var _window4, _this$config8;
|
|
12280
12271
|
(_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);
|
|
@@ -12290,7 +12281,7 @@
|
|
|
12290
12281
|
} else if (config.type === "cta_button" || config.type === "button") {
|
|
12291
12282
|
reason = "cta-clicked";
|
|
12292
12283
|
}
|
|
12293
|
-
_this.
|
|
12284
|
+
_this.jKJD(e, "cancel", reason);
|
|
12294
12285
|
// window.Apxor.logActionEvent(
|
|
12295
12286
|
// "walk_through_cancelled",
|
|
12296
12287
|
// this.configId,
|
|
@@ -12309,7 +12300,7 @@
|
|
|
12309
12300
|
} else if (config.type === "cta_button" || config.type === "button") {
|
|
12310
12301
|
reason = "cta-clicked";
|
|
12311
12302
|
}
|
|
12312
|
-
_this.
|
|
12303
|
+
_this.jKJD(e, "dismiss", reason);
|
|
12313
12304
|
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) {
|
|
12314
12305
|
var _window5, _this$config10;
|
|
12315
12306
|
(_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);
|
|
@@ -12320,7 +12311,7 @@
|
|
|
12320
12311
|
element.onclick = function (e) {
|
|
12321
12312
|
e.stopPropagation();
|
|
12322
12313
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
12323
|
-
_this.
|
|
12314
|
+
_this.jKJD(e, "never");
|
|
12324
12315
|
};
|
|
12325
12316
|
break;
|
|
12326
12317
|
case "toggle-class":
|
|
@@ -12345,7 +12336,7 @@
|
|
|
12345
12336
|
tempInput.select();
|
|
12346
12337
|
document.execCommand("copy");
|
|
12347
12338
|
document.body.removeChild(tempInput);
|
|
12348
|
-
_this.
|
|
12339
|
+
_this.jKJD(e, "copy-content", "cta-clicked");
|
|
12349
12340
|
setTimeout(function () {
|
|
12350
12341
|
window.Apxor.showInfoToast("Text-Copied:".concat(textToCopy));
|
|
12351
12342
|
}, 500);
|
|
@@ -12367,7 +12358,7 @@
|
|
|
12367
12358
|
}
|
|
12368
12359
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
12369
12360
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
12370
|
-
var childElement = _this.
|
|
12361
|
+
var childElement = _this.WGMT(childConfig);
|
|
12371
12362
|
element.appendChild(childElement);
|
|
12372
12363
|
});
|
|
12373
12364
|
}
|
|
@@ -12375,7 +12366,7 @@
|
|
|
12375
12366
|
// Process children
|
|
12376
12367
|
if (config.children && config.children.length > 0) {
|
|
12377
12368
|
config.children.forEach(function (childConfig) {
|
|
12378
|
-
var childElement = _this.
|
|
12369
|
+
var childElement = _this.WGMT(childConfig);
|
|
12379
12370
|
element.appendChild(childElement);
|
|
12380
12371
|
});
|
|
12381
12372
|
}
|
|
@@ -12402,7 +12393,7 @@
|
|
|
12402
12393
|
}
|
|
12403
12394
|
return element;
|
|
12404
12395
|
});
|
|
12405
|
-
_defineProperty(this, "
|
|
12396
|
+
_defineProperty(this, "jKJD", function (e, action) {
|
|
12406
12397
|
var _window$Apxor4, _this$config11, _this$config12, _window$Apxor5, _this$config13, _this$config14, _this$config15, _this$config16;
|
|
12407
12398
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
12408
12399
|
var additional_info = {
|
|
@@ -12431,7 +12422,7 @@
|
|
|
12431
12422
|
_this.closeCallBack(action);
|
|
12432
12423
|
}
|
|
12433
12424
|
});
|
|
12434
|
-
_defineProperty(this, "
|
|
12425
|
+
_defineProperty(this, "GVvD", function () {
|
|
12435
12426
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
12436
12427
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
12437
12428
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -12439,13 +12430,13 @@
|
|
|
12439
12430
|
return img.complete;
|
|
12440
12431
|
});
|
|
12441
12432
|
});
|
|
12442
|
-
_defineProperty(this, "
|
|
12433
|
+
_defineProperty(this, "OnXW", function () {
|
|
12443
12434
|
if (!_this.bgImageUrl) return true;
|
|
12444
12435
|
var img = new Image();
|
|
12445
12436
|
img.src = _this.bgImageUrl;
|
|
12446
12437
|
return img.complete;
|
|
12447
12438
|
});
|
|
12448
|
-
_defineProperty(this, "
|
|
12439
|
+
_defineProperty(this, "XPjO", function () {
|
|
12449
12440
|
if (_this.videoElements.length === 0) return true;
|
|
12450
12441
|
return _this.videoElements.every(function (video) {
|
|
12451
12442
|
return video.readyState >= 3;
|
|
@@ -13379,7 +13370,7 @@
|
|
|
13379
13370
|
case 0:
|
|
13380
13371
|
_context2.prev = 0;
|
|
13381
13372
|
_context2.next = 3;
|
|
13382
|
-
return this.templateContent.
|
|
13373
|
+
return this.templateContent.cBwB();
|
|
13383
13374
|
case 3:
|
|
13384
13375
|
this.inLineContainer = _context2.sent;
|
|
13385
13376
|
_context2.next = 9;
|
|
@@ -14955,7 +14946,7 @@
|
|
|
14955
14946
|
* @description Creates the styles for Marketing message.
|
|
14956
14947
|
* @returns {string} css styles
|
|
14957
14948
|
*/
|
|
14958
|
-
_defineProperty(this, "
|
|
14949
|
+
_defineProperty(this, "Lgvy", function () {
|
|
14959
14950
|
if (!_this.enable_marketing) {
|
|
14960
14951
|
return "";
|
|
14961
14952
|
}
|
|
@@ -14974,7 +14965,7 @@
|
|
|
14974
14965
|
* @private
|
|
14975
14966
|
* @description Sets the marketing content at the end of the Inline
|
|
14976
14967
|
*/
|
|
14977
|
-
_defineProperty(this, "
|
|
14968
|
+
_defineProperty(this, "wOnC", function () {
|
|
14978
14969
|
if (_this.enable_marketing) {
|
|
14979
14970
|
var marketingContainer = document.createElement("div");
|
|
14980
14971
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -15586,7 +15577,7 @@
|
|
|
15586
15577
|
if (apxor_tooltip_styles) {
|
|
15587
15578
|
return;
|
|
15588
15579
|
}
|
|
15589
|
-
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.
|
|
15580
|
+
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.Lgvy(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
15590
15581
|
var styleNode = document.createElement("style");
|
|
15591
15582
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
15592
15583
|
styleNode.innerHTML = styles;
|
|
@@ -16396,7 +16387,7 @@
|
|
|
16396
16387
|
this._setCloseButton();
|
|
16397
16388
|
|
|
16398
16389
|
//Set the Marketing content
|
|
16399
|
-
this.
|
|
16390
|
+
this.wOnC();
|
|
16400
16391
|
}
|
|
16401
16392
|
|
|
16402
16393
|
/**
|
|
@@ -19291,7 +19282,7 @@
|
|
|
19291
19282
|
case 0:
|
|
19292
19283
|
_context2.prev = 0;
|
|
19293
19284
|
_context2.next = 3;
|
|
19294
|
-
return this.templateContent.
|
|
19285
|
+
return this.templateContent.cBwB();
|
|
19295
19286
|
case 3:
|
|
19296
19287
|
this.inAppContainer = _context2.sent;
|
|
19297
19288
|
this.inAppContainer.style.zIndex = 99999;
|
|
@@ -19490,7 +19481,7 @@
|
|
|
19490
19481
|
* @description Creates the styles for Marketing message.
|
|
19491
19482
|
* @returns {string} css styles
|
|
19492
19483
|
*/
|
|
19493
|
-
_defineProperty(this, "
|
|
19484
|
+
_defineProperty(this, "Lgvy", function () {
|
|
19494
19485
|
if (!_this.enable_marketing) {
|
|
19495
19486
|
return "";
|
|
19496
19487
|
}
|
|
@@ -19536,7 +19527,7 @@
|
|
|
19536
19527
|
* @private
|
|
19537
19528
|
* @description Get the response for Form content in the InApp modal.
|
|
19538
19529
|
*/
|
|
19539
|
-
_defineProperty(this, "
|
|
19530
|
+
_defineProperty(this, "llkJ", function (form_elements) {
|
|
19540
19531
|
var obj = {};
|
|
19541
19532
|
var callback = "";
|
|
19542
19533
|
form_elements.forEach(function (element) {
|
|
@@ -19576,7 +19567,7 @@
|
|
|
19576
19567
|
* @private
|
|
19577
19568
|
* @description Sets the marketing content at the end of the InApp
|
|
19578
19569
|
*/
|
|
19579
|
-
_defineProperty(this, "
|
|
19570
|
+
_defineProperty(this, "wOnC", function () {
|
|
19580
19571
|
if (_this.enable_marketing) {
|
|
19581
19572
|
var marketingContainer = document.createElement("div");
|
|
19582
19573
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -19835,7 +19826,7 @@
|
|
|
19835
19826
|
}, {
|
|
19836
19827
|
key: "_setStyles",
|
|
19837
19828
|
value: function _setStyles() {
|
|
19838
|
-
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.
|
|
19829
|
+
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.Lgvy(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
19839
19830
|
var styleNode = document.createElement("style");
|
|
19840
19831
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
19841
19832
|
styleNode.innerHTML = styles;
|
|
@@ -20334,7 +20325,7 @@
|
|
|
20334
20325
|
this._setCloseButton();
|
|
20335
20326
|
|
|
20336
20327
|
//Set the Marketing content
|
|
20337
|
-
this.
|
|
20328
|
+
this.wOnC();
|
|
20338
20329
|
}
|
|
20339
20330
|
|
|
20340
20331
|
/**
|
|
@@ -20418,7 +20409,7 @@
|
|
|
20418
20409
|
});
|
|
20419
20410
|
if (format != "") {
|
|
20420
20411
|
var _window2, _window2$getFilePath;
|
|
20421
|
-
imgElement.src
|
|
20412
|
+
imgElement.src = this.image.path && format ? ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || (_window2$getFilePath = _window2.getFilePath) === null || _window2$getFilePath === void 0 ? void 0 : _window2$getFilePath.call(_window2, this.configId, this.image.path, format)) || this.image.path : this.image.path;
|
|
20422
20413
|
} else {
|
|
20423
20414
|
imgElement.src = this.image.path;
|
|
20424
20415
|
}
|
|
@@ -20616,7 +20607,7 @@
|
|
|
20616
20607
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
20617
20608
|
form.addEventListener("submit", function (e) {
|
|
20618
20609
|
e.preventDefault();
|
|
20619
|
-
var _this8$generateRespon = _this8.
|
|
20610
|
+
var _this8$generateRespon = _this8.llkJ(_this8.form.elements),
|
|
20620
20611
|
obj = _this8$generateRespon.obj,
|
|
20621
20612
|
callback = _this8$generateRespon.callback;
|
|
20622
20613
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -20976,7 +20967,7 @@
|
|
|
20976
20967
|
};
|
|
20977
20968
|
} else {
|
|
20978
20969
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
20979
|
-
_this.
|
|
20970
|
+
_this.IlnK();
|
|
20980
20971
|
}
|
|
20981
20972
|
_this.showCallback();
|
|
20982
20973
|
} catch (e) {
|
|
@@ -20997,7 +20988,7 @@
|
|
|
20997
20988
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
20998
20989
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
20999
20990
|
*/
|
|
21000
|
-
_defineProperty(this, "
|
|
20991
|
+
_defineProperty(this, "fbhl", function () {
|
|
21001
20992
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
21002
20993
|
width = _getHeightWidthFromRe.width,
|
|
21003
20994
|
height = _getHeightWidthFromRe.height;
|
|
@@ -21009,7 +21000,7 @@
|
|
|
21009
21000
|
* @private
|
|
21010
21001
|
* @description Removes the video player style element.
|
|
21011
21002
|
*/
|
|
21012
|
-
_defineProperty(this, "
|
|
21003
|
+
_defineProperty(this, "qlmf", function () {
|
|
21013
21004
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
21014
21005
|
if (playerStyles) {
|
|
21015
21006
|
playerStyles.remove();
|
|
@@ -21020,7 +21011,7 @@
|
|
|
21020
21011
|
* @private
|
|
21021
21012
|
* @description Attach listeners on the video controls
|
|
21022
21013
|
*/
|
|
21023
|
-
_defineProperty(this, "
|
|
21014
|
+
_defineProperty(this, "DvAA", function () {
|
|
21024
21015
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
21025
21016
|
_this.videoElement.addEventListener("ended", function () {
|
|
21026
21017
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -21135,7 +21126,7 @@
|
|
|
21135
21126
|
* @private
|
|
21136
21127
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21137
21128
|
*/
|
|
21138
|
-
_defineProperty(this, "
|
|
21129
|
+
_defineProperty(this, "uGXC", function () {
|
|
21139
21130
|
var _this$terminationConf;
|
|
21140
21131
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
21141
21132
|
// On Exit of the PIP,
|
|
@@ -21175,7 +21166,7 @@
|
|
|
21175
21166
|
* @private Sets the custom controls on the video player.
|
|
21176
21167
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
21177
21168
|
*/
|
|
21178
|
-
_defineProperty(this, "
|
|
21169
|
+
_defineProperty(this, "ofWO", function () {
|
|
21179
21170
|
_this.enable_close_button;
|
|
21180
21171
|
if (_this.enable_close_button) {
|
|
21181
21172
|
var closeButton = document.createElement("span");
|
|
@@ -21222,21 +21213,21 @@
|
|
|
21222
21213
|
* @function hideVideoPlayer
|
|
21223
21214
|
* @description Sets the visibility of the video player to hidden.
|
|
21224
21215
|
*/
|
|
21225
|
-
_defineProperty(this, "
|
|
21216
|
+
_defineProperty(this, "qfZE", function () {
|
|
21226
21217
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21227
21218
|
});
|
|
21228
21219
|
/**
|
|
21229
21220
|
* @function unhideVideoPlayer
|
|
21230
21221
|
* @description Unhides video player.
|
|
21231
21222
|
*/
|
|
21232
|
-
_defineProperty(this, "
|
|
21223
|
+
_defineProperty(this, "IlnK", function () {
|
|
21233
21224
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
21234
21225
|
});
|
|
21235
21226
|
/**
|
|
21236
21227
|
* @function getVideoElement
|
|
21237
21228
|
* @returns {HTMLElement} Video ekement
|
|
21238
21229
|
*/
|
|
21239
|
-
_defineProperty(this, "
|
|
21230
|
+
_defineProperty(this, "aAUG", function () {
|
|
21240
21231
|
return _this.videoElement;
|
|
21241
21232
|
});
|
|
21242
21233
|
this.videoPlayer = null;
|
|
@@ -21290,7 +21281,7 @@
|
|
|
21290
21281
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
21291
21282
|
|
|
21292
21283
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
21293
|
-
this.
|
|
21284
|
+
this.fbhl();
|
|
21294
21285
|
//Generate the styles and add them to the document head.
|
|
21295
21286
|
this._setVideoPlayerStyles();
|
|
21296
21287
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -21298,16 +21289,16 @@
|
|
|
21298
21289
|
//Create a video element,set the source and add to the container.
|
|
21299
21290
|
this._setPlayerContent();
|
|
21300
21291
|
//Set the listeners on the video control buttons.
|
|
21301
|
-
this.
|
|
21292
|
+
this.DvAA();
|
|
21302
21293
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
21303
|
-
this.
|
|
21294
|
+
this.uGXC();
|
|
21304
21295
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
21305
21296
|
//Reason - We want to position them at the top right and left positions.
|
|
21306
|
-
this.
|
|
21297
|
+
this.ofWO();
|
|
21307
21298
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
21308
21299
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
21309
21300
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
21310
|
-
this.
|
|
21301
|
+
this.qfZE();
|
|
21311
21302
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
21312
21303
|
this._setAutoTerminate();
|
|
21313
21304
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -21422,7 +21413,7 @@
|
|
|
21422
21413
|
}
|
|
21423
21414
|
}
|
|
21424
21415
|
this.videoPlayer.remove();
|
|
21425
|
-
this.
|
|
21416
|
+
this.qlmf();
|
|
21426
21417
|
if (closeButtonName !== "auto_dismiss") {
|
|
21427
21418
|
var _window$ApxorRTM9;
|
|
21428
21419
|
(_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
|
|
@@ -21492,7 +21483,7 @@
|
|
|
21492
21483
|
replayCount: _this3.replayCount
|
|
21493
21484
|
});
|
|
21494
21485
|
_this3.videoPlayer.remove();
|
|
21495
|
-
_this3.
|
|
21486
|
+
_this3.qlmf();
|
|
21496
21487
|
_this3.hideCallback();
|
|
21497
21488
|
} catch (e) {
|
|
21498
21489
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -21586,14 +21577,14 @@
|
|
|
21586
21577
|
try {
|
|
21587
21578
|
var _window;
|
|
21588
21579
|
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
|
|
21589
|
-
var element = _this.
|
|
21590
|
-
_this.
|
|
21580
|
+
var element = _this.awow(_this.layout);
|
|
21581
|
+
_this.OtPv();
|
|
21591
21582
|
window.onresize = function () {
|
|
21592
|
-
_this.
|
|
21583
|
+
_this.sHqY();
|
|
21593
21584
|
};
|
|
21594
21585
|
_this.imageElements.forEach(function (img) {
|
|
21595
21586
|
img.addEventListener("error", function () {
|
|
21596
|
-
_this.
|
|
21587
|
+
_this.HExf("provided image doesn't exists");
|
|
21597
21588
|
});
|
|
21598
21589
|
});
|
|
21599
21590
|
var rootContainer = document.createElement("div");
|
|
@@ -21604,7 +21595,7 @@
|
|
|
21604
21595
|
var styleElement = document.createElement("style");
|
|
21605
21596
|
styleElement.innerHTML = _this.styleContent;
|
|
21606
21597
|
document.head.appendChild(styleElement);
|
|
21607
|
-
_this.
|
|
21598
|
+
_this.nRjs(_this.termination);
|
|
21608
21599
|
try {
|
|
21609
21600
|
eval(_this.script);
|
|
21610
21601
|
} catch (e) {
|
|
@@ -21615,10 +21606,10 @@
|
|
|
21615
21606
|
_this.intervalToCheckMediaLoadingStatus = setInterval(function () {
|
|
21616
21607
|
_this.wait_interval -= 1;
|
|
21617
21608
|
if (_this.wait_interval <= 0) {
|
|
21618
|
-
_this.
|
|
21609
|
+
_this.HExf("provided media doesn't exists");
|
|
21619
21610
|
} else {
|
|
21620
|
-
if (_this.
|
|
21621
|
-
_this.
|
|
21611
|
+
if (_this.XPjO() && _this.GVvD() && _this.OnXW()) {
|
|
21612
|
+
_this.sHqY();
|
|
21622
21613
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
21623
21614
|
}
|
|
21624
21615
|
}
|
|
@@ -21629,7 +21620,7 @@
|
|
|
21629
21620
|
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorLogger) === null || _window3 === void 0 || _window3.error("failed while creating embed card with error: ".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
21630
21621
|
}
|
|
21631
21622
|
});
|
|
21632
|
-
_defineProperty(this, "
|
|
21623
|
+
_defineProperty(this, "HExf", function (reason) {
|
|
21633
21624
|
var _window$ApxorRTM, _window4;
|
|
21634
21625
|
!_this.loggedNudgeNotShownEvent && ((_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 ? void 0 : _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
21635
21626
|
apx_nudge_name: _this.name,
|
|
@@ -21643,13 +21634,13 @@
|
|
|
21643
21634
|
clearInterval(_this.intervalToCheckMediaLoadingStatus);
|
|
21644
21635
|
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorWidget) === null || _window4 === void 0 || _window4.removeEmbedCard(_this.configId);
|
|
21645
21636
|
});
|
|
21646
|
-
_defineProperty(this, "
|
|
21637
|
+
_defineProperty(this, "OtPv", function () {
|
|
21647
21638
|
var EmbeddedCardsStyles = document.createElement("style");
|
|
21648
21639
|
EmbeddedCardsStyles.innerHTML = _this.initialStyles;
|
|
21649
21640
|
EmbeddedCardsStyles.setAttribute("apx-embedded-card-styles", "");
|
|
21650
21641
|
document.head.appendChild(EmbeddedCardsStyles);
|
|
21651
21642
|
});
|
|
21652
|
-
_defineProperty(this, "
|
|
21643
|
+
_defineProperty(this, "awow", function (config) {
|
|
21653
21644
|
var _window$Apxor;
|
|
21654
21645
|
var element;
|
|
21655
21646
|
switch (config.type) {
|
|
@@ -21723,27 +21714,27 @@
|
|
|
21723
21714
|
element.onclick = function (e) {
|
|
21724
21715
|
e.stopPropagation();
|
|
21725
21716
|
window.Apxor.redirect(JSON.stringify(action));
|
|
21726
|
-
_this.
|
|
21717
|
+
_this.jKJD(e);
|
|
21727
21718
|
};
|
|
21728
21719
|
break;
|
|
21729
21720
|
case "show-video":
|
|
21730
21721
|
element.onclick = function (e) {
|
|
21731
21722
|
e.stopPropagation();
|
|
21732
21723
|
window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
|
|
21733
|
-
_this.
|
|
21724
|
+
_this.jKJD(e);
|
|
21734
21725
|
};
|
|
21735
21726
|
break;
|
|
21736
21727
|
case "cancel":
|
|
21737
21728
|
element.onclick = function (e) {
|
|
21738
21729
|
e.stopPropagation();
|
|
21739
|
-
_this.
|
|
21730
|
+
_this.jKJD(e);
|
|
21740
21731
|
window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
|
|
21741
21732
|
};
|
|
21742
21733
|
break;
|
|
21743
21734
|
case "dismiss":
|
|
21744
21735
|
element.onclick = function (e) {
|
|
21745
21736
|
e.stopPropagation();
|
|
21746
|
-
_this.
|
|
21737
|
+
_this.jKJD(e);
|
|
21747
21738
|
};
|
|
21748
21739
|
break;
|
|
21749
21740
|
case "never":
|
|
@@ -21751,7 +21742,7 @@
|
|
|
21751
21742
|
e.stopPropagation();
|
|
21752
21743
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
21753
21744
|
window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
|
|
21754
|
-
_this.
|
|
21745
|
+
_this.jKJD(e);
|
|
21755
21746
|
};
|
|
21756
21747
|
break;
|
|
21757
21748
|
case "toggle-class":
|
|
@@ -21776,7 +21767,7 @@
|
|
|
21776
21767
|
tempInput.select();
|
|
21777
21768
|
document.execCommand("copy");
|
|
21778
21769
|
document.body.removeChild(tempInput);
|
|
21779
|
-
_this.
|
|
21770
|
+
_this.jKJD(e);
|
|
21780
21771
|
};
|
|
21781
21772
|
break;
|
|
21782
21773
|
case "log-app-event":
|
|
@@ -21795,7 +21786,7 @@
|
|
|
21795
21786
|
}
|
|
21796
21787
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
21797
21788
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
21798
|
-
var childElement = _this.
|
|
21789
|
+
var childElement = _this.WGMT(childConfig);
|
|
21799
21790
|
element.appendChild(childElement);
|
|
21800
21791
|
});
|
|
21801
21792
|
}
|
|
@@ -21803,7 +21794,7 @@
|
|
|
21803
21794
|
// Process children
|
|
21804
21795
|
if (config.children && config.children.length > 0) {
|
|
21805
21796
|
config.children.forEach(function (childConfig) {
|
|
21806
|
-
var childElement = _this.
|
|
21797
|
+
var childElement = _this.awow(childConfig);
|
|
21807
21798
|
element.appendChild(childElement);
|
|
21808
21799
|
});
|
|
21809
21800
|
}
|
|
@@ -21829,7 +21820,7 @@
|
|
|
21829
21820
|
}
|
|
21830
21821
|
return element;
|
|
21831
21822
|
});
|
|
21832
|
-
_defineProperty(this, "
|
|
21823
|
+
_defineProperty(this, "jKJD", function (e) {
|
|
21833
21824
|
var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
|
|
21834
21825
|
var additional_info = {
|
|
21835
21826
|
apx_nudge_name: _this.name,
|
|
@@ -21846,7 +21837,7 @@
|
|
|
21846
21837
|
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_card_interaction", additional_info);
|
|
21847
21838
|
}
|
|
21848
21839
|
});
|
|
21849
|
-
_defineProperty(this, "
|
|
21840
|
+
_defineProperty(this, "nRjs", function (config) {
|
|
21850
21841
|
config.forEach(function (id) {
|
|
21851
21842
|
var element = document.getElementById(id);
|
|
21852
21843
|
if (element) {
|
|
@@ -21854,7 +21845,7 @@
|
|
|
21854
21845
|
}
|
|
21855
21846
|
});
|
|
21856
21847
|
});
|
|
21857
|
-
_defineProperty(this, "
|
|
21848
|
+
_defineProperty(this, "GVvD", function () {
|
|
21858
21849
|
//This logic is to make sure that image has loaded, it doesn't check whether image is broken
|
|
21859
21850
|
//refer: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete#value
|
|
21860
21851
|
if (_this.imageElements.length === 0) return true;
|
|
@@ -21862,19 +21853,19 @@
|
|
|
21862
21853
|
return img.complete;
|
|
21863
21854
|
});
|
|
21864
21855
|
});
|
|
21865
|
-
_defineProperty(this, "
|
|
21856
|
+
_defineProperty(this, "XPjO", function () {
|
|
21866
21857
|
if (_this.videoElements.length === 0) return true;
|
|
21867
21858
|
return _this.videoElements.every(function (video) {
|
|
21868
21859
|
return video.readyState >= 3;
|
|
21869
21860
|
});
|
|
21870
21861
|
});
|
|
21871
|
-
_defineProperty(this, "
|
|
21862
|
+
_defineProperty(this, "OnXW", function () {
|
|
21872
21863
|
if (!_this.bgImageUrl) return true;
|
|
21873
21864
|
var img = new Image();
|
|
21874
21865
|
img.src = _this.bgImageUrl;
|
|
21875
21866
|
return img.complete;
|
|
21876
21867
|
});
|
|
21877
|
-
_defineProperty(this, "
|
|
21868
|
+
_defineProperty(this, "sHqY", function () {
|
|
21878
21869
|
var _window6, _window7;
|
|
21879
21870
|
var width = window.document.querySelector("html").offsetWidth;
|
|
21880
21871
|
var height = window.document.querySelector("html").offsetHeight;
|
|
@@ -21963,8 +21954,8 @@
|
|
|
21963
21954
|
_this.storyContainer.appendChild(currentElement);
|
|
21964
21955
|
_this.storyContainer.appendChild(slideDetails);
|
|
21965
21956
|
document.body.appendChild(_this.storyContainer);
|
|
21966
|
-
_this.
|
|
21967
|
-
_this.
|
|
21957
|
+
_this.nHBJ();
|
|
21958
|
+
_this.Hqne();
|
|
21968
21959
|
_this.progress = Array.from(document.querySelectorAll(".progress"));
|
|
21969
21960
|
var current_slide = document.querySelector(".slide-details");
|
|
21970
21961
|
var playNext = function playNext(e) {
|
|
@@ -22010,7 +22001,7 @@
|
|
|
22010
22001
|
_existingAbsoluteElements2.forEach(function (element) {
|
|
22011
22002
|
element.remove();
|
|
22012
22003
|
});
|
|
22013
|
-
// this.
|
|
22004
|
+
// this.hKBX();
|
|
22014
22005
|
var _currentSlideDetails = document.querySelector(".slide-details");
|
|
22015
22006
|
_currentSlideDetails.innerHTML = "";
|
|
22016
22007
|
_this.position = _this.position + 1;
|
|
@@ -22106,7 +22097,7 @@
|
|
|
22106
22097
|
absolute_header = document.createElement("div");
|
|
22107
22098
|
current_slide_from_config.layout.absolute_position_children.forEach(function (current_element) {
|
|
22108
22099
|
var current_absolute_element;
|
|
22109
|
-
current_absolute_element = _this.
|
|
22100
|
+
current_absolute_element = _this.WGMT(current_element);
|
|
22110
22101
|
absolute_header.appendChild(current_absolute_element);
|
|
22111
22102
|
});
|
|
22112
22103
|
(_absolute_header = absolute_header) === null || _absolute_header === void 0 || _absolute_header.classList.add("apx-slide-header");
|
|
@@ -22116,10 +22107,9 @@
|
|
|
22116
22107
|
var _window$Apxor;
|
|
22117
22108
|
element = document.createElement("div");
|
|
22118
22109
|
var image_src;
|
|
22119
|
-
var image_ext;
|
|
22120
22110
|
if (((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.platform) != "ios") {
|
|
22121
|
-
|
|
22122
|
-
image_src = window.Apxor.
|
|
22111
|
+
var _window$Apxor2;
|
|
22112
|
+
image_src = (_window$Apxor2 = window.Apxor) === null || _window$Apxor2 === void 0 ? void 0 : _window$Apxor2.getFilePathForStories(_this.config[_this.position].id, current_slide_from_config.media_url);
|
|
22123
22113
|
if (image_src && image_src != "") {
|
|
22124
22114
|
document.body.style.backgroundImage = "url(".concat(image_src, ")");
|
|
22125
22115
|
document.body.style.backgroundSize = "100% auto";
|
|
@@ -22140,7 +22130,7 @@
|
|
|
22140
22130
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
22141
22131
|
document.body.style.margin = "0px";
|
|
22142
22132
|
} else if (current_slide_from_config.media_type === "video") {
|
|
22143
|
-
var _window$
|
|
22133
|
+
var _window$Apxor3;
|
|
22144
22134
|
document.body.style.backgroundImage = "";
|
|
22145
22135
|
document.body.style.backgroundSize = "";
|
|
22146
22136
|
document.body.style.backgroundPosition = "";
|
|
@@ -22153,7 +22143,7 @@
|
|
|
22153
22143
|
//Set the video tag attributes
|
|
22154
22144
|
sourceElement.setAttribute("src", current_slide_from_config.media_url);
|
|
22155
22145
|
sourceElement.setAttribute("type", "video/mp4");
|
|
22156
|
-
if (((_window$
|
|
22146
|
+
if (((_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.platform) === "ios") {
|
|
22157
22147
|
element.playsInline = true;
|
|
22158
22148
|
}
|
|
22159
22149
|
element.appendChild(sourceElement);
|
|
@@ -22167,7 +22157,7 @@
|
|
|
22167
22157
|
document.body.style.backgroundRepeat = "";
|
|
22168
22158
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
22169
22159
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
22170
|
-
element = _this.
|
|
22160
|
+
element = _this.WGMT(updated_layout_without_absolute_elements);
|
|
22171
22161
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
22172
22162
|
document.body.style.margin = "0px";
|
|
22173
22163
|
}
|
|
@@ -22175,9 +22165,9 @@
|
|
|
22175
22165
|
current_slide.removeChild(current_slide.children[0]);
|
|
22176
22166
|
}
|
|
22177
22167
|
current_slide.appendChild(element);
|
|
22178
|
-
_this.
|
|
22168
|
+
_this.IFPE();
|
|
22179
22169
|
window.intervalToCheckImgStatus = setInterval(function () {
|
|
22180
|
-
if (_this.
|
|
22170
|
+
if (_this.aBZy()) {
|
|
22181
22171
|
clearInterval(window.intervalToCheckImgStatus);
|
|
22182
22172
|
}
|
|
22183
22173
|
}, 500);
|
|
@@ -22205,7 +22195,7 @@
|
|
|
22205
22195
|
});
|
|
22206
22196
|
playNext();
|
|
22207
22197
|
});
|
|
22208
|
-
_defineProperty(this, "
|
|
22198
|
+
_defineProperty(this, "hKBX", function () {
|
|
22209
22199
|
document.body.classList.add("slide-right");
|
|
22210
22200
|
var animationEndCounter = 0;
|
|
22211
22201
|
var onAnimationEnd = function onAnimationEnd() {
|
|
@@ -22217,8 +22207,8 @@
|
|
|
22217
22207
|
};
|
|
22218
22208
|
document.body.addEventListener("animationend", onAnimationEnd);
|
|
22219
22209
|
});
|
|
22220
|
-
_defineProperty(this, "
|
|
22221
|
-
var _window$
|
|
22210
|
+
_defineProperty(this, "WGMT", function (config) {
|
|
22211
|
+
var _window$Apxor4;
|
|
22222
22212
|
var element;
|
|
22223
22213
|
var startY;
|
|
22224
22214
|
var progress_bar;
|
|
@@ -22273,7 +22263,7 @@
|
|
|
22273
22263
|
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>";
|
|
22274
22264
|
element.id = "apx-mute-icon";
|
|
22275
22265
|
element.addEventListener("touchstart", function (event) {
|
|
22276
|
-
_this.
|
|
22266
|
+
_this.Mjzr(event);
|
|
22277
22267
|
});
|
|
22278
22268
|
break;
|
|
22279
22269
|
case "copy_icon":
|
|
@@ -22288,7 +22278,7 @@
|
|
|
22288
22278
|
// element.controls = true;
|
|
22289
22279
|
element.disablePictureInPicture = true;
|
|
22290
22280
|
element.autoplay = true;
|
|
22291
|
-
if (((_window$
|
|
22281
|
+
if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
|
|
22292
22282
|
element.playsInline = true;
|
|
22293
22283
|
}
|
|
22294
22284
|
element.addEventListener("error", function () {
|
|
@@ -22467,7 +22457,7 @@
|
|
|
22467
22457
|
}
|
|
22468
22458
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
22469
22459
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
22470
|
-
var childElement = _this.
|
|
22460
|
+
var childElement = _this.WGMT(childConfig);
|
|
22471
22461
|
element.appendChild(childElement);
|
|
22472
22462
|
});
|
|
22473
22463
|
}
|
|
@@ -22475,15 +22465,14 @@
|
|
|
22475
22465
|
// Process children
|
|
22476
22466
|
if (config.children && config.children.length > 0) {
|
|
22477
22467
|
config.children.forEach(function (childConfig) {
|
|
22478
|
-
var childElement = _this.
|
|
22468
|
+
var childElement = _this.WGMT(childConfig);
|
|
22479
22469
|
element.appendChild(childElement);
|
|
22480
22470
|
});
|
|
22481
22471
|
}
|
|
22482
22472
|
if (config.type === "img") {
|
|
22483
|
-
var _config$properties3,
|
|
22473
|
+
var _config$properties3, _window5, _window5$getFilePathF;
|
|
22484
22474
|
var src = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.src;
|
|
22485
|
-
|
|
22486
|
-
element["src"] = src && format ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePath = _window5.getFilePath) === null || _window5$getFilePath === void 0 ? void 0 : _window5$getFilePath.call(_window5, _this.config[_this.position].id, src, format)) || src : src;
|
|
22475
|
+
element["src"] = src ? ((_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$getFilePathF = _window5.getFilePathForStories) === null || _window5$getFilePathF === void 0 ? void 0 : _window5$getFilePathF.call(_window5, _this.config[_this.position].id, src)) || src : src;
|
|
22487
22476
|
_this.imageElements.push(element);
|
|
22488
22477
|
var imgWrapper = document.createElement("div");
|
|
22489
22478
|
var _styleObject = parseCSS(config.css);
|
|
@@ -22502,7 +22491,7 @@
|
|
|
22502
22491
|
}
|
|
22503
22492
|
return element;
|
|
22504
22493
|
});
|
|
22505
|
-
_defineProperty(this, "
|
|
22494
|
+
_defineProperty(this, "Mjzr", function (event) {
|
|
22506
22495
|
var slide_details_to_be_deleted;
|
|
22507
22496
|
var mute_child_elements;
|
|
22508
22497
|
var unmute_child_elements;
|
|
@@ -22532,11 +22521,11 @@
|
|
|
22532
22521
|
}
|
|
22533
22522
|
// this.muteElement.addEventListener("touchstart", (event) => {
|
|
22534
22523
|
// event.stopPropagation();
|
|
22535
|
-
// this.
|
|
22524
|
+
// this.Mjzr(event);
|
|
22536
22525
|
// });
|
|
22537
22526
|
}
|
|
22538
22527
|
});
|
|
22539
|
-
_defineProperty(this, "
|
|
22528
|
+
_defineProperty(this, "Hqne", function () {
|
|
22540
22529
|
var tapTimeout;
|
|
22541
22530
|
var tapThreshold = 0.5; // Assuming 0.5 is the center of the WebView
|
|
22542
22531
|
var longPressDuration = 200;
|
|
@@ -22660,7 +22649,7 @@
|
|
|
22660
22649
|
event.target.dataset.touchStartTime = event.timeStamp;
|
|
22661
22650
|
});
|
|
22662
22651
|
});
|
|
22663
|
-
_defineProperty(this, "
|
|
22652
|
+
_defineProperty(this, "nHBJ", function () {
|
|
22664
22653
|
var startY, startX;
|
|
22665
22654
|
_this.storyContainer.addEventListener("touchstart", function (event) {
|
|
22666
22655
|
_this.swipeTouch = true;
|
|
@@ -22867,7 +22856,7 @@
|
|
|
22867
22856
|
}, 50);
|
|
22868
22857
|
});
|
|
22869
22858
|
});
|
|
22870
|
-
_defineProperty(this, "
|
|
22859
|
+
_defineProperty(this, "IFPE", function () {
|
|
22871
22860
|
_this.loader.style.display = "block";
|
|
22872
22861
|
var progress = Array.from(document.querySelectorAll(".progress"));
|
|
22873
22862
|
var activeIndex = progress.findIndex(function (el) {
|
|
@@ -22883,7 +22872,7 @@
|
|
|
22883
22872
|
}
|
|
22884
22873
|
}
|
|
22885
22874
|
});
|
|
22886
|
-
_defineProperty(this, "
|
|
22875
|
+
_defineProperty(this, "yuLN", function () {
|
|
22887
22876
|
if (!_this.continueLoading) {
|
|
22888
22877
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
22889
22878
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
@@ -22903,19 +22892,19 @@
|
|
|
22903
22892
|
_this.loader.style.display = "none";
|
|
22904
22893
|
}
|
|
22905
22894
|
});
|
|
22906
|
-
_defineProperty(this, "
|
|
22895
|
+
_defineProperty(this, "GVvD", function () {
|
|
22907
22896
|
if (_this.imageElements.length === 0) return true;
|
|
22908
22897
|
return _this.imageElements.every(function (img) {
|
|
22909
22898
|
return img.complete;
|
|
22910
22899
|
});
|
|
22911
22900
|
});
|
|
22912
|
-
_defineProperty(this, "
|
|
22901
|
+
_defineProperty(this, "XPjO", function () {
|
|
22913
22902
|
if (_this.videoElements.length === 0) return true;
|
|
22914
22903
|
return _this.videoElements.every(function (video) {
|
|
22915
22904
|
return video.readyState >= 3;
|
|
22916
22905
|
});
|
|
22917
22906
|
});
|
|
22918
|
-
_defineProperty(this, "
|
|
22907
|
+
_defineProperty(this, "aBZy", function () {
|
|
22919
22908
|
var bodyStyles = window.getComputedStyle(document.body);
|
|
22920
22909
|
var backgroundImage = bodyStyles.backgroundImage;
|
|
22921
22910
|
if (backgroundImage && backgroundImage !== "none" && _this.current_slide_config.media_type === "image") {
|
|
@@ -22925,7 +22914,7 @@
|
|
|
22925
22914
|
var img = new Image();
|
|
22926
22915
|
img.src = imageUrl;
|
|
22927
22916
|
if (img.complete) {
|
|
22928
|
-
_this.
|
|
22917
|
+
_this.yuLN();
|
|
22929
22918
|
return true;
|
|
22930
22919
|
}
|
|
22931
22920
|
return false;
|
|
@@ -22933,21 +22922,21 @@
|
|
|
22933
22922
|
var slide_details_to_be_deleted = document.querySelector(".slide-details");
|
|
22934
22923
|
var childElements = slide_details_to_be_deleted.querySelectorAll("video");
|
|
22935
22924
|
if (childElements[0].readyState >= 3) {
|
|
22936
|
-
_this.
|
|
22925
|
+
_this.yuLN();
|
|
22937
22926
|
return true;
|
|
22938
22927
|
}
|
|
22939
22928
|
return false;
|
|
22940
22929
|
} else {
|
|
22941
22930
|
if (_this.videoElements.length == 0 && _this.imageElements.length == 0) {
|
|
22942
|
-
_this.
|
|
22931
|
+
_this.yuLN();
|
|
22943
22932
|
return true;
|
|
22944
|
-
} else if (_this.
|
|
22945
|
-
_this.
|
|
22933
|
+
} else if (_this.GVvD() && _this.XPjO()) {
|
|
22934
|
+
_this.yuLN();
|
|
22946
22935
|
return true;
|
|
22947
22936
|
}
|
|
22948
22937
|
}
|
|
22949
22938
|
});
|
|
22950
|
-
_defineProperty(this, "
|
|
22939
|
+
_defineProperty(this, "CjFU", function (event, startY, action) {
|
|
22951
22940
|
event.stopPropagation();
|
|
22952
22941
|
var endY = event.changedTouches[0].clientY;
|
|
22953
22942
|
var deltaY = startY - endY;
|
|
@@ -23009,6 +22998,13 @@
|
|
|
23009
22998
|
var _window10, _window10$logInternal;
|
|
23010
22999
|
(_window10 = window) === null || _window10 === void 0 || (_window10 = _window10.Apxor) === null || _window10 === void 0 || (_window10$logInternal = _window10.logInternalEvent) === null || _window10$logInternal === void 0 || _window10$logInternal.call(_window10, "story_slides_closed");
|
|
23011
23000
|
}
|
|
23001
|
+
this.enable_download_files = _config === null || _config === void 0 ? void 0 : _config.enable_download_files;
|
|
23002
|
+
if (!this.enable_download_files) {
|
|
23003
|
+
this.enable_download_files = false;
|
|
23004
|
+
}
|
|
23005
|
+
if (this.enable_download_files) {
|
|
23006
|
+
this.download_files = _config === null || _config === void 0 ? void 0 : _config.download_files;
|
|
23007
|
+
}
|
|
23012
23008
|
this.storiesStyles = "";
|
|
23013
23009
|
this.progressContainer;
|
|
23014
23010
|
this.storyContainer;
|
|
@@ -23035,7 +23031,7 @@
|
|
|
23035
23031
|
this.swipe_action;
|
|
23036
23032
|
this.continueLoading = false;
|
|
23037
23033
|
this.boundSwipeUpHandling = function (event) {
|
|
23038
|
-
return _this.
|
|
23034
|
+
return _this.CjFU(event, _this.startY, _this.swipe_action);
|
|
23039
23035
|
};
|
|
23040
23036
|
}
|
|
23041
23037
|
_createClass(Stories, [{
|
|
@@ -23098,7 +23094,7 @@
|
|
|
23098
23094
|
} else {
|
|
23099
23095
|
var _progress$activeIndex5, _progress$activeIndex6, _progress$, _window12, _window12$logInternal, _window$ApxorRTM16, _window$ApxorRTM17, _window$ApxorRTM18;
|
|
23100
23096
|
// Move to the first slide of the next group
|
|
23101
|
-
// this.
|
|
23097
|
+
// this.hKBX();
|
|
23102
23098
|
this.position++;
|
|
23103
23099
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
23104
23100
|
this.slides = this.config[this.position].slides;
|
|
@@ -23224,7 +23220,7 @@
|
|
|
23224
23220
|
if (activeIndex === 0) {
|
|
23225
23221
|
var _progress$activeIndex9, _progress$activeIndex10, _progress$lastSlideIn, _window14, _window14$logInternal, _window$ApxorRTM22, _window$ApxorRTM23, _window$ApxorRTM24;
|
|
23226
23222
|
// If at the first slide of the current group, move to the last slide of the previous group
|
|
23227
|
-
// this.
|
|
23223
|
+
// this.hKBX();
|
|
23228
23224
|
this.position--;
|
|
23229
23225
|
this.progress_bar = new ProgressBar$1(this.config[this.position].progress_bar);
|
|
23230
23226
|
this.slides = this.config[this.position].slides;
|
|
@@ -23349,17 +23345,15 @@
|
|
|
23349
23345
|
slideHeader.style.top = "20px";
|
|
23350
23346
|
// Append slide header to slide details container
|
|
23351
23347
|
currentSlideDetails.appendChild(slideHeader);
|
|
23352
|
-
|
|
23353
23348
|
// Update slide content
|
|
23354
23349
|
var element;
|
|
23355
23350
|
if ((current_slide_from_config === null || current_slide_from_config === void 0 ? void 0 : current_slide_from_config.media_type) === "image") {
|
|
23356
|
-
var _window$
|
|
23351
|
+
var _window$Apxor5;
|
|
23357
23352
|
element = document.createElement("div");
|
|
23358
23353
|
var image_src;
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
|
|
23362
|
-
image_src = window.Apxor.getFilePath(this.config[this.position].id, current_slide_from_config.media_url, image_ext);
|
|
23354
|
+
if (((_window$Apxor5 = window.Apxor) === null || _window$Apxor5 === void 0 ? void 0 : _window$Apxor5.platform) != "ios") {
|
|
23355
|
+
var _window$Apxor6;
|
|
23356
|
+
image_src = (_window$Apxor6 = window.Apxor) === null || _window$Apxor6 === void 0 ? void 0 : _window$Apxor6.getFilePathForStories(this.config[this.position].id, current_slide_from_config.media_url);
|
|
23363
23357
|
if (image_src && image_src != "") {
|
|
23364
23358
|
document.body.style.backgroundImage = "url(".concat(image_src, ")");
|
|
23365
23359
|
document.body.style.backgroundSize = "100% auto";
|
|
@@ -23380,7 +23374,7 @@
|
|
|
23380
23374
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
23381
23375
|
document.body.style.margin = "0px";
|
|
23382
23376
|
} else if ((current_slide_from_config === null || current_slide_from_config === void 0 ? void 0 : current_slide_from_config.media_type) === "video") {
|
|
23383
|
-
var _window$
|
|
23377
|
+
var _window$Apxor7;
|
|
23384
23378
|
document.body.style.backgroundImage = "";
|
|
23385
23379
|
document.body.style.backgroundSize = "";
|
|
23386
23380
|
document.body.style.backgroundPosition = "";
|
|
@@ -23397,7 +23391,7 @@
|
|
|
23397
23391
|
element.style.height = "auto";
|
|
23398
23392
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
23399
23393
|
document.body.style.margin = "0px";
|
|
23400
|
-
if (((_window$
|
|
23394
|
+
if (((_window$Apxor7 = window.Apxor) === null || _window$Apxor7 === void 0 ? void 0 : _window$Apxor7.platform) === "ios") {
|
|
23401
23395
|
element.playsInline = true;
|
|
23402
23396
|
}
|
|
23403
23397
|
element.style.alignItems = "center";
|
|
@@ -23413,25 +23407,25 @@
|
|
|
23413
23407
|
// Create custom content
|
|
23414
23408
|
var updated_layout_without_absolute_elements = JSON.parse(JSON.stringify(current_slide_from_config.layout));
|
|
23415
23409
|
delete updated_layout_without_absolute_elements["absolute_position_children"];
|
|
23416
|
-
element = this.
|
|
23410
|
+
element = this.WGMT(updated_layout_without_absolute_elements);
|
|
23417
23411
|
}
|
|
23418
23412
|
// Append slide content to slide details container
|
|
23419
23413
|
|
|
23420
23414
|
document.body.style.backgroundColor = current_slide_from_config.media_background_color;
|
|
23421
23415
|
document.body.style.margin = "0px";
|
|
23422
23416
|
currentSlideDetails.appendChild(element);
|
|
23423
|
-
this.
|
|
23417
|
+
this.IFPE();
|
|
23424
23418
|
|
|
23425
23419
|
// Handle absolute position children
|
|
23426
23420
|
if (current_slide_from_config.layout.absolute_position_children && current_slide_from_config.layout.absolute_position_children.length > 0) {
|
|
23427
23421
|
current_slide_from_config.layout.absolute_position_children.forEach(function (childConfig) {
|
|
23428
|
-
var childElement = _this2.
|
|
23422
|
+
var childElement = _this2.WGMT(childConfig);
|
|
23429
23423
|
// Append absolute position children to slide details container
|
|
23430
23424
|
currentSlideDetails.appendChild(childElement);
|
|
23431
23425
|
});
|
|
23432
23426
|
}
|
|
23433
23427
|
window.intervalToCheckImgStatus2 = setInterval(function () {
|
|
23434
|
-
if (_this2.
|
|
23428
|
+
if (_this2.aBZy()) {
|
|
23435
23429
|
clearInterval(window.intervalToCheckImgStatus2);
|
|
23436
23430
|
}
|
|
23437
23431
|
}, 500);
|
|
@@ -23478,16 +23472,16 @@
|
|
|
23478
23472
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
23479
23473
|
var _this = this;
|
|
23480
23474
|
_classCallCheck(this, RTM);
|
|
23481
|
-
_defineProperty(this, "
|
|
23475
|
+
_defineProperty(this, "EIdx", {});
|
|
23482
23476
|
_defineProperty(this, "isShowingAction", false);
|
|
23483
23477
|
_defineProperty(this, "currentAction", null);
|
|
23484
|
-
_defineProperty(this, "
|
|
23485
|
-
_defineProperty(this, "version",
|
|
23478
|
+
_defineProperty(this, "CWNo", null);
|
|
23479
|
+
_defineProperty(this, "version", 83);
|
|
23486
23480
|
_defineProperty(this, "isInitialised", false);
|
|
23487
|
-
_defineProperty(this, "
|
|
23488
|
-
_defineProperty(this, "
|
|
23481
|
+
_defineProperty(this, "OdUI", {});
|
|
23482
|
+
_defineProperty(this, "TXjN", false);
|
|
23489
23483
|
_defineProperty(this, "_isShownECCalled", false);
|
|
23490
|
-
_defineProperty(this, "
|
|
23484
|
+
_defineProperty(this, "LDpO", function () {
|
|
23491
23485
|
_this.isInitialised = true;
|
|
23492
23486
|
var oldPushState = history.pushState;
|
|
23493
23487
|
history.pushState = function pushState() {
|
|
@@ -23512,7 +23506,7 @@
|
|
|
23512
23506
|
});
|
|
23513
23507
|
_defineProperty(this, "show", function (uiJson, duration, uuid, name) {
|
|
23514
23508
|
if (!_this.isInitialised) {
|
|
23515
|
-
_this.
|
|
23509
|
+
_this.LDpO();
|
|
23516
23510
|
}
|
|
23517
23511
|
window.addEventListener("pagehide", function () {
|
|
23518
23512
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -23539,7 +23533,7 @@
|
|
|
23539
23533
|
} else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
|
|
23540
23534
|
_this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
|
|
23541
23535
|
} else if (ui_config.display_type === "coach_mark_v2") {
|
|
23542
|
-
_this.
|
|
23536
|
+
_this.dcmY(ui_config, duration, uuid, name);
|
|
23543
23537
|
} else {
|
|
23544
23538
|
showCoachmarkWithDelay(_this, ui_config, {
|
|
23545
23539
|
configId: uuid,
|
|
@@ -23640,7 +23634,7 @@
|
|
|
23640
23634
|
try {
|
|
23641
23635
|
config = config.split("\n").join("\\n");
|
|
23642
23636
|
var ui_config = JSON.parse(config);
|
|
23643
|
-
_this.
|
|
23637
|
+
_this.Fzbq(ui_config, configId, name, position, slidesSeenCount, view_id);
|
|
23644
23638
|
} catch (e) {
|
|
23645
23639
|
var _window$Apxor3;
|
|
23646
23640
|
if (((_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.platform) === "ios") {
|
|
@@ -23654,7 +23648,7 @@
|
|
|
23654
23648
|
console.error(e);
|
|
23655
23649
|
}
|
|
23656
23650
|
});
|
|
23657
|
-
_defineProperty(this, "
|
|
23651
|
+
_defineProperty(this, "Fzbq", function (config, configId, name, position, slidesSeenCount, view_id) {
|
|
23658
23652
|
var cardsContainer = new Stories(config, configId, name, position, slidesSeenCount, view_id, function () {
|
|
23659
23653
|
window.Apxor.logAppEvent("apx_nudge_shown", {
|
|
23660
23654
|
campaignName: name,
|
|
@@ -23702,7 +23696,7 @@
|
|
|
23702
23696
|
var _window22, _window22$updateFlag, _window23;
|
|
23703
23697
|
_this.isShowingAction = false;
|
|
23704
23698
|
_this.currentAction = null;
|
|
23705
|
-
_this.
|
|
23699
|
+
_this.CWNo = null;
|
|
23706
23700
|
(_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);
|
|
23707
23701
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
23708
23702
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -23713,21 +23707,21 @@
|
|
|
23713
23707
|
}
|
|
23714
23708
|
};
|
|
23715
23709
|
if (action_class === "new-inline") {
|
|
23716
|
-
_this.
|
|
23710
|
+
_this.CWNo = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
23717
23711
|
configId: uuid,
|
|
23718
23712
|
configName: name
|
|
23719
23713
|
}, _this, onShow, onHide, function () {}, false, 0);
|
|
23720
23714
|
} else if (action_class === "tooltip_builder") {
|
|
23721
|
-
_this.
|
|
23715
|
+
_this.CWNo = new NewInLineTooltip(ui_config, terminationConfig, {
|
|
23722
23716
|
configId: uuid,
|
|
23723
23717
|
configName: name
|
|
23724
23718
|
}, _this, onShow, onHide);
|
|
23725
23719
|
}
|
|
23726
23720
|
setTimeout(function () {
|
|
23727
|
-
_this.
|
|
23721
|
+
_this.CWNo.createNewTooltip();
|
|
23728
23722
|
}, ui_config.delay);
|
|
23729
23723
|
});
|
|
23730
|
-
_defineProperty(this, "
|
|
23724
|
+
_defineProperty(this, "dcmY", function (ui_config, duration, uuid, name) {
|
|
23731
23725
|
var terminationConfig = {};
|
|
23732
23726
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
23733
23727
|
terminationConfig["duration"] = duration;
|
|
@@ -23751,7 +23745,7 @@
|
|
|
23751
23745
|
var _window27, _window27$updateFlag, _window28;
|
|
23752
23746
|
_this.isShowingAction = false;
|
|
23753
23747
|
_this.currentAction = null;
|
|
23754
|
-
_this.
|
|
23748
|
+
_this.CWNo = null;
|
|
23755
23749
|
(_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);
|
|
23756
23750
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
23757
23751
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -23764,8 +23758,8 @@
|
|
|
23764
23758
|
_this._currentCoachmark.createNewCoachMark();
|
|
23765
23759
|
});
|
|
23766
23760
|
_defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
|
|
23767
|
-
if (_this.
|
|
23768
|
-
_this.
|
|
23761
|
+
if (_this.CWNo) {
|
|
23762
|
+
_this.CWNo.updateElementPositionOnScroll(top, left, height, width);
|
|
23769
23763
|
}
|
|
23770
23764
|
});
|
|
23771
23765
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -23902,10 +23896,10 @@
|
|
|
23902
23896
|
});
|
|
23903
23897
|
_defineProperty(this, "showPlaceHolder", function () {
|
|
23904
23898
|
var _window37;
|
|
23905
|
-
if (_this.
|
|
23899
|
+
if (_this.TXjN) {
|
|
23906
23900
|
return;
|
|
23907
23901
|
}
|
|
23908
|
-
_this.
|
|
23902
|
+
_this.TXjN = true;
|
|
23909
23903
|
var ele = document.createElement("div");
|
|
23910
23904
|
ele.innerHTML = "place your immersive card here";
|
|
23911
23905
|
ele.style.backgroundColor = "#f5f5f5";
|