@copart/ops-tool-kit 1.8.1-alpha.12 → 1.8.1-alpha.14
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 +21 -223
- 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.8.1-alpha.
|
|
36
|
+
const version$5 = "1.8.1-alpha.14";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -1040,7 +1040,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1040
1040
|
var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
|
|
1041
1041
|
|
|
1042
1042
|
var loggedTypeFailures$1 = {};
|
|
1043
|
-
var has$
|
|
1043
|
+
var has$5 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1044
1044
|
|
|
1045
1045
|
printWarning$5 = function (text) {
|
|
1046
1046
|
var message = 'Warning: ' + text;
|
|
@@ -1073,7 +1073,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1073
1073
|
function checkPropTypes$2(typeSpecs, values, location, componentName, getStack) {
|
|
1074
1074
|
if (process.env.NODE_ENV !== 'production') {
|
|
1075
1075
|
for (var typeSpecName in typeSpecs) {
|
|
1076
|
-
if (has$
|
|
1076
|
+
if (has$5(typeSpecs, typeSpecName)) {
|
|
1077
1077
|
var error; // Prop type validation may throw. In case they do, we don't want to
|
|
1078
1078
|
// fail the render phase where it didn't fail before. So we log it.
|
|
1079
1079
|
// After these have been cleaned up, we'll let them throw.
|
|
@@ -1122,7 +1122,7 @@ checkPropTypes$2.resetWarningCache = function () {
|
|
|
1122
1122
|
|
|
1123
1123
|
var checkPropTypes_1$1 = checkPropTypes$2;
|
|
1124
1124
|
|
|
1125
|
-
var has$
|
|
1125
|
+
var has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1126
1126
|
|
|
1127
1127
|
var printWarning$4 = function () {};
|
|
1128
1128
|
|
|
@@ -1476,7 +1476,7 @@ var factoryWithTypeCheckers$1 = function (isValidElement, throwOnDirectAccess) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
for (var key in propValue) {
|
|
1479
|
-
if (has$
|
|
1479
|
+
if (has$4(propValue, key)) {
|
|
1480
1480
|
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
1481
1481
|
|
|
1482
1482
|
if (error instanceof Error) {
|
|
@@ -7077,7 +7077,7 @@ function () {
|
|
|
7077
7077
|
};
|
|
7078
7078
|
}();
|
|
7079
7079
|
|
|
7080
|
-
var has$
|
|
7080
|
+
var has$3 = Object.prototype.hasOwnProperty,
|
|
7081
7081
|
undef;
|
|
7082
7082
|
/**
|
|
7083
7083
|
* Decode a URI encoded string.
|
|
@@ -7146,7 +7146,7 @@ function querystringify(obj, prefix) {
|
|
|
7146
7146
|
if ('string' !== typeof prefix) prefix = '?';
|
|
7147
7147
|
|
|
7148
7148
|
for (key in obj) {
|
|
7149
|
-
if (has$
|
|
7149
|
+
if (has$3.call(obj, key)) {
|
|
7150
7150
|
value = obj[key]; //
|
|
7151
7151
|
// Edge cases where we actually want to encode the value to an empty
|
|
7152
7152
|
// string instead of the stringified value.
|
|
@@ -8000,32 +8000,6 @@ _dispatchable(['all'], _xall$1, function all(fn, list) {
|
|
|
8000
8000
|
|
|
8001
8001
|
var all$1 = all;
|
|
8002
8002
|
|
|
8003
|
-
/**
|
|
8004
|
-
* Returns the larger of its two arguments.
|
|
8005
|
-
*
|
|
8006
|
-
* @func
|
|
8007
|
-
* @memberOf R
|
|
8008
|
-
* @since v0.1.0
|
|
8009
|
-
* @category Relation
|
|
8010
|
-
* @sig Ord a => a -> a -> a
|
|
8011
|
-
* @param {*} a
|
|
8012
|
-
* @param {*} b
|
|
8013
|
-
* @return {*}
|
|
8014
|
-
* @see R.maxBy, R.min
|
|
8015
|
-
* @example
|
|
8016
|
-
*
|
|
8017
|
-
* R.max(789, 123); //=> 789
|
|
8018
|
-
* R.max('a', 'b'); //=> 'b'
|
|
8019
|
-
*/
|
|
8020
|
-
|
|
8021
|
-
var max =
|
|
8022
|
-
/*#__PURE__*/
|
|
8023
|
-
_curry2(function max(a, b) {
|
|
8024
|
-
return b > a ? b : a;
|
|
8025
|
-
});
|
|
8026
|
-
|
|
8027
|
-
var max$1 = max;
|
|
8028
|
-
|
|
8029
8003
|
function _map(fn, functor) {
|
|
8030
8004
|
var idx = 0;
|
|
8031
8005
|
var len = functor.length;
|
|
@@ -8482,42 +8456,6 @@ _curry2(function prop(p, obj) {
|
|
|
8482
8456
|
|
|
8483
8457
|
var prop$1 = prop;
|
|
8484
8458
|
|
|
8485
|
-
/**
|
|
8486
|
-
* Returns a new list by plucking the same named property off all objects in
|
|
8487
|
-
* the list supplied.
|
|
8488
|
-
*
|
|
8489
|
-
* `pluck` will work on
|
|
8490
|
-
* any [functor](https://github.com/fantasyland/fantasy-land#functor) in
|
|
8491
|
-
* addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
|
|
8492
|
-
*
|
|
8493
|
-
* @func
|
|
8494
|
-
* @memberOf R
|
|
8495
|
-
* @since v0.1.0
|
|
8496
|
-
* @category List
|
|
8497
|
-
* @sig Functor f => k -> f {k: v} -> f v
|
|
8498
|
-
* @param {Number|String} key The key name to pluck off of each object.
|
|
8499
|
-
* @param {Array} f The array or functor to consider.
|
|
8500
|
-
* @return {Array} The list of values for the given key.
|
|
8501
|
-
* @see R.props
|
|
8502
|
-
* @example
|
|
8503
|
-
*
|
|
8504
|
-
* var getAges = R.pluck('age');
|
|
8505
|
-
* getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
|
|
8506
|
-
*
|
|
8507
|
-
* R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
|
|
8508
|
-
* R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
|
|
8509
|
-
* @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
|
|
8510
|
-
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
|
8511
|
-
*/
|
|
8512
|
-
|
|
8513
|
-
var pluck =
|
|
8514
|
-
/*#__PURE__*/
|
|
8515
|
-
_curry2(function pluck(p, list) {
|
|
8516
|
-
return map$2(prop$1(p), list);
|
|
8517
|
-
});
|
|
8518
|
-
|
|
8519
|
-
var pluck$1 = pluck;
|
|
8520
|
-
|
|
8521
8459
|
/**
|
|
8522
8460
|
* Returns a single item by iterating through the list, successively calling
|
|
8523
8461
|
* the iterator function and passing it an accumulator value and the current
|
|
@@ -8571,53 +8509,6 @@ _curry3(_reduce);
|
|
|
8571
8509
|
|
|
8572
8510
|
var reduce$1 = reduce;
|
|
8573
8511
|
|
|
8574
|
-
/**
|
|
8575
|
-
* Takes a list of predicates and returns a predicate that returns true for a
|
|
8576
|
-
* given list of arguments if every one of the provided predicates is satisfied
|
|
8577
|
-
* by those arguments.
|
|
8578
|
-
*
|
|
8579
|
-
* The function returned is a curried function whose arity matches that of the
|
|
8580
|
-
* highest-arity predicate.
|
|
8581
|
-
*
|
|
8582
|
-
* @func
|
|
8583
|
-
* @memberOf R
|
|
8584
|
-
* @since v0.9.0
|
|
8585
|
-
* @category Logic
|
|
8586
|
-
* @sig [(*... -> Boolean)] -> (*... -> Boolean)
|
|
8587
|
-
* @param {Array} predicates An array of predicates to check
|
|
8588
|
-
* @return {Function} The combined predicate
|
|
8589
|
-
* @see R.anyPass
|
|
8590
|
-
* @example
|
|
8591
|
-
*
|
|
8592
|
-
* const isQueen = R.propEq('rank', 'Q');
|
|
8593
|
-
* const isSpade = R.propEq('suit', '♠︎');
|
|
8594
|
-
* const isQueenOfSpades = R.allPass([isQueen, isSpade]);
|
|
8595
|
-
*
|
|
8596
|
-
* isQueenOfSpades({rank: 'Q', suit: '♣︎'}); //=> false
|
|
8597
|
-
* isQueenOfSpades({rank: 'Q', suit: '♠︎'}); //=> true
|
|
8598
|
-
*/
|
|
8599
|
-
|
|
8600
|
-
var allPass =
|
|
8601
|
-
/*#__PURE__*/
|
|
8602
|
-
_curry1(function allPass(preds) {
|
|
8603
|
-
return curryN$1(reduce$1(max$1, 0, pluck$1('length', preds)), function () {
|
|
8604
|
-
var idx = 0;
|
|
8605
|
-
var len = preds.length;
|
|
8606
|
-
|
|
8607
|
-
while (idx < len) {
|
|
8608
|
-
if (!preds[idx].apply(this, arguments)) {
|
|
8609
|
-
return false;
|
|
8610
|
-
}
|
|
8611
|
-
|
|
8612
|
-
idx += 1;
|
|
8613
|
-
}
|
|
8614
|
-
|
|
8615
|
-
return true;
|
|
8616
|
-
});
|
|
8617
|
-
});
|
|
8618
|
-
|
|
8619
|
-
var allPass$1 = allPass;
|
|
8620
|
-
|
|
8621
8512
|
/**
|
|
8622
8513
|
* ap applies a list of functions to a list of values.
|
|
8623
8514
|
*
|
|
@@ -10506,85 +10397,6 @@ _curry2(function forEachObjIndexed(fn, obj) {
|
|
|
10506
10397
|
|
|
10507
10398
|
var forEachObjIndexed$1 = forEachObjIndexed;
|
|
10508
10399
|
|
|
10509
|
-
/**
|
|
10510
|
-
* Returns whether or not a path exists in an object. Only the object's
|
|
10511
|
-
* own properties are checked.
|
|
10512
|
-
*
|
|
10513
|
-
* @func
|
|
10514
|
-
* @memberOf R
|
|
10515
|
-
* @since v0.26.0
|
|
10516
|
-
* @category Object
|
|
10517
|
-
* @typedefn Idx = String | Int
|
|
10518
|
-
* @sig [Idx] -> {a} -> Boolean
|
|
10519
|
-
* @param {Array} path The path to use.
|
|
10520
|
-
* @param {Object} obj The object to check the path in.
|
|
10521
|
-
* @return {Boolean} Whether the path exists.
|
|
10522
|
-
* @see R.has
|
|
10523
|
-
* @example
|
|
10524
|
-
*
|
|
10525
|
-
* R.hasPath(['a', 'b'], {a: {b: 2}}); // => true
|
|
10526
|
-
* R.hasPath(['a', 'b'], {a: {b: undefined}}); // => true
|
|
10527
|
-
* R.hasPath(['a', 'b'], {a: {c: 2}}); // => false
|
|
10528
|
-
* R.hasPath(['a', 'b'], {}); // => false
|
|
10529
|
-
*/
|
|
10530
|
-
|
|
10531
|
-
var hasPath =
|
|
10532
|
-
/*#__PURE__*/
|
|
10533
|
-
_curry2(function hasPath(_path, obj) {
|
|
10534
|
-
if (_path.length === 0) {
|
|
10535
|
-
return false;
|
|
10536
|
-
}
|
|
10537
|
-
|
|
10538
|
-
var val = obj;
|
|
10539
|
-
var idx = 0;
|
|
10540
|
-
|
|
10541
|
-
while (idx < _path.length) {
|
|
10542
|
-
if (_has(_path[idx], val)) {
|
|
10543
|
-
val = val[_path[idx]];
|
|
10544
|
-
idx += 1;
|
|
10545
|
-
} else {
|
|
10546
|
-
return false;
|
|
10547
|
-
}
|
|
10548
|
-
}
|
|
10549
|
-
|
|
10550
|
-
return true;
|
|
10551
|
-
});
|
|
10552
|
-
|
|
10553
|
-
var hasPath$1 = hasPath;
|
|
10554
|
-
|
|
10555
|
-
/**
|
|
10556
|
-
* Returns whether or not an object has an own property with the specified name
|
|
10557
|
-
*
|
|
10558
|
-
* @func
|
|
10559
|
-
* @memberOf R
|
|
10560
|
-
* @since v0.7.0
|
|
10561
|
-
* @category Object
|
|
10562
|
-
* @sig s -> {s: x} -> Boolean
|
|
10563
|
-
* @param {String} prop The name of the property to check for.
|
|
10564
|
-
* @param {Object} obj The object to query.
|
|
10565
|
-
* @return {Boolean} Whether the property exists.
|
|
10566
|
-
* @example
|
|
10567
|
-
*
|
|
10568
|
-
* const hasName = R.has('name');
|
|
10569
|
-
* hasName({name: 'alice'}); //=> true
|
|
10570
|
-
* hasName({name: 'bob'}); //=> true
|
|
10571
|
-
* hasName({}); //=> false
|
|
10572
|
-
*
|
|
10573
|
-
* const point = {x: 0, y: 0};
|
|
10574
|
-
* const pointHas = R.has(R.__, point);
|
|
10575
|
-
* pointHas('x'); //=> true
|
|
10576
|
-
* pointHas('y'); //=> true
|
|
10577
|
-
* pointHas('z'); //=> false
|
|
10578
|
-
*/
|
|
10579
|
-
|
|
10580
|
-
var has$3 =
|
|
10581
|
-
/*#__PURE__*/
|
|
10582
|
-
_curry2(function has(prop, obj) {
|
|
10583
|
-
return hasPath$1([prop], obj);
|
|
10584
|
-
});
|
|
10585
|
-
|
|
10586
|
-
var has$4 = has$3;
|
|
10587
|
-
|
|
10588
10400
|
/**
|
|
10589
10401
|
* Returns `true` if the specified value is equal, in [`R.equals`](#equals)
|
|
10590
10402
|
* terms, to at least one element of the given list; `false` otherwise.
|
|
@@ -11306,7 +11118,10 @@ function (_React$Component) {
|
|
|
11306
11118
|
return this.state.gotConfig ? React__namespace.createElement("div", {
|
|
11307
11119
|
className: "fade-in",
|
|
11308
11120
|
style: {
|
|
11309
|
-
transition: 'all 3s'
|
|
11121
|
+
transition: 'all 3s',
|
|
11122
|
+
height: '100%',
|
|
11123
|
+
display: 'flex',
|
|
11124
|
+
flexFlow: 'column'
|
|
11310
11125
|
}
|
|
11311
11126
|
}, this.props.children) : React__namespace.createElement(coreComponents.Spinner, {
|
|
11312
11127
|
className: "utilities_ops-app-frame_ConfigFetcher_ConfigFetcher--spinner"
|
|
@@ -35879,7 +35694,7 @@ var Banner = function Banner(props) {
|
|
|
35879
35694
|
return mainNotificationBar();
|
|
35880
35695
|
};
|
|
35881
35696
|
|
|
35882
|
-
var Notifications
|
|
35697
|
+
var Notifications = function Notifications(_ref) {
|
|
35883
35698
|
var notifications = _ref.notifications,
|
|
35884
35699
|
_onDismiss = _ref.onDismiss;
|
|
35885
35700
|
_ref.children;
|
|
@@ -35941,26 +35756,6 @@ var Notifications$1 = function Notifications(_ref) {
|
|
|
35941
35756
|
}) : null);
|
|
35942
35757
|
};
|
|
35943
35758
|
|
|
35944
|
-
var mandatoryKeys = ['apiKey', 'authDomain', 'databaseURL', 'projectId', 'storageBucket', 'messagingSenderId', 'appId'];
|
|
35945
|
-
function firebaseConfigValidator (firebaseConfig) {
|
|
35946
|
-
return not$1(either$1(isNil$1, isEmpty$2)(firebaseConfig)) && allPass$1(map$2(has$4)(mandatoryKeys))(firebaseConfig);
|
|
35947
|
-
}
|
|
35948
|
-
|
|
35949
|
-
var getFirebaseConfig = function getFirebaseConfig() {
|
|
35950
|
-
var appConfig = storage$1.getItem('config');
|
|
35951
|
-
return appConfig.runConfig ? appConfig.runConfig.firebaseConfig : appConfig.firebaseConfig;
|
|
35952
|
-
};
|
|
35953
|
-
function withFirebaseConfigCheck (Comp) {
|
|
35954
|
-
var firebaseConfig = getFirebaseConfig();
|
|
35955
|
-
return function (props) {
|
|
35956
|
-
return firebaseConfigValidator(firebaseConfig) ? React__default["default"].createElement(Comp, _extends({
|
|
35957
|
-
firebaseConfig: firebaseConfig
|
|
35958
|
-
}, props)) : React__default["default"].createElement("div", null, props.children);
|
|
35959
|
-
};
|
|
35960
|
-
}
|
|
35961
|
-
|
|
35962
|
-
var Notifications = withFirebaseConfigCheck(Notifications$1);
|
|
35963
|
-
|
|
35964
35759
|
var capitalizeAndReplaceUnderscores = function capitalizeAndReplaceUnderscores(role) {
|
|
35965
35760
|
return role.split('_').filter(Boolean).map(function (word) {
|
|
35966
35761
|
return word[0].toUpperCase() + word.substr(1);
|
|
@@ -43590,6 +43385,11 @@ var version$1 = "8.10.1";
|
|
|
43590
43385
|
firebase.registerVersion(name$1, version$1, 'app');
|
|
43591
43386
|
firebase.SDK_VERSION = version$1;
|
|
43592
43387
|
|
|
43388
|
+
var getFirebaseConfig = function getFirebaseConfig() {
|
|
43389
|
+
var appConfig = storage$1.getItem('config');
|
|
43390
|
+
return appConfig.runConfig ? appConfig.runConfig.firebaseConfig : appConfig.firebaseConfig;
|
|
43391
|
+
};
|
|
43392
|
+
|
|
43593
43393
|
var name="@firebase/database";var version="0.11.0";/**
|
|
43594
43394
|
* @license
|
|
43595
43395
|
* Copyright 2019 Google LLC
|
|
@@ -48333,7 +48133,7 @@ var GoHome = function GoHome(props) {
|
|
|
48333
48133
|
}, props.reason));
|
|
48334
48134
|
};
|
|
48335
48135
|
|
|
48336
|
-
var css_248z = ".utilities_ops-app-frame_AppFrame_AppFrame--AppFrame {\r\n background: var(--paleGray);\r\n background: var(--paleGray);\r\n height: 100vh;\r\n max-height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n flex-basis: 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--header {\r\n flex: 0 1 auto;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n/* Wrapper that contains the app being developed. */\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--AppContainer {\r\n
|
|
48136
|
+
var css_248z = ".utilities_ops-app-frame_AppFrame_AppFrame--AppFrame {\r\n background: var(--paleGray);\r\n background: var(--paleGray);\r\n height: 100vh;\r\n max-height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n flex-basis: 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--header {\r\n flex: 0 1 auto;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n/* Wrapper that contains the app being developed. */\r\n\r\n.utilities_ops-app-frame_AppFrame_AppFrame--AppContainer {\r\n flex: 1 1 auto;\r\n}\r\n";
|
|
48337
48137
|
styleInject(css_248z);
|
|
48338
48138
|
|
|
48339
48139
|
if (!storage$1.activeYardNumber) {
|
|
@@ -48392,9 +48192,7 @@ var AppFrame = function AppFrame(props) {
|
|
|
48392
48192
|
style: props.handleScrolling ? SCROLL : NO_SCROLL
|
|
48393
48193
|
}, React__default["default"].createElement(BreadcrumbsProvider, {
|
|
48394
48194
|
history: props.history
|
|
48395
|
-
}, React__default["default"].createElement(AuthGuard, authGuardProps, React__default["default"].createElement(ConfigFetcher, null, React__default["default"].createElement("
|
|
48396
|
-
className: "utilities_ops-app-frame_AppFrame_AppFrame--pageWrapper"
|
|
48397
|
-
}, React__default["default"].createElement("header", {
|
|
48195
|
+
}, React__default["default"].createElement(AuthGuard, authGuardProps, React__default["default"].createElement(ConfigFetcher, null, React__default["default"].createElement("header", {
|
|
48398
48196
|
className: "utilities_ops-app-frame_AppFrame_AppFrame--header"
|
|
48399
48197
|
}, React__default["default"].createElement(AppBar, {
|
|
48400
48198
|
searchBarProps: props.searchBarProps,
|
|
@@ -48408,13 +48206,13 @@ var AppFrame = function AppFrame(props) {
|
|
|
48408
48206
|
pathname: props.location.pathname,
|
|
48409
48207
|
ActionComponent: props === null || props === void 0 ? void 0 : props.ActionComponent
|
|
48410
48208
|
})), React__default["default"].createElement("div", {
|
|
48411
|
-
className: "
|
|
48209
|
+
className: ""
|
|
48412
48210
|
}, React__default["default"].createElement(Breadcrumbs, {
|
|
48413
48211
|
history: props.history,
|
|
48414
48212
|
pathname: window.location.pathname
|
|
48415
48213
|
})), React__default["default"].createElement("main", {
|
|
48416
48214
|
className: "utilities_ops-app-frame_AppFrame_AppFrame--AppContainer"
|
|
48417
|
-
}, props.children)))))
|
|
48215
|
+
}, props.children)))));
|
|
48418
48216
|
};
|
|
48419
48217
|
AppFrame.defaultProps = {
|
|
48420
48218
|
handleScrolling: true
|