apxor-qe 2.0.1 → 2.0.2

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.
@@ -308,7 +308,7 @@
308
308
  var toUpperCase = function toUpperCase(key) {
309
309
  return key.toUpperCase();
310
310
  };
311
- var tPTd = function tPTd(actual, expected, operator) {
311
+ var wayp = function wayp(actual, expected, operator) {
312
312
  switch (operator) {
313
313
  case "EQ":
314
314
  return actual === expected;
@@ -418,14 +418,14 @@
418
418
  };
419
419
  var isTimeBetween = function isTimeBetween(startTime, endTime, currentTime) {
420
420
  // Extract hours and minutes from the time strings
421
- var pakd$split$map = startTime.split(":").map(Number),
422
- pakd$split$map2 = _slicedToArray(pakd$split$map, 2),
423
- startHour = pakd$split$map2[0],
424
- startMinute = pakd$split$map2[1];
425
- var wrcD$split$map = endTime.split(":").map(Number),
426
- wrcD$split$map2 = _slicedToArray(wrcD$split$map, 2),
427
- endHour = wrcD$split$map2[0],
428
- endMinute = wrcD$split$map2[1];
421
+ var efVC$split$map = startTime.split(":").map(Number),
422
+ efVC$split$map2 = _slicedToArray(efVC$split$map, 2),
423
+ startHour = efVC$split$map2[0],
424
+ startMinute = efVC$split$map2[1];
425
+ var EWBW$split$map = endTime.split(":").map(Number),
426
+ EWBW$split$map2 = _slicedToArray(EWBW$split$map, 2),
427
+ endHour = EWBW$split$map2[0],
428
+ endMinute = EWBW$split$map2[1];
429
429
  var _currentTime$split$ma = currentTime.split(":").map(Number),
430
430
  _currentTime$split$ma2 = _slicedToArray(_currentTime$split$ma, 2),
431
431
  currentHour = _currentTime$split$ma2[0],
@@ -628,7 +628,7 @@
628
628
  path = path.substring(0, index) + "svg:svg";
629
629
  }
630
630
  try {
631
- return document.ndZk(path, document, function (prefix) {
631
+ return document.yCUX(path, document, function (prefix) {
632
632
  if (prefix === "svg") {
633
633
  return "http://www.w3.org/2000/svg";
634
634
  } else {
@@ -720,18 +720,18 @@
720
720
  var Audience = /*#__PURE__*/_createClass(function Audience() {
721
721
  var _this = this;
722
722
  _classCallCheck(this, Audience);
723
- _defineProperty(this, "OPHn", "ALL");
724
- _defineProperty(this, "NlEC", []);
725
- _defineProperty(this, "bDYc", []);
723
+ _defineProperty(this, "PToU", "ALL");
724
+ _defineProperty(this, "hKLb", []);
725
+ _defineProperty(this, "byZv", []);
726
726
  _defineProperty(this, "userAttributesValidated", true);
727
727
  _defineProperty(this, "sessionAttributeValidated", true);
728
728
  _defineProperty(this, "parse", function () {
729
729
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
730
730
  try {
731
- _this.OPHn = config.audience.audience_type;
732
- _this.NlEC = config.audience.attributes.user;
733
- _this.bDYc = config.audience.attributes.session;
734
- if (!Array.isArray(_this.NlEC) || !Array.isArray(_this.bDYc)) {
731
+ _this.PToU = config.audience.audience_type;
732
+ _this.hKLb = config.audience.attributes.user;
733
+ _this.byZv = config.audience.attributes.session;
734
+ if (!Array.isArray(_this.hKLb) || !Array.isArray(_this.byZv)) {
735
735
  Logger$1.error("No attributes");
736
736
  return false;
737
737
  }
@@ -743,11 +743,11 @@
743
743
  });
744
744
  _defineProperty(this, "validate", function (user, session) {
745
745
  var status = true;
746
- if (_this.OPHn === "FTU") {
746
+ if (_this.PToU === "FTU") {
747
747
  status = Apxor.getController().getSessionInfo().is_first_session;
748
748
  }
749
- var userAttributesCompare = _this.erQo(user, _this.NlEC);
750
- var sessionAttributesCompare = _this.erQo(session, _this.bDYc);
749
+ var userAttributesCompare = _this.dlBt(user, _this.hKLb);
750
+ var sessionAttributesCompare = _this.dlBt(session, _this.byZv);
751
751
  if (!userAttributesCompare) {
752
752
  _this.userAttributesValidated = false;
753
753
  }
@@ -756,7 +756,7 @@
756
756
  }
757
757
  return status && userAttributesCompare && sessionAttributesCompare;
758
758
  });
759
- _defineProperty(this, "erQo", function (attributes, expected) {
759
+ _defineProperty(this, "dlBt", function (attributes, expected) {
760
760
  var length = expected.length;
761
761
  var status = true;
762
762
  try {
@@ -804,7 +804,7 @@
804
804
  } else if (type === "b") {
805
805
  loggedValue = !!loggedValue;
806
806
  }
807
- return tPTd(loggedValue, configValue, operator);
807
+ return wayp(loggedValue, configValue, operator);
808
808
  });
809
809
  });
810
810
  status = status && match;
@@ -825,15 +825,15 @@
825
825
  var Details = /*#__PURE__*/_createClass(function Details() {
826
826
  var _this = this;
827
827
  _classCallCheck(this, Details);
828
- _defineProperty(this, "rpCx", "");
829
- _defineProperty(this, "tarQ", {});
830
- _defineProperty(this, "MPLc", "");
828
+ _defineProperty(this, "KtUk", "");
829
+ _defineProperty(this, "ovVl", {});
830
+ _defineProperty(this, "IFjF", "");
831
831
  _defineProperty(this, "parse", function () {
832
832
  var details = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
833
833
  try {
834
- _this.rpCx = details.name;
835
- _this.tarQ = details.additional_info;
836
- _this.MPLc = details === null || details === void 0 ? void 0 : details.path;
834
+ _this.KtUk = details.name;
835
+ _this.ovVl = details.additional_info;
836
+ _this.IFjF = details === null || details === void 0 ? void 0 : details.path;
837
837
  } catch (error) {
838
838
  return false;
839
839
  }
@@ -844,14 +844,14 @@
844
844
  var Timebounds = /*#__PURE__*/_createClass(function Timebounds() {
845
845
  var _this = this;
846
846
  _classCallCheck(this, Timebounds);
847
- _defineProperty(this, "yMJa", 0);
848
- _defineProperty(this, "OKRo", 0);
847
+ _defineProperty(this, "MWbe", 0);
848
+ _defineProperty(this, "axkz", 0);
849
849
  _defineProperty(this, "parse", function () {
850
850
  var timeBounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
851
851
  try {
852
- _this.yMJa = Number(timeBounds.lower);
853
- _this.OKRo = Number(timeBounds.upper);
854
- if (isNaN(_this.yMJa) || isNaN(_this.OKRo)) {
852
+ _this.MWbe = Number(timeBounds.lower);
853
+ _this.axkz = Number(timeBounds.upper);
854
+ if (isNaN(_this.MWbe) || isNaN(_this.axkz)) {
855
855
  return false;
856
856
  }
857
857
  } catch (error) {
@@ -864,17 +864,17 @@
864
864
  var PreCondition = /*#__PURE__*/_createClass(function PreCondition() {
865
865
  var _this = this;
866
866
  _classCallCheck(this, PreCondition);
867
- _defineProperty(this, "cbVg", 0);
868
- _defineProperty(this, "NIzW", "");
869
- _defineProperty(this, "ErML", "");
870
- _defineProperty(this, "Aylq", new Details());
871
- _defineProperty(this, "Ocbb", new Timebounds());
867
+ _defineProperty(this, "Lswp", 0);
868
+ _defineProperty(this, "ncqb", "");
869
+ _defineProperty(this, "zlNQ", "");
870
+ _defineProperty(this, "mkdK", new Details());
871
+ _defineProperty(this, "dkTX", new Timebounds());
872
872
  _defineProperty(this, "parse", function () {
873
873
  var precondition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
874
874
  try {
875
- _this.NIzW = precondition.event_type;
876
- _this.ErML = precondition.activity;
877
- return _this.Aylq.parse(precondition.details) && _this.Ocbb.parse(precondition.time_bounds);
875
+ _this.ncqb = precondition.event_type;
876
+ _this.zlNQ = precondition.activity;
877
+ return _this.mkdK.parse(precondition.details) && _this.dkTX.parse(precondition.time_bounds);
878
878
  } catch (error) {
879
879
  return false;
880
880
  }
@@ -885,37 +885,37 @@
885
885
  var Condition = /*#__PURE__*/_createClass(function Condition() {
886
886
  var _this = this;
887
887
  _classCallCheck(this, Condition);
888
- _defineProperty(this, "cbVg", 0);
889
- _defineProperty(this, "eJeT", -1);
890
- _defineProperty(this, "Ruyv", 0);
891
- _defineProperty(this, "NyLm", "");
892
- _defineProperty(this, "ErML", "");
893
- _defineProperty(this, "NIzW", "");
894
- _defineProperty(this, "Ocbb", new Timebounds());
895
- _defineProperty(this, "Aylq", new Details());
896
- _defineProperty(this, "NaPf", new PreCondition());
897
- _defineProperty(this, "unUI", "AND");
898
- _defineProperty(this, "eMFz", false);
899
- _defineProperty(this, "OPHn", void 0);
900
- _defineProperty(this, "jQHK", "");
888
+ _defineProperty(this, "Lswp", 0);
889
+ _defineProperty(this, "LbJG", -1);
890
+ _defineProperty(this, "UeME", 0);
891
+ _defineProperty(this, "uBco", "");
892
+ _defineProperty(this, "zlNQ", "");
893
+ _defineProperty(this, "ncqb", "");
894
+ _defineProperty(this, "dkTX", new Timebounds());
895
+ _defineProperty(this, "mkdK", new Details());
896
+ _defineProperty(this, "WeXB", new PreCondition());
897
+ _defineProperty(this, "ipfv", "AND");
898
+ _defineProperty(this, "YExK", false);
899
+ _defineProperty(this, "PToU", void 0);
900
+ _defineProperty(this, "GKFe", "");
901
901
  _defineProperty(this, "parse", function () {
902
902
  var condition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
903
903
  try {
904
- var ehHx$count_conf, ehHx$count_conf2;
905
- _this.eJeT = condition === null || condition === void 0 ? void 0 : condition.sequence;
904
+ var gUwB$count_conf, gUwB$count_conf2;
905
+ _this.LbJG = condition === null || condition === void 0 ? void 0 : condition.sequence;
906
906
  _this._conditionType = condition === null || condition === void 0 ? void 0 : condition.condition_type;
907
907
  _this._id = condition === null || condition === void 0 ? void 0 : condition._id;
908
908
  _this._eventCategory = condition !== null && condition !== void 0 && condition.event_category ? condition === null || condition === void 0 ? void 0 : condition.event_category : "specific_event";
909
- _this.Ruyv = condition === null || condition === void 0 || (ehHx$count_conf = condition.count_config) === null || ehHx$count_conf === void 0 ? void 0 : ehHx$count_conf.count;
910
- _this.NyLm = condition === null || condition === void 0 || (ehHx$count_conf2 = condition.count_config) === null || ehHx$count_conf2 === void 0 ? void 0 : ehHx$count_conf2.operator;
911
- _this.ErML = condition === null || condition === void 0 ? void 0 : condition.activity;
912
- _this.NIzW = condition === null || condition === void 0 ? void 0 : condition.event_type;
913
- _this.unUI = condition.combine_operator;
909
+ _this.UeME = condition === null || condition === void 0 || (gUwB$count_conf = condition.count_config) === null || gUwB$count_conf === void 0 ? void 0 : gUwB$count_conf.count;
910
+ _this.uBco = condition === null || condition === void 0 || (gUwB$count_conf2 = condition.count_config) === null || gUwB$count_conf2 === void 0 ? void 0 : gUwB$count_conf2.operator;
911
+ _this.zlNQ = condition === null || condition === void 0 ? void 0 : condition.activity;
912
+ _this.ncqb = condition === null || condition === void 0 ? void 0 : condition.event_type;
913
+ _this.ipfv = condition.combine_operator;
914
914
  _this._timeEnabled = condition === null || condition === void 0 ? void 0 : condition.time_enabled;
915
915
  _this._time = condition === null || condition === void 0 ? void 0 : condition.time;
916
- _this.OPHn = condition === null || condition === void 0 ? void 0 : condition.type;
917
- _this.jQHK = condition === null || condition === void 0 ? void 0 : condition.route;
918
- return _this.Aylq.parse(condition === null || condition === void 0 ? void 0 : condition.details) && _this.NaPf.parse(condition.trigger) && _this.Ocbb.parse(condition.time_bounds);
916
+ _this.PToU = condition === null || condition === void 0 ? void 0 : condition.type;
917
+ _this.GKFe = condition === null || condition === void 0 ? void 0 : condition.route;
918
+ return _this.mkdK.parse(condition === null || condition === void 0 ? void 0 : condition.details) && _this.WeXB.parse(condition.trigger) && _this.dkTX.parse(condition.time_bounds);
919
919
  } catch (error) {
920
920
  Logger$2.error(error);
921
921
  return false;
@@ -927,19 +927,19 @@
927
927
  var GoalEvent = /*#__PURE__*/_createClass(function GoalEvent() {
928
928
  var _this = this;
929
929
  _classCallCheck(this, GoalEvent);
930
- _defineProperty(this, "Ruyv", 0);
931
- _defineProperty(this, "NyLm", "");
932
- _defineProperty(this, "NIzW", "");
933
- _defineProperty(this, "Ocbb", new Timebounds());
934
- _defineProperty(this, "Aylq", new Details());
935
- _defineProperty(this, "unUI", "AND");
930
+ _defineProperty(this, "UeME", 0);
931
+ _defineProperty(this, "uBco", "");
932
+ _defineProperty(this, "ncqb", "");
933
+ _defineProperty(this, "dkTX", new Timebounds());
934
+ _defineProperty(this, "mkdK", new Details());
935
+ _defineProperty(this, "ipfv", "AND");
936
936
  _defineProperty(this, "parse", function (data) {
937
937
  try {
938
- _this.Ruyv = data.count_config.count;
939
- _this.NyLm = data.count_config.operator;
940
- _this.NIzW = data.event_type;
941
- _this.unUI = data.combine_operator;
942
- return _this.Aylq.parse(data.details) && _this.Ocbb.parse(data.time_bounds);
938
+ _this.UeME = data.count_config.count;
939
+ _this.uBco = data.count_config.operator;
940
+ _this.ncqb = data.event_type;
941
+ _this.ipfv = data.combine_operator;
942
+ return _this.mkdK.parse(data.details) && _this.dkTX.parse(data.time_bounds);
943
943
  } catch (error) {
944
944
  Logger$3.error(error);
945
945
  return false;
@@ -953,29 +953,29 @@
953
953
  function ConditionValidator() {
954
954
  var _this = this;
955
955
  _classCallCheck(this, ConditionValidator);
956
- _defineProperty(this, "jPoW", 0);
957
- _defineProperty(this, "UMRB", "");
958
- _defineProperty(this, "ehHx", new Condition());
959
- _defineProperty(this, "esOM", new GoalEvent());
960
- _defineProperty(this, "AzGT", false);
961
- _defineProperty(this, "qyAQ", false);
962
- _defineProperty(this, "qwaz", 0);
963
- _defineProperty(this, "unUI", "AND");
964
- _defineProperty(this, "obcq", "OR");
965
- _defineProperty(this, "MOya", -1);
966
- _defineProperty(this, "xcrS", []);
967
- _defineProperty(this, "Tiwg", {});
968
- _defineProperty(this, "tqtJ", false);
969
- _defineProperty(this, "CosE", void 0);
970
- _defineProperty(this, "HZQB", void 0);
971
- _defineProperty(this, "yAUg", void 0);
972
- _defineProperty(this, "EauS", void 0);
956
+ _defineProperty(this, "ztco", 0);
957
+ _defineProperty(this, "byNa", "");
958
+ _defineProperty(this, "gUwB", new Condition());
959
+ _defineProperty(this, "nmoq", new GoalEvent());
960
+ _defineProperty(this, "DiRV", false);
961
+ _defineProperty(this, "JIae", false);
962
+ _defineProperty(this, "RsvB", 0);
963
+ _defineProperty(this, "ipfv", "AND");
964
+ _defineProperty(this, "VSCH", "OR");
965
+ _defineProperty(this, "yESG", -1);
966
+ _defineProperty(this, "LQXs", []);
967
+ _defineProperty(this, "AWgi", {});
968
+ _defineProperty(this, "XUqN", false);
969
+ _defineProperty(this, "QBhD", void 0);
970
+ _defineProperty(this, "YLWE", void 0);
971
+ _defineProperty(this, "eWlj", void 0);
972
+ _defineProperty(this, "rwFA", void 0);
973
973
  _defineProperty(this, "no_KPI_TriggerDetails", []);
974
- _defineProperty(this, "lXOQ", false);
974
+ _defineProperty(this, "yEyt", false);
975
975
  _defineProperty(this, "timerDidnt", void 0);
976
976
  _defineProperty(this, "timerDid", void 0);
977
977
  /**
978
- * If respectSequence is true, don't auto-AXfg to events except for the condition whose index is 0
978
+ * If respectSequence is true, don't auto-FsBn to events except for the condition whose index is 0
979
979
  *
980
980
  * @param condition
981
981
  * @param type
@@ -994,106 +994,106 @@
994
994
  var flag = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : "";
995
995
  var childConditionIndex = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : -1;
996
996
  var registerChecker = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : true;
997
- _this.UMRB = id;
998
- _this.qwaz = index;
999
- _this.xcrS = noKpiArray;
1000
- _this.CosE = respectSequence;
997
+ _this.byNa = id;
998
+ _this.RsvB = index;
999
+ _this.LQXs = noKpiArray;
1000
+ _this.QBhD = respectSequence;
1001
1001
  _this.childConditionIndex = childConditionIndex;
1002
1002
  _this.across_sessions = across_sessions ? across_sessions : false;
1003
1003
  if (flag !== "termination" || flag === "") {
1004
- var result = _this.ehHx.parse(condition);
1004
+ var result = _this.gUwB.parse(condition);
1005
1005
  if (result) {
1006
- _this.unUI = _this.ehHx.unUI;
1006
+ _this.ipfv = _this.gUwB.ipfv;
1007
1007
 
1008
1008
  // FIXME: Why this code is written? Don't see any usecase
1009
- if (_this.ehHx.eMFz) {
1010
- var eventName = _this.ehHx.Aylq.rpCx;
1009
+ if (_this.gUwB.YExK) {
1010
+ var eventName = _this.gUwB.mkdK.KtUk;
1011
1011
  if (eventName === "APX_PAGE_OPENED") {
1012
- eventName = _this.ehHx.Aylq.tarQ["navigation_id"];
1013
- eventName = isDefined(eventName) ? eventName : _this.ehHx.Aylq.rpCx;
1012
+ eventName = _this.gUwB.mkdK.ovVl["navigation_id"];
1013
+ eventName = isDefined(eventName) ? eventName : _this.gUwB.mkdK.KtUk;
1014
1014
  }
1015
- _this.MOya = Apxor.getController().getEventCount(eventName);
1016
- var count = _this.ehHx.Ruyv;
1017
- var operator = _this.ehHx.NyLm;
1018
- _this.qyAQ = _this.eHRa(_this.MOya - 1, count, operator, false);
1019
- _this.AzGT = _this.qyAQ;
1020
- // If the condition is already satisfied and if it is page view, no need to AXfg
1015
+ _this.yESG = Apxor.getController().getEventCount(eventName);
1016
+ var count = _this.gUwB.UeME;
1017
+ var operator = _this.gUwB.uBco;
1018
+ _this.JIae = _this.bgeF(_this.yESG - 1, count, operator, false);
1019
+ _this.DiRV = _this.JIae;
1020
+ // If the condition is already satisfied and if it is page view, no need to FsBn
1021
1021
  // This only applies for NAVIGATION_EVENTS
1022
- if (_this.qyAQ && _this.ehHx.Aylq.rpCx === "APX_PAGE_OPENED") {
1022
+ if (_this.JIae && _this.gUwB.mkdK.KtUk === "APX_PAGE_OPENED") {
1023
1023
  return true;
1024
1024
  }
1025
1025
  }
1026
1026
  if (registerChecker === true) {
1027
1027
  if (!respectSequence || index === 0 || respectSequence === "unordered") {
1028
- _this.AXfg();
1028
+ _this.FsBn();
1029
1029
  }
1030
1030
  }
1031
1031
  return true;
1032
1032
  }
1033
1033
  } else {
1034
- var _result = _this.esOM.parse(condition);
1035
- _this.obcq = _this.esOM.unUI;
1036
- _this.eSMJ();
1034
+ var _result = _this.nmoq.parse(condition);
1035
+ _this.VSCH = _this.nmoq.ipfv;
1036
+ _this.cvEU();
1037
1037
  return true;
1038
1038
  }
1039
1039
  return false;
1040
1040
  });
1041
- _defineProperty(this, "AXfg", function () {
1041
+ _defineProperty(this, "FsBn", function () {
1042
1042
  var _window$ApxorRTM;
1043
1043
  var childConditionIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
1044
1044
  if (childConditionIndex != -1) {
1045
- _this.HZQB = childConditionIndex;
1045
+ _this.YLWE = childConditionIndex;
1046
1046
  }
1047
- var condition = _this.ehHx;
1047
+ var condition = _this.gUwB;
1048
1048
  var event_category = condition !== null && condition !== void 0 && condition._eventCategory ? condition === null || condition === void 0 ? void 0 : condition._eventCategory : "specific_event";
1049
- var precondition = condition.NaPf;
1049
+ var precondition = condition.WeXB;
1050
1050
  var ceInstance = CE.getInstance();
1051
- if (precondition.NIzW === "app_start") {
1052
- _this.AzGT = true;
1051
+ if (precondition.ncqb === "app_start") {
1052
+ _this.DiRV = true;
1053
1053
  if (condition !== null && condition !== void 0 && condition._timeEnabled) {
1054
1054
  if ((condition === null || condition === void 0 ? void 0 : condition._time.unit) != "session") {
1055
1055
  var timeInMillisec = calculateTime(condition._time.unit, condition._time.value);
1056
- if ((condition === null || condition === void 0 ? void 0 : condition.OPHn) == "didn't") {
1057
- _this.tqtJ = false;
1056
+ if ((condition === null || condition === void 0 ? void 0 : condition.PToU) == "didn't") {
1057
+ _this.XUqN = false;
1058
1058
  _this.timerDidnt = setTimeout(function () {
1059
- if (!_this.tqtJ) {
1060
- _this.qyAQ = true;
1061
- if (_this.qyAQ) {
1062
- _this.jPoW += 1;
1063
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.ehHx.Ruyv, _this.ehHx.NyLm);
1064
- if (_this.qyAQ) {
1065
- _this.ehHx.cbVg = Date.now();
1066
- _this.tqtJ = false;
1067
- ceInstance.validate(_this.UMRB, _this.qwaz, _this.HZQB);
1059
+ if (!_this.XUqN) {
1060
+ _this.JIae = true;
1061
+ if (_this.JIae) {
1062
+ _this.ztco += 1;
1063
+ _this.JIae = _this.bgeF(_this.ztco, _this.gUwB.UeME, _this.gUwB.uBco);
1064
+ if (_this.JIae) {
1065
+ _this.gUwB.Lswp = Date.now();
1066
+ _this.XUqN = false;
1067
+ ceInstance.validate(_this.byNa, _this.RsvB, _this.YLWE);
1068
1068
  }
1069
1069
  }
1070
1070
  if (event_category === "specific_event") {
1071
- ceInstance.unregisterFromEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.UgQF);
1071
+ ceInstance.unregisterFromEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.yfyV);
1072
1072
  } else {
1073
- _this.htnU(event_category);
1073
+ _this.yhgB(event_category);
1074
1074
  }
1075
- _this.AzGT = false;
1075
+ _this.DiRV = false;
1076
1076
  }
1077
1077
  }, timeInMillisec);
1078
1078
  if (_this.across_sessions) {
1079
1079
  var _timeInMillisec = calculateTime(condition._time.unit, condition._time.value);
1080
1080
  var timeEnabled = condition._timeEnabled;
1081
1081
  var condition_id = condition._id;
1082
- _this.CFWW(condition.OPHn, condition.Aylq.rpCx, Date.now(), condition.Aylq.tarQ, _timeInMillisec, timeEnabled, condition_id);
1082
+ _this.zLbN(condition.PToU, condition.mkdK.KtUk, Date.now(), condition.mkdK.ovVl, _timeInMillisec, timeEnabled, condition_id);
1083
1083
  }
1084
1084
  if (event_category === "specific_event") {
1085
- ceInstance.registerForEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.UgQF);
1086
- _this.EauS = _this.ehHx;
1085
+ ceInstance.registerForEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.yfyV);
1086
+ _this.rwFA = _this.gUwB;
1087
1087
  } else {
1088
- _this.NPJe(event_category);
1088
+ _this.apbB(event_category);
1089
1089
  }
1090
- } else if ((condition === null || condition === void 0 ? void 0 : condition.OPHn) == "did") {
1090
+ } else if ((condition === null || condition === void 0 ? void 0 : condition.PToU) == "did") {
1091
1091
  _this.timerDid = setTimeout(function () {
1092
- if (!_this.lXOQ) {
1092
+ if (!_this.yEyt) {
1093
1093
  if (event_category === "specific_event") {
1094
- ceInstance.unregisterFromEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.PufD);
1094
+ ceInstance.unregisterFromEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.XGgV);
1095
1095
  } else {
1096
- _this.ecdp(event_category);
1096
+ _this.IIJe(event_category);
1097
1097
  }
1098
1098
  }
1099
1099
  }, timeInMillisec);
@@ -1101,327 +1101,327 @@
1101
1101
  var _timeInMillisec2 = calculateTime(condition._time.unit, condition._time.value);
1102
1102
  var _timeEnabled = condition._timeEnabled;
1103
1103
  var _condition_id = condition._id;
1104
- _this.CFWW(condition.OPHn, condition.Aylq.rpCx, Date.now(), condition.Aylq.tarQ, _timeInMillisec2, _timeEnabled, _condition_id);
1104
+ _this.zLbN(condition.PToU, condition.mkdK.KtUk, Date.now(), condition.mkdK.ovVl, _timeInMillisec2, _timeEnabled, _condition_id);
1105
1105
  }
1106
1106
  if (event_category === "specific_event") {
1107
- ceInstance.registerForEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.PufD);
1108
- _this.yAUg = _this.ehHx;
1107
+ ceInstance.registerForEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.XGgV);
1108
+ _this.eWlj = _this.gUwB;
1109
1109
  } else {
1110
- _this.HgGO(event_category);
1110
+ _this.uTdC(event_category);
1111
1111
  }
1112
1112
  }
1113
1113
  }
1114
1114
  } else {
1115
1115
  if (event_category === "specific_event") {
1116
- ceInstance.registerForEvent(generateKey(condition.NIzW) + "___" + condition.Aylq.rpCx, _this.YVho);
1116
+ ceInstance.registerForEvent(generateKey(condition.ncqb) + "___" + condition.mkdK.KtUk, _this.eAHK);
1117
1117
  } else {
1118
- _this.Oswb(event_category);
1118
+ _this.PflM(event_category);
1119
1119
  }
1120
1120
  }
1121
1121
  } else {
1122
1122
  if (condition !== null && condition !== void 0 && condition._timeEnabled) {
1123
1123
  if ((condition === null || condition === void 0 ? void 0 : condition._time.unit) != "session") {
1124
1124
  var _timeInMillisec3 = calculateTime(condition._time.unit, condition._time.value);
1125
- if ((condition === null || condition === void 0 ? void 0 : condition.OPHn) == "didn't") {
1126
- _this.tqtJ = false;
1125
+ if ((condition === null || condition === void 0 ? void 0 : condition.PToU) == "didn't") {
1126
+ _this.XUqN = false;
1127
1127
  _this.timerDidnt = setTimeout(function () {
1128
- if (!_this.tqtJ) {
1129
- _this.qyAQ = true;
1130
- if (_this.qyAQ) {
1131
- _this.jPoW += 1;
1132
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.ehHx.Ruyv, _this.ehHx.NyLm);
1133
- if (_this.qyAQ) {
1134
- _this.ehHx.cbVg = Date.now();
1135
- _this.tqtJ = false;
1136
- ceInstance.validate(_this.UMRB, _this.qwaz);
1128
+ if (!_this.XUqN) {
1129
+ _this.JIae = true;
1130
+ if (_this.JIae) {
1131
+ _this.ztco += 1;
1132
+ _this.JIae = _this.bgeF(_this.ztco, _this.gUwB.UeME, _this.gUwB.uBco);
1133
+ if (_this.JIae) {
1134
+ _this.gUwB.Lswp = Date.now();
1135
+ _this.XUqN = false;
1136
+ ceInstance.validate(_this.byNa, _this.RsvB);
1137
1137
  }
1138
1138
  }
1139
1139
  }
1140
1140
  if (event_category === "specific_event") {
1141
- ceInstance.unregisterFromEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.UgQF);
1141
+ ceInstance.unregisterFromEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.yfyV);
1142
1142
  }
1143
- _this.AzGT = false;
1143
+ _this.DiRV = false;
1144
1144
  }, _timeInMillisec3);
1145
1145
  if (event_category === "specific_event") {
1146
- ceInstance.registerForEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.UgQF);
1147
- _this.EauS = _this.ehHx;
1146
+ ceInstance.registerForEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.yfyV);
1147
+ _this.rwFA = _this.gUwB;
1148
1148
  } else {
1149
- _this.NPJe();
1149
+ _this.apbB();
1150
1150
  }
1151
- } else if ((condition === null || condition === void 0 ? void 0 : condition.OPHn) == "did") {
1151
+ } else if ((condition === null || condition === void 0 ? void 0 : condition.PToU) == "did") {
1152
1152
  _this.timerDid = setTimeout(function () {
1153
- if (!_this.lXOQ) {
1153
+ if (!_this.yEyt) {
1154
1154
  if (event_category === "specific_event") {
1155
- ceInstance.unregisterFromEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.PufD);
1155
+ ceInstance.unregisterFromEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.XGgV);
1156
1156
  }
1157
1157
  }
1158
1158
  }, _timeInMillisec3);
1159
1159
  if (event_category === "specific_event") {
1160
- ceInstance.registerForEvent(generateKey(_this.ehHx.NIzW) + "___" + _this.ehHx.Aylq.rpCx, _this.PufD);
1160
+ ceInstance.registerForEvent(generateKey(_this.gUwB.ncqb) + "___" + _this.gUwB.mkdK.KtUk, _this.XGgV);
1161
1161
  }
1162
1162
  }
1163
1163
  }
1164
1164
  } else {
1165
1165
  if (event_category === "specific_event") {
1166
- ceInstance.registerForEvent(generateKey(condition.NIzW) + "___" + precondition.Aylq.rpCx, _this.YVho);
1166
+ ceInstance.registerForEvent(generateKey(condition.ncqb) + "___" + precondition.mkdK.KtUk, _this.eAHK);
1167
1167
  }
1168
1168
  }
1169
1169
  }
1170
- if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.UMRB)) {
1171
- ceInstance.registerForEvent(generateKey(condition.NIzW) + "___" + "apxor-badge-container-".concat("-".concat(_this.UMRB).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.YVho);
1170
+ if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.byNa)) {
1171
+ ceInstance.registerForEvent(generateKey(condition.ncqb) + "___" + "apxor-badge-container-".concat("-".concat(_this.byNa).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.eAHK);
1172
1172
  }
1173
1173
  });
1174
- _defineProperty(this, "Oswb", function (event_category) {
1174
+ _defineProperty(this, "PflM", function (event_category) {
1175
1175
  var ceInstance = new CE();
1176
1176
  if (event_category === "apxor_event") {
1177
1177
  ceInstance.registerForEvent("apxor_event", function (type, name, time, additionalInfo) {
1178
- _this.YVho(generateKey(_this.ehHx.NIzW), _this.ehHx.Aylq.rpCx, time, _this.ehHx.Aylq.tarQ);
1178
+ _this.eAHK(generateKey(_this.gUwB.ncqb), _this.gUwB.mkdK.KtUk, time, _this.gUwB.mkdK.ovVl);
1179
1179
  });
1180
1180
  } else if (event_category === "customer_event") {
1181
1181
  ceInstance.registerForEvent("customer_event", function (type, name, time, additionalInfo) {
1182
- _this.YVho(generateKey(_this.ehHx.NIzW), _this.ehHx.Aylq.rpCx, time, _this.ehHx.Aylq.tarQ);
1182
+ _this.eAHK(generateKey(_this.gUwB.ncqb), _this.gUwB.mkdK.KtUk, time, _this.gUwB.mkdK.ovVl);
1183
1183
  });
1184
1184
  } else if (event_category === "any_event") {
1185
1185
  ceInstance.registerForEvent("any_event", function (type, name, time, additionalInfo) {
1186
- _this.YVho(generateKey(_this.ehHx.NIzW), _this.ehHx.Aylq.rpCx, time, _this.ehHx.Aylq.tarQ);
1186
+ _this.eAHK(generateKey(_this.gUwB.ncqb), _this.gUwB.mkdK.KtUk, time, _this.gUwB.mkdK.ovVl);
1187
1187
  });
1188
1188
  } else if (event_category === "campaign_event") {
1189
1189
  ceInstance.registerForEvent("campaign_event", function (type, name, time, additionalInfo) {
1190
- _this.YVho(generateKey(_this.ehHx.NIzW), _this.ehHx.Aylq.rpCx, time, _this.ehHx.Aylq.tarQ);
1190
+ _this.eAHK(generateKey(_this.gUwB.ncqb), _this.gUwB.mkdK.KtUk, time, _this.gUwB.mkdK.ovVl);
1191
1191
  });
1192
1192
  } else if (event_category === "survey_event") {
1193
1193
  ceInstance.registerForEvent("survey_event", function (type, name, time, additionalInfo) {
1194
- _this.YVho(generateKey(_this.ehHx.NIzW), _this.ehHx.Aylq.rpCx, time, _this.ehHx.Aylq.tarQ);
1194
+ _this.eAHK(generateKey(_this.gUwB.ncqb), _this.gUwB.mkdK.KtUk, time, _this.gUwB.mkdK.ovVl);
1195
1195
  });
1196
1196
  }
1197
1197
  });
1198
- _defineProperty(this, "htnU", function (event_category) {
1198
+ _defineProperty(this, "yhgB", function (event_category) {
1199
1199
  var ceInstance = new CE();
1200
- var eventCategory = _this.ehHx._eventCategory;
1200
+ var eventCategory = _this.gUwB._eventCategory;
1201
1201
  if (eventCategory === "apxor_event") {
1202
- ceInstance.unregisterFromEvent("apxor_event", _this.UgQF);
1202
+ ceInstance.unregisterFromEvent("apxor_event", _this.yfyV);
1203
1203
  } else if (eventCategory === "customer_event") {
1204
- ceInstance.unregisterFromEvent("customer_event", _this.UgQF);
1204
+ ceInstance.unregisterFromEvent("customer_event", _this.yfyV);
1205
1205
  } else if (eventCategory === "any_event") {
1206
- ceInstance.unregisterFromEvent("any_event", _this.UgQF);
1206
+ ceInstance.unregisterFromEvent("any_event", _this.yfyV);
1207
1207
  } else if (eventCategory === "campaign_event") {
1208
- ceInstance.unregisterFromEvent("campaign_event", _this.UgQF);
1208
+ ceInstance.unregisterFromEvent("campaign_event", _this.yfyV);
1209
1209
  } else if (eventCategory === "survey_event") {
1210
- ceInstance.unregisterFromEvent("survey_event", _this.UgQF);
1210
+ ceInstance.unregisterFromEvent("survey_event", _this.yfyV);
1211
1211
  }
1212
1212
  });
1213
- _defineProperty(this, "NPJe", function () {
1213
+ _defineProperty(this, "apbB", function () {
1214
1214
  var ceInstance = new CE();
1215
- var eventCategory = _this.ehHx._eventCategory;
1215
+ var eventCategory = _this.gUwB._eventCategory;
1216
1216
  if (eventCategory === "apxor_event") {
1217
- ceInstance.registerForEvent("apxor_event", _this.UgQF);
1217
+ ceInstance.registerForEvent("apxor_event", _this.yfyV);
1218
1218
  } else if (eventCategory === "customer_event") {
1219
- ceInstance.registerForEvent("customer_event", _this.UgQF);
1219
+ ceInstance.registerForEvent("customer_event", _this.yfyV);
1220
1220
  } else if (eventCategory === "any_event") {
1221
- ceInstance.registerForEvent("any_event", _this.UgQF);
1221
+ ceInstance.registerForEvent("any_event", _this.yfyV);
1222
1222
  } else if (eventCategory === "campaign_event") {
1223
- ceInstance.registerForEvent("campaign_event", _this.UgQF);
1223
+ ceInstance.registerForEvent("campaign_event", _this.yfyV);
1224
1224
  } else if (eventCategory === "survey_event") {
1225
- ceInstance.registerForEvent("survey_event", _this.UgQF);
1225
+ ceInstance.registerForEvent("survey_event", _this.yfyV);
1226
1226
  }
1227
1227
  });
1228
- _defineProperty(this, "HgGO", function () {
1228
+ _defineProperty(this, "uTdC", function () {
1229
1229
  var ceInstance = new CE();
1230
- var eventCategory = _this.ehHx._eventCategory;
1230
+ var eventCategory = _this.gUwB._eventCategory;
1231
1231
  if (eventCategory === "apxor_event") {
1232
- ceInstance.registerForEvent("apxor_event", _this.PufD);
1232
+ ceInstance.registerForEvent("apxor_event", _this.XGgV);
1233
1233
  } else if (eventCategory === "customer_event") {
1234
- ceInstance.registerForEvent("customer_event", _this.PufD);
1234
+ ceInstance.registerForEvent("customer_event", _this.XGgV);
1235
1235
  } else if (eventCategory === "any_event") {
1236
- ceInstance.registerForEvent("any_event", _this.PufD);
1236
+ ceInstance.registerForEvent("any_event", _this.XGgV);
1237
1237
  } else if (eventCategory === "campaign_event") {
1238
- ceInstance.registerForEvent("campaign_event", _this.PufD);
1238
+ ceInstance.registerForEvent("campaign_event", _this.XGgV);
1239
1239
  } else if (eventCategory === "survey_event") {
1240
- ceInstance.registerForEvent("survey_event", _this.PufD);
1240
+ ceInstance.registerForEvent("survey_event", _this.XGgV);
1241
1241
  }
1242
1242
  });
1243
- _defineProperty(this, "ecdp", function () {
1243
+ _defineProperty(this, "IIJe", function () {
1244
1244
  var ceInstance = new CE();
1245
- var eventCategory = _this.ehHx._eventCategory;
1245
+ var eventCategory = _this.gUwB._eventCategory;
1246
1246
  if (eventCategory === "apxor_event") {
1247
- ceInstance.unregisterFromEvent("apxor_event", _this.PufD);
1247
+ ceInstance.unregisterFromEvent("apxor_event", _this.XGgV);
1248
1248
  } else if (eventCategory === "customer_event") {
1249
- ceInstance.unregisterFromEvent("customer_event", _this.PufD);
1249
+ ceInstance.unregisterFromEvent("customer_event", _this.XGgV);
1250
1250
  } else if (eventCategory === "any_event") {
1251
- ceInstance.unregisterFromEvent("any_event", _this.PufD);
1251
+ ceInstance.unregisterFromEvent("any_event", _this.XGgV);
1252
1252
  } else if (eventCategory === "campaign_event") {
1253
- ceInstance.unregisterFromEvent("campaign_event", _this.PufD);
1253
+ ceInstance.unregisterFromEvent("campaign_event", _this.XGgV);
1254
1254
  } else if (eventCategory === "survey_event") {
1255
- ceInstance.unregisterFromEvent("survey_event", _this.PufD);
1255
+ ceInstance.unregisterFromEvent("survey_event", _this.XGgV);
1256
1256
  }
1257
1257
  });
1258
- _defineProperty(this, "eSMJ", function () {
1259
- var condition = _this.esOM;
1258
+ _defineProperty(this, "cvEU", function () {
1259
+ var condition = _this.nmoq;
1260
1260
  var ceInstance = CE.getInstance();
1261
- _this.AzGT = true;
1262
- ceInstance.registerForEvent(generateKey(condition.NIzW) + "___" + condition.Aylq.rpCx, _this.MANn);
1261
+ _this.DiRV = true;
1262
+ ceInstance.registerForEvent(generateKey(condition.ncqb) + "___" + condition.mkdK.KtUk, _this.LEjC);
1263
1263
  });
1264
- _defineProperty(this, "mnkH", function (type, name, time, additionalInfo) {
1265
- var _this$ehHx;
1264
+ _defineProperty(this, "QiIi", function (type, name, time, additionalInfo) {
1265
+ var _this$gUwB;
1266
1266
  var eventTime = Date.now();
1267
- var time_differnce = (eventTime - _this.Tiwg[name]) / 1000;
1268
- var time_fromConfig = ((_this$ehHx = _this.ehHx) === null || _this$ehHx === void 0 || (_this$ehHx = _this$ehHx.Aylq) === null || _this$ehHx === void 0 || (_this$ehHx = _this$ehHx.tarQ) === null || _this$ehHx === void 0 ? void 0 : _this$ehHx.time) / 1000;
1267
+ var time_differnce = (eventTime - _this.AWgi[name]) / 1000;
1268
+ var time_fromConfig = ((_this$gUwB = _this.gUwB) === null || _this$gUwB === void 0 || (_this$gUwB = _this$gUwB.mkdK) === null || _this$gUwB === void 0 || (_this$gUwB = _this$gUwB.ovVl) === null || _this$gUwB === void 0 ? void 0 : _this$gUwB.time) / 1000;
1269
1269
  if (time_fromConfig > time_differnce) {
1270
1270
  _this._displayCampaign(time);
1271
1271
  }
1272
1272
  });
1273
- _defineProperty(this, "vNcG", function (type, name, time, additionalInfo) {
1273
+ _defineProperty(this, "niyd", function (type, name, time, additionalInfo) {
1274
1274
  var _this$_condition2, _this$_condition3;
1275
- _this.tqtJ = true;
1275
+ _this.XUqN = true;
1276
1276
  var currentTime = Date.now();
1277
- var eventName = (_this$_condition2 = _this.ehHx) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.NaPf) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.Aylq.rpCx;
1278
- var eventTime = _this.Tiwg[eventName];
1277
+ var eventName = (_this$_condition2 = _this.gUwB) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.WeXB) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.mkdK.KtUk;
1278
+ var eventTime = _this.AWgi[eventName];
1279
1279
  var time_differnce = (currentTime - eventTime) / 1000;
1280
- var time_fromConfig = (_this$_condition3 = _this.ehHx) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.Aylq) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.tarQ) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
1280
+ var time_fromConfig = (_this$_condition3 = _this.gUwB) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.mkdK) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.ovVl) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
1281
1281
  time_fromConfig = time_fromConfig / 1000;
1282
1282
  if (time_fromConfig > time_differnce) {
1283
1283
  _this._displayCampaign(time);
1284
1284
  }
1285
1285
  //unregister the event
1286
1286
  });
1287
- _defineProperty(this, "PufD", function () {
1288
- _this.lXOQ = true;
1287
+ _defineProperty(this, "XGgV", function () {
1288
+ _this.yEyt = true;
1289
1289
  var ceInstance = new CE();
1290
1290
  clearTimeout(_this.timerDid);
1291
- _this.jPoW += 1;
1292
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.ehHx.Ruyv, _this.ehHx.NyLm);
1293
- if (_this.qyAQ) {
1294
- ceInstance.unregisterFromEvent(generateKey(_this.yAUg.NIzW) + "___" + _this.yAUg.Aylq.rpCx, _this.PufD);
1295
- _this.lXOQ = false;
1296
- ceInstance.validate(_this.UMRB, _this.qwaz, _this.HZQB);
1291
+ _this.ztco += 1;
1292
+ _this.JIae = _this.bgeF(_this.ztco, _this.gUwB.UeME, _this.gUwB.uBco);
1293
+ if (_this.JIae) {
1294
+ ceInstance.unregisterFromEvent(generateKey(_this.eWlj.ncqb) + "___" + _this.eWlj.mkdK.KtUk, _this.XGgV);
1295
+ _this.yEyt = false;
1296
+ ceInstance.validate(_this.byNa, _this.RsvB, _this.YLWE);
1297
1297
  }
1298
1298
  });
1299
- _defineProperty(this, "UgQF", function (type, name, time, additionalInfo) {
1300
- _this.tqtJ = true;
1299
+ _defineProperty(this, "yfyV", function (type, name, time, additionalInfo) {
1300
+ _this.XUqN = true;
1301
1301
  clearTimeout(_this.timerDidnt);
1302
1302
  var ceInstance = new CE();
1303
- ceInstance.unregisterFromEvent(generateKey(_this.EauS.NIzW) + "___" + _this.EauS.Aylq.rpCx, _this.UgQF);
1303
+ ceInstance.unregisterFromEvent(generateKey(_this.rwFA.ncqb) + "___" + _this.rwFA.mkdK.KtUk, _this.yfyV);
1304
1304
  //return;
1305
1305
  });
1306
- _defineProperty(this, "YVho", function (type, name, time, additionalInfo) {
1306
+ _defineProperty(this, "eAHK", function (type, name, time, additionalInfo) {
1307
1307
  var _window$ApxorRTM2, _window$ApxorRTM3;
1308
1308
  var ceInstance = CE.getInstance();
1309
- if (!_this.AzGT) {
1309
+ if (!_this.DiRV) {
1310
1310
  // Validate Precondition
1311
- _this.AzGT = _this.dUjb(type, name, time, additionalInfo);
1312
- if (_this.AzGT) {
1313
- var condition = _this.ehHx;
1314
- var precondition = condition.NaPf;
1315
- precondition.cbVg = time;
1311
+ _this.DiRV = _this.SNMZ(type, name, time, additionalInfo);
1312
+ if (_this.DiRV) {
1313
+ var condition = _this.gUwB;
1314
+ var precondition = condition.WeXB;
1315
+ precondition.Lswp = time;
1316
1316
  //events will be registred by its type activity event_type: "activity_time"
1317
- if ((condition === null || condition === void 0 ? void 0 : condition.NIzW) === "activity_time") {
1318
- var ehHx$Aylq, ehHx$jQHK, ehHx$_details2, ehHx$_details3;
1319
- var event_time = condition === null || condition === void 0 || (ehHx$Aylq = condition.Aylq) === null || ehHx$Aylq === void 0 || (ehHx$Aylq = ehHx$Aylq.tarQ) === null || ehHx$Aylq === void 0 ? void 0 : ehHx$Aylq.time;
1320
- if ((condition === null || condition === void 0 || (ehHx$jQHK = condition.jQHK) === null || ehHx$jQHK === void 0 ? void 0 : ehHx$jQHK.length) > 0) {
1317
+ if ((condition === null || condition === void 0 ? void 0 : condition.ncqb) === "activity_time") {
1318
+ var gUwB$mkdK, gUwB$GKFe, gUwB$_details2, gUwB$_details3;
1319
+ var event_time = condition === null || condition === void 0 || (gUwB$mkdK = condition.mkdK) === null || gUwB$mkdK === void 0 || (gUwB$mkdK = gUwB$mkdK.ovVl) === null || gUwB$mkdK === void 0 ? void 0 : gUwB$mkdK.time;
1320
+ if ((condition === null || condition === void 0 || (gUwB$GKFe = condition.GKFe) === null || gUwB$GKFe === void 0 ? void 0 : gUwB$GKFe.length) > 0) {
1321
1321
  setTimeout(function () {
1322
1322
  var _Apxor$getController;
1323
1323
  var appEventsForNoKpi = (_Apxor$getController = Apxor.getController()) === null || _Apxor$getController === void 0 ? void 0 : _Apxor$getController._appEventsNoKpi;
1324
- appEventsForNoKpi.length <= 2 && condition.jQHK === location.pathname && _this._displayCampaign(time);
1324
+ appEventsForNoKpi.length <= 2 && condition.GKFe === location.pathname && _this._displayCampaign(time);
1325
1325
  }, event_time);
1326
- } else if ((condition === null || condition === void 0 || (ehHx$_details2 = condition.Aylq) === null || ehHx$_details2 === void 0 || (ehHx$_details2 = ehHx$_details2.tarQ) === null || ehHx$_details2 === void 0 ? void 0 : ehHx$_details2.nkpi.length) > 0) {
1326
+ } else if ((condition === null || condition === void 0 || (gUwB$_details2 = condition.mkdK) === null || gUwB$_details2 === void 0 || (gUwB$_details2 = gUwB$_details2.ovVl) === null || gUwB$_details2 === void 0 ? void 0 : gUwB$_details2.nkpi.length) > 0) {
1327
1327
  setTimeout(function () {
1328
- if (!_this.tqtJ) {
1329
- _this.qyAQ = true;
1330
- if (_this.qyAQ) {
1331
- _this.jPoW += 1;
1332
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.ehHx.Ruyv, _this.ehHx.NyLm);
1333
- if (_this.qyAQ) {
1334
- _this.ehHx.cbVg = time;
1335
- _this.tqtJ = false;
1336
- ceInstance.validate(_this.UMRB, _this.qwaz);
1328
+ if (!_this.XUqN) {
1329
+ _this.JIae = true;
1330
+ if (_this.JIae) {
1331
+ _this.ztco += 1;
1332
+ _this.JIae = _this.bgeF(_this.ztco, _this.gUwB.UeME, _this.gUwB.uBco);
1333
+ if (_this.JIae) {
1334
+ _this.gUwB.Lswp = time;
1335
+ _this.XUqN = false;
1336
+ ceInstance.validate(_this.byNa, _this.RsvB);
1337
1337
  }
1338
1338
  }
1339
1339
  }
1340
- condition.Aylq.tarQ.nkpi.map(function (nokpi) {
1341
- ceInstance.unregisterFromEvent(toUpperCase(condition.Aylq.tarQ.et) + "___" + nokpi, _this);
1342
- _this.AzGT = false;
1340
+ condition.mkdK.ovVl.nkpi.map(function (nokpi) {
1341
+ ceInstance.unregisterFromEvent(toUpperCase(condition.mkdK.ovVl.et) + "___" + nokpi, _this);
1342
+ _this.DiRV = false;
1343
1343
  });
1344
1344
  }, event_time);
1345
- condition.Aylq.tarQ.nkpi.map(function (nokpi) {
1346
- ceInstance.registerForEvent(toUpperCase(condition.Aylq.tarQ.et) + "___" + nokpi, _this.UgQF);
1345
+ condition.mkdK.ovVl.nkpi.map(function (nokpi) {
1346
+ ceInstance.registerForEvent(toUpperCase(condition.mkdK.ovVl.et) + "___" + nokpi, _this.yfyV);
1347
1347
  });
1348
1348
  }
1349
1349
  //it is for unregistering the events did case after completing the time imit
1350
- else if ((condition === null || condition === void 0 || (ehHx$_details3 = condition.Aylq) === null || ehHx$_details3 === void 0 || (ehHx$_details3 = ehHx$_details3.tarQ) === null || ehHx$_details3 === void 0 ? void 0 : ehHx$_details3.kpi.length) > 0) {
1350
+ else if ((condition === null || condition === void 0 || (gUwB$_details3 = condition.mkdK) === null || gUwB$_details3 === void 0 || (gUwB$_details3 = gUwB$_details3.ovVl) === null || gUwB$_details3 === void 0 ? void 0 : gUwB$_details3.kpi.length) > 0) {
1351
1351
  setTimeout(function () {
1352
- condition.Aylq.tarQ.kpi.map(function (kpi) {
1353
- ceInstance.unregisterFromEvent(toUpperCase(condition.Aylq.tarQ.et) + "___" + kpi, _this);
1352
+ condition.mkdK.ovVl.kpi.map(function (kpi) {
1353
+ ceInstance.unregisterFromEvent(toUpperCase(condition.mkdK.ovVl.et) + "___" + kpi, _this);
1354
1354
  });
1355
1355
  }, event_time);
1356
- condition.Aylq.tarQ.kpi.map(function (kpi) {
1357
- if (kpi === condition.NaPf.Aylq.rpCx) {
1356
+ condition.mkdK.ovVl.kpi.map(function (kpi) {
1357
+ if (kpi === condition.WeXB.mkdK.KtUk) {
1358
1358
  //unregister the previous event
1359
- ceInstance.unregisterFromEvent(generateKey(precondition.NIzW) + "___" + precondition.Aylq.rpCx, _this);
1360
- ceInstance.registerForEvent(toUpperCase(condition.Aylq.tarQ.et) + "___" + kpi, _this.mnkH);
1359
+ ceInstance.unregisterFromEvent(generateKey(precondition.ncqb) + "___" + precondition.mkdK.KtUk, _this);
1360
+ ceInstance.registerForEvent(toUpperCase(condition.mkdK.ovVl.et) + "___" + kpi, _this.QiIi);
1361
1361
  } else {
1362
- ceInstance.registerForEvent(toUpperCase(condition.Aylq.tarQ.et) + "___" + kpi, _this.vNcG);
1362
+ ceInstance.registerForEvent(toUpperCase(condition.mkdK.ovVl.et) + "___" + kpi, _this.niyd);
1363
1363
  }
1364
1364
  });
1365
1365
  }
1366
1366
  } else {
1367
- ceInstance.unregisterFromEvent(generateKey(precondition.NIzW) + "___" + precondition.Aylq.rpCx, _this);
1368
- ceInstance.registerForEvent(generateKey(condition.NIzW) + "___" + condition.Aylq.rpCx, _this);
1367
+ ceInstance.unregisterFromEvent(generateKey(precondition.ncqb) + "___" + precondition.mkdK.KtUk, _this);
1368
+ ceInstance.registerForEvent(generateKey(condition.ncqb) + "___" + condition.mkdK.KtUk, _this);
1369
1369
  }
1370
- _this.Tiwg[name] = Date.now();
1370
+ _this.AWgi[name] = Date.now();
1371
1371
  }
1372
1372
  return;
1373
1373
  }
1374
- if ((_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.isBadgePresent && (_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.badgesLists.includes(_this.UMRB) && Apxor.getController().isBadgeTriggerSatisfied(_this.UMRB)) {
1375
- _this.qyAQ = true;
1376
- _this.ehHx.cbVg = time;
1377
- ceInstance.validate(_this.UMRB, _this.qwaz);
1374
+ if ((_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.isBadgePresent && (_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.badgesLists.includes(_this.byNa) && Apxor.getController().isBadgeTriggerSatisfied(_this.byNa)) {
1375
+ _this.JIae = true;
1376
+ _this.gUwB.Lswp = time;
1377
+ ceInstance.validate(_this.byNa, _this.RsvB);
1378
1378
  return;
1379
1379
  }
1380
1380
 
1381
1381
  // Validate Condition
1382
- var validationStatus = generateKey(_this.ehHx.NIzW) === type && _this.KiCo(time - _this.ehHx.NaPf.cbVg, _this.ehHx.Ocbb) && _this.ehHx.Aylq.rpCx === name && _this.QHlW(_this.ehHx.Aylq.tarQ, additionalInfo);
1382
+ var validationStatus = generateKey(_this.gUwB.ncqb) === type && _this.agYW(time - _this.gUwB.WeXB.Lswp, _this.gUwB.dkTX) && _this.gUwB.mkdK.KtUk === name && _this.dSAU(_this.gUwB.mkdK.ovVl, additionalInfo);
1383
1383
  if (validationStatus) {
1384
- _this.jPoW += 1;
1385
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.ehHx.Ruyv, _this.ehHx.NyLm);
1386
- if (_this.qyAQ) {
1387
- _this.ehHx.cbVg = time;
1384
+ _this.ztco += 1;
1385
+ _this.JIae = _this.bgeF(_this.ztco, _this.gUwB.UeME, _this.gUwB.uBco);
1386
+ if (_this.JIae) {
1387
+ _this.gUwB.Lswp = time;
1388
1388
  if (_this.across_sessions) {
1389
- var timeInMillisec = calculateTime(_this.ehHx._time.unit, _this.ehHx._time.value);
1390
- var timeEnabled = _this.ehHx._timeEnabled;
1391
- var condition_id = _this.ehHx._id;
1392
- var satisfiedCount = _this.jPoW;
1393
- _this.CFWW(_this.ehHx.OPHn, name, time, additionalInfo, timeInMillisec, timeEnabled, condition_id, satisfiedCount);
1389
+ var timeInMillisec = calculateTime(_this.gUwB._time.unit, _this.gUwB._time.value);
1390
+ var timeEnabled = _this.gUwB._timeEnabled;
1391
+ var condition_id = _this.gUwB._id;
1392
+ var satisfiedCount = _this.ztco;
1393
+ _this.zLbN(_this.gUwB.PToU, name, time, additionalInfo, timeInMillisec, timeEnabled, condition_id, satisfiedCount);
1394
1394
  }
1395
- ceInstance.validate(_this.UMRB, _this.qwaz, _this.HZQB);
1395
+ ceInstance.validate(_this.byNa, _this.RsvB, _this.YLWE);
1396
1396
  }
1397
1397
  }
1398
1398
  });
1399
- _defineProperty(this, "MANn", function (type, name, time, additionalInfo) {
1399
+ _defineProperty(this, "LEjC", function (type, name, time, additionalInfo) {
1400
1400
  var ceInstance = CE.getInstance();
1401
- var validationStatus = generateKey(_this.esOM.NIzW) === type && _this.KiCo(time, _this.esOM.Ocbb) && _this.esOM.Aylq.rpCx === name && _this.QHlW(_this.esOM.Aylq.tarQ, additionalInfo);
1401
+ var validationStatus = generateKey(_this.nmoq.ncqb) === type && _this.agYW(time, _this.nmoq.dkTX) && _this.nmoq.mkdK.KtUk === name && _this.dSAU(_this.nmoq.mkdK.ovVl, additionalInfo);
1402
1402
  if (validationStatus) {
1403
- _this.jPoW += 1;
1404
- _this.qyAQ = _this.eHRa(_this.jPoW, _this.esOM.Ruyv, _this.esOM.NyLm);
1405
- if (_this.qyAQ) {
1406
- _this.esOM.cbVg = time;
1407
- ceInstance.validateForTermination(_this.UMRB, _this.qwaz);
1403
+ _this.ztco += 1;
1404
+ _this.JIae = _this.bgeF(_this.ztco, _this.nmoq.UeME, _this.nmoq.uBco);
1405
+ if (_this.JIae) {
1406
+ _this.nmoq.Lswp = time;
1407
+ ceInstance.validateForTermination(_this.byNa, _this.RsvB);
1408
1408
  }
1409
1409
  }
1410
1410
  });
1411
- _defineProperty(this, "dUjb", function (type, name, time, additionalInfo) {
1412
- var precondition = _this.ehHx.NaPf;
1413
- var result = generateKey(precondition.NIzW) === type && precondition.Aylq.rpCx === name && _this.KiCo(time, precondition.Ocbb) && _this.QHlW(precondition.Aylq.tarQ, additionalInfo);
1414
- result = name === "APX_PAGE_OPENED" ? result && location.pathname === precondition.Aylq.MPLc : result;
1411
+ _defineProperty(this, "SNMZ", function (type, name, time, additionalInfo) {
1412
+ var precondition = _this.gUwB.WeXB;
1413
+ var result = generateKey(precondition.ncqb) === type && precondition.mkdK.KtUk === name && _this.agYW(time, precondition.dkTX) && _this.dSAU(precondition.mkdK.ovVl, additionalInfo);
1414
+ result = name === "APX_PAGE_OPENED" ? result && location.pathname === precondition.mkdK.IFjF : result;
1415
1415
  return result;
1416
1416
  });
1417
- _defineProperty(this, "KiCo", function (time, timeBounds) {
1417
+ _defineProperty(this, "agYW", function (time, timeBounds) {
1418
1418
  var currentTime = Math.ceil(time);
1419
- return currentTime > timeBounds.yMJa && currentTime < timeBounds.OKRo;
1419
+ return currentTime > timeBounds.MWbe && currentTime < timeBounds.axkz;
1420
1420
  });
1421
- _defineProperty(this, "eHRa", function (current, required, operator) {
1421
+ _defineProperty(this, "bgeF", function (current, required, operator) {
1422
1422
  var checkOld = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
1423
- if (checkOld && _this.ehHx.eMFz) {
1424
- current = current + _this.MOya;
1423
+ if (checkOld && _this.gUwB.YExK) {
1424
+ current = current + _this.yESG;
1425
1425
  }
1426
1426
  switch (operator) {
1427
1427
  case "EQ":
@@ -1438,7 +1438,7 @@
1438
1438
  return false;
1439
1439
  }
1440
1440
  });
1441
- _defineProperty(this, "QHlW", function (expected, received) {
1441
+ _defineProperty(this, "dSAU", function (expected, received) {
1442
1442
  var status = true;
1443
1443
  try {
1444
1444
  var _loop = function _loop() {
@@ -1484,9 +1484,9 @@
1484
1484
  } else if (type === "b") {
1485
1485
  loggedValue = !!loggedValue;
1486
1486
  }
1487
- return tPTd(loggedValue, expectedValue, operator);
1487
+ return wayp(loggedValue, expectedValue, operator);
1488
1488
  }
1489
- // tPTd(loggedValue, expectedValue, operator)
1489
+ // wayp(loggedValue, expectedValue, operator)
1490
1490
  );
1491
1491
 
1492
1492
  var presence_checker = (_expected$item = expected[item]) !== null && _expected$item !== void 0 && _expected$item.present ? (_expected$item2 = expected[item]) === null || _expected$item2 === void 0 ? void 0 : _expected$item2.present : false;
@@ -1501,7 +1501,7 @@
1501
1501
  }
1502
1502
  status = status && match;
1503
1503
  } else {
1504
- status = status && tPTd(received[item], expected[item], "EQ");
1504
+ status = status && wayp(received[item], expected[item], "EQ");
1505
1505
  }
1506
1506
  },
1507
1507
  _ret;
@@ -1515,7 +1515,7 @@
1515
1515
  }
1516
1516
  return status;
1517
1517
  });
1518
- _defineProperty(this, "CFWW", function (type, name, time, additionalInfo, timeInMillisec, timeEnabled, id, satisfiedCount) {
1518
+ _defineProperty(this, "zLbN", function (type, name, time, additionalInfo, timeInMillisec, timeEnabled, id, satisfiedCount) {
1519
1519
  var objectPresenceChecker = false;
1520
1520
  var requiredObject;
1521
1521
  _this.no_KPI_TriggerDetails = Apxor.getController().getFromStorage("apx_nokpi_triggerdetails");
@@ -1555,7 +1555,7 @@
1555
1555
  }
1556
1556
  Apxor.getController().persistToStorage("apx_nokpi_triggerdetails", JSON.stringify(_this.no_KPI_TriggerDetails));
1557
1557
  });
1558
- _defineProperty(this, "ognp", function (validators) {
1558
+ _defineProperty(this, "dXsO", function (validators) {
1559
1559
  var ceInstance = new CE();
1560
1560
  var _iterator = _createForOfIteratorHelper(validators),
1561
1561
  _step;
@@ -1563,7 +1563,7 @@
1563
1563
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
1564
1564
  var validator = _step.value;
1565
1565
  if ((validator === null || validator === void 0 ? void 0 : validator.length) === 1 || (validator === null || validator === void 0 ? void 0 : validator.length) === undefined) {
1566
- ceInstance.unregisterFromEvent(generateKey(validator === null || validator === void 0 ? void 0 : validator.ehHx.NIzW) + "___" + (validator === null || validator === void 0 ? void 0 : validator.ehHx.Aylq.rpCx), _this.YVho);
1566
+ ceInstance.unregisterFromEvent(generateKey(validator === null || validator === void 0 ? void 0 : validator.gUwB.ncqb) + "___" + (validator === null || validator === void 0 ? void 0 : validator.gUwB.mkdK.KtUk), _this.eAHK);
1567
1567
  } else {
1568
1568
  var _iterator2 = _createForOfIteratorHelper(validator),
1569
1569
  _step2;
@@ -1571,7 +1571,7 @@
1571
1571
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1572
1572
  var _childValidator$_cond;
1573
1573
  var childValidator = _step2.value;
1574
- ceInstance.unregisterFromEvent(generateKey(childValidator === null || childValidator === void 0 ? void 0 : childValidator.ehHx.NIzW) + "___" + (childValidator === null || childValidator === void 0 || (_childValidator$_cond = childValidator.ehHx) === null || _childValidator$_cond === void 0 ? void 0 : _childValidator$_cond.Aylq.rpCx), _this.YVho);
1574
+ ceInstance.unregisterFromEvent(generateKey(childValidator === null || childValidator === void 0 ? void 0 : childValidator.gUwB.ncqb) + "___" + (childValidator === null || childValidator === void 0 || (_childValidator$_cond = childValidator.gUwB) === null || _childValidator$_cond === void 0 ? void 0 : _childValidator$_cond.mkdK.KtUk), _this.eAHK);
1575
1575
  }
1576
1576
  } catch (err) {
1577
1577
  _iterator2.e(err);
@@ -1591,14 +1591,14 @@
1591
1591
  key: "_displayCampaign",
1592
1592
  value: function _displayCampaign(time) {
1593
1593
  var ceInstance = CE.getInstance();
1594
- this.qyAQ = true;
1595
- if (this.qyAQ) {
1596
- this.jPoW += 1;
1597
- this.qyAQ = this.eHRa(this.jPoW, this.ehHx.Ruyv, this.ehHx.NyLm);
1598
- if (this.qyAQ) {
1599
- this.ehHx.cbVg = time;
1600
- ceInstance.validate(this.UMRB, this.qwaz);
1601
- //ceInstance.updateCount(this.UMRB);
1594
+ this.JIae = true;
1595
+ if (this.JIae) {
1596
+ this.ztco += 1;
1597
+ this.JIae = this.bgeF(this.ztco, this.gUwB.UeME, this.gUwB.uBco);
1598
+ if (this.JIae) {
1599
+ this.gUwB.Lswp = time;
1600
+ ceInstance.validate(this.byNa, this.RsvB);
1601
+ //ceInstance.updateCount(this.byNa);
1602
1602
  }
1603
1603
  }
1604
1604
  }
@@ -1610,38 +1610,38 @@
1610
1610
  var Frequency = /*#__PURE__*/_createClass(function Frequency() {
1611
1611
  var _this = this;
1612
1612
  _classCallCheck(this, Frequency);
1613
- _defineProperty(this, "Ruyv", 0);
1614
- _defineProperty(this, "HmhU", 0);
1615
- _defineProperty(this, "Aveo", "SESSION");
1616
- _defineProperty(this, "zOxW", 0);
1617
- _defineProperty(this, "pBkj", 0);
1618
- _defineProperty(this, "HBRw", 0);
1613
+ _defineProperty(this, "UeME", 0);
1614
+ _defineProperty(this, "RwaH", 0);
1615
+ _defineProperty(this, "wlKA", "SESSION");
1616
+ _defineProperty(this, "wCbS", 0);
1617
+ _defineProperty(this, "whKe", 0);
1618
+ _defineProperty(this, "nfgJ", 0);
1619
1619
  _defineProperty(this, "_enable_repetition_gap", void 0);
1620
1620
  _defineProperty(this, "_enable_days_limit", void 0);
1621
1621
  _defineProperty(this, "_enable_session_limit", void 0);
1622
- _defineProperty(this, "QNxl", void 0);
1623
- _defineProperty(this, "bbwH", void 0);
1624
- _defineProperty(this, "sPgA", void 0);
1622
+ _defineProperty(this, "NcdL", void 0);
1623
+ _defineProperty(this, "IAKO", void 0);
1624
+ _defineProperty(this, "dGac", void 0);
1625
1625
  _defineProperty(this, "DSLimits", void 0);
1626
1626
  _defineProperty(this, "parse", function () {
1627
1627
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1628
1628
  try {
1629
1629
  var _config$frequency, _config$frequency3, _config$frequency4, _config$frequency7, _config$frequency8;
1630
- _this.UMRB = config._id;
1631
- _this.EgcZ = config.meta;
1632
- _this.Ruyv = config.frequency.count;
1633
- if (_this.Ruyv === -1) {
1634
- _this.Ruyv = 9999999;
1635
- }
1636
- _this.HBRw = _this.Ruyv;
1637
- _this.HmhU = config.frequency.time_interval;
1638
- _this.Aveo = config.frequency.validity;
1630
+ _this.byNa = config._id;
1631
+ _this.UAQj = config.meta;
1632
+ _this.UeME = config.frequency.count;
1633
+ if (_this.UeME === -1) {
1634
+ _this.UeME = 9999999;
1635
+ }
1636
+ _this.nfgJ = _this.UeME;
1637
+ _this.RwaH = config.frequency.time_interval;
1638
+ _this.wlKA = config.frequency.validity;
1639
1639
  _this.DSLimits = config.frequency.DSLimits;
1640
- _this.pBkj = config.frequency.ses_lmt;
1640
+ _this.whKe = config.frequency.ses_lmt;
1641
1641
  _this._enable_session_limit = (_config$frequency = config.frequency) === null || _config$frequency === void 0 ? void 0 : _config$frequency.enable_session_limit;
1642
1642
  if (_this._enable_session_limit) {
1643
1643
  var _config$frequency2;
1644
- _this.QNxl = (_config$frequency2 = config.frequency) === null || _config$frequency2 === void 0 ? void 0 : _config$frequency2.session_count;
1644
+ _this.NcdL = (_config$frequency2 = config.frequency) === null || _config$frequency2 === void 0 ? void 0 : _config$frequency2.session_count;
1645
1645
  }
1646
1646
  _this._dayCount = (_config$frequency3 = config.frequency) !== null && _config$frequency3 !== void 0 && _config$frequency3.day_lmt ? (_config$frequency4 = config.frequency) === null || _config$frequency4 === void 0 ? void 0 : _config$frequency4.day_lmt : 0;
1647
1647
  _this._enable_repetition_gap = config.frequency.enable_repetition_gap ? config.frequency.enable_repetition_gap : false;
@@ -1652,31 +1652,31 @@
1652
1652
  }
1653
1653
  _this._enable_days_limit = (_config$frequency7 = config.frequency) !== null && _config$frequency7 !== void 0 && _config$frequency7.enable_days_limit ? (_config$frequency8 = config.frequency) === null || _config$frequency8 === void 0 ? void 0 : _config$frequency8.enable_days_limit : false;
1654
1654
  if (_this._enable_days_limit) {
1655
- _this.sPgA = config.frequency.days_limit.days ? config.frequency.days_limit.days : 1;
1656
- _this.bbwH = config.frequency.days_limit.limit;
1655
+ _this.dGac = config.frequency.days_limit.days ? config.frequency.days_limit.days : 1;
1656
+ _this.IAKO = config.frequency.days_limit.limit;
1657
1657
  }
1658
1658
 
1659
1659
  // let data = Apxor.getController().getFromStorage(QE_STATE);
1660
1660
  // let qe_state = JSON.parse(decode(Apxor.getSiteId(), data));
1661
1661
  var qe_state = CE.getInstance().getQeState();
1662
1662
  if (!isDefined(qe_state) || !isDefined(qe_state[config._id])) return true;
1663
- if (_this.Aveo === "SESSION") {
1664
- _this.Ruyv = parseInt(_this.Ruyv) - parseInt(qe_state[config._id]["SESSION"]);
1665
- if (_this.Ruyv <= 0) {
1666
- _this.agaL("Session limit reached");
1663
+ if (_this.wlKA === "SESSION") {
1664
+ _this.UeME = parseInt(_this.UeME) - parseInt(qe_state[config._id]["SESSION"]);
1665
+ if (_this.UeME <= 0) {
1666
+ _this.oLNe("Session limit reached");
1667
1667
  console.warn("Max count limit reached for session:" + config._id);
1668
1668
  if (Apxor.getController().isTestDevice()) {
1669
- validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.EgcZ.name));
1669
+ validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.UAQj.name));
1670
1670
  }
1671
1671
  return false;
1672
1672
  }
1673
- } else if (_this.Aveo === "OVERALL") {
1674
- _this.Ruyv = parseInt(_this.Ruyv) - parseInt(qe_state[config._id]["OVERALL"]);
1675
- if (_this.Ruyv <= 0) {
1676
- _this.agaL("Overall limit reached");
1673
+ } else if (_this.wlKA === "OVERALL") {
1674
+ _this.UeME = parseInt(_this.UeME) - parseInt(qe_state[config._id]["OVERALL"]);
1675
+ if (_this.UeME <= 0) {
1676
+ _this.oLNe("Overall limit reached");
1677
1677
  console.warn("Max count limit reached for overall:" + config._id);
1678
1678
  if (Apxor.getController().isTestDevice()) {
1679
- validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.EgcZ.name));
1679
+ validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.UAQj.name));
1680
1680
  }
1681
1681
  return false;
1682
1682
  }
@@ -1690,38 +1690,38 @@
1690
1690
  }
1691
1691
  return true;
1692
1692
  });
1693
- _defineProperty(this, "AkJS", function () {
1694
- _this.Ruyv = _this.Ruyv - 1;
1693
+ _defineProperty(this, "pMqC", function () {
1694
+ _this.UeME = _this.UeME - 1;
1695
1695
  });
1696
1696
  _defineProperty(this, "getFrequencyCount", function () {
1697
- return _this.Ruyv;
1697
+ return _this.UeME;
1698
1698
  });
1699
- _defineProperty(this, "sPjS", function () {
1700
- if (_this.Aveo === "SESSION") {
1701
- _this.Ruyv = _this.HBRw;
1699
+ _defineProperty(this, "hQFj", function () {
1700
+ if (_this.wlKA === "SESSION") {
1701
+ _this.UeME = _this.nfgJ;
1702
1702
  Logger$5.info("Campaign Limit reset");
1703
1703
  }
1704
1704
  });
1705
1705
  /**
1706
- * @function QkgO
1706
+ * @function QRnh
1707
1707
  * @description Validates if the campaign count is with in the limits set in the config.
1708
1708
  * @param {string} Config id
1709
1709
  * @returns {boolean} true - If the Campaign limits are not reached
1710
1710
  * false - Otherwise
1711
1711
  */
1712
- _defineProperty(this, "QkgO", function (id) {
1712
+ _defineProperty(this, "QRnh", function (id) {
1713
1713
  try {
1714
- if (_this.Ruyv <= 0) {
1715
- if (_this.Aveo === "OVERALL") {
1716
- _this.agaL("Overall limit reached");
1714
+ if (_this.UeME <= 0) {
1715
+ if (_this.wlKA === "OVERALL") {
1716
+ _this.oLNe("Overall limit reached");
1717
1717
  if (Apxor.getController().isTestDevice()) {
1718
- validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.EgcZ.name));
1718
+ validationToastDisplayandRemoval("Maximum overall limit reached for campaign name ".concat(_this.UAQj.name));
1719
1719
  }
1720
- } else if (_this.Aveo === "SESSION") {
1720
+ } else if (_this.wlKA === "SESSION") {
1721
1721
  if (Apxor.getController().isTestDevice()) {
1722
- validationToastDisplayandRemoval("Maximum session limit reached for campaign name ".concat(_this.EgcZ.name));
1722
+ validationToastDisplayandRemoval("Maximum session limit reached for campaign name ".concat(_this.UAQj.name));
1723
1723
  }
1724
- _this.agaL("Session limit reached");
1724
+ _this.oLNe("Session limit reached");
1725
1725
  }
1726
1726
  return false;
1727
1727
  }
@@ -1732,12 +1732,12 @@
1732
1732
  //If the frequency counts are not stored no validity checks are needed.
1733
1733
  if (!isDefined(qe_state) || !isDefined(qe_state[id])) return true;
1734
1734
  if (_this._enable_session_limit) {
1735
- var sessionCountFromConfig = parseInt(_this.QNxl);
1735
+ var sessionCountFromConfig = parseInt(_this.NcdL);
1736
1736
  var thisSessionCount = parseInt(qe_state[id]["SESSION"]);
1737
1737
  if (sessionCountFromConfig - thisSessionCount <= 0) {
1738
- _this.agaL("Session limit reached");
1738
+ _this.oLNe("Session limit reached");
1739
1739
  if (Apxor.getController().isTestDevice()) {
1740
- validationToastDisplayandRemoval("Maximum session limit reached for campaign name ".concat(_this.EgcZ.name));
1740
+ validationToastDisplayandRemoval("Maximum session limit reached for campaign name ".concat(_this.UAQj.name));
1741
1741
  }
1742
1742
  return false;
1743
1743
  }
@@ -1746,16 +1746,16 @@
1746
1746
  if (_this._repetitionUnit != "session") {
1747
1747
  var repetition_times = Apxor.getController().getFromStorage("apx-last-shown-times");
1748
1748
  repetition_times = JSON.parse(repetition_times);
1749
- if (!isNull(isObjectWithGivenKeyPresent(repetition_times, _this.UMRB))) {
1750
- var currentObj = isObjectWithGivenKeyPresent(repetition_times, _this.UMRB);
1751
- var current_repetition_time = currentObj[_this.UMRB];
1749
+ if (!isNull(isObjectWithGivenKeyPresent(repetition_times, _this.byNa))) {
1750
+ var currentObj = isObjectWithGivenKeyPresent(repetition_times, _this.byNa);
1751
+ var current_repetition_time = currentObj[_this.byNa];
1752
1752
  var current_time = Date.now();
1753
1753
  var timeInSecFromConfig;
1754
1754
  timeInSecFromConfig = calculateTime(_this._repetitionUnit, _this._repetitionValue);
1755
1755
  if (current_time - current_repetition_time < timeInSecFromConfig) {
1756
- _this.agaL("Config does not satisfy time difference ");
1756
+ _this.oLNe("Config does not satisfy time difference ");
1757
1757
  if (Apxor.getController().isTestDevice()) {
1758
- validationToastDisplayandRemoval("Config does not satisfy time difference for campaign name ".concat(_this.EgcZ.name));
1758
+ validationToastDisplayandRemoval("Config does not satisfy time difference for campaign name ".concat(_this.UAQj.name));
1759
1759
  }
1760
1760
  return false;
1761
1761
  }
@@ -1763,14 +1763,14 @@
1763
1763
  } else {
1764
1764
  var sessionsTowait = Apxor.getController().getFromStorage("apx-last-shown-session");
1765
1765
  sessionsTowait = JSON.parse(sessionsTowait);
1766
- if (!isNull(isObjectWithGivenKeyPresent(sessionsTowait, _this.UMRB))) {
1767
- var _currentObj = isObjectWithGivenKeyPresent(sessionsTowait, _this.UMRB);
1768
- var current_repetition_session = _currentObj[_this.UMRB];
1766
+ if (!isNull(isObjectWithGivenKeyPresent(sessionsTowait, _this.byNa))) {
1767
+ var _currentObj = isObjectWithGivenKeyPresent(sessionsTowait, _this.byNa);
1768
+ var current_repetition_session = _currentObj[_this.byNa];
1769
1769
  var current_session = Apxor.getController().getFromStorage("apx_retained_session");
1770
1770
  if (current_session - current_repetition_session < parseInt(_this._repetitionValue)) {
1771
- _this.agaL("Config does not satisfy session difference ");
1771
+ _this.oLNe("Config does not satisfy session difference ");
1772
1772
  if (Apxor.getController().isTestDevice()) {
1773
- validationToastDisplayandRemoval("Config does not satisfy session difference for campaign name ".concat(_this.EgcZ.name));
1773
+ validationToastDisplayandRemoval("Config does not satisfy session difference for campaign name ".concat(_this.UAQj.name));
1774
1774
  }
1775
1775
  return false;
1776
1776
  }
@@ -1779,13 +1779,13 @@
1779
1779
  }
1780
1780
 
1781
1781
  //If the config has a session count limit set
1782
- if (_this.pBkj !== 0 && _this.DSLimits) {
1783
- var sessionCountInConfig = parseInt(_this.pBkj);
1782
+ if (_this.whKe !== 0 && _this.DSLimits) {
1783
+ var sessionCountInConfig = parseInt(_this.whKe);
1784
1784
  var _thisSessionCount = parseInt(qe_state[id]["SESSION"]);
1785
1785
  if (sessionCountInConfig - _thisSessionCount <= 0) {
1786
- _this.agaL("Session limit reached");
1786
+ _this.oLNe("Session limit reached");
1787
1787
  if (Apxor.getController().isTestDevice()) {
1788
- validationToastDisplayandRemoval("Session limit reached for campaign name ".concat(_this.EgcZ.name));
1788
+ validationToastDisplayandRemoval("Session limit reached for campaign name ".concat(_this.UAQj.name));
1789
1789
  }
1790
1790
  return false;
1791
1791
  }
@@ -1798,42 +1798,42 @@
1798
1798
  var dayCountInConfig = parseInt(_this._dayCount);
1799
1799
  var thisDayCount = parseInt(((_qe_state$id = qe_state[id]) === null || _qe_state$id === void 0 ? void 0 : _qe_state$id.DATES[date]) || 0);
1800
1800
  if (dayCountInConfig - thisDayCount <= 0) {
1801
- _this.agaL("Day limit reached");
1801
+ _this.oLNe("Day limit reached");
1802
1802
  if (Apxor.getController().isTestDevice()) {
1803
- validationToastDisplayandRemoval("Day limit reached for campaign name ".concat(_this.EgcZ.name));
1803
+ validationToastDisplayandRemoval("Day limit reached for campaign name ".concat(_this.UAQj.name));
1804
1804
  }
1805
1805
  return false;
1806
1806
  }
1807
1807
  }
1808
- if (_this.sPgA > 0 && _this._enable_days_limit) {
1809
- var daysCount = _this.sPgA;
1808
+ if (_this.dGac > 0 && _this._enable_days_limit) {
1809
+ var daysCount = _this.dGac;
1810
1810
  var shownLimit = 0;
1811
1811
  var daysListInDDMMYYYY = getPastDates(daysCount);
1812
1812
  daysListInDDMMYYYY.forEach(function (fetchedDate) {
1813
1813
  var _qe_state$id2;
1814
1814
  shownLimit = shownLimit + parseInt(((_qe_state$id2 = qe_state[id]) === null || _qe_state$id2 === void 0 ? void 0 : _qe_state$id2.DATES[fetchedDate]) || 0);
1815
1815
  });
1816
- if (shownLimit > _this.bbwH) {
1816
+ if (shownLimit > _this.IAKO) {
1817
1817
  Logger$5.info("Shown Limit Crossed");
1818
1818
  if (Apxor.getController().isTestDevice()) {
1819
- validationToastDisplayandRemoval("Days limit reached for campaign name ".concat(_this.EgcZ.name));
1819
+ validationToastDisplayandRemoval("Days limit reached for campaign name ".concat(_this.UAQj.name));
1820
1820
  }
1821
1821
  return false;
1822
1822
  }
1823
1823
  }
1824
1824
  } catch (e) {
1825
- _this.agaL("Error validating the frequency: ".concat(e));
1825
+ _this.oLNe("Error validating the frequency: ".concat(e));
1826
1826
  Logger$5.error("Error validating the frequency:" + e);
1827
1827
  }
1828
1828
  return true;
1829
1829
  });
1830
- _defineProperty(this, "agaL", function (reason) {
1831
- var _this$EgcZ$attr;
1830
+ _defineProperty(this, "oLNe", function (reason) {
1831
+ var _this$UAQj$attr;
1832
1832
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1833
- apx_nudge_type: _this.EgcZ.type === "SURVEY" ? "survey" : "campaign",
1834
- apx_nudge_id: _this.UMRB,
1835
- apx_nudge_name: _this.EgcZ.name,
1836
- apx_variant_code: _this.EgcZ.isExperiment || _this.EgcZ.only_context ? (_this$EgcZ$attr = _this.EgcZ.attr) === null || _this$EgcZ$attr === void 0 ? void 0 : _this$EgcZ$attr[APX_VARIANT_CODE] : "TG",
1833
+ apx_nudge_type: _this.UAQj.type === "SURVEY" ? "survey" : "campaign",
1834
+ apx_nudge_id: _this.byNa,
1835
+ apx_nudge_name: _this.UAQj.name,
1836
+ apx_variant_code: _this.UAQj.isExperiment || _this.UAQj.only_context ? (_this$UAQj$attr = _this.UAQj.attr) === null || _this$UAQj$attr === void 0 ? void 0 : _this$UAQj$attr[APX_VARIANT_CODE] : "TG",
1837
1837
  apx_failure_type: "warn",
1838
1838
  apx_reason: reason
1839
1839
  });
@@ -1846,10 +1846,10 @@
1846
1846
  var GroupConditionValidator = /*#__PURE__*/_createClass(function GroupConditionValidator() {
1847
1847
  var _this = this;
1848
1848
  _classCallCheck(this, GroupConditionValidator);
1849
- _defineProperty(this, "OevR", []);
1850
- _defineProperty(this, "WoLL", 0);
1851
- _defineProperty(this, "bnfg", false);
1852
- _defineProperty(this, "fgrG", void 0);
1849
+ _defineProperty(this, "viKy", []);
1850
+ _defineProperty(this, "JOOw", 0);
1851
+ _defineProperty(this, "JMpw", false);
1852
+ _defineProperty(this, "pCle", void 0);
1853
1853
  _defineProperty(this, "initialize", function () {
1854
1854
  var conditions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1855
1855
  var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -1858,51 +1858,51 @@
1858
1858
  var noKpiArray = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
1859
1859
  var parentRespectSequence = arguments.length > 5 ? arguments[5] : undefined;
1860
1860
  var across_sessions = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
1861
- _this.UMRB = id;
1862
- _this.qwaz = index;
1863
- _this.xcrS = noKpiArray;
1864
- _this.CosE = respectSequence;
1861
+ _this.byNa = id;
1862
+ _this.RsvB = index;
1863
+ _this.LQXs = noKpiArray;
1864
+ _this.QBhD = respectSequence;
1865
1865
  _this.across_sessions = across_sessions;
1866
1866
  var childConditions = [];
1867
- _this.WoLL = conditions.length;
1867
+ _this.JOOw = conditions.length;
1868
1868
  try {
1869
1869
  if (childConditions != null) {
1870
1870
  respectSequence = conditions === null || conditions === void 0 ? void 0 : conditions.sequence_type;
1871
- childConditions = _this.SBGu(conditions, _this.WoLL);
1872
- if (parentRespectSequence === "unordered" || _this.qwaz === 0) {
1873
- _this.AXfg();
1871
+ childConditions = _this.OMlB(conditions, _this.JOOw);
1872
+ if (parentRespectSequence === "unordered" || _this.RsvB === 0) {
1873
+ _this.FsBn();
1874
1874
  }
1875
- return _this.OevR;
1875
+ return _this.viKy;
1876
1876
  }
1877
1877
  } catch (error) {
1878
1878
  Logger$6.error(error);
1879
1879
  return false;
1880
1880
  }
1881
1881
  });
1882
- _defineProperty(this, "SBGu", function (conditions, conditionsLength) {
1882
+ _defineProperty(this, "OMlB", function (conditions, conditionsLength) {
1883
1883
  for (var index = 0; index < conditionsLength; index++) {
1884
- _this.fgrG = new ConditionValidator();
1884
+ _this.pCle = new ConditionValidator();
1885
1885
  try {
1886
- if (_this.fgrG.initialize(conditions[index], _this.UMRB, _this.qwaz, _this.CosE, _this.cTlZ, _this.across_sessions, "", -1, false)) {
1887
- _this.OevR.push(_this.fgrG);
1888
- _this.OevR.sequence_type = _this.CosE;
1886
+ if (_this.pCle.initialize(conditions[index], _this.byNa, _this.RsvB, _this.QBhD, _this.FprY, _this.across_sessions, "", -1, false)) {
1887
+ _this.viKy.push(_this.pCle);
1888
+ _this.viKy.sequence_type = _this.QBhD;
1889
1889
  }
1890
1890
  } catch (error) {
1891
1891
  Logger$6.error(error);
1892
1892
  }
1893
1893
  }
1894
- return _this.OevR;
1894
+ return _this.viKy;
1895
1895
  });
1896
- _defineProperty(this, "AXfg", function () {
1897
- if (_this.CosE === "ordered" || _this.CosE === "strictly_ordered") {
1898
- _this.OevR[0].AXfg(0);
1896
+ _defineProperty(this, "FsBn", function () {
1897
+ if (_this.QBhD === "ordered" || _this.QBhD === "strictly_ordered") {
1898
+ _this.viKy[0].FsBn(0);
1899
1899
  } else {
1900
- var _iterator = _createForOfIteratorHelper(_this.OevR),
1900
+ var _iterator = _createForOfIteratorHelper(_this.viKy),
1901
1901
  _step;
1902
1902
  try {
1903
1903
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
1904
1904
  var validator = _step.value;
1905
- validator.AXfg();
1905
+ validator.FsBn();
1906
1906
  }
1907
1907
  } catch (err) {
1908
1908
  _iterator.e(err);
@@ -1911,22 +1911,22 @@
1911
1911
  }
1912
1912
  }
1913
1913
  });
1914
- _defineProperty(this, "ognp", function (validators) {
1915
- _this.fgrG.ognp(validators);
1914
+ _defineProperty(this, "dXsO", function (validators) {
1915
+ _this.pCle.dXsO(validators);
1916
1916
  });
1917
1917
  });
1918
1918
 
1919
1919
  var Meta = /*#__PURE__*/_createClass(function Meta() {
1920
1920
  var _this = this;
1921
1921
  _classCallCheck(this, Meta);
1922
- _defineProperty(this, "rpCx", "");
1923
- _defineProperty(this, "OPHn", "");
1922
+ _defineProperty(this, "KtUk", "");
1923
+ _defineProperty(this, "PToU", "");
1924
1924
  _defineProperty(this, "parse", function () {
1925
1925
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1926
1926
  try {
1927
1927
  var _config$meta, _config$meta2;
1928
- _this.rpCx = config.meta.name;
1929
- _this.OPHn = config.meta.type;
1928
+ _this.KtUk = config.meta.name;
1929
+ _this.PToU = config.meta.type;
1930
1930
  _this._only_context = config.meta.only_context;
1931
1931
  _this._attr = ((_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.attr) || {};
1932
1932
  _this._isExperiment = (_config$meta2 = config.meta) === null || _config$meta2 === void 0 ? void 0 : _config$meta2.isExperiment;
@@ -1942,11 +1942,11 @@
1942
1942
  var OverallConfig = /*#__PURE__*/_createClass(function OverallConfig() {
1943
1943
  var _this = this;
1944
1944
  _classCallCheck(this, OverallConfig);
1945
- _defineProperty(this, "VZfI", []);
1945
+ _defineProperty(this, "PHlE", []);
1946
1946
  _defineProperty(this, "_ret_day", {});
1947
- _defineProperty(this, "nmAv", {});
1948
- _defineProperty(this, "PlDG", false);
1949
- _defineProperty(this, "oawY", false);
1947
+ _defineProperty(this, "tYrf", {});
1948
+ _defineProperty(this, "dWPo", false);
1949
+ _defineProperty(this, "cdKw", false);
1950
1950
  _defineProperty(this, "retainedDaysValidated", true);
1951
1951
  _defineProperty(this, "retainedSessionValidated", true);
1952
1952
  _defineProperty(this, "eventDoneInLT", false);
@@ -1954,11 +1954,11 @@
1954
1954
  _defineProperty(this, "parse", function () {
1955
1955
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1956
1956
  try {
1957
- _this.VZfI = config.overall_cfg.events;
1957
+ _this.PHlE = config.overall_cfg.events;
1958
1958
  _this._ret_day = config.overall_cfg.ret_day;
1959
- _this.nmAv = config.overall_cfg.session;
1960
- _this.PlDG = config.overall_cfg.toggleRetDay;
1961
- _this.oawY = config.overall_cfg.toggleSession;
1959
+ _this.tYrf = config.overall_cfg.session;
1960
+ _this.dWPo = config.overall_cfg.toggleRetDay;
1961
+ _this.cdKw = config.overall_cfg.toggleSession;
1962
1962
  } catch (error) {
1963
1963
  Logger$7.error(error);
1964
1964
  return false;
@@ -1968,11 +1968,11 @@
1968
1968
  _defineProperty(this, "validate", function () {
1969
1969
  var retainedDays = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_DAYS));
1970
1970
  var retainedSession = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_SESSIONS));
1971
- if (_this.PlDG && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1971
+ if (_this.dWPo && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1972
1972
  _this.retainedDaysValidated = false;
1973
1973
  return false;
1974
1974
  }
1975
- if (_this.oawY && !isNaN(retainedSession) && !(retainedSession >= _this.nmAv.from && retainedSession <= _this.nmAv.to)) {
1975
+ if (_this.cdKw && !isNaN(retainedSession) && !(retainedSession >= _this.tYrf.from && retainedSession <= _this.tYrf.to)) {
1976
1976
  _this.retainedSessionValidated = false;
1977
1977
  return false;
1978
1978
  }
@@ -1981,8 +1981,8 @@
1981
1981
  var data = Apxor.getController().getFromStorage("_apx_lt_count");
1982
1982
  var siteid = Apxor.getSiteId();
1983
1983
  var LtCountObjDecoded = JSON.parse(new TextDecoder().decode(stringToArrayBuffer(decode(siteid, data))));
1984
- for (var i = 0; i < _this.VZfI.length; i++) {
1985
- var evName = _this.VZfI[i].name.replace("'", "").replace("’", "");
1984
+ for (var i = 0; i < _this.PHlE.length; i++) {
1985
+ var evName = _this.PHlE[i].name.replace("'", "").replace("’", "");
1986
1986
  if (LtCountObjDecoded[evName]) {
1987
1987
  _this.eventDoneInLT = true;
1988
1988
  return false;
@@ -1999,14 +1999,14 @@
1999
1999
  var Attributes = /*#__PURE__*/_createClass(function Attributes() {
2000
2000
  var _this = this;
2001
2001
  _classCallCheck(this, Attributes);
2002
- _defineProperty(this, "NlEC", []);
2003
- _defineProperty(this, "bDYc", []);
2002
+ _defineProperty(this, "hKLb", []);
2003
+ _defineProperty(this, "byZv", []);
2004
2004
  _defineProperty(this, "parse", function () {
2005
2005
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2006
2006
  try {
2007
- _this.NlEC = config.attributes.user;
2008
- _this.bDYc = config.attributes.session;
2009
- if (!Array.isArray(_this.NlEC) || !Array.isArray(_this.bDYc)) {
2007
+ _this.hKLb = config.attributes.user;
2008
+ _this.byZv = config.attributes.session;
2009
+ if (!Array.isArray(_this.hKLb) || !Array.isArray(_this.byZv)) {
2010
2010
  Logger$8.error("No attributes");
2011
2011
  return false;
2012
2012
  }
@@ -2017,9 +2017,9 @@
2017
2017
  return true;
2018
2018
  });
2019
2019
  _defineProperty(this, "validate", function (user, session) {
2020
- return _this.erQo(user, _this.NlEC) && _this.erQo(session, _this.bDYc);
2020
+ return _this.dlBt(user, _this.hKLb) && _this.dlBt(session, _this.byZv);
2021
2021
  });
2022
- _defineProperty(this, "erQo", function (attributes, expected) {
2022
+ _defineProperty(this, "dlBt", function (attributes, expected) {
2023
2023
  var length = expected.length;
2024
2024
  var status = true;
2025
2025
  try {
@@ -2049,7 +2049,7 @@
2049
2049
  }
2050
2050
  var match = loggedValues.some(function (loggedValue) {
2051
2051
  return values.some(function (configValue) {
2052
- return tPTd(loggedValue, configValue, operator);
2052
+ return wayp(loggedValue, configValue, operator);
2053
2053
  });
2054
2054
  });
2055
2055
  status = status && match;
@@ -2073,18 +2073,18 @@
2073
2073
  var TimeBasedTermination = /*#__PURE__*/_createClass(function TimeBasedTermination() {
2074
2074
  var _this = this;
2075
2075
  _classCallCheck(this, TimeBasedTermination);
2076
- _defineProperty(this, "FDyt", Apxor.getController());
2076
+ _defineProperty(this, "oYhl", Apxor.getController());
2077
2077
  _defineProperty(this, "type", "");
2078
2078
  _defineProperty(this, "_duration_seconds", 0);
2079
- _defineProperty(this, "vmfD", 1);
2079
+ _defineProperty(this, "IVBl", 1);
2080
2080
  _defineProperty(this, "parse", function (config) {
2081
2081
  try {
2082
2082
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
2083
- _this.OPHn = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
2083
+ _this.PToU = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
2084
2084
  _this._duration_seconds = (_config$terminate_inf2 = config.terminate_info) === null || _config$terminate_inf2 === void 0 ? void 0 : _config$terminate_inf2.time_based.duration_seconds;
2085
- _this.vmfD = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
2086
- if (_this.tPTd(config._id)) {
2087
- _this.FDyt.persistTerminationInfoLocally(config._id);
2085
+ _this.IVBl = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
2086
+ if (_this.wayp(config._id)) {
2087
+ _this.oYhl.persistTerminationInfoLocally(config._id);
2088
2088
  return false;
2089
2089
  }
2090
2090
  } catch (_unused) {
@@ -2092,16 +2092,16 @@
2092
2092
  }
2093
2093
  return true;
2094
2094
  });
2095
- _defineProperty(this, "tPTd", function (id) {
2095
+ _defineProperty(this, "wayp", function (id) {
2096
2096
  var _Data$id;
2097
- var Data = JSON.parse(_this.FDyt.getFromStorage(APX_TERMINATION_ID));
2097
+ var Data = JSON.parse(_this.oYhl.getFromStorage(APX_TERMINATION_ID));
2098
2098
  if (!Data[id] || !((_Data$id = Data[id]) !== null && _Data$id !== void 0 && _Data$id.startDate)) return false;
2099
2099
  var startDate = new Date(Data[id].startDate);
2100
2100
  var presentDate = new Date(getDateInMMDDYYYY());
2101
2101
  var diff = parseInt((presentDate - startDate) / (1000 * 60 * 60 * 24), 10);
2102
2102
  var currentTime = _getTime();
2103
- var pakd = Data[id].pakd;
2104
- return diff === _this.vmfD && currentTime.hours >= pakd.hours || diff > _this.vmfD || Data[id].goalAcheived;
2103
+ var efVC = Data[id].efVC;
2104
+ return diff === _this.IVBl && currentTime.hours >= efVC.hours || diff > _this.IVBl || Data[id].goalAcheived;
2105
2105
  });
2106
2106
  });
2107
2107
 
@@ -2110,19 +2110,19 @@
2110
2110
  _classCallCheck(this, TerminationInfo);
2111
2111
  _defineProperty(this, "enable_goal_events", false);
2112
2112
  _defineProperty(this, "attributes", {});
2113
- _defineProperty(this, "xSTS", new Attributes());
2114
- _defineProperty(this, "moAT", new TimeBasedTermination());
2113
+ _defineProperty(this, "QIMV", new Attributes());
2114
+ _defineProperty(this, "xHCv", new TimeBasedTermination());
2115
2115
  _defineProperty(this, "parse", function () {
2116
2116
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2117
2117
  try {
2118
2118
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
2119
2119
  _this.enable_time_based = config === null || config === void 0 || (_config$terminate_inf = config.terminate_info) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.enable_time_based;
2120
- if (_this.enable_time_based && !_this.moAT.parse(config)) {
2120
+ if (_this.enable_time_based && !_this.xHCv.parse(config)) {
2121
2121
  return false;
2122
2122
  }
2123
2123
  _this.enable_goal_events = config === null || config === void 0 || (_config$terminate_inf2 = config.terminate_info) === null || _config$terminate_inf2 === void 0 ? void 0 : _config$terminate_inf2.enable_goal_events;
2124
2124
  _this.enable_attributes = config === null || config === void 0 || (_config$terminate_inf3 = config.terminate_info) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.enable_attributes;
2125
- if (_this.enable_attributes && !_this.xSTS.parse(config.terminate_info)) {
2125
+ if (_this.enable_attributes && !_this.QIMV.parse(config.terminate_info)) {
2126
2126
  return false;
2127
2127
  }
2128
2128
  } catch (error) {
@@ -2132,7 +2132,7 @@
2132
2132
  return true;
2133
2133
  });
2134
2134
  _defineProperty(this, "validate", function (user, session) {
2135
- return _this.xSTS.validate(user, session);
2135
+ return _this.QIMV.validate(user, session);
2136
2136
  });
2137
2137
  });
2138
2138
 
@@ -2140,15 +2140,15 @@
2140
2140
  var Validity = /*#__PURE__*/_createClass(function Validity() {
2141
2141
  var _this = this;
2142
2142
  _classCallCheck(this, Validity);
2143
- _defineProperty(this, "ZDDU", -1);
2144
- _defineProperty(this, "qLMk", -1);
2145
- _defineProperty(this, "pakd", -1);
2146
- _defineProperty(this, "wrcD", -1);
2147
- _defineProperty(this, "URXM", -1);
2148
- _defineProperty(this, "oAEi", -1);
2143
+ _defineProperty(this, "sOAg", -1);
2144
+ _defineProperty(this, "hAPy", -1);
2145
+ _defineProperty(this, "efVC", -1);
2146
+ _defineProperty(this, "EWBW", -1);
2147
+ _defineProperty(this, "bfgh", -1);
2148
+ _defineProperty(this, "EWYK", -1);
2149
2149
  _defineProperty(this, "_is_user_timezone", void 0);
2150
- _defineProperty(this, "SqXq", false);
2151
- _defineProperty(this, "WNZS", false);
2150
+ _defineProperty(this, "TnTd", false);
2151
+ _defineProperty(this, "WcOF", false);
2152
2152
  _defineProperty(this, "_nudge_expired", false);
2153
2153
  _defineProperty(this, "_not_yet_active", false);
2154
2154
  _defineProperty(this, "_not_in_specified_time", false);
@@ -2157,36 +2157,36 @@
2157
2157
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2158
2158
  try {
2159
2159
  var _config$validity, _config$validity2;
2160
- _this.UMRB = config._id;
2161
- _this.EgcZ = config.meta;
2160
+ _this.byNa = config._id;
2161
+ _this.UAQj = config.meta;
2162
2162
  if (isNaN(Date.parse(config.validity.start_date)) || isNaN(Date.parse(config.validity.end_date)) || !Array.isArray(config.validity.days_in_week)) {
2163
2163
  Logger$9.error("Not valid dates");
2164
2164
  return false;
2165
2165
  }
2166
- _this.ZDDU = Date.parse(config.validity.start_date);
2167
- _this.qLMk = Date.parse(config.validity.end_date);
2166
+ _this.sOAg = Date.parse(config.validity.start_date);
2167
+ _this.hAPy = Date.parse(config.validity.end_date);
2168
2168
  _this._days_in_week = (_config$validity = config.validity) !== null && _config$validity !== void 0 && _config$validity.days_in_week ? (_config$validity2 = config.validity) === null || _config$validity2 === void 0 ? void 0 : _config$validity2.days_in_week : [1, 2, 3, 4, 5, 6, 7];
2169
2169
  _this._is_user_timezone = config.is_user_timezone ? config.is_user_timezone : true;
2170
2170
  if (isDefined(config.at_specific_time)) {
2171
- _this.SqXq = config.at_specific_time;
2172
- if (_this.SqXq && isDefined(config.time_limits)) {
2173
- _this.pakd = config.time_limits.start_time;
2174
- _this.wrcD = config.time_limits.end_time;
2171
+ _this.TnTd = config.at_specific_time;
2172
+ if (_this.TnTd && isDefined(config.time_limits)) {
2173
+ _this.efVC = config.time_limits.start_time;
2174
+ _this.EWBW = config.time_limits.end_time;
2175
2175
 
2176
2176
  // If invalid format is passed, return false
2177
- if (isNumber(_this.pakd) || isNumber(_this.wrcD)) {
2177
+ if (isNumber(_this.efVC) || isNumber(_this.EWBW)) {
2178
2178
  Logger$9.error("Not valid times");
2179
2179
  return false;
2180
2180
  }
2181
2181
  }
2182
2182
  }
2183
2183
  if (isDefined(config.time_excludes_in_day)) {
2184
- _this.WNZS = config.time_excludes_in_day;
2185
- if (_this.WNZS && isDefined(config.time_excludes)) {
2186
- _this.URXM = config.time_excludes.start_time;
2187
- _this.oAEi = config.time_excludes.end_time;
2184
+ _this.WcOF = config.time_excludes_in_day;
2185
+ if (_this.WcOF && isDefined(config.time_excludes)) {
2186
+ _this.bfgh = config.time_excludes.start_time;
2187
+ _this.EWYK = config.time_excludes.end_time;
2188
2188
  // If invalid format is passed, return false
2189
- if (isNumber(_this.URXM) || isNumber(_this.oAEi)) {
2189
+ if (isNumber(_this.bfgh) || isNumber(_this.EWYK)) {
2190
2190
  Logger$9.error("Not valid exclude times");
2191
2191
  return false;
2192
2192
  }
@@ -2203,38 +2203,38 @@
2203
2203
  var currentDate = new Date();
2204
2204
  var currentDay = currentDate.getDay() + 1;
2205
2205
  var currentTimeIn24hourFormat = _getCurrentTime(_this._is_user_timezone);
2206
- if (currentTime > _this.ZDDU && currentTime < _this.qLMk && _this._days_in_week.includes(currentDay)) {
2207
- if (_this.SqXq && !(_timeEvaluator(currentTimeIn24hourFormat, _this.pakd, "GT") && _timeEvaluator(currentTimeIn24hourFormat, _this.wrcD, "LT"))) {
2206
+ if (currentTime > _this.sOAg && currentTime < _this.hAPy && _this._days_in_week.includes(currentDay)) {
2207
+ if (_this.TnTd && !(_timeEvaluator(currentTimeIn24hourFormat, _this.efVC, "GT") && _timeEvaluator(currentTimeIn24hourFormat, _this.EWBW, "LT"))) {
2208
2208
  _this._not_in_specified_time = true;
2209
2209
  }
2210
- if (_this.WNZS && isTimeBetween(_this.URXM, _this.oAEi, currentTimeIn24hourFormat)) {
2211
- _this.agaL("Exclude Time limits check failed");
2210
+ if (_this.WcOF && isTimeBetween(_this.bfgh, _this.EWYK, currentTimeIn24hourFormat)) {
2211
+ _this.oLNe("Exclude Time limits check failed");
2212
2212
  if (Apxor.getController().isTestDevice()) {
2213
- validationToastDisplayandRemoval("Exclude Time Limits check failed for campaign name ".concat(_this.EgcZ.name));
2213
+ validationToastDisplayandRemoval("Exclude Time Limits check failed for campaign name ".concat(_this.UAQj.name));
2214
2214
  }
2215
2215
  return false;
2216
2216
  }
2217
- return !_this.SqXq || _timeEvaluator(currentTimeIn24hourFormat, _this.pakd, "GT") && _timeEvaluator(currentTimeIn24hourFormat, _this.wrcD, "LT");
2218
- } else if (currentTime < _this.ZDDU) {
2217
+ return !_this.TnTd || _timeEvaluator(currentTimeIn24hourFormat, _this.efVC, "GT") && _timeEvaluator(currentTimeIn24hourFormat, _this.EWBW, "LT");
2218
+ } else if (currentTime < _this.sOAg) {
2219
2219
  _this._not_yet_active = true;
2220
- } else if (currentTime > _this.qLMk) {
2220
+ } else if (currentTime > _this.hAPy) {
2221
2221
  _this._nudge_expired = true;
2222
2222
  } else if (!_this._days_in_week.includes(currentDay)) {
2223
- _this.agaL("Current week day did not match with Configured Week day");
2223
+ _this.oLNe("Current week day did not match with Configured Week day");
2224
2224
  if (Apxor.getController().isTestDevice()) {
2225
- validationToastDisplayandRemoval("Current week day did not match with Configured Week day for campaign name ".concat(_this.EgcZ.name));
2225
+ validationToastDisplayandRemoval("Current week day did not match with Configured Week day for campaign name ".concat(_this.UAQj.name));
2226
2226
  }
2227
2227
  return false;
2228
2228
  }
2229
2229
  return false;
2230
2230
  });
2231
- _defineProperty(this, "agaL", function (reason) {
2232
- var _this$EgcZ$attr;
2231
+ _defineProperty(this, "oLNe", function (reason) {
2232
+ var _this$UAQj$attr;
2233
2233
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
2234
- apx_nudge_type: _this.EgcZ.type === "SURVEY" ? "survey" : "campaign",
2235
- apx_nudge_id: _this.UMRB,
2236
- apx_nudge_name: _this.EgcZ.name,
2237
- apx_variant_code: _this.EgcZ.isExperiment || _this.EgcZ.only_context ? (_this$EgcZ$attr = _this.EgcZ.attr) === null || _this$EgcZ$attr === void 0 ? void 0 : _this$EgcZ$attr[APX_VARIANT_CODE] : "TG",
2234
+ apx_nudge_type: _this.UAQj.type === "SURVEY" ? "survey" : "campaign",
2235
+ apx_nudge_id: _this.byNa,
2236
+ apx_nudge_name: _this.UAQj.name,
2237
+ apx_variant_code: _this.UAQj.isExperiment || _this.UAQj.only_context ? (_this$UAQj$attr = _this.UAQj.attr) === null || _this$UAQj$attr === void 0 ? void 0 : _this$UAQj$attr[APX_VARIANT_CODE] : "TG",
2238
2238
  apx_failure_type: "warn",
2239
2239
  apx_reason: reason
2240
2240
  });
@@ -2244,20 +2244,20 @@
2244
2244
  var Binding = /*#__PURE__*/_createClass(function Binding() {
2245
2245
  var _this = this;
2246
2246
  _classCallCheck(this, Binding);
2247
- _defineProperty(this, "AHgi", "");
2248
- _defineProperty(this, "uIxc", "");
2249
- _defineProperty(this, "xcOn", "");
2250
- _defineProperty(this, "uPhW", "");
2247
+ _defineProperty(this, "iePR", "");
2248
+ _defineProperty(this, "MpWm", "");
2249
+ _defineProperty(this, "HatP", "");
2250
+ _defineProperty(this, "digg", "");
2251
2251
  _defineProperty(this, "parse", function () {
2252
2252
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2253
2253
  try {
2254
- _this.AHgi = config === null || config === void 0 ? void 0 : config.screen_binding;
2255
- if (!_this.AHgi) {
2254
+ _this.iePR = config === null || config === void 0 ? void 0 : config.screen_binding;
2255
+ if (!_this.iePR) {
2256
2256
  return true;
2257
2257
  } else {
2258
- _this.uIxc = config === null || config === void 0 ? void 0 : config.binding.url;
2259
- _this.xcOn = config === null || config === void 0 ? void 0 : config.binding["var"];
2260
- _this.uPhW = config === null || config === void 0 ? void 0 : config.binding.operator;
2258
+ _this.MpWm = config === null || config === void 0 ? void 0 : config.binding.url;
2259
+ _this.HatP = config === null || config === void 0 ? void 0 : config.binding["var"];
2260
+ _this.digg = config === null || config === void 0 ? void 0 : config.binding.operator;
2261
2261
  return true;
2262
2262
  }
2263
2263
  } catch (error) {
@@ -2272,11 +2272,11 @@
2272
2272
  * operator :operator can be either "EQ" used for equality comparision or "SW" used for startswith comparision
2273
2273
  */
2274
2274
  _defineProperty(this, "validate", function () {
2275
- var url = _this.uIxc;
2276
- var variable = _this.xcOn;
2277
- var operator = _this.uPhW;
2275
+ var url = _this.MpWm;
2276
+ var variable = _this.HatP;
2277
+ var operator = _this.digg;
2278
2278
  var currentUrl = window.location.href;
2279
- if (!_this.AHgi) {
2279
+ if (!_this.iePR) {
2280
2280
  return true;
2281
2281
  } else {
2282
2282
  if (operator === "EQ") {
@@ -2320,44 +2320,44 @@
2320
2320
  var ConfigItem = /*#__PURE__*/_createClass(function ConfigItem() {
2321
2321
  var _this = this;
2322
2322
  _classCallCheck(this, ConfigItem);
2323
- _defineProperty(this, "QfBW", []);
2324
- _defineProperty(this, "sWqU", []);
2325
- _defineProperty(this, "UMRB", "");
2326
- _defineProperty(this, "EgcZ", new Meta());
2327
- _defineProperty(this, "LpAl", new Audience());
2328
- _defineProperty(this, "Aveo", new Validity());
2329
- _defineProperty(this, "tWsf", new Frequency());
2330
- _defineProperty(this, "EHDG", new OverallConfig());
2331
- _defineProperty(this, "lDOg", new TerminationInfo());
2332
- _defineProperty(this, "rNEC", new Binding());
2333
- _defineProperty(this, "CosE", false);
2334
- _defineProperty(this, "cTlZ", []);
2323
+ _defineProperty(this, "qDhd", []);
2324
+ _defineProperty(this, "muSD", []);
2325
+ _defineProperty(this, "byNa", "");
2326
+ _defineProperty(this, "UAQj", new Meta());
2327
+ _defineProperty(this, "OEmI", new Audience());
2328
+ _defineProperty(this, "wlKA", new Validity());
2329
+ _defineProperty(this, "bgKv", new Frequency());
2330
+ _defineProperty(this, "PZsY", new OverallConfig());
2331
+ _defineProperty(this, "QeSd", new TerminationInfo());
2332
+ _defineProperty(this, "hjvD", new Binding());
2333
+ _defineProperty(this, "QBhD", false);
2334
+ _defineProperty(this, "FprY", []);
2335
2335
  _defineProperty(this, "_variant_code", "");
2336
- _defineProperty(this, "bnfg", false);
2336
+ _defineProperty(this, "JMpw", false);
2337
2337
  _defineProperty(this, "groupCombineOperator", "OR");
2338
- _defineProperty(this, "tqtJ", false);
2339
- _defineProperty(this, "vPed", false);
2340
- _defineProperty(this, "WRdX", void 0);
2338
+ _defineProperty(this, "XUqN", false);
2339
+ _defineProperty(this, "ksFd", false);
2340
+ _defineProperty(this, "HTMZ", void 0);
2341
2341
  _defineProperty(this, "timeForKPI", void 0);
2342
2342
  _defineProperty(this, "kpiIndex", 0);
2343
- _defineProperty(this, "ZuJR", void 0);
2343
+ _defineProperty(this, "uUAf", void 0);
2344
2344
  _defineProperty(this, "_across_sessions", false);
2345
- _defineProperty(this, "FWVg", void 0);
2346
- _defineProperty(this, "XyBT", false);
2347
- _defineProperty(this, "OfMt", void 0);
2348
- _defineProperty(this, "VDGB", void 0);
2349
- _defineProperty(this, "FAwt", void 0);
2350
- _defineProperty(this, "NUcf", void 0);
2351
- _defineProperty(this, "YTaA", void 0);
2352
- _defineProperty(this, "xlCr", void 0);
2353
- _defineProperty(this, "AfPH", void 0);
2354
- _defineProperty(this, "qaPg", void 0);
2355
- _defineProperty(this, "jsmS", void 0);
2356
- _defineProperty(this, "jfEs", void 0);
2345
+ _defineProperty(this, "hamV", void 0);
2346
+ _defineProperty(this, "tgNa", false);
2347
+ _defineProperty(this, "kums", void 0);
2348
+ _defineProperty(this, "jOIP", void 0);
2349
+ _defineProperty(this, "NnfN", void 0);
2350
+ _defineProperty(this, "JoCc", void 0);
2351
+ _defineProperty(this, "IkUi", void 0);
2352
+ _defineProperty(this, "BfMp", void 0);
2353
+ _defineProperty(this, "xHDs", void 0);
2354
+ _defineProperty(this, "CnEP", void 0);
2355
+ _defineProperty(this, "OSIj", void 0);
2356
+ _defineProperty(this, "pVaj", void 0);
2357
2357
  _defineProperty(this, "parse", function () {
2358
2358
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2359
2359
  try {
2360
- var _this$EgcZ$_attr;
2360
+ var _this$UAQj$_attr;
2361
2361
  // If ID is not present, throw it out
2362
2362
  if (!isDefined(config._id)) {
2363
2363
  Logger$a.error("No Id");
@@ -2371,10 +2371,10 @@
2371
2371
  }
2372
2372
 
2373
2373
  // If META, VALIDITY, FREQUENCY and AUDIENCE is not parsed properly, throw it out
2374
- if (!(_this.EgcZ.parse(config) && _this.Aveo.parse(config) && _this.tWsf.parse(config) && _this.LpAl.parse(config) && _this.EHDG.parse(config) && _this.lDOg.parse(config) && _this.rNEC.parse(config))) {
2374
+ if (!(_this.UAQj.parse(config) && _this.wlKA.parse(config) && _this.bgKv.parse(config) && _this.OEmI.parse(config) && _this.PZsY.parse(config) && _this.QeSd.parse(config) && _this.hjvD.parse(config))) {
2375
2375
  return false;
2376
2376
  }
2377
- _this._variant_code = _this.EgcZ._isExperiment || _this.EgcZ._only_context ? (_this$EgcZ$_attr = _this.EgcZ._attr) === null || _this$EgcZ$_attr === void 0 ? void 0 : _this$EgcZ$_attr[APX_VARIANT_CODE] : "TG";
2377
+ _this._variant_code = _this.UAQj._isExperiment || _this.UAQj._only_context ? (_this$UAQj$_attr = _this.UAQj._attr) === null || _this$UAQj$_attr === void 0 ? void 0 : _this$UAQj$_attr[APX_VARIANT_CODE] : "TG";
2378
2378
  _this._across_sessions = config !== null && config !== void 0 && config.across_sessions ? config === null || config === void 0 ? void 0 : config.across_sessions : false;
2379
2379
  _this.enable_conditions = config === null || config === void 0 ? void 0 : config.enable_conditions;
2380
2380
  _this.enable_conditions_v2 = config === null || config === void 0 ? void 0 : config.enable_conditions_v2;
@@ -2383,12 +2383,12 @@
2383
2383
  Logger$a.error("No valid conditions", config.conditions);
2384
2384
  return false;
2385
2385
  }
2386
- _this.UMRB = config._id;
2387
- _this.CosE = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
2386
+ _this.byNa = config._id;
2387
+ _this.QBhD = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
2388
2388
  if (isDefined(config.conditions_v2) && _this.enable_conditions_v2) {
2389
- _this.CosE = config === null || config === void 0 ? void 0 : config.sequence_type;
2389
+ _this.QBhD = config === null || config === void 0 ? void 0 : config.sequence_type;
2390
2390
  }
2391
- if (_this.CosE === true) {
2391
+ if (_this.QBhD === true) {
2392
2392
  // iff respectSequence is true, Sort the Conditions by their sequence order
2393
2393
  // We need to sort, if server sends them in orderless manner
2394
2394
  config.conditions.sort(function (prev, current) {
@@ -2400,40 +2400,40 @@
2400
2400
  var conditions;
2401
2401
  if (isDefined(config.conditions_v2) && _this.enable_conditions_v2) {
2402
2402
  conditions = config.conditions_v2;
2403
- _this.XyBT = true;
2403
+ _this.tgNa = true;
2404
2404
  } else {
2405
2405
  conditions = config.conditions;
2406
2406
  }
2407
- _this.FWVg = conditions;
2407
+ _this.hamV = conditions;
2408
2408
  var length = conditions.length;
2409
2409
  var no_context_enabled = config === null || config === void 0 ? void 0 : config.no_context_enabled;
2410
2410
  if (length === 0 && no_context_enabled) {
2411
2411
  setTimeout(function () {
2412
- _this.Csks();
2412
+ _this.oMnu();
2413
2413
  }, 10);
2414
2414
  }
2415
- _this.jfEs = length;
2416
- _this.aEWV(conditions, length);
2417
- _this.KHmZ();
2418
- if (_this.lDOg.enable_goal_events) {
2415
+ _this.pVaj = length;
2416
+ _this.xAWo(conditions, length);
2417
+ _this.bVtl();
2418
+ if (_this.QeSd.enable_goal_events) {
2419
2419
  var goal_events = config.terminate_info.goal_events.events;
2420
2420
  var goaleventslength = goal_events.length;
2421
2421
  for (var i = 0; i < goaleventslength; i++) {
2422
2422
  var conditionValidator = new ConditionValidator();
2423
- if (conditionValidator.initialize(goal_events[i], _this.UMRB, i, true, [], _this._across_sessions, "termination")) {
2424
- _this.sWqU.push(conditionValidator);
2423
+ if (conditionValidator.initialize(goal_events[i], _this.byNa, i, true, [], _this._across_sessions, "termination")) {
2424
+ _this.muSD.push(conditionValidator);
2425
2425
  }
2426
2426
  }
2427
2427
  }
2428
- return _this.QfBW.length > 0;
2428
+ return _this.qDhd.length > 0;
2429
2429
  } catch (error) {
2430
2430
  Logger$a.error(error);
2431
2431
  return false;
2432
2432
  }
2433
2433
  });
2434
- _defineProperty(this, "aEWV", function (conditions, length) {
2434
+ _defineProperty(this, "xAWo", function (conditions, length) {
2435
2435
  var _loop = function _loop() {
2436
- _this.cTlZ = [];
2436
+ _this.FprY = [];
2437
2437
  var condition = conditions[index];
2438
2438
  var condition_type = condition !== null && condition !== void 0 && condition.condition_type ? condition === null || condition === void 0 ? void 0 : condition.condition_type : "single";
2439
2439
  if (condition_type === "group") {
@@ -2441,32 +2441,32 @@
2441
2441
  var conditions_v2 = condition.conditions_v2;
2442
2442
  _this.groupCombineOperator = condition.combine_operator;
2443
2443
  var groupRespectSequence = condition === null || condition === void 0 ? void 0 : condition.sequence_type;
2444
- _this.jsmS = new GroupConditionValidator();
2445
- var groupValidator = _this.jsmS.initialize(conditions_v2, _this.UMRB, index, groupRespectSequence, _this.cTlZ, _this.CosE, _this._across_sessions);
2446
- _this.QfBW.push(groupValidator);
2447
- //this.aEWV(condition.conditions_v2, length_child_conditions);
2444
+ _this.OSIj = new GroupConditionValidator();
2445
+ var groupValidator = _this.OSIj.initialize(conditions_v2, _this.byNa, index, groupRespectSequence, _this.FprY, _this.QBhD, _this._across_sessions);
2446
+ _this.qDhd.push(groupValidator);
2447
+ //this.xAWo(condition.conditions_v2, length_child_conditions);
2448
2448
  } else {
2449
2449
  if (condition.type === "didn't") {
2450
- var ehHx$details;
2450
+ var gUwB$details;
2451
2451
  var obj = {
2452
2452
  trigger_key: condition.trigger.details.name,
2453
- no_kpi_array: condition === null || condition === void 0 || (ehHx$details = condition.details) === null || ehHx$details === void 0 || (ehHx$details = ehHx$details.additional_info) === null || ehHx$details === void 0 ? void 0 : ehHx$details.nkpi,
2453
+ no_kpi_array: condition === null || condition === void 0 || (gUwB$details = condition.details) === null || gUwB$details === void 0 || (gUwB$details = gUwB$details.additional_info) === null || gUwB$details === void 0 ? void 0 : gUwB$details.nkpi,
2454
2454
  condition_id: condition === null || condition === void 0 ? void 0 : condition._id,
2455
2455
  time_bounds: condition.time_bounds.upper
2456
2456
  };
2457
- _this.cTlZ = [].concat(_toConsumableArray(_this.cTlZ), [obj]);
2457
+ _this.FprY = [].concat(_toConsumableArray(_this.FprY), [obj]);
2458
2458
  }
2459
- _this.jsmS = new ConditionValidator();
2460
- if (_this.jsmS.initialize(condition, _this.UMRB, index, _this.CosE, _this.cTlZ, _this._across_sessions)) {
2461
- _this.QfBW.push(_this.jsmS);
2459
+ _this.OSIj = new ConditionValidator();
2460
+ if (_this.OSIj.initialize(condition, _this.byNa, index, _this.QBhD, _this.FprY, _this._across_sessions)) {
2461
+ _this.qDhd.push(_this.OSIj);
2462
2462
  var max_retries = (condition === null || condition === void 0 ? void 0 : condition.timeout) / (condition === null || condition === void 0 ? void 0 : condition.findinterval);
2463
2463
  var frame_id = (condition === null || condition === void 0 ? void 0 : condition.frameid) || "";
2464
2464
  var url = condition === null || condition === void 0 ? void 0 : condition.url;
2465
2465
  if (window.location.href === url) {
2466
2466
  if (condition.event_type === "view_visibility") {
2467
2467
  if (_findTargetElement(condition.view_id, frame_id, condition === null || condition === void 0 ? void 0 : condition.enable_retry, condition === null || condition === void 0 ? void 0 : condition.findinterval, max_retries) === true) {
2468
- //this.AXfg();
2469
- _this.Csks(true);
2468
+ //this.FsBn();
2469
+ _this.oMnu(true);
2470
2470
  }
2471
2471
  }
2472
2472
  }
@@ -2476,8 +2476,8 @@
2476
2476
  if (window.location.href === url) {
2477
2477
  if (condition.event_type === "view_visibility") {
2478
2478
  if (_findTargetElement(condition.view_id, frame_id, condition === null || condition === void 0 ? void 0 : condition.enable_retry, condition === null || condition === void 0 ? void 0 : condition.findinterval, max_retries) === true) {
2479
- //this.AXfg();
2480
- _this.Csks(true);
2479
+ //this.FsBn();
2480
+ _this.oMnu(true);
2481
2481
  }
2482
2482
  }
2483
2483
  }
@@ -2489,188 +2489,188 @@
2489
2489
  _loop();
2490
2490
  }
2491
2491
  });
2492
- _defineProperty(this, "KHmZ", function () {
2493
- if (_this._across_sessions && _this.CosE === "ordered") {
2492
+ _defineProperty(this, "bVtl", function () {
2493
+ if (_this._across_sessions && _this.QBhD === "ordered") {
2494
2494
  var satisfied = false;
2495
2495
  var no_KPI_TriggerDetails = Apxor.getController().getFromStorage("apx_nokpi_triggerdetails");
2496
2496
  no_KPI_TriggerDetails = JSON.parse(no_KPI_TriggerDetails);
2497
2497
  if (no_KPI_TriggerDetails != null && no_KPI_TriggerDetails != undefined) {
2498
2498
  var _loop2 = function _loop2(i) {
2499
2499
  var _this$_conditionValid, _this$_conditionValid2, _this$_conditionValid3;
2500
- if ((_this$_conditionValid = _this.QfBW[i]) !== null && _this$_conditionValid !== void 0 && (_this$_conditionValid = _this$_conditionValid.ehHx) !== null && _this$_conditionValid !== void 0 && _this$_conditionValid._timeEnabled && _this.QfBW[i].length === undefined) {
2501
- if (_this.QfBW[i].ehHx.OPHn === "didn't") {
2502
- var conditionValidatorId = _this.QfBW[i].ehHx._id;
2503
- var matchingObject = _this.aIKR(conditionValidatorId, no_KPI_TriggerDetails);
2500
+ if ((_this$_conditionValid = _this.qDhd[i]) !== null && _this$_conditionValid !== void 0 && (_this$_conditionValid = _this$_conditionValid.gUwB) !== null && _this$_conditionValid !== void 0 && _this$_conditionValid._timeEnabled && _this.qDhd[i].length === undefined) {
2501
+ if (_this.qDhd[i].gUwB.PToU === "didn't") {
2502
+ var conditionValidatorId = _this.qDhd[i].gUwB._id;
2503
+ var matchingObject = _this.Hyed(conditionValidatorId, no_KPI_TriggerDetails);
2504
2504
  if (matchingObject) {
2505
2505
  if (Date.now() > matchingObject.finishTime) {
2506
- _this.QfBW[i].qyAQ = true;
2507
- _this.QfBW[i].jPoW = matchingObject.satisfiedCount;
2506
+ _this.qDhd[i].JIae = true;
2507
+ _this.qDhd[i].ztco = matchingObject.satisfiedCount;
2508
2508
  satisfied = true;
2509
2509
  } else {
2510
2510
  var timeleft = matchingObject.finishTime - Date.now();
2511
- var eventCategory = _this.QfBW[i].ehHx._eventCategory ? _this.QfBW[i].ehHx._eventCategory : "specific_event";
2511
+ var eventCategory = _this.qDhd[i].gUwB._eventCategory ? _this.qDhd[i].gUwB._eventCategory : "specific_event";
2512
2512
  var ceInstance = new CE();
2513
2513
  if (eventCategory === "specific_event") {
2514
- ceInstance.registerForEvent(generateKey(_this.QfBW[i].ehHx.NIzW) + "___" + _this.QfBW[i].ehHx.Aylq.rpCx, _this.UgQF);
2515
- _this.YTaA = _this.QfBW[i];
2514
+ ceInstance.registerForEvent(generateKey(_this.qDhd[i].gUwB.ncqb) + "___" + _this.qDhd[i].gUwB.mkdK.KtUk, _this.yfyV);
2515
+ _this.IkUi = _this.qDhd[i];
2516
2516
  } else {
2517
- _this.NPJe(eventCategory);
2517
+ _this.apbB(eventCategory);
2518
2518
  }
2519
2519
  setTimeout(function () {
2520
- if (i === _this.QfBW.length - 1 && !_this.tqtJ) {
2521
- _this.QfBW[i].qyAQ = true;
2522
- _this.QfBW[i].jPoW = matchingObject.satisfiedCount;
2520
+ if (i === _this.qDhd.length - 1 && !_this.XUqN) {
2521
+ _this.qDhd[i].JIae = true;
2522
+ _this.qDhd[i].ztco = matchingObject.satisfiedCount;
2523
2523
  satisfied = true;
2524
2524
  if (eventCategory === "specific_event") {
2525
- ceInstance.unregisterFromEvent(generateKey(_this.QfBW[i].ehHx.NIzW) + "___" + _this.QfBW[i].ehHx.Aylq.rpCx, _this.UgQF);
2525
+ ceInstance.unregisterFromEvent(generateKey(_this.qDhd[i].gUwB.ncqb) + "___" + _this.qDhd[i].gUwB.mkdK.KtUk, _this.yfyV);
2526
2526
  } else {
2527
- _this.mNlm(_this.QfBW[i]);
2527
+ _this.erRp(_this.qDhd[i]);
2528
2528
  }
2529
- _this.Csks();
2529
+ _this.oMnu();
2530
2530
  }
2531
2531
  }, timeleft);
2532
2532
  }
2533
2533
  }
2534
2534
  }
2535
- if (_this.QfBW[i].ehHx.OPHn === "did") {
2536
- var _conditionValidatorId = _this.QfBW[i].ehHx._id;
2537
- var _matchingObject = _this.aIKR(_conditionValidatorId, no_KPI_TriggerDetails);
2535
+ if (_this.qDhd[i].gUwB.PToU === "did") {
2536
+ var _conditionValidatorId = _this.qDhd[i].gUwB._id;
2537
+ var _matchingObject = _this.Hyed(_conditionValidatorId, no_KPI_TriggerDetails);
2538
2538
  if (_matchingObject) {
2539
2539
  if (_matchingObject.satisfiedCount == null) {
2540
2540
  if (Date.now() < _matchingObject.finishTime) {
2541
- _this.FAwt = _matchingObject;
2542
- _this.VDGB = i;
2541
+ _this.NnfN = _matchingObject;
2542
+ _this.jOIP = i;
2543
2543
  var _timeleft = _matchingObject.finishTime - Date.now();
2544
- var _eventCategory = _this.QfBW[i].ehHx._eventCategory ? _this.QfBW[i].ehHx._eventCategory : "specific_event";
2544
+ var _eventCategory = _this.qDhd[i].gUwB._eventCategory ? _this.qDhd[i].gUwB._eventCategory : "specific_event";
2545
2545
  var _ceInstance = new CE();
2546
2546
  if (_eventCategory === "specific_event") {
2547
- _ceInstance.registerForEvent(generateKey(_this.QfBW[i].ehHx.NIzW) + "___" + _this.QfBW[i].ehHx.Aylq.rpCx, _this.sGIM);
2547
+ _ceInstance.registerForEvent(generateKey(_this.qDhd[i].gUwB.ncqb) + "___" + _this.qDhd[i].gUwB.mkdK.KtUk, _this.tKqI);
2548
2548
  } else {
2549
- _this.NPJe(_eventCategory);
2549
+ _this.apbB(_eventCategory);
2550
2550
  }
2551
2551
  setTimeout(function () {
2552
2552
  if (_eventCategory === "specific_event") {
2553
- _ceInstance.unregisterFromEvent(generateKey(_this.QfBW[i].ehHx.NIzW) + "___" + _this.QfBW[i].ehHx.Aylq.rpCx, _this.sGIM);
2553
+ _ceInstance.unregisterFromEvent(generateKey(_this.qDhd[i].gUwB.ncqb) + "___" + _this.qDhd[i].gUwB.mkdK.KtUk, _this.tKqI);
2554
2554
  } else {
2555
- _this.mNlm(_this.QfBW[i]);
2555
+ _this.erRp(_this.qDhd[i]);
2556
2556
  }
2557
2557
  }, _timeleft);
2558
2558
  }
2559
2559
  } else {
2560
- _this.QfBW[i].jPoW = _matchingObject.satisfiedCount;
2561
- _this.QfBW[i].qyAQ = true;
2560
+ _this.qDhd[i].ztco = _matchingObject.satisfiedCount;
2561
+ _this.qDhd[i].JIae = true;
2562
2562
  }
2563
2563
  }
2564
2564
  }
2565
2565
  } else {
2566
- satisfied = _this.bnzx(i, no_KPI_TriggerDetails);
2566
+ satisfied = _this.hqhi(i, no_KPI_TriggerDetails);
2567
2567
  }
2568
- if (satisfied && (!((_this$_conditionValid2 = _this.QfBW[i]) !== null && _this$_conditionValid2 !== void 0 && (_this$_conditionValid2 = _this$_conditionValid2.ehHx) !== null && _this$_conditionValid2 !== void 0 && _this$_conditionValid2._timeEnabled) || ((_this$_conditionValid3 = _this.QfBW[i]) === null || _this$_conditionValid3 === void 0 ? void 0 : _this$_conditionValid3.length) > 1)) {
2569
- if (i === _this.QfBW.length - 1) {
2570
- _this.Csks();
2568
+ if (satisfied && (!((_this$_conditionValid2 = _this.qDhd[i]) !== null && _this$_conditionValid2 !== void 0 && (_this$_conditionValid2 = _this$_conditionValid2.gUwB) !== null && _this$_conditionValid2 !== void 0 && _this$_conditionValid2._timeEnabled) || ((_this$_conditionValid3 = _this.qDhd[i]) === null || _this$_conditionValid3 === void 0 ? void 0 : _this$_conditionValid3.length) > 1)) {
2569
+ if (i === _this.qDhd.length - 1) {
2570
+ _this.oMnu();
2571
2571
  }
2572
2572
  } else if (!satisfied) {
2573
- if (!_this.QfBW[i].length === undefined) _this.QfBW[i].AXfg();
2573
+ if (!_this.qDhd[i].length === undefined) _this.qDhd[i].FsBn();
2574
2574
  }
2575
2575
  };
2576
- for (var i = 0; i < _this.QfBW.length; i++) {
2576
+ for (var i = 0; i < _this.qDhd.length; i++) {
2577
2577
  _loop2(i);
2578
2578
  }
2579
2579
  }
2580
- } else if (_this._across_sessions && _this.CosE === "unordered") {
2580
+ } else if (_this._across_sessions && _this.QBhD === "unordered") {
2581
2581
  var _no_KPI_TriggerDetails = Apxor.getController().getFromStorage("apx_nokpi_triggerdetails");
2582
2582
  _no_KPI_TriggerDetails = JSON.parse(_no_KPI_TriggerDetails);
2583
2583
  if (_no_KPI_TriggerDetails != null && _no_KPI_TriggerDetails != undefined) {
2584
- for (var _i = 0; _i < _this.QfBW.length; _i++) {
2585
- _this.bnzx(_i, _no_KPI_TriggerDetails);
2584
+ for (var _i = 0; _i < _this.qDhd.length; _i++) {
2585
+ _this.hqhi(_i, _no_KPI_TriggerDetails);
2586
2586
  }
2587
2587
  }
2588
2588
  }
2589
2589
  });
2590
- _defineProperty(this, "bnzx", function (index, no_KPI_TriggerDetails) {
2591
- if (_this.QfBW[index].length === undefined || _this.QfBW[index].length === 1) {
2592
- var conditionValidatorId = _this.QfBW[index].ehHx._id;
2590
+ _defineProperty(this, "hqhi", function (index, no_KPI_TriggerDetails) {
2591
+ if (_this.qDhd[index].length === undefined || _this.qDhd[index].length === 1) {
2592
+ var conditionValidatorId = _this.qDhd[index].gUwB._id;
2593
2593
  var satisfied = false;
2594
- var matchingObject = _this.aIKR(conditionValidatorId, no_KPI_TriggerDetails);
2594
+ var matchingObject = _this.Hyed(conditionValidatorId, no_KPI_TriggerDetails);
2595
2595
  if (matchingObject) {
2596
- _this.OfMt = matchingObject;
2596
+ _this.kums = matchingObject;
2597
2597
  var validator = new ConditionValidator();
2598
- satisfied = validator.eHRa(matchingObject.satisfiedCount, _this.QfBW[index].ehHx.Ruyv, _this.QfBW[index].ehHx.NyLm);
2598
+ satisfied = validator.bgeF(matchingObject.satisfiedCount, _this.qDhd[index].gUwB.UeME, _this.qDhd[index].gUwB.uBco);
2599
2599
  if (matchingObject) {
2600
2600
  if (satisfied) {
2601
- _this.QfBW[index].qyAQ = true;
2601
+ _this.qDhd[index].JIae = true;
2602
2602
  } else {
2603
- _this.QfBW[index].jPoW = matchingObject.satisfiedCount;
2603
+ _this.qDhd[index].ztco = matchingObject.satisfiedCount;
2604
2604
  }
2605
2605
  }
2606
2606
  } else {
2607
- _this.QfBW[index].AXfg();
2607
+ _this.qDhd[index].FsBn();
2608
2608
  }
2609
2609
  return satisfied;
2610
- } else if (_this.QfBW[index].length >= 1) {
2610
+ } else if (_this.qDhd[index].length >= 1) {
2611
2611
  var _this$_conditionValid4;
2612
2612
  var groupRespectSequence = "unordered";
2613
- groupRespectSequence = (_this$_conditionValid4 = _this.QfBW[index]) === null || _this$_conditionValid4 === void 0 ? void 0 : _this$_conditionValid4.sequence_type;
2613
+ groupRespectSequence = (_this$_conditionValid4 = _this.qDhd[index]) === null || _this$_conditionValid4 === void 0 ? void 0 : _this$_conditionValid4.sequence_type;
2614
2614
  var individualConditionSatisfied;
2615
2615
  if (groupRespectSequence === "ordered" || groupRespectSequence === "strictly_ordered") {
2616
- for (var i = 0; i < _this.QfBW[index].length; i++) {
2617
- var individualCondition = _this.QfBW[index][i];
2618
- var singleConditionValidatorId = individualCondition.ehHx._id;
2616
+ for (var i = 0; i < _this.qDhd[index].length; i++) {
2617
+ var individualCondition = _this.qDhd[index][i];
2618
+ var singleConditionValidatorId = individualCondition.gUwB._id;
2619
2619
  individualConditionSatisfied = false;
2620
- var _matchingObject2 = _this.aIKR(singleConditionValidatorId, no_KPI_TriggerDetails);
2620
+ var _matchingObject2 = _this.Hyed(singleConditionValidatorId, no_KPI_TriggerDetails);
2621
2621
  if (_matchingObject2) {
2622
2622
  var _validator = new ConditionValidator();
2623
- individualConditionSatisfied = _validator.eHRa(_matchingObject2.satisfiedCount, individualCondition.ehHx.Ruyv, individualCondition.ehHx.NyLm);
2623
+ individualConditionSatisfied = _validator.bgeF(_matchingObject2.satisfiedCount, individualCondition.gUwB.UeME, individualCondition.gUwB.uBco);
2624
2624
  if (_matchingObject2) {
2625
2625
  if (individualConditionSatisfied) {
2626
- _this.QfBW[index][i].qyAQ = true;
2626
+ _this.qDhd[index][i].JIae = true;
2627
2627
  var childIndex = i + 1;
2628
- var upcomingValidator = _this.QfBW[index][i + 1];
2629
- if (upcomingValidator === undefined && isDefined(_this.QfBW[index + 1])) {
2630
- _this.QfBW[index + 1].AXfg();
2628
+ var upcomingValidator = _this.qDhd[index][i + 1];
2629
+ if (upcomingValidator === undefined && isDefined(_this.qDhd[index + 1])) {
2630
+ _this.qDhd[index + 1].FsBn();
2631
2631
  individualConditionSatisfied = true;
2632
2632
  }
2633
2633
  if (upcomingValidator != undefined) {
2634
- _this.QfBW[index][i + 1].AXfg(childIndex);
2634
+ _this.qDhd[index][i + 1].FsBn(childIndex);
2635
2635
  }
2636
2636
  } else {
2637
- _this.QfBW[index][i].jPoW = _matchingObject2.satisfiedCount;
2637
+ _this.qDhd[index][i].ztco = _matchingObject2.satisfiedCount;
2638
2638
  }
2639
2639
  }
2640
2640
  } else {
2641
- if (isDefined(_this.QfBW[index][i - 1]) && _this.QfBW[index][i].qyAQ === true) {
2642
- _this.QfBW[index][i].AXfg();
2643
- } else if (isUndefined(_this.QfBW[index][i - 1])) {
2644
- _this.QfBW[index][i].AXfg();
2641
+ if (isDefined(_this.qDhd[index][i - 1]) && _this.qDhd[index][i].JIae === true) {
2642
+ _this.qDhd[index][i].FsBn();
2643
+ } else if (isUndefined(_this.qDhd[index][i - 1])) {
2644
+ _this.qDhd[index][i].FsBn();
2645
2645
  }
2646
2646
  }
2647
2647
  }
2648
2648
  return individualConditionSatisfied;
2649
2649
  } else {
2650
2650
  var conditionSatisfiedChecker;
2651
- for (var _i2 = 0; _i2 < _this.QfBW[index].length; _i2++) {
2652
- var individualCombineOperator = _this.QfBW[index][0].ehHx.unUI;
2651
+ for (var _i2 = 0; _i2 < _this.qDhd[index].length; _i2++) {
2652
+ var individualCombineOperator = _this.qDhd[index][0].gUwB.ipfv;
2653
2653
  if (individualCombineOperator === "OR") {
2654
2654
  conditionSatisfiedChecker = false;
2655
2655
  } else {
2656
2656
  conditionSatisfiedChecker = true;
2657
2657
  }
2658
- var _individualCondition = _this.QfBW[index][_i2];
2659
- var _singleConditionValidatorId = _individualCondition.ehHx._id;
2658
+ var _individualCondition = _this.qDhd[index][_i2];
2659
+ var _singleConditionValidatorId = _individualCondition.gUwB._id;
2660
2660
  individualConditionSatisfied = false;
2661
- var _matchingObject3 = _this.aIKR(_singleConditionValidatorId, no_KPI_TriggerDetails);
2661
+ var _matchingObject3 = _this.Hyed(_singleConditionValidatorId, no_KPI_TriggerDetails);
2662
2662
  if (_matchingObject3) {
2663
2663
  var _validator2 = new ConditionValidator();
2664
- individualConditionSatisfied = _validator2.eHRa(_matchingObject3.satisfiedCount, _individualCondition.ehHx.Ruyv, _individualCondition.ehHx.NyLm);
2664
+ individualConditionSatisfied = _validator2.bgeF(_matchingObject3.satisfiedCount, _individualCondition.gUwB.UeME, _individualCondition.gUwB.uBco);
2665
2665
  if (_matchingObject3) {
2666
2666
  if (individualConditionSatisfied) {
2667
- _this.QfBW[index][_i2].qyAQ = true;
2667
+ _this.qDhd[index][_i2].JIae = true;
2668
2668
  } else {
2669
- _this.QfBW[index][_i2].jPoW = _matchingObject3.satisfiedCount;
2669
+ _this.qDhd[index][_i2].ztco = _matchingObject3.satisfiedCount;
2670
2670
  }
2671
2671
  }
2672
2672
  } else {
2673
- _individualCondition.AXfg();
2673
+ _individualCondition.FsBn();
2674
2674
  }
2675
2675
  if (individualCombineOperator === "AND") {
2676
2676
  conditionSatisfiedChecker = conditionSatisfiedChecker && individualConditionSatisfied;
@@ -2682,36 +2682,36 @@
2682
2682
  }
2683
2683
  }
2684
2684
  });
2685
- _defineProperty(this, "aIKR", function (id, list) {
2685
+ _defineProperty(this, "Hyed", function (id, list) {
2686
2686
  return list.find(function (obj) {
2687
2687
  return obj.id === id;
2688
2688
  });
2689
2689
  });
2690
- _defineProperty(this, "ndZk", function (index) {
2690
+ _defineProperty(this, "yCUX", function (index) {
2691
2691
  var childIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
2692
2692
  var ceInstance = CE.getInstance();
2693
2693
  if (index < 0) {
2694
2694
  return;
2695
2695
  }
2696
- var currentValidator = _this.QfBW[index];
2696
+ var currentValidator = _this.qDhd[index];
2697
2697
  var groupRespectSequence = "unordered";
2698
2698
  if ((currentValidator === null || currentValidator === void 0 ? void 0 : currentValidator.length) > 1) {
2699
2699
  groupRespectSequence = currentValidator === null || currentValidator === void 0 ? void 0 : currentValidator.sequence_type;
2700
2700
  }
2701
- if (_this.CosE === true || _this.CosE === "ordered" || _this.CosE === "strictly_ordered" || groupRespectSequence === "ordered" || groupRespectSequence === "strictly_ordered") {
2701
+ if (_this.QBhD === true || _this.QBhD === "ordered" || _this.QBhD === "strictly_ordered" || groupRespectSequence === "ordered" || groupRespectSequence === "strictly_ordered") {
2702
2702
  _this.kpiIndex = index + 1;
2703
- var conditionValidator = _this.QfBW[index];
2703
+ var conditionValidator = _this.qDhd[index];
2704
2704
  if ((conditionValidator === null || conditionValidator === void 0 ? void 0 : conditionValidator.length) > 0) {
2705
2705
  if (isDefined(conditionValidator)) {
2706
- if (_this.CosE === "unordered" && groupRespectSequence === "ordered") {
2706
+ if (_this.QBhD === "unordered" && groupRespectSequence === "ordered") {
2707
2707
  var prevValidator = currentValidator[childIndex - 1];
2708
2708
  if (isDefined(prevValidator)) {
2709
2709
  if (prevValidator.length === undefined || prevValidator.length == 1) {
2710
- if (!prevValidator.qyAQ) {
2710
+ if (!prevValidator.JIae) {
2711
2711
  return;
2712
2712
  }
2713
2713
  } else if (prevValidator.length > 1) {
2714
- if (!_this.Yjev(prevValidator)) {
2714
+ if (!_this.tPFv(prevValidator)) {
2715
2715
  return;
2716
2716
  }
2717
2717
  }
@@ -2719,103 +2719,103 @@
2719
2719
  var nextValidator = currentValidator[childIndex + 1];
2720
2720
  if (!isDefined(nextValidator)) {
2721
2721
  if (groupRespectSequence === "strictly_ordered") {
2722
- if (_this.bnfg != true) {
2723
- _this.Csks();
2722
+ if (_this.JMpw != true) {
2723
+ _this.oMnu();
2724
2724
  }
2725
2725
  } else {
2726
2726
  var _currentValidator$chi;
2727
2727
  if (((_currentValidator$chi = currentValidator[childIndex]) === null || _currentValidator$chi === void 0 ? void 0 : _currentValidator$chi.length) > 0) {
2728
- if (_this.Yjev(currentValidator)) {
2729
- _this.Csks();
2728
+ if (_this.tPFv(currentValidator)) {
2729
+ _this.oMnu();
2730
2730
  }
2731
2731
  } else {
2732
- _this.Csks();
2732
+ _this.oMnu();
2733
2733
  }
2734
2734
  }
2735
2735
  } else {
2736
- nextValidator.AXfg(childIndex + 1);
2737
- if (_this.CosE === "strictly_ordered") {
2738
- _this._currentEventname = conditionValidator[childIndex].ehHx.Aylq.rpCx;
2736
+ nextValidator.FsBn(childIndex + 1);
2737
+ if (_this.QBhD === "strictly_ordered") {
2738
+ _this._currentEventname = conditionValidator[childIndex].gUwB.mkdK.KtUk;
2739
2739
  var controller = Apxor.getController();
2740
- controller.registerForEvent(APP_EVENT, _this.MwXi);
2741
- controller.registerForEvent(CLIENT_EVENT, _this.MwXi);
2740
+ controller.registerForEvent(APP_EVENT, _this.IVAq);
2741
+ controller.registerForEvent(CLIENT_EVENT, _this.IVAq);
2742
2742
  }
2743
2743
  }
2744
2744
  } else {
2745
- var _prevValidator = _this.QfBW[index - 1];
2746
- // if (isDefined(prevValidator) && !prevValidator.qyAQ) {
2745
+ var _prevValidator = _this.qDhd[index - 1];
2746
+ // if (isDefined(prevValidator) && !prevValidator.JIae) {
2747
2747
  // return;
2748
2748
  // }
2749
2749
  if (isDefined(_prevValidator)) {
2750
2750
  if (_prevValidator.length === undefined || _prevValidator.length == 1) {
2751
- if (!_prevValidator.qyAQ) {
2751
+ if (!_prevValidator.JIae) {
2752
2752
  return;
2753
2753
  }
2754
2754
  } else if (_prevValidator.length > 1) {
2755
- if (!_this.Yjev(_prevValidator)) {
2755
+ if (!_this.tPFv(_prevValidator)) {
2756
2756
  return;
2757
2757
  }
2758
2758
  }
2759
2759
  }
2760
- var ZuJR;
2760
+ var uUAf;
2761
2761
  if (conditionValidator.length === undefined || conditionValidator.length === 1) {
2762
- ZuJR = _this.QfBW[index + 1];
2762
+ uUAf = _this.qDhd[index + 1];
2763
2763
  } else if (conditionValidator.length > 1) {
2764
2764
  if (groupRespectSequence === "ordered" || groupRespectSequence === "strictly_ordered") {
2765
2765
  if (childIndex === conditionValidator.length - 1) {
2766
- ZuJR = _this.QfBW[index + 1];
2766
+ uUAf = _this.qDhd[index + 1];
2767
2767
  } else {
2768
- ZuJR = _this.QfBW[index][childIndex + 1];
2768
+ uUAf = _this.qDhd[index][childIndex + 1];
2769
2769
  }
2770
2770
  } else {
2771
- if (_this.Yjev(conditionValidator)) {
2772
- ZuJR = _this.QfBW[index + 1];
2771
+ if (_this.tPFv(conditionValidator)) {
2772
+ uUAf = _this.qDhd[index + 1];
2773
2773
  }
2774
2774
  }
2775
2775
  }
2776
- if (!isDefined(ZuJR)) {
2777
- if (_this.CosE === "strictly_ordered") {
2778
- if (_this.bnfg != true) {
2779
- _this.Csks();
2776
+ if (!isDefined(uUAf)) {
2777
+ if (_this.QBhD === "strictly_ordered") {
2778
+ if (_this.JMpw != true) {
2779
+ _this.oMnu();
2780
2780
  }
2781
2781
  } else {
2782
- if (_this.Yjev(conditionValidator)) {
2783
- _this.Csks();
2782
+ if (_this.tPFv(conditionValidator)) {
2783
+ _this.oMnu();
2784
2784
  }
2785
2785
  }
2786
2786
  } else {
2787
- if (ZuJR.length === undefined || ZuJR.length === 1) {
2788
- ZuJR.AXfg(childIndex + 1);
2787
+ if (uUAf.length === undefined || uUAf.length === 1) {
2788
+ uUAf.FsBn(childIndex + 1);
2789
2789
  } else {
2790
- if (_this.Yjev(conditionValidator)) {
2791
- if (ZuJR.length === undefined) {
2792
- ZuJR.AXfg();
2793
- } else if (ZuJR.length > 1) {
2794
- if (ZuJR.sequence_type === "unordered") {
2795
- for (var i = 0; i < ZuJR.length; i++) {
2796
- ZuJR[i].AXfg(i);
2790
+ if (_this.tPFv(conditionValidator)) {
2791
+ if (uUAf.length === undefined) {
2792
+ uUAf.FsBn();
2793
+ } else if (uUAf.length > 1) {
2794
+ if (uUAf.sequence_type === "unordered") {
2795
+ for (var i = 0; i < uUAf.length; i++) {
2796
+ uUAf[i].FsBn(i);
2797
2797
  }
2798
- } else if (ZuJR.sequence_type === "ordered" || ZuJR.sequence_type === "strictly_ordered") {
2799
- ZuJR[0].AXfg(0);
2798
+ } else if (uUAf.sequence_type === "ordered" || uUAf.sequence_type === "strictly_ordered") {
2799
+ uUAf[0].FsBn(0);
2800
2800
  }
2801
2801
  }
2802
2802
  }
2803
2803
  }
2804
- if (_this.CosE === "strictly_ordered") {
2805
- _this._currentEventname = conditionValidator[childIndex].ehHx.Aylq.rpCx;
2806
- var FDyt = Apxor.getController();
2807
- FDyt.registerForEvent(APP_EVENT, _this.MwXi);
2808
- FDyt.registerForEvent(CLIENT_EVENT, _this.MwXi);
2804
+ if (_this.QBhD === "strictly_ordered") {
2805
+ _this._currentEventname = conditionValidator[childIndex].gUwB.mkdK.KtUk;
2806
+ var oYhl = Apxor.getController();
2807
+ oYhl.registerForEvent(APP_EVENT, _this.IVAq);
2808
+ oYhl.registerForEvent(CLIENT_EVENT, _this.IVAq);
2809
2809
  }
2810
2810
  }
2811
2811
  }
2812
2812
  }
2813
2813
  } else {
2814
- if (isDefined(conditionValidator) && conditionValidator.qyAQ) {
2815
- conditionValidator.Tiwg[conditionValidator.ehHx.Aylq.rpCx] = Date.now();
2814
+ if (isDefined(conditionValidator) && conditionValidator.JIae) {
2815
+ conditionValidator.AWgi[conditionValidator.gUwB.mkdK.KtUk] = Date.now();
2816
2816
  // Check if previous validator is satisfied
2817
- var _prevValidator2 = _this.QfBW[index - 1];
2818
- // if (isDefined(prevValidator) && !prevValidator.qyAQ) {
2817
+ var _prevValidator2 = _this.qDhd[index - 1];
2818
+ // if (isDefined(prevValidator) && !prevValidator.JIae) {
2819
2819
  // // TODO: If current index is satisfied before previous one, do something
2820
2820
  // // either unregister all conditions or remove this item from ConfigLookup
2821
2821
  // return;
@@ -2823,113 +2823,113 @@
2823
2823
 
2824
2824
  if (isDefined(_prevValidator2)) {
2825
2825
  if (_prevValidator2.length === undefined || _prevValidator2.length == 1) {
2826
- if (!_prevValidator2.qyAQ) {
2826
+ if (!_prevValidator2.JIae) {
2827
2827
  return;
2828
2828
  }
2829
2829
  } else if (_prevValidator2.length > 1) {
2830
- if (!_this.Yjev(_prevValidator2)) {
2830
+ if (!_this.tPFv(_prevValidator2)) {
2831
2831
  return;
2832
2832
  }
2833
2833
  }
2834
2834
  }
2835
- var _nextValidator2 = _this.QfBW[index + 1];
2835
+ var _nextValidator2 = _this.qDhd[index + 1];
2836
2836
  if (!isDefined(_nextValidator2)) {
2837
2837
  // It means this is the last condition
2838
2838
  // Validate all conditions
2839
- if (_this.CosE === "strictly_ordered") {
2840
- if (_this.bnfg != true) {
2841
- _this.Csks();
2839
+ if (_this.QBhD === "strictly_ordered") {
2840
+ if (_this.JMpw != true) {
2841
+ _this.oMnu();
2842
2842
  }
2843
2843
  } else {
2844
- _this.Csks();
2844
+ _this.oMnu();
2845
2845
  }
2846
2846
  } else {
2847
2847
  var _nextValidator2$_cond;
2848
- if (_nextValidator2 !== null && _nextValidator2 !== void 0 && (_nextValidator2$_cond = _nextValidator2.ehHx) !== null && _nextValidator2$_cond !== void 0 && _nextValidator2$_cond._timeEnabled) {
2848
+ if (_nextValidator2 !== null && _nextValidator2 !== void 0 && (_nextValidator2$_cond = _nextValidator2.gUwB) !== null && _nextValidator2$_cond !== void 0 && _nextValidator2$_cond._timeEnabled) {
2849
2849
  var _nextValidator2$_cond2;
2850
- if (((_nextValidator2$_cond2 = _nextValidator2.ehHx) === null || _nextValidator2$_cond2 === void 0 ? void 0 : _nextValidator2$_cond2._time.unit) != "session") {
2850
+ if (((_nextValidator2$_cond2 = _nextValidator2.gUwB) === null || _nextValidator2$_cond2 === void 0 ? void 0 : _nextValidator2$_cond2._time.unit) != "session") {
2851
2851
  var _nextValidator2$_cond3, _nextValidator2$_cond4;
2852
- var timeInMillisec = calculateTime(_nextValidator2.ehHx._time.unit, _nextValidator2.ehHx._time.value);
2853
- if (((_nextValidator2$_cond3 = _nextValidator2.ehHx) === null || _nextValidator2$_cond3 === void 0 ? void 0 : _nextValidator2$_cond3.OPHn) == "didn't") {
2854
- _this.AfPH = setTimeout(function () {
2855
- if (!_this.tqtJ) {
2856
- _this.tqtJ = false;
2857
- _nextValidator2.qyAQ = true;
2858
- if (_nextValidator2.qyAQ) {
2859
- _nextValidator2.jPoW += 1;
2852
+ var timeInMillisec = calculateTime(_nextValidator2.gUwB._time.unit, _nextValidator2.gUwB._time.value);
2853
+ if (((_nextValidator2$_cond3 = _nextValidator2.gUwB) === null || _nextValidator2$_cond3 === void 0 ? void 0 : _nextValidator2$_cond3.PToU) == "didn't") {
2854
+ _this.xHDs = setTimeout(function () {
2855
+ if (!_this.XUqN) {
2856
+ _this.XUqN = false;
2857
+ _nextValidator2.JIae = true;
2858
+ if (_nextValidator2.JIae) {
2859
+ _nextValidator2.ztco += 1;
2860
2860
  var _conditionValidator = new ConditionValidator();
2861
- _nextValidator2.qyAQ = _conditionValidator.eHRa(_nextValidator2.jPoW, _nextValidator2.ehHx.Ruyv, _nextValidator2.ehHx.NyLm);
2862
- if (_nextValidator2.qyAQ) {
2863
- _nextValidator2.ehHx.cbVg = Date.now();
2861
+ _nextValidator2.JIae = _conditionValidator.bgeF(_nextValidator2.ztco, _nextValidator2.gUwB.UeME, _nextValidator2.gUwB.uBco);
2862
+ if (_nextValidator2.JIae) {
2863
+ _nextValidator2.gUwB.Lswp = Date.now();
2864
2864
  var nextIndex = index + 1;
2865
- var upcomingValidator = _this.QfBW[nextIndex + 1];
2865
+ var upcomingValidator = _this.qDhd[nextIndex + 1];
2866
2866
  if (!isDefined(upcomingValidator)) {
2867
- // this.tqtJ = false;
2868
- _this.Csks();
2867
+ // this.XUqN = false;
2868
+ _this.oMnu();
2869
2869
  } else {
2870
- upcomingValidator.AXfg();
2870
+ upcomingValidator.FsBn();
2871
2871
  }
2872
- // ceInstance.validate(this.UMRB, index);
2872
+ // ceInstance.validate(this.byNa, index);
2873
2873
  }
2874
2874
  }
2875
2875
 
2876
- ceInstance.unregisterFromEvent(generateKey(_nextValidator2.ehHx.NIzW) + "___" + _nextValidator2.ehHx.Aylq.rpCx, _this.UgQF);
2877
- _nextValidator2.AzGT = false;
2876
+ ceInstance.unregisterFromEvent(generateKey(_nextValidator2.gUwB.ncqb) + "___" + _nextValidator2.gUwB.mkdK.KtUk, _this.yfyV);
2877
+ _nextValidator2.DiRV = false;
2878
2878
  } else {
2879
- _this.tqtJ = false;
2879
+ _this.XUqN = false;
2880
2880
  }
2881
2881
  }, timeInMillisec);
2882
2882
  if (_this._across_sessions) {
2883
- var _timeInMillisec = calculateTime(_nextValidator2.ehHx._time.unit, _nextValidator2.ehHx._time.value);
2884
- var timeEnabled = _nextValidator2.ehHx._timeEnabled;
2885
- var condition_id = _nextValidator2.ehHx._id;
2883
+ var _timeInMillisec = calculateTime(_nextValidator2.gUwB._time.unit, _nextValidator2.gUwB._time.value);
2884
+ var timeEnabled = _nextValidator2.gUwB._timeEnabled;
2885
+ var condition_id = _nextValidator2.gUwB._id;
2886
2886
  var cv = new ConditionValidator();
2887
- cv.CFWW(_nextValidator2.ehHx.OPHn, _nextValidator2.ehHx.Aylq.rpCx, Date.now(), _nextValidator2.ehHx.Aylq.tarQ, _timeInMillisec, timeEnabled, condition_id);
2887
+ cv.zLbN(_nextValidator2.gUwB.PToU, _nextValidator2.gUwB.mkdK.KtUk, Date.now(), _nextValidator2.gUwB.mkdK.ovVl, _timeInMillisec, timeEnabled, condition_id);
2888
2888
  }
2889
- if (_nextValidator2.ehHx._eventCategory === "specific_event") {
2890
- ceInstance.registerForEvent(generateKey(_nextValidator2.ehHx.NIzW) + "___" + _nextValidator2.ehHx.Aylq.rpCx, _this.UgQF);
2891
- _this.YTaA = _nextValidator2;
2889
+ if (_nextValidator2.gUwB._eventCategory === "specific_event") {
2890
+ ceInstance.registerForEvent(generateKey(_nextValidator2.gUwB.ncqb) + "___" + _nextValidator2.gUwB.mkdK.KtUk, _this.yfyV);
2891
+ _this.IkUi = _nextValidator2;
2892
2892
  } else {
2893
- _this.NPJe(_nextValidator2);
2893
+ _this.apbB(_nextValidator2);
2894
2894
  }
2895
- } else if (((_nextValidator2$_cond4 = _nextValidator2.ehHx) === null || _nextValidator2$_cond4 === void 0 ? void 0 : _nextValidator2$_cond4.OPHn) == "did") {
2896
- _this.tqtJ = false;
2897
- _this.ZuJR = _nextValidator2;
2898
- if (isDefined(_this.QfBW[index + 2]) && _this._across_sessions) {
2899
- _this.NUcf = _this.QfBW[index + 2];
2895
+ } else if (((_nextValidator2$_cond4 = _nextValidator2.gUwB) === null || _nextValidator2$_cond4 === void 0 ? void 0 : _nextValidator2$_cond4.PToU) == "did") {
2896
+ _this.XUqN = false;
2897
+ _this.uUAf = _nextValidator2;
2898
+ if (isDefined(_this.qDhd[index + 2]) && _this._across_sessions) {
2899
+ _this.JoCc = _this.qDhd[index + 2];
2900
2900
  }
2901
- _this.qaPg = setTimeout(function () {
2902
- if (!_this.tqtJ) {
2903
- _this.tqtJ = false;
2904
- ceInstance.unregisterFromEvent(generateKey(_nextValidator2.ehHx.NIzW) + "___" + _nextValidator2.ehHx.Aylq.rpCx, _this.vNcG);
2901
+ _this.CnEP = setTimeout(function () {
2902
+ if (!_this.XUqN) {
2903
+ _this.XUqN = false;
2904
+ ceInstance.unregisterFromEvent(generateKey(_nextValidator2.gUwB.ncqb) + "___" + _nextValidator2.gUwB.mkdK.KtUk, _this.niyd);
2905
2905
  } else {
2906
- _this.tqtJ = false;
2906
+ _this.XUqN = false;
2907
2907
  }
2908
2908
  }, timeInMillisec);
2909
- _this.WRdX = conditionValidator;
2909
+ _this.HTMZ = conditionValidator;
2910
2910
  _this.timeForKPI = timeInMillisec;
2911
- ceInstance.registerForEvent(generateKey(_nextValidator2.ehHx.NIzW) + "___" + _nextValidator2.ehHx.Aylq.rpCx, _this.vNcG);
2912
- _this.xlCr = _nextValidator2;
2911
+ ceInstance.registerForEvent(generateKey(_nextValidator2.gUwB.ncqb) + "___" + _nextValidator2.gUwB.mkdK.KtUk, _this.niyd);
2912
+ _this.BfMp = _nextValidator2;
2913
2913
  if (_this._across_sessions) {
2914
- var _timeInMillisec2 = calculateTime(_nextValidator2.ehHx._time.unit, _nextValidator2.ehHx._time.value);
2915
- var _timeEnabled = _nextValidator2.ehHx._timeEnabled;
2916
- var _condition_id = _nextValidator2.ehHx._id;
2914
+ var _timeInMillisec2 = calculateTime(_nextValidator2.gUwB._time.unit, _nextValidator2.gUwB._time.value);
2915
+ var _timeEnabled = _nextValidator2.gUwB._timeEnabled;
2916
+ var _condition_id = _nextValidator2.gUwB._id;
2917
2917
  var _cv = new ConditionValidator();
2918
- _cv.CFWW(_nextValidator2.ehHx.OPHn, _nextValidator2.ehHx.Aylq.rpCx, Date.now(), _nextValidator2.ehHx.Aylq.tarQ, _timeInMillisec2, _timeEnabled, _condition_id);
2918
+ _cv.zLbN(_nextValidator2.gUwB.PToU, _nextValidator2.gUwB.mkdK.KtUk, Date.now(), _nextValidator2.gUwB.mkdK.ovVl, _timeInMillisec2, _timeEnabled, _condition_id);
2919
2919
  }
2920
2920
  }
2921
2921
  }
2922
2922
  } else {
2923
2923
  if (_nextValidator2.length > 0) {
2924
2924
  if (_nextValidator2.sequence_type === "ordered" || _nextValidator2.sequence_type === "strictly_ordered") {
2925
- _nextValidator2[0].AXfg(childIndex + 1);
2925
+ _nextValidator2[0].FsBn(childIndex + 1);
2926
2926
  } else {
2927
2927
  var _iterator = _createForOfIteratorHelper(_nextValidator2),
2928
2928
  _step;
2929
2929
  try {
2930
2930
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
2931
2931
  var validator = _step.value;
2932
- validator.AXfg();
2932
+ validator.FsBn();
2933
2933
  }
2934
2934
  } catch (err) {
2935
2935
  _iterator.e(err);
@@ -2938,87 +2938,87 @@
2938
2938
  }
2939
2939
  }
2940
2940
  } else {
2941
- _nextValidator2.AXfg();
2941
+ _nextValidator2.FsBn();
2942
2942
  }
2943
2943
  }
2944
- if (_this.CosE === "strictly_ordered") {
2945
- _this._currentEventname = conditionValidator.ehHx.Aylq.rpCx;
2944
+ if (_this.QBhD === "strictly_ordered") {
2945
+ _this._currentEventname = conditionValidator.gUwB.mkdK.KtUk;
2946
2946
  var _controller2 = Apxor.getController();
2947
- _controller2.registerForEvent(APP_EVENT, _this.MwXi);
2948
- _controller2.registerForEvent(CLIENT_EVENT, _this.MwXi);
2947
+ _controller2.registerForEvent(APP_EVENT, _this.IVAq);
2948
+ _controller2.registerForEvent(CLIENT_EVENT, _this.IVAq);
2949
2949
  }
2950
2950
  }
2951
2951
  }
2952
2952
  }
2953
2953
  } else {
2954
2954
  // Validate all conditions
2955
- _this.DyHS();
2956
- _this.Csks();
2955
+ _this.jvpA();
2956
+ _this.oMnu();
2957
2957
  }
2958
2958
  });
2959
- _defineProperty(this, "MwXi", function (event) {
2959
+ _defineProperty(this, "IVAq", function (event) {
2960
2960
  if (event && event.name != _this._currentEventname) {
2961
- _this.bnfg = true;
2961
+ _this.JMpw = true;
2962
2962
  return;
2963
2963
  }
2964
2964
  });
2965
- _defineProperty(this, "NPJe", function (validator) {
2965
+ _defineProperty(this, "apbB", function (validator) {
2966
2966
  var ceInstance = new CE();
2967
- var eventCategory = validator.ehHx._eventCategory;
2967
+ var eventCategory = validator.gUwB._eventCategory;
2968
2968
  if (eventCategory === "apxor_event") {
2969
- ceInstance.registerForEvent("apxor_event", _this.UgQF);
2969
+ ceInstance.registerForEvent("apxor_event", _this.yfyV);
2970
2970
  } else if (eventCategory === "customer_event") {
2971
- ceInstance.registerForEvent("customer_event", _this.UgQF);
2971
+ ceInstance.registerForEvent("customer_event", _this.yfyV);
2972
2972
  } else if (eventCategory === "any_event") {
2973
- ceInstance.registerForEvent("any_event", _this.UgQF);
2973
+ ceInstance.registerForEvent("any_event", _this.yfyV);
2974
2974
  } else if (eventCategory === "campaign_event") {
2975
- ceInstance.registerForEvent("campaign_event", _this.UgQF);
2975
+ ceInstance.registerForEvent("campaign_event", _this.yfyV);
2976
2976
  } else if (eventCategory === "survey_event") {
2977
- ceInstance.registerForEvent("survey_event", _this.UgQF);
2977
+ ceInstance.registerForEvent("survey_event", _this.yfyV);
2978
2978
  }
2979
2979
  });
2980
- _defineProperty(this, "mNlm", function (validator) {
2980
+ _defineProperty(this, "erRp", function (validator) {
2981
2981
  var ceInstance = new CE();
2982
- var eventCategory = validator.ehHx._eventCategory;
2982
+ var eventCategory = validator.gUwB._eventCategory;
2983
2983
  if (eventCategory === "apxor_event") {
2984
- ceInstance.unregisterFromEvent("apxor_event", _this.UgQF);
2984
+ ceInstance.unregisterFromEvent("apxor_event", _this.yfyV);
2985
2985
  } else if (eventCategory === "customer_event") {
2986
- ceInstance.unregisterFromEvent("customer_event", _this.UgQF);
2986
+ ceInstance.unregisterFromEvent("customer_event", _this.yfyV);
2987
2987
  } else if (eventCategory === "any_event") {
2988
- ceInstance.unregisterFromEvent("any_event", _this.UgQF);
2988
+ ceInstance.unregisterFromEvent("any_event", _this.yfyV);
2989
2989
  } else if (eventCategory === "campaign_event") {
2990
- ceInstance.unregisterFromEvent("campaign_event", _this.UgQF);
2990
+ ceInstance.unregisterFromEvent("campaign_event", _this.yfyV);
2991
2991
  } else if (eventCategory === "survey_event") {
2992
- ceInstance.unregisterFromEvent("survey_event", _this.UgQF);
2992
+ ceInstance.unregisterFromEvent("survey_event", _this.yfyV);
2993
2993
  }
2994
2994
  });
2995
- _defineProperty(this, "UgQF", function () {
2995
+ _defineProperty(this, "yfyV", function () {
2996
2996
  var _this$_unregisterVali, _this$_unregisterVali2;
2997
- if (_this.AfPH) {
2998
- _this.tqtJ = false;
2999
- clearTimeout(_this.AfPH);
2997
+ if (_this.xHDs) {
2998
+ _this.XUqN = false;
2999
+ clearTimeout(_this.xHDs);
3000
3000
  }
3001
3001
  var ceInstance = new CE();
3002
- _this.tqtJ = true;
3002
+ _this.XUqN = true;
3003
3003
  if (_this._across_sessions) {
3004
3004
  if (localStorage.getItem("apx_nokpi_triggerdetails") !== null) {
3005
3005
  localStorage.removeItem("apx_nokpi_triggerdetails");
3006
3006
  }
3007
3007
  }
3008
- ceInstance.unregisterFromEvent(generateKey((_this$_unregisterVali = _this.YTaA) === null || _this$_unregisterVali === void 0 || (_this$_unregisterVali = _this$_unregisterVali.ehHx) === null || _this$_unregisterVali === void 0 ? void 0 : _this$_unregisterVali.NIzW) + "___" + ((_this$_unregisterVali2 = _this.YTaA) === null || _this$_unregisterVali2 === void 0 || (_this$_unregisterVali2 = _this$_unregisterVali2.ehHx) === null || _this$_unregisterVali2 === void 0 || (_this$_unregisterVali2 = _this$_unregisterVali2.Aylq) === null || _this$_unregisterVali2 === void 0 ? void 0 : _this$_unregisterVali2.rpCx), _this.UgQF);
3008
+ ceInstance.unregisterFromEvent(generateKey((_this$_unregisterVali = _this.IkUi) === null || _this$_unregisterVali === void 0 || (_this$_unregisterVali = _this$_unregisterVali.gUwB) === null || _this$_unregisterVali === void 0 ? void 0 : _this$_unregisterVali.ncqb) + "___" + ((_this$_unregisterVali2 = _this.IkUi) === null || _this$_unregisterVali2 === void 0 || (_this$_unregisterVali2 = _this$_unregisterVali2.gUwB) === null || _this$_unregisterVali2 === void 0 || (_this$_unregisterVali2 = _this$_unregisterVali2.mkdK) === null || _this$_unregisterVali2 === void 0 ? void 0 : _this$_unregisterVali2.KtUk), _this.yfyV);
3009
3009
  });
3010
- _defineProperty(this, "vNcG", function () {
3010
+ _defineProperty(this, "niyd", function () {
3011
3011
  var _this$_unregisterVali3, _this$_unregisterVali4, _this$_nextUpcomingVa;
3012
3012
  var ceInstance = new CE();
3013
- _this.tqtJ = true;
3014
- if (_this.qaPg) {
3015
- clearTimeout(_this.qaPg);
3013
+ _this.XUqN = true;
3014
+ if (_this.CnEP) {
3015
+ clearTimeout(_this.CnEP);
3016
3016
  }
3017
3017
  var conditionValidator = new ConditionValidator();
3018
- _this.ZuJR.jPoW += 1;
3019
- _this.ZuJR.qyAQ = conditionValidator.eHRa(_this.ZuJR.jPoW, _this.ZuJR.ehHx.Ruyv, _this.ZuJR.ehHx.NyLm);
3020
- ceInstance.unregisterFromEvent(generateKey((_this$_unregisterVali3 = _this.xlCr) === null || _this$_unregisterVali3 === void 0 || (_this$_unregisterVali3 = _this$_unregisterVali3.ehHx) === null || _this$_unregisterVali3 === void 0 ? void 0 : _this$_unregisterVali3.NIzW) + "___" + ((_this$_unregisterVali4 = _this.xlCr) === null || _this$_unregisterVali4 === void 0 || (_this$_unregisterVali4 = _this$_unregisterVali4.ehHx) === null || _this$_unregisterVali4 === void 0 ? void 0 : _this$_unregisterVali4.Aylq.rpCx), _this.vNcG);
3021
- if (_this._across_sessions && (_this$_nextUpcomingVa = _this.NUcf) !== null && _this$_nextUpcomingVa !== void 0 && _this$_nextUpcomingVa.ehHx._timeBased) {
3018
+ _this.uUAf.ztco += 1;
3019
+ _this.uUAf.JIae = conditionValidator.bgeF(_this.uUAf.ztco, _this.uUAf.gUwB.UeME, _this.uUAf.gUwB.uBco);
3020
+ ceInstance.unregisterFromEvent(generateKey((_this$_unregisterVali3 = _this.BfMp) === null || _this$_unregisterVali3 === void 0 || (_this$_unregisterVali3 = _this$_unregisterVali3.gUwB) === null || _this$_unregisterVali3 === void 0 ? void 0 : _this$_unregisterVali3.ncqb) + "___" + ((_this$_unregisterVali4 = _this.BfMp) === null || _this$_unregisterVali4 === void 0 || (_this$_unregisterVali4 = _this$_unregisterVali4.gUwB) === null || _this$_unregisterVali4 === void 0 ? void 0 : _this$_unregisterVali4.mkdK.KtUk), _this.niyd);
3021
+ if (_this._across_sessions && (_this$_nextUpcomingVa = _this.JoCc) !== null && _this$_nextUpcomingVa !== void 0 && _this$_nextUpcomingVa.gUwB._timeBased) {
3022
3022
  var no_KPI_TriggerDetails = Apxor.getController().getFromStorage("apx_nokpi_triggerdetails");
3023
3023
  if (no_KPI_TriggerDetails === null || no_KPI_TriggerDetails === undefined) {
3024
3024
  no_KPI_TriggerDetails = [];
@@ -3028,7 +3028,7 @@
3028
3028
  var objectPresenceChecker;
3029
3029
  var requiredObject;
3030
3030
  for (var i = 0; i < no_KPI_TriggerDetails.length; i++) {
3031
- if (_this.no_KPI_TriggerDetails[i].id === _this.NUcf.ehHx._id) {
3031
+ if (_this.no_KPI_TriggerDetails[i].id === _this.JoCc.gUwB._id) {
3032
3032
  objectPresenceChecker = true;
3033
3033
  requiredObject = no_KPI_TriggerDetails[i];
3034
3034
  break;
@@ -3038,42 +3038,42 @@
3038
3038
  if (objectPresenceChecker) {
3039
3039
  requiredObject.satisfiedCount += 1;
3040
3040
  } else {
3041
- var id = _this.ZuJR.ehHx._id;
3042
- var type = _this.ZuJR.ehHx.OPHn;
3043
- var name = _this.ZuJR.ehHx.Aylq.rpCx;
3044
- var additionalInfo = _this.ZuJR.ehHx.Aylq.tarQ;
3041
+ var id = _this.uUAf.gUwB._id;
3042
+ var type = _this.uUAf.gUwB.PToU;
3043
+ var name = _this.uUAf.gUwB.mkdK.KtUk;
3044
+ var additionalInfo = _this.uUAf.gUwB.mkdK.ovVl;
3045
3045
  triggerObj = {
3046
3046
  id: id,
3047
3047
  type: type,
3048
3048
  time: Date.now(),
3049
3049
  name: name,
3050
3050
  additionalInfo: additionalInfo,
3051
- satisfiedCount: _this.ZuJR.ehHx._timeEnabled,
3052
- timeBased: _this.ZuJR.ehHx._timeEnabled
3051
+ satisfiedCount: _this.uUAf.gUwB._timeEnabled,
3052
+ timeBased: _this.uUAf.gUwB._timeEnabled
3053
3053
  //finishTime: finishTime,
3054
3054
  };
3055
3055
 
3056
3056
  _this.no_KPI_TriggerDetails.push(triggerObj);
3057
3057
  }
3058
3058
  }
3059
- if (_this.ZuJR.qyAQ) {
3060
- var upcomingValidator = _this.QfBW[_this.kpiIndex + 1];
3059
+ if (_this.uUAf.JIae) {
3060
+ var upcomingValidator = _this.qDhd[_this.kpiIndex + 1];
3061
3061
  if (!isDefined(upcomingValidator)) {
3062
- _this.Csks();
3062
+ _this.oMnu();
3063
3063
  } else {
3064
- upcomingValidator.AXfg();
3064
+ upcomingValidator.FsBn();
3065
3065
  }
3066
3066
  }
3067
3067
  });
3068
- _defineProperty(this, "sGIM", function () {
3069
- if (_this.VDGB === _this.QfBW.length - 1) {
3070
- _this.vPed = true;
3071
- var qyAQ = true;
3072
- if (qyAQ) {
3073
- if (_this.QfBW[_this.VDGB]) {
3074
- _this.QfBW[_this.VDGB].jPoW = _this.FAwt.satisfiedCount;
3075
- _this.QfBW[_this.VDGB].qyAQ = true;
3076
- _this.Csks();
3068
+ _defineProperty(this, "tKqI", function () {
3069
+ if (_this.jOIP === _this.qDhd.length - 1) {
3070
+ _this.ksFd = true;
3071
+ var JIae = true;
3072
+ if (JIae) {
3073
+ if (_this.qDhd[_this.jOIP]) {
3074
+ _this.qDhd[_this.jOIP].ztco = _this.NnfN.satisfiedCount;
3075
+ _this.qDhd[_this.jOIP].JIae = true;
3076
+ _this.oMnu();
3077
3077
  }
3078
3078
  }
3079
3079
  } else {
@@ -3086,7 +3086,7 @@
3086
3086
  var requiredObject;
3087
3087
  var objectPresenceChecker;
3088
3088
  for (var i = 0; i < no_KPI_TriggerDetails.length; i++) {
3089
- if (no_KPI_TriggerDetails[i].id === _this.VDGB) {
3089
+ if (no_KPI_TriggerDetails[i].id === _this.jOIP) {
3090
3090
  objectPresenceChecker = true;
3091
3091
  requiredObject = no_KPI_TriggerDetails[i];
3092
3092
  break;
@@ -3096,27 +3096,27 @@
3096
3096
  requiredObject.satisfiedCount = 1;
3097
3097
  }
3098
3098
  Apxor.getController().persistToStorage("apx_nokpi_triggerdetails", JSON.stringify(no_KPI_TriggerDetails));
3099
- _this.QfBW[_this.VDGB].jPoW = _this.FAwt.satisfiedCount;
3100
- _this.QfBW[_this.VDGB].qyAQ = true;
3101
- if (_this.QfBW[_this.VDGB + 1].ehHx._timeEnabled) {
3102
- var timeInMillisec = calculateTime(_this.QfBW[_this.VDGB + 1].ehHx._time.unit, _this.QfBW[_this.VDGB + 1].ehHx._time.value);
3103
- var timeEnabled = _this.QfBW[_this.VDGB + 1].ehHx._timeEnabled;
3104
- var condition_id = _this.QfBW[_this.VDGB + 1].ehHx._id;
3105
- var satisfiedCount = _this.QfBW[_this.VDGB + 1].jPoW;
3106
- var name = _this.QfBW[_this.VDGB + 1].ehHx.Aylq.rpCx;
3107
- var additionalInfo = _this.QfBW[_this.VDGB + 1].Aylq.tarQ;
3099
+ _this.qDhd[_this.jOIP].ztco = _this.NnfN.satisfiedCount;
3100
+ _this.qDhd[_this.jOIP].JIae = true;
3101
+ if (_this.qDhd[_this.jOIP + 1].gUwB._timeEnabled) {
3102
+ var timeInMillisec = calculateTime(_this.qDhd[_this.jOIP + 1].gUwB._time.unit, _this.qDhd[_this.jOIP + 1].gUwB._time.value);
3103
+ var timeEnabled = _this.qDhd[_this.jOIP + 1].gUwB._timeEnabled;
3104
+ var condition_id = _this.qDhd[_this.jOIP + 1].gUwB._id;
3105
+ var satisfiedCount = _this.qDhd[_this.jOIP + 1].ztco;
3106
+ var name = _this.qDhd[_this.jOIP + 1].gUwB.mkdK.KtUk;
3107
+ var additionalInfo = _this.qDhd[_this.jOIP + 1].mkdK.ovVl;
3108
3108
  var condition_validator = new ConditionValidator();
3109
- condition_validator.CFWW(_this.ehHx.OPHn, name, Date.now(), additionalInfo, timeInMillisec, timeEnabled, condition_id, satisfiedCount);
3109
+ condition_validator.zLbN(_this.gUwB.PToU, name, Date.now(), additionalInfo, timeInMillisec, timeEnabled, condition_id, satisfiedCount);
3110
3110
  }
3111
3111
  }
3112
3112
  });
3113
- _defineProperty(this, "DyHS", function () {
3114
- if (_this._across_sessions && _this.XyBT) {
3113
+ _defineProperty(this, "jvpA", function () {
3114
+ if (_this._across_sessions && _this.tgNa) {
3115
3115
  var matching_validator;
3116
3116
  var matchedIndex;
3117
3117
  var matchednestedIndex;
3118
3118
  var conditionType = "single";
3119
- var qyAQ = false;
3119
+ var JIae = false;
3120
3120
  var no_KPI_TriggerDetails = Apxor.getController().getFromStorage("apx_nokpi_triggerdetails");
3121
3121
  no_KPI_TriggerDetails = JSON.parse(no_KPI_TriggerDetails);
3122
3122
  if (no_KPI_TriggerDetails.length > 0) {
@@ -3127,9 +3127,9 @@
3127
3127
  var trigger = _step2.value;
3128
3128
  var id_to_check = trigger["id"];
3129
3129
  var satifiedCount = trigger["satisfiedCount"];
3130
- matching_validator = _this.QfBW.find(function (validator, index) {
3130
+ matching_validator = _this.qDhd.find(function (validator, index) {
3131
3131
  if ((validator === null || validator === void 0 ? void 0 : validator.length) === 1 || (validator === null || validator === void 0 ? void 0 : validator.length) === undefined) {
3132
- if (validator.ehHx._id === id_to_check) {
3132
+ if (validator.gUwB._id === id_to_check) {
3133
3133
  conditionType = "single";
3134
3134
  matchedIndex = index;
3135
3135
  return true;
@@ -3138,7 +3138,7 @@
3138
3138
  } else if (validator.length > 0) {
3139
3139
  // If the condition is a group, check if any individual condition has the id
3140
3140
  var nestedIndex = validator.findIndex(function (individualCondition) {
3141
- return individualCondition.ehHx._id === id_to_check;
3141
+ return individualCondition.gUwB._id === id_to_check;
3142
3142
  });
3143
3143
  if (nestedIndex !== -1) {
3144
3144
  // If id_to_check is found in a nested condition, store both indexes
@@ -3152,22 +3152,22 @@
3152
3152
  });
3153
3153
  if (conditionType === "single" && matching_validator) {
3154
3154
  var condition_validator = new ConditionValidator();
3155
- qyAQ = condition_validator.eHRa(satifiedCount, matching_validator.ehHx.Ruyv, matching_validator.ehHx.NyLm);
3156
- var matchingValidatorIndex = _this.QfBW.findIndex(function (validator) {
3157
- var _validator$ehHx;
3158
- return (validator === null || validator === void 0 || (_validator$ehHx = validator.ehHx) === null || _validator$ehHx === void 0 ? void 0 : _validator$ehHx._id) === id_to_check;
3155
+ JIae = condition_validator.bgeF(satifiedCount, matching_validator.gUwB.UeME, matching_validator.gUwB.uBco);
3156
+ var matchingValidatorIndex = _this.qDhd.findIndex(function (validator) {
3157
+ var _validator$gUwB;
3158
+ return (validator === null || validator === void 0 || (_validator$gUwB = validator.gUwB) === null || _validator$gUwB === void 0 ? void 0 : _validator$gUwB._id) === id_to_check;
3159
3159
  });
3160
3160
  if (matchingValidatorIndex === undefined) {
3161
3161
  matchingValidatorIndex = matchedIndex;
3162
3162
  }
3163
- if (qyAQ) {
3164
- _this.QfBW[matchingValidatorIndex].qyAQ = true;
3163
+ if (JIae) {
3164
+ _this.qDhd[matchingValidatorIndex].JIae = true;
3165
3165
  }
3166
3166
  } else if (conditionType === "group" && matching_validator) {
3167
3167
  var _condition_validator = new ConditionValidator();
3168
- qyAQ = _condition_validator.eHRa(satifiedCount, matching_validator[matchednestedIndex].ehHx.Ruyv, matching_validator[matchednestedIndex].ehHx.NyLm);
3169
- if (qyAQ) {
3170
- _this.QfBW[matchedIndex][matchednestedIndex].qyAQ = true;
3168
+ JIae = _condition_validator.bgeF(satifiedCount, matching_validator[matchednestedIndex].gUwB.UeME, matching_validator[matchednestedIndex].gUwB.uBco);
3169
+ if (JIae) {
3170
+ _this.qDhd[matchedIndex][matchednestedIndex].JIae = true;
3171
3171
  }
3172
3172
  }
3173
3173
  };
@@ -3182,64 +3182,64 @@
3182
3182
  }
3183
3183
  }
3184
3184
  });
3185
- _defineProperty(this, "VruW", function (index) {
3185
+ _defineProperty(this, "hcWl", function (index) {
3186
3186
  if (index < 0) {
3187
3187
  return;
3188
3188
  }
3189
- _this.LaLj();
3189
+ _this.TTRg();
3190
3190
  });
3191
- _defineProperty(this, "Csks", function () {
3191
+ _defineProperty(this, "oMnu", function () {
3192
3192
  var _window$ApxorRTM, _window$ApxorRTM2;
3193
3193
  var view_visibility = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
3194
3194
  // Check If Audience, Validity is satisfied or not
3195
3195
  var userAttributes = Apxor.getController().getUserAttributes();
3196
3196
  var sessionAttributes = Apxor.getController().getSessionAttributes();
3197
- if (!((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.isBadgePresent && (_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.badgesLists.includes(_this.UMRB) && Apxor.getController().isBadgeTriggerSatisfied(_this.UMRB))) {
3197
+ if (!((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.isBadgePresent && (_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.badgesLists.includes(_this.byNa) && Apxor.getController().isBadgeTriggerSatisfied(_this.byNa))) {
3198
3198
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_trigger_satisfied", {
3199
- apx_nudge_type: _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign",
3200
- apx_nudge_id: _this.UMRB,
3201
- apx_nudge_name: _this.EgcZ.rpCx,
3202
- apx_variant_code: _this.EgcZ._isExperiment || _this.EgcZ._only_context ? _this.EgcZ._attr[APX_VARIANT_CODE] : "TG"
3199
+ apx_nudge_type: _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign",
3200
+ apx_nudge_id: _this.byNa,
3201
+ apx_nudge_name: _this.UAQj.KtUk,
3202
+ apx_variant_code: _this.UAQj._isExperiment || _this.UAQj._only_context ? _this.UAQj._attr[APX_VARIANT_CODE] : "TG"
3203
3203
  });
3204
3204
  }
3205
- if (!_this.Aveo.validate() || !_this.LpAl.validate(userAttributes, sessionAttributes) || !_this.EHDG.validate() || !_this.rNEC.validate()) {
3205
+ if (!_this.wlKA.validate() || !_this.OEmI.validate(userAttributes, sessionAttributes) || !_this.PZsY.validate() || !_this.hjvD.validate()) {
3206
3206
  // eslint-disable-next-line no-unused-vars
3207
- var apx_nudge_type = _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign";
3208
- if (!_this.EHDG.retainedDaysValidated) {
3209
- _this.agaL("Retained day criteria not met");
3207
+ var apx_nudge_type = _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign";
3208
+ if (!_this.PZsY.retainedDaysValidated) {
3209
+ _this.oLNe("Retained day criteria not met");
3210
3210
  return;
3211
3211
  }
3212
- if (!_this.EHDG.retainedSessionValidated) {
3213
- _this.agaL("User session criteria not met");
3212
+ if (!_this.PZsY.retainedSessionValidated) {
3213
+ _this.oLNe("User session criteria not met");
3214
3214
  return;
3215
3215
  }
3216
- if (_this.EHDG.eventDoneInLT) {
3217
- _this.agaL("Event done in life time");
3216
+ if (_this.PZsY.eventDoneInLT) {
3217
+ _this.oLNe("Event done in life time");
3218
3218
  return;
3219
3219
  }
3220
- if (!_this.LpAl.userAttributesValidated) {
3221
- _this.agaL("User property filter not met");
3220
+ if (!_this.OEmI.userAttributesValidated) {
3221
+ _this.oLNe("User property filter not met");
3222
3222
  return;
3223
3223
  }
3224
- if (!_this.LpAl.sessionAttributeValidated) {
3225
- _this.agaL("Session property filter not met");
3224
+ if (!_this.OEmI.sessionAttributeValidated) {
3225
+ _this.oLNe("Session property filter not met");
3226
3226
  return;
3227
3227
  }
3228
- if (_this.Aveo._not_in_specified_time) {
3229
- _this.agaL("Time limits check failed");
3228
+ if (_this.wlKA._not_in_specified_time) {
3229
+ _this.oLNe("Time limits check failed");
3230
3230
  return;
3231
3231
  }
3232
- if (_this.Aveo._not_yet_active) {
3233
- _this.agaL("not in the scheduled time");
3232
+ if (_this.wlKA._not_yet_active) {
3233
+ _this.oLNe("not in the scheduled time");
3234
3234
  return;
3235
3235
  }
3236
- if (_this.Aveo._nudge_expired) {
3237
- _this.agaL("nudge expired");
3236
+ if (_this.wlKA._nudge_expired) {
3237
+ _this.oLNe("nudge expired");
3238
3238
  return;
3239
3239
  }
3240
3240
  return;
3241
3241
  }
3242
- var length = _this.QfBW.length;
3242
+ var length = _this.qDhd.length;
3243
3243
  var isSatisfied = length < 1;
3244
3244
  var combineOperator = "";
3245
3245
  if (length === 0) {
@@ -3247,24 +3247,24 @@
3247
3247
  }
3248
3248
  for (var index = 0; index < length; index++) {
3249
3249
  var currentResult = void 0;
3250
- var validator = _this.QfBW[index];
3250
+ var validator = _this.qDhd[index];
3251
3251
  if (validator.length > 1) {
3252
- var combine_operator = validator[0].ehHx.unUI;
3252
+ var combine_operator = validator[0].gUwB.ipfv;
3253
3253
  if (combine_operator === "AND") {
3254
3254
  currentResult = true;
3255
3255
  } else {
3256
3256
  currentResult = false;
3257
3257
  }
3258
3258
  for (var i = 0; i < validator.length; i++) {
3259
- var _combine_operator = validator[0].ehHx.unUI;
3259
+ var _combine_operator = validator[0].gUwB.ipfv;
3260
3260
  if (_combine_operator === "AND") {
3261
- currentResult = currentResult && validator[i].qyAQ;
3261
+ currentResult = currentResult && validator[i].JIae;
3262
3262
  } else {
3263
- currentResult = currentResult || validator[i].qyAQ;
3263
+ currentResult = currentResult || validator[i].JIae;
3264
3264
  }
3265
3265
  }
3266
3266
  } else {
3267
- currentResult = validator.qyAQ;
3267
+ currentResult = validator.JIae;
3268
3268
  }
3269
3269
  if (combineOperator.trim() === "") {
3270
3270
  isSatisfied = currentResult;
@@ -3281,7 +3281,7 @@
3281
3281
  if (validator.length > 1) {
3282
3282
  combineOperator = _this.groupCombineOperator;
3283
3283
  } else {
3284
- combineOperator = validator.unUI;
3284
+ combineOperator = validator.ipfv;
3285
3285
  }
3286
3286
  }
3287
3287
  if (view_visibility === true) {
@@ -3291,40 +3291,40 @@
3291
3291
  var _window$ApxorRTM3, _window$ApxorRTM4;
3292
3292
  console.debug("onCondition satisfied");
3293
3293
  // Check if count reached it's maximum
3294
- if (!_this.tWsf.QkgO(_this.UMRB)) {
3295
- console.warn("Maximum limit reached", _this.UMRB);
3294
+ if (!_this.bgKv.QRnh(_this.byNa)) {
3295
+ console.warn("Maximum limit reached", _this.byNa);
3296
3296
  return;
3297
3297
  }
3298
3298
 
3299
3299
  //logging event for view not found for test device
3300
- if (!((_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.isBadgePresent && (_window$ApxorRTM4 = window.ApxorRTM) !== null && _window$ApxorRTM4 !== void 0 && _window$ApxorRTM4.badgesLists.includes(_this.UMRB) && Apxor.getController().isBadgeTriggerSatisfied(_this.UMRB))) {
3301
- var _apx_nudge_type = _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign";
3300
+ if (!((_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.isBadgePresent && (_window$ApxorRTM4 = window.ApxorRTM) !== null && _window$ApxorRTM4 !== void 0 && _window$ApxorRTM4.badgesLists.includes(_this.byNa) && Apxor.getController().isBadgeTriggerSatisfied(_this.byNa))) {
3301
+ var _apx_nudge_type = _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign";
3302
3302
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_trigger_satisfied", {
3303
- apx_nudge_type: _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign",
3304
- apx_nudge_id: _this.UMRB,
3305
- apx_nudge_name: _this.EgcZ.rpCx,
3306
- apx_variant_code: _this.EgcZ._isExperiment || _this.EgcZ._only_context ? _this.EgcZ._attr[APX_VARIANT_CODE] : "TG"
3303
+ apx_nudge_type: _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign",
3304
+ apx_nudge_id: _this.byNa,
3305
+ apx_nudge_name: _this.UAQj.KtUk,
3306
+ apx_variant_code: _this.UAQj._isExperiment || _this.UAQj._only_context ? _this.UAQj._attr[APX_VARIANT_CODE] : "TG"
3307
3307
  }, false, "", _apx_nudge_type);
3308
3308
  }
3309
3309
  if (_this._across_sessions) {
3310
3310
  localStorage.removeItem("apx_nokpi_triggerdetails");
3311
3311
  }
3312
- var _iterator3 = _createForOfIteratorHelper(_this.QfBW),
3312
+ var _iterator3 = _createForOfIteratorHelper(_this.qDhd),
3313
3313
  _step3;
3314
3314
  try {
3315
3315
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3316
3316
  var _validator3 = _step3.value;
3317
3317
  if ((_validator3 === null || _validator3 === void 0 ? void 0 : _validator3.length) === 1 || (_validator3 === null || _validator3 === void 0 ? void 0 : _validator3.length) === undefined) {
3318
- _validator3.qyAQ = false;
3319
- _validator3.jPoW = 0;
3318
+ _validator3.JIae = false;
3319
+ _validator3.ztco = 0;
3320
3320
  } else {
3321
3321
  var _iterator4 = _createForOfIteratorHelper(_validator3),
3322
3322
  _step4;
3323
3323
  try {
3324
3324
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
3325
3325
  var childValidator = _step4.value;
3326
- childValidator.qyAQ = false;
3327
- childValidator.jPoW = 0;
3326
+ childValidator.JIae = false;
3327
+ childValidator.ztco = 0;
3328
3328
  }
3329
3329
  } catch (err) {
3330
3330
  _iterator4.e(err);
@@ -3333,39 +3333,39 @@
3333
3333
  }
3334
3334
  }
3335
3335
  }
3336
- //this.jsmS = new ConditionValidator();
3336
+ //this.OSIj = new ConditionValidator();
3337
3337
  } catch (err) {
3338
3338
  _iterator3.e(err);
3339
3339
  } finally {
3340
3340
  _iterator3.f();
3341
3341
  }
3342
- _this.jsmS.ognp(_this.QfBW);
3343
- _this.QfBW = [];
3344
- _this.aEWV(_this.FWVg, _this.jfEs);
3345
- if (_this.EgcZ._only_context === true) {
3346
- var _apx_nudge_type2 = _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign";
3347
- Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.EgcZ._attr), {}, {
3348
- message_name: _this.EgcZ.rpCx,
3349
- id: _this.UMRB
3342
+ _this.OSIj.dXsO(_this.qDhd);
3343
+ _this.qDhd = [];
3344
+ _this.xAWo(_this.hamV, _this.pVaj);
3345
+ if (_this.UAQj._only_context === true) {
3346
+ var _apx_nudge_type2 = _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign";
3347
+ Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.UAQj._attr), {}, {
3348
+ message_name: _this.UAQj.KtUk,
3349
+ id: _this.byNa
3350
3350
  }), false, "", _apx_nudge_type2);
3351
3351
  }
3352
3352
  // Emit event
3353
- Apxor.getController().dispatchEvent(_this.EgcZ.OPHn, {
3354
- name: _this.EgcZ.OPHn,
3353
+ Apxor.getController().dispatchEvent(_this.UAQj.PToU, {
3354
+ name: _this.UAQj.PToU,
3355
3355
  additional_info: {
3356
- uuid: _this.UMRB,
3357
- name: _this.EgcZ.rpCx
3356
+ uuid: _this.byNa,
3357
+ name: _this.UAQj.KtUk
3358
3358
  }
3359
3359
  });
3360
3360
  }
3361
3361
  });
3362
- _defineProperty(this, "LaLj", function () {
3363
- var length = _this.sWqU.length;
3362
+ _defineProperty(this, "TTRg", function () {
3363
+ var length = _this.muSD.length;
3364
3364
  var isSatisfied = length < 1;
3365
3365
  var combineOperator = "";
3366
3366
  for (var index = 0; index < length; index++) {
3367
- var validator = _this.sWqU[index];
3368
- var currentResult = validator.qyAQ;
3367
+ var validator = _this.muSD[index];
3368
+ var currentResult = validator.JIae;
3369
3369
  if (combineOperator.trim() === "") {
3370
3370
  isSatisfied = currentResult;
3371
3371
  } else {
@@ -3378,23 +3378,23 @@
3378
3378
  break;
3379
3379
  }
3380
3380
  }
3381
- combineOperator = validator.obcq;
3381
+ combineOperator = validator.VSCH;
3382
3382
  }
3383
3383
  if (isSatisfied) {
3384
- Apxor.getController().persistTerminationInfoLocally(_this.UMRB);
3385
- if (_this.EgcZ._only_context === true) {
3386
- var apx_nudge_type = _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign";
3387
- Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.EgcZ._attr), {}, {
3388
- message_name: _this.EgcZ.rpCx,
3389
- id: _this.UMRB
3384
+ Apxor.getController().persistTerminationInfoLocally(_this.byNa);
3385
+ if (_this.UAQj._only_context === true) {
3386
+ var apx_nudge_type = _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign";
3387
+ Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.UAQj._attr), {}, {
3388
+ message_name: _this.UAQj.KtUk,
3389
+ id: _this.byNa
3390
3390
  }), false, "apxor", apx_nudge_type);
3391
3391
  }
3392
3392
  // Emit event
3393
- Apxor.getController().dispatchEvent(_this.EgcZ.OPHn, {
3394
- name: _this.EgcZ.OPHn,
3393
+ Apxor.getController().dispatchEvent(_this.UAQj.PToU, {
3394
+ name: _this.UAQj.PToU,
3395
3395
  additional_info: {
3396
- uuid: _this.UMRB,
3397
- name: _this.EgcZ.rpCx
3396
+ uuid: _this.byNa,
3397
+ name: _this.UAQj.KtUk
3398
3398
  }
3399
3399
  });
3400
3400
  }
@@ -3402,42 +3402,42 @@
3402
3402
  _defineProperty(this, "validateForTerminationAttributes", function () {
3403
3403
  var userAttributes = Apxor.getController().getUserAttributes();
3404
3404
  var sessionAttributes = Apxor.getController().getSessionAttributes();
3405
- return _this.lDOg.validate(userAttributes, sessionAttributes);
3405
+ return _this.QeSd.validate(userAttributes, sessionAttributes);
3406
3406
  });
3407
- _defineProperty(this, "AkJS", function () {
3408
- _this.tWsf.AkJS();
3407
+ _defineProperty(this, "pMqC", function () {
3408
+ _this.bgKv.pMqC();
3409
3409
  });
3410
3410
  _defineProperty(this, "getFrequencyCount", function () {
3411
- return _this.tWsf.getFrequencyCount();
3411
+ return _this.bgKv.getFrequencyCount();
3412
3412
  });
3413
- _defineProperty(this, "KIlN", function () {
3414
- return _this.tWsf.sPjS();
3413
+ _defineProperty(this, "czDu", function () {
3414
+ return _this.bgKv.hQFj();
3415
3415
  });
3416
- _defineProperty(this, "Yjev", function (validator) {
3416
+ _defineProperty(this, "tPFv", function (validator) {
3417
3417
  var currentResult;
3418
- var combine_operator = validator[0].ehHx.unUI;
3418
+ var combine_operator = validator[0].gUwB.ipfv;
3419
3419
  if (combine_operator === "AND") {
3420
3420
  currentResult = true;
3421
3421
  } else {
3422
3422
  currentResult = false;
3423
3423
  }
3424
3424
  for (var i = 0; i < validator.length; i++) {
3425
- var _combine_operator2 = validator[0].ehHx.unUI;
3425
+ var _combine_operator2 = validator[0].gUwB.ipfv;
3426
3426
  if (_combine_operator2 === "AND") {
3427
- currentResult = currentResult && validator[i].qyAQ;
3427
+ currentResult = currentResult && validator[i].JIae;
3428
3428
  } else {
3429
- currentResult = currentResult || validator[i].qyAQ;
3429
+ currentResult = currentResult || validator[i].JIae;
3430
3430
  }
3431
3431
  }
3432
3432
  return currentResult;
3433
3433
  });
3434
- _defineProperty(this, "agaL", function (reason) {
3435
- var _this$EgcZ$_attr2;
3434
+ _defineProperty(this, "oLNe", function (reason) {
3435
+ var _this$UAQj$_attr2;
3436
3436
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
3437
- apx_nudge_type: _this.EgcZ.OPHn === "SURVEY" ? "survey" : "campaign",
3438
- apx_nudge_id: _this.UMRB,
3439
- apx_nudge_name: _this.EgcZ.rpCx,
3440
- apx_variant_code: _this.EgcZ._isExperiment || _this.EgcZ._only_context ? (_this$EgcZ$_attr2 = _this.EgcZ._attr) === null || _this$EgcZ$_attr2 === void 0 ? void 0 : _this$EgcZ$_attr2[APX_VARIANT_CODE] : "TG",
3437
+ apx_nudge_type: _this.UAQj.PToU === "SURVEY" ? "survey" : "campaign",
3438
+ apx_nudge_id: _this.byNa,
3439
+ apx_nudge_name: _this.UAQj.KtUk,
3440
+ apx_variant_code: _this.UAQj._isExperiment || _this.UAQj._only_context ? (_this$UAQj$_attr2 = _this.UAQj._attr) === null || _this$UAQj$_attr2 === void 0 ? void 0 : _this$UAQj$_attr2[APX_VARIANT_CODE] : "TG",
3441
3441
  apx_failure_type: "warn",
3442
3442
  apx_reason: reason
3443
3443
  });
@@ -3447,7 +3447,7 @@
3447
3447
  var ConfigLookup = /*#__PURE__*/_createClass(function ConfigLookup() {
3448
3448
  var _this = this;
3449
3449
  _classCallCheck(this, ConfigLookup);
3450
- _defineProperty(this, "SIio", {});
3450
+ _defineProperty(this, "JgFT", {});
3451
3451
  _defineProperty(this, "parse", function () {
3452
3452
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
3453
3453
  configs: []
@@ -3470,7 +3470,7 @@
3470
3470
  var configId = _config._id;
3471
3471
  var configItem = new ConfigItem();
3472
3472
  if (configItem.parse(_config)) {
3473
- _this.SIio[configId] = configItem;
3473
+ _this.JgFT[configId] = configItem;
3474
3474
  } else {
3475
3475
  console.warn("Failed to parse cfg", configId);
3476
3476
  }
@@ -3479,51 +3479,51 @@
3479
3479
  });
3480
3480
  _defineProperty(this, "validate", function (id, index) {
3481
3481
  var childIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
3482
- if (_this.SIio[id]) {
3483
- var configItem = _this.SIio[id];
3484
- configItem.ndZk(index, childIndex);
3482
+ if (_this.JgFT[id]) {
3483
+ var configItem = _this.JgFT[id];
3484
+ configItem.yCUX(index, childIndex);
3485
3485
  }
3486
3486
  });
3487
3487
  _defineProperty(this, "getVariantCode", function (id) {
3488
- if (_this.SIio[id]) {
3489
- var configItem = _this.SIio[id];
3488
+ if (_this.JgFT[id]) {
3489
+ var configItem = _this.JgFT[id];
3490
3490
  return configItem._variant_code;
3491
3491
  }
3492
3492
  return "";
3493
3493
  });
3494
3494
  _defineProperty(this, "validateForTermination", function (id, index) {
3495
- if (_this.SIio[id]) {
3496
- var configItem = _this.SIio[id];
3497
- configItem.VruW(index);
3495
+ if (_this.JgFT[id]) {
3496
+ var configItem = _this.JgFT[id];
3497
+ configItem.hcWl(index);
3498
3498
  }
3499
3499
  });
3500
3500
  _defineProperty(this, "validateForTerminationAttributes", function (id) {
3501
- if (_this.SIio[id]) {
3502
- var configItem = _this.SIio[id];
3501
+ if (_this.JgFT[id]) {
3502
+ var configItem = _this.JgFT[id];
3503
3503
  return configItem.validateForTerminationAttributes();
3504
3504
  }
3505
3505
  return false;
3506
3506
  });
3507
- _defineProperty(this, "AkJS", function (id) {
3508
- var campiagnConfig = _this.SIio[id];
3509
- campiagnConfig.AkJS();
3507
+ _defineProperty(this, "pMqC", function (id) {
3508
+ var campiagnConfig = _this.JgFT[id];
3509
+ campiagnConfig.pMqC();
3510
3510
  });
3511
3511
  _defineProperty(this, "getFrequencyCount", function (id) {
3512
- var campiagnConfig = _this.SIio[id];
3512
+ var campiagnConfig = _this.JgFT[id];
3513
3513
  if (campiagnConfig != undefined) return campiagnConfig.getFrequencyCount();
3514
3514
  });
3515
3515
  _defineProperty(this, "resetFrequencyCounts", function () {
3516
- var configs = _this.SIio;
3516
+ var configs = _this.JgFT;
3517
3517
  for (var configId in configs) {
3518
- configs[configId].KIlN();
3518
+ configs[configId].czDu();
3519
3519
  }
3520
3520
  });
3521
- _defineProperty(this, "KsSW", function (campaignId) {
3521
+ _defineProperty(this, "TJVz", function (campaignId) {
3522
3522
  try {
3523
- if (_this.SIio) {
3524
- var configItem = _this.SIio[campaignId];
3525
- if (configItem && configItem.EgcZ) {
3526
- return configItem.EgcZ;
3523
+ if (_this.JgFT) {
3524
+ var configItem = _this.JgFT[campaignId];
3525
+ if (configItem && configItem.UAQj) {
3526
+ return configItem.UAQj;
3527
3527
  }
3528
3528
  }
3529
3529
  } catch (e) {
@@ -3539,42 +3539,51 @@
3539
3539
  var EventsListener = /*#__PURE__*/_createClass(function EventsListener() {
3540
3540
  var _this = this;
3541
3541
  _classCallCheck(this, EventsListener);
3542
- _defineProperty(this, "uWAV", {});
3543
- _defineProperty(this, "jgbV", []);
3544
- _defineProperty(this, "EnQZ", false);
3542
+ _defineProperty(this, "bCJl", {});
3543
+ _defineProperty(this, "aMhH", []);
3544
+ _defineProperty(this, "XihI", false);
3545
3545
  _defineProperty(this, "initialize", function () {
3546
3546
  var controller = Apxor.getController();
3547
3547
  controller.registerForEvent(APP_EVENT$1, function (event) {
3548
- return _this.PnHj(event, "AE");
3548
+ return _this.GIkA(event, "AE");
3549
3549
  });
3550
3550
  controller.registerForEvent(CLIENT_EVENT$1, function (event) {
3551
- return _this.PnHj(event, "CE");
3551
+ return _this.GIkA(event, "CE");
3552
3552
  });
3553
3553
  });
3554
- _defineProperty(this, "KMED", function () {
3554
+ _defineProperty(this, "btzJ", function () {
3555
3555
  // Clear Buffer
3556
- for (var item in _this.jgbV) {
3557
- _this.oofL(item.event, item.key, item.type);
3556
+ var _iterator = _createForOfIteratorHelper(_this.aMhH),
3557
+ _step;
3558
+ try {
3559
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
3560
+ var item = _step.value;
3561
+ _this.AiSy(item.event, item.key, item.type);
3562
+ }
3563
+ } catch (err) {
3564
+ _iterator.e(err);
3565
+ } finally {
3566
+ _iterator.f();
3558
3567
  }
3559
- _this.EnQZ = true;
3568
+ _this.XihI = true;
3560
3569
  });
3561
- _defineProperty(this, "HMQn", function (event, callback) {
3570
+ _defineProperty(this, "jBjt", function (event, callback) {
3562
3571
  if (!isFunction(callback)) {
3563
3572
  return;
3564
3573
  }
3565
3574
  var listeners;
3566
- if (_this.uWAV[event]) {
3567
- listeners = _this.uWAV[event];
3575
+ if (_this.bCJl[event]) {
3576
+ listeners = _this.bCJl[event];
3568
3577
  } else {
3569
3578
  listeners = [];
3570
3579
  }
3571
3580
  listeners.push(callback);
3572
- _this.uWAV[event] = listeners;
3573
- Logger$b.debug("Listeners list: ", _this.uWAV);
3581
+ _this.bCJl[event] = listeners;
3582
+ Logger$b.debug("Listeners list: ", _this.bCJl);
3574
3583
  });
3575
3584
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
3576
- if (_this.uWAV[event]) {
3577
- var listeners = _this.uWAV[event];
3585
+ if (_this.bCJl[event]) {
3586
+ var listeners = _this.bCJl[event];
3578
3587
  var updatedListeners = [];
3579
3588
  for (var index = 0; index < listeners.length; index++) {
3580
3589
  var listener = listeners[index];
@@ -3582,36 +3591,36 @@
3582
3591
  updatedListeners.push(listener);
3583
3592
  }
3584
3593
  }
3585
- _this.uWAV[event] = updatedListeners;
3594
+ _this.bCJl[event] = updatedListeners;
3586
3595
  }
3587
3596
  });
3588
- _defineProperty(this, "PnHj", function (event) {
3597
+ _defineProperty(this, "GIkA", function (event) {
3589
3598
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "AE";
3590
- _this.oofL(event, "any_event", type);
3599
+ _this.AiSy(event, "any_event", type);
3591
3600
  if ((event === null || event === void 0 ? void 0 : event.loggedBy) === "apxor") {
3592
- _this.oofL(event, "apxor_event", type);
3601
+ _this.AiSy(event, "apxor_event", type);
3593
3602
  } else if ((event === null || event === void 0 ? void 0 : event.loggedBy) === "customer") {
3594
- _this.oofL(event, "customer_event", type);
3603
+ _this.AiSy(event, "customer_event", type);
3595
3604
  }
3596
3605
  if ((event === null || event === void 0 ? void 0 : event.apx_nudge_type) === "campaign") {
3597
- _this.oofL(event, "campaign_event", type);
3606
+ _this.AiSy(event, "campaign_event", type);
3598
3607
  } else if ((event === null || event === void 0 ? void 0 : event.apx_nudge_type) === "survey") {
3599
- _this.oofL(event, "survey_event", type);
3608
+ _this.AiSy(event, "survey_event", type);
3600
3609
  }
3601
3610
  var key = type + "___" + event.name;
3602
- _this.oofL(event, key, type);
3611
+ _this.AiSy(event, key, type);
3603
3612
  });
3604
- _defineProperty(this, "oofL", function (event, key, type) {
3605
- if (!_this.EnQZ) {
3606
- _this.jgbV.push({
3613
+ _defineProperty(this, "AiSy", function (event, key, type) {
3614
+ if (!_this.XihI) {
3615
+ _this.aMhH.push({
3607
3616
  event: event,
3608
3617
  key: key,
3609
3618
  type: type
3610
3619
  });
3611
3620
  } else {
3612
- Logger$b.debug("Notifying listeners for event: " + event + ", " + key, _this.uWAV);
3613
- if (_this.uWAV[key]) {
3614
- var listeners = _this.uWAV[key];
3621
+ Logger$b.debug("Notifying listeners for event: " + event + ", " + key, _this.bCJl);
3622
+ if (_this.bCJl[key]) {
3623
+ var listeners = _this.bCJl[key];
3615
3624
  var time = Apxor.getController().getSDKRunningTimeInSec();
3616
3625
  for (var index = 0; index < listeners.length; index++) {
3617
3626
  var listener = listeners[index];
@@ -3627,17 +3636,17 @@
3627
3636
  function CE() {
3628
3637
  var _this = this;
3629
3638
  _classCallCheck(this, CE);
3630
- _defineProperty(this, "xkuX", false);
3631
- _defineProperty(this, "BYqI", null);
3632
- _defineProperty(this, "dVod", getDateInDDMMYYYY());
3633
- _defineProperty(this, "lZeb", new EventsListener());
3634
- _defineProperty(this, "lWJF", Apxor.getSiteId());
3639
+ _defineProperty(this, "EygS", false);
3640
+ _defineProperty(this, "TmuE", null);
3641
+ _defineProperty(this, "Lsht", getDateInDDMMYYYY());
3642
+ _defineProperty(this, "bXNG", new EventsListener());
3643
+ _defineProperty(this, "UWFc", Apxor.getSiteId());
3635
3644
  _defineProperty(this, "_qeState", {});
3636
3645
  _defineProperty(this, "getQeState", function () {
3637
3646
  try {
3638
3647
  var data = Apxor.getController().getFromStorage(QE_STATE);
3639
3648
  if (data) {
3640
- return JSON.parse(decode(_this.lWJF, data));
3649
+ return JSON.parse(decode(_this.UWFc, data));
3641
3650
  } else {
3642
3651
  _this._qeState = {};
3643
3652
  return _this.setQeState();
@@ -3666,10 +3675,10 @@
3666
3675
  return _this._qeState;
3667
3676
  });
3668
3677
  _defineProperty(this, "initialize", function () {
3669
- if (!_this.xkuX) {
3670
- _this.xkuX = true;
3671
- _this.BYqI = new ConfigLookup();
3672
- _this.lZeb.initialize();
3678
+ if (!_this.EygS) {
3679
+ _this.EygS = true;
3680
+ _this.TmuE = new ConfigLookup();
3681
+ _this.bXNG.initialize();
3673
3682
  _this._qeState = _this.getQeState();
3674
3683
  Logger$c.info("QE Initialized..");
3675
3684
  }
@@ -3680,12 +3689,12 @@
3680
3689
  * @param config
3681
3690
  */
3682
3691
  _defineProperty(this, "parse", function (config) {
3683
- if (!_this.Pccw()) {
3692
+ if (!_this.ZUbm()) {
3684
3693
  Logger$c.warn("Must call init first. Unable to proceed");
3685
3694
  return;
3686
3695
  }
3687
- _this.BYqI.parse(config);
3688
- _this.lZeb.KMED();
3696
+ _this.TmuE.parse(config);
3697
+ _this.bXNG.btzJ();
3689
3698
  });
3690
3699
  /**
3691
3700
  * Validates all conditions for given config ID
@@ -3695,22 +3704,22 @@
3695
3704
  */
3696
3705
  _defineProperty(this, "validate", function (id, index) {
3697
3706
  var childIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
3698
- if (!_this.Pccw()) {
3707
+ if (!_this.ZUbm()) {
3699
3708
  return;
3700
3709
  }
3701
- _this.BYqI.validate(id, index, childIndex);
3710
+ _this.TmuE.validate(id, index, childIndex);
3702
3711
  });
3703
3712
  _defineProperty(this, "getVariantCode", function (id) {
3704
- return _this.BYqI.getVariantCode(id);
3713
+ return _this.TmuE.getVariantCode(id);
3705
3714
  });
3706
3715
  _defineProperty(this, "validateForTermination", function (id, index) {
3707
- if (!_this.Pccw()) {
3716
+ if (!_this.ZUbm()) {
3708
3717
  return;
3709
3718
  }
3710
- _this.BYqI.validateForTermination(id, index);
3719
+ _this.TmuE.validateForTermination(id, index);
3711
3720
  });
3712
3721
  _defineProperty(this, "validateForTerminationAttributes", function (user, session) {
3713
- return _this.BYqI.validateForTerminationAttributes(user, session);
3722
+ return _this.TmuE.validateForTerminationAttributes(user, session);
3714
3723
  });
3715
3724
  _defineProperty(this, "updateCount", function (id) {
3716
3725
  try {
@@ -3719,25 +3728,25 @@
3719
3728
  }
3720
3729
  _this.incrementFrequencies(id);
3721
3730
  _this.setQeState(id);
3722
- _this.BYqI.AkJS(id);
3731
+ _this.TmuE.pMqC(id);
3723
3732
  } catch (e) {
3724
3733
  console.log("Could not update the count config:".concat(e));
3725
3734
  }
3726
3735
  });
3727
3736
  _defineProperty(this, "resetFrequencyCounts", function () {
3728
- _this.BYqI.resetFrequencyCounts();
3737
+ _this.TmuE.resetFrequencyCounts();
3729
3738
  });
3730
3739
  _defineProperty(this, "getFrequencyCount", function (id) {
3731
- return _this.BYqI.getFrequencyCount(id);
3740
+ return _this.TmuE.getFrequencyCount(id);
3732
3741
  });
3733
3742
  _defineProperty(this, "registerForEvent", function (event, callback) {
3734
- _this.lZeb.HMQn(event, callback);
3743
+ _this.bXNG.jBjt(event, callback);
3735
3744
  });
3736
3745
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
3737
- _this.lZeb.unregisterFromEvent(event, callback);
3746
+ _this.bXNG.unregisterFromEvent(event, callback);
3738
3747
  });
3739
3748
  _defineProperty(this, "notifyEventListener", function (event) {
3740
- _this.lZeb.PnHj(event);
3749
+ _this.bXNG.GIkA(event);
3741
3750
  });
3742
3751
  /**
3743
3752
  * Fetches the config from Server
@@ -3750,14 +3759,14 @@
3750
3759
  _defineProperty(this, "fetch", function (type, validateUrl, apiUrl, callback) {
3751
3760
  Apxor.getController().fetchConfiguration(type, validateUrl, apiUrl, callback);
3752
3761
  });
3753
- _defineProperty(this, "Pccw", function () {
3754
- return _this.xkuX;
3762
+ _defineProperty(this, "ZUbm", function () {
3763
+ return _this.EygS;
3755
3764
  });
3756
3765
  _defineProperty(this, "getCampaignMetaFromQueryEngine", function (campaignId) {
3757
- return _this.BYqI.KsSW(campaignId);
3766
+ return _this.TmuE.TJVz(campaignId);
3758
3767
  });
3759
- _defineProperty(this, "KgiV", function () {
3760
- return _this.dVod;
3768
+ _defineProperty(this, "GAzS", function () {
3769
+ return _this.Lsht;
3761
3770
  });
3762
3771
  if (!CE.instance) {
3763
3772
  CE.instance = this;
@@ -3781,7 +3790,7 @@
3781
3790
  OVERALL: 0,
3782
3791
  DATES: {}
3783
3792
  };
3784
- if (this.dVod) this._qeState[id].DATES[this.dVod] = 0;
3793
+ if (this.Lsht) this._qeState[id].DATES[this.Lsht] = 0;
3785
3794
  this.setQeState(id);
3786
3795
  }
3787
3796
  } catch (e) {
@@ -3800,12 +3809,12 @@
3800
3809
 
3801
3810
  // Increment the DATES count for this particular date by 1. If the date changes reset.
3802
3811
  var currentDate = getDateInDDMMYYYY();
3803
- if (currentDate !== this.dVod || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
3804
- this.dVod = currentDate;
3812
+ if (currentDate !== this.Lsht || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
3813
+ this.Lsht = currentDate;
3805
3814
  configFrequency.DATES = {};
3806
- configFrequency.DATES[this.dVod] = 0;
3815
+ configFrequency.DATES[this.Lsht] = 0;
3807
3816
  }
3808
- configFrequency.DATES[this.dVod] = configFrequency.DATES[this.dVod] + 1;
3817
+ configFrequency.DATES[this.Lsht] = configFrequency.DATES[this.Lsht] + 1;
3809
3818
  }
3810
3819
  }], [{
3811
3820
  key: "getInstance",
@@ -3824,7 +3833,7 @@
3824
3833
 
3825
3834
  /* eslint-disable no-empty */
3826
3835
 
3827
- window.ceVersion = 201;
3836
+ window.ceVersion = 202;
3828
3837
  try {
3829
3838
  if (exports !== undefined || exports !== null) {
3830
3839
  exports["default"] = CE;