apxor-rtm-ui 0.6.0 → 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.
@@ -11660,8 +11660,8 @@
11660
11660
  var _this = this,
11661
11661
  _config$termination;
11662
11662
  _classCallCheck(this, TemplateContent);
11663
- _defineProperty(this, "FbqU", function () {
11664
- var element = _this.OKHv(_this.layout);
11663
+ _defineProperty(this, "hJkH", function () {
11664
+ var element = _this.jtyP(_this.layout);
11665
11665
  //document.body.appendChild(element);
11666
11666
  var tooltipStyles = document.createElement("style");
11667
11667
  tooltipStyles.innerHTML = _this.initialStyles;
@@ -11677,7 +11677,7 @@
11677
11677
  }
11678
11678
  return element;
11679
11679
  });
11680
- _defineProperty(this, "OKHv", function (config) {
11680
+ _defineProperty(this, "jtyP", function (config) {
11681
11681
  var _window$Apxor;
11682
11682
  var element;
11683
11683
  switch (config.type) {
@@ -11808,7 +11808,7 @@
11808
11808
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
11809
11809
  element.style.position = "relative";
11810
11810
  config.absolute_position_children.forEach(function (childConfig) {
11811
- var childElement = _this.OKHv(childConfig);
11811
+ var childElement = _this.jtyP(childConfig);
11812
11812
  childElement.style.position = "absolute";
11813
11813
  for (var _prop in childConfig.offset) {
11814
11814
  childElement.style[_prop] = childConfig.offset[_prop];
@@ -11826,7 +11826,7 @@
11826
11826
  // }
11827
11827
 
11828
11828
  config.children.forEach(function (childConfig) {
11829
- var childElement = _this.OKHv(childConfig);
11829
+ var childElement = _this.jtyP(childConfig);
11830
11830
  element.appendChild(childElement);
11831
11831
  });
11832
11832
  }
@@ -12729,7 +12729,7 @@
12729
12729
  }, {
12730
12730
  key: "_setInLineContent",
12731
12731
  value: function _setInLineContent() {
12732
- this.inLineContainer = this.templateContent.FbqU();
12732
+ this.inLineContainer = this.templateContent.hJkH();
12733
12733
  }
12734
12734
  }, {
12735
12735
  key: "_setObservors",
@@ -14277,7 +14277,7 @@
14277
14277
  * @description Creates the styles for Marketing message.
14278
14278
  * @returns {string} css styles
14279
14279
  */
14280
- _defineProperty(this, "IrSW", function () {
14280
+ _defineProperty(this, "RiAn", function () {
14281
14281
  if (!_this.enable_marketing) {
14282
14282
  return "";
14283
14283
  }
@@ -14296,7 +14296,7 @@
14296
14296
  * @private
14297
14297
  * @description Sets the marketing content at the end of the Inline
14298
14298
  */
14299
- _defineProperty(this, "pcuy", function () {
14299
+ _defineProperty(this, "YrUN", function () {
14300
14300
  if (_this.enable_marketing) {
14301
14301
  var marketingContainer = document.createElement("div");
14302
14302
  marketingContainer.classList.add("apx-inline-marketing".concat(_this.cssPostFix));
@@ -14898,7 +14898,7 @@
14898
14898
  if (apxor_tooltip_styles) {
14899
14899
  return;
14900
14900
  }
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.IrSW(), "\n ").concat(this._getTippyStyles(), "\n ").concat(this._getFooterStyles(), "\n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
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, "");
14902
14902
  var styleNode = document.createElement("style");
14903
14903
  styleNode.setAttribute("apx-tooltip-styles", "");
14904
14904
  styleNode.innerHTML = styles;
@@ -15708,7 +15708,7 @@
15708
15708
  this._setCloseButton();
15709
15709
 
15710
15710
  //Set the Marketing content
15711
- this.pcuy();
15711
+ this.YrUN();
15712
15712
  }
15713
15713
 
15714
15714
  /**
@@ -18553,7 +18553,7 @@
18553
18553
  }, {
18554
18554
  key: "_setInAppModalContent",
18555
18555
  value: function _setInAppModalContent() {
18556
- this.inAppContainer = this.templateContent.FbqU();
18556
+ this.inAppContainer = this.templateContent.hJkH();
18557
18557
  this.inAppContainer.style.zIndex = 99999;
18558
18558
  this.overlayElement.appendChild(this.inAppContainer);
18559
18559
  }
@@ -18701,7 +18701,7 @@
18701
18701
  * @description Creates the styles for Marketing message.
18702
18702
  * @returns {string} css styles
18703
18703
  */
18704
- _defineProperty(this, "IrSW", function () {
18704
+ _defineProperty(this, "RiAn", function () {
18705
18705
  if (!_this.enable_marketing) {
18706
18706
  return "";
18707
18707
  }
@@ -18747,7 +18747,7 @@
18747
18747
  * @private
18748
18748
  * @description Get the response for Form content in the InApp modal.
18749
18749
  */
18750
- _defineProperty(this, "NTBD", function (form_elements) {
18750
+ _defineProperty(this, "Ghij", function (form_elements) {
18751
18751
  var obj = {};
18752
18752
  var callback = "";
18753
18753
  form_elements.forEach(function (element) {
@@ -18787,7 +18787,7 @@
18787
18787
  * @private
18788
18788
  * @description Sets the marketing content at the end of the InApp
18789
18789
  */
18790
- _defineProperty(this, "pcuy", function () {
18790
+ _defineProperty(this, "YrUN", function () {
18791
18791
  if (_this.enable_marketing) {
18792
18792
  var marketingContainer = document.createElement("div");
18793
18793
  marketingContainer.classList.add("apx-inapp-marketing".concat(_this.cssPostFix));
@@ -19040,7 +19040,7 @@
19040
19040
  }, {
19041
19041
  key: "_setStyles",
19042
19042
  value: function _setStyles() {
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.IrSW(), " \n ").concat(this._getProgressBarStyles(), "\n ").concat(this._getBootstrapiconsStyles(), " \n ").replaceAll("\n", "").replace(/[\s]{2,999}/g, "");
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, "");
19044
19044
  var styleNode = document.createElement("style");
19045
19045
  styleNode.setAttribute("id", "apxor-style-" + this.configId);
19046
19046
  styleNode.innerHTML = styles;
@@ -19517,7 +19517,7 @@
19517
19517
  this._setCloseButton();
19518
19518
 
19519
19519
  //Set the Marketing content
19520
- this.pcuy();
19520
+ this.YrUN();
19521
19521
  }
19522
19522
 
19523
19523
  /**
@@ -19722,7 +19722,7 @@
19722
19722
  var form = document.querySelector(".apx-inapp-form-container".concat(this.cssPostFix));
19723
19723
  form.addEventListener("submit", function (e) {
19724
19724
  e.preventDefault();
19725
- var _this4$generateRespon = _this4.NTBD(_this4.form.elements),
19725
+ var _this4$generateRespon = _this4.Ghij(_this4.form.elements),
19726
19726
  obj = _this4$generateRespon.obj,
19727
19727
  callback = _this4$generateRespon.callback;
19728
19728
  var evalString = "(obj)=>" + callback + "(obj)";
@@ -20048,45 +20048,49 @@
20048
20048
  video.requestPictureInPicture().then(function () {
20049
20049
  video.play();
20050
20050
  })["catch"](function (error) {
20051
+ var _window$ApxorRTM;
20051
20052
  Logger.error("Can't show PIP:".concat(error));
20052
- window.Apxor.logAppEvent("apx_video_inapp_failed", JSON.stringify({
20053
+ (_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_video_inapp_failed", {
20053
20054
  campaignName: _this2.name,
20054
20055
  id: _this2.configId,
20055
20056
  failureReason: error
20056
- }));
20057
+ });
20057
20058
  hideCallback();
20058
20059
  });
20059
20060
  };
20060
20061
  video.onabort = function () {
20062
+ var _window$ApxorRTM2;
20061
20063
  Logger.error("Can't show video: resource is not fully loaded");
20062
- window.Apxor.logAppEvent("apx_video_inapp_failed", JSON.stringify({
20064
+ (_window$ApxorRTM2 = window.ApxorRTM) === null || _window$ApxorRTM2 === void 0 || _window$ApxorRTM2.logEvent("apx_video_inapp_failed", {
20063
20065
  campaignName: this.name,
20064
20066
  id: this.configId,
20065
20067
  failureReason: "Can't show video, meta data not loaded"
20066
- }));
20068
+ });
20067
20069
  this.hideCallback();
20068
20070
  };
20069
20071
  video.onstalled = function () {
20072
+ var _window$ApxorRTM3;
20070
20073
  Logger.error("Can't show video: data is unexpectedly not forthcoming");
20071
- window.Apxor.logAppEvent("apx_video_inapp_failed", JSON.stringify({
20074
+ (_window$ApxorRTM3 = window.ApxorRTM) === null || _window$ApxorRTM3 === void 0 || _window$ApxorRTM3.logEvent("apx_video_inapp_failed", {
20072
20075
  campaignName: this.name,
20073
20076
  id: this.configId,
20074
20077
  failureReason: "Can't show video, data is unexpectedly not forthcoming"
20075
- }));
20078
+ });
20076
20079
  this.hideCallback();
20077
20080
  };
20078
20081
  } else {
20079
20082
  // As the video player is hidden by default, unhide if the mode is not PIP.
20080
- _this.GXJg();
20083
+ _this.qlGO();
20081
20084
  }
20082
20085
  _this.showCallback();
20083
20086
  } catch (e) {
20087
+ var _window$ApxorRTM4;
20084
20088
  Logger.error("Can't show video:".concat(e));
20085
- window.Apxor.logAppEvent("apx_video_inapp_failed", JSON.stringify({
20089
+ (_window$ApxorRTM4 = window.ApxorRTM) === null || _window$ApxorRTM4 === void 0 || _window$ApxorRTM4.logEvent("apx_video_inapp_failed", {
20086
20090
  campaignName: _this.name,
20087
20091
  id: _this.configId,
20088
20092
  failureReason: e
20089
- }));
20093
+ });
20090
20094
  _this.hideCallback();
20091
20095
  }
20092
20096
  });
@@ -20097,7 +20101,7 @@
20097
20101
  * For portrait - width is set to 50% of the screen and height is auto adjusted based on resolution.
20098
20102
  * For landscape - height is set to 50% of the screen and width is auto adjusted based on resolution.
20099
20103
  */
20100
- _defineProperty(this, "AvhK", function () {
20104
+ _defineProperty(this, "Vjvf", function () {
20101
20105
  var _getHeightWidthFromRe = getHeightWidthFromResolution(_this.video, 1),
20102
20106
  width = _getHeightWidthFromRe.width,
20103
20107
  height = _getHeightWidthFromRe.height;
@@ -20109,7 +20113,7 @@
20109
20113
  * @private
20110
20114
  * @description Removes the video player style element.
20111
20115
  */
20112
- _defineProperty(this, "EBLK", function () {
20116
+ _defineProperty(this, "MXZq", function () {
20113
20117
  var playerStyles = document.getElementById("apx-mpl-styles");
20114
20118
  if (playerStyles) {
20115
20119
  playerStyles.remove();
@@ -20120,7 +20124,7 @@
20120
20124
  * @private
20121
20125
  * @description Attach listeners on the video controls
20122
20126
  */
20123
- _defineProperty(this, "PjLl", function () {
20127
+ _defineProperty(this, "SZZs", function () {
20124
20128
  // Listener for the video end. Display the CTA's when the video ends.
20125
20129
  _this.videoElement.addEventListener("ended", function () {
20126
20130
  var ctaButtons = document.getElementById("apx-cta-btn");
@@ -20140,6 +20144,7 @@
20140
20144
  // If the play button is clicked again, the CTA buttons should be removed.
20141
20145
  _this.videoElement.addEventListener("play", function () {
20142
20146
  if (!_this.inAppShown) {
20147
+ var _window$ApxorRTM5;
20143
20148
  // Initialize the fields to keep the track of aditional info required for logging events.
20144
20149
  _this.minimisedCount = 0;
20145
20150
  _this.maximisedCount = 0;
@@ -20151,7 +20156,7 @@
20151
20156
  _this.slotStartTime = 0; // to tract the start time of the minimize and maximize time slot.
20152
20157
  _this.slotStartTimeVolumeChange = 0; // to track the start time of the volume change time slot.
20153
20158
 
20154
- window.Apxor.logAppEvent("inapp_shown", JSON.stringify({
20159
+ (_window$ApxorRTM5 = window.ApxorRTM) === null || _window$ApxorRTM5 === void 0 || _window$ApxorRTM5.logEvent("inapp_shown", {
20155
20160
  message_name: _this.name,
20156
20161
  visibleScreen: location.pathname,
20157
20162
  inappType: "PIP Inapp",
@@ -20161,7 +20166,7 @@
20161
20166
  videoDuration: Math.round(_this.videoElement.duration),
20162
20167
  videoResolution: "".concat(_this.videoElement.videoWidth, "x").concat(_this.videoElement.videoHeight),
20163
20168
  videoConfiguration: "Streaming"
20164
- }));
20169
+ });
20165
20170
  _this.inAppShown = true;
20166
20171
  }
20167
20172
  if (_this.videoElement.currentTime === 0 || _this.videoElement.currentTime === _this.videoElement.duration) {
@@ -20178,13 +20183,14 @@
20178
20183
  _this.videoElement.addEventListener("fullscreenchange", function () {
20179
20184
  _this.slotEndTime = _this.videoElement.currentTime;
20180
20185
  if (document.fullscreenElement) {
20186
+ var _window$ApxorRTM6;
20181
20187
  _this.maximisedCount++;
20182
20188
  _this.durationMinimised = Math.round(_this.slotEndTime) - Math.round(_this.slotStartTime);
20183
20189
  if (_this.videoElement.currentTime !== _this.videoElement.duration) {
20184
20190
  _this.totalDurationMinimised += _this.durationMinimised;
20185
20191
  _this.durationMinimisedSlots.push("".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)));
20186
20192
  }
20187
- window.Apxor.logAppEvent("apx_video_inapp_maximised", JSON.stringify({
20193
+ (_window$ApxorRTM6 = window.ApxorRTM) === null || _window$ApxorRTM6 === void 0 || _window$ApxorRTM6.logEvent("apx_video_inapp_maximised", {
20188
20194
  message_name: _this.name,
20189
20195
  durationMinimised: _this.durationMinimised,
20190
20196
  durationSlotMinimised: "".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)),
@@ -20192,15 +20198,16 @@
20192
20198
  totalDurationWatched: Math.round(_this.totalDurationMinimised),
20193
20199
  totalDurationWatchedSlot: _this.durationMinimisedSlots,
20194
20200
  maximisedCount: _this.maximisedCount
20195
- }));
20201
+ });
20196
20202
  } else {
20203
+ var _window$ApxorRTM7;
20197
20204
  _this.durationMaximised = Math.round(_this.slotEndTime) - Math.round(_this.slotStartTime);
20198
20205
  _this.minimisedCount++;
20199
20206
  if (_this.videoElement.currentTime !== _this.videoElement.duration) {
20200
20207
  _this.totalDurationMaximised += _this.durationMaximised;
20201
20208
  _this.durationMaximisedSlots.push("".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)));
20202
20209
  }
20203
- window.Apxor.logAppEvent("apx_video_inapp_minimised", JSON.stringify({
20210
+ (_window$ApxorRTM7 = window.ApxorRTM) === null || _window$ApxorRTM7 === void 0 || _window$ApxorRTM7.logEvent("apx_video_inapp_minimised", {
20204
20211
  message_name: _this.name,
20205
20212
  durationMaximised: _this.durationMaximised,
20206
20213
  durationSlotMaximised: "".concat(Math.round(_this.slotStartTime), "-").concat(Math.round(_this.slotEndTime)),
@@ -20208,20 +20215,21 @@
20208
20215
  totalDurationWatched: Math.round(_this.totalDurationMaximised),
20209
20216
  totalDurationWatchedSlot: _this.durationMaximisedSlots,
20210
20217
  minimisedCount: _this.minimisedCount
20211
- }));
20218
+ });
20212
20219
  }
20213
20220
  _this.slotStartTime = _this.videoElement.currentTime;
20214
20221
  });
20215
20222
  _this.videoElement.addEventListener("volumechange", function () {
20216
20223
  if (!isNaN(_this.slotStartTimeVolumeChange)) {
20224
+ var _window$ApxorRTM8;
20217
20225
  _this.volumeClickedCount++;
20218
- window.Apxor.logAppEvent("apx_video_inapp_volume_button_clicked", JSON.stringify({
20226
+ (_window$ApxorRTM8 = window.ApxorRTM) === null || _window$ApxorRTM8 === void 0 || _window$ApxorRTM8.logEvent("apx_video_inapp_volume_button_clicked", {
20219
20227
  message_name: _this.name,
20220
20228
  id: _this.configId,
20221
20229
  actionPerformed: _this.videoElement.muted ? "mute" : "unmute",
20222
20230
  totalDurationWatchedSlot: "".concat(Math.round(_this.slotStartTimeVolumeChange), "-").concat(Math.round(_this.videoElement.currentTime)),
20223
20231
  totalDurationWatched: Math.round(_this.videoElement.currentTime) - Math.round(_this.slotStartTimeVolumeChange)
20224
- }));
20232
+ });
20225
20233
  _this.slotStartTimeVolumeChange = _this.videoElement.currentTime;
20226
20234
  }
20227
20235
  });
@@ -20231,7 +20239,7 @@
20231
20239
  * @private
20232
20240
  * @description Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
20233
20241
  */
20234
- _defineProperty(this, "WzKs", function () {
20242
+ _defineProperty(this, "ULkp", function () {
20235
20243
  var _this$terminationConf;
20236
20244
  if (_this.mode === "PIP" && !((_this$terminationConf = _this.terminationConfig) !== null && _this$terminationConf !== void 0 && _this$terminationConf.auto_dismiss)) {
20237
20245
  // On Exit of the PIP,
@@ -20271,7 +20279,7 @@
20271
20279
  * @private Sets the custom controls on the video player.
20272
20280
  * PIP and close are the custom controls that are created and positions on the video.
20273
20281
  */
20274
- _defineProperty(this, "DkQa", function () {
20282
+ _defineProperty(this, "FYKO", function () {
20275
20283
  _this.enable_close_button;
20276
20284
  if (_this.enable_close_button) {
20277
20285
  var closeButton = document.createElement("span");
@@ -20318,21 +20326,21 @@
20318
20326
  * @function hideVideoPlayer
20319
20327
  * @description Sets the visibility of the video player to hidden.
20320
20328
  */
20321
- _defineProperty(this, "Aacc", function () {
20329
+ _defineProperty(this, "rupR", function () {
20322
20330
  _this.videoPlayer.classList.add("apx-video-hide-elmt".concat(_this.cssPostFix));
20323
20331
  });
20324
20332
  /**
20325
20333
  * @function unhideVideoPlayer
20326
20334
  * @description Unhides video player.
20327
20335
  */
20328
- _defineProperty(this, "GXJg", function () {
20336
+ _defineProperty(this, "qlGO", function () {
20329
20337
  _this.videoPlayer.classList.remove("apx-video-hide-elmt".concat(_this.cssPostFix));
20330
20338
  });
20331
20339
  /**
20332
20340
  * @function getVideoElement
20333
20341
  * @returns {HTMLElement} Video ekement
20334
20342
  */
20335
- _defineProperty(this, "gHbQ", function () {
20343
+ _defineProperty(this, "UFZT", function () {
20336
20344
  return _this.videoElement;
20337
20345
  });
20338
20346
  this.videoPlayer = null;
@@ -20384,7 +20392,7 @@
20384
20392
  this.videoPlayer.style.backgroundColor = this.bg_color;
20385
20393
 
20386
20394
  // Video has a resolution, not deviating from the resolution set the height and width.
20387
- this.AvhK();
20395
+ this.Vjvf();
20388
20396
  //Generate the styles and add them to the document head.
20389
20397
  this._setVideoPlayerStyles();
20390
20398
  //Set the position of the video player with in the 5 possible positions.
@@ -20392,16 +20400,16 @@
20392
20400
  //Create a video element,set the source and add to the container.
20393
20401
  this._setPlayerContent();
20394
20402
  //Set the listeners on the video control buttons.
20395
- this.PjLl();
20403
+ this.SZZs();
20396
20404
  //Attach listeners for the PIP toggle. i.e. for the PIP enter and PIP exit
20397
- this.WzKs();
20405
+ this.ULkp();
20398
20406
  //Set the custom close and PIP controls. Not using the defaults from the html video element.
20399
20407
  //Reason - We want to position them at the top right and left positions.
20400
- this.DkQa();
20408
+ this.FYKO();
20401
20409
  //Generate and postion the CTA buttons on the video. By default hidden, visible only when video is completed
20402
20410
  this._setButtons(BUTTON_CONTAINER_POSITION.CENTER);
20403
20411
  //Hide the video player. Display it based on the video mode. Videoplayer for "video" mode and a direct PIP for "PIP" mode.
20404
- this.Aacc();
20412
+ this.rupR();
20405
20413
  //If the auto dismiss is enabled, sets the timeout to call the InApp close.
20406
20414
  this._setAutoTerminate();
20407
20415
  document.body.appendChild(this.videoPlayer);
@@ -20505,6 +20513,7 @@
20505
20513
  function _onClose() {
20506
20514
  var closeButtonName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "web_minimise_x_clicked";
20507
20515
  try {
20516
+ var _window$ApxorRTM10;
20508
20517
  if (this.inAppShown) {
20509
20518
  if (!document.fullscreenElement) {
20510
20519
  this.totalDurationMinimised += Math.round(this.videoElement.currentTime) - Math.round(this.slotStartTime);
@@ -20515,17 +20524,18 @@
20515
20524
  }
20516
20525
  }
20517
20526
  this.videoPlayer.remove();
20518
- this.EBLK();
20527
+ this.MXZq();
20519
20528
  if (closeButtonName !== "auto_dismiss") {
20520
- window.Apxor.logAppEvent("apx_video_inapp_close_button_clicked", JSON.stringify({
20529
+ var _window$ApxorRTM9;
20530
+ (_window$ApxorRTM9 = window.ApxorRTM) === null || _window$ApxorRTM9 === void 0 || _window$ApxorRTM9.logEvent("apx_video_inapp_close_button_clicked", {
20521
20531
  message_name: this.name,
20522
20532
  id: this.configId,
20523
20533
  totalDurationWatchedSlot: "0-".concat(Math.round(this.videoElement.currentTime)),
20524
20534
  totalDurationWatched: Math.round(this.videoElement.currentTime),
20525
20535
  closeButtonName: closeButtonName
20526
- }));
20536
+ });
20527
20537
  }
20528
- window.Apxor.logAppEvent("apx_inapp_dismissed", JSON.stringify({
20538
+ (_window$ApxorRTM10 = window.ApxorRTM) === null || _window$ApxorRTM10 === void 0 || _window$ApxorRTM10.logEvent("apx_inapp_dismissed", {
20529
20539
  campaignName: this.name,
20530
20540
  id: this.configId,
20531
20541
  totalDurationWatched: Math.round(this.videoElement.currentTime),
@@ -20540,7 +20550,7 @@
20540
20550
  inappType: "PIP Inapp",
20541
20551
  apx_completed: this.videoElement.currentTime === this.videoElement.duration ? true : false,
20542
20552
  apx_completion_percentage: this.videoElement.currentTime / this.videoElement.duration
20543
- }));
20553
+ });
20544
20554
  this.hideCallback("cancel");
20545
20555
  } catch (e) {
20546
20556
  console.log("Error \n ".concat(e, " \n occured while closing the video"));
@@ -20563,6 +20573,7 @@
20563
20573
  if (this.buttons.enable_top || this.buttons.enable_center || this.buttons.enable_bottom) {
20564
20574
  var removeCallback = function removeCallback(isCancel, action, index) {
20565
20575
  try {
20576
+ var _window$ApxorRTM11;
20566
20577
  var button;
20567
20578
  if (_this3.buttons.enable_top && _this3.buttons.top.length > 0) {
20568
20579
  button = _this3.buttons.top;
@@ -20573,7 +20584,7 @@
20573
20584
  if (_this3.buttons.enable_bottom && _this3.buttons.bottom.length) {
20574
20585
  button = _this3.buttons.bottom;
20575
20586
  }
20576
- window.Apxor.logAppEvent("apx_video_inapp_button_clicked", JSON.stringify({
20587
+ (_window$ApxorRTM11 = window.ApxorRTM) === null || _window$ApxorRTM11 === void 0 || _window$ApxorRTM11.logEvent("apx_video_inapp_button_clicked", {
20577
20588
  buttonName: button.at(index).text.text,
20578
20589
  redirection: button.at(index).action.type,
20579
20590
  totalDurationWatched: Math.round(_this3.videoElement.currentTime),
@@ -20581,9 +20592,9 @@
20581
20592
  id: _this3.configId,
20582
20593
  totalDurationWatchedSlot: "0-".concat(Math.round(_this3.videoElement.currentTime)),
20583
20594
  replayCount: _this3.replayCount
20584
- }));
20595
+ });
20585
20596
  _this3.videoPlayer.remove();
20586
- _this3.EBLK();
20597
+ _this3.MXZq();
20587
20598
  _this3.hideCallback();
20588
20599
  } catch (e) {
20589
20600
  console.log("Can't close the video player\n".concat(e));
@@ -20676,10 +20687,10 @@
20676
20687
  try {
20677
20688
  var _window;
20678
20689
  (_window = window) === null || _window === void 0 || (_window = _window.ApxorLogger) === null || _window === void 0 || _window.debug("called showEmbedCards");
20679
- var element = _this.FHhB(_this.layout);
20680
- _this.Txlk();
20690
+ var element = _this.QrCq(_this.layout);
20691
+ _this.GVvf();
20681
20692
  window.onresize = function () {
20682
- _this.KXvL();
20693
+ _this.Kitu();
20683
20694
  };
20684
20695
  var rootContainer = document.createElement("div");
20685
20696
  rootContainer.style.display = "flex";
@@ -20689,7 +20700,7 @@
20689
20700
  var styleElement = document.createElement("style");
20690
20701
  styleElement.innerHTML = _this.styleContent;
20691
20702
  document.head.appendChild(styleElement);
20692
- _this.rEHS(_this.termination);
20703
+ _this.QOPs(_this.termination);
20693
20704
  try {
20694
20705
  eval(_this.script);
20695
20706
  } catch (e) {
@@ -20701,22 +20712,22 @@
20701
20712
  _this.intervalToCheckVideoStatus = setInterval(function () {
20702
20713
  _this.waitInterval = _this.waitInterval - 1;
20703
20714
  if (_this.waitInterval === 0) {
20704
- var _window3;
20715
+ var _window$ApxorRTM, _window3;
20705
20716
  clearInterval(_this.intervalToCheckVideoStatus);
20706
- window.Apxor.logAppEvent("apx_nudge_not_shown", JSON.stringify({
20717
+ (_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
20707
20718
  campaignName: _this.name,
20708
20719
  id: _this.configId,
20709
20720
  apx_nudge_type: "sticky_card",
20710
20721
  apx_notshown_type: "error",
20711
20722
  apx_reason: "provided video doesn't exists"
20712
- }));
20723
+ });
20713
20724
  window.onresize = null;
20714
20725
  (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.ApxorWidget) === null || _window3 === void 0 || _window3.removeEmbedCard(_this.configId);
20715
20726
  _this.waitInterval = 30;
20716
20727
  }
20717
- if (_this.taZM()) {
20728
+ if (_this.BhLQ()) {
20718
20729
  _this.waitInterval = 30;
20719
- _this.KXvL();
20730
+ _this.Kitu();
20720
20731
  clearInterval(_this.intervalToCheckVideoStatus);
20721
20732
  }
20722
20733
  }, 100);
@@ -20727,10 +20738,10 @@
20727
20738
  clearInterval(_this.intervalToCheckImgStatus);
20728
20739
  _this.waitInterval = 30;
20729
20740
  }
20730
- if (_this.cIIu()) {
20741
+ if (_this.wMuZ()) {
20731
20742
  _this.waitInterval = 30;
20732
20743
  clearInterval(_this.intervalToCheckImgStatus);
20733
- _this.videoElements.length > 0 ? videoStatusCheck() : _this.KXvL();
20744
+ _this.videoElements.length > 0 ? videoStatusCheck() : _this.Kitu();
20734
20745
  }
20735
20746
  }, 100);
20736
20747
  } catch (e) {
@@ -20739,13 +20750,13 @@
20739
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));
20740
20751
  }
20741
20752
  });
20742
- _defineProperty(this, "Txlk", function () {
20753
+ _defineProperty(this, "GVvf", function () {
20743
20754
  var EmbeddedCardsStyles = document.createElement("style");
20744
20755
  EmbeddedCardsStyles.innerHTML = _this.initialStyles;
20745
20756
  EmbeddedCardsStyles.setAttribute("apx-tooltip-styles", "");
20746
20757
  document.head.appendChild(EmbeddedCardsStyles);
20747
20758
  });
20748
- _defineProperty(this, "FHhB", function (config) {
20759
+ _defineProperty(this, "QrCq", function (config) {
20749
20760
  var _window$Apxor;
20750
20761
  var element;
20751
20762
  switch (config.type) {
@@ -20822,32 +20833,44 @@
20822
20833
  case "activity":
20823
20834
  case "ir":
20824
20835
  element.onclick = function (e) {
20836
+ var _e$target$getAttribut, _e$target, _e$target$getAttribut2;
20825
20837
  e.stopPropagation();
20826
20838
  window.Apxor.redirect(JSON.stringify(action));
20827
20839
  var additional_info = {
20828
20840
  campaignName: _this.name,
20829
20841
  id: _this.configId,
20830
- 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 : ""
20831
20844
  };
20832
20845
  if (e.target.tagName === "BUTTON") {
20846
+ var _window$ApxorRTM2;
20833
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);
20834
20852
  }
20835
- window.Apxor.logAppEvent("apx_nudge_CTA_clicked", JSON.stringify(additional_info));
20836
20853
  };
20837
20854
  break;
20838
20855
  case "show-video":
20839
20856
  element.onclick = function (e) {
20857
+ var _e$target$getAttribut3, _e$target2, _e$target2$getAttribu;
20840
20858
  e.stopPropagation();
20841
20859
  window.Apxor.showVideoInApp(_this.configId, _this.name, action.url);
20842
20860
  var additional_info = {
20843
20861
  campaignName: _this.name,
20844
20862
  id: _this.configId,
20845
- apx_nudge_type: "sticky_card"
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 : ""
20846
20865
  };
20847
20866
  if (e.target.tagName === "BUTTON") {
20867
+ var _window$ApxorRTM4;
20848
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);
20849
20873
  }
20850
- window.Apxor.logAppEvent("apx_nudge_CTA_clicked", JSON.stringify(additional_info));
20851
20874
  };
20852
20875
  break;
20853
20876
  case "cancel":
@@ -20883,6 +20906,7 @@
20883
20906
  break;
20884
20907
  case "copy-content":
20885
20908
  element.onclick = function (e) {
20909
+ var _e$target$getAttribut4, _e$target3, _e$target3$getAttribu;
20886
20910
  e.stopPropagation();
20887
20911
  var textToCopy = action === null || action === void 0 ? void 0 : action.content;
20888
20912
  var tempInput = document.createElement("input");
@@ -20891,6 +20915,20 @@
20891
20915
  tempInput.select();
20892
20916
  document.execCommand("copy");
20893
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
+ }
20894
20932
  };
20895
20933
  break;
20896
20934
  case "log-app-event":
@@ -20910,7 +20948,7 @@
20910
20948
  if (config.absolute_position_children && config.absolute_position_children.length > 0) {
20911
20949
  element.style.position = "relative";
20912
20950
  config.absolute_position_children.forEach(function (childConfig) {
20913
- var childElement = _this.OKHv(childConfig);
20951
+ var childElement = _this.jtyP(childConfig);
20914
20952
  childElement.style.position = "absolute";
20915
20953
  for (var _prop in childConfig.offset) {
20916
20954
  childElement.style[_prop] = childConfig.offset[_prop];
@@ -20928,7 +20966,7 @@
20928
20966
  // }
20929
20967
 
20930
20968
  config.children.forEach(function (childConfig) {
20931
- var childElement = _this.FHhB(childConfig);
20969
+ var childElement = _this.QrCq(childConfig);
20932
20970
  element.appendChild(childElement);
20933
20971
  });
20934
20972
  }
@@ -20954,7 +20992,7 @@
20954
20992
  }
20955
20993
  return element;
20956
20994
  });
20957
- _defineProperty(this, "rEHS", function (config) {
20995
+ _defineProperty(this, "QOPs", function (config) {
20958
20996
  config.forEach(function (id) {
20959
20997
  var element = document.getElementById(id);
20960
20998
  if (element) {
@@ -20962,23 +21000,26 @@
20962
21000
  }
20963
21001
  });
20964
21002
  });
20965
- _defineProperty(this, "cIIu", function () {
21003
+ _defineProperty(this, "wMuZ", function () {
20966
21004
  return _this.imageElements.every(function (img) {
20967
21005
  return img.complete;
20968
21006
  });
20969
21007
  });
20970
- _defineProperty(this, "taZM", function () {
21008
+ _defineProperty(this, "BhLQ", function () {
20971
21009
  return _this.videoElements.every(function (video) {
20972
21010
  return video.readyState >= 3;
20973
21011
  });
20974
21012
  });
20975
- _defineProperty(this, "KXvL", function () {
21013
+ _defineProperty(this, "Kitu", function () {
20976
21014
  var _window6, _window7;
20977
21015
  var width = window.document.querySelector("html").offsetWidth;
20978
21016
  var height = window.document.querySelector("html").offsetHeight;
20979
21017
  (_window6 = window) === null || _window6 === void 0 || (_window6 = _window6.ApxorWidget) === null || _window6 === void 0 || _window6.setDimensions(width, height);
20980
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));
20981
- _this.showCallback();
21019
+ if (width > 0 && height > 0 && !_this.loggedNudgeShownEvent) {
21020
+ _this.showCallback();
21021
+ _this.loggedNudgeShownEvent = true;
21022
+ }
20982
21023
  });
20983
21024
  this.configId = configId;
20984
21025
  this.name = name;
@@ -20993,21 +21034,22 @@
20993
21034
  this.videoElements = [];
20994
21035
  this.intervalToCheckImgStatus;
20995
21036
  this.waitInterval = 30;
21037
+ this.loggedNudgeShownEvent = false;
20996
21038
  });
20997
21039
 
20998
21040
  var RTM = /*#__PURE__*/_createClass(function RTM() {
20999
21041
  var _this = this;
21000
21042
  _classCallCheck(this, RTM);
21001
- _defineProperty(this, "LikI", {});
21043
+ _defineProperty(this, "ZeeY", {});
21002
21044
  _defineProperty(this, "isShowingAction", false);
21003
21045
  _defineProperty(this, "currentAction", null);
21004
- _defineProperty(this, "WliE", null);
21005
- _defineProperty(this, "version", 60);
21046
+ _defineProperty(this, "XhLY", null);
21047
+ _defineProperty(this, "version", 61);
21006
21048
  _defineProperty(this, "isInitialised", false);
21007
- _defineProperty(this, "KMXd", {});
21008
- _defineProperty(this, "aAuZ", false);
21049
+ _defineProperty(this, "bBhw", {});
21050
+ _defineProperty(this, "QDeD", false);
21009
21051
  _defineProperty(this, "_isShownECCalled", false);
21010
- _defineProperty(this, "NBcm", function () {
21052
+ _defineProperty(this, "DuFv", function () {
21011
21053
  _this.isInitialised = true;
21012
21054
  var oldPushState = history.pushState;
21013
21055
  history.pushState = function pushState() {
@@ -21032,7 +21074,7 @@
21032
21074
  });
21033
21075
  _defineProperty(this, "show", function (uiJson, duration, uuid, name) {
21034
21076
  if (!_this.isInitialised) {
21035
- _this.NBcm();
21077
+ _this.DuFv();
21036
21078
  }
21037
21079
  window.addEventListener("pagehide", function () {
21038
21080
  var _window$Apxor, _window$Apxor$pageUnl;
@@ -21059,7 +21101,7 @@
21059
21101
  } else if (ui_config.display_type === "new-inline" || ui_config.action_class === "tooltip_builder") {
21060
21102
  _this.createInLineToolTip(ui_config, duration, uuid, name, ui_config.action_class === "tooltip_builder" ? "tooltip_builder" : "new-inline");
21061
21103
  } else if (ui_config.display_type === "coach_mark_v2") {
21062
- _this.iPLW(ui_config, duration, uuid, name);
21104
+ _this.QCTE(ui_config, duration, uuid, name);
21063
21105
  } else {
21064
21106
  showCoachmarkWithDelay(_this, ui_config, {
21065
21107
  configId: uuid,
@@ -21128,23 +21170,23 @@
21128
21170
  var ui_config = JSON.parse(config);
21129
21171
  _this.createembedCards(ui_config, configId, name);
21130
21172
  } catch (e) {
21131
- var _window11;
21132
- window.Apxor.logAppEvent("apx_nudge_not_shown", JSON.stringify({
21173
+ var _window$ApxorRTM, _window11;
21174
+ (_window$ApxorRTM = window.ApxorRTM) === null || _window$ApxorRTM === void 0 || _window$ApxorRTM.logEvent("apx_nudge_not_shown", {
21133
21175
  campaignName: name,
21134
21176
  id: configId,
21135
21177
  apx_nudge_type: "sticky_card",
21136
21178
  apx_notshown_type: "error",
21137
21179
  apx_reason: "".concat(e === null || e === void 0 ? void 0 : e.name, " ").concat(e === null || e === void 0 ? void 0 : e.message)
21138
- }));
21180
+ });
21139
21181
  console.error(e);
21140
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));
21141
21183
  }
21142
21184
  });
21143
21185
  _defineProperty(this, "createembedCards", function (config, configId, name) {
21144
21186
  var cardsContainer = new EmbedCards(config, configId, name, function () {
21145
- var _window12;
21187
+ var _window12, _window$ApxorRTM2;
21146
21188
  (_window12 = window) === null || _window12 === void 0 || (_window12 = _window12.ApxorLogger) === null || _window12 === void 0 || _window12.debug("successfully showing the nudge");
21147
- (config === null || config === void 0 ? void 0 : config.initialRender) && window.Apxor.logAppEvent("apx_nudge_shown", JSON.stringify({
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", {
21148
21190
  campaignName: name,
21149
21191
  id: configId,
21150
21192
  apx_nudge_type: "sticky_card"
@@ -21194,7 +21236,7 @@
21194
21236
  var _window19, _window19$updateFlag, _window20;
21195
21237
  _this.isShowingAction = false;
21196
21238
  _this.currentAction = null;
21197
- _this.WliE = null;
21239
+ _this.XhLY = null;
21198
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);
21199
21241
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
21200
21242
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -21205,21 +21247,21 @@
21205
21247
  }
21206
21248
  };
21207
21249
  if (action_class === "new-inline") {
21208
- _this.WliE = new InLineTooltip(ui_config, [], [], terminationConfig, {
21250
+ _this.XhLY = new InLineTooltip(ui_config, [], [], terminationConfig, {
21209
21251
  configId: uuid,
21210
21252
  configName: name
21211
21253
  }, _this, onShow, onHide, function () {}, false, 0);
21212
21254
  } else if (action_class === "tooltip_builder") {
21213
- _this.WliE = new NewInLineTooltip(ui_config, terminationConfig, {
21255
+ _this.XhLY = new NewInLineTooltip(ui_config, terminationConfig, {
21214
21256
  configId: uuid,
21215
21257
  configName: name
21216
21258
  }, _this, onShow, onHide);
21217
21259
  }
21218
21260
  setTimeout(function () {
21219
- _this.WliE.createNewTooltip();
21261
+ _this.XhLY.createNewTooltip();
21220
21262
  }, ui_config.delay);
21221
21263
  });
21222
- _defineProperty(this, "iPLW", function (ui_config, duration, uuid, name) {
21264
+ _defineProperty(this, "QCTE", function (ui_config, duration, uuid, name) {
21223
21265
  var terminationConfig = {};
21224
21266
  terminationConfig["auto_dismiss"] = duration > 0;
21225
21267
  terminationConfig["duration"] = duration;
@@ -21243,7 +21285,7 @@
21243
21285
  var _window24, _window24$updateFlag, _window25;
21244
21286
  _this.isShowingAction = false;
21245
21287
  _this.currentAction = null;
21246
- _this.WliE = null;
21288
+ _this.XhLY = null;
21247
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);
21248
21290
  if (window.Apxor && window.Apxor.logActionEvent && !isCancelled) {
21249
21291
  window.Apxor.logActionEvent("inline_dismissed", uuid, name);
@@ -21256,8 +21298,8 @@
21256
21298
  _this._currentCoachmark.createNewCoachMark();
21257
21299
  });
21258
21300
  _defineProperty(this, "updateElementPositionOnScroll", function (top, left, height, width) {
21259
- if (_this.WliE) {
21260
- _this.WliE.updateElementPositionOnScroll(top, left, height, width);
21301
+ if (_this.XhLY) {
21302
+ _this.XhLY.updateElementPositionOnScroll(top, left, height, width);
21261
21303
  }
21262
21304
  });
21263
21305
  _defineProperty(this, "createInAppVideo", function (config, duration, configId, name) {
@@ -21352,10 +21394,10 @@
21352
21394
  });
21353
21395
  _defineProperty(this, "showPlaceHolder", function () {
21354
21396
  var _window33;
21355
- if (_this.aAuZ) {
21397
+ if (_this.QDeD) {
21356
21398
  return;
21357
21399
  }
21358
- _this.aAuZ = true;
21400
+ _this.QDeD = true;
21359
21401
  var ele = document.createElement("div");
21360
21402
  ele.innerHTML = "place your immersive card here";
21361
21403
  ele.style.backgroundColor = "#f5f5f5";
@@ -21367,11 +21409,19 @@
21367
21409
  document.body.appendChild(ele);
21368
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);
21369
21411
  });
21370
- } // createSurvey = (config, configId, name) => {
21371
- // const survey_obj = new NewSurveys(configId, name, config, []);
21372
- // survey_obj.createSurvey();
21373
- // };
21374
- );
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
+ }
21423
+ });
21424
+ });
21375
21425
 
21376
21426
  /* eslint-disable no-empty */
21377
21427
  var rtm = new RTM();