Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wpforms-.../assets/js/integrat.../divi
File: formselector.es5.js
// Make `instanceof Error` still work for returned errors.
[500] Fix | Delete
PropTypeError.prototype = Error.prototype;
[501] Fix | Delete
[502] Fix | Delete
function createChainableTypeChecker(validate) {
[503] Fix | Delete
if (process.env.NODE_ENV !== 'production') {
[504] Fix | Delete
var manualPropTypeCallCache = {};
[505] Fix | Delete
var manualPropTypeWarningCount = 0;
[506] Fix | Delete
}
[507] Fix | Delete
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
[508] Fix | Delete
componentName = componentName || ANONYMOUS;
[509] Fix | Delete
propFullName = propFullName || propName;
[510] Fix | Delete
[511] Fix | Delete
if (secret !== ReactPropTypesSecret) {
[512] Fix | Delete
if (throwOnDirectAccess) {
[513] Fix | Delete
// New behavior only for users of `prop-types` package
[514] Fix | Delete
var err = new Error(
[515] Fix | Delete
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
[516] Fix | Delete
'Use `PropTypes.checkPropTypes()` to call them. ' +
[517] Fix | Delete
'Read more at http://fb.me/use-check-prop-types'
[518] Fix | Delete
);
[519] Fix | Delete
err.name = 'Invariant Violation';
[520] Fix | Delete
throw err;
[521] Fix | Delete
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
[522] Fix | Delete
// Old behavior for people using React.PropTypes
[523] Fix | Delete
var cacheKey = componentName + ':' + propName;
[524] Fix | Delete
if (
[525] Fix | Delete
!manualPropTypeCallCache[cacheKey] &&
[526] Fix | Delete
// Avoid spamming the console because they are often not actionable except for lib authors
[527] Fix | Delete
manualPropTypeWarningCount < 3
[528] Fix | Delete
) {
[529] Fix | Delete
printWarning(
[530] Fix | Delete
'You are manually calling a React.PropTypes validation ' +
[531] Fix | Delete
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
[532] Fix | Delete
'and will throw in the standalone `prop-types` package. ' +
[533] Fix | Delete
'You may be seeing this warning due to a third-party PropTypes ' +
[534] Fix | Delete
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
[535] Fix | Delete
);
[536] Fix | Delete
manualPropTypeCallCache[cacheKey] = true;
[537] Fix | Delete
manualPropTypeWarningCount++;
[538] Fix | Delete
}
[539] Fix | Delete
}
[540] Fix | Delete
}
[541] Fix | Delete
if (props[propName] == null) {
[542] Fix | Delete
if (isRequired) {
[543] Fix | Delete
if (props[propName] === null) {
[544] Fix | Delete
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
[545] Fix | Delete
}
[546] Fix | Delete
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
[547] Fix | Delete
}
[548] Fix | Delete
return null;
[549] Fix | Delete
} else {
[550] Fix | Delete
return validate(props, propName, componentName, location, propFullName);
[551] Fix | Delete
}
[552] Fix | Delete
}
[553] Fix | Delete
[554] Fix | Delete
var chainedCheckType = checkType.bind(null, false);
[555] Fix | Delete
chainedCheckType.isRequired = checkType.bind(null, true);
[556] Fix | Delete
[557] Fix | Delete
return chainedCheckType;
[558] Fix | Delete
}
[559] Fix | Delete
[560] Fix | Delete
function createPrimitiveTypeChecker(expectedType) {
[561] Fix | Delete
function validate(props, propName, componentName, location, propFullName, secret) {
[562] Fix | Delete
var propValue = props[propName];
[563] Fix | Delete
var propType = getPropType(propValue);
[564] Fix | Delete
if (propType !== expectedType) {
[565] Fix | Delete
// `propValue` being instance of, say, date/regexp, pass the 'object'
[566] Fix | Delete
// check, but we can offer a more precise error message here rather than
[567] Fix | Delete
// 'of type `object`'.
[568] Fix | Delete
var preciseType = getPreciseType(propValue);
[569] Fix | Delete
[570] Fix | Delete
return new PropTypeError(
[571] Fix | Delete
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
[572] Fix | Delete
{expectedType: expectedType}
[573] Fix | Delete
);
[574] Fix | Delete
}
[575] Fix | Delete
return null;
[576] Fix | Delete
}
[577] Fix | Delete
return createChainableTypeChecker(validate);
[578] Fix | Delete
}
[579] Fix | Delete
[580] Fix | Delete
function createAnyTypeChecker() {
[581] Fix | Delete
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
[582] Fix | Delete
}
[583] Fix | Delete
[584] Fix | Delete
function createArrayOfTypeChecker(typeChecker) {
[585] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[586] Fix | Delete
if (typeof typeChecker !== 'function') {
[587] Fix | Delete
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
[588] Fix | Delete
}
[589] Fix | Delete
var propValue = props[propName];
[590] Fix | Delete
if (!Array.isArray(propValue)) {
[591] Fix | Delete
var propType = getPropType(propValue);
[592] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
[593] Fix | Delete
}
[594] Fix | Delete
for (var i = 0; i < propValue.length; i++) {
[595] Fix | Delete
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
[596] Fix | Delete
if (error instanceof Error) {
[597] Fix | Delete
return error;
[598] Fix | Delete
}
[599] Fix | Delete
}
[600] Fix | Delete
return null;
[601] Fix | Delete
}
[602] Fix | Delete
return createChainableTypeChecker(validate);
[603] Fix | Delete
}
[604] Fix | Delete
[605] Fix | Delete
function createElementTypeChecker() {
[606] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[607] Fix | Delete
var propValue = props[propName];
[608] Fix | Delete
if (!isValidElement(propValue)) {
[609] Fix | Delete
var propType = getPropType(propValue);
[610] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
[611] Fix | Delete
}
[612] Fix | Delete
return null;
[613] Fix | Delete
}
[614] Fix | Delete
return createChainableTypeChecker(validate);
[615] Fix | Delete
}
[616] Fix | Delete
[617] Fix | Delete
function createElementTypeTypeChecker() {
[618] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[619] Fix | Delete
var propValue = props[propName];
[620] Fix | Delete
if (!ReactIs.isValidElementType(propValue)) {
[621] Fix | Delete
var propType = getPropType(propValue);
[622] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
[623] Fix | Delete
}
[624] Fix | Delete
return null;
[625] Fix | Delete
}
[626] Fix | Delete
return createChainableTypeChecker(validate);
[627] Fix | Delete
}
[628] Fix | Delete
[629] Fix | Delete
function createInstanceTypeChecker(expectedClass) {
[630] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[631] Fix | Delete
if (!(props[propName] instanceof expectedClass)) {
[632] Fix | Delete
var expectedClassName = expectedClass.name || ANONYMOUS;
[633] Fix | Delete
var actualClassName = getClassName(props[propName]);
[634] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
[635] Fix | Delete
}
[636] Fix | Delete
return null;
[637] Fix | Delete
}
[638] Fix | Delete
return createChainableTypeChecker(validate);
[639] Fix | Delete
}
[640] Fix | Delete
[641] Fix | Delete
function createEnumTypeChecker(expectedValues) {
[642] Fix | Delete
if (!Array.isArray(expectedValues)) {
[643] Fix | Delete
if (process.env.NODE_ENV !== 'production') {
[644] Fix | Delete
if (arguments.length > 1) {
[645] Fix | Delete
printWarning(
[646] Fix | Delete
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
[647] Fix | Delete
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
[648] Fix | Delete
);
[649] Fix | Delete
} else {
[650] Fix | Delete
printWarning('Invalid argument supplied to oneOf, expected an array.');
[651] Fix | Delete
}
[652] Fix | Delete
}
[653] Fix | Delete
return emptyFunctionThatReturnsNull;
[654] Fix | Delete
}
[655] Fix | Delete
[656] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[657] Fix | Delete
var propValue = props[propName];
[658] Fix | Delete
for (var i = 0; i < expectedValues.length; i++) {
[659] Fix | Delete
if (is(propValue, expectedValues[i])) {
[660] Fix | Delete
return null;
[661] Fix | Delete
}
[662] Fix | Delete
}
[663] Fix | Delete
[664] Fix | Delete
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
[665] Fix | Delete
var type = getPreciseType(value);
[666] Fix | Delete
if (type === 'symbol') {
[667] Fix | Delete
return String(value);
[668] Fix | Delete
}
[669] Fix | Delete
return value;
[670] Fix | Delete
});
[671] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
[672] Fix | Delete
}
[673] Fix | Delete
return createChainableTypeChecker(validate);
[674] Fix | Delete
}
[675] Fix | Delete
[676] Fix | Delete
function createObjectOfTypeChecker(typeChecker) {
[677] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[678] Fix | Delete
if (typeof typeChecker !== 'function') {
[679] Fix | Delete
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
[680] Fix | Delete
}
[681] Fix | Delete
var propValue = props[propName];
[682] Fix | Delete
var propType = getPropType(propValue);
[683] Fix | Delete
if (propType !== 'object') {
[684] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
[685] Fix | Delete
}
[686] Fix | Delete
for (var key in propValue) {
[687] Fix | Delete
if (has(propValue, key)) {
[688] Fix | Delete
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
[689] Fix | Delete
if (error instanceof Error) {
[690] Fix | Delete
return error;
[691] Fix | Delete
}
[692] Fix | Delete
}
[693] Fix | Delete
}
[694] Fix | Delete
return null;
[695] Fix | Delete
}
[696] Fix | Delete
return createChainableTypeChecker(validate);
[697] Fix | Delete
}
[698] Fix | Delete
[699] Fix | Delete
function createUnionTypeChecker(arrayOfTypeCheckers) {
[700] Fix | Delete
if (!Array.isArray(arrayOfTypeCheckers)) {
[701] Fix | Delete
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
[702] Fix | Delete
return emptyFunctionThatReturnsNull;
[703] Fix | Delete
}
[704] Fix | Delete
[705] Fix | Delete
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
[706] Fix | Delete
var checker = arrayOfTypeCheckers[i];
[707] Fix | Delete
if (typeof checker !== 'function') {
[708] Fix | Delete
printWarning(
[709] Fix | Delete
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
[710] Fix | Delete
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
[711] Fix | Delete
);
[712] Fix | Delete
return emptyFunctionThatReturnsNull;
[713] Fix | Delete
}
[714] Fix | Delete
}
[715] Fix | Delete
[716] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[717] Fix | Delete
var expectedTypes = [];
[718] Fix | Delete
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
[719] Fix | Delete
var checker = arrayOfTypeCheckers[i];
[720] Fix | Delete
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
[721] Fix | Delete
if (checkerResult == null) {
[722] Fix | Delete
return null;
[723] Fix | Delete
}
[724] Fix | Delete
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
[725] Fix | Delete
expectedTypes.push(checkerResult.data.expectedType);
[726] Fix | Delete
}
[727] Fix | Delete
}
[728] Fix | Delete
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
[729] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
[730] Fix | Delete
}
[731] Fix | Delete
return createChainableTypeChecker(validate);
[732] Fix | Delete
}
[733] Fix | Delete
[734] Fix | Delete
function createNodeChecker() {
[735] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[736] Fix | Delete
if (!isNode(props[propName])) {
[737] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
[738] Fix | Delete
}
[739] Fix | Delete
return null;
[740] Fix | Delete
}
[741] Fix | Delete
return createChainableTypeChecker(validate);
[742] Fix | Delete
}
[743] Fix | Delete
[744] Fix | Delete
function invalidValidatorError(componentName, location, propFullName, key, type) {
[745] Fix | Delete
return new PropTypeError(
[746] Fix | Delete
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
[747] Fix | Delete
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
[748] Fix | Delete
);
[749] Fix | Delete
}
[750] Fix | Delete
[751] Fix | Delete
function createShapeTypeChecker(shapeTypes) {
[752] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[753] Fix | Delete
var propValue = props[propName];
[754] Fix | Delete
var propType = getPropType(propValue);
[755] Fix | Delete
if (propType !== 'object') {
[756] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
[757] Fix | Delete
}
[758] Fix | Delete
for (var key in shapeTypes) {
[759] Fix | Delete
var checker = shapeTypes[key];
[760] Fix | Delete
if (typeof checker !== 'function') {
[761] Fix | Delete
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
[762] Fix | Delete
}
[763] Fix | Delete
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
[764] Fix | Delete
if (error) {
[765] Fix | Delete
return error;
[766] Fix | Delete
}
[767] Fix | Delete
}
[768] Fix | Delete
return null;
[769] Fix | Delete
}
[770] Fix | Delete
return createChainableTypeChecker(validate);
[771] Fix | Delete
}
[772] Fix | Delete
[773] Fix | Delete
function createStrictShapeTypeChecker(shapeTypes) {
[774] Fix | Delete
function validate(props, propName, componentName, location, propFullName) {
[775] Fix | Delete
var propValue = props[propName];
[776] Fix | Delete
var propType = getPropType(propValue);
[777] Fix | Delete
if (propType !== 'object') {
[778] Fix | Delete
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
[779] Fix | Delete
}
[780] Fix | Delete
// We need to check all keys in case some are required but missing from props.
[781] Fix | Delete
var allKeys = assign({}, props[propName], shapeTypes);
[782] Fix | Delete
for (var key in allKeys) {
[783] Fix | Delete
var checker = shapeTypes[key];
[784] Fix | Delete
if (has(shapeTypes, key) && typeof checker !== 'function') {
[785] Fix | Delete
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
[786] Fix | Delete
}
[787] Fix | Delete
if (!checker) {
[788] Fix | Delete
return new PropTypeError(
[789] Fix | Delete
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
[790] Fix | Delete
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
[791] Fix | Delete
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
[792] Fix | Delete
);
[793] Fix | Delete
}
[794] Fix | Delete
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
[795] Fix | Delete
if (error) {
[796] Fix | Delete
return error;
[797] Fix | Delete
}
[798] Fix | Delete
}
[799] Fix | Delete
return null;
[800] Fix | Delete
}
[801] Fix | Delete
[802] Fix | Delete
return createChainableTypeChecker(validate);
[803] Fix | Delete
}
[804] Fix | Delete
[805] Fix | Delete
function isNode(propValue) {
[806] Fix | Delete
switch (typeof propValue) {
[807] Fix | Delete
case 'number':
[808] Fix | Delete
case 'string':
[809] Fix | Delete
case 'undefined':
[810] Fix | Delete
return true;
[811] Fix | Delete
case 'boolean':
[812] Fix | Delete
return !propValue;
[813] Fix | Delete
case 'object':
[814] Fix | Delete
if (Array.isArray(propValue)) {
[815] Fix | Delete
return propValue.every(isNode);
[816] Fix | Delete
}
[817] Fix | Delete
if (propValue === null || isValidElement(propValue)) {
[818] Fix | Delete
return true;
[819] Fix | Delete
}
[820] Fix | Delete
[821] Fix | Delete
var iteratorFn = getIteratorFn(propValue);
[822] Fix | Delete
if (iteratorFn) {
[823] Fix | Delete
var iterator = iteratorFn.call(propValue);
[824] Fix | Delete
var step;
[825] Fix | Delete
if (iteratorFn !== propValue.entries) {
[826] Fix | Delete
while (!(step = iterator.next()).done) {
[827] Fix | Delete
if (!isNode(step.value)) {
[828] Fix | Delete
return false;
[829] Fix | Delete
}
[830] Fix | Delete
}
[831] Fix | Delete
} else {
[832] Fix | Delete
// Iterator will provide entry [k,v] tuples rather than values.
[833] Fix | Delete
while (!(step = iterator.next()).done) {
[834] Fix | Delete
var entry = step.value;
[835] Fix | Delete
if (entry) {
[836] Fix | Delete
if (!isNode(entry[1])) {
[837] Fix | Delete
return false;
[838] Fix | Delete
}
[839] Fix | Delete
}
[840] Fix | Delete
}
[841] Fix | Delete
}
[842] Fix | Delete
} else {
[843] Fix | Delete
return false;
[844] Fix | Delete
}
[845] Fix | Delete
[846] Fix | Delete
return true;
[847] Fix | Delete
default:
[848] Fix | Delete
return false;
[849] Fix | Delete
}
[850] Fix | Delete
}
[851] Fix | Delete
[852] Fix | Delete
function isSymbol(propType, propValue) {
[853] Fix | Delete
// Native Symbol.
[854] Fix | Delete
if (propType === 'symbol') {
[855] Fix | Delete
return true;
[856] Fix | Delete
}
[857] Fix | Delete
[858] Fix | Delete
// falsy value can't be a Symbol
[859] Fix | Delete
if (!propValue) {
[860] Fix | Delete
return false;
[861] Fix | Delete
}
[862] Fix | Delete
[863] Fix | Delete
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
[864] Fix | Delete
if (propValue['@@toStringTag'] === 'Symbol') {
[865] Fix | Delete
return true;
[866] Fix | Delete
}
[867] Fix | Delete
[868] Fix | Delete
// Fallback for non-spec compliant Symbols which are polyfilled.
[869] Fix | Delete
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
[870] Fix | Delete
return true;
[871] Fix | Delete
}
[872] Fix | Delete
[873] Fix | Delete
return false;
[874] Fix | Delete
}
[875] Fix | Delete
[876] Fix | Delete
// Equivalent of `typeof` but with special handling for array and regexp.
[877] Fix | Delete
function getPropType(propValue) {
[878] Fix | Delete
var propType = typeof propValue;
[879] Fix | Delete
if (Array.isArray(propValue)) {
[880] Fix | Delete
return 'array';
[881] Fix | Delete
}
[882] Fix | Delete
if (propValue instanceof RegExp) {
[883] Fix | Delete
// Old webkits (at least until Android 4.0) return 'function' rather than
[884] Fix | Delete
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
[885] Fix | Delete
// passes PropTypes.object.
[886] Fix | Delete
return 'object';
[887] Fix | Delete
}
[888] Fix | Delete
if (isSymbol(propType, propValue)) {
[889] Fix | Delete
return 'symbol';
[890] Fix | Delete
}
[891] Fix | Delete
return propType;
[892] Fix | Delete
}
[893] Fix | Delete
[894] Fix | Delete
// This handles more types than `getPropType`. Only used for error messages.
[895] Fix | Delete
// See `createPrimitiveTypeChecker`.
[896] Fix | Delete
function getPreciseType(propValue) {
[897] Fix | Delete
if (typeof propValue === 'undefined' || propValue === null) {
[898] Fix | Delete
return '' + propValue;
[899] Fix | Delete
}
[900] Fix | Delete
var propType = getPropType(propValue);
[901] Fix | Delete
if (propType === 'object') {
[902] Fix | Delete
if (propValue instanceof Date) {
[903] Fix | Delete
return 'date';
[904] Fix | Delete
} else if (propValue instanceof RegExp) {
[905] Fix | Delete
return 'regexp';
[906] Fix | Delete
}
[907] Fix | Delete
}
[908] Fix | Delete
return propType;
[909] Fix | Delete
}
[910] Fix | Delete
[911] Fix | Delete
// Returns a string that is postfixed to a warning about an invalid type.
[912] Fix | Delete
// For example, "undefined" or "of type array"
[913] Fix | Delete
function getPostfixForTypeWarning(value) {
[914] Fix | Delete
var type = getPreciseType(value);
[915] Fix | Delete
switch (type) {
[916] Fix | Delete
case 'array':
[917] Fix | Delete
case 'object':
[918] Fix | Delete
return 'an ' + type;
[919] Fix | Delete
case 'boolean':
[920] Fix | Delete
case 'date':
[921] Fix | Delete
case 'regexp':
[922] Fix | Delete
return 'a ' + type;
[923] Fix | Delete
default:
[924] Fix | Delete
return type;
[925] Fix | Delete
}
[926] Fix | Delete
}
[927] Fix | Delete
[928] Fix | Delete
// Returns class name of the object, if any.
[929] Fix | Delete
function getClassName(propValue) {
[930] Fix | Delete
if (!propValue.constructor || !propValue.constructor.name) {
[931] Fix | Delete
return ANONYMOUS;
[932] Fix | Delete
}
[933] Fix | Delete
return propValue.constructor.name;
[934] Fix | Delete
}
[935] Fix | Delete
[936] Fix | Delete
ReactPropTypes.checkPropTypes = checkPropTypes;
[937] Fix | Delete
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
[938] Fix | Delete
ReactPropTypes.PropTypes = ReactPropTypes;
[939] Fix | Delete
[940] Fix | Delete
return ReactPropTypes;
[941] Fix | Delete
};
[942] Fix | Delete
[943] Fix | Delete
}).call(this,require("hmr7eR"))
[944] Fix | Delete
},{"./checkPropTypes":3,"./lib/ReactPropTypesSecret":7,"./lib/has":8,"hmr7eR":1,"object-assign":2,"react-is":11}],6:[function(require,module,exports){
[945] Fix | Delete
(function (process){
[946] Fix | Delete
/**
[947] Fix | Delete
* Copyright (c) 2013-present, Facebook, Inc.
[948] Fix | Delete
*
[949] Fix | Delete
* This source code is licensed under the MIT license found in the
[950] Fix | Delete
* LICENSE file in the root directory of this source tree.
[951] Fix | Delete
*/
[952] Fix | Delete
[953] Fix | Delete
if (process.env.NODE_ENV !== 'production') {
[954] Fix | Delete
var ReactIs = require('react-is');
[955] Fix | Delete
[956] Fix | Delete
// By explicitly using `prop-types` you are opting into new development behavior.
[957] Fix | Delete
// http://fb.me/prop-types-in-prod
[958] Fix | Delete
var throwOnDirectAccess = true;
[959] Fix | Delete
module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);
[960] Fix | Delete
} else {
[961] Fix | Delete
// By explicitly using `prop-types` you are opting into new production behavior.
[962] Fix | Delete
// http://fb.me/prop-types-in-prod
[963] Fix | Delete
module.exports = require('./factoryWithThrowingShims')();
[964] Fix | Delete
}
[965] Fix | Delete
[966] Fix | Delete
}).call(this,require("hmr7eR"))
[967] Fix | Delete
},{"./factoryWithThrowingShims":4,"./factoryWithTypeCheckers":5,"hmr7eR":1,"react-is":11}],7:[function(require,module,exports){
[968] Fix | Delete
/**
[969] Fix | Delete
* Copyright (c) 2013-present, Facebook, Inc.
[970] Fix | Delete
*
[971] Fix | Delete
* This source code is licensed under the MIT license found in the
[972] Fix | Delete
* LICENSE file in the root directory of this source tree.
[973] Fix | Delete
*/
[974] Fix | Delete
[975] Fix | Delete
'use strict';
[976] Fix | Delete
[977] Fix | Delete
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
[978] Fix | Delete
[979] Fix | Delete
module.exports = ReactPropTypesSecret;
[980] Fix | Delete
[981] Fix | Delete
},{}],8:[function(require,module,exports){
[982] Fix | Delete
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
[983] Fix | Delete
[984] Fix | Delete
},{}],9:[function(require,module,exports){
[985] Fix | Delete
(function (process){
[986] Fix | Delete
/** @license React v16.13.1
[987] Fix | Delete
* react-is.development.js
[988] Fix | Delete
*
[989] Fix | Delete
* Copyright (c) Facebook, Inc. and its affiliates.
[990] Fix | Delete
*
[991] Fix | Delete
* This source code is licensed under the MIT license found in the
[992] Fix | Delete
* LICENSE file in the root directory of this source tree.
[993] Fix | Delete
*/
[994] Fix | Delete
[995] Fix | Delete
'use strict';
[996] Fix | Delete
[997] Fix | Delete
[998] Fix | Delete
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function