apxor-rtm-ui 0.5.6 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apxor.rtm.js.bak +608 -289
- package/dist/apxor.rtm.min.js +5 -5
- package/package.json +1 -1
package/dist/apxor.rtm.js.bak
CHANGED
|
@@ -4,6 +4,54 @@
|
|
|
4
4
|
(global = global || self, global['apxor-rtm'] = factory());
|
|
5
5
|
}(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
|
+
function _iterableToArrayLimit(r, l) {
|
|
8
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (null != t) {
|
|
10
|
+
var e,
|
|
11
|
+
n,
|
|
12
|
+
i,
|
|
13
|
+
u,
|
|
14
|
+
a = [],
|
|
15
|
+
f = !0,
|
|
16
|
+
o = !1;
|
|
17
|
+
try {
|
|
18
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
19
|
+
if (Object(t) !== t) return;
|
|
20
|
+
f = !1;
|
|
21
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
22
|
+
} catch (r) {
|
|
23
|
+
o = !0, n = r;
|
|
24
|
+
} finally {
|
|
25
|
+
try {
|
|
26
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
27
|
+
} finally {
|
|
28
|
+
if (o) throw n;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return a;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function ownKeys(e, r) {
|
|
35
|
+
var t = Object.keys(e);
|
|
36
|
+
if (Object.getOwnPropertySymbols) {
|
|
37
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
38
|
+
r && (o = o.filter(function (r) {
|
|
39
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
40
|
+
})), t.push.apply(t, o);
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function _objectSpread2(e) {
|
|
45
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
46
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
47
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
48
|
+
_defineProperty(e, r, t[r]);
|
|
49
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
50
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return e;
|
|
54
|
+
}
|
|
7
55
|
function _typeof(o) {
|
|
8
56
|
"@babel/helpers - typeof";
|
|
9
57
|
|
|
@@ -117,12 +165,18 @@
|
|
|
117
165
|
return _possibleConstructorReturn(this, result);
|
|
118
166
|
};
|
|
119
167
|
}
|
|
168
|
+
function _slicedToArray(arr, i) {
|
|
169
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
170
|
+
}
|
|
120
171
|
function _toConsumableArray(arr) {
|
|
121
172
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
122
173
|
}
|
|
123
174
|
function _arrayWithoutHoles(arr) {
|
|
124
175
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
125
176
|
}
|
|
177
|
+
function _arrayWithHoles(arr) {
|
|
178
|
+
if (Array.isArray(arr)) return arr;
|
|
179
|
+
}
|
|
126
180
|
function _iterableToArray(iter) {
|
|
127
181
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
128
182
|
}
|
|
@@ -142,6 +196,9 @@
|
|
|
142
196
|
function _nonIterableSpread() {
|
|
143
197
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
144
198
|
}
|
|
199
|
+
function _nonIterableRest() {
|
|
200
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
201
|
+
}
|
|
145
202
|
function _toPrimitive(input, hint) {
|
|
146
203
|
if (typeof input !== "object" || input === null) return input;
|
|
147
204
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -222,7 +279,7 @@
|
|
|
222
279
|
};
|
|
223
280
|
return _extends.apply(this, arguments);
|
|
224
281
|
}
|
|
225
|
-
function _objectSpread2(target) {
|
|
282
|
+
function _objectSpread2$1(target) {
|
|
226
283
|
for (var i = 1; i < arguments.length; i++) {
|
|
227
284
|
if (i % 2) {
|
|
228
285
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -279,13 +336,13 @@
|
|
|
279
336
|
}
|
|
280
337
|
return _assertThisInitialized$1(self);
|
|
281
338
|
}
|
|
282
|
-
function _slicedToArray(arr, i) {
|
|
283
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
339
|
+
function _slicedToArray$1(arr, i) {
|
|
340
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
|
|
284
341
|
}
|
|
285
|
-
function _arrayWithHoles(arr) {
|
|
342
|
+
function _arrayWithHoles$1(arr) {
|
|
286
343
|
if (Array.isArray(arr)) return arr;
|
|
287
344
|
}
|
|
288
|
-
function _iterableToArrayLimit(arr, i) {
|
|
345
|
+
function _iterableToArrayLimit$1(arr, i) {
|
|
289
346
|
var _arr = [];
|
|
290
347
|
var _n = true;
|
|
291
348
|
var _d = false;
|
|
@@ -307,7 +364,7 @@
|
|
|
307
364
|
}
|
|
308
365
|
return _arr;
|
|
309
366
|
}
|
|
310
|
-
function _nonIterableRest() {
|
|
367
|
+
function _nonIterableRest$1() {
|
|
311
368
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
312
369
|
}
|
|
313
370
|
|
|
@@ -4336,7 +4393,7 @@
|
|
|
4336
4393
|
*/
|
|
4337
4394
|
|
|
4338
4395
|
function _makeCenteredTippy() {
|
|
4339
|
-
var tippyOptions = _objectSpread2({
|
|
4396
|
+
var tippyOptions = _objectSpread2$1({
|
|
4340
4397
|
content: this.el,
|
|
4341
4398
|
placement: "top"
|
|
4342
4399
|
}, this.options.tippyOptions);
|
|
@@ -4487,7 +4544,7 @@
|
|
|
4487
4544
|
}
|
|
4488
4545
|
if (cfg.events) {
|
|
4489
4546
|
Object.entries(cfg.events).forEach(function (_ref2) {
|
|
4490
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
4547
|
+
var _ref3 = _slicedToArray$1(_ref2, 2),
|
|
4491
4548
|
event = _ref3[0],
|
|
4492
4549
|
handler = _ref3[1];
|
|
4493
4550
|
if (isString(handler)) {
|
|
@@ -5073,7 +5130,7 @@
|
|
|
5073
5130
|
var RIGHT_ARROW = 39; // Get all elements that are focusable
|
|
5074
5131
|
|
|
5075
5132
|
var focusableElements = element.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]');
|
|
5076
|
-
var _focusableElements = _slicedToArray(focusableElements, 1),
|
|
5133
|
+
var _focusableElements = _slicedToArray$1(focusableElements, 1),
|
|
5077
5134
|
firstFocusableElement = _focusableElements[0];
|
|
5078
5135
|
var lastFocusableElement = focusableElements[focusableElements.length - 1];
|
|
5079
5136
|
element.addEventListener("keydown", function (e) {
|
|
@@ -5269,7 +5326,7 @@
|
|
|
5269
5326
|
this.id = this.options.id || "step-".concat(uniqueId());
|
|
5270
5327
|
if (when) {
|
|
5271
5328
|
Object.entries(when).forEach(function (_ref) {
|
|
5272
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
5329
|
+
var _ref2 = _slicedToArray$1(_ref, 2),
|
|
5273
5330
|
event = _ref2[0],
|
|
5274
5331
|
handler = _ref2[1];
|
|
5275
5332
|
_this4.on(event, handler, _this4);
|
|
@@ -5572,7 +5629,7 @@
|
|
|
5572
5629
|
|
|
5573
5630
|
function getElementFromString(element) {
|
|
5574
5631
|
var _element$split = element.split(" "),
|
|
5575
|
-
_element$split2 = _slicedToArray(_element$split, 1),
|
|
5632
|
+
_element$split2 = _slicedToArray$1(_element$split, 1),
|
|
5576
5633
|
selector = _element$split2[0];
|
|
5577
5634
|
return document.querySelector(selector);
|
|
5578
5635
|
}
|
|
@@ -6339,6 +6396,14 @@
|
|
|
6339
6396
|
BOTTOM_CENTER: "bottom-center",
|
|
6340
6397
|
CENTER: "center"
|
|
6341
6398
|
};
|
|
6399
|
+
var imgWrapperStyles = {
|
|
6400
|
+
"margin-left": "marginLeft",
|
|
6401
|
+
"margin-right": "marginRight",
|
|
6402
|
+
"margin-top": "marginTop",
|
|
6403
|
+
"margin-bottom": "marginBottom",
|
|
6404
|
+
"align-self": "alignSelf",
|
|
6405
|
+
width: "width"
|
|
6406
|
+
};
|
|
6342
6407
|
var DIRECTION = {
|
|
6343
6408
|
HORIZONTAL: "horizontal",
|
|
6344
6409
|
VERTICAL: "vertical"
|
|
@@ -7296,6 +7361,45 @@
|
|
|
7296
7361
|
return "rgb(" + r + ", " + g + ", " + b + ")";
|
|
7297
7362
|
}
|
|
7298
7363
|
};
|
|
7364
|
+
function parseCSS(cssString) {
|
|
7365
|
+
var styleObject = {};
|
|
7366
|
+
|
|
7367
|
+
// Match each CSS rule using regular expression
|
|
7368
|
+
var cssRules = cssString.match(/([^\s]+)\s*:\s*([^;]+);/g);
|
|
7369
|
+
if (cssRules) {
|
|
7370
|
+
// Iterate through matched CSS rules
|
|
7371
|
+
cssRules.forEach(function (rule) {
|
|
7372
|
+
// Split each rule into property and value
|
|
7373
|
+
var _rule$split$map = rule.split(":").map(function (part) {
|
|
7374
|
+
return part.trim();
|
|
7375
|
+
}),
|
|
7376
|
+
_rule$split$map2 = _slicedToArray(_rule$split$map, 2),
|
|
7377
|
+
property = _rule$split$map2[0],
|
|
7378
|
+
value = _rule$split$map2[1];
|
|
7379
|
+
if (property && value) {
|
|
7380
|
+
styleObject[property] = value.slice(0, -1);
|
|
7381
|
+
}
|
|
7382
|
+
});
|
|
7383
|
+
}
|
|
7384
|
+
return styleObject;
|
|
7385
|
+
}
|
|
7386
|
+
function objectToCSS(styleObject) {
|
|
7387
|
+
var cssString = "";
|
|
7388
|
+
Object.entries(styleObject).forEach(function (_ref2) {
|
|
7389
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
7390
|
+
property = _ref3[0],
|
|
7391
|
+
value = _ref3[1];
|
|
7392
|
+
cssString += "".concat(property, ": ").concat(value, ";");
|
|
7393
|
+
});
|
|
7394
|
+
return cssString;
|
|
7395
|
+
}
|
|
7396
|
+
function removeKeys(obj, keysToRemove) {
|
|
7397
|
+
var newObj = _objectSpread2({}, obj);
|
|
7398
|
+
keysToRemove.forEach(function (key) {
|
|
7399
|
+
delete newObj[key];
|
|
7400
|
+
});
|
|
7401
|
+
return newObj;
|
|
7402
|
+
}
|
|
7299
7403
|
|
|
7300
7404
|
/**
|
|
7301
7405
|
* @function getPIPSVG
|
|
@@ -7570,20 +7674,20 @@
|
|
|
7570
7674
|
* @param {string} type - Title or Description type
|
|
7571
7675
|
* @returns
|
|
7572
7676
|
*/
|
|
7573
|
-
var createTextElement = function createTextElement(
|
|
7574
|
-
var
|
|
7575
|
-
color =
|
|
7576
|
-
|
|
7577
|
-
font_family =
|
|
7578
|
-
|
|
7579
|
-
size =
|
|
7580
|
-
|
|
7581
|
-
style =
|
|
7582
|
-
text =
|
|
7583
|
-
segments =
|
|
7584
|
-
quote =
|
|
7585
|
-
|
|
7586
|
-
link_config =
|
|
7677
|
+
var createTextElement = function createTextElement(_ref4, currentId) {
|
|
7678
|
+
var _ref4$color = _ref4.color,
|
|
7679
|
+
color = _ref4$color === void 0 ? "#000" : _ref4$color,
|
|
7680
|
+
_ref4$font_family = _ref4.font_family,
|
|
7681
|
+
font_family = _ref4$font_family === void 0 ? "cursive" : _ref4$font_family,
|
|
7682
|
+
_ref4$size = _ref4.size,
|
|
7683
|
+
size = _ref4$size === void 0 ? 14 : _ref4$size,
|
|
7684
|
+
_ref4$style = _ref4.style,
|
|
7685
|
+
style = _ref4$style === void 0 ? "bold" : _ref4$style,
|
|
7686
|
+
text = _ref4.text,
|
|
7687
|
+
segments = _ref4.segments,
|
|
7688
|
+
quote = _ref4.quote,
|
|
7689
|
+
_ref4$link_config = _ref4.link_config,
|
|
7690
|
+
link_config = _ref4$link_config === void 0 ? [] : _ref4$link_config;
|
|
7587
7691
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "desc";
|
|
7588
7692
|
var fontMultiplier = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
7589
7693
|
size = size * fontMultiplier;
|
|
@@ -11556,9 +11660,13 @@
|
|
|
11556
11660
|
var _this = this,
|
|
11557
11661
|
_config$termination;
|
|
11558
11662
|
_classCallCheck(this, TemplateContent);
|
|
11559
|
-
_defineProperty(this, "
|
|
11560
|
-
var element = _this.
|
|
11663
|
+
_defineProperty(this, "hJkH", function () {
|
|
11664
|
+
var element = _this.jtyP(_this.layout);
|
|
11561
11665
|
//document.body.appendChild(element);
|
|
11666
|
+
var tooltipStyles = document.createElement("style");
|
|
11667
|
+
tooltipStyles.innerHTML = _this.initialStyles;
|
|
11668
|
+
tooltipStyles.setAttribute("apx-tooltip-styles", "");
|
|
11669
|
+
document.head.appendChild(tooltipStyles);
|
|
11562
11670
|
var styleElement = document.createElement("style");
|
|
11563
11671
|
styleElement.innerHTML = _this.styleContent;
|
|
11564
11672
|
document.head.appendChild(styleElement);
|
|
@@ -11569,7 +11677,7 @@
|
|
|
11569
11677
|
}
|
|
11570
11678
|
return element;
|
|
11571
11679
|
});
|
|
11572
|
-
_defineProperty(this, "
|
|
11680
|
+
_defineProperty(this, "jtyP", function (config) {
|
|
11573
11681
|
var _window$Apxor;
|
|
11574
11682
|
var element;
|
|
11575
11683
|
switch (config.type) {
|
|
@@ -11588,20 +11696,20 @@
|
|
|
11588
11696
|
if (((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.platform) === "ios") {
|
|
11589
11697
|
element.playsInline = true;
|
|
11590
11698
|
}
|
|
11591
|
-
if (config.source) {
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
}
|
|
11598
|
-
if (config.track) {
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
}
|
|
11699
|
+
// if (config.source) {
|
|
11700
|
+
// let sourceElement = document.createElement("source");
|
|
11701
|
+
// for (let prop in config.source) {
|
|
11702
|
+
// sourceElement[prop] = config.source[prop];
|
|
11703
|
+
// }
|
|
11704
|
+
// element.appendChild(sourceElement);
|
|
11705
|
+
// }
|
|
11706
|
+
// if (config.track) {
|
|
11707
|
+
// let trackElement = document.createElement("track");
|
|
11708
|
+
// for (let prop in config.track) {
|
|
11709
|
+
// trackElement[prop] = config.track[prop];
|
|
11710
|
+
// }
|
|
11711
|
+
// element.appendChild(trackElement);
|
|
11712
|
+
// }
|
|
11605
11713
|
break;
|
|
11606
11714
|
case "svg":
|
|
11607
11715
|
element = document.createElement("span");
|
|
@@ -11610,38 +11718,58 @@
|
|
|
11610
11718
|
element = document.createElement(config.type);
|
|
11611
11719
|
}
|
|
11612
11720
|
if (config.properties) {
|
|
11613
|
-
for (var
|
|
11614
|
-
|
|
11721
|
+
for (var prop in config.properties) {
|
|
11722
|
+
if (config.type === "video" && prop === "source") {
|
|
11723
|
+
var sourceElement = document.createElement("source");
|
|
11724
|
+
for (var srcprop in (_config$properties = config.properties) === null || _config$properties === void 0 ? void 0 : _config$properties[prop]) {
|
|
11725
|
+
var _config$properties, _config$properties2;
|
|
11726
|
+
sourceElement[srcprop] = (_config$properties2 = config.properties) === null || _config$properties2 === void 0 || (_config$properties2 = _config$properties2[prop]) === null || _config$properties2 === void 0 ? void 0 : _config$properties2[srcprop];
|
|
11727
|
+
}
|
|
11728
|
+
sourceElement["type"] = "video/mp4";
|
|
11729
|
+
element.appendChild(sourceElement);
|
|
11730
|
+
continue;
|
|
11731
|
+
}
|
|
11732
|
+
element[prop] = config.properties[prop];
|
|
11615
11733
|
}
|
|
11616
11734
|
}
|
|
11735
|
+
element.classList.add(config._id);
|
|
11736
|
+
if (config.css) {
|
|
11737
|
+
var styles = ".".concat(config._id, " {\n ").concat(config.css, "\n }\n ");
|
|
11738
|
+
_this.initialStyles += styles;
|
|
11739
|
+
}
|
|
11617
11740
|
if (config.enable_actions && config.actions.length > 0) {
|
|
11618
11741
|
config.actions.forEach(function (action) {
|
|
11619
11742
|
switch (action.type) {
|
|
11620
11743
|
case "activity":
|
|
11621
11744
|
case "deeplink":
|
|
11622
11745
|
case "ir":
|
|
11623
|
-
element.onclick = function () {
|
|
11746
|
+
element.onclick = function (e) {
|
|
11747
|
+
e.stopPropagation();
|
|
11624
11748
|
window.Apxor.redirect(JSON.stringify(action));
|
|
11625
11749
|
};
|
|
11626
11750
|
break;
|
|
11627
11751
|
case "cancel":
|
|
11628
|
-
element.onclick = function () {
|
|
11752
|
+
element.onclick = function (e) {
|
|
11753
|
+
e.stopPropagation();
|
|
11629
11754
|
window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
|
|
11630
11755
|
};
|
|
11631
11756
|
break;
|
|
11632
11757
|
case "dismiss":
|
|
11633
|
-
element.onclick = function () {
|
|
11758
|
+
element.onclick = function (e) {
|
|
11759
|
+
e.stopPropagation();
|
|
11634
11760
|
window.Apxor.logActionEvent("".concat(_this.type, "_dismissed"), _this.configId, _this.name);
|
|
11635
11761
|
};
|
|
11636
11762
|
break;
|
|
11637
11763
|
case "never":
|
|
11638
|
-
element.onclick = function () {
|
|
11764
|
+
element.onclick = function (e) {
|
|
11765
|
+
e.stopPropagation();
|
|
11639
11766
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
11640
11767
|
window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
|
|
11641
11768
|
};
|
|
11642
11769
|
break;
|
|
11643
11770
|
case "toggle-class":
|
|
11644
|
-
element.onclick = function () {
|
|
11771
|
+
element.onclick = function (e) {
|
|
11772
|
+
e.stopPropagation();
|
|
11645
11773
|
var elementToBeToggled = document.getElementById(action.target_id);
|
|
11646
11774
|
if (isNull(elementToBeToggled)) {
|
|
11647
11775
|
elementToBeToggled = document.querySelector(action.target_id);
|
|
@@ -11652,8 +11780,9 @@
|
|
|
11652
11780
|
};
|
|
11653
11781
|
break;
|
|
11654
11782
|
case "copy-content":
|
|
11655
|
-
element.onclick = function () {
|
|
11656
|
-
|
|
11783
|
+
element.onclick = function (e) {
|
|
11784
|
+
e.stopPropagation();
|
|
11785
|
+
var textToCopy = action === null || action === void 0 ? void 0 : action.content;
|
|
11657
11786
|
var tempInput = document.createElement("input");
|
|
11658
11787
|
tempInput.value = textToCopy;
|
|
11659
11788
|
document.body.appendChild(tempInput);
|
|
@@ -11663,12 +11792,14 @@
|
|
|
11663
11792
|
};
|
|
11664
11793
|
break;
|
|
11665
11794
|
case "log-app-event":
|
|
11666
|
-
element.onclick = function () {
|
|
11795
|
+
element.onclick = function (e) {
|
|
11796
|
+
e.stopPropagation();
|
|
11667
11797
|
window.Apxor.logAppEvent(action === null || action === void 0 ? void 0 : action.event_name);
|
|
11668
11798
|
};
|
|
11669
11799
|
break;
|
|
11670
11800
|
case "log-client-event":
|
|
11671
|
-
element.onclick = function () {
|
|
11801
|
+
element.onclick = function (e) {
|
|
11802
|
+
e.stopPropagation();
|
|
11672
11803
|
window.Apxor.logClientEvent(action === null || action === void 0 ? void 0 : action.event_name);
|
|
11673
11804
|
};
|
|
11674
11805
|
}
|
|
@@ -11677,10 +11808,10 @@
|
|
|
11677
11808
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
11678
11809
|
element.style.position = "relative";
|
|
11679
11810
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
11680
|
-
var childElement = _this.
|
|
11811
|
+
var childElement = _this.jtyP(childConfig);
|
|
11681
11812
|
childElement.style.position = "absolute";
|
|
11682
|
-
for (var
|
|
11683
|
-
childElement.style[
|
|
11813
|
+
for (var _prop in childConfig.offset) {
|
|
11814
|
+
childElement.style[_prop] = childConfig.offset[_prop];
|
|
11684
11815
|
}
|
|
11685
11816
|
element.appendChild(childElement);
|
|
11686
11817
|
});
|
|
@@ -11695,19 +11826,25 @@
|
|
|
11695
11826
|
// }
|
|
11696
11827
|
|
|
11697
11828
|
config.children.forEach(function (childConfig) {
|
|
11698
|
-
var childElement = _this.
|
|
11829
|
+
var childElement = _this.jtyP(childConfig);
|
|
11699
11830
|
element.appendChild(childElement);
|
|
11700
11831
|
});
|
|
11701
11832
|
}
|
|
11833
|
+
if (config.type === "img") {
|
|
11834
|
+
var imgWrapper = document.createElement("div");
|
|
11835
|
+
imgWrapper.appendChild(element);
|
|
11836
|
+
return imgWrapper;
|
|
11837
|
+
}
|
|
11702
11838
|
return element;
|
|
11703
11839
|
});
|
|
11704
11840
|
this.configId = configId;
|
|
11705
11841
|
this.name = name;
|
|
11706
11842
|
this.layout = _config.layout;
|
|
11707
|
-
this.styleContent = _config.
|
|
11843
|
+
this.styleContent = _config.css;
|
|
11708
11844
|
this.termination = (_config$termination = _config.termination) !== null && _config$termination !== void 0 ? _config$termination : [];
|
|
11709
11845
|
this.script = _config.script;
|
|
11710
11846
|
this.type = type;
|
|
11847
|
+
this.initialStyles = "";
|
|
11711
11848
|
});
|
|
11712
11849
|
|
|
11713
11850
|
var svgNS$1 = "http://www.w3.org/2000/svg";
|
|
@@ -12191,7 +12328,7 @@
|
|
|
12191
12328
|
|
|
12192
12329
|
var NewInLineTooltip = /*#__PURE__*/function () {
|
|
12193
12330
|
function NewInLineTooltip(config, terminationConfig, messageConfig, rtmInstance, showCallback, hideCallback) {
|
|
12194
|
-
var _config$set_font_to_s;
|
|
12331
|
+
var _config$set_font_to_s, _config$dimensions, _config$dimensions2, _config$dimensions3, _config$dimensions4;
|
|
12195
12332
|
_classCallCheck(this, NewInLineTooltip);
|
|
12196
12333
|
this.uiConfig = config;
|
|
12197
12334
|
this.messageConfig = messageConfig;
|
|
@@ -12244,16 +12381,12 @@
|
|
|
12244
12381
|
this.updateSkid = null;
|
|
12245
12382
|
this.initial_data_placement = this.position.position;
|
|
12246
12383
|
this.recent_placement = this.position.position;
|
|
12247
|
-
this.
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
this.targetElementLeft = config === null || config === void 0 || (_config$dimensions2 = config.dimensions) === null || _config$dimensions2 === void 0 ? void 0 : _config$dimensions2.left;
|
|
12254
|
-
this.targetElementHeight = config === null || config === void 0 || (_config$dimensions3 = config.dimensions) === null || _config$dimensions3 === void 0 ? void 0 : _config$dimensions3.height;
|
|
12255
|
-
this.targetElementWidth = config === null || config === void 0 || (_config$dimensions4 = config.dimensions) === null || _config$dimensions4 === void 0 ? void 0 : _config$dimensions4.width;
|
|
12256
|
-
}
|
|
12384
|
+
this.targetElementTop = config === null || config === void 0 || (_config$dimensions = config.dimensions) === null || _config$dimensions === void 0 ? void 0 : _config$dimensions.top;
|
|
12385
|
+
// this.right = config.dimensions.right;
|
|
12386
|
+
// this.bottom = config.dimensions.bottom;
|
|
12387
|
+
this.targetElementLeft = config === null || config === void 0 || (_config$dimensions2 = config.dimensions) === null || _config$dimensions2 === void 0 ? void 0 : _config$dimensions2.left;
|
|
12388
|
+
this.targetElementHeight = config === null || config === void 0 || (_config$dimensions3 = config.dimensions) === null || _config$dimensions3 === void 0 ? void 0 : _config$dimensions3.height;
|
|
12389
|
+
this.targetElementWidth = config === null || config === void 0 || (_config$dimensions4 = config.dimensions) === null || _config$dimensions4 === void 0 ? void 0 : _config$dimensions4.width;
|
|
12257
12390
|
}
|
|
12258
12391
|
_createClass(NewInLineTooltip, [{
|
|
12259
12392
|
key: "createNewTooltip",
|
|
@@ -12284,11 +12417,7 @@
|
|
|
12284
12417
|
var targetValidCallback = function targetValidCallback() {
|
|
12285
12418
|
//Once the target is found then scroll into it.
|
|
12286
12419
|
// this._scrollIntoTargetIfNeeded(targetReachedCallback);
|
|
12287
|
-
|
|
12288
|
-
targetReachedCallback();
|
|
12289
|
-
} else {
|
|
12290
|
-
_this._scrollIntoTargetIfNeeded(targetReachedCallback);
|
|
12291
|
-
}
|
|
12420
|
+
targetReachedCallback();
|
|
12292
12421
|
};
|
|
12293
12422
|
|
|
12294
12423
|
// Set the target for InLine tooltip
|
|
@@ -12301,15 +12430,13 @@
|
|
|
12301
12430
|
}, {
|
|
12302
12431
|
key: "updateElementPositionOnScroll",
|
|
12303
12432
|
value: function updateElementPositionOnScroll(top, left, height, width) {
|
|
12433
|
+
var _window;
|
|
12304
12434
|
setAttributes$1(this.targetElement, {
|
|
12305
12435
|
style: "position: absolute; top: ".concat(top, "px; left: ").concat(left, "px; height: ").concat(height, "px; width: ").concat(width, "px")
|
|
12306
12436
|
});
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
(_window = window) === null || _window === void 0 || (_window = _window.ApxorWebView) === null || _window === void 0 || _window.setInlineRect(tippyRoot.left, tippyRoot.top, tippyRoot.width, tippyRoot.height);
|
|
12311
|
-
window.dispatchEvent(new CustomEvent("updateMaskOpeningPositionOnScroll"));
|
|
12312
|
-
}
|
|
12437
|
+
var tippyRoot = document.querySelector("[data-tippy-root]").getBoundingClientRect();
|
|
12438
|
+
(_window = window) === null || _window === void 0 || (_window = _window.ApxorWebView) === null || _window === void 0 || _window.setInlineRect(tippyRoot.left, tippyRoot.top, tippyRoot.width, tippyRoot.height);
|
|
12439
|
+
window.dispatchEvent(new CustomEvent("updateMaskOpeningPositionOnScroll"));
|
|
12313
12440
|
}
|
|
12314
12441
|
}, {
|
|
12315
12442
|
key: "_setInlineStyles",
|
|
@@ -12462,17 +12589,13 @@
|
|
|
12462
12589
|
_this2._resetRTMAction();
|
|
12463
12590
|
}
|
|
12464
12591
|
};
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
targetValidCallback();
|
|
12473
|
-
} else {
|
|
12474
|
-
this._findTargetElement(targetFoundCallback);
|
|
12475
|
-
}
|
|
12592
|
+
this.targetElement = document.createElement("div");
|
|
12593
|
+
setAttributes$1(this.targetElement, {
|
|
12594
|
+
id: "apx_targetElement_".concat(this.configId),
|
|
12595
|
+
style: "position: absolute; top: ".concat(this.targetElementTop, "px; left: ").concat(this.targetElementLeft, "px; height: ").concat(this.targetElementHeight, "px; width: ").concat(this.targetElementWidth, "px")
|
|
12596
|
+
});
|
|
12597
|
+
document.body.appendChild(this.targetElement);
|
|
12598
|
+
targetFoundCallback();
|
|
12476
12599
|
}
|
|
12477
12600
|
}, {
|
|
12478
12601
|
key: "_targetClickCallback",
|
|
@@ -12606,7 +12729,7 @@
|
|
|
12606
12729
|
}, {
|
|
12607
12730
|
key: "_setInLineContent",
|
|
12608
12731
|
value: function _setInLineContent() {
|
|
12609
|
-
this.inLineContainer = this.templateContent.
|
|
12732
|
+
this.inLineContainer = this.templateContent.hJkH();
|
|
12610
12733
|
}
|
|
12611
12734
|
}, {
|
|
12612
12735
|
key: "_setObservors",
|
|
@@ -12649,7 +12772,7 @@
|
|
|
12649
12772
|
},
|
|
12650
12773
|
arrow: this.enable_arrow,
|
|
12651
12774
|
appendTo: function appendTo() {
|
|
12652
|
-
return _this6.
|
|
12775
|
+
return _this6.targetElement;
|
|
12653
12776
|
},
|
|
12654
12777
|
content: this.inLineContainer,
|
|
12655
12778
|
duration: 100,
|
|
@@ -12691,6 +12814,7 @@
|
|
|
12691
12814
|
instance.popperInstance.update();
|
|
12692
12815
|
},
|
|
12693
12816
|
onShown: function onShown() {
|
|
12817
|
+
var _window3;
|
|
12694
12818
|
// const tippyRoot = document.querySelector("[data-tippy-root]");
|
|
12695
12819
|
// const tippyBox = document.querySelector(".tippy-box");
|
|
12696
12820
|
// const placement = tippyBox.getAttribute("data-placement");
|
|
@@ -12726,11 +12850,8 @@
|
|
|
12726
12850
|
_this6.updateSkid();
|
|
12727
12851
|
_this6._showTippy();
|
|
12728
12852
|
window.addEventListener("scroll", _this6.updateSkid);
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
var tippyRoot = document.querySelector("[data-tippy-root]").getBoundingClientRect();
|
|
12732
|
-
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorWebView) === null || _window3 === void 0 || _window3.setInlineRect(tippyRoot.left, tippyRoot.top, tippyRoot.width, tippyRoot.height);
|
|
12733
|
-
}
|
|
12853
|
+
var tippyRoot = document.querySelector("[data-tippy-root]").getBoundingClientRect();
|
|
12854
|
+
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorWebView) === null || _window3 === void 0 || _window3.setInlineRect(tippyRoot.left, tippyRoot.top, tippyRoot.width, tippyRoot.height);
|
|
12734
12855
|
},
|
|
12735
12856
|
placement: this.position.position,
|
|
12736
12857
|
popperOptions: {
|
|
@@ -14156,7 +14277,7 @@
|
|
|
14156
14277
|
* @description Creates the styles for Marketing message.
|
|
14157
14278
|
* @returns {string} css styles
|
|
14158
14279
|
*/
|
|
14159
|
-
_defineProperty(this, "
|
|
14280
|
+
_defineProperty(this, "RiAn", function () {
|
|
14160
14281
|
if (!_this.enable_marketing) {
|
|
14161
14282
|
return "";
|
|
14162
14283
|
}
|
|
@@ -14175,7 +14296,7 @@
|
|
|
14175
14296
|
* @private
|
|
14176
14297
|
* @description Sets the marketing content at the end of the Inline
|
|
14177
14298
|
*/
|
|
14178
|
-
_defineProperty(this, "
|
|
14299
|
+
_defineProperty(this, "YrUN", function () {
|
|
14179
14300
|
if (_this.enable_marketing) {
|
|
14180
14301
|
var marketingContainer = document.createElement("div");
|
|
14181
14302
|
marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
|
|
@@ -14777,7 +14898,7 @@
|
|
|
14777
14898
|
if (apxor_tooltip_styles) {
|
|
14778
14899
|
return;
|
|
14779
14900
|
}
|
|
14780
|
-
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.
|
|
14901
|
+
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.RiAn(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
14781
14902
|
var styleNode = document.createElement("style");
|
|
14782
14903
|
styleNode.setAttribute("apx-tooltip-styles", "");
|
|
14783
14904
|
styleNode.innerHTML = styles;
|
|
@@ -15587,7 +15708,7 @@
|
|
|
15587
15708
|
this._setCloseButton();
|
|
15588
15709
|
|
|
15589
15710
|
//Set the Marketing content
|
|
15590
|
-
this.
|
|
15711
|
+
this.YrUN();
|
|
15591
15712
|
}
|
|
15592
15713
|
|
|
15593
15714
|
/**
|
|
@@ -18432,7 +18553,7 @@
|
|
|
18432
18553
|
}, {
|
|
18433
18554
|
key: "_setInAppModalContent",
|
|
18434
18555
|
value: function _setInAppModalContent() {
|
|
18435
|
-
this.inAppContainer = this.templateContent.
|
|
18556
|
+
this.inAppContainer = this.templateContent.hJkH();
|
|
18436
18557
|
this.inAppContainer.style.zIndex = 99999;
|
|
18437
18558
|
this.overlayElement.appendChild(this.inAppContainer);
|
|
18438
18559
|
}
|
|
@@ -18580,7 +18701,7 @@
|
|
|
18580
18701
|
* @description Creates the styles for Marketing message.
|
|
18581
18702
|
* @returns {string} css styles
|
|
18582
18703
|
*/
|
|
18583
|
-
_defineProperty(this, "
|
|
18704
|
+
_defineProperty(this, "RiAn", function () {
|
|
18584
18705
|
if (!_this.enable_marketing) {
|
|
18585
18706
|
return "";
|
|
18586
18707
|
}
|
|
@@ -18626,7 +18747,7 @@
|
|
|
18626
18747
|
* @private
|
|
18627
18748
|
* @description Get the response for Form content in the InApp modal.
|
|
18628
18749
|
*/
|
|
18629
|
-
_defineProperty(this, "
|
|
18750
|
+
_defineProperty(this, "Ghij", function (form_elements) {
|
|
18630
18751
|
var obj = {};
|
|
18631
18752
|
var callback = "";
|
|
18632
18753
|
form_elements.forEach(function (element) {
|
|
@@ -18666,7 +18787,7 @@
|
|
|
18666
18787
|
* @private
|
|
18667
18788
|
* @description Sets the marketing content at the end of the InApp
|
|
18668
18789
|
*/
|
|
18669
|
-
_defineProperty(this, "
|
|
18790
|
+
_defineProperty(this, "YrUN", function () {
|
|
18670
18791
|
if (_this.enable_marketing) {
|
|
18671
18792
|
var marketingContainer = document.createElement("div");
|
|
18672
18793
|
marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
|
|
@@ -18919,7 +19040,7 @@
|
|
|
18919
19040
|
}, {
|
|
18920
19041
|
key: "_setStyles",
|
|
18921
19042
|
value: function _setStyles() {
|
|
18922
|
-
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.
|
|
19043
|
+
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.RiAn(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
|
|
18923
19044
|
var styleNode = document.createElement("style");
|
|
18924
19045
|
styleNode.setAttribute("id", "apxor-style-" + this.configId);
|
|
18925
19046
|
styleNode.innerHTML = styles;
|
|
@@ -19396,7 +19517,7 @@
|
|
|
19396
19517
|
this._setCloseButton();
|
|
19397
19518
|
|
|
19398
19519
|
//Set the Marketing content
|
|
19399
|
-
this.
|
|
19520
|
+
this.YrUN();
|
|
19400
19521
|
}
|
|
19401
19522
|
|
|
19402
19523
|
/**
|
|
@@ -19601,7 +19722,7 @@
|
|
|
19601
19722
|
var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
|
|
19602
19723
|
form.addEventListener("submit", function (e) {
|
|
19603
19724
|
e.preventDefault();
|
|
19604
|
-
var _this4$generateRespon = _this4.
|
|
19725
|
+
var _this4$generateRespon = _this4.Ghij(_this4.form.elements),
|
|
19605
19726
|
obj = _this4$generateRespon.obj,
|
|
19606
19727
|
callback = _this4$generateRespon.callback;
|
|
19607
19728
|
var evalString = "(obj)=>" + callback + "(obj)";
|
|
@@ -19914,7 +20035,7 @@
|
|
|
19914
20035
|
* @function showVideoInApp
|
|
19915
20036
|
* @description Shows the video InApp with the configured mode.
|
|
19916
20037
|
*/
|
|
19917
|
-
_defineProperty(this, "
|
|
20038
|
+
_defineProperty(this, "showVideoInApp", function () {
|
|
19918
20039
|
_this.createPlayer();
|
|
19919
20040
|
try {
|
|
19920
20041
|
// In PIP mode, only after the video metadata is loaded, show the PIP.
|
|
@@ -19927,45 +20048,49 @@
|
|
|
19927
20048
|
video.requestPictureInPicture().then(function () {
|
|
19928
20049
|
video.play();
|
|
19929
20050
|
})["catch"](function (error) {
|
|
20051
|
+
var _window$ApxorRTM;
|
|
19930
20052
|
Logger.error("Can't show PIP:".concat(error));
|
|
19931
|
-
window.
|
|
20053
|
+
(_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_video_inapp_failed", {
|
|
19932
20054
|
campaignName: _this2.name,
|
|
19933
20055
|
id: _this2.configId,
|
|
19934
20056
|
failureReason: error
|
|
19935
|
-
})
|
|
20057
|
+
});
|
|
19936
20058
|
hideCallback();
|
|
19937
20059
|
});
|
|
19938
20060
|
};
|
|
19939
20061
|
video.onabort = function () {
|
|
20062
|
+
var _window$ApxorRTM2;
|
|
19940
20063
|
Logger.error("Can't show video: resource is not fully loaded");
|
|
19941
|
-
window.
|
|
20064
|
+
(_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 || _window$ApxorRTM2.logEvent("apx_video_inapp_failed", {
|
|
19942
20065
|
campaignName: this.name,
|
|
19943
20066
|
id: this.configId,
|
|
19944
20067
|
failureReason: "Can't show video, meta data not loaded"
|
|
19945
|
-
})
|
|
20068
|
+
});
|
|
19946
20069
|
this.hideCallback();
|
|
19947
20070
|
};
|
|
19948
20071
|
video.onstalled = function () {
|
|
20072
|
+
var _window$ApxorRTM3;
|
|
19949
20073
|
Logger.error("Can't show video: data is unexpectedly not forthcoming");
|
|
19950
|
-
window.
|
|
20074
|
+
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_video_inapp_failed", {
|
|
19951
20075
|
campaignName: this.name,
|
|
19952
20076
|
id: this.configId,
|
|
19953
20077
|
failureReason: "Can't show video, data is unexpectedly not forthcoming"
|
|
19954
|
-
})
|
|
20078
|
+
});
|
|
19955
20079
|
this.hideCallback();
|
|
19956
20080
|
};
|
|
19957
20081
|
} else {
|
|
19958
20082
|
// As the video player is hidden by default, unhide if the mode is not PIP.
|
|
19959
|
-
_this.
|
|
20083
|
+
_this.qlGO();
|
|
19960
20084
|
}
|
|
19961
20085
|
_this.showCallback();
|
|
19962
20086
|
} catch (e) {
|
|
20087
|
+
var _window$ApxorRTM4;
|
|
19963
20088
|
Logger.error("Can't show video:".concat(e));
|
|
19964
|
-
window.
|
|
20089
|
+
(_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_video_inapp_failed", {
|
|
19965
20090
|
campaignName: _this.name,
|
|
19966
20091
|
id: _this.configId,
|
|
19967
20092
|
failureReason: e
|
|
19968
|
-
})
|
|
20093
|
+
});
|
|
19969
20094
|
_this.hideCallback();
|
|
19970
20095
|
}
|
|
19971
20096
|
});
|
|
@@ -19976,7 +20101,7 @@
|
|
|
19976
20101
|
* For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
|
|
19977
20102
|
* For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
|
|
19978
20103
|
*/
|
|
19979
|
-
_defineProperty(this, "
|
|
20104
|
+
_defineProperty(this, "Vjvf", function () {
|
|
19980
20105
|
var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
|
|
19981
20106
|
width = _getHeightWidthFromRe.width,
|
|
19982
20107
|
height = _getHeightWidthFromRe.height;
|
|
@@ -19988,7 +20113,7 @@
|
|
|
19988
20113
|
* @private
|
|
19989
20114
|
* @description Removes the video player style element.
|
|
19990
20115
|
*/
|
|
19991
|
-
_defineProperty(this, "
|
|
20116
|
+
_defineProperty(this, "MXZq", function () {
|
|
19992
20117
|
var playerStyles = document.getElementById("apx-mpl-styles");
|
|
19993
20118
|
if (playerStyles) {
|
|
19994
20119
|
playerStyles.remove();
|
|
@@ -19999,7 +20124,7 @@
|
|
|
19999
20124
|
* @private
|
|
20000
20125
|
* @description Attach listeners on the video controls
|
|
20001
20126
|
*/
|
|
20002
|
-
_defineProperty(this, "
|
|
20127
|
+
_defineProperty(this, "SZZs", function () {
|
|
20003
20128
|
// Listener for the video end. Display the CTA's when the video ends.
|
|
20004
20129
|
_this.videoElement.addEventListener("ended", function () {
|
|
20005
20130
|
var ctaButtons = document.getElementById("apx-cta-btn");
|
|
@@ -20019,6 +20144,7 @@
|
|
|
20019
20144
|
// If the play button is clicked again, the CTA buttons should be removed.
|
|
20020
20145
|
_this.videoElement.addEventListener("play", function () {
|
|
20021
20146
|
if (!_this.inAppShown) {
|
|
20147
|
+
var _window$ApxorRTM5;
|
|
20022
20148
|
// Initialize the fields to keep the track of aditional info required for logging events.
|
|
20023
20149
|
_this.minimisedCount = 0;
|
|
20024
20150
|
_this.maximisedCount = 0;
|
|
@@ -20030,7 +20156,7 @@
|
|
|
20030
20156
|
_this.slotStartTime = 0; // to tract the start time of the minimize and maximize time slot.
|
|
20031
20157
|
_this.slotStartTimeVolumeChange = 0; // to track the start time of the volume change time slot.
|
|
20032
20158
|
|
|
20033
|
-
window.
|
|
20159
|
+
(_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("inapp_shown", {
|
|
20034
20160
|
message_name: _this.name,
|
|
20035
20161
|
visibleScreen: location.pathname,
|
|
20036
20162
|
inappType: "PIP Inapp",
|
|
@@ -20040,7 +20166,7 @@
|
|
|
20040
20166
|
videoDuration: Math.round(_this.videoElement.duration),
|
|
20041
20167
|
videoResolution: "".concat(_this.videoElement.videoWidth, "x").concat(_this.videoElement.videoHeight),
|
|
20042
20168
|
videoConfiguration: "Streaming"
|
|
20043
|
-
})
|
|
20169
|
+
});
|
|
20044
20170
|
_this.inAppShown = true;
|
|
20045
20171
|
}
|
|
20046
20172
|
if (_this.videoElement.currentTime === 0 || _this.videoElement.currentTime === _this.videoElement.duration) {
|
|
@@ -20057,13 +20183,14 @@
|
|
|
20057
20183
|
_this.videoElement.addEventListener("fullscreenchange", function () {
|
|
20058
20184
|
_this.slotEndTime = _this.videoElement.currentTime;
|
|
20059
20185
|
if (document.fullscreenElement) {
|
|
20186
|
+
var _window$ApxorRTM6;
|
|
20060
20187
|
_this.maximisedCount++;
|
|
20061
20188
|
_this.durationMinimised = Math.round(_this.slotEndTime) - Math.round(_this.slotStartTime);
|
|
20062
20189
|
if (_this.videoElement.currentTime !== _this.videoElement.duration) {
|
|
20063
20190
|
_this.totalDurationMinimised += _this.durationMinimised;
|
|
20064
20191
|
_this.durationMinimisedSlots.push("".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)));
|
|
20065
20192
|
}
|
|
20066
|
-
window.
|
|
20193
|
+
(_window$ApxorRTM6 = window.ApxorRTM) === null || _window$ApxorRTM6 === void 0 || _window$ApxorRTM6.logEvent("apx_video_inapp_maximised", {
|
|
20067
20194
|
message_name: _this.name,
|
|
20068
20195
|
durationMinimised: _this.durationMinimised,
|
|
20069
20196
|
durationSlotMinimised: "".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)),
|
|
@@ -20071,15 +20198,16 @@
|
|
|
20071
20198
|
totalDurationWatched: Math.round(_this.totalDurationMinimised),
|
|
20072
20199
|
totalDurationWatchedSlot: _this.durationMinimisedSlots,
|
|
20073
20200
|
maximisedCount: _this.maximisedCount
|
|
20074
|
-
})
|
|
20201
|
+
});
|
|
20075
20202
|
} else {
|
|
20203
|
+
var _window$ApxorRTM7;
|
|
20076
20204
|
_this.durationMaximised = Math.round(_this.slotEndTime) - Math.round(_this.slotStartTime);
|
|
20077
20205
|
_this.minimisedCount++;
|
|
20078
20206
|
if (_this.videoElement.currentTime !== _this.videoElement.duration) {
|
|
20079
20207
|
_this.totalDurationMaximised += _this.durationMaximised;
|
|
20080
20208
|
_this.durationMaximisedSlots.push("".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)));
|
|
20081
20209
|
}
|
|
20082
|
-
window.
|
|
20210
|
+
(_window$ApxorRTM7 = window.ApxorRTM) === null || _window$ApxorRTM7 === void 0 || _window$ApxorRTM7.logEvent("apx_video_inapp_minimised", {
|
|
20083
20211
|
message_name: _this.name,
|
|
20084
20212
|
durationMaximised: _this.durationMaximised,
|
|
20085
20213
|
durationSlotMaximised: "".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)),
|
|
@@ -20087,20 +20215,21 @@
|
|
|
20087
20215
|
totalDurationWatched: Math.round(_this.totalDurationMaximised),
|
|
20088
20216
|
totalDurationWatchedSlot: _this.durationMaximisedSlots,
|
|
20089
20217
|
minimisedCount: _this.minimisedCount
|
|
20090
|
-
})
|
|
20218
|
+
});
|
|
20091
20219
|
}
|
|
20092
20220
|
_this.slotStartTime = _this.videoElement.currentTime;
|
|
20093
20221
|
});
|
|
20094
20222
|
_this.videoElement.addEventListener("volumechange", function () {
|
|
20095
20223
|
if (!isNaN(_this.slotStartTimeVolumeChange)) {
|
|
20224
|
+
var _window$ApxorRTM8;
|
|
20096
20225
|
_this.volumeClickedCount++;
|
|
20097
|
-
window.
|
|
20226
|
+
(_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_volume_button_clicked", {
|
|
20098
20227
|
message_name: _this.name,
|
|
20099
20228
|
id: _this.configId,
|
|
20100
20229
|
actionPerformed: _this.videoElement.muted ? "mute" : "unmute",
|
|
20101
20230
|
totalDurationWatchedSlot: "".concat(Math.round(_this.slotStartTimeVolumeChange), "-").concat(Math.round(_this.videoElement.currentTime)),
|
|
20102
20231
|
totalDurationWatched: Math.round(_this.videoElement.currentTime) - Math.round(_this.slotStartTimeVolumeChange)
|
|
20103
|
-
})
|
|
20232
|
+
});
|
|
20104
20233
|
_this.slotStartTimeVolumeChange = _this.videoElement.currentTime;
|
|
20105
20234
|
}
|
|
20106
20235
|
});
|
|
@@ -20110,7 +20239,7 @@
|
|
|
20110
20239
|
* @private
|
|
20111
20240
|
* @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
20112
20241
|
*/
|
|
20113
|
-
_defineProperty(this, "
|
|
20242
|
+
_defineProperty(this, "ULkp", function () {
|
|
20114
20243
|
var _this$terminationConf;
|
|
20115
20244
|
if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
|
|
20116
20245
|
// On Exit of the PIP,
|
|
@@ -20150,7 +20279,7 @@
|
|
|
20150
20279
|
* @private Sets the custom controls on the video player.
|
|
20151
20280
|
* PIP and close are the custom controls that are created and positions on the video.
|
|
20152
20281
|
*/
|
|
20153
|
-
_defineProperty(this, "
|
|
20282
|
+
_defineProperty(this, "FYKO", function () {
|
|
20154
20283
|
_this.enable_close_button;
|
|
20155
20284
|
if (_this.enable_close_button) {
|
|
20156
20285
|
var closeButton = document.createElement("span");
|
|
@@ -20197,21 +20326,21 @@
|
|
|
20197
20326
|
* @function hideVideoPlayer
|
|
20198
20327
|
* @description Sets the visibility of the video player to hidden.
|
|
20199
20328
|
*/
|
|
20200
|
-
_defineProperty(this, "
|
|
20329
|
+
_defineProperty(this, "rupR", function () {
|
|
20201
20330
|
_this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
20202
20331
|
});
|
|
20203
20332
|
/**
|
|
20204
20333
|
* @function unhideVideoPlayer
|
|
20205
20334
|
* @description Unhides video player.
|
|
20206
20335
|
*/
|
|
20207
|
-
_defineProperty(this, "
|
|
20336
|
+
_defineProperty(this, "qlGO", function () {
|
|
20208
20337
|
_this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
|
|
20209
20338
|
});
|
|
20210
20339
|
/**
|
|
20211
20340
|
* @function getVideoElement
|
|
20212
20341
|
* @returns {HTMLElement} Video ekement
|
|
20213
20342
|
*/
|
|
20214
|
-
_defineProperty(this, "
|
|
20343
|
+
_defineProperty(this, "UFZT", function () {
|
|
20215
20344
|
return _this.videoElement;
|
|
20216
20345
|
});
|
|
20217
20346
|
this.videoPlayer = null;
|
|
@@ -20263,7 +20392,7 @@
|
|
|
20263
20392
|
this.videoPlayer.style.backgroundColor = this.bg_color;
|
|
20264
20393
|
|
|
20265
20394
|
// Video has a resolution, not deviating from the resolution set the height and width.
|
|
20266
|
-
this.
|
|
20395
|
+
this.Vjvf();
|
|
20267
20396
|
//Generate the styles and add them to the document head.
|
|
20268
20397
|
this._setVideoPlayerStyles();
|
|
20269
20398
|
//Set the position of the video player with in the 5 possible positions.
|
|
@@ -20271,16 +20400,16 @@
|
|
|
20271
20400
|
//Create a video element,set the source and add to the container.
|
|
20272
20401
|
this._setPlayerContent();
|
|
20273
20402
|
//Set the listeners on the video control buttons.
|
|
20274
|
-
this.
|
|
20403
|
+
this.SZZs();
|
|
20275
20404
|
//Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
|
|
20276
|
-
this.
|
|
20405
|
+
this.ULkp();
|
|
20277
20406
|
//Set the custom close and PIP controls. Not using the defaults from the html video element.
|
|
20278
20407
|
//Reason - We want to position them at the top right and left positions.
|
|
20279
|
-
this.
|
|
20408
|
+
this.FYKO();
|
|
20280
20409
|
//Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
|
|
20281
20410
|
this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
|
|
20282
20411
|
//Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
|
|
20283
|
-
this.
|
|
20412
|
+
this.rupR();
|
|
20284
20413
|
//If the auto dismiss is enabled, sets the timeout to call the InApp close.
|
|
20285
20414
|
this._setAutoTerminate();
|
|
20286
20415
|
document.body.appendChild(this.videoPlayer);
|
|
@@ -20384,6 +20513,7 @@
|
|
|
20384
20513
|
function _onClose() {
|
|
20385
20514
|
var closeButtonName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "web_minimise_x_clicked";
|
|
20386
20515
|
try {
|
|
20516
|
+
var _window$ApxorRTM10;
|
|
20387
20517
|
if (this.inAppShown) {
|
|
20388
20518
|
if (!document.fullscreenElement) {
|
|
20389
20519
|
this.totalDurationMinimised += Math.round(this.videoElement.currentTime) - Math.round(this.slotStartTime);
|
|
@@ -20394,17 +20524,18 @@
|
|
|
20394
20524
|
}
|
|
20395
20525
|
}
|
|
20396
20526
|
this.videoPlayer.remove();
|
|
20397
|
-
this.
|
|
20527
|
+
this.MXZq();
|
|
20398
20528
|
if (closeButtonName !== "auto_dismiss") {
|
|
20399
|
-
|
|
20529
|
+
var _window$ApxorRTM9;
|
|
20530
|
+
(_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
|
|
20400
20531
|
message_name: this.name,
|
|
20401
20532
|
id: this.configId,
|
|
20402
20533
|
totalDurationWatchedSlot: "0-".concat(Math.round(this.videoElement.currentTime)),
|
|
20403
20534
|
totalDurationWatched: Math.round(this.videoElement.currentTime),
|
|
20404
20535
|
closeButtonName: closeButtonName
|
|
20405
|
-
})
|
|
20536
|
+
});
|
|
20406
20537
|
}
|
|
20407
|
-
window.
|
|
20538
|
+
(_window$ApxorRTM10 = window.ApxorRTM) === null || _window$ApxorRTM10 === void 0 || _window$ApxorRTM10.logEvent("apx_inapp_dismissed", {
|
|
20408
20539
|
campaignName: this.name,
|
|
20409
20540
|
id: this.configId,
|
|
20410
20541
|
totalDurationWatched: Math.round(this.videoElement.currentTime),
|
|
@@ -20419,7 +20550,7 @@
|
|
|
20419
20550
|
inappType: "PIP Inapp",
|
|
20420
20551
|
apx_completed: this.videoElement.currentTime === this.videoElement.duration ? true : false,
|
|
20421
20552
|
apx_completion_percentage: this.videoElement.currentTime / this.videoElement.duration
|
|
20422
|
-
})
|
|
20553
|
+
});
|
|
20423
20554
|
this.hideCallback("cancel");
|
|
20424
20555
|
} catch (e) {
|
|
20425
20556
|
console.log("Error \n ".concat(e, " \n occured while closing the video"));
|
|
@@ -20442,6 +20573,7 @@
|
|
|
20442
20573
|
if (this.buttons.enable_top || this.buttons.enable_center || this.buttons.enable_bottom) {
|
|
20443
20574
|
var removeCallback = function removeCallback(isCancel, action, index) {
|
|
20444
20575
|
try {
|
|
20576
|
+
var _window$ApxorRTM11;
|
|
20445
20577
|
var button;
|
|
20446
20578
|
if (_this3.buttons.enable_top && _this3.buttons.top.length > 0) {
|
|
20447
20579
|
button = _this3.buttons.top;
|
|
@@ -20452,7 +20584,7 @@
|
|
|
20452
20584
|
if (_this3.buttons.enable_bottom && _this3.buttons.bottom.length) {
|
|
20453
20585
|
button = _this3.buttons.bottom;
|
|
20454
20586
|
}
|
|
20455
|
-
window.
|
|
20587
|
+
(_window$ApxorRTM11 = window.ApxorRTM) === null || _window$ApxorRTM11 === void 0 || _window$ApxorRTM11.logEvent("apx_video_inapp_button_clicked", {
|
|
20456
20588
|
buttonName: button.at(index).text.text,
|
|
20457
20589
|
redirection: button.at(index).action.type,
|
|
20458
20590
|
totalDurationWatched: Math.round(_this3.videoElement.currentTime),
|
|
@@ -20460,9 +20592,9 @@
|
|
|
20460
20592
|
id: _this3.configId,
|
|
20461
20593
|
totalDurationWatchedSlot: "0-".concat(Math.round(_this3.videoElement.currentTime)),
|
|
20462
20594
|
replayCount: _this3.replayCount
|
|
20463
|
-
})
|
|
20595
|
+
});
|
|
20464
20596
|
_this3.videoPlayer.remove();
|
|
20465
|
-
_this3.
|
|
20597
|
+
_this3.MXZq();
|
|
20466
20598
|
_this3.hideCallback();
|
|
20467
20599
|
} catch (e) {
|
|
20468
20600
|
console.log("Can't close the video player\n".concat(e));
|
|
@@ -20551,32 +20683,80 @@
|
|
|
20551
20683
|
var _this = this,
|
|
20552
20684
|
_config$termination;
|
|
20553
20685
|
_classCallCheck(this, EmbedCards);
|
|
20554
|
-
_defineProperty(this, "
|
|
20555
|
-
var element = _this.JOeg(_this.layout);
|
|
20556
|
-
_this.qzdB();
|
|
20557
|
-
window.onresize = function () {
|
|
20558
|
-
_this.SbrJ();
|
|
20559
|
-
};
|
|
20560
|
-
document.body.appendChild(element);
|
|
20561
|
-
var styleElement = document.createElement("style");
|
|
20562
|
-
styleElement.innerHTML = _this.styleContent;
|
|
20563
|
-
document.head.appendChild(styleElement);
|
|
20564
|
-
_this.tbet(_this.termination);
|
|
20686
|
+
_defineProperty(this, "showEmbedCards", function () {
|
|
20565
20687
|
try {
|
|
20566
|
-
|
|
20688
|
+
var _window;
|
|
20689
|
+
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
|
|
20690
|
+
var element = _this.QrCq(_this.layout);
|
|
20691
|
+
_this.GVvf();
|
|
20692
|
+
window.onresize = function () {
|
|
20693
|
+
_this.Kitu();
|
|
20694
|
+
};
|
|
20695
|
+
var rootContainer = document.createElement("div");
|
|
20696
|
+
rootContainer.style.display = "flex";
|
|
20697
|
+
rootContainer.style.justifyContent = "center";
|
|
20698
|
+
rootContainer.appendChild(element);
|
|
20699
|
+
document.body.appendChild(rootContainer);
|
|
20700
|
+
var styleElement = document.createElement("style");
|
|
20701
|
+
styleElement.innerHTML = _this.styleContent;
|
|
20702
|
+
document.head.appendChild(styleElement);
|
|
20703
|
+
_this.QOPs(_this.termination);
|
|
20704
|
+
try {
|
|
20705
|
+
eval(_this.script);
|
|
20706
|
+
} catch (e) {
|
|
20707
|
+
var _window2;
|
|
20708
|
+
console.log("found error while executing script: ".concat(e));
|
|
20709
|
+
(_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.ApxorLogger) === null || _window2 === void 0 || _window2.error("found error while executing script: ".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
20710
|
+
}
|
|
20711
|
+
var videoStatusCheck = function videoStatusCheck() {
|
|
20712
|
+
_this.intervalToCheckVideoStatus = setInterval(function () {
|
|
20713
|
+
_this.waitInterval = _this.waitInterval - 1;
|
|
20714
|
+
if (_this.waitInterval === 0) {
|
|
20715
|
+
var _window$ApxorRTM, _window3;
|
|
20716
|
+
clearInterval(_this.intervalToCheckVideoStatus);
|
|
20717
|
+
(_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
20718
|
+
campaignName: _this.name,
|
|
20719
|
+
id: _this.configId,
|
|
20720
|
+
apx_nudge_type: "sticky_card",
|
|
20721
|
+
apx_notshown_type: "error",
|
|
20722
|
+
apx_reason: "provided video doesn't exists"
|
|
20723
|
+
});
|
|
20724
|
+
window.onresize = null;
|
|
20725
|
+
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorWidget) === null || _window3 === void 0 || _window3.removeEmbedCard(_this.configId);
|
|
20726
|
+
_this.waitInterval = 30;
|
|
20727
|
+
}
|
|
20728
|
+
if (_this.BhLQ()) {
|
|
20729
|
+
_this.waitInterval = 30;
|
|
20730
|
+
_this.Kitu();
|
|
20731
|
+
clearInterval(_this.intervalToCheckVideoStatus);
|
|
20732
|
+
}
|
|
20733
|
+
}, 100);
|
|
20734
|
+
};
|
|
20735
|
+
_this.intervalToCheckImgStatus = setInterval(function () {
|
|
20736
|
+
_this.waitInterval = _this.waitInterval - 1;
|
|
20737
|
+
if (_this.waitInterval === 0) {
|
|
20738
|
+
clearInterval(_this.intervalToCheckImgStatus);
|
|
20739
|
+
_this.waitInterval = 30;
|
|
20740
|
+
}
|
|
20741
|
+
if (_this.wMuZ()) {
|
|
20742
|
+
_this.waitInterval = 30;
|
|
20743
|
+
clearInterval(_this.intervalToCheckImgStatus);
|
|
20744
|
+
_this.videoElements.length > 0 ? videoStatusCheck() : _this.Kitu();
|
|
20745
|
+
}
|
|
20746
|
+
}, 100);
|
|
20567
20747
|
} catch (e) {
|
|
20568
|
-
|
|
20748
|
+
var _window4;
|
|
20749
|
+
console.log("failed while creating embed card with error ".concat(e));
|
|
20750
|
+
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.ApxorLogger) === null || _window4 === void 0 || _window4.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));
|
|
20569
20751
|
}
|
|
20570
|
-
_this.showCallback();
|
|
20571
|
-
_this.SbrJ();
|
|
20572
20752
|
});
|
|
20573
|
-
_defineProperty(this, "
|
|
20753
|
+
_defineProperty(this, "GVvf", function () {
|
|
20574
20754
|
var EmbeddedCardsStyles = document.createElement("style");
|
|
20575
20755
|
EmbeddedCardsStyles.innerHTML = _this.initialStyles;
|
|
20576
20756
|
EmbeddedCardsStyles.setAttribute("apx-tooltip-styles", "");
|
|
20577
20757
|
document.head.appendChild(EmbeddedCardsStyles);
|
|
20578
20758
|
});
|
|
20579
|
-
_defineProperty(this, "
|
|
20759
|
+
_defineProperty(this, "QrCq", function (config) {
|
|
20580
20760
|
var _window$Apxor;
|
|
20581
20761
|
var element;
|
|
20582
20762
|
switch (config.type) {
|
|
@@ -20589,26 +20769,27 @@
|
|
|
20589
20769
|
case "video":
|
|
20590
20770
|
element = document.createElement("video");
|
|
20591
20771
|
element.controlsList = "noplaybackrate nodownload nofullscreen";
|
|
20592
|
-
element.controls =
|
|
20772
|
+
element.controls = false;
|
|
20773
|
+
element.muted = true;
|
|
20593
20774
|
element.disablePictureInPicture = true;
|
|
20594
20775
|
element.autoplay = true;
|
|
20595
20776
|
if (((_window$Apxor = window.Apxor) === null || _window$Apxor === void 0 ? void 0 : _window$Apxor.platform) === "ios") {
|
|
20596
20777
|
element.playsInline = true;
|
|
20597
20778
|
}
|
|
20598
|
-
if (config.source) {
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
}
|
|
20605
|
-
if (config.track) {
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
}
|
|
20779
|
+
// if (config.source) {
|
|
20780
|
+
// let sourceElement = document.createElement("source");
|
|
20781
|
+
// for (let prop in config.source) {
|
|
20782
|
+
// sourceElement[prop] = config.source[prop];
|
|
20783
|
+
// }
|
|
20784
|
+
// element.appendChild(sourceElement);
|
|
20785
|
+
// }
|
|
20786
|
+
// if (config.track) {
|
|
20787
|
+
// let trackElement = document.createElement("track");
|
|
20788
|
+
// for (let prop in config.track) {
|
|
20789
|
+
// trackElement[prop] = config.track[prop];
|
|
20790
|
+
// }
|
|
20791
|
+
// element.appendChild(trackElement);
|
|
20792
|
+
// }
|
|
20612
20793
|
break;
|
|
20613
20794
|
default:
|
|
20614
20795
|
element = document.createElement(config.type);
|
|
@@ -20618,13 +20799,31 @@
|
|
|
20618
20799
|
// );
|
|
20619
20800
|
|
|
20620
20801
|
if (config.properties) {
|
|
20621
|
-
for (var
|
|
20622
|
-
|
|
20802
|
+
for (var prop in config.properties) {
|
|
20803
|
+
if (config.type === "img" && prop === "src" || config.type === "img" && prop === "format") continue;
|
|
20804
|
+
if (config.type === "video" && prop === "source") {
|
|
20805
|
+
var sourceElement = document.createElement("source");
|
|
20806
|
+
for (var srcprop in (_config$properties = config.properties) === null || _config$properties === void 0 ? void 0 : _config$properties[prop]) {
|
|
20807
|
+
var _config$properties, _config$properties2;
|
|
20808
|
+
sourceElement[srcprop] = (_config$properties2 = config.properties) === null || _config$properties2 === void 0 || (_config$properties2 = _config$properties2[prop]) === null || _config$properties2 === void 0 ? void 0 : _config$properties2[srcprop];
|
|
20809
|
+
}
|
|
20810
|
+
sourceElement["type"] = "video/mp4";
|
|
20811
|
+
element.appendChild(sourceElement);
|
|
20812
|
+
continue;
|
|
20813
|
+
}
|
|
20814
|
+
element[prop] = config.properties[prop];
|
|
20623
20815
|
}
|
|
20624
20816
|
}
|
|
20625
20817
|
element.classList.add(config._id);
|
|
20626
20818
|
if (config.css) {
|
|
20627
|
-
var styles = "
|
|
20819
|
+
var styles = "";
|
|
20820
|
+
if (config.type === "img") {
|
|
20821
|
+
var styleObject = parseCSS(config.css);
|
|
20822
|
+
var imgStyleObject = removeKeys(styleObject, Object.keys(imgWrapperStyles));
|
|
20823
|
+
styles = ".".concat(config._id, " {\n ").concat(objectToCSS(imgStyleObject), "\n }\n ");
|
|
20824
|
+
} else {
|
|
20825
|
+
styles = ".".concat(config._id, " {\n ").concat(config.css, "\n }\n ");
|
|
20826
|
+
}
|
|
20628
20827
|
_this.initialStyles += styles;
|
|
20629
20828
|
}
|
|
20630
20829
|
if (config.enable_actions && config.actions.length > 0) {
|
|
@@ -20634,36 +20833,68 @@
|
|
|
20634
20833
|
case "activity":
|
|
20635
20834
|
case "ir":
|
|
20636
20835
|
element.onclick = function (e) {
|
|
20836
|
+
var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
|
|
20837
|
+
e.stopPropagation();
|
|
20637
20838
|
window.Apxor.redirect(JSON.stringify(action));
|
|
20638
20839
|
var additional_info = {
|
|
20639
20840
|
campaignName: _this.name,
|
|
20640
20841
|
id: _this.configId,
|
|
20641
|
-
apx_nudge_type: "sticky_card"
|
|
20842
|
+
apx_nudge_type: "sticky_card",
|
|
20843
|
+
apx_card_name: (_e$target$getAttribut = (_e$target = e.target) === null || _e$target === void 0 || (_e$target$getAttribut2 = _e$target.getAttribute) === null || _e$target$getAttribut2 === void 0 ? void 0 : _e$target$getAttribut2.call(_e$target, "card_name")) !== null && _e$target$getAttribut !== void 0 ? _e$target$getAttribut : ""
|
|
20642
20844
|
};
|
|
20643
20845
|
if (e.target.tagName === "BUTTON") {
|
|
20846
|
+
var _window$ApxorRTM2;
|
|
20644
20847
|
additional_info["apx_cta_text"] = e.target.innerHTML;
|
|
20848
|
+
(_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 || _window$ApxorRTM2.logEvent("apx_card_CTA_clicked", additional_info);
|
|
20849
|
+
} else {
|
|
20850
|
+
var _window$ApxorRTM3;
|
|
20851
|
+
(_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_card_interaction", additional_info);
|
|
20852
|
+
}
|
|
20853
|
+
};
|
|
20854
|
+
break;
|
|
20855
|
+
case "show-video":
|
|
20856
|
+
element.onclick = function (e) {
|
|
20857
|
+
var _e$target$getAttribut3, _e$target2, _e$target2$getAttribu;
|
|
20858
|
+
e.stopPropagation();
|
|
20859
|
+
window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
|
|
20860
|
+
var additional_info = {
|
|
20861
|
+
campaignName: _this.name,
|
|
20862
|
+
id: _this.configId,
|
|
20863
|
+
apx_nudge_type: "sticky_card",
|
|
20864
|
+
apx_card_name: (_e$target$getAttribut3 = (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2$getAttribu = _e$target2.getAttribute) === null || _e$target2$getAttribu === void 0 ? void 0 : _e$target2$getAttribu.call(_e$target2, "card_name")) !== null && _e$target$getAttribut3 !== void 0 ? _e$target$getAttribut3 : ""
|
|
20865
|
+
};
|
|
20866
|
+
if (e.target.tagName === "BUTTON") {
|
|
20867
|
+
var _window$ApxorRTM4;
|
|
20868
|
+
additional_info["apx_cta_text"] = e.target.innerHTML;
|
|
20869
|
+
(_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_card_CTA_clicked", additional_info);
|
|
20870
|
+
} else {
|
|
20871
|
+
var _window$ApxorRTM5;
|
|
20872
|
+
(_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("apx_card_interaction", additional_info);
|
|
20645
20873
|
}
|
|
20646
|
-
window.Apxor.logAppEvent("apx_cta_clicked", JSON.stringify(additional_info));
|
|
20647
20874
|
};
|
|
20648
20875
|
break;
|
|
20649
20876
|
case "cancel":
|
|
20650
|
-
element.onclick = function () {
|
|
20877
|
+
element.onclick = function (e) {
|
|
20878
|
+
e.stopPropagation();
|
|
20651
20879
|
window.Apxor.logActionEvent("walk_through_cancelled", _this.configId, _this.name);
|
|
20652
20880
|
};
|
|
20653
20881
|
break;
|
|
20654
20882
|
case "dismiss":
|
|
20655
|
-
element.onclick = function () {
|
|
20883
|
+
element.onclick = function (e) {
|
|
20884
|
+
e.stopPropagation();
|
|
20656
20885
|
window.Apxor.logActionEvent("".concat(_this.type, "_dismissed"), _this.configId, _this.name);
|
|
20657
20886
|
};
|
|
20658
20887
|
break;
|
|
20659
20888
|
case "never":
|
|
20660
|
-
element.onclick = function () {
|
|
20889
|
+
element.onclick = function (e) {
|
|
20890
|
+
e.stopPropagation();
|
|
20661
20891
|
window.Apxor.neverShow(_this.configId, _this.name, "IN_APP");
|
|
20662
20892
|
window.Apxor.logActionEvent("never_show_clicked", _this.configId, _this.name);
|
|
20663
20893
|
};
|
|
20664
20894
|
break;
|
|
20665
20895
|
case "toggle-class":
|
|
20666
|
-
element.onclick = function () {
|
|
20896
|
+
element.onclick = function (e) {
|
|
20897
|
+
e.stopPropagation();
|
|
20667
20898
|
var elementToBeToggled = document.getElementById(action === null || action === void 0 ? void 0 : action.target_id);
|
|
20668
20899
|
if (isNull(elementToBeToggled)) {
|
|
20669
20900
|
elementToBeToggled = document.querySelector(action === null || action === void 0 ? void 0 : action.target_id);
|
|
@@ -20674,23 +20905,41 @@
|
|
|
20674
20905
|
};
|
|
20675
20906
|
break;
|
|
20676
20907
|
case "copy-content":
|
|
20677
|
-
element.onclick = function () {
|
|
20678
|
-
var
|
|
20908
|
+
element.onclick = function (e) {
|
|
20909
|
+
var _e$target$getAttribut4, _e$target3, _e$target3$getAttribu;
|
|
20910
|
+
e.stopPropagation();
|
|
20911
|
+
var textToCopy = action === null || action === void 0 ? void 0 : action.content;
|
|
20679
20912
|
var tempInput = document.createElement("input");
|
|
20680
20913
|
tempInput.value = textToCopy;
|
|
20681
20914
|
document.body.appendChild(tempInput);
|
|
20682
20915
|
tempInput.select();
|
|
20683
20916
|
document.execCommand("copy");
|
|
20684
20917
|
document.body.removeChild(tempInput);
|
|
20918
|
+
var additional_info = {
|
|
20919
|
+
campaignName: _this.name,
|
|
20920
|
+
id: _this.configId,
|
|
20921
|
+
apx_nudge_type: "sticky_card",
|
|
20922
|
+
apx_card_name: (_e$target$getAttribut4 = (_e$target3 = e.target) === null || _e$target3 === void 0 || (_e$target3$getAttribu = _e$target3.getAttribute) === null || _e$target3$getAttribu === void 0 ? void 0 : _e$target3$getAttribu.call(_e$target3, "card_name")) !== null && _e$target$getAttribut4 !== void 0 ? _e$target$getAttribut4 : ""
|
|
20923
|
+
};
|
|
20924
|
+
if (e.target.tagName === "BUTTON") {
|
|
20925
|
+
var _window$ApxorRTM6;
|
|
20926
|
+
additional_info["apx_cta_text"] = e.target.innerHTML;
|
|
20927
|
+
(_window$ApxorRTM6 = window.ApxorRTM) === null || _window$ApxorRTM6 === void 0 || _window$ApxorRTM6.logEvent("apx_card_CTA_clicked", additional_info);
|
|
20928
|
+
} else {
|
|
20929
|
+
var _window$ApxorRTM7;
|
|
20930
|
+
(_window$ApxorRTM7 = window.ApxorRTM) === null || _window$ApxorRTM7 === void 0 || _window$ApxorRTM7.logEvent("apx_card_interaction", additional_info);
|
|
20931
|
+
}
|
|
20685
20932
|
};
|
|
20686
20933
|
break;
|
|
20687
20934
|
case "log-app-event":
|
|
20688
|
-
element.onclick = function () {
|
|
20935
|
+
element.onclick = function (e) {
|
|
20936
|
+
e.stopPropagation();
|
|
20689
20937
|
window.Apxor.logAppEvent(action === null || action === void 0 ? void 0 : action.event_name);
|
|
20690
20938
|
};
|
|
20691
20939
|
break;
|
|
20692
20940
|
case "log-client-event":
|
|
20693
|
-
element.onclick = function () {
|
|
20941
|
+
element.onclick = function (e) {
|
|
20942
|
+
e.stopPropagation();
|
|
20694
20943
|
window.Apxor.logClientEvent(action === null || action === void 0 ? void 0 : action.event_name);
|
|
20695
20944
|
};
|
|
20696
20945
|
}
|
|
@@ -20699,10 +20948,10 @@
|
|
|
20699
20948
|
if (config.absolute_position_children && config.absolute_position_children.length > 0) {
|
|
20700
20949
|
element.style.position = "relative";
|
|
20701
20950
|
config.absolute_position_children.forEach(function (childConfig) {
|
|
20702
|
-
var childElement = _this.
|
|
20951
|
+
var childElement = _this.jtyP(childConfig);
|
|
20703
20952
|
childElement.style.position = "absolute";
|
|
20704
|
-
for (var
|
|
20705
|
-
childElement.style[
|
|
20953
|
+
for (var _prop in childConfig.offset) {
|
|
20954
|
+
childElement.style[_prop] = childConfig.offset[_prop];
|
|
20706
20955
|
}
|
|
20707
20956
|
element.appendChild(childElement);
|
|
20708
20957
|
});
|
|
@@ -20717,13 +20966,33 @@
|
|
|
20717
20966
|
// }
|
|
20718
20967
|
|
|
20719
20968
|
config.children.forEach(function (childConfig) {
|
|
20720
|
-
var childElement = _this.
|
|
20969
|
+
var childElement = _this.QrCq(childConfig);
|
|
20721
20970
|
element.appendChild(childElement);
|
|
20722
20971
|
});
|
|
20723
20972
|
}
|
|
20973
|
+
if (config.type === "img") {
|
|
20974
|
+
var _config$properties3, _config$properties4, _window5, _window5$getFilePath;
|
|
20975
|
+
var src = config === null || config === void 0 || (_config$properties3 = config.properties) === null || _config$properties3 === void 0 ? void 0 : _config$properties3.src;
|
|
20976
|
+
var format = config === null || config === void 0 || (_config$properties4 = config.properties) === null || _config$properties4 === void 0 ? void 0 : _config$properties4.format;
|
|
20977
|
+
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.configId, src, format)) || src : src;
|
|
20978
|
+
_this.imageElements.push(element);
|
|
20979
|
+
var imgWrapper = document.createElement("div");
|
|
20980
|
+
var _styleObject = parseCSS(config.css);
|
|
20981
|
+
Object.keys(imgWrapperStyles).forEach(function (prop) {
|
|
20982
|
+
if (prop in _styleObject) {
|
|
20983
|
+
imgWrapper.style[imgWrapperStyles[prop]] = _styleObject[prop];
|
|
20984
|
+
}
|
|
20985
|
+
});
|
|
20986
|
+
element.style.maxWidth = "100%";
|
|
20987
|
+
element.style.height = "auto";
|
|
20988
|
+
imgWrapper.appendChild(element);
|
|
20989
|
+
return imgWrapper;
|
|
20990
|
+
} else if (config.type === "video") {
|
|
20991
|
+
_this.videoElements.push(element);
|
|
20992
|
+
}
|
|
20724
20993
|
return element;
|
|
20725
20994
|
});
|
|
20726
|
-
_defineProperty(this, "
|
|
20995
|
+
_defineProperty(this, "QOPs", function (config) {
|
|
20727
20996
|
config.forEach(function (id) {
|
|
20728
20997
|
var element = document.getElementById(id);
|
|
20729
20998
|
if (element) {
|
|
@@ -20731,11 +21000,26 @@
|
|
|
20731
21000
|
}
|
|
20732
21001
|
});
|
|
20733
21002
|
});
|
|
20734
|
-
_defineProperty(this, "
|
|
20735
|
-
|
|
21003
|
+
_defineProperty(this, "wMuZ", function () {
|
|
21004
|
+
return _this.imageElements.every(function (img) {
|
|
21005
|
+
return img.complete;
|
|
21006
|
+
});
|
|
21007
|
+
});
|
|
21008
|
+
_defineProperty(this, "BhLQ", function () {
|
|
21009
|
+
return _this.videoElements.every(function (video) {
|
|
21010
|
+
return video.readyState >= 3;
|
|
21011
|
+
});
|
|
21012
|
+
});
|
|
21013
|
+
_defineProperty(this, "Kitu", function () {
|
|
21014
|
+
var _window6, _window7;
|
|
20736
21015
|
var width = window.document.querySelector("html").offsetWidth;
|
|
20737
21016
|
var height = window.document.querySelector("html").offsetHeight;
|
|
20738
|
-
(
|
|
21017
|
+
(_window6 = window) === null || _window6 === void 0 || (_window6 = _window6.ApxorWidget) === null || _window6 === void 0 || _window6.setDimensions(width, height);
|
|
21018
|
+
(_window7 = window) === null || _window7 === void 0 || (_window7 = _window7.ApxorLogger) === null || _window7 === void 0 || _window7.debug("called setWebViewDimensions with width: ".concat(width, " and height: ").concat(height));
|
|
21019
|
+
if (width > 0 && height > 0 && !_this.loggedNudgeShownEvent) {
|
|
21020
|
+
_this.showCallback();
|
|
21021
|
+
_this.loggedNudgeShownEvent = true;
|
|
21022
|
+
}
|
|
20739
21023
|
});
|
|
20740
21024
|
this.configId = configId;
|
|
20741
21025
|
this.name = name;
|
|
@@ -20746,19 +21030,26 @@
|
|
|
20746
21030
|
this.termination = (_config$termination = _config.termination) !== null && _config$termination !== void 0 ? _config$termination : [];
|
|
20747
21031
|
this.script = _config.script;
|
|
20748
21032
|
this.initialStyles = "";
|
|
21033
|
+
this.imageElements = [];
|
|
21034
|
+
this.videoElements = [];
|
|
21035
|
+
this.intervalToCheckImgStatus;
|
|
21036
|
+
this.waitInterval = 30;
|
|
21037
|
+
this.loggedNudgeShownEvent = false;
|
|
20749
21038
|
});
|
|
20750
21039
|
|
|
20751
21040
|
var RTM = /*#__PURE__*/_createClass(function RTM() {
|
|
20752
21041
|
var _this = this;
|
|
20753
21042
|
_classCallCheck(this, RTM);
|
|
20754
|
-
_defineProperty(this, "
|
|
21043
|
+
_defineProperty(this, "ZeeY", {});
|
|
20755
21044
|
_defineProperty(this, "isShowingAction", false);
|
|
20756
21045
|
_defineProperty(this, "currentAction", null);
|
|
20757
|
-
_defineProperty(this, "
|
|
20758
|
-
_defineProperty(this, "version",
|
|
21046
|
+
_defineProperty(this, "XhLY", null);
|
|
21047
|
+
_defineProperty(this, "version", 61);
|
|
20759
21048
|
_defineProperty(this, "isInitialised", false);
|
|
20760
|
-
_defineProperty(this, "
|
|
20761
|
-
_defineProperty(this, "
|
|
21049
|
+
_defineProperty(this, "bBhw", {});
|
|
21050
|
+
_defineProperty(this, "QDeD", false);
|
|
21051
|
+
_defineProperty(this, "_isShownECCalled", false);
|
|
21052
|
+
_defineProperty(this, "DuFv", function () {
|
|
20762
21053
|
_this.isInitialised = true;
|
|
20763
21054
|
var oldPushState = history.pushState;
|
|
20764
21055
|
history.pushState = function pushState() {
|
|
@@ -20783,7 +21074,7 @@
|
|
|
20783
21074
|
});
|
|
20784
21075
|
_defineProperty(this, "show", function (uiJson, duration, uuid, name) {
|
|
20785
21076
|
if (!_this.isInitialised) {
|
|
20786
|
-
_this.
|
|
21077
|
+
_this.DuFv();
|
|
20787
21078
|
}
|
|
20788
21079
|
window.addEventListener("pagehide", function () {
|
|
20789
21080
|
var _window$Apxor, _window$Apxor$pageUnl;
|
|
@@ -20792,7 +21083,9 @@
|
|
|
20792
21083
|
try {
|
|
20793
21084
|
// console.log("Showing action for uuid:", uuid, uiJson, this.currentAction);
|
|
20794
21085
|
if (_this.currentAction !== null && _this.currentAction !== undefined) {
|
|
21086
|
+
var _window;
|
|
20795
21087
|
console.error("An action already being shown");
|
|
21088
|
+
(_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.error("An action already being shown");
|
|
20796
21089
|
return;
|
|
20797
21090
|
}
|
|
20798
21091
|
uiJson = uiJson.split("\n").join("\\n");
|
|
@@ -20808,7 +21101,7 @@
|
|
|
20808
21101
|
} else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
|
|
20809
21102
|
_this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
|
|
20810
21103
|
} else if (ui_config.display_type === "coach_mark_v2") {
|
|
20811
|
-
_this.
|
|
21104
|
+
_this.QCTE(ui_config, duration, uuid, name);
|
|
20812
21105
|
} else {
|
|
20813
21106
|
showCoachmarkWithDelay(_this, ui_config, {
|
|
20814
21107
|
configId: uuid,
|
|
@@ -20816,21 +21109,21 @@
|
|
|
20816
21109
|
}, terminationConfig, function () {
|
|
20817
21110
|
_this.isShowingAction = true;
|
|
20818
21111
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
20819
|
-
var
|
|
20820
|
-
(
|
|
21112
|
+
var _window2, _window2$updateFlag, _window3, _window3$updateCount;
|
|
21113
|
+
(_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.Apxor) === null || _window2 === void 0 || (_window2$updateFlag = _window2.updateFlag) === null || _window2$updateFlag === void 0 || _window2$updateFlag.call(_window2, true);
|
|
20821
21114
|
window.Apxor.logActionEvent("inline_shown", uuid, name);
|
|
20822
|
-
(
|
|
21115
|
+
(_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.Apxor) === null || _window3 === void 0 || (_window3$updateCount = _window3.updateCount) === null || _window3$updateCount === void 0 || _window3$updateCount.call(_window3, uuid);
|
|
20823
21116
|
if (ui_config !== null && ui_config !== void 0 && ui_config.is_preview) {
|
|
20824
21117
|
setTimeout(function () {
|
|
20825
|
-
var
|
|
20826
|
-
(
|
|
21118
|
+
var _window4, _window4$logInternalE;
|
|
21119
|
+
(_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.Apxor) === null || _window4 === void 0 || (_window4$logInternalE = _window4.logInternalEvent) === null || _window4$logInternalE === void 0 || _window4$logInternalE.call(_window4, "capt");
|
|
20827
21120
|
}, 500);
|
|
20828
21121
|
}
|
|
20829
21122
|
}
|
|
20830
21123
|
}, function (action) {
|
|
20831
|
-
var
|
|
21124
|
+
var _window5, _window5$updateFlag;
|
|
20832
21125
|
_this.isShowingAction = false;
|
|
20833
|
-
(
|
|
21126
|
+
(_window5 = window) === null || _window5 === void 0 || (_window5 = _window5.Apxor) === null || _window5 === void 0 || (_window5$updateFlag = _window5.updateFlag) === null || _window5$updateFlag === void 0 || _window5$updateFlag.call(_window5, false);
|
|
20834
21127
|
_this.currentAction = null;
|
|
20835
21128
|
if (window.Apxor && window.Apxor.logActionEvent && !(isDefined(action) && (action === "redirect" || action === "cancel"))) {
|
|
20836
21129
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
@@ -20840,10 +21133,11 @@
|
|
|
20840
21133
|
});
|
|
20841
21134
|
}
|
|
20842
21135
|
} catch (e) {
|
|
20843
|
-
var
|
|
21136
|
+
var _window6, _window6$updateFlag, _window7;
|
|
20844
21137
|
_this.isShowingAction = false;
|
|
20845
|
-
(
|
|
21138
|
+
(_window6 = window) === null || _window6 === void 0 || (_window6 = _window6.Apxor) === null || _window6 === void 0 || (_window6$updateFlag = _window6.updateFlag) === null || _window6$updateFlag === void 0 || _window6$updateFlag.call(_window6, false);
|
|
20846
21139
|
console.error(e);
|
|
21140
|
+
(_window7 = window) === null || _window7 === void 0 || (_window7 = _window7.ApxorLogger) === null || _window7 === void 0 || _window7.error("".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
20847
21141
|
}
|
|
20848
21142
|
});
|
|
20849
21143
|
_defineProperty(this, "showInApp", function (config, duration, configId, name) {
|
|
@@ -20855,53 +21149,66 @@
|
|
|
20855
21149
|
_this.createInAppModal(config, duration, configId, name, JSON.parse(config).action_class === "inapp_builder" ? "inapp_builder" : "modal");
|
|
20856
21150
|
}
|
|
20857
21151
|
} catch (e) {
|
|
20858
|
-
var _window$Apxor2;
|
|
21152
|
+
var _window$Apxor2, _window10;
|
|
20859
21153
|
if (((_window$Apxor2 = window.Apxor) === null || _window$Apxor2 === void 0 ? void 0 : _window$Apxor2.platform) === "ios") {
|
|
20860
|
-
var
|
|
20861
|
-
(
|
|
21154
|
+
var _window8, _window8$updateFlag;
|
|
21155
|
+
(_window8 = window) === null || _window8 === void 0 || (_window8 = _window8.Apxor) === null || _window8 === void 0 || (_window8$updateFlag = _window8.updateFlag) === null || _window8$updateFlag === void 0 || _window8$updateFlag.call(_window8, false, "IN_APP");
|
|
20862
21156
|
} else {
|
|
20863
|
-
var
|
|
20864
|
-
(
|
|
21157
|
+
var _window9, _window9$updateFlag;
|
|
21158
|
+
(_window9 = window) === null || _window9 === void 0 || (_window9 = _window9.Apxor) === null || _window9 === void 0 || (_window9$updateFlag = _window9.updateFlag) === null || _window9$updateFlag === void 0 || _window9$updateFlag.call(_window9, "IN_APP", false);
|
|
20865
21159
|
}
|
|
20866
21160
|
console.error(e);
|
|
21161
|
+
(_window10 = window) === null || _window10 === void 0 || (_window10 = _window10.ApxorLogger) === null || _window10 === void 0 || _window10.error("".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
20867
21162
|
}
|
|
20868
21163
|
});
|
|
20869
|
-
_defineProperty(this, "
|
|
21164
|
+
_defineProperty(this, "showEmbedCards", function (config, duration, configId, name) {
|
|
21165
|
+
if (_this._isShownECCalled) {
|
|
21166
|
+
return;
|
|
21167
|
+
}
|
|
20870
21168
|
try {
|
|
20871
21169
|
config = config.split("\n").join("\\n");
|
|
20872
21170
|
var ui_config = JSON.parse(config);
|
|
20873
|
-
_this.
|
|
21171
|
+
_this.createembedCards(ui_config, configId, name);
|
|
20874
21172
|
} catch (e) {
|
|
20875
|
-
var _window$
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
(
|
|
20882
|
-
}
|
|
21173
|
+
var _window$ApxorRTM, _window11;
|
|
21174
|
+
(_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
|
|
21175
|
+
campaignName: name,
|
|
21176
|
+
id: configId,
|
|
21177
|
+
apx_nudge_type: "sticky_card",
|
|
21178
|
+
apx_notshown_type: "error",
|
|
21179
|
+
apx_reason: "".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message)
|
|
21180
|
+
});
|
|
20883
21181
|
console.error(e);
|
|
21182
|
+
(_window11 = window) === null || _window11 === void 0 || (_window11 = _window11.ApxorLogger) === null || _window11 === void 0 || _window11.error("".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message));
|
|
20884
21183
|
}
|
|
20885
21184
|
});
|
|
20886
|
-
_defineProperty(this, "
|
|
21185
|
+
_defineProperty(this, "createembedCards", function (config, configId, name) {
|
|
20887
21186
|
var cardsContainer = new EmbedCards(config, configId, name, function () {
|
|
20888
|
-
|
|
21187
|
+
var _window12, _window$ApxorRTM2;
|
|
21188
|
+
(_window12 = window) === null || _window12 === void 0 || (_window12 = _window12.ApxorLogger) === null || _window12 === void 0 || _window12.debug("successfully showing the nudge");
|
|
21189
|
+
(config === null || config === void 0 ? void 0 : config.initialRender) && ((_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 ? void 0 : _window$ApxorRTM2.logEvent("apx_nudge_shown", {
|
|
20889
21190
|
campaignName: name,
|
|
20890
21191
|
id: configId,
|
|
20891
21192
|
apx_nudge_type: "sticky_card"
|
|
20892
21193
|
}));
|
|
20893
|
-
|
|
20894
|
-
|
|
21194
|
+
_this._isShownECCalled = true;
|
|
21195
|
+
}, function () {
|
|
21196
|
+
var _window13;
|
|
21197
|
+
(_window13 = window) === null || _window13 === void 0 || (_window13 = _window13.ApxorLogger) === null || _window13 === void 0 || _window13.debug("nudge dismissed");
|
|
21198
|
+
});
|
|
21199
|
+
cardsContainer.showEmbedCards();
|
|
20895
21200
|
});
|
|
20896
21201
|
_defineProperty(this, "removeAll", function () {
|
|
20897
|
-
var
|
|
20898
|
-
(
|
|
21202
|
+
var _window14, _window14$updateFlag;
|
|
21203
|
+
(_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);
|
|
20899
21204
|
if (_this.currentAction !== null && _this.currentAction !== undefined) {
|
|
20900
21205
|
_this.isShowingAction = false;
|
|
20901
21206
|
try {
|
|
21207
|
+
var _window15;
|
|
20902
21208
|
_this.currentAction();
|
|
20903
21209
|
_this.currentAction = null;
|
|
20904
21210
|
console.log("Callback is called");
|
|
21211
|
+
(_window15 = window) === null || _window15 === void 0 || (_window15 = _window15.ApxorLogger) === null || _window15 === void 0 || _window15.debug("Callback is called");
|
|
20905
21212
|
} catch (e) {}
|
|
20906
21213
|
}
|
|
20907
21214
|
});
|
|
@@ -20913,48 +21220,48 @@
|
|
|
20913
21220
|
var onShow = function onShow() {
|
|
20914
21221
|
_this.isShowingAction = true;
|
|
20915
21222
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
20916
|
-
var
|
|
20917
|
-
(
|
|
21223
|
+
var _window16, _window16$updateFlag, _window17, _window17$updateCount;
|
|
21224
|
+
(_window16 = window) === null || _window16 === void 0 || (_window16 = _window16.Apxor) === null || _window16 === void 0 || (_window16$updateFlag = _window16.updateFlag) === null || _window16$updateFlag === void 0 || _window16$updateFlag.call(_window16, true);
|
|
20918
21225
|
window.Apxor.logActionEvent("inline_shown", uuid, name);
|
|
20919
|
-
(
|
|
21226
|
+
(_window17 = window) === null || _window17 === void 0 || (_window17 = _window17.Apxor) === null || _window17 === void 0 || (_window17$updateCount = _window17.updateCount) === null || _window17$updateCount === void 0 || _window17$updateCount.call(_window17, uuid);
|
|
20920
21227
|
if (ui_config !== null && ui_config !== void 0 && ui_config.is_preview) {
|
|
20921
21228
|
setTimeout(function () {
|
|
20922
|
-
var
|
|
20923
|
-
(
|
|
21229
|
+
var _window18, _window18$logInternal;
|
|
21230
|
+
(_window18 = window) === null || _window18 === void 0 || (_window18 = _window18.Apxor) === null || _window18 === void 0 || (_window18$logInternal = _window18.logInternalEvent) === null || _window18$logInternal === void 0 || _window18$logInternal.call(_window18, "capt");
|
|
20924
21231
|
}, 500);
|
|
20925
21232
|
}
|
|
20926
21233
|
}
|
|
20927
21234
|
};
|
|
20928
21235
|
var onHide = function onHide(isCancelled) {
|
|
20929
|
-
var
|
|
21236
|
+
var _window19, _window19$updateFlag, _window20;
|
|
20930
21237
|
_this.isShowingAction = false;
|
|
20931
21238
|
_this.currentAction = null;
|
|
20932
|
-
_this.
|
|
20933
|
-
(
|
|
21239
|
+
_this.XhLY = null;
|
|
21240
|
+
(_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);
|
|
20934
21241
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
20935
21242
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
20936
21243
|
}
|
|
20937
|
-
if (((
|
|
20938
|
-
var
|
|
20939
|
-
(
|
|
21244
|
+
if (((_window20 = window) === null || _window20 === void 0 || (_window20 = _window20.ApxorWebView) === null || _window20 === void 0 ? void 0 : _window20.getLayoutType()) === "web-inline") {
|
|
21245
|
+
var _window21;
|
|
21246
|
+
(_window21 = window) === null || _window21 === void 0 || (_window21 = _window21.ApxorWebView) === null || _window21 === void 0 || _window21.removeWebView();
|
|
20940
21247
|
}
|
|
20941
21248
|
};
|
|
20942
21249
|
if (action_class === "new-inline") {
|
|
20943
|
-
_this.
|
|
21250
|
+
_this.XhLY = new InLineTooltip(ui_config, [], [], terminationConfig, {
|
|
20944
21251
|
configId: uuid,
|
|
20945
21252
|
configName: name
|
|
20946
21253
|
}, _this, onShow, onHide, function () {}, false, 0);
|
|
20947
21254
|
} else if (action_class === "tooltip_builder") {
|
|
20948
|
-
_this.
|
|
21255
|
+
_this.XhLY = new NewInLineTooltip(ui_config, terminationConfig, {
|
|
20949
21256
|
configId: uuid,
|
|
20950
21257
|
configName: name
|
|
20951
21258
|
}, _this, onShow, onHide);
|
|
20952
21259
|
}
|
|
20953
21260
|
setTimeout(function () {
|
|
20954
|
-
_this.
|
|
21261
|
+
_this.XhLY.createNewTooltip();
|
|
20955
21262
|
}, ui_config.delay);
|
|
20956
21263
|
});
|
|
20957
|
-
_defineProperty(this, "
|
|
21264
|
+
_defineProperty(this, "QCTE", function (ui_config, duration, uuid, name) {
|
|
20958
21265
|
var terminationConfig = {};
|
|
20959
21266
|
terminationConfig["auto_dismiss"] = duration > 0;
|
|
20960
21267
|
terminationConfig["duration"] = duration;
|
|
@@ -20964,35 +21271,35 @@
|
|
|
20964
21271
|
}, _this, function () {
|
|
20965
21272
|
_this.isShowingAction = true;
|
|
20966
21273
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
20967
|
-
var
|
|
20968
|
-
(
|
|
21274
|
+
var _window22, _window22$updateFlag;
|
|
21275
|
+
(_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, true);
|
|
20969
21276
|
window.Apxor.logActionEvent("inline_shown", uuid, name);
|
|
20970
21277
|
if (ui_config !== null && ui_config !== void 0 && ui_config.is_preview) {
|
|
20971
21278
|
setTimeout(function () {
|
|
20972
|
-
var
|
|
20973
|
-
(
|
|
21279
|
+
var _window23, _window23$logInternal;
|
|
21280
|
+
(_window23 = window) === null || _window23 === void 0 || (_window23 = _window23.Apxor) === null || _window23 === void 0 || (_window23$logInternal = _window23.logInternalEvent) === null || _window23$logInternal === void 0 || _window23$logInternal.call(_window23, "capt");
|
|
20974
21281
|
}, 500);
|
|
20975
21282
|
}
|
|
20976
21283
|
}
|
|
20977
21284
|
}, function (isCancelled) {
|
|
20978
|
-
var
|
|
21285
|
+
var _window24, _window24$updateFlag, _window25;
|
|
20979
21286
|
_this.isShowingAction = false;
|
|
20980
21287
|
_this.currentAction = null;
|
|
20981
|
-
_this.
|
|
20982
|
-
(
|
|
21288
|
+
_this.XhLY = null;
|
|
21289
|
+
(_window24 = window) === null || _window24 === void 0 || (_window24 = _window24.Apxor) === null || _window24 === void 0 || (_window24$updateFlag = _window24.updateFlag) === null || _window24$updateFlag === void 0 || _window24$updateFlag.call(_window24, false);
|
|
20983
21290
|
if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
|
|
20984
21291
|
window.Apxor.logActionEvent("inline_dismissed", uuid, name);
|
|
20985
21292
|
}
|
|
20986
|
-
if (((
|
|
20987
|
-
var
|
|
20988
|
-
(
|
|
21293
|
+
if (((_window25 = window) === null || _window25 === void 0 || (_window25 = _window25.ApxorWebView) === null || _window25 === void 0 ? void 0 : _window25.getLayoutType()) === "web-inline") {
|
|
21294
|
+
var _window26;
|
|
21295
|
+
(_window26 = window) === null || _window26 === void 0 || (_window26 = _window26.ApxorWebView) === null || _window26 === void 0 || _window26.removeWebView();
|
|
20989
21296
|
}
|
|
20990
21297
|
}, _this.stepperCallback, false, 0);
|
|
20991
21298
|
_this._currentCoachmark.createNewCoachMark();
|
|
20992
21299
|
});
|
|
20993
21300
|
_defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
|
|
20994
|
-
if (_this.
|
|
20995
|
-
_this.
|
|
21301
|
+
if (_this.XhLY) {
|
|
21302
|
+
_this.XhLY.updateElementPositionOnScroll(top, left, height, width);
|
|
20996
21303
|
}
|
|
20997
21304
|
});
|
|
20998
21305
|
_defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
|
|
@@ -21009,20 +21316,20 @@
|
|
|
21009
21316
|
var VideoInAppInstance = new VideoInApp(videoConfig, terminationConfig, configId, name, function () {
|
|
21010
21317
|
_this.isShowingAction = true;
|
|
21011
21318
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
21012
|
-
var
|
|
21013
|
-
(
|
|
21319
|
+
var _window27, _window27$updateFlag;
|
|
21320
|
+
(_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, true);
|
|
21014
21321
|
window.Apxor.logActionEvent("inapp_shown", configId, name);
|
|
21015
21322
|
}
|
|
21016
21323
|
}, function () {
|
|
21017
|
-
var
|
|
21324
|
+
var _window28, _window28$updateFlag;
|
|
21018
21325
|
_this.isShowingAction = false;
|
|
21019
21326
|
_this.currentAction = null;
|
|
21020
|
-
(
|
|
21327
|
+
(_window28 = window) === null || _window28 === void 0 || (_window28 = _window28.Apxor) === null || _window28 === void 0 || (_window28$updateFlag = _window28.updateFlag) === null || _window28$updateFlag === void 0 || _window28$updateFlag.call(_window28, false);
|
|
21021
21328
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
21022
21329
|
window.Apxor.logActionEvent("inapp_dismissed", configId, name);
|
|
21023
21330
|
}
|
|
21024
21331
|
});
|
|
21025
|
-
VideoInAppInstance.
|
|
21332
|
+
VideoInAppInstance.showVideoInApp();
|
|
21026
21333
|
});
|
|
21027
21334
|
/**
|
|
21028
21335
|
* Creates a modal for the given config and displays it.
|
|
@@ -21043,19 +21350,19 @@
|
|
|
21043
21350
|
var onShow = function onShow() {
|
|
21044
21351
|
_this.isShowingAction = true;
|
|
21045
21352
|
if (window.Apxor && window.Apxor.logActionEvent) {
|
|
21046
|
-
var _window$
|
|
21047
|
-
if (((_window$
|
|
21048
|
-
var
|
|
21049
|
-
(
|
|
21353
|
+
var _window$Apxor3;
|
|
21354
|
+
if (((_window$Apxor3 = window.Apxor) === null || _window$Apxor3 === void 0 ? void 0 : _window$Apxor3.platform) === "ios") {
|
|
21355
|
+
var _window29, _window29$updateFlag;
|
|
21356
|
+
(_window29 = window) === null || _window29 === void 0 || (_window29 = _window29.Apxor) === null || _window29 === void 0 || (_window29$updateFlag = _window29.updateFlag) === null || _window29$updateFlag === void 0 || _window29$updateFlag.call(_window29, true, "IN_APP");
|
|
21050
21357
|
} else {
|
|
21051
|
-
var
|
|
21052
|
-
(
|
|
21358
|
+
var _window30, _window30$updateFlag;
|
|
21359
|
+
(_window30 = window) === null || _window30 === void 0 || (_window30 = _window30.Apxor) === null || _window30 === void 0 || (_window30$updateFlag = _window30.updateFlag) === null || _window30$updateFlag === void 0 || _window30$updateFlag.call(_window30, "IN_APP", true);
|
|
21053
21360
|
}
|
|
21054
21361
|
window.Apxor.logActionEvent("inapp_shown", configId, name);
|
|
21055
21362
|
}
|
|
21056
21363
|
};
|
|
21057
21364
|
var onHide = function onHide(backgroundDiv, action) {
|
|
21058
|
-
var _dialogContent$classL, _window$
|
|
21365
|
+
var _dialogContent$classL, _window$Apxor4;
|
|
21059
21366
|
var cssClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ".apx-dlg-c";
|
|
21060
21367
|
var closeListener = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
21061
21368
|
var redirectionListener = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
@@ -21066,12 +21373,12 @@
|
|
|
21066
21373
|
// setTimeout(() => {
|
|
21067
21374
|
backgroundDiv.remove();
|
|
21068
21375
|
_this.isShowingAction = false;
|
|
21069
|
-
if (((_window$
|
|
21070
|
-
var
|
|
21071
|
-
(
|
|
21376
|
+
if (((_window$Apxor4 = window.Apxor) === null || _window$Apxor4 === void 0 ? void 0 : _window$Apxor4.platform) === "ios") {
|
|
21377
|
+
var _window31, _window31$updateFlag;
|
|
21378
|
+
(_window31 = window) === null || _window31 === void 0 || (_window31 = _window31.Apxor) === null || _window31 === void 0 || (_window31$updateFlag = _window31.updateFlag) === null || _window31$updateFlag === void 0 || _window31$updateFlag.call(_window31, false, "IN_APP");
|
|
21072
21379
|
} else {
|
|
21073
|
-
var
|
|
21074
|
-
(
|
|
21380
|
+
var _window32, _window32$updateFlag;
|
|
21381
|
+
(_window32 = window) === null || _window32 === void 0 || (_window32 = _window32.Apxor) === null || _window32 === void 0 || (_window32$updateFlag = _window32.updateFlag) === null || _window32$updateFlag === void 0 || _window32$updateFlag.call(_window32, "IN_APP", false);
|
|
21075
21382
|
}
|
|
21076
21383
|
_this.currentAction = null;
|
|
21077
21384
|
if (window.Apxor && window.Apxor.logActionEvent && !(action == "cancel" || action == "redirect")) {
|
|
@@ -21086,7 +21393,11 @@
|
|
|
21086
21393
|
inappModal.createInAppModal();
|
|
21087
21394
|
});
|
|
21088
21395
|
_defineProperty(this, "showPlaceHolder", function () {
|
|
21089
|
-
var
|
|
21396
|
+
var _window33;
|
|
21397
|
+
if (_this.QDeD) {
|
|
21398
|
+
return;
|
|
21399
|
+
}
|
|
21400
|
+
_this.QDeD = true;
|
|
21090
21401
|
var ele = document.createElement("div");
|
|
21091
21402
|
ele.innerHTML = "place your immersive card here";
|
|
21092
21403
|
ele.style.backgroundColor = "#f5f5f5";
|
|
@@ -21096,13 +21407,21 @@
|
|
|
21096
21407
|
ele.style.padding = "12px";
|
|
21097
21408
|
ele.style.fontSize = "14px";
|
|
21098
21409
|
document.body.appendChild(ele);
|
|
21099
|
-
(
|
|
21410
|
+
(_window33 = window) === null || _window33 === void 0 || (_window33 = _window33.ApxorWidget) === null || _window33 === void 0 || _window33.setDimensions(window.document.querySelector("html").offsetWidth, window.document.querySelector("html").offsetHeight);
|
|
21411
|
+
});
|
|
21412
|
+
// createSurvey = (config, configId, name) => {
|
|
21413
|
+
// const survey_obj = new NewSurveys(configId, name, config, []);
|
|
21414
|
+
// survey_obj.createSurvey();
|
|
21415
|
+
// };
|
|
21416
|
+
_defineProperty(this, "logEvent", function (name, additional_info) {
|
|
21417
|
+
var _window$Apxor5;
|
|
21418
|
+
if (((_window$Apxor5 = window.Apxor) === null || _window$Apxor5 === void 0 ? void 0 : _window$Apxor5.platform) === "ios") {
|
|
21419
|
+
window.Apxor.logAppEvent(name, additional_info);
|
|
21420
|
+
} else {
|
|
21421
|
+
window.Apxor.logAppEvent(name, JSON.stringify(additional_info));
|
|
21422
|
+
}
|
|
21100
21423
|
});
|
|
21101
|
-
}
|
|
21102
|
-
// const survey_obj = new NewSurveys(configId, name, config, []);
|
|
21103
|
-
// survey_obj.createSurvey();
|
|
21104
|
-
// };
|
|
21105
|
-
);
|
|
21424
|
+
});
|
|
21106
21425
|
|
|
21107
21426
|
/* eslint-disable no-empty */
|
|
21108
21427
|
var rtm = new RTM();
|