@copart/ops-tool-kit 1.5.33-alpha.1 → 1.5.33-alpha.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.
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
33
33
  var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
34
34
 
35
35
  const name$e = "@copart/ops-tool-kit";
36
- const version$3 = "1.5.33-alpha.1";
36
+ const version$3 = "1.5.33-alpha.2";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -39207,23 +39207,23 @@ function filterOutNotificationForOtherApps(notifications) {
39207
39207
  }
39208
39208
 
39209
39209
  function filterOutDuplicateNotificationsForMiphone(notifications) {
39210
- var miphoneNotificationPresent = false;
39211
- var filtered = [];
39212
-
39213
- for (var i = notifications.length - 1; i >= 0; i--) {
39214
- var current = notifications[i];
39210
+ var miphoneNotification = null;
39211
+ var filtered = filter$1(function (notification) {
39212
+ if (notification.news_source === 'Miphone') {
39213
+ if (!miphoneNotification || Date.parse(miphoneNotification.lastUpdatedAt) < Date.parse(notification.lastUpdatedAt)) {
39214
+ if (miphoneNotification) {
39215
+ addNotificationToViewedList(miphoneNotification);
39216
+ }
39215
39217
 
39216
- if (current.news_source === 'Miphone') {
39217
- if (!miphoneNotificationPresent) {
39218
- filtered.push(current);
39219
- miphoneNotificationPresent = true;
39218
+ miphoneNotification = notification;
39219
+ } else {
39220
+ addNotificationToViewedList(notification);
39220
39221
  }
39221
39222
  } else {
39222
- filtered.push(current);
39223
+ return true;
39223
39224
  }
39224
- }
39225
-
39226
- return filtered.reverse();
39225
+ })(notifications);
39226
+ return [].concat(_toConsumableArray(filtered), [miphoneNotification]);
39227
39227
  }
39228
39228
 
39229
39229
  var caseInsensitiveIncludes = function caseInsensitiveIncludes(val) {