@copart/ops-tool-kit 1.10.14 → 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.
- package/dist/ops-tool-kit.js +8 -12
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -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.
|
|
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 = [
|
|
@@ -11160,7 +11160,7 @@ function () {
|
|
|
11160
11160
|
}();
|
|
11161
11161
|
|
|
11162
11162
|
var getHierarchyDetails = function getHierarchyDetails(hierarchies, hierarchyId) {
|
|
11163
|
-
var hierarchy = hierarchies[hierarchyId
|
|
11163
|
+
var hierarchy = hierarchies[hierarchyId];
|
|
11164
11164
|
var isHierarchyFromCurrentCountry = hierarchy && hierarchy.countryCode === storage.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
11165
11165
|
return isHierarchyFromCurrentCountry ? {
|
|
11166
11166
|
id: hierarchy.hierarchyId,
|
|
@@ -11191,18 +11191,17 @@ function () {
|
|
|
11191
11191
|
|
|
11192
11192
|
case 4:
|
|
11193
11193
|
hierarchies = _context.sent;
|
|
11194
|
-
console.log('Hierarchy Data --> ', hierarchies);
|
|
11195
11194
|
storage.setLocalItem('hierarchies', hierarchies);
|
|
11196
|
-
_context.next =
|
|
11195
|
+
_context.next = 12;
|
|
11197
11196
|
break;
|
|
11198
11197
|
|
|
11199
|
-
case
|
|
11200
|
-
_context.prev =
|
|
11198
|
+
case 8:
|
|
11199
|
+
_context.prev = 8;
|
|
11201
11200
|
_context.t0 = _context["catch"](1);
|
|
11202
11201
|
console.log(_context.t0);
|
|
11203
11202
|
hierarchies = storage.getLocalItem('hierarchies');
|
|
11204
11203
|
|
|
11205
|
-
case
|
|
11204
|
+
case 12:
|
|
11206
11205
|
scopeData = storage.getLocalItem('login', 'entity_auth_scope');
|
|
11207
11206
|
scopeList = typeof scopeData === 'string' ? scopeData === null || scopeData === void 0 ? void 0 : scopeData.split(',') : [];
|
|
11208
11207
|
filteredScopeList = [];
|
|
@@ -11211,7 +11210,6 @@ function () {
|
|
|
11211
11210
|
|
|
11212
11211
|
var scopeInfo = scope === null || scope === void 0 ? void 0 : scope.split('|');
|
|
11213
11212
|
var hierarchyList = (_scopeInfo$ = scopeInfo[2]) === null || _scopeInfo$ === void 0 ? void 0 : _scopeInfo$.split(':');
|
|
11214
|
-
console.log('hierarchyList--> ', hierarchyList, hierarchies);
|
|
11215
11213
|
var hierarchiesWithDetails = [];
|
|
11216
11214
|
hierarchyList.forEach(function (hierarchy) {
|
|
11217
11215
|
var details = getHierarchyDetails(hierarchies, Number(hierarchy));
|
|
@@ -11220,7 +11218,6 @@ function () {
|
|
|
11220
11218
|
hierarchiesWithDetails.push(details);
|
|
11221
11219
|
}
|
|
11222
11220
|
});
|
|
11223
|
-
console.log('hierarchiesWithDetails--> ', hierarchiesWithDetails);
|
|
11224
11221
|
|
|
11225
11222
|
if (hierarchiesWithDetails.length > 0) {
|
|
11226
11223
|
filteredScopeList.push({
|
|
@@ -11230,15 +11227,14 @@ function () {
|
|
|
11230
11227
|
});
|
|
11231
11228
|
}
|
|
11232
11229
|
});
|
|
11233
|
-
console.log('filteredScopeList -->', filteredScopeList);
|
|
11234
11230
|
return _context.abrupt("return", filteredScopeList);
|
|
11235
11231
|
|
|
11236
|
-
case
|
|
11232
|
+
case 17:
|
|
11237
11233
|
case "end":
|
|
11238
11234
|
return _context.stop();
|
|
11239
11235
|
}
|
|
11240
11236
|
}
|
|
11241
|
-
}, _callee, null, [[1,
|
|
11237
|
+
}, _callee, null, [[1, 8]]);
|
|
11242
11238
|
}));
|
|
11243
11239
|
|
|
11244
11240
|
return function getUserScopes() {
|