@copart/ops-tool-kit 1.7.4 → 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 +13 -15
- 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 = [
|
|
@@ -2584,11 +2584,13 @@ function set$1(target, path, value, options) {
|
|
|
2584
2584
|
|
|
2585
2585
|
let opts = options || {};
|
|
2586
2586
|
const isArray = Array.isArray(path);
|
|
2587
|
+
|
|
2587
2588
|
if (!isArray && typeof path !== 'string') {
|
|
2588
2589
|
return target;
|
|
2589
2590
|
}
|
|
2590
2591
|
|
|
2591
2592
|
let merge = opts.merge;
|
|
2593
|
+
|
|
2592
2594
|
if (merge && typeof merge !== 'function') {
|
|
2593
2595
|
merge = Object.assign;
|
|
2594
2596
|
}
|
|
@@ -2631,8 +2633,7 @@ function result(target, path, value, merge) {
|
|
|
2631
2633
|
function split(path, options) {
|
|
2632
2634
|
const id = createKey(path, options);
|
|
2633
2635
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2634
|
-
|
|
2635
|
-
const char = (options && options.separator) ? options.separator : '.';
|
|
2636
|
+
const char = options && options.separator ? options.separator : '.';
|
|
2636
2637
|
let keys = [];
|
|
2637
2638
|
let res = [];
|
|
2638
2639
|
|
|
@@ -2644,25 +2645,32 @@ function split(path, options) {
|
|
|
2644
2645
|
|
|
2645
2646
|
for (let i = 0; i < keys.length; i++) {
|
|
2646
2647
|
let prop = keys[i];
|
|
2648
|
+
|
|
2647
2649
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2648
2650
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2649
2651
|
}
|
|
2652
|
+
|
|
2650
2653
|
res.push(prop);
|
|
2651
2654
|
}
|
|
2655
|
+
|
|
2652
2656
|
set$1.memo[id] = res;
|
|
2653
2657
|
return res;
|
|
2654
2658
|
}
|
|
2655
2659
|
|
|
2656
2660
|
function createKey(pattern, options) {
|
|
2657
2661
|
let id = pattern;
|
|
2662
|
+
|
|
2658
2663
|
if (typeof options === 'undefined') {
|
|
2659
2664
|
return id + '';
|
|
2660
2665
|
}
|
|
2666
|
+
|
|
2661
2667
|
const keys = Object.keys(options);
|
|
2668
|
+
|
|
2662
2669
|
for (let i = 0; i < keys.length; i++) {
|
|
2663
2670
|
const key = keys[i];
|
|
2664
2671
|
id += ';' + key + '=' + String(options[key]);
|
|
2665
2672
|
}
|
|
2673
|
+
|
|
2666
2674
|
return id;
|
|
2667
2675
|
}
|
|
2668
2676
|
|
|
@@ -11201,8 +11209,7 @@ var regexCountry = /\.co\.([a-z]{2})/;
|
|
|
11201
11209
|
var regexCobaltCountry = /\.copart\.([a-z]{2})/;
|
|
11202
11210
|
var isLogoutRoute = ['logout'].includes(getRouteName());
|
|
11203
11211
|
var isAuthRoute = ['login', 'logout', ''].includes(getRouteName());
|
|
11204
|
-
var isCoreRoute = ['settings', 'home', 'webChat', ''].includes(getRouteName());
|
|
11205
|
-
var isIframeRoute = ['embedded-apps', 'embedded'].includes(getRouteName());
|
|
11212
|
+
var isCoreRoute = ['settings', 'home', 'webChat', 'embedded', ''].includes(getRouteName());
|
|
11206
11213
|
var getDomain = function getDomain(url) {
|
|
11207
11214
|
var country = url.match(regexCountry);
|
|
11208
11215
|
var countryCode = (country && country.length > 1 && country[1] || 'US').toUpperCase();
|
|
@@ -30784,7 +30791,6 @@ styleInject(css_248z$1);
|
|
|
30784
30791
|
var PASS_FOR_AUTHENTICATION_ROUTE = 'Route is /login or /logout.';
|
|
30785
30792
|
var FAILED_AUTHENTICATION_CHECK_REASON = 'User is not authenticated. (Check localStorage.login.isAuthenticated.)';
|
|
30786
30793
|
var AUTHENTICATED_AND_ON_CORE_ROUTE = 'Authenticated and entering core route.';
|
|
30787
|
-
var AUTHENTICATED_AND_ON_IFRAME_ROUTE = 'Authenticated and entering iframe route.';
|
|
30788
30794
|
var PASS_BECAUSE_RESTRICTIONS_DISABLED = 'SecurityLevel and Yard restrictions disabled.';
|
|
30789
30795
|
var PATH_NOT_FOUND = 'Tile/Path does not exist';
|
|
30790
30796
|
var NO_TILE_PERMISSION = 'Could not verify user access for the tile.';
|
|
@@ -30913,14 +30919,6 @@ function (_React$PureComponent) {
|
|
|
30913
30919
|
return fetcher.getPermissions(appTile.appAuthName);
|
|
30914
30920
|
|
|
30915
30921
|
case 20:
|
|
30916
|
-
if (!isIframeRoute) {
|
|
30917
|
-
_context.next = 22;
|
|
30918
|
-
break;
|
|
30919
|
-
}
|
|
30920
|
-
|
|
30921
|
-
return _context.abrupt("return", this.allowAccess(AUTHENTICATED_AND_ON_IFRAME_ROUTE));
|
|
30922
|
-
|
|
30923
|
-
case 22:
|
|
30924
30922
|
// If there are rules, evaluate and act accordingly.
|
|
30925
30923
|
tileConfigAccess = userHasAccess(appTile);
|
|
30926
30924
|
|
|
@@ -30930,7 +30928,7 @@ function (_React$PureComponent) {
|
|
|
30930
30928
|
this.denyAccess(NO_TILE_PERMISSION);
|
|
30931
30929
|
}
|
|
30932
30930
|
|
|
30933
|
-
case
|
|
30931
|
+
case 22:
|
|
30934
30932
|
case "end":
|
|
30935
30933
|
return _context.stop();
|
|
30936
30934
|
}
|