@copart/ops-tool-kit 1.7.3 → 1.7.5
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 +17 -17
- 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__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.7.
|
|
36
|
+
const version$3 = "1.7.5";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -11076,15 +11076,16 @@ function () {
|
|
|
11076
11076
|
windshield_label_printers = [];
|
|
11077
11077
|
country = countryA3code || storage$1.getSessionItem('dashboard', 'selectedCountryA3code'); // Fetch all printers from g2print-ws endpoint
|
|
11078
11078
|
|
|
11079
|
+
_context.prev = 8;
|
|
11079
11080
|
g2PrintersUrl = "".concat(endpoints.g2Printers, "&facility=").concat(yardNumber);
|
|
11080
|
-
_context.next =
|
|
11081
|
+
_context.next = 12;
|
|
11081
11082
|
return fetcher.get(g2PrintersUrl, {
|
|
11082
11083
|
headers: {
|
|
11083
11084
|
country: country
|
|
11084
11085
|
}
|
|
11085
11086
|
});
|
|
11086
11087
|
|
|
11087
|
-
case
|
|
11088
|
+
case 12:
|
|
11088
11089
|
g2Printers = _context.sent;
|
|
11089
11090
|
printersResponse = pathOr$1([], ['data'], g2Printers);
|
|
11090
11091
|
printersResponse.forEach(function (printer) {
|
|
@@ -11118,6 +11119,15 @@ function () {
|
|
|
11118
11119
|
standard_printers.push(obj);
|
|
11119
11120
|
}
|
|
11120
11121
|
});
|
|
11122
|
+
_context.next = 20;
|
|
11123
|
+
break;
|
|
11124
|
+
|
|
11125
|
+
case 17:
|
|
11126
|
+
_context.prev = 17;
|
|
11127
|
+
_context.t0 = _context["catch"](8);
|
|
11128
|
+
console.error(_context.t0);
|
|
11129
|
+
|
|
11130
|
+
case 20:
|
|
11121
11131
|
return _context.abrupt("return", _objectSpread2({}, allPrinters, {
|
|
11122
11132
|
check_printers: check_printers,
|
|
11123
11133
|
barcode_label_printers: barcode_label_printers,
|
|
@@ -11126,12 +11136,12 @@ function () {
|
|
|
11126
11136
|
text_printers: text_printers
|
|
11127
11137
|
}));
|
|
11128
11138
|
|
|
11129
|
-
case
|
|
11139
|
+
case 21:
|
|
11130
11140
|
case "end":
|
|
11131
11141
|
return _context.stop();
|
|
11132
11142
|
}
|
|
11133
11143
|
}
|
|
11134
|
-
}, _callee);
|
|
11144
|
+
}, _callee, null, [[8, 17]]);
|
|
11135
11145
|
}));
|
|
11136
11146
|
|
|
11137
11147
|
return function getPrintersForYard(_x, _x2) {
|
|
@@ -11199,8 +11209,7 @@ var regexCountry = /\.co\.([a-z]{2})/;
|
|
|
11199
11209
|
var regexCobaltCountry = /\.copart\.([a-z]{2})/;
|
|
11200
11210
|
var isLogoutRoute = ['logout'].includes(getRouteName());
|
|
11201
11211
|
var isAuthRoute = ['login', 'logout', ''].includes(getRouteName());
|
|
11202
|
-
var isCoreRoute = ['settings', 'home', 'webChat', ''].includes(getRouteName());
|
|
11203
|
-
var isIframeRoute = ['embedded-apps', 'embedded'].includes(getRouteName());
|
|
11212
|
+
var isCoreRoute = ['settings', 'home', 'webChat', 'embedded', ''].includes(getRouteName());
|
|
11204
11213
|
var getDomain = function getDomain(url) {
|
|
11205
11214
|
var country = url.match(regexCountry);
|
|
11206
11215
|
var countryCode = (country && country.length > 1 && country[1] || 'US').toUpperCase();
|
|
@@ -30782,7 +30791,6 @@ styleInject(css_248z$1);
|
|
|
30782
30791
|
var PASS_FOR_AUTHENTICATION_ROUTE = 'Route is /login or /logout.';
|
|
30783
30792
|
var FAILED_AUTHENTICATION_CHECK_REASON = 'User is not authenticated. (Check localStorage.login.isAuthenticated.)';
|
|
30784
30793
|
var AUTHENTICATED_AND_ON_CORE_ROUTE = 'Authenticated and entering core route.';
|
|
30785
|
-
var AUTHENTICATED_AND_ON_IFRAME_ROUTE = 'Authenticated and entering iframe route.';
|
|
30786
30794
|
var PASS_BECAUSE_RESTRICTIONS_DISABLED = 'SecurityLevel and Yard restrictions disabled.';
|
|
30787
30795
|
var PATH_NOT_FOUND = 'Tile/Path does not exist';
|
|
30788
30796
|
var NO_TILE_PERMISSION = 'Could not verify user access for the tile.';
|
|
@@ -30911,14 +30919,6 @@ function (_React$PureComponent) {
|
|
|
30911
30919
|
return fetcher.getPermissions(appTile.appAuthName);
|
|
30912
30920
|
|
|
30913
30921
|
case 20:
|
|
30914
|
-
if (!isIframeRoute) {
|
|
30915
|
-
_context.next = 22;
|
|
30916
|
-
break;
|
|
30917
|
-
}
|
|
30918
|
-
|
|
30919
|
-
return _context.abrupt("return", this.allowAccess(AUTHENTICATED_AND_ON_IFRAME_ROUTE));
|
|
30920
|
-
|
|
30921
|
-
case 22:
|
|
30922
30922
|
// If there are rules, evaluate and act accordingly.
|
|
30923
30923
|
tileConfigAccess = userHasAccess(appTile);
|
|
30924
30924
|
|
|
@@ -30928,7 +30928,7 @@ function (_React$PureComponent) {
|
|
|
30928
30928
|
this.denyAccess(NO_TILE_PERMISSION);
|
|
30929
30929
|
}
|
|
30930
30930
|
|
|
30931
|
-
case
|
|
30931
|
+
case 22:
|
|
30932
30932
|
case "end":
|
|
30933
30933
|
return _context.stop();
|
|
30934
30934
|
}
|