@copart/ops-tool-kit 1.5.33-alpha.1 → 1.5.35

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.35";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -2911,6 +2911,10 @@ var createOpsStorage = function createOpsStorage() {
2911
2911
  return getLocalItem('dashboard', 'twilioEnabled') || false;
2912
2912
  },
2913
2913
 
2914
+ get clickToDialEnabledStatus() {
2915
+ return localStorage.c2dEnabled ? JSON.parse(localStorage.c2dEnabled) : false;
2916
+ },
2917
+
2914
2918
  get callCapsuleEnabledStatus() {
2915
2919
  return getLocalItem('dashboard', 'isCallCapsuleEnabled') || false;
2916
2920
  },
@@ -2944,6 +2948,7 @@ var createOpsStorage = function createOpsStorage() {
2944
2948
  },
2945
2949
  logout: function logout() {
2946
2950
  clearStorage();
2951
+ localStorage.removeItem('c2dEnabled');
2947
2952
  window.location.assign('/logout');
2948
2953
  }
2949
2954
  };
@@ -39207,23 +39212,23 @@ function filterOutNotificationForOtherApps(notifications) {
39207
39212
  }
39208
39213
 
39209
39214
  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];
39215
+ var miphoneNotification = null;
39216
+ var filtered = filter$1(function (notification) {
39217
+ if (notification.news_source === 'Miphone') {
39218
+ if (!miphoneNotification || Date.parse(miphoneNotification.lastUpdatedAt) < Date.parse(notification.lastUpdatedAt)) {
39219
+ if (miphoneNotification) {
39220
+ addNotificationToViewedList(miphoneNotification);
39221
+ }
39215
39222
 
39216
- if (current.news_source === 'Miphone') {
39217
- if (!miphoneNotificationPresent) {
39218
- filtered.push(current);
39219
- miphoneNotificationPresent = true;
39223
+ miphoneNotification = notification;
39224
+ } else {
39225
+ addNotificationToViewedList(notification);
39220
39226
  }
39221
39227
  } else {
39222
- filtered.push(current);
39228
+ return true;
39223
39229
  }
39224
- }
39225
-
39226
- return filtered.reverse();
39230
+ })(notifications);
39231
+ return [].concat(_toConsumableArray(filtered), [miphoneNotification]);
39227
39232
  }
39228
39233
 
39229
39234
  var caseInsensitiveIncludes = function caseInsensitiveIncludes(val) {