@copart/ops-tool-kit 1.5.36 → 1.5.37
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 +1550 -345
- 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.5.
|
|
36
|
+
const version$3 = "1.5.37";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -545,7 +545,7 @@ function commonjsRequire () {
|
|
|
545
545
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
var reactIs_production_min = createCommonjsModule(function (module, exports) {
|
|
548
|
+
var reactIs_production_min$1 = createCommonjsModule(function (module, exports) {
|
|
549
549
|
|
|
550
550
|
Object.defineProperty(exports, "__esModule", {
|
|
551
551
|
value: !0
|
|
@@ -679,7 +679,7 @@ exports.isSuspense = function (a) {
|
|
|
679
679
|
};
|
|
680
680
|
});
|
|
681
681
|
|
|
682
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
682
|
+
var reactIs_development$1 = createCommonjsModule(function (module, exports) {
|
|
683
683
|
|
|
684
684
|
if (process.env.NODE_ENV !== "production") {
|
|
685
685
|
(function () {
|
|
@@ -918,12 +918,12 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
918
918
|
}
|
|
919
919
|
});
|
|
920
920
|
|
|
921
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
921
|
+
var reactIs$1 = createCommonjsModule(function (module) {
|
|
922
922
|
|
|
923
923
|
if (process.env.NODE_ENV === 'production') {
|
|
924
|
-
module.exports = reactIs_production_min;
|
|
924
|
+
module.exports = reactIs_production_min$1;
|
|
925
925
|
} else {
|
|
926
|
-
module.exports = reactIs_development;
|
|
926
|
+
module.exports = reactIs_development$1;
|
|
927
927
|
}
|
|
928
928
|
});
|
|
929
929
|
|
|
@@ -1029,18 +1029,18 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
1029
1029
|
* LICENSE file in the root directory of this source tree.
|
|
1030
1030
|
*/
|
|
1031
1031
|
|
|
1032
|
-
var ReactPropTypesSecret$
|
|
1033
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$
|
|
1032
|
+
var ReactPropTypesSecret$4 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1033
|
+
var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$4;
|
|
1034
1034
|
|
|
1035
|
-
var printWarning$
|
|
1035
|
+
var printWarning$5 = function () {};
|
|
1036
1036
|
|
|
1037
1037
|
if (process.env.NODE_ENV !== 'production') {
|
|
1038
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1038
|
+
var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
|
|
1039
1039
|
|
|
1040
|
-
var loggedTypeFailures = {};
|
|
1041
|
-
var has$
|
|
1040
|
+
var loggedTypeFailures$1 = {};
|
|
1041
|
+
var has$7 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1042
1042
|
|
|
1043
|
-
printWarning$
|
|
1043
|
+
printWarning$5 = function (text) {
|
|
1044
1044
|
var message = 'Warning: ' + text;
|
|
1045
1045
|
|
|
1046
1046
|
if (typeof console !== 'undefined') {
|
|
@@ -1068,10 +1068,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1068
1068
|
*/
|
|
1069
1069
|
|
|
1070
1070
|
|
|
1071
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
1071
|
+
function checkPropTypes$2(typeSpecs, values, location, componentName, getStack) {
|
|
1072
1072
|
if (process.env.NODE_ENV !== 'production') {
|
|
1073
1073
|
for (var typeSpecName in typeSpecs) {
|
|
1074
|
-
if (has$
|
|
1074
|
+
if (has$7(typeSpecs, typeSpecName)) {
|
|
1075
1075
|
var error; // Prop type validation may throw. In case they do, we don't want to
|
|
1076
1076
|
// fail the render phase where it didn't fail before. So we log it.
|
|
1077
1077
|
// After these have been cleaned up, we'll let them throw.
|
|
@@ -1085,21 +1085,21 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
1085
1085
|
throw err;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
1088
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
|
|
1089
1089
|
} catch (ex) {
|
|
1090
1090
|
error = ex;
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
if (error && !(error instanceof Error)) {
|
|
1094
|
-
printWarning$
|
|
1094
|
+
printWarning$5((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
1097
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
|
|
1098
1098
|
// Only monitor this failure once because there tends to be a lot of the
|
|
1099
1099
|
// same error.
|
|
1100
|
-
loggedTypeFailures[error.message] = true;
|
|
1100
|
+
loggedTypeFailures$1[error.message] = true;
|
|
1101
1101
|
var stack = getStack ? getStack() : '';
|
|
1102
|
-
printWarning$
|
|
1102
|
+
printWarning$5('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
@@ -1112,20 +1112,20 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
1112
1112
|
*/
|
|
1113
1113
|
|
|
1114
1114
|
|
|
1115
|
-
checkPropTypes.resetWarningCache = function () {
|
|
1115
|
+
checkPropTypes$2.resetWarningCache = function () {
|
|
1116
1116
|
if (process.env.NODE_ENV !== 'production') {
|
|
1117
|
-
loggedTypeFailures = {};
|
|
1117
|
+
loggedTypeFailures$1 = {};
|
|
1118
1118
|
}
|
|
1119
1119
|
};
|
|
1120
1120
|
|
|
1121
|
-
var checkPropTypes_1 = checkPropTypes;
|
|
1121
|
+
var checkPropTypes_1$1 = checkPropTypes$2;
|
|
1122
1122
|
|
|
1123
|
-
var has$
|
|
1123
|
+
var has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1124
1124
|
|
|
1125
|
-
var printWarning$
|
|
1125
|
+
var printWarning$4 = function () {};
|
|
1126
1126
|
|
|
1127
1127
|
if (process.env.NODE_ENV !== 'production') {
|
|
1128
|
-
printWarning$
|
|
1128
|
+
printWarning$4 = function (text) {
|
|
1129
1129
|
var message = 'Warning: ' + text;
|
|
1130
1130
|
|
|
1131
1131
|
if (typeof console !== 'undefined') {
|
|
@@ -1141,11 +1141,11 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
|
-
function emptyFunctionThatReturnsNull() {
|
|
1144
|
+
function emptyFunctionThatReturnsNull$1() {
|
|
1145
1145
|
return null;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
1148
|
+
var factoryWithTypeCheckers$1 = function (isValidElement, throwOnDirectAccess) {
|
|
1149
1149
|
/* global Symbol */
|
|
1150
1150
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
1151
1151
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
@@ -1290,7 +1290,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1290
1290
|
componentName = componentName || ANONYMOUS;
|
|
1291
1291
|
propFullName = propFullName || propName;
|
|
1292
1292
|
|
|
1293
|
-
if (secret !== ReactPropTypesSecret_1) {
|
|
1293
|
+
if (secret !== ReactPropTypesSecret_1$1) {
|
|
1294
1294
|
if (throwOnDirectAccess) {
|
|
1295
1295
|
// New behavior only for users of `prop-types` package
|
|
1296
1296
|
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
@@ -1302,7 +1302,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1302
1302
|
|
|
1303
1303
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1304
1304
|
manualPropTypeWarningCount < 3) {
|
|
1305
|
-
printWarning$
|
|
1305
|
+
printWarning$4('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
1306
1306
|
manualPropTypeCallCache[cacheKey] = true;
|
|
1307
1307
|
manualPropTypeWarningCount++;
|
|
1308
1308
|
}
|
|
@@ -1349,7 +1349,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
1351
|
function createAnyTypeChecker() {
|
|
1352
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
1352
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
1355
|
function createArrayOfTypeChecker(typeChecker) {
|
|
@@ -1366,7 +1366,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
1368
|
for (var i = 0; i < propValue.length; i++) {
|
|
1369
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
1369
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
|
|
1370
1370
|
|
|
1371
1371
|
if (error instanceof Error) {
|
|
1372
1372
|
return error;
|
|
@@ -1398,7 +1398,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1398
1398
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1399
1399
|
var propValue = props[propName];
|
|
1400
1400
|
|
|
1401
|
-
if (!reactIs.isValidElementType(propValue)) {
|
|
1401
|
+
if (!reactIs$1.isValidElementType(propValue)) {
|
|
1402
1402
|
var propType = getPropType(propValue);
|
|
1403
1403
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
1404
1404
|
}
|
|
@@ -1427,13 +1427,13 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1427
1427
|
if (!Array.isArray(expectedValues)) {
|
|
1428
1428
|
if (process.env.NODE_ENV !== 'production') {
|
|
1429
1429
|
if (arguments.length > 1) {
|
|
1430
|
-
printWarning$
|
|
1430
|
+
printWarning$4('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
1431
1431
|
} else {
|
|
1432
|
-
printWarning$
|
|
1432
|
+
printWarning$4('Invalid argument supplied to oneOf, expected an array.');
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
return emptyFunctionThatReturnsNull;
|
|
1436
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
1439
|
function validate(props, propName, componentName, location, propFullName) {
|
|
@@ -1474,8 +1474,8 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
for (var key in propValue) {
|
|
1477
|
-
if (has$
|
|
1478
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1477
|
+
if (has$6(propValue, key)) {
|
|
1478
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
1479
1479
|
|
|
1480
1480
|
if (error instanceof Error) {
|
|
1481
1481
|
return error;
|
|
@@ -1491,16 +1491,16 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1491
1491
|
|
|
1492
1492
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1493
1493
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1494
|
-
process.env.NODE_ENV !== 'production' ? printWarning$
|
|
1495
|
-
return emptyFunctionThatReturnsNull;
|
|
1494
|
+
process.env.NODE_ENV !== 'production' ? printWarning$4('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
1495
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
1498
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1499
1499
|
var checker = arrayOfTypeCheckers[i];
|
|
1500
1500
|
|
|
1501
1501
|
if (typeof checker !== 'function') {
|
|
1502
|
-
printWarning$
|
|
1503
|
-
return emptyFunctionThatReturnsNull;
|
|
1502
|
+
printWarning$4('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
1503
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
@@ -1508,7 +1508,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1508
1508
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1509
1509
|
var checker = arrayOfTypeCheckers[i];
|
|
1510
1510
|
|
|
1511
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
|
|
1511
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1) == null) {
|
|
1512
1512
|
return null;
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
@@ -1547,7 +1547,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1547
1547
|
continue;
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1550
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
1551
1551
|
|
|
1552
1552
|
if (error) {
|
|
1553
1553
|
return error;
|
|
@@ -1580,7 +1580,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1580
1580
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1583
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
1584
1584
|
|
|
1585
1585
|
if (error) {
|
|
1586
1586
|
return error;
|
|
@@ -1742,21 +1742,21 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
1742
1742
|
return propValue.constructor.name;
|
|
1743
1743
|
}
|
|
1744
1744
|
|
|
1745
|
-
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
1746
|
-
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
1745
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
|
|
1746
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
|
|
1747
1747
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1748
1748
|
return ReactPropTypes;
|
|
1749
1749
|
};
|
|
1750
1750
|
|
|
1751
|
-
function emptyFunction$
|
|
1751
|
+
function emptyFunction$2() {}
|
|
1752
1752
|
|
|
1753
|
-
function emptyFunctionWithReset() {}
|
|
1753
|
+
function emptyFunctionWithReset$1() {}
|
|
1754
1754
|
|
|
1755
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction$
|
|
1755
|
+
emptyFunctionWithReset$1.resetWarningCache = emptyFunction$2;
|
|
1756
1756
|
|
|
1757
|
-
var factoryWithThrowingShims = function () {
|
|
1757
|
+
var factoryWithThrowingShims$1 = function () {
|
|
1758
1758
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1759
|
-
if (secret === ReactPropTypesSecret_1) {
|
|
1759
|
+
if (secret === ReactPropTypesSecret_1$1) {
|
|
1760
1760
|
// It is still safe when called from React.
|
|
1761
1761
|
return;
|
|
1762
1762
|
}
|
|
@@ -1791,14 +1791,14 @@ var factoryWithThrowingShims = function () {
|
|
|
1791
1791
|
oneOfType: getShim,
|
|
1792
1792
|
shape: getShim,
|
|
1793
1793
|
exact: getShim,
|
|
1794
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1795
|
-
resetWarningCache: emptyFunction$
|
|
1794
|
+
checkPropTypes: emptyFunctionWithReset$1,
|
|
1795
|
+
resetWarningCache: emptyFunction$2
|
|
1796
1796
|
};
|
|
1797
1797
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1798
1798
|
return ReactPropTypes;
|
|
1799
1799
|
};
|
|
1800
1800
|
|
|
1801
|
-
var propTypes = createCommonjsModule(function (module) {
|
|
1801
|
+
var propTypes$1 = createCommonjsModule(function (module) {
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1804
1804
|
*
|
|
@@ -1806,16 +1806,16 @@ var propTypes = createCommonjsModule(function (module) {
|
|
|
1806
1806
|
* LICENSE file in the root directory of this source tree.
|
|
1807
1807
|
*/
|
|
1808
1808
|
if (process.env.NODE_ENV !== 'production') {
|
|
1809
|
-
var ReactIs = reactIs; // By explicitly using `prop-types` you are opting into new development behavior.
|
|
1809
|
+
var ReactIs = reactIs$1; // By explicitly using `prop-types` you are opting into new development behavior.
|
|
1810
1810
|
// http://fb.me/prop-types-in-prod
|
|
1811
1811
|
|
|
1812
1812
|
|
|
1813
1813
|
var throwOnDirectAccess = true;
|
|
1814
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1814
|
+
module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
|
|
1815
1815
|
} else {
|
|
1816
1816
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1817
1817
|
// http://fb.me/prop-types-in-prod
|
|
1818
|
-
module.exports = factoryWithThrowingShims();
|
|
1818
|
+
module.exports = factoryWithThrowingShims$1();
|
|
1819
1819
|
}
|
|
1820
1820
|
});
|
|
1821
1821
|
|
|
@@ -1846,22 +1846,22 @@ function makeEmptyFunction(arg) {
|
|
|
1846
1846
|
*/
|
|
1847
1847
|
|
|
1848
1848
|
|
|
1849
|
-
var emptyFunction = function emptyFunction() {};
|
|
1849
|
+
var emptyFunction$1 = function emptyFunction() {};
|
|
1850
1850
|
|
|
1851
|
-
emptyFunction.thatReturns = makeEmptyFunction;
|
|
1852
|
-
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
1853
|
-
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
1854
|
-
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
1851
|
+
emptyFunction$1.thatReturns = makeEmptyFunction;
|
|
1852
|
+
emptyFunction$1.thatReturnsFalse = makeEmptyFunction(false);
|
|
1853
|
+
emptyFunction$1.thatReturnsTrue = makeEmptyFunction(true);
|
|
1854
|
+
emptyFunction$1.thatReturnsNull = makeEmptyFunction(null);
|
|
1855
1855
|
|
|
1856
|
-
emptyFunction.thatReturnsThis = function () {
|
|
1856
|
+
emptyFunction$1.thatReturnsThis = function () {
|
|
1857
1857
|
return this;
|
|
1858
1858
|
};
|
|
1859
1859
|
|
|
1860
|
-
emptyFunction.thatReturnsArgument = function (arg) {
|
|
1860
|
+
emptyFunction$1.thatReturnsArgument = function (arg) {
|
|
1861
1861
|
return arg;
|
|
1862
1862
|
};
|
|
1863
1863
|
|
|
1864
|
-
var emptyFunction_1 = emptyFunction;
|
|
1864
|
+
var emptyFunction_1 = emptyFunction$1;
|
|
1865
1865
|
|
|
1866
1866
|
/**
|
|
1867
1867
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -1874,7 +1874,7 @@ var emptyFunction_1 = emptyFunction;
|
|
|
1874
1874
|
var warning$1 = emptyFunction_1;
|
|
1875
1875
|
|
|
1876
1876
|
if (process.env.NODE_ENV !== 'production') {
|
|
1877
|
-
var printWarning$
|
|
1877
|
+
var printWarning$3 = function printWarning(format) {
|
|
1878
1878
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1879
1879
|
args[_key - 1] = arguments[_key];
|
|
1880
1880
|
}
|
|
@@ -1910,7 +1910,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1910
1910
|
args[_key2 - 2] = arguments[_key2];
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
|
-
printWarning$
|
|
1913
|
+
printWarning$3.apply(undefined, [format].concat(args));
|
|
1914
1914
|
}
|
|
1915
1915
|
};
|
|
1916
1916
|
}
|
|
@@ -1927,7 +1927,7 @@ _interopRequireDefault(React__default["default"]);
|
|
|
1927
1927
|
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
|
-
var _propTypes2 = _interopRequireDefault(propTypes);
|
|
1930
|
+
var _propTypes2 = _interopRequireDefault(propTypes$1);
|
|
1931
1931
|
|
|
1932
1932
|
|
|
1933
1933
|
|
|
@@ -3919,32 +3919,32 @@ var runtime = createCommonjsModule(function (module) {
|
|
|
3919
3919
|
|
|
3920
3920
|
// This method of obtaining a reference to the global object needs to be
|
|
3921
3921
|
// kept identical to the way it is obtained in runtime.js
|
|
3922
|
-
var g = (function() {
|
|
3922
|
+
var g$1 = (function() {
|
|
3923
3923
|
return this || (typeof self === "object" && self);
|
|
3924
3924
|
})() || Function("return this")();
|
|
3925
3925
|
|
|
3926
3926
|
// Use `getOwnPropertyNames` because not all browsers support calling
|
|
3927
3927
|
// `hasOwnProperty` on the global `self` object in a worker. See #183.
|
|
3928
|
-
var hadRuntime = g.regeneratorRuntime &&
|
|
3929
|
-
Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
|
3928
|
+
var hadRuntime = g$1.regeneratorRuntime &&
|
|
3929
|
+
Object.getOwnPropertyNames(g$1).indexOf("regeneratorRuntime") >= 0;
|
|
3930
3930
|
|
|
3931
3931
|
// Save the old regeneratorRuntime in case it needs to be restored later.
|
|
3932
|
-
var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
|
3932
|
+
var oldRuntime = hadRuntime && g$1.regeneratorRuntime;
|
|
3933
3933
|
|
|
3934
3934
|
// Force reevalutation of runtime.js.
|
|
3935
|
-
g.regeneratorRuntime = undefined;
|
|
3935
|
+
g$1.regeneratorRuntime = undefined;
|
|
3936
3936
|
|
|
3937
3937
|
var runtimeModule = runtime;
|
|
3938
3938
|
|
|
3939
3939
|
if (hadRuntime) {
|
|
3940
3940
|
// Restore the original runtime.
|
|
3941
|
-
g.regeneratorRuntime = oldRuntime;
|
|
3941
|
+
g$1.regeneratorRuntime = oldRuntime;
|
|
3942
3942
|
} else {
|
|
3943
3943
|
// Remove the global property added by runtime.js.
|
|
3944
3944
|
try {
|
|
3945
|
-
delete g.regeneratorRuntime;
|
|
3945
|
+
delete g$1.regeneratorRuntime;
|
|
3946
3946
|
} catch(e) {
|
|
3947
|
-
g.regeneratorRuntime = undefined;
|
|
3947
|
+
g$1.regeneratorRuntime = undefined;
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
3950
|
|
|
@@ -7010,7 +7010,7 @@ function () {
|
|
|
7010
7010
|
};
|
|
7011
7011
|
}();
|
|
7012
7012
|
|
|
7013
|
-
var has$
|
|
7013
|
+
var has$5 = Object.prototype.hasOwnProperty,
|
|
7014
7014
|
undef;
|
|
7015
7015
|
/**
|
|
7016
7016
|
* Decode a URI encoded string.
|
|
@@ -7079,7 +7079,7 @@ function querystringify(obj, prefix) {
|
|
|
7079
7079
|
if ('string' !== typeof prefix) prefix = '?';
|
|
7080
7080
|
|
|
7081
7081
|
for (key in obj) {
|
|
7082
|
-
if (has$
|
|
7082
|
+
if (has$5.call(obj, key)) {
|
|
7083
7083
|
value = obj[key]; //
|
|
7084
7084
|
// Edge cases where we actually want to encode the value to an empty
|
|
7085
7085
|
// string instead of the stringified value.
|
|
@@ -10552,13 +10552,13 @@ var hasPath$1 = hasPath;
|
|
|
10552
10552
|
* pointHas('z'); //=> false
|
|
10553
10553
|
*/
|
|
10554
10554
|
|
|
10555
|
-
var has =
|
|
10555
|
+
var has$3 =
|
|
10556
10556
|
/*#__PURE__*/
|
|
10557
10557
|
_curry2(function has(prop, obj) {
|
|
10558
10558
|
return hasPath$1([prop], obj);
|
|
10559
10559
|
});
|
|
10560
10560
|
|
|
10561
|
-
var has$
|
|
10561
|
+
var has$4 = has$3;
|
|
10562
10562
|
|
|
10563
10563
|
/**
|
|
10564
10564
|
* Returns `true` if the specified value is equal, in [`R.equals`](#equals)
|
|
@@ -11289,7 +11289,7 @@ function _inherits$1(subClass, superClass) {
|
|
|
11289
11289
|
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
11290
11290
|
}
|
|
11291
11291
|
|
|
11292
|
-
var Portal$
|
|
11292
|
+
var Portal$4 = function (_React$Component) {
|
|
11293
11293
|
_inherits$1(Portal, _React$Component);
|
|
11294
11294
|
|
|
11295
11295
|
function Portal() {
|
|
@@ -11326,11 +11326,11 @@ var Portal$3 = function (_React$Component) {
|
|
|
11326
11326
|
return Portal;
|
|
11327
11327
|
}(React__default["default"].Component);
|
|
11328
11328
|
|
|
11329
|
-
Portal$
|
|
11330
|
-
children: propTypes.node.isRequired,
|
|
11331
|
-
node: propTypes.any
|
|
11329
|
+
Portal$4.propTypes = {
|
|
11330
|
+
children: propTypes$1.node.isRequired,
|
|
11331
|
+
node: propTypes$1.any
|
|
11332
11332
|
};
|
|
11333
|
-
var Portalv4 = Portal$
|
|
11333
|
+
var Portalv4 = Portal$4;
|
|
11334
11334
|
|
|
11335
11335
|
var _createClass = function () {
|
|
11336
11336
|
function defineProperties(target, props) {
|
|
@@ -11380,7 +11380,7 @@ function _inherits(subClass, superClass) {
|
|
|
11380
11380
|
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
11381
11381
|
} // This file is a fallback for a consumer who is not yet on React 16
|
|
11382
11382
|
|
|
11383
|
-
var Portal$
|
|
11383
|
+
var Portal$3 = function (_React$Component) {
|
|
11384
11384
|
_inherits(Portal, _React$Component);
|
|
11385
11385
|
|
|
11386
11386
|
function Portal() {
|
|
@@ -11437,21 +11437,21 @@ var Portal$2 = function (_React$Component) {
|
|
|
11437
11437
|
return Portal;
|
|
11438
11438
|
}(React__default["default"].Component);
|
|
11439
11439
|
|
|
11440
|
-
var LegacyPortal = Portal$
|
|
11441
|
-
Portal$
|
|
11442
|
-
children: propTypes.node.isRequired,
|
|
11443
|
-
node: propTypes.any
|
|
11440
|
+
var LegacyPortal = Portal$3;
|
|
11441
|
+
Portal$3.propTypes = {
|
|
11442
|
+
children: propTypes$1.node.isRequired,
|
|
11443
|
+
node: propTypes$1.any
|
|
11444
11444
|
};
|
|
11445
11445
|
|
|
11446
|
-
var Portal = void 0;
|
|
11446
|
+
var Portal$1 = void 0;
|
|
11447
11447
|
|
|
11448
11448
|
if (ReactDOM__default["default"].createPortal) {
|
|
11449
|
-
Portal = Portalv4;
|
|
11449
|
+
Portal$1 = Portalv4;
|
|
11450
11450
|
} else {
|
|
11451
|
-
Portal = LegacyPortal;
|
|
11451
|
+
Portal$1 = LegacyPortal;
|
|
11452
11452
|
}
|
|
11453
11453
|
|
|
11454
|
-
var Portal$
|
|
11454
|
+
var Portal$2 = Portal$1;
|
|
11455
11455
|
|
|
11456
11456
|
var getClassName = createCommonjsModule(function (module, exports) {
|
|
11457
11457
|
|
|
@@ -25729,295 +25729,394 @@ var IconComponent = function IconComponent(_ref) {
|
|
|
25729
25729
|
}, fieldDisplay)));
|
|
25730
25730
|
};
|
|
25731
25731
|
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
Object.defineProperty(exports, "__esModule", {
|
|
25735
|
-
value: true
|
|
25736
|
-
});
|
|
25737
|
-
exports.default = findTabbableDescendants;
|
|
25738
|
-
/*!
|
|
25739
|
-
* Adapted from jQuery UI core
|
|
25740
|
-
*
|
|
25741
|
-
* http://jqueryui.com
|
|
25732
|
+
/** @license React v16.13.1
|
|
25733
|
+
* react-is.production.min.js
|
|
25742
25734
|
*
|
|
25743
|
-
* Copyright
|
|
25744
|
-
* Released under the MIT license.
|
|
25745
|
-
* http://jquery.org/license
|
|
25735
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25746
25736
|
*
|
|
25747
|
-
*
|
|
25737
|
+
* This source code is licensed under the MIT license found in the
|
|
25738
|
+
* LICENSE file in the root directory of this source tree.
|
|
25748
25739
|
*/
|
|
25749
25740
|
|
|
25750
|
-
var
|
|
25741
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
25742
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
25743
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
25744
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25745
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
25746
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
25747
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
25748
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
25749
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
25750
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
25751
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
25752
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
25753
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
25754
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
25755
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
25756
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
25757
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
25758
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
25759
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
25751
25760
|
|
|
25752
|
-
function
|
|
25753
|
-
|
|
25761
|
+
function z(a) {
|
|
25762
|
+
if ("object" === typeof a && null !== a) {
|
|
25763
|
+
var u = a.$$typeof;
|
|
25754
25764
|
|
|
25755
|
-
|
|
25765
|
+
switch (u) {
|
|
25766
|
+
case c:
|
|
25767
|
+
switch (a = a.type, a) {
|
|
25768
|
+
case l:
|
|
25769
|
+
case m:
|
|
25770
|
+
case e:
|
|
25771
|
+
case g:
|
|
25772
|
+
case f:
|
|
25773
|
+
case p:
|
|
25774
|
+
return a;
|
|
25756
25775
|
|
|
25757
|
-
|
|
25758
|
-
|
|
25759
|
-
|
|
25760
|
-
|
|
25776
|
+
default:
|
|
25777
|
+
switch (a = a && a.$$typeof, a) {
|
|
25778
|
+
case k:
|
|
25779
|
+
case n:
|
|
25780
|
+
case t:
|
|
25781
|
+
case r:
|
|
25782
|
+
case h:
|
|
25783
|
+
return a;
|
|
25761
25784
|
|
|
25762
|
-
|
|
25763
|
-
|
|
25785
|
+
default:
|
|
25786
|
+
return u;
|
|
25787
|
+
}
|
|
25764
25788
|
|
|
25765
|
-
|
|
25766
|
-
if (parentElement === document.body) break;
|
|
25767
|
-
if (hidesContents(parentElement)) return false;
|
|
25768
|
-
parentElement = parentElement.parentNode;
|
|
25769
|
-
}
|
|
25789
|
+
}
|
|
25770
25790
|
|
|
25771
|
-
|
|
25791
|
+
case d:
|
|
25792
|
+
return u;
|
|
25793
|
+
}
|
|
25794
|
+
}
|
|
25772
25795
|
}
|
|
25773
25796
|
|
|
25774
|
-
function
|
|
25775
|
-
|
|
25776
|
-
var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === "a" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);
|
|
25777
|
-
return res && visible(element);
|
|
25797
|
+
function A(a) {
|
|
25798
|
+
return z(a) === m;
|
|
25778
25799
|
}
|
|
25779
25800
|
|
|
25780
|
-
|
|
25781
|
-
|
|
25782
|
-
|
|
25783
|
-
|
|
25784
|
-
|
|
25785
|
-
|
|
25801
|
+
var AsyncMode = l;
|
|
25802
|
+
var ConcurrentMode = m;
|
|
25803
|
+
var ContextConsumer = k;
|
|
25804
|
+
var ContextProvider = h;
|
|
25805
|
+
var Element$1 = c;
|
|
25806
|
+
var ForwardRef = n;
|
|
25807
|
+
var Fragment = e;
|
|
25808
|
+
var Lazy = t;
|
|
25809
|
+
var Memo = r;
|
|
25810
|
+
var Portal = d;
|
|
25811
|
+
var Profiler = g;
|
|
25812
|
+
var StrictMode = f;
|
|
25813
|
+
var Suspense = p;
|
|
25786
25814
|
|
|
25787
|
-
function
|
|
25788
|
-
return
|
|
25789
|
-
}
|
|
25815
|
+
var isAsyncMode = function (a) {
|
|
25816
|
+
return A(a) || z(a) === l;
|
|
25817
|
+
};
|
|
25790
25818
|
|
|
25791
|
-
|
|
25792
|
-
});
|
|
25819
|
+
var isConcurrentMode = A;
|
|
25793
25820
|
|
|
25794
|
-
var
|
|
25821
|
+
var isContextConsumer = function (a) {
|
|
25822
|
+
return z(a) === k;
|
|
25823
|
+
};
|
|
25795
25824
|
|
|
25796
|
-
|
|
25797
|
-
|
|
25798
|
-
}
|
|
25799
|
-
exports.handleBlur = handleBlur;
|
|
25800
|
-
exports.handleFocus = handleFocus;
|
|
25801
|
-
exports.markForFocusLater = markForFocusLater;
|
|
25802
|
-
exports.returnFocus = returnFocus;
|
|
25803
|
-
exports.popWithoutFocus = popWithoutFocus;
|
|
25804
|
-
exports.setupScopedFocus = setupScopedFocus;
|
|
25805
|
-
exports.teardownScopedFocus = teardownScopedFocus;
|
|
25825
|
+
var isContextProvider = function (a) {
|
|
25826
|
+
return z(a) === h;
|
|
25827
|
+
};
|
|
25806
25828
|
|
|
25829
|
+
var isElement = function (a) {
|
|
25830
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25831
|
+
};
|
|
25807
25832
|
|
|
25833
|
+
var isForwardRef = function (a) {
|
|
25834
|
+
return z(a) === n;
|
|
25835
|
+
};
|
|
25808
25836
|
|
|
25809
|
-
var
|
|
25837
|
+
var isFragment = function (a) {
|
|
25838
|
+
return z(a) === e;
|
|
25839
|
+
};
|
|
25810
25840
|
|
|
25811
|
-
function
|
|
25812
|
-
return
|
|
25813
|
-
|
|
25814
|
-
};
|
|
25815
|
-
}
|
|
25841
|
+
var isLazy = function (a) {
|
|
25842
|
+
return z(a) === t;
|
|
25843
|
+
};
|
|
25816
25844
|
|
|
25817
|
-
var
|
|
25818
|
-
|
|
25819
|
-
|
|
25845
|
+
var isMemo = function (a) {
|
|
25846
|
+
return z(a) === r;
|
|
25847
|
+
};
|
|
25820
25848
|
|
|
25821
|
-
function
|
|
25822
|
-
|
|
25823
|
-
}
|
|
25849
|
+
var isPortal = function (a) {
|
|
25850
|
+
return z(a) === d;
|
|
25851
|
+
};
|
|
25824
25852
|
|
|
25825
|
-
function
|
|
25826
|
-
|
|
25827
|
-
|
|
25853
|
+
var isProfiler = function (a) {
|
|
25854
|
+
return z(a) === g;
|
|
25855
|
+
};
|
|
25828
25856
|
|
|
25829
|
-
|
|
25830
|
-
|
|
25831
|
-
|
|
25832
|
-
// setTimeout, firefox doesn't support focusin, if it did, we could focus
|
|
25833
|
-
// the element outside of a setTimeout. Side-effect of this implementation
|
|
25834
|
-
// is that the document.body gets focus, and then we focus our element right
|
|
25835
|
-
// after, seems fine.
|
|
25857
|
+
var isStrictMode = function (a) {
|
|
25858
|
+
return z(a) === f;
|
|
25859
|
+
};
|
|
25836
25860
|
|
|
25861
|
+
var isSuspense = function (a) {
|
|
25862
|
+
return z(a) === p;
|
|
25863
|
+
};
|
|
25837
25864
|
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
}
|
|
25865
|
+
var isValidElementType = function (a) {
|
|
25866
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
25867
|
+
};
|
|
25842
25868
|
|
|
25843
|
-
|
|
25844
|
-
el.focus();
|
|
25845
|
-
}, 0);
|
|
25846
|
-
}
|
|
25847
|
-
}
|
|
25869
|
+
var typeOf = z;
|
|
25848
25870
|
|
|
25849
|
-
|
|
25850
|
-
|
|
25851
|
-
|
|
25852
|
-
|
|
25871
|
+
var reactIs_production_min = {
|
|
25872
|
+
AsyncMode: AsyncMode,
|
|
25873
|
+
ConcurrentMode: ConcurrentMode,
|
|
25874
|
+
ContextConsumer: ContextConsumer,
|
|
25875
|
+
ContextProvider: ContextProvider,
|
|
25876
|
+
Element: Element$1,
|
|
25877
|
+
ForwardRef: ForwardRef,
|
|
25878
|
+
Fragment: Fragment,
|
|
25879
|
+
Lazy: Lazy,
|
|
25880
|
+
Memo: Memo,
|
|
25881
|
+
Portal: Portal,
|
|
25882
|
+
Profiler: Profiler,
|
|
25883
|
+
StrictMode: StrictMode,
|
|
25884
|
+
Suspense: Suspense,
|
|
25885
|
+
isAsyncMode: isAsyncMode,
|
|
25886
|
+
isConcurrentMode: isConcurrentMode,
|
|
25887
|
+
isContextConsumer: isContextConsumer,
|
|
25888
|
+
isContextProvider: isContextProvider,
|
|
25889
|
+
isElement: isElement,
|
|
25890
|
+
isForwardRef: isForwardRef,
|
|
25891
|
+
isFragment: isFragment,
|
|
25892
|
+
isLazy: isLazy,
|
|
25893
|
+
isMemo: isMemo,
|
|
25894
|
+
isPortal: isPortal,
|
|
25895
|
+
isProfiler: isProfiler,
|
|
25896
|
+
isStrictMode: isStrictMode,
|
|
25897
|
+
isSuspense: isSuspense,
|
|
25898
|
+
isValidElementType: isValidElementType,
|
|
25899
|
+
typeOf: typeOf
|
|
25900
|
+
};
|
|
25853
25901
|
|
|
25902
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25854
25903
|
|
|
25855
|
-
|
|
25856
|
-
|
|
25904
|
+
if (process.env.NODE_ENV !== "production") {
|
|
25905
|
+
(function () {
|
|
25906
|
+
// nor polyfill, then a plain number is used for performance.
|
|
25857
25907
|
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
|
|
25861
|
-
|
|
25862
|
-
|
|
25908
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25909
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25910
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25911
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25912
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25913
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25914
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25915
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
25916
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
25863
25917
|
|
|
25864
|
-
|
|
25865
|
-
|
|
25866
|
-
|
|
25867
|
-
|
|
25868
|
-
|
|
25869
|
-
|
|
25918
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25919
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25920
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25921
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25922
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25923
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25924
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25925
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25926
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25927
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25928
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25870
25929
|
|
|
25930
|
+
function isValidElementType(type) {
|
|
25931
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
25932
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
25933
|
+
}
|
|
25871
25934
|
|
|
25872
|
-
function
|
|
25873
|
-
|
|
25874
|
-
|
|
25935
|
+
function typeOf(object) {
|
|
25936
|
+
if (typeof object === 'object' && object !== null) {
|
|
25937
|
+
var $$typeof = object.$$typeof;
|
|
25875
25938
|
|
|
25876
|
-
|
|
25877
|
-
|
|
25939
|
+
switch ($$typeof) {
|
|
25940
|
+
case REACT_ELEMENT_TYPE:
|
|
25941
|
+
var type = object.type;
|
|
25878
25942
|
|
|
25879
|
-
|
|
25880
|
-
|
|
25881
|
-
|
|
25882
|
-
|
|
25883
|
-
|
|
25884
|
-
|
|
25885
|
-
|
|
25886
|
-
|
|
25943
|
+
switch (type) {
|
|
25944
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
25945
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
25946
|
+
case REACT_FRAGMENT_TYPE:
|
|
25947
|
+
case REACT_PROFILER_TYPE:
|
|
25948
|
+
case REACT_STRICT_MODE_TYPE:
|
|
25949
|
+
case REACT_SUSPENSE_TYPE:
|
|
25950
|
+
return type;
|
|
25887
25951
|
|
|
25888
|
-
|
|
25889
|
-
|
|
25952
|
+
default:
|
|
25953
|
+
var $$typeofType = type && type.$$typeof;
|
|
25890
25954
|
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
}
|
|
25899
|
-
});
|
|
25955
|
+
switch ($$typeofType) {
|
|
25956
|
+
case REACT_CONTEXT_TYPE:
|
|
25957
|
+
case REACT_FORWARD_REF_TYPE:
|
|
25958
|
+
case REACT_LAZY_TYPE:
|
|
25959
|
+
case REACT_MEMO_TYPE:
|
|
25960
|
+
case REACT_PROVIDER_TYPE:
|
|
25961
|
+
return $$typeofType;
|
|
25900
25962
|
|
|
25901
|
-
|
|
25963
|
+
default:
|
|
25964
|
+
return $$typeof;
|
|
25965
|
+
}
|
|
25902
25966
|
|
|
25903
|
-
|
|
25904
|
-
value: true
|
|
25905
|
-
});
|
|
25906
|
-
exports.default = scopeTab;
|
|
25967
|
+
}
|
|
25907
25968
|
|
|
25969
|
+
case REACT_PORTAL_TYPE:
|
|
25970
|
+
return $$typeof;
|
|
25971
|
+
}
|
|
25972
|
+
}
|
|
25908
25973
|
|
|
25974
|
+
return undefined;
|
|
25975
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
25909
25976
|
|
|
25910
|
-
var _tabbable2 = _interopRequireDefault(tabbable_1);
|
|
25911
25977
|
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25978
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25979
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25980
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25981
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25982
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
25983
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25984
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25985
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
25986
|
+
var Memo = REACT_MEMO_TYPE;
|
|
25987
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
25988
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
25989
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25990
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25991
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
25917
25992
|
|
|
25918
|
-
function
|
|
25919
|
-
|
|
25993
|
+
function isAsyncMode(object) {
|
|
25994
|
+
{
|
|
25995
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25996
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
25920
25997
|
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25998
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
25999
|
+
}
|
|
26000
|
+
}
|
|
26001
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
26002
|
+
}
|
|
25926
26003
|
|
|
25927
|
-
|
|
25928
|
-
|
|
25929
|
-
|
|
25930
|
-
var tail = tabbable[tabbable.length - 1]; // proceed with default browser behavior on tab.
|
|
25931
|
-
// Focus on last element on shift + tab.
|
|
26004
|
+
function isConcurrentMode(object) {
|
|
26005
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
26006
|
+
}
|
|
25932
26007
|
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
25936
|
-
}
|
|
26008
|
+
function isContextConsumer(object) {
|
|
26009
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
26010
|
+
}
|
|
25937
26011
|
|
|
25938
|
-
|
|
25939
|
-
|
|
25940
|
-
|
|
26012
|
+
function isContextProvider(object) {
|
|
26013
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
26014
|
+
}
|
|
25941
26015
|
|
|
25942
|
-
|
|
25943
|
-
|
|
25944
|
-
|
|
26016
|
+
function isElement(object) {
|
|
26017
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
26018
|
+
}
|
|
25945
26019
|
|
|
25946
|
-
|
|
25947
|
-
|
|
25948
|
-
|
|
25949
|
-
return;
|
|
25950
|
-
} // Safari radio issue.
|
|
25951
|
-
//
|
|
25952
|
-
// Safari does not move the focus to the radio button,
|
|
25953
|
-
// so we need to force it to really walk through all elements.
|
|
25954
|
-
//
|
|
25955
|
-
// This is very error prone, since we are trying to guess
|
|
25956
|
-
// if it is a safari browser from the first occurence between
|
|
25957
|
-
// chrome or safari.
|
|
25958
|
-
//
|
|
25959
|
-
// The chrome user agent contains the first ocurrence
|
|
25960
|
-
// as the 'chrome/version' and later the 'safari/version'.
|
|
26020
|
+
function isForwardRef(object) {
|
|
26021
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
26022
|
+
}
|
|
25961
26023
|
|
|
26024
|
+
function isFragment(object) {
|
|
26025
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
26026
|
+
}
|
|
25962
26027
|
|
|
25963
|
-
|
|
25964
|
-
|
|
25965
|
-
|
|
26028
|
+
function isLazy(object) {
|
|
26029
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
26030
|
+
}
|
|
25966
26031
|
|
|
25967
|
-
|
|
25968
|
-
|
|
26032
|
+
function isMemo(object) {
|
|
26033
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
26034
|
+
}
|
|
25969
26035
|
|
|
25970
|
-
|
|
25971
|
-
|
|
25972
|
-
|
|
26036
|
+
function isPortal(object) {
|
|
26037
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
26038
|
+
}
|
|
25973
26039
|
|
|
25974
|
-
|
|
25975
|
-
|
|
26040
|
+
function isProfiler(object) {
|
|
26041
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
26042
|
+
}
|
|
25976
26043
|
|
|
25977
|
-
|
|
25978
|
-
|
|
25979
|
-
|
|
25980
|
-
target.focus();
|
|
25981
|
-
return;
|
|
25982
|
-
}
|
|
26044
|
+
function isStrictMode(object) {
|
|
26045
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
26046
|
+
}
|
|
25983
26047
|
|
|
25984
|
-
|
|
25985
|
-
|
|
26048
|
+
function isSuspense(object) {
|
|
26049
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
26050
|
+
}
|
|
26051
|
+
|
|
26052
|
+
exports.AsyncMode = AsyncMode;
|
|
26053
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
26054
|
+
exports.ContextConsumer = ContextConsumer;
|
|
26055
|
+
exports.ContextProvider = ContextProvider;
|
|
26056
|
+
exports.Element = Element;
|
|
26057
|
+
exports.ForwardRef = ForwardRef;
|
|
26058
|
+
exports.Fragment = Fragment;
|
|
26059
|
+
exports.Lazy = Lazy;
|
|
26060
|
+
exports.Memo = Memo;
|
|
26061
|
+
exports.Portal = Portal;
|
|
26062
|
+
exports.Profiler = Profiler;
|
|
26063
|
+
exports.StrictMode = StrictMode;
|
|
26064
|
+
exports.Suspense = Suspense;
|
|
26065
|
+
exports.isAsyncMode = isAsyncMode;
|
|
26066
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
26067
|
+
exports.isContextConsumer = isContextConsumer;
|
|
26068
|
+
exports.isContextProvider = isContextProvider;
|
|
26069
|
+
exports.isElement = isElement;
|
|
26070
|
+
exports.isForwardRef = isForwardRef;
|
|
26071
|
+
exports.isFragment = isFragment;
|
|
26072
|
+
exports.isLazy = isLazy;
|
|
26073
|
+
exports.isMemo = isMemo;
|
|
26074
|
+
exports.isPortal = isPortal;
|
|
26075
|
+
exports.isProfiler = isProfiler;
|
|
26076
|
+
exports.isStrictMode = isStrictMode;
|
|
26077
|
+
exports.isSuspense = isSuspense;
|
|
26078
|
+
exports.isValidElementType = isValidElementType;
|
|
26079
|
+
exports.typeOf = typeOf;
|
|
26080
|
+
})();
|
|
25986
26081
|
}
|
|
26082
|
+
});
|
|
25987
26083
|
|
|
25988
|
-
|
|
26084
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
26085
|
+
|
|
26086
|
+
if (process.env.NODE_ENV === 'production') {
|
|
26087
|
+
module.exports = reactIs_production_min;
|
|
26088
|
+
} else {
|
|
26089
|
+
module.exports = reactIs_development;
|
|
26090
|
+
}
|
|
25989
26091
|
});
|
|
25990
26092
|
|
|
25991
26093
|
/**
|
|
25992
|
-
* Copyright (c)
|
|
26094
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
25993
26095
|
*
|
|
25994
26096
|
* This source code is licensed under the MIT license found in the
|
|
25995
26097
|
* LICENSE file in the root directory of this source tree.
|
|
25996
26098
|
*/
|
|
25997
|
-
/**
|
|
25998
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
25999
|
-
* This can be used to log issues in development environments in critical
|
|
26000
|
-
* paths. Removing the logging code for production environments will keep the
|
|
26001
|
-
* same logic and follow the same code paths.
|
|
26002
|
-
*/
|
|
26003
26099
|
|
|
26004
|
-
var
|
|
26100
|
+
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
26101
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
26005
26102
|
|
|
26006
|
-
var
|
|
26103
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
26007
26104
|
|
|
26008
|
-
|
|
26009
|
-
var printWarning = function printWarning(format, args) {
|
|
26010
|
-
var len = arguments.length;
|
|
26011
|
-
args = new Array(len > 1 ? len - 1 : 0);
|
|
26105
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
26012
26106
|
|
|
26013
|
-
|
|
26014
|
-
args[key - 1] = arguments[key];
|
|
26015
|
-
}
|
|
26107
|
+
var has$1 = has$2;
|
|
26016
26108
|
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
26109
|
+
var printWarning$2 = function () {};
|
|
26110
|
+
|
|
26111
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26112
|
+
var ReactPropTypesSecret = ReactPropTypesSecret$1;
|
|
26113
|
+
|
|
26114
|
+
var loggedTypeFailures = {};
|
|
26115
|
+
|
|
26116
|
+
var has = has$1;
|
|
26117
|
+
|
|
26118
|
+
printWarning$2 = function (text) {
|
|
26119
|
+
var message = 'Warning: ' + text;
|
|
26021
26120
|
|
|
26022
26121
|
if (typeof console !== 'undefined') {
|
|
26023
26122
|
console.error(message);
|
|
@@ -26028,38 +26127,1130 @@ if (__DEV__) {
|
|
|
26028
26127
|
// This error was thrown as a convenience so that you can use this stack
|
|
26029
26128
|
// to find the callsite that caused this warning to fire.
|
|
26030
26129
|
throw new Error(message);
|
|
26031
|
-
} catch (x) {
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
warning = function (condition, format, args) {
|
|
26035
|
-
var len = arguments.length;
|
|
26036
|
-
args = new Array(len > 2 ? len - 2 : 0);
|
|
26037
|
-
|
|
26038
|
-
for (var key = 2; key < len; key++) {
|
|
26039
|
-
args[key - 2] = arguments[key];
|
|
26040
|
-
}
|
|
26041
|
-
|
|
26042
|
-
if (format === undefined) {
|
|
26043
|
-
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
26044
|
-
}
|
|
26045
|
-
|
|
26046
|
-
if (!condition) {
|
|
26047
|
-
printWarning.apply(null, [format].concat(args));
|
|
26130
|
+
} catch (x) {
|
|
26131
|
+
/**/
|
|
26048
26132
|
}
|
|
26049
26133
|
};
|
|
26050
26134
|
}
|
|
26135
|
+
/**
|
|
26136
|
+
* Assert that the values match with the type specs.
|
|
26137
|
+
* Error messages are memorized and will only be shown once.
|
|
26138
|
+
*
|
|
26139
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
26140
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
26141
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
26142
|
+
* @param {string} componentName Name of the component for error messages.
|
|
26143
|
+
* @param {?Function} getStack Returns the component stack.
|
|
26144
|
+
* @private
|
|
26145
|
+
*/
|
|
26051
26146
|
|
|
26052
|
-
var warning_1 = warning;
|
|
26053
26147
|
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
|
|
26058
|
-
|
|
26059
|
-
|
|
26148
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
26149
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26150
|
+
for (var typeSpecName in typeSpecs) {
|
|
26151
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
26152
|
+
var error; // Prop type validation may throw. In case they do, we don't want to
|
|
26153
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
26154
|
+
// After these have been cleaned up, we'll let them throw.
|
|
26060
26155
|
|
|
26061
|
-
|
|
26062
|
-
|
|
26156
|
+
try {
|
|
26157
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
26158
|
+
// behavior as without this statement except with a better message.
|
|
26159
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
26160
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
26161
|
+
err.name = 'Invariant Violation';
|
|
26162
|
+
throw err;
|
|
26163
|
+
}
|
|
26164
|
+
|
|
26165
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
26166
|
+
} catch (ex) {
|
|
26167
|
+
error = ex;
|
|
26168
|
+
}
|
|
26169
|
+
|
|
26170
|
+
if (error && !(error instanceof Error)) {
|
|
26171
|
+
printWarning$2((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
26172
|
+
}
|
|
26173
|
+
|
|
26174
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
26175
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
26176
|
+
// same error.
|
|
26177
|
+
loggedTypeFailures[error.message] = true;
|
|
26178
|
+
var stack = getStack ? getStack() : '';
|
|
26179
|
+
printWarning$2('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
26180
|
+
}
|
|
26181
|
+
}
|
|
26182
|
+
}
|
|
26183
|
+
}
|
|
26184
|
+
}
|
|
26185
|
+
/**
|
|
26186
|
+
* Resets warning cache when testing.
|
|
26187
|
+
*
|
|
26188
|
+
* @private
|
|
26189
|
+
*/
|
|
26190
|
+
|
|
26191
|
+
|
|
26192
|
+
checkPropTypes$1.resetWarningCache = function () {
|
|
26193
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26194
|
+
loggedTypeFailures = {};
|
|
26195
|
+
}
|
|
26196
|
+
};
|
|
26197
|
+
|
|
26198
|
+
var checkPropTypes_1 = checkPropTypes$1;
|
|
26199
|
+
|
|
26200
|
+
var checkPropTypes = checkPropTypes_1;
|
|
26201
|
+
|
|
26202
|
+
var printWarning$1 = function () {};
|
|
26203
|
+
|
|
26204
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26205
|
+
printWarning$1 = function (text) {
|
|
26206
|
+
var message = 'Warning: ' + text;
|
|
26207
|
+
|
|
26208
|
+
if (typeof console !== 'undefined') {
|
|
26209
|
+
console.error(message);
|
|
26210
|
+
}
|
|
26211
|
+
|
|
26212
|
+
try {
|
|
26213
|
+
// --- Welcome to debugging React ---
|
|
26214
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
26215
|
+
// to find the callsite that caused this warning to fire.
|
|
26216
|
+
throw new Error(message);
|
|
26217
|
+
} catch (x) {}
|
|
26218
|
+
};
|
|
26219
|
+
}
|
|
26220
|
+
|
|
26221
|
+
function emptyFunctionThatReturnsNull() {
|
|
26222
|
+
return null;
|
|
26223
|
+
}
|
|
26224
|
+
|
|
26225
|
+
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
26226
|
+
/* global Symbol */
|
|
26227
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
26228
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
26229
|
+
|
|
26230
|
+
/**
|
|
26231
|
+
* Returns the iterator method function contained on the iterable object.
|
|
26232
|
+
*
|
|
26233
|
+
* Be sure to invoke the function with the iterable as context:
|
|
26234
|
+
*
|
|
26235
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
26236
|
+
* if (iteratorFn) {
|
|
26237
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
26238
|
+
* ...
|
|
26239
|
+
* }
|
|
26240
|
+
*
|
|
26241
|
+
* @param {?object} maybeIterable
|
|
26242
|
+
* @return {?function}
|
|
26243
|
+
*/
|
|
26244
|
+
|
|
26245
|
+
function getIteratorFn(maybeIterable) {
|
|
26246
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
26247
|
+
|
|
26248
|
+
if (typeof iteratorFn === 'function') {
|
|
26249
|
+
return iteratorFn;
|
|
26250
|
+
}
|
|
26251
|
+
}
|
|
26252
|
+
/**
|
|
26253
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
26254
|
+
* supplied to React components. Example usage:
|
|
26255
|
+
*
|
|
26256
|
+
* var Props = require('ReactPropTypes');
|
|
26257
|
+
* var MyArticle = React.createClass({
|
|
26258
|
+
* propTypes: {
|
|
26259
|
+
* // An optional string prop named "description".
|
|
26260
|
+
* description: Props.string,
|
|
26261
|
+
*
|
|
26262
|
+
* // A required enum prop named "category".
|
|
26263
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
26264
|
+
*
|
|
26265
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
26266
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
26267
|
+
* },
|
|
26268
|
+
* render: function() { ... }
|
|
26269
|
+
* });
|
|
26270
|
+
*
|
|
26271
|
+
* A more formal specification of how these methods are used:
|
|
26272
|
+
*
|
|
26273
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
26274
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
26275
|
+
*
|
|
26276
|
+
* Each and every declaration produces a function with the same signature. This
|
|
26277
|
+
* allows the creation of custom validation functions. For example:
|
|
26278
|
+
*
|
|
26279
|
+
* var MyLink = React.createClass({
|
|
26280
|
+
* propTypes: {
|
|
26281
|
+
* // An optional string or URI prop named "href".
|
|
26282
|
+
* href: function(props, propName, componentName) {
|
|
26283
|
+
* var propValue = props[propName];
|
|
26284
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
26285
|
+
* !(propValue instanceof URI)) {
|
|
26286
|
+
* return new Error(
|
|
26287
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
26288
|
+
* componentName
|
|
26289
|
+
* );
|
|
26290
|
+
* }
|
|
26291
|
+
* }
|
|
26292
|
+
* },
|
|
26293
|
+
* render: function() {...}
|
|
26294
|
+
* });
|
|
26295
|
+
*
|
|
26296
|
+
* @internal
|
|
26297
|
+
*/
|
|
26298
|
+
|
|
26299
|
+
|
|
26300
|
+
var ANONYMOUS = '<<anonymous>>'; // Important!
|
|
26301
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
26302
|
+
|
|
26303
|
+
var ReactPropTypes = {
|
|
26304
|
+
array: createPrimitiveTypeChecker('array'),
|
|
26305
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
26306
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
26307
|
+
func: createPrimitiveTypeChecker('function'),
|
|
26308
|
+
number: createPrimitiveTypeChecker('number'),
|
|
26309
|
+
object: createPrimitiveTypeChecker('object'),
|
|
26310
|
+
string: createPrimitiveTypeChecker('string'),
|
|
26311
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
26312
|
+
any: createAnyTypeChecker(),
|
|
26313
|
+
arrayOf: createArrayOfTypeChecker,
|
|
26314
|
+
element: createElementTypeChecker(),
|
|
26315
|
+
elementType: createElementTypeTypeChecker(),
|
|
26316
|
+
instanceOf: createInstanceTypeChecker,
|
|
26317
|
+
node: createNodeChecker(),
|
|
26318
|
+
objectOf: createObjectOfTypeChecker,
|
|
26319
|
+
oneOf: createEnumTypeChecker,
|
|
26320
|
+
oneOfType: createUnionTypeChecker,
|
|
26321
|
+
shape: createShapeTypeChecker,
|
|
26322
|
+
exact: createStrictShapeTypeChecker
|
|
26323
|
+
};
|
|
26324
|
+
/**
|
|
26325
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
26326
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
26327
|
+
*/
|
|
26328
|
+
|
|
26329
|
+
/*eslint-disable no-self-compare*/
|
|
26330
|
+
|
|
26331
|
+
function is(x, y) {
|
|
26332
|
+
// SameValue algorithm
|
|
26333
|
+
if (x === y) {
|
|
26334
|
+
// Steps 1-5, 7-10
|
|
26335
|
+
// Steps 6.b-6.e: +0 != -0
|
|
26336
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
26337
|
+
} else {
|
|
26338
|
+
// Step 6.a: NaN == NaN
|
|
26339
|
+
return x !== x && y !== y;
|
|
26340
|
+
}
|
|
26341
|
+
}
|
|
26342
|
+
/*eslint-enable no-self-compare*/
|
|
26343
|
+
|
|
26344
|
+
/**
|
|
26345
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
26346
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
26347
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
26348
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
26349
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
26350
|
+
*/
|
|
26351
|
+
|
|
26352
|
+
|
|
26353
|
+
function PropTypeError(message, data) {
|
|
26354
|
+
this.message = message;
|
|
26355
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
26356
|
+
this.stack = '';
|
|
26357
|
+
} // Make `instanceof Error` still work for returned errors.
|
|
26358
|
+
|
|
26359
|
+
|
|
26360
|
+
PropTypeError.prototype = Error.prototype;
|
|
26361
|
+
|
|
26362
|
+
function createChainableTypeChecker(validate) {
|
|
26363
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26364
|
+
var manualPropTypeCallCache = {};
|
|
26365
|
+
var manualPropTypeWarningCount = 0;
|
|
26366
|
+
}
|
|
26367
|
+
|
|
26368
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
26369
|
+
componentName = componentName || ANONYMOUS;
|
|
26370
|
+
propFullName = propFullName || propName;
|
|
26371
|
+
|
|
26372
|
+
if (secret !== ReactPropTypesSecret$1) {
|
|
26373
|
+
if (throwOnDirectAccess) {
|
|
26374
|
+
// New behavior only for users of `prop-types` package
|
|
26375
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
26376
|
+
err.name = 'Invariant Violation';
|
|
26377
|
+
throw err;
|
|
26378
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
26379
|
+
// Old behavior for people using React.PropTypes
|
|
26380
|
+
var cacheKey = componentName + ':' + propName;
|
|
26381
|
+
|
|
26382
|
+
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
26383
|
+
manualPropTypeWarningCount < 3) {
|
|
26384
|
+
printWarning$1('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
26385
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
26386
|
+
manualPropTypeWarningCount++;
|
|
26387
|
+
}
|
|
26388
|
+
}
|
|
26389
|
+
}
|
|
26390
|
+
|
|
26391
|
+
if (props[propName] == null) {
|
|
26392
|
+
if (isRequired) {
|
|
26393
|
+
if (props[propName] === null) {
|
|
26394
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
26395
|
+
}
|
|
26396
|
+
|
|
26397
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
26398
|
+
}
|
|
26399
|
+
|
|
26400
|
+
return null;
|
|
26401
|
+
} else {
|
|
26402
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
26403
|
+
}
|
|
26404
|
+
}
|
|
26405
|
+
|
|
26406
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
26407
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
26408
|
+
return chainedCheckType;
|
|
26409
|
+
}
|
|
26410
|
+
|
|
26411
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
26412
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
26413
|
+
var propValue = props[propName];
|
|
26414
|
+
var propType = getPropType(propValue);
|
|
26415
|
+
|
|
26416
|
+
if (propType !== expectedType) {
|
|
26417
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
26418
|
+
// check, but we can offer a more precise error message here rather than
|
|
26419
|
+
// 'of type `object`'.
|
|
26420
|
+
var preciseType = getPreciseType(propValue);
|
|
26421
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
26422
|
+
expectedType: expectedType
|
|
26423
|
+
});
|
|
26424
|
+
}
|
|
26425
|
+
|
|
26426
|
+
return null;
|
|
26427
|
+
}
|
|
26428
|
+
|
|
26429
|
+
return createChainableTypeChecker(validate);
|
|
26430
|
+
}
|
|
26431
|
+
|
|
26432
|
+
function createAnyTypeChecker() {
|
|
26433
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
26434
|
+
}
|
|
26435
|
+
|
|
26436
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
26437
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26438
|
+
if (typeof typeChecker !== 'function') {
|
|
26439
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
26440
|
+
}
|
|
26441
|
+
|
|
26442
|
+
var propValue = props[propName];
|
|
26443
|
+
|
|
26444
|
+
if (!Array.isArray(propValue)) {
|
|
26445
|
+
var propType = getPropType(propValue);
|
|
26446
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
26447
|
+
}
|
|
26448
|
+
|
|
26449
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
26450
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
|
|
26451
|
+
|
|
26452
|
+
if (error instanceof Error) {
|
|
26453
|
+
return error;
|
|
26454
|
+
}
|
|
26455
|
+
}
|
|
26456
|
+
|
|
26457
|
+
return null;
|
|
26458
|
+
}
|
|
26459
|
+
|
|
26460
|
+
return createChainableTypeChecker(validate);
|
|
26461
|
+
}
|
|
26462
|
+
|
|
26463
|
+
function createElementTypeChecker() {
|
|
26464
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26465
|
+
var propValue = props[propName];
|
|
26466
|
+
|
|
26467
|
+
if (!isValidElement(propValue)) {
|
|
26468
|
+
var propType = getPropType(propValue);
|
|
26469
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
26470
|
+
}
|
|
26471
|
+
|
|
26472
|
+
return null;
|
|
26473
|
+
}
|
|
26474
|
+
|
|
26475
|
+
return createChainableTypeChecker(validate);
|
|
26476
|
+
}
|
|
26477
|
+
|
|
26478
|
+
function createElementTypeTypeChecker() {
|
|
26479
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26480
|
+
var propValue = props[propName];
|
|
26481
|
+
|
|
26482
|
+
if (!reactIs.isValidElementType(propValue)) {
|
|
26483
|
+
var propType = getPropType(propValue);
|
|
26484
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
26485
|
+
}
|
|
26486
|
+
|
|
26487
|
+
return null;
|
|
26488
|
+
}
|
|
26489
|
+
|
|
26490
|
+
return createChainableTypeChecker(validate);
|
|
26491
|
+
}
|
|
26492
|
+
|
|
26493
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
26494
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26495
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
26496
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
26497
|
+
var actualClassName = getClassName(props[propName]);
|
|
26498
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
26499
|
+
}
|
|
26500
|
+
|
|
26501
|
+
return null;
|
|
26502
|
+
}
|
|
26503
|
+
|
|
26504
|
+
return createChainableTypeChecker(validate);
|
|
26505
|
+
}
|
|
26506
|
+
|
|
26507
|
+
function createEnumTypeChecker(expectedValues) {
|
|
26508
|
+
if (!Array.isArray(expectedValues)) {
|
|
26509
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26510
|
+
if (arguments.length > 1) {
|
|
26511
|
+
printWarning$1('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
26512
|
+
} else {
|
|
26513
|
+
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
26514
|
+
}
|
|
26515
|
+
}
|
|
26516
|
+
|
|
26517
|
+
return emptyFunctionThatReturnsNull;
|
|
26518
|
+
}
|
|
26519
|
+
|
|
26520
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26521
|
+
var propValue = props[propName];
|
|
26522
|
+
|
|
26523
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
26524
|
+
if (is(propValue, expectedValues[i])) {
|
|
26525
|
+
return null;
|
|
26526
|
+
}
|
|
26527
|
+
}
|
|
26528
|
+
|
|
26529
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
26530
|
+
var type = getPreciseType(value);
|
|
26531
|
+
|
|
26532
|
+
if (type === 'symbol') {
|
|
26533
|
+
return String(value);
|
|
26534
|
+
}
|
|
26535
|
+
|
|
26536
|
+
return value;
|
|
26537
|
+
});
|
|
26538
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
26539
|
+
}
|
|
26540
|
+
|
|
26541
|
+
return createChainableTypeChecker(validate);
|
|
26542
|
+
}
|
|
26543
|
+
|
|
26544
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
26545
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26546
|
+
if (typeof typeChecker !== 'function') {
|
|
26547
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
26548
|
+
}
|
|
26549
|
+
|
|
26550
|
+
var propValue = props[propName];
|
|
26551
|
+
var propType = getPropType(propValue);
|
|
26552
|
+
|
|
26553
|
+
if (propType !== 'object') {
|
|
26554
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
26555
|
+
}
|
|
26556
|
+
|
|
26557
|
+
for (var key in propValue) {
|
|
26558
|
+
if (has$1(propValue, key)) {
|
|
26559
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
26560
|
+
|
|
26561
|
+
if (error instanceof Error) {
|
|
26562
|
+
return error;
|
|
26563
|
+
}
|
|
26564
|
+
}
|
|
26565
|
+
}
|
|
26566
|
+
|
|
26567
|
+
return null;
|
|
26568
|
+
}
|
|
26569
|
+
|
|
26570
|
+
return createChainableTypeChecker(validate);
|
|
26571
|
+
}
|
|
26572
|
+
|
|
26573
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
26574
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
26575
|
+
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
26576
|
+
return emptyFunctionThatReturnsNull;
|
|
26577
|
+
}
|
|
26578
|
+
|
|
26579
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
26580
|
+
var checker = arrayOfTypeCheckers[i];
|
|
26581
|
+
|
|
26582
|
+
if (typeof checker !== 'function') {
|
|
26583
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
26584
|
+
return emptyFunctionThatReturnsNull;
|
|
26585
|
+
}
|
|
26586
|
+
}
|
|
26587
|
+
|
|
26588
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26589
|
+
var expectedTypes = [];
|
|
26590
|
+
|
|
26591
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
26592
|
+
var checker = arrayOfTypeCheckers[i];
|
|
26593
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
|
|
26594
|
+
|
|
26595
|
+
if (checkerResult == null) {
|
|
26596
|
+
return null;
|
|
26597
|
+
}
|
|
26598
|
+
|
|
26599
|
+
if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
|
|
26600
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
26601
|
+
}
|
|
26602
|
+
}
|
|
26603
|
+
|
|
26604
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
26605
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
26606
|
+
}
|
|
26607
|
+
|
|
26608
|
+
return createChainableTypeChecker(validate);
|
|
26609
|
+
}
|
|
26610
|
+
|
|
26611
|
+
function createNodeChecker() {
|
|
26612
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26613
|
+
if (!isNode(props[propName])) {
|
|
26614
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
26615
|
+
}
|
|
26616
|
+
|
|
26617
|
+
return null;
|
|
26618
|
+
}
|
|
26619
|
+
|
|
26620
|
+
return createChainableTypeChecker(validate);
|
|
26621
|
+
}
|
|
26622
|
+
|
|
26623
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
26624
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
26625
|
+
}
|
|
26626
|
+
|
|
26627
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
26628
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26629
|
+
var propValue = props[propName];
|
|
26630
|
+
var propType = getPropType(propValue);
|
|
26631
|
+
|
|
26632
|
+
if (propType !== 'object') {
|
|
26633
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
26634
|
+
}
|
|
26635
|
+
|
|
26636
|
+
for (var key in shapeTypes) {
|
|
26637
|
+
var checker = shapeTypes[key];
|
|
26638
|
+
|
|
26639
|
+
if (typeof checker !== 'function') {
|
|
26640
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
26641
|
+
}
|
|
26642
|
+
|
|
26643
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
26644
|
+
|
|
26645
|
+
if (error) {
|
|
26646
|
+
return error;
|
|
26647
|
+
}
|
|
26648
|
+
}
|
|
26649
|
+
|
|
26650
|
+
return null;
|
|
26651
|
+
}
|
|
26652
|
+
|
|
26653
|
+
return createChainableTypeChecker(validate);
|
|
26654
|
+
}
|
|
26655
|
+
|
|
26656
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
26657
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
26658
|
+
var propValue = props[propName];
|
|
26659
|
+
var propType = getPropType(propValue);
|
|
26660
|
+
|
|
26661
|
+
if (propType !== 'object') {
|
|
26662
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
26663
|
+
} // We need to check all keys in case some are required but missing from props.
|
|
26664
|
+
|
|
26665
|
+
|
|
26666
|
+
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
26667
|
+
|
|
26668
|
+
for (var key in allKeys) {
|
|
26669
|
+
var checker = shapeTypes[key];
|
|
26670
|
+
|
|
26671
|
+
if (has$1(shapeTypes, key) && typeof checker !== 'function') {
|
|
26672
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
26673
|
+
}
|
|
26674
|
+
|
|
26675
|
+
if (!checker) {
|
|
26676
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
26677
|
+
}
|
|
26678
|
+
|
|
26679
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
26680
|
+
|
|
26681
|
+
if (error) {
|
|
26682
|
+
return error;
|
|
26683
|
+
}
|
|
26684
|
+
}
|
|
26685
|
+
|
|
26686
|
+
return null;
|
|
26687
|
+
}
|
|
26688
|
+
|
|
26689
|
+
return createChainableTypeChecker(validate);
|
|
26690
|
+
}
|
|
26691
|
+
|
|
26692
|
+
function isNode(propValue) {
|
|
26693
|
+
switch (typeof propValue) {
|
|
26694
|
+
case 'number':
|
|
26695
|
+
case 'string':
|
|
26696
|
+
case 'undefined':
|
|
26697
|
+
return true;
|
|
26698
|
+
|
|
26699
|
+
case 'boolean':
|
|
26700
|
+
return !propValue;
|
|
26701
|
+
|
|
26702
|
+
case 'object':
|
|
26703
|
+
if (Array.isArray(propValue)) {
|
|
26704
|
+
return propValue.every(isNode);
|
|
26705
|
+
}
|
|
26706
|
+
|
|
26707
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
26708
|
+
return true;
|
|
26709
|
+
}
|
|
26710
|
+
|
|
26711
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
26712
|
+
|
|
26713
|
+
if (iteratorFn) {
|
|
26714
|
+
var iterator = iteratorFn.call(propValue);
|
|
26715
|
+
var step;
|
|
26716
|
+
|
|
26717
|
+
if (iteratorFn !== propValue.entries) {
|
|
26718
|
+
while (!(step = iterator.next()).done) {
|
|
26719
|
+
if (!isNode(step.value)) {
|
|
26720
|
+
return false;
|
|
26721
|
+
}
|
|
26722
|
+
}
|
|
26723
|
+
} else {
|
|
26724
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
26725
|
+
while (!(step = iterator.next()).done) {
|
|
26726
|
+
var entry = step.value;
|
|
26727
|
+
|
|
26728
|
+
if (entry) {
|
|
26729
|
+
if (!isNode(entry[1])) {
|
|
26730
|
+
return false;
|
|
26731
|
+
}
|
|
26732
|
+
}
|
|
26733
|
+
}
|
|
26734
|
+
}
|
|
26735
|
+
} else {
|
|
26736
|
+
return false;
|
|
26737
|
+
}
|
|
26738
|
+
|
|
26739
|
+
return true;
|
|
26740
|
+
|
|
26741
|
+
default:
|
|
26742
|
+
return false;
|
|
26743
|
+
}
|
|
26744
|
+
}
|
|
26745
|
+
|
|
26746
|
+
function isSymbol(propType, propValue) {
|
|
26747
|
+
// Native Symbol.
|
|
26748
|
+
if (propType === 'symbol') {
|
|
26749
|
+
return true;
|
|
26750
|
+
} // falsy value can't be a Symbol
|
|
26751
|
+
|
|
26752
|
+
|
|
26753
|
+
if (!propValue) {
|
|
26754
|
+
return false;
|
|
26755
|
+
} // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
26756
|
+
|
|
26757
|
+
|
|
26758
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
26759
|
+
return true;
|
|
26760
|
+
} // Fallback for non-spec compliant Symbols which are polyfilled.
|
|
26761
|
+
|
|
26762
|
+
|
|
26763
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
26764
|
+
return true;
|
|
26765
|
+
}
|
|
26766
|
+
|
|
26767
|
+
return false;
|
|
26768
|
+
} // Equivalent of `typeof` but with special handling for array and regexp.
|
|
26769
|
+
|
|
26770
|
+
|
|
26771
|
+
function getPropType(propValue) {
|
|
26772
|
+
var propType = typeof propValue;
|
|
26773
|
+
|
|
26774
|
+
if (Array.isArray(propValue)) {
|
|
26775
|
+
return 'array';
|
|
26776
|
+
}
|
|
26777
|
+
|
|
26778
|
+
if (propValue instanceof RegExp) {
|
|
26779
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
26780
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
26781
|
+
// passes PropTypes.object.
|
|
26782
|
+
return 'object';
|
|
26783
|
+
}
|
|
26784
|
+
|
|
26785
|
+
if (isSymbol(propType, propValue)) {
|
|
26786
|
+
return 'symbol';
|
|
26787
|
+
}
|
|
26788
|
+
|
|
26789
|
+
return propType;
|
|
26790
|
+
} // This handles more types than `getPropType`. Only used for error messages.
|
|
26791
|
+
// See `createPrimitiveTypeChecker`.
|
|
26792
|
+
|
|
26793
|
+
|
|
26794
|
+
function getPreciseType(propValue) {
|
|
26795
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
26796
|
+
return '' + propValue;
|
|
26797
|
+
}
|
|
26798
|
+
|
|
26799
|
+
var propType = getPropType(propValue);
|
|
26800
|
+
|
|
26801
|
+
if (propType === 'object') {
|
|
26802
|
+
if (propValue instanceof Date) {
|
|
26803
|
+
return 'date';
|
|
26804
|
+
} else if (propValue instanceof RegExp) {
|
|
26805
|
+
return 'regexp';
|
|
26806
|
+
}
|
|
26807
|
+
}
|
|
26808
|
+
|
|
26809
|
+
return propType;
|
|
26810
|
+
} // Returns a string that is postfixed to a warning about an invalid type.
|
|
26811
|
+
// For example, "undefined" or "of type array"
|
|
26812
|
+
|
|
26813
|
+
|
|
26814
|
+
function getPostfixForTypeWarning(value) {
|
|
26815
|
+
var type = getPreciseType(value);
|
|
26816
|
+
|
|
26817
|
+
switch (type) {
|
|
26818
|
+
case 'array':
|
|
26819
|
+
case 'object':
|
|
26820
|
+
return 'an ' + type;
|
|
26821
|
+
|
|
26822
|
+
case 'boolean':
|
|
26823
|
+
case 'date':
|
|
26824
|
+
case 'regexp':
|
|
26825
|
+
return 'a ' + type;
|
|
26826
|
+
|
|
26827
|
+
default:
|
|
26828
|
+
return type;
|
|
26829
|
+
}
|
|
26830
|
+
} // Returns class name of the object, if any.
|
|
26831
|
+
|
|
26832
|
+
|
|
26833
|
+
function getClassName(propValue) {
|
|
26834
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
26835
|
+
return ANONYMOUS;
|
|
26836
|
+
}
|
|
26837
|
+
|
|
26838
|
+
return propValue.constructor.name;
|
|
26839
|
+
}
|
|
26840
|
+
|
|
26841
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
26842
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
26843
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26844
|
+
return ReactPropTypes;
|
|
26845
|
+
};
|
|
26846
|
+
|
|
26847
|
+
function emptyFunction() {}
|
|
26848
|
+
|
|
26849
|
+
function emptyFunctionWithReset() {}
|
|
26850
|
+
|
|
26851
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
26852
|
+
|
|
26853
|
+
var factoryWithThrowingShims = function () {
|
|
26854
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
26855
|
+
if (secret === ReactPropTypesSecret$1) {
|
|
26856
|
+
// It is still safe when called from React.
|
|
26857
|
+
return;
|
|
26858
|
+
}
|
|
26859
|
+
|
|
26860
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
26861
|
+
err.name = 'Invariant Violation';
|
|
26862
|
+
throw err;
|
|
26863
|
+
}
|
|
26864
|
+
shim.isRequired = shim;
|
|
26865
|
+
|
|
26866
|
+
function getShim() {
|
|
26867
|
+
return shim;
|
|
26868
|
+
}
|
|
26869
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
26870
|
+
|
|
26871
|
+
var ReactPropTypes = {
|
|
26872
|
+
array: shim,
|
|
26873
|
+
bigint: shim,
|
|
26874
|
+
bool: shim,
|
|
26875
|
+
func: shim,
|
|
26876
|
+
number: shim,
|
|
26877
|
+
object: shim,
|
|
26878
|
+
string: shim,
|
|
26879
|
+
symbol: shim,
|
|
26880
|
+
any: shim,
|
|
26881
|
+
arrayOf: getShim,
|
|
26882
|
+
element: shim,
|
|
26883
|
+
elementType: shim,
|
|
26884
|
+
instanceOf: getShim,
|
|
26885
|
+
node: shim,
|
|
26886
|
+
objectOf: getShim,
|
|
26887
|
+
oneOf: getShim,
|
|
26888
|
+
oneOfType: getShim,
|
|
26889
|
+
shape: getShim,
|
|
26890
|
+
exact: getShim,
|
|
26891
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
26892
|
+
resetWarningCache: emptyFunction
|
|
26893
|
+
};
|
|
26894
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26895
|
+
return ReactPropTypes;
|
|
26896
|
+
};
|
|
26897
|
+
|
|
26898
|
+
var require$$1 = factoryWithTypeCheckers;
|
|
26899
|
+
|
|
26900
|
+
var require$$2 = factoryWithThrowingShims;
|
|
26901
|
+
|
|
26902
|
+
var propTypes = createCommonjsModule(function (module) {
|
|
26903
|
+
/**
|
|
26904
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
26905
|
+
*
|
|
26906
|
+
* This source code is licensed under the MIT license found in the
|
|
26907
|
+
* LICENSE file in the root directory of this source tree.
|
|
26908
|
+
*/
|
|
26909
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26910
|
+
var ReactIs = reactIs; // By explicitly using `prop-types` you are opting into new development behavior.
|
|
26911
|
+
// http://fb.me/prop-types-in-prod
|
|
26912
|
+
|
|
26913
|
+
|
|
26914
|
+
var throwOnDirectAccess = true;
|
|
26915
|
+
module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
|
|
26916
|
+
} else {
|
|
26917
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
26918
|
+
// http://fb.me/prop-types-in-prod
|
|
26919
|
+
module.exports = require$$2();
|
|
26920
|
+
}
|
|
26921
|
+
});
|
|
26922
|
+
|
|
26923
|
+
var tabbable_1 = createCommonjsModule(function (module, exports) {
|
|
26924
|
+
|
|
26925
|
+
Object.defineProperty(exports, "__esModule", {
|
|
26926
|
+
value: true
|
|
26927
|
+
});
|
|
26928
|
+
exports.default = findTabbableDescendants;
|
|
26929
|
+
/*!
|
|
26930
|
+
* Adapted from jQuery UI core
|
|
26931
|
+
*
|
|
26932
|
+
* http://jqueryui.com
|
|
26933
|
+
*
|
|
26934
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
26935
|
+
* Released under the MIT license.
|
|
26936
|
+
* http://jquery.org/license
|
|
26937
|
+
*
|
|
26938
|
+
* http://api.jqueryui.com/category/ui-core/
|
|
26939
|
+
*/
|
|
26940
|
+
|
|
26941
|
+
var tabbableNode = /input|select|textarea|button|object/;
|
|
26942
|
+
|
|
26943
|
+
function hidesContents(element) {
|
|
26944
|
+
var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0; // If the node is empty, this is good enough
|
|
26945
|
+
|
|
26946
|
+
if (zeroSize && !element.innerHTML) return true; // Otherwise we need to check some styles
|
|
26947
|
+
|
|
26948
|
+
var style = window.getComputedStyle(element);
|
|
26949
|
+
return zeroSize ? style.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
26950
|
+
element.scrollWidth <= 0 && element.scrollHeight <= 0 : style.getPropertyValue("display") == "none";
|
|
26951
|
+
}
|
|
26952
|
+
|
|
26953
|
+
function visible(element) {
|
|
26954
|
+
var parentElement = element;
|
|
26955
|
+
|
|
26956
|
+
while (parentElement) {
|
|
26957
|
+
if (parentElement === document.body) break;
|
|
26958
|
+
if (hidesContents(parentElement)) return false;
|
|
26959
|
+
parentElement = parentElement.parentNode;
|
|
26960
|
+
}
|
|
26961
|
+
|
|
26962
|
+
return true;
|
|
26963
|
+
}
|
|
26964
|
+
|
|
26965
|
+
function focusable(element, isTabIndexNotNaN) {
|
|
26966
|
+
var nodeName = element.nodeName.toLowerCase();
|
|
26967
|
+
var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === "a" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);
|
|
26968
|
+
return res && visible(element);
|
|
26969
|
+
}
|
|
26970
|
+
|
|
26971
|
+
function tabbable(element) {
|
|
26972
|
+
var tabIndex = element.getAttribute("tabindex");
|
|
26973
|
+
if (tabIndex === null) tabIndex = undefined;
|
|
26974
|
+
var isTabIndexNaN = isNaN(tabIndex);
|
|
26975
|
+
return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);
|
|
26976
|
+
}
|
|
26977
|
+
|
|
26978
|
+
function findTabbableDescendants(element) {
|
|
26979
|
+
return [].slice.call(element.querySelectorAll("*"), 0).filter(tabbable);
|
|
26980
|
+
}
|
|
26981
|
+
|
|
26982
|
+
module.exports = exports["default"];
|
|
26983
|
+
});
|
|
26984
|
+
|
|
26985
|
+
var focusManager = createCommonjsModule(function (module, exports) {
|
|
26986
|
+
|
|
26987
|
+
Object.defineProperty(exports, "__esModule", {
|
|
26988
|
+
value: true
|
|
26989
|
+
});
|
|
26990
|
+
exports.handleBlur = handleBlur;
|
|
26991
|
+
exports.handleFocus = handleFocus;
|
|
26992
|
+
exports.markForFocusLater = markForFocusLater;
|
|
26993
|
+
exports.returnFocus = returnFocus;
|
|
26994
|
+
exports.popWithoutFocus = popWithoutFocus;
|
|
26995
|
+
exports.setupScopedFocus = setupScopedFocus;
|
|
26996
|
+
exports.teardownScopedFocus = teardownScopedFocus;
|
|
26997
|
+
|
|
26998
|
+
|
|
26999
|
+
|
|
27000
|
+
var _tabbable2 = _interopRequireDefault(tabbable_1);
|
|
27001
|
+
|
|
27002
|
+
function _interopRequireDefault(obj) {
|
|
27003
|
+
return obj && obj.__esModule ? obj : {
|
|
27004
|
+
default: obj
|
|
27005
|
+
};
|
|
27006
|
+
}
|
|
27007
|
+
|
|
27008
|
+
var focusLaterElements = [];
|
|
27009
|
+
var modalElement = null;
|
|
27010
|
+
var needToFocus = false;
|
|
27011
|
+
|
|
27012
|
+
function handleBlur() {
|
|
27013
|
+
needToFocus = true;
|
|
27014
|
+
}
|
|
27015
|
+
|
|
27016
|
+
function handleFocus() {
|
|
27017
|
+
if (needToFocus) {
|
|
27018
|
+
needToFocus = false;
|
|
27019
|
+
|
|
27020
|
+
if (!modalElement) {
|
|
27021
|
+
return;
|
|
27022
|
+
} // need to see how jQuery shims document.on('focusin') so we don't need the
|
|
27023
|
+
// setTimeout, firefox doesn't support focusin, if it did, we could focus
|
|
27024
|
+
// the element outside of a setTimeout. Side-effect of this implementation
|
|
27025
|
+
// is that the document.body gets focus, and then we focus our element right
|
|
27026
|
+
// after, seems fine.
|
|
27027
|
+
|
|
27028
|
+
|
|
27029
|
+
setTimeout(function () {
|
|
27030
|
+
if (modalElement.contains(document.activeElement)) {
|
|
27031
|
+
return;
|
|
27032
|
+
}
|
|
27033
|
+
|
|
27034
|
+
var el = (0, _tabbable2.default)(modalElement)[0] || modalElement;
|
|
27035
|
+
el.focus();
|
|
27036
|
+
}, 0);
|
|
27037
|
+
}
|
|
27038
|
+
}
|
|
27039
|
+
|
|
27040
|
+
function markForFocusLater() {
|
|
27041
|
+
focusLaterElements.push(document.activeElement);
|
|
27042
|
+
}
|
|
27043
|
+
/* eslint-disable no-console */
|
|
27044
|
+
|
|
27045
|
+
|
|
27046
|
+
function returnFocus() {
|
|
27047
|
+
var toFocus = null;
|
|
27048
|
+
|
|
27049
|
+
try {
|
|
27050
|
+
if (focusLaterElements.length !== 0) {
|
|
27051
|
+
toFocus = focusLaterElements.pop();
|
|
27052
|
+
toFocus.focus();
|
|
27053
|
+
}
|
|
27054
|
+
|
|
27055
|
+
return;
|
|
27056
|
+
} catch (e) {
|
|
27057
|
+
console.warn(["You tried to return focus to", toFocus, "but it is not in the DOM anymore"].join(" "));
|
|
27058
|
+
}
|
|
27059
|
+
}
|
|
27060
|
+
/* eslint-enable no-console */
|
|
27061
|
+
|
|
27062
|
+
|
|
27063
|
+
function popWithoutFocus() {
|
|
27064
|
+
focusLaterElements.length > 0 && focusLaterElements.pop();
|
|
27065
|
+
}
|
|
27066
|
+
|
|
27067
|
+
function setupScopedFocus(element) {
|
|
27068
|
+
modalElement = element;
|
|
27069
|
+
|
|
27070
|
+
if (window.addEventListener) {
|
|
27071
|
+
window.addEventListener("blur", handleBlur, false);
|
|
27072
|
+
document.addEventListener("focus", handleFocus, true);
|
|
27073
|
+
} else {
|
|
27074
|
+
window.attachEvent("onBlur", handleBlur);
|
|
27075
|
+
document.attachEvent("onFocus", handleFocus);
|
|
27076
|
+
}
|
|
27077
|
+
}
|
|
27078
|
+
|
|
27079
|
+
function teardownScopedFocus() {
|
|
27080
|
+
modalElement = null;
|
|
27081
|
+
|
|
27082
|
+
if (window.addEventListener) {
|
|
27083
|
+
window.removeEventListener("blur", handleBlur);
|
|
27084
|
+
document.removeEventListener("focus", handleFocus);
|
|
27085
|
+
} else {
|
|
27086
|
+
window.detachEvent("onBlur", handleBlur);
|
|
27087
|
+
document.detachEvent("onFocus", handleFocus);
|
|
27088
|
+
}
|
|
27089
|
+
}
|
|
27090
|
+
});
|
|
27091
|
+
|
|
27092
|
+
var scopeTab_1 = createCommonjsModule(function (module, exports) {
|
|
27093
|
+
|
|
27094
|
+
Object.defineProperty(exports, "__esModule", {
|
|
27095
|
+
value: true
|
|
27096
|
+
});
|
|
27097
|
+
exports.default = scopeTab;
|
|
27098
|
+
|
|
27099
|
+
|
|
27100
|
+
|
|
27101
|
+
var _tabbable2 = _interopRequireDefault(tabbable_1);
|
|
27102
|
+
|
|
27103
|
+
function _interopRequireDefault(obj) {
|
|
27104
|
+
return obj && obj.__esModule ? obj : {
|
|
27105
|
+
default: obj
|
|
27106
|
+
};
|
|
27107
|
+
}
|
|
27108
|
+
|
|
27109
|
+
function scopeTab(node, event) {
|
|
27110
|
+
var tabbable = (0, _tabbable2.default)(node);
|
|
27111
|
+
|
|
27112
|
+
if (!tabbable.length) {
|
|
27113
|
+
// Do nothing, since there are no elements that can receive focus.
|
|
27114
|
+
event.preventDefault();
|
|
27115
|
+
return;
|
|
27116
|
+
}
|
|
27117
|
+
|
|
27118
|
+
var target = void 0;
|
|
27119
|
+
var shiftKey = event.shiftKey;
|
|
27120
|
+
var head = tabbable[0];
|
|
27121
|
+
var tail = tabbable[tabbable.length - 1]; // proceed with default browser behavior on tab.
|
|
27122
|
+
// Focus on last element on shift + tab.
|
|
27123
|
+
|
|
27124
|
+
if (node === document.activeElement) {
|
|
27125
|
+
if (!shiftKey) return;
|
|
27126
|
+
target = tail;
|
|
27127
|
+
}
|
|
27128
|
+
|
|
27129
|
+
if (tail === document.activeElement && !shiftKey) {
|
|
27130
|
+
target = head;
|
|
27131
|
+
}
|
|
27132
|
+
|
|
27133
|
+
if (head === document.activeElement && shiftKey) {
|
|
27134
|
+
target = tail;
|
|
27135
|
+
}
|
|
27136
|
+
|
|
27137
|
+
if (target) {
|
|
27138
|
+
event.preventDefault();
|
|
27139
|
+
target.focus();
|
|
27140
|
+
return;
|
|
27141
|
+
} // Safari radio issue.
|
|
27142
|
+
//
|
|
27143
|
+
// Safari does not move the focus to the radio button,
|
|
27144
|
+
// so we need to force it to really walk through all elements.
|
|
27145
|
+
//
|
|
27146
|
+
// This is very error prone, since we are trying to guess
|
|
27147
|
+
// if it is a safari browser from the first occurence between
|
|
27148
|
+
// chrome or safari.
|
|
27149
|
+
//
|
|
27150
|
+
// The chrome user agent contains the first ocurrence
|
|
27151
|
+
// as the 'chrome/version' and later the 'safari/version'.
|
|
27152
|
+
|
|
27153
|
+
|
|
27154
|
+
var checkSafari = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);
|
|
27155
|
+
var isSafariDesktop = checkSafari != null && checkSafari[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null; // If we are not in safari desktop, let the browser control
|
|
27156
|
+
// the focus
|
|
27157
|
+
|
|
27158
|
+
if (!isSafariDesktop) return;
|
|
27159
|
+
var x = tabbable.indexOf(document.activeElement);
|
|
27160
|
+
|
|
27161
|
+
if (x > -1) {
|
|
27162
|
+
x += shiftKey ? -1 : 1;
|
|
27163
|
+
}
|
|
27164
|
+
|
|
27165
|
+
target = tabbable[x]; // If the tabbable element does not exist,
|
|
27166
|
+
// focus head/tail based on shiftKey
|
|
27167
|
+
|
|
27168
|
+
if (typeof target === "undefined") {
|
|
27169
|
+
event.preventDefault();
|
|
27170
|
+
target = shiftKey ? tail : head;
|
|
27171
|
+
target.focus();
|
|
27172
|
+
return;
|
|
27173
|
+
}
|
|
27174
|
+
|
|
27175
|
+
event.preventDefault();
|
|
27176
|
+
target.focus();
|
|
27177
|
+
}
|
|
27178
|
+
|
|
27179
|
+
module.exports = exports["default"];
|
|
27180
|
+
});
|
|
27181
|
+
|
|
27182
|
+
/**
|
|
27183
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
27184
|
+
*
|
|
27185
|
+
* This source code is licensed under the MIT license found in the
|
|
27186
|
+
* LICENSE file in the root directory of this source tree.
|
|
27187
|
+
*/
|
|
27188
|
+
/**
|
|
27189
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
27190
|
+
* This can be used to log issues in development environments in critical
|
|
27191
|
+
* paths. Removing the logging code for production environments will keep the
|
|
27192
|
+
* same logic and follow the same code paths.
|
|
27193
|
+
*/
|
|
27194
|
+
|
|
27195
|
+
var __DEV__ = process.env.NODE_ENV !== 'production';
|
|
27196
|
+
|
|
27197
|
+
var warning = function () {};
|
|
27198
|
+
|
|
27199
|
+
if (__DEV__) {
|
|
27200
|
+
var printWarning = function printWarning(format, args) {
|
|
27201
|
+
var len = arguments.length;
|
|
27202
|
+
args = new Array(len > 1 ? len - 1 : 0);
|
|
27203
|
+
|
|
27204
|
+
for (var key = 1; key < len; key++) {
|
|
27205
|
+
args[key - 1] = arguments[key];
|
|
27206
|
+
}
|
|
27207
|
+
|
|
27208
|
+
var argIndex = 0;
|
|
27209
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
27210
|
+
return args[argIndex++];
|
|
27211
|
+
});
|
|
27212
|
+
|
|
27213
|
+
if (typeof console !== 'undefined') {
|
|
27214
|
+
console.error(message);
|
|
27215
|
+
}
|
|
27216
|
+
|
|
27217
|
+
try {
|
|
27218
|
+
// --- Welcome to debugging React ---
|
|
27219
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
27220
|
+
// to find the callsite that caused this warning to fire.
|
|
27221
|
+
throw new Error(message);
|
|
27222
|
+
} catch (x) {}
|
|
27223
|
+
};
|
|
27224
|
+
|
|
27225
|
+
warning = function (condition, format, args) {
|
|
27226
|
+
var len = arguments.length;
|
|
27227
|
+
args = new Array(len > 2 ? len - 2 : 0);
|
|
27228
|
+
|
|
27229
|
+
for (var key = 2; key < len; key++) {
|
|
27230
|
+
args[key - 2] = arguments[key];
|
|
27231
|
+
}
|
|
27232
|
+
|
|
27233
|
+
if (format === undefined) {
|
|
27234
|
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
27235
|
+
}
|
|
27236
|
+
|
|
27237
|
+
if (!condition) {
|
|
27238
|
+
printWarning.apply(null, [format].concat(args));
|
|
27239
|
+
}
|
|
27240
|
+
};
|
|
27241
|
+
}
|
|
27242
|
+
|
|
27243
|
+
var warning_1 = warning;
|
|
27244
|
+
|
|
27245
|
+
var exenv = createCommonjsModule(function (module) {
|
|
27246
|
+
/*!
|
|
27247
|
+
Copyright (c) 2015 Jed Watson.
|
|
27248
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
27249
|
+
All rights reserved.
|
|
27250
|
+
*/
|
|
27251
|
+
|
|
27252
|
+
/* global define */
|
|
27253
|
+
(function () {
|
|
26063
27254
|
|
|
26064
27255
|
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
26065
27256
|
var ExecutionEnvironment = {
|
|
@@ -26430,6 +27621,8 @@ function bodyTrap(eventType, openInstances) {
|
|
|
26430
27621
|
_portalOpenInstances2.default.subscribe(bodyTrap);
|
|
26431
27622
|
});
|
|
26432
27623
|
|
|
27624
|
+
var _propTypes = propTypes;
|
|
27625
|
+
|
|
26433
27626
|
var ModalPortal_1 = createCommonjsModule(function (module, exports) {
|
|
26434
27627
|
|
|
26435
27628
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -26480,7 +27673,7 @@ var _react2 = _interopRequireDefault(React__default["default"]);
|
|
|
26480
27673
|
|
|
26481
27674
|
|
|
26482
27675
|
|
|
26483
|
-
var _propTypes2 = _interopRequireDefault(
|
|
27676
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
26484
27677
|
|
|
26485
27678
|
|
|
26486
27679
|
|
|
@@ -27106,7 +28299,7 @@ var _reactDom2 = _interopRequireDefault(ReactDOM__default["default"]);
|
|
|
27106
28299
|
|
|
27107
28300
|
|
|
27108
28301
|
|
|
27109
|
-
var _propTypes2 = _interopRequireDefault(
|
|
28302
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
27110
28303
|
|
|
27111
28304
|
|
|
27112
28305
|
|
|
@@ -29142,7 +30335,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
29142
30335
|
showTitle: showTitle,
|
|
29143
30336
|
title: title,
|
|
29144
30337
|
history: history
|
|
29145
|
-
}), storage$1.twilioEnabledStatus && isAppEnabledTwilio && isMounted && placeholderNode && storage$1.callCapsuleEnabledStatus && React__default["default"].createElement(Portal$
|
|
30338
|
+
}), storage$1.twilioEnabledStatus && isAppEnabledTwilio && isMounted && placeholderNode && storage$1.callCapsuleEnabledStatus && React__default["default"].createElement(Portal$2, {
|
|
29146
30339
|
node: placeholderNode
|
|
29147
30340
|
}, React__default["default"].createElement(CallCapsule, null)), isPrinterDialogOpen && React__default["default"].createElement(PrinterDialog, {
|
|
29148
30341
|
isDialogOpen: isPrinterDialogOpen,
|
|
@@ -39252,7 +40445,6 @@ function filterOutNotificationByAudience(notifications) {
|
|
|
39252
40445
|
}
|
|
39253
40446
|
function filterNotifications(notifications) {
|
|
39254
40447
|
try {
|
|
39255
|
-
console.log(notifications);
|
|
39256
40448
|
return compose(filterOutNotificationByAudience, filterOutViewedNotifications, filterOutExpiredNotifications, filterOutNotificationForOtherApps)(notifications);
|
|
39257
40449
|
} catch (err) {
|
|
39258
40450
|
console.error(err);
|
|
@@ -39338,6 +40530,17 @@ function formatLink(link) {
|
|
|
39338
40530
|
}
|
|
39339
40531
|
}
|
|
39340
40532
|
|
|
40533
|
+
function padTo2Digits(num) {
|
|
40534
|
+
return num.toString().padStart(2, '0');
|
|
40535
|
+
}
|
|
40536
|
+
|
|
40537
|
+
function getYesterdayDate() {
|
|
40538
|
+
var today = new Date();
|
|
40539
|
+
var yesterday = new Date(today);
|
|
40540
|
+
yesterday.setDate(today.getDate() - 1);
|
|
40541
|
+
return yesterday.getUTCFullYear() + '-' + padTo2Digits(yesterday.getUTCMonth() + 1) + '-' + padTo2Digits(yesterday.getUTCDate());
|
|
40542
|
+
}
|
|
40543
|
+
|
|
39341
40544
|
var name="@firebase/database";var version="0.11.0";/**
|
|
39342
40545
|
* @license
|
|
39343
40546
|
* Copyright 2019 Google LLC
|
|
@@ -43460,14 +44663,16 @@ function connect(firebaseConfig) {
|
|
|
43460
44663
|
}
|
|
43461
44664
|
|
|
43462
44665
|
function attachHandlers(setNotifications) {
|
|
43463
|
-
|
|
43464
|
-
|
|
44666
|
+
var yesterday = getYesterdayDate();
|
|
44667
|
+
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).on('value', function (snapshot) {
|
|
44668
|
+
compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
|
|
43465
44669
|
});
|
|
43466
44670
|
}
|
|
43467
44671
|
|
|
43468
44672
|
function _refetchNotifications(setNotifications) {
|
|
43469
|
-
|
|
43470
|
-
|
|
44673
|
+
var yesterday = getYesterdayDate();
|
|
44674
|
+
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).once('value').then(function (snapshot) {
|
|
44675
|
+
compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
|
|
43471
44676
|
});
|
|
43472
44677
|
}
|
|
43473
44678
|
|
|
@@ -43687,7 +44892,7 @@ var Notifications$2 = withFirebase(Notifications$1);
|
|
|
43687
44892
|
|
|
43688
44893
|
var mandatoryKeys = ['apiKey', 'authDomain', 'databaseURL', 'projectId', 'storageBucket', 'messagingSenderId', 'appId'];
|
|
43689
44894
|
function firebaseConfigValidator (firebaseConfig) {
|
|
43690
|
-
return not$1(either$1(isNil$1, isEmpty$2)(firebaseConfig)) && allPass$1(map$2(has$
|
|
44895
|
+
return not$1(either$1(isNil$1, isEmpty$2)(firebaseConfig)) && allPass$1(map$2(has$4)(mandatoryKeys))(firebaseConfig);
|
|
43691
44896
|
}
|
|
43692
44897
|
|
|
43693
44898
|
var getFirebaseConfig = function getFirebaseConfig() {
|