@copart/ops-tool-kit 1.10.15 → 1.10.16

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__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
33
33
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
34
34
 
35
35
  const name$f = "@copart/ops-tool-kit";
36
- const version$5 = "1.10.15";
36
+ const version$5 = "1.10.16";
37
37
  const main$1 = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -11161,9 +11161,7 @@ function () {
11161
11161
 
11162
11162
  var getHierarchyDetails = function getHierarchyDetails(hierarchies, hierarchyId) {
11163
11163
  var hierarchy = hierarchies[hierarchyId];
11164
- console.log('hierarchy --> ', hierarchy, hierarchyId);
11165
11164
  var isHierarchyFromCurrentCountry = hierarchy && hierarchy.countryCode === storage.getSessionItem('dashboard', 'selectedCountryA3code');
11166
- console.log('isHierarchyFromCurrentCountry --> ', isHierarchyFromCurrentCountry);
11167
11165
  return isHierarchyFromCurrentCountry ? {
11168
11166
  id: hierarchy.hierarchyId,
11169
11167
  level: hierarchy.levelName,
@@ -11193,18 +11191,17 @@ function () {
11193
11191
 
11194
11192
  case 4:
11195
11193
  hierarchies = _context.sent;
11196
- console.log('Hierarchy Data --> ', hierarchies);
11197
11194
  storage.setLocalItem('hierarchies', hierarchies);
11198
- _context.next = 13;
11195
+ _context.next = 12;
11199
11196
  break;
11200
11197
 
11201
- case 9:
11202
- _context.prev = 9;
11198
+ case 8:
11199
+ _context.prev = 8;
11203
11200
  _context.t0 = _context["catch"](1);
11204
11201
  console.log(_context.t0);
11205
11202
  hierarchies = storage.getLocalItem('hierarchies');
11206
11203
 
11207
- case 13:
11204
+ case 12:
11208
11205
  scopeData = storage.getLocalItem('login', 'entity_auth_scope');
11209
11206
  scopeList = typeof scopeData === 'string' ? scopeData === null || scopeData === void 0 ? void 0 : scopeData.split(',') : [];
11210
11207
  filteredScopeList = [];
@@ -11213,7 +11210,6 @@ function () {
11213
11210
 
11214
11211
  var scopeInfo = scope === null || scope === void 0 ? void 0 : scope.split('|');
11215
11212
  var hierarchyList = (_scopeInfo$ = scopeInfo[2]) === null || _scopeInfo$ === void 0 ? void 0 : _scopeInfo$.split(':');
11216
- console.log('hierarchyList--> ', hierarchyList, hierarchies);
11217
11213
  var hierarchiesWithDetails = [];
11218
11214
  hierarchyList.forEach(function (hierarchy) {
11219
11215
  var details = getHierarchyDetails(hierarchies, Number(hierarchy));
@@ -11222,7 +11218,6 @@ function () {
11222
11218
  hierarchiesWithDetails.push(details);
11223
11219
  }
11224
11220
  });
11225
- console.log('hierarchiesWithDetails--> ', hierarchiesWithDetails);
11226
11221
 
11227
11222
  if (hierarchiesWithDetails.length > 0) {
11228
11223
  filteredScopeList.push({
@@ -11232,15 +11227,14 @@ function () {
11232
11227
  });
11233
11228
  }
11234
11229
  });
11235
- console.log('filteredScopeList -->', filteredScopeList);
11236
11230
  return _context.abrupt("return", filteredScopeList);
11237
11231
 
11238
- case 19:
11232
+ case 17:
11239
11233
  case "end":
11240
11234
  return _context.stop();
11241
11235
  }
11242
11236
  }
11243
- }, _callee, null, [[1, 9]]);
11237
+ }, _callee, null, [[1, 8]]);
11244
11238
  }));
11245
11239
 
11246
11240
  return function getUserScopes() {