diff --git a/README.md b/README.md
index ac8f312..ebc3211 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,8 @@
[](https://badge.fury.io/js/react-add-to-calendar)
[](https://travis-ci.org/jasonsalzman/react-add-to-calendar)
-[](https://david-dm.org/jasonsalzman/react-add-to-calendar)
+[](https://david-dm.org/jasonsalzman/react-add-to-calendar)
+[](https://david-dm.org/jasonsalzman/react-add-to-calendar)
[](https://codecov.io/gh/jasonsalzman/react-add-to-calendar)
[](https://npmjs.org/package/react-add-to-calendar)
diff --git a/docs-site/bundle.js b/docs-site/bundle.js
index a04ead3..a375a61 100644
--- a/docs-site/bundle.js
+++ b/docs-site/bundle.js
@@ -80,11 +80,11 @@
var _react2 = _interopRequireDefault(_react);
- var _reactDom = __webpack_require__(35);
+ var _reactDom = __webpack_require__(31);
var _reactDom2 = _interopRequireDefault(_reactDom);
- var _root = __webpack_require__(173);
+ var _root = __webpack_require__(164);
var _root2 = _interopRequireDefault(_root);
@@ -126,18 +126,18 @@
var ReactClass = __webpack_require__(21);
var ReactDOMFactories = __webpack_require__(26);
var ReactElement = __webpack_require__(9);
- var ReactPropTypes = __webpack_require__(32);
- var ReactVersion = __webpack_require__(33);
+ var ReactPropTypes = __webpack_require__(27);
+ var ReactVersion = __webpack_require__(29);
- var onlyChild = __webpack_require__(34);
+ var onlyChild = __webpack_require__(30);
var warning = __webpack_require__(11);
var createElement = ReactElement.createElement;
var createFactory = ReactElement.createFactory;
var cloneElement = ReactElement.cloneElement;
- if ((undefined) !== 'production') {
- var ReactElementValidator = __webpack_require__(27);
+ if (false) {
+ var ReactElementValidator = require('./ReactElementValidator');
createElement = ReactElementValidator.createElement;
createFactory = ReactElementValidator.createFactory;
cloneElement = ReactElementValidator.cloneElement;
@@ -145,10 +145,10 @@
var __spread = _assign;
- if ((undefined) !== 'production') {
+ if (false) {
var warned = false;
__spread = function () {
- (undefined) !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
warned = true;
return _assign.apply(null, arguments);
};
@@ -565,7 +565,7 @@
var standardReleaser = function (instance) {
var Klass = this;
- !(instance instanceof Klass) ? (undefined) !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
+ !(instance instanceof Klass) ? false ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
instance.destructor();
if (Klass.instancePool.length < Klass.poolSize) {
Klass.instancePool.push(instance);
@@ -678,7 +678,7 @@
*/
function invariant(condition, format, a, b, c, d, e, f) {
- if ((undefined) !== 'production') {
+ if (false) {
if (format === undefined) {
throw new Error('invariant requires an error message argument');
}
@@ -743,7 +743,7 @@
var specialPropKeyWarningShown, specialPropRefWarningShown;
function hasValidRef(config) {
- if ((undefined) !== 'production') {
+ if (false) {
if (hasOwnProperty.call(config, 'ref')) {
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
if (getter && getter.isReactWarning) {
@@ -755,7 +755,7 @@
}
function hasValidKey(config) {
- if ((undefined) !== 'production') {
+ if (false) {
if (hasOwnProperty.call(config, 'key')) {
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
if (getter && getter.isReactWarning) {
@@ -770,7 +770,7 @@
var warnAboutAccessingKey = function () {
if (!specialPropKeyWarningShown) {
specialPropKeyWarningShown = true;
- (undefined) !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
+ false ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
}
};
warnAboutAccessingKey.isReactWarning = true;
@@ -784,7 +784,7 @@
var warnAboutAccessingRef = function () {
if (!specialPropRefWarningShown) {
specialPropRefWarningShown = true;
- (undefined) !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
+ false ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
}
};
warnAboutAccessingRef.isReactWarning = true;
@@ -829,7 +829,7 @@
_owner: owner
};
- if ((undefined) !== 'production') {
+ if (false) {
// The validation flag is currently mutative. We put it on
// an external backing store so that we can freeze the whole object.
// This can be replaced with a WeakMap once they are implemented in
@@ -939,7 +939,7 @@
}
}
}
- if ((undefined) !== 'production') {
+ if (false) {
if (key || ref) {
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
@@ -1120,7 +1120,7 @@
var warning = emptyFunction;
- if ((undefined) !== 'production') {
+ if (false) {
(function () {
var printWarning = function printWarning(format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -1225,7 +1225,7 @@
'use strict';
var canDefineProperty = false;
- if ((undefined) !== 'production') {
+ if (false) {
try {
Object.defineProperty({}, 'x', { get: function () {} });
canDefineProperty = true;
@@ -1339,7 +1339,7 @@
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
}
} else {
- if ((undefined) !== 'production') {
+ if (false) {
var mapsAsChildrenAddendum = '';
if (ReactCurrentOwner.current) {
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
@@ -1347,7 +1347,7 @@
mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
}
}
- (undefined) !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
didWarnAboutMaps = true;
}
// Iterator will provide entry [k,v] tuples rather than values.
@@ -1362,7 +1362,7 @@
}
} else if (type === 'object') {
var addendum = '';
- if ((undefined) !== 'production') {
+ if (false) {
addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
if (children._isReactElement) {
addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
@@ -1375,7 +1375,7 @@
}
}
var childrenString = String(children);
- true ? (undefined) !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
+ true ? false ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
}
}
@@ -1584,7 +1584,7 @@
* @protected
*/
ReactComponent.prototype.setState = function (partialState, callback) {
- !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? (undefined) !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
+ !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? false ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
this.updater.enqueueSetState(this, partialState);
if (callback) {
this.updater.enqueueCallback(this, callback, 'setState');
@@ -1617,7 +1617,7 @@
* we would like to deprecate them, we're not going to move them over to this
* modern base class. Instead, we define a getter that warns if it's accessed.
*/
- if ((undefined) !== 'production') {
+ if (false) {
var deprecatedAPIs = {
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
@@ -1626,7 +1626,7 @@
if (canDefineProperty) {
Object.defineProperty(ReactComponent.prototype, methodName, {
get: function () {
- (undefined) !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
return undefined;
}
});
@@ -1661,9 +1661,9 @@
var warning = __webpack_require__(11);
function warnNoop(publicInstance, callerName) {
- if ((undefined) !== 'production') {
+ if (false) {
var constructor = publicInstance.constructor;
- (undefined) !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
}
}
@@ -1760,7 +1760,7 @@
var emptyObject = {};
- if ((undefined) !== 'production') {
+ if (false) {
Object.freeze(emptyObject);
}
@@ -2140,13 +2140,13 @@
}
},
childContextTypes: function (Constructor, childContextTypes) {
- if ((undefined) !== 'production') {
+ if (false) {
validateTypeDef(Constructor, childContextTypes, ReactPropTypeLocations.childContext);
}
Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
},
contextTypes: function (Constructor, contextTypes) {
- if ((undefined) !== 'production') {
+ if (false) {
validateTypeDef(Constructor, contextTypes, ReactPropTypeLocations.context);
}
Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
@@ -2163,7 +2163,7 @@
}
},
propTypes: function (Constructor, propTypes) {
- if ((undefined) !== 'production') {
+ if (false) {
validateTypeDef(Constructor, propTypes, ReactPropTypeLocations.prop);
}
Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
@@ -2179,7 +2179,7 @@
if (typeDef.hasOwnProperty(propName)) {
// use a warning instead of an invariant so components
// don't show up in prod but only in __DEV__
- (undefined) !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
+ false ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
}
}
}
@@ -2189,12 +2189,12 @@
// Disallow overriding of base class methods unless explicitly allowed.
if (ReactClassMixin.hasOwnProperty(name)) {
- !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? (undefined) !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;
+ !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? false ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;
}
// Disallow defining methods more than once unless explicitly allowed.
if (isAlreadyDefined) {
- !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? (undefined) !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;
+ !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? false ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;
}
}
@@ -2204,18 +2204,18 @@
*/
function mixSpecIntoComponent(Constructor, spec) {
if (!spec) {
- if ((undefined) !== 'production') {
+ if (false) {
var typeofSpec = typeof spec;
var isMixinValid = typeofSpec === 'object' && spec !== null;
- (undefined) !== 'production' ? warning(isMixinValid, '%s: You\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(isMixinValid, '%s: You\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;
}
return;
}
- !(typeof spec !== 'function') ? (undefined) !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;
- !!ReactElement.isValidElement(spec) ? (undefined) !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;
+ !(typeof spec !== 'function') ? false ? invariant(false, 'ReactClass: You\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;
+ !!ReactElement.isValidElement(spec) ? false ? invariant(false, 'ReactClass: You\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;
var proto = Constructor.prototype;
var autoBindPairs = proto.__reactAutoBindPairs;
@@ -2260,7 +2260,7 @@
var specPolicy = ReactClassInterface[name];
// These cases should already be caught by validateMethodOverride.
- !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? (undefined) !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;
+ !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? false ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;
// For methods which are defined more than once, call the existing
// methods before calling the new property, merging if appropriate.
@@ -2271,7 +2271,7 @@
}
} else {
proto[name] = property;
- if ((undefined) !== 'production') {
+ if (false) {
// Add verbose displayName to the function, which helps when looking
// at profiling tools.
if (typeof property === 'function' && spec.displayName) {
@@ -2295,10 +2295,10 @@
}
var isReserved = name in RESERVED_SPEC_KEYS;
- !!isReserved ? (undefined) !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;
+ !!isReserved ? false ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;
var isInherited = name in Constructor;
- !!isInherited ? (undefined) !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;
+ !!isInherited ? false ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;
Constructor[name] = property;
}
}
@@ -2311,11 +2311,11 @@
* @return {object} one after it has been mutated to contain everything in two.
*/
function mergeIntoWithNoDuplicateKeys(one, two) {
- !(one && two && typeof one === 'object' && typeof two === 'object') ? (undefined) !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
+ !(one && two && typeof one === 'object' && typeof two === 'object') ? false ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
for (var key in two) {
if (two.hasOwnProperty(key)) {
- !(one[key] === undefined) ? (undefined) !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
+ !(one[key] === undefined) ? false ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
one[key] = two[key];
}
}
@@ -2370,7 +2370,7 @@
*/
function bindAutoBindMethod(component, method) {
var boundMethod = method.bind(component);
- if ((undefined) !== 'production') {
+ if (false) {
boundMethod.__reactBoundContext = component;
boundMethod.__reactBoundMethod = method;
boundMethod.__reactBoundArguments = null;
@@ -2385,9 +2385,9 @@
// ignore the value of "this" that the user is trying to use, so
// let's warn.
if (newThis !== component && newThis !== null) {
- (undefined) !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
} else if (!args.length) {
- (undefined) !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
return boundMethod;
}
var reboundMethod = _bind.apply(boundMethod, arguments);
@@ -2465,8 +2465,8 @@
// This constructor gets overridden by mocks. The argument is used
// by mocks to assert on what gets mounted.
- if ((undefined) !== 'production') {
- (undefined) !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;
}
// Wire up auto-binding
@@ -2485,7 +2485,7 @@
// getInitialState and componentWillMount methods for initialization.
var initialState = this.getInitialState ? this.getInitialState() : null;
- if ((undefined) !== 'production') {
+ if (false) {
// We allow auto-mocks to proceed as if they're returning null.
if (initialState === undefined && this.getInitialState._isMockFunction) {
// This is probably bad practice. Consider warning here and
@@ -2493,7 +2493,7 @@
initialState = null;
}
}
- !(typeof initialState === 'object' && !Array.isArray(initialState)) ? (undefined) !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;
+ !(typeof initialState === 'object' && !Array.isArray(initialState)) ? false ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;
this.state = initialState;
};
@@ -2510,7 +2510,7 @@
Constructor.defaultProps = Constructor.getDefaultProps();
}
- if ((undefined) !== 'production') {
+ if (false) {
// This is a tag to indicate that the use of these method names is ok,
// since it's used with createClass. If it's not, then it's likely a
// mistake so we'll warn you to use the static property, property
@@ -2523,11 +2523,11 @@
}
}
- !Constructor.prototype.render ? (undefined) !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
+ !Constructor.prototype.render ? false ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
- if ((undefined) !== 'production') {
- (undefined) !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0;
- (undefined) !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;
}
// Reduce time spent doing lookups by setting these on the prototype.
@@ -2617,7 +2617,7 @@
var keyMirror = function keyMirror(obj) {
var ret = {};
var key;
- !(obj instanceof Object && !Array.isArray(obj)) ? (undefined) !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;
+ !(obj instanceof Object && !Array.isArray(obj)) ? false ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;
for (key in obj) {
if (!obj.hasOwnProperty(key)) {
continue;
@@ -2648,7 +2648,7 @@
var ReactPropTypeLocationNames = {};
- if ((undefined) !== 'production') {
+ if (false) {
ReactPropTypeLocationNames = {
prop: 'prop',
context: 'context',
@@ -2722,8 +2722,8 @@
* @private
*/
var createDOMFactory = ReactElement.createFactory;
- if ((undefined) !== 'production') {
- var ReactElementValidator = __webpack_require__(27);
+ if (false) {
+ var ReactElementValidator = require('./ReactElementValidator');
createDOMFactory = ReactElementValidator.createFactory;
}
@@ -2874,886 +2874,6 @@
/***/ },
/* 27 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactElementValidator
- */
-
- /**
- * ReactElementValidator provides a wrapper around a element factory
- * which validates the props passed to the element. This is intended to be
- * used only in DEV and could be replaced by a static type checker for languages
- * that support it.
- */
-
- 'use strict';
-
- var ReactCurrentOwner = __webpack_require__(10);
- var ReactComponentTreeHook = __webpack_require__(28);
- var ReactElement = __webpack_require__(9);
- var ReactPropTypeLocations = __webpack_require__(22);
-
- var checkReactTypeSpec = __webpack_require__(29);
-
- var canDefineProperty = __webpack_require__(13);
- var getIteratorFn = __webpack_require__(15);
- var warning = __webpack_require__(11);
-
- function getDeclarationErrorAddendum() {
- if (ReactCurrentOwner.current) {
- var name = ReactCurrentOwner.current.getName();
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
- }
-
- /**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
- var ownerHasKeyUseWarning = {};
-
- function getCurrentComponentErrorInfo(parentType) {
- var info = getDeclarationErrorAddendum();
-
- if (!info) {
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
- if (parentName) {
- info = ' Check the top-level render call using <' + parentName + '>.';
- }
- }
- return info;
- }
-
- /**
- * Warn if the element doesn't have an explicit key assigned to it.
- * This element is in an array. The array could grow and shrink or be
- * reordered. All children that haven't already been validated are required to
- * have a "key" property assigned to it. Error statuses are cached so a warning
- * will only be shown once.
- *
- * @internal
- * @param {ReactElement} element Element that requires a key.
- * @param {*} parentType element's parent's type.
- */
- function validateExplicitKey(element, parentType) {
- if (!element._store || element._store.validated || element.key != null) {
- return;
- }
- element._store.validated = true;
-
- var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
-
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
- if (memoizer[currentComponentErrorInfo]) {
- return;
- }
- memoizer[currentComponentErrorInfo] = true;
-
- // Usually the current owner is the offender, but if it accepts children as a
- // property, it may be the creator of the child that's responsible for
- // assigning it a key.
- var childOwner = '';
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
- // Give the component that originally created this child.
- childOwner = ' It was passed a child from ' + element._owner.getName() + '.';
- }
-
- (undefined) !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
- }
-
- /**
- * Ensure that every element either is passed in a static location, in an
- * array with an explicit keys property defined, or in an object literal
- * with valid key property.
- *
- * @internal
- * @param {ReactNode} node Statically passed child of any type.
- * @param {*} parentType node's parent's type.
- */
- function validateChildKeys(node, parentType) {
- if (typeof node !== 'object') {
- return;
- }
- if (Array.isArray(node)) {
- for (var i = 0; i < node.length; i++) {
- var child = node[i];
- if (ReactElement.isValidElement(child)) {
- validateExplicitKey(child, parentType);
- }
- }
- } else if (ReactElement.isValidElement(node)) {
- // This element was passed in a valid location.
- if (node._store) {
- node._store.validated = true;
- }
- } else if (node) {
- var iteratorFn = getIteratorFn(node);
- // Entry iterators provide implicit keys.
- if (iteratorFn) {
- if (iteratorFn !== node.entries) {
- var iterator = iteratorFn.call(node);
- var step;
- while (!(step = iterator.next()).done) {
- if (ReactElement.isValidElement(step.value)) {
- validateExplicitKey(step.value, parentType);
- }
- }
- }
- }
- }
- }
-
- /**
- * Given an element, validate that its props follow the propTypes definition,
- * provided by the type.
- *
- * @param {ReactElement} element
- */
- function validatePropTypes(element) {
- var componentClass = element.type;
- if (typeof componentClass !== 'function') {
- return;
- }
- var name = componentClass.displayName || componentClass.name;
- if (componentClass.propTypes) {
- checkReactTypeSpec(componentClass.propTypes, element.props, ReactPropTypeLocations.prop, name, element, null);
- }
- if (typeof componentClass.getDefaultProps === 'function') {
- (undefined) !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
- }
- }
-
- var ReactElementValidator = {
-
- createElement: function (type, props, children) {
- var validType = typeof type === 'string' || typeof type === 'function';
- // We warn in this case but don't throw. We expect the element creation to
- // succeed and there will likely be errors in render.
- if (!validType) {
- (undefined) !== 'production' ? warning(false, 'React.createElement: type should not be null, undefined, boolean, or ' + 'number. It should be a string (for DOM elements) or a ReactClass ' + '(for composite components).%s', getDeclarationErrorAddendum()) : void 0;
- }
-
- var element = ReactElement.createElement.apply(this, arguments);
-
- // The result can be nullish if a mock or a custom function is used.
- // TODO: Drop this when these are no longer allowed as the type argument.
- if (element == null) {
- return element;
- }
-
- // Skip key warning if the type isn't valid since our key validation logic
- // doesn't expect a non-string/function type and can throw confusing errors.
- // We don't want exception behavior to differ between dev and prod.
- // (Rendering will throw with a helpful message and as soon as the type is
- // fixed, the key warnings will appear.)
- if (validType) {
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], type);
- }
- }
-
- validatePropTypes(element);
-
- return element;
- },
-
- createFactory: function (type) {
- var validatedFactory = ReactElementValidator.createElement.bind(null, type);
- // Legacy hook TODO: Warn if this is accessed
- validatedFactory.type = type;
-
- if ((undefined) !== 'production') {
- if (canDefineProperty) {
- Object.defineProperty(validatedFactory, 'type', {
- enumerable: false,
- get: function () {
- (undefined) !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;
- Object.defineProperty(this, 'type', {
- value: type
- });
- return type;
- }
- });
- }
- }
-
- return validatedFactory;
- },
-
- cloneElement: function (element, props, children) {
- var newElement = ReactElement.cloneElement.apply(this, arguments);
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], newElement.type);
- }
- validatePropTypes(newElement);
- return newElement;
- }
-
- };
-
- module.exports = ReactElementValidator;
-
-/***/ },
-/* 28 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactComponentTreeHook
- */
-
- 'use strict';
-
- var _prodInvariant = __webpack_require__(7);
-
- var ReactCurrentOwner = __webpack_require__(10);
-
- var invariant = __webpack_require__(8);
- var warning = __webpack_require__(11);
-
- function isNative(fn) {
- // Based on isNative() from Lodash
- var funcToString = Function.prototype.toString;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var reIsNative = RegExp('^' + funcToString
- // Take an example native function source for comparison
- .call(hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
- try {
- var source = funcToString.call(fn);
- return reIsNative.test(source);
- } catch (err) {
- return false;
- }
- }
-
- var canUseCollections =
- // Array.from
- typeof Array.from === 'function' &&
- // Map
- typeof Map === 'function' && isNative(Map) &&
- // Map.prototype.keys
- Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
- // Set
- typeof Set === 'function' && isNative(Set) &&
- // Set.prototype.keys
- Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
-
- var itemMap;
- var rootIDSet;
-
- var itemByKey;
- var rootByKey;
-
- if (canUseCollections) {
- itemMap = new Map();
- rootIDSet = new Set();
- } else {
- itemByKey = {};
- rootByKey = {};
- }
-
- var unmountedIDs = [];
-
- // Use non-numeric keys to prevent V8 performance issues:
- // https://github.com/facebook/react/pull/7232
- function getKeyFromID(id) {
- return '.' + id;
- }
- function getIDFromKey(key) {
- return parseInt(key.substr(1), 10);
- }
-
- function get(id) {
- if (canUseCollections) {
- return itemMap.get(id);
- } else {
- var key = getKeyFromID(id);
- return itemByKey[key];
- }
- }
-
- function remove(id) {
- if (canUseCollections) {
- itemMap['delete'](id);
- } else {
- var key = getKeyFromID(id);
- delete itemByKey[key];
- }
- }
-
- function create(id, element, parentID) {
- var item = {
- element: element,
- parentID: parentID,
- text: null,
- childIDs: [],
- isMounted: false,
- updateCount: 0
- };
-
- if (canUseCollections) {
- itemMap.set(id, item);
- } else {
- var key = getKeyFromID(id);
- itemByKey[key] = item;
- }
- }
-
- function addRoot(id) {
- if (canUseCollections) {
- rootIDSet.add(id);
- } else {
- var key = getKeyFromID(id);
- rootByKey[key] = true;
- }
- }
-
- function removeRoot(id) {
- if (canUseCollections) {
- rootIDSet['delete'](id);
- } else {
- var key = getKeyFromID(id);
- delete rootByKey[key];
- }
- }
-
- function getRegisteredIDs() {
- if (canUseCollections) {
- return Array.from(itemMap.keys());
- } else {
- return Object.keys(itemByKey).map(getIDFromKey);
- }
- }
-
- function getRootIDs() {
- if (canUseCollections) {
- return Array.from(rootIDSet.keys());
- } else {
- return Object.keys(rootByKey).map(getIDFromKey);
- }
- }
-
- function purgeDeep(id) {
- var item = get(id);
- if (item) {
- var childIDs = item.childIDs;
-
- remove(id);
- childIDs.forEach(purgeDeep);
- }
- }
-
- function describeComponentFrame(name, source, ownerName) {
- return '\n in ' + name + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
- }
-
- function getDisplayName(element) {
- if (element == null) {
- return '#empty';
- } else if (typeof element === 'string' || typeof element === 'number') {
- return '#text';
- } else if (typeof element.type === 'string') {
- return element.type;
- } else {
- return element.type.displayName || element.type.name || 'Unknown';
- }
- }
-
- function describeID(id) {
- var name = ReactComponentTreeHook.getDisplayName(id);
- var element = ReactComponentTreeHook.getElement(id);
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var ownerName;
- if (ownerID) {
- ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
- }
- (undefined) !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
- return describeComponentFrame(name, element && element._source, ownerName);
- }
-
- var ReactComponentTreeHook = {
- onSetChildren: function (id, nextChildIDs) {
- var item = get(id);
- item.childIDs = nextChildIDs;
-
- for (var i = 0; i < nextChildIDs.length; i++) {
- var nextChildID = nextChildIDs[i];
- var nextChild = get(nextChildID);
- !nextChild ? (undefined) !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;
- !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? (undefined) !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;
- !nextChild.isMounted ? (undefined) !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;
- if (nextChild.parentID == null) {
- nextChild.parentID = id;
- // TODO: This shouldn't be necessary but mounting a new root during in
- // componentWillMount currently causes not-yet-mounted components to
- // be purged from our tree data so their parent ID is missing.
- }
- !(nextChild.parentID === id) ? (undefined) !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;
- }
- },
- onBeforeMountComponent: function (id, element, parentID) {
- create(id, element, parentID);
- },
- onBeforeUpdateComponent: function (id, element) {
- var item = get(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.element = element;
- },
- onMountComponent: function (id) {
- var item = get(id);
- item.isMounted = true;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- addRoot(id);
- }
- },
- onUpdateComponent: function (id) {
- var item = get(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.updateCount++;
- },
- onUnmountComponent: function (id) {
- var item = get(id);
- if (item) {
- // We need to check if it exists.
- // `item` might not exist if it is inside an error boundary, and a sibling
- // error boundary child threw while mounting. Then this instance never
- // got a chance to mount, but it still gets an unmounting event during
- // the error boundary cleanup.
- item.isMounted = false;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- removeRoot(id);
- }
- }
- unmountedIDs.push(id);
- },
- purgeUnmountedComponents: function () {
- if (ReactComponentTreeHook._preventPurging) {
- // Should only be used for testing.
- return;
- }
-
- for (var i = 0; i < unmountedIDs.length; i++) {
- var id = unmountedIDs[i];
- purgeDeep(id);
- }
- unmountedIDs.length = 0;
- },
- isMounted: function (id) {
- var item = get(id);
- return item ? item.isMounted : false;
- },
- getCurrentStackAddendum: function (topElement) {
- var info = '';
- if (topElement) {
- var type = topElement.type;
- var name = typeof type === 'function' ? type.displayName || type.name : type;
- var owner = topElement._owner;
- info += describeComponentFrame(name || 'Unknown', topElement._source, owner && owner.getName());
- }
-
- var currentOwner = ReactCurrentOwner.current;
- var id = currentOwner && currentOwner._debugID;
-
- info += ReactComponentTreeHook.getStackAddendumByID(id);
- return info;
- },
- getStackAddendumByID: function (id) {
- var info = '';
- while (id) {
- info += describeID(id);
- id = ReactComponentTreeHook.getParentID(id);
- }
- return info;
- },
- getChildIDs: function (id) {
- var item = get(id);
- return item ? item.childIDs : [];
- },
- getDisplayName: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element) {
- return null;
- }
- return getDisplayName(element);
- },
- getElement: function (id) {
- var item = get(id);
- return item ? item.element : null;
- },
- getOwnerID: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element || !element._owner) {
- return null;
- }
- return element._owner._debugID;
- },
- getParentID: function (id) {
- var item = get(id);
- return item ? item.parentID : null;
- },
- getSource: function (id) {
- var item = get(id);
- var element = item ? item.element : null;
- var source = element != null ? element._source : null;
- return source;
- },
- getText: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (typeof element === 'string') {
- return element;
- } else if (typeof element === 'number') {
- return '' + element;
- } else {
- return null;
- }
- },
- getUpdateCount: function (id) {
- var item = get(id);
- return item ? item.updateCount : 0;
- },
-
-
- getRegisteredIDs: getRegisteredIDs,
-
- getRootIDs: getRootIDs
- };
-
- module.exports = ReactComponentTreeHook;
-
-/***/ },
-/* 29 */
-/***/ function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule checkReactTypeSpec
- */
-
- 'use strict';
-
- var _prodInvariant = __webpack_require__(7);
-
- var ReactPropTypeLocationNames = __webpack_require__(24);
- var ReactPropTypesSecret = __webpack_require__(31);
-
- var invariant = __webpack_require__(8);
- var warning = __webpack_require__(11);
-
- var ReactComponentTreeHook;
-
- if (typeof process !== 'undefined' && process.env && (undefined) === 'test') {
- // Temporary hack.
- // Inline requires don't work well with Jest:
- // https://github.com/facebook/react/issues/7240
- // Remove the inline requires when we don't need them anymore:
- // https://github.com/facebook/react/pull/7178
- ReactComponentTreeHook = __webpack_require__(28);
- }
-
- var loggedTypeFailures = {};
-
- /**
- * Assert that the values match with the type specs.
- * Error messages are memorized and will only be shown once.
- *
- * @param {object} typeSpecs Map of name to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @param {string} componentName Name of the component for error messages.
- * @param {?object} element The React element that is being type-checked
- * @param {?number} debugID The React component instance that is being type-checked
- * @private
- */
- function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
- for (var typeSpecName in typeSpecs) {
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
- var error;
- // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- !(typeof typeSpecs[typeSpecName] === 'function') ? (undefined) !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
- } catch (ex) {
- error = ex;
- }
- (undefined) !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
-
- var componentStackInfo = '';
-
- if ((undefined) !== 'production') {
- if (!ReactComponentTreeHook) {
- ReactComponentTreeHook = __webpack_require__(28);
- }
- if (debugID !== null) {
- componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
- } else if (element !== null) {
- componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
- }
- }
-
- (undefined) !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
- }
- }
- }
- }
-
- module.exports = checkReactTypeSpec;
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)))
-
-/***/ },
-/* 30 */
-/***/ function(module, exports) {
-
- // shim for using process in browser
- var process = module.exports = {};
-
- // cached from whatever global is present so that test runners that stub it
- // don't break things. But we need to wrap it in a try catch in case it is
- // wrapped in strict mode code which doesn't define any globals. It's inside a
- // function because try/catches deoptimize in certain engines.
-
- var cachedSetTimeout;
- var cachedClearTimeout;
-
- function defaultSetTimout() {
- throw new Error('setTimeout has not been defined');
- }
- function defaultClearTimeout () {
- throw new Error('clearTimeout has not been defined');
- }
- (function () {
- try {
- if (typeof setTimeout === 'function') {
- cachedSetTimeout = setTimeout;
- } else {
- cachedSetTimeout = defaultSetTimout;
- }
- } catch (e) {
- cachedSetTimeout = defaultSetTimout;
- }
- try {
- if (typeof clearTimeout === 'function') {
- cachedClearTimeout = clearTimeout;
- } else {
- cachedClearTimeout = defaultClearTimeout;
- }
- } catch (e) {
- cachedClearTimeout = defaultClearTimeout;
- }
- } ())
- function runTimeout(fun) {
- if (cachedSetTimeout === setTimeout) {
- //normal enviroments in sane situations
- return setTimeout(fun, 0);
- }
- // if setTimeout wasn't available but was latter defined
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
- cachedSetTimeout = setTimeout;
- return setTimeout(fun, 0);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedSetTimeout(fun, 0);
- } catch(e){
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedSetTimeout.call(null, fun, 0);
- } catch(e){
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
- return cachedSetTimeout.call(this, fun, 0);
- }
- }
-
-
- }
- function runClearTimeout(marker) {
- if (cachedClearTimeout === clearTimeout) {
- //normal enviroments in sane situations
- return clearTimeout(marker);
- }
- // if clearTimeout wasn't available but was latter defined
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
- cachedClearTimeout = clearTimeout;
- return clearTimeout(marker);
- }
- try {
- // when when somebody has screwed with setTimeout but no I.E. maddness
- return cachedClearTimeout(marker);
- } catch (e){
- try {
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
- return cachedClearTimeout.call(null, marker);
- } catch (e){
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
- return cachedClearTimeout.call(this, marker);
- }
- }
-
-
-
- }
- var queue = [];
- var draining = false;
- var currentQueue;
- var queueIndex = -1;
-
- function cleanUpNextTick() {
- if (!draining || !currentQueue) {
- return;
- }
- draining = false;
- if (currentQueue.length) {
- queue = currentQueue.concat(queue);
- } else {
- queueIndex = -1;
- }
- if (queue.length) {
- drainQueue();
- }
- }
-
- function drainQueue() {
- if (draining) {
- return;
- }
- var timeout = runTimeout(cleanUpNextTick);
- draining = true;
-
- var len = queue.length;
- while(len) {
- currentQueue = queue;
- queue = [];
- while (++queueIndex < len) {
- if (currentQueue) {
- currentQueue[queueIndex].run();
- }
- }
- queueIndex = -1;
- len = queue.length;
- }
- currentQueue = null;
- draining = false;
- runClearTimeout(timeout);
- }
-
- process.nextTick = function (fun) {
- var args = new Array(arguments.length - 1);
- if (arguments.length > 1) {
- for (var i = 1; i < arguments.length; i++) {
- args[i - 1] = arguments[i];
- }
- }
- queue.push(new Item(fun, args));
- if (queue.length === 1 && !draining) {
- runTimeout(drainQueue);
- }
- };
-
- // v8 likes predictible objects
- function Item(fun, array) {
- this.fun = fun;
- this.array = array;
- }
- Item.prototype.run = function () {
- this.fun.apply(null, this.array);
- };
- process.title = 'browser';
- process.browser = true;
- process.env = {};
- process.argv = [];
- process.version = ''; // empty string to avoid regexp issues
- process.versions = {};
-
- function noop() {}
-
- process.on = noop;
- process.addListener = noop;
- process.once = noop;
- process.off = noop;
- process.removeListener = noop;
- process.removeAllListeners = noop;
- process.emit = noop;
-
- process.binding = function (name) {
- throw new Error('process.binding is not supported');
- };
-
- process.cwd = function () { return '/' };
- process.chdir = function (dir) {
- throw new Error('process.chdir is not supported');
- };
- process.umask = function() { return 0; };
-
-
-/***/ },
-/* 31 */
-/***/ function(module, exports) {
-
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactPropTypesSecret
- */
-
- 'use strict';
-
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
-
- module.exports = ReactPropTypesSecret;
-
-/***/ },
-/* 32 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -3771,7 +2891,7 @@
var ReactElement = __webpack_require__(9);
var ReactPropTypeLocationNames = __webpack_require__(24);
- var ReactPropTypesSecret = __webpack_require__(31);
+ var ReactPropTypesSecret = __webpack_require__(28);
var emptyFunction = __webpack_require__(12);
var getIteratorFn = __webpack_require__(15);
@@ -3879,17 +2999,17 @@
PropTypeError.prototype = Error.prototype;
function createChainableTypeChecker(validate) {
- if ((undefined) !== 'production') {
+ if (false) {
var manualPropTypeCallCache = {};
}
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
componentName = componentName || ANONYMOUS;
propFullName = propFullName || propName;
- if ((undefined) !== 'production') {
+ if (false) {
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
var cacheKey = componentName + ':' + propName;
if (!manualPropTypeCallCache[cacheKey]) {
- (undefined) !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in the next major version. You may be ' + 'seeing this warning due to a third-party PropTypes library. ' + 'See https://fb.me/react-warning-dont-call-proptypes for details.', propFullName, componentName) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in the next major version. You may be ' + 'seeing this warning due to a third-party PropTypes library. ' + 'See https://fb.me/react-warning-dont-call-proptypes for details.', propFullName, componentName) : void 0;
manualPropTypeCallCache[cacheKey] = true;
}
}
@@ -3983,7 +3103,7 @@
function createEnumTypeChecker(expectedValues) {
if (!Array.isArray(expectedValues)) {
- (undefined) !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
+ false ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
return emptyFunction.thatReturnsNull;
}
@@ -4028,7 +3148,7 @@
function createUnionTypeChecker(arrayOfTypeCheckers) {
if (!Array.isArray(arrayOfTypeCheckers)) {
- (undefined) !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
+ false ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
return emptyFunction.thatReturnsNull;
}
@@ -4189,7 +3309,28 @@
module.exports = ReactPropTypes;
/***/ },
-/* 33 */
+/* 28 */
+/***/ function(module, exports) {
+
+ /**
+ * Copyright 2013-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ * @providesModule ReactPropTypesSecret
+ */
+
+ 'use strict';
+
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
+
+ module.exports = ReactPropTypesSecret;
+
+/***/ },
+/* 29 */
/***/ function(module, exports) {
/**
@@ -4208,7 +3349,7 @@
module.exports = '15.3.2';
/***/ },
-/* 34 */
+/* 30 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4244,23 +3385,23 @@
* structure.
*/
function onlyChild(children) {
- !ReactElement.isValidElement(children) ? (undefined) !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;
+ !ReactElement.isValidElement(children) ? false ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;
return children;
}
module.exports = onlyChild;
/***/ },
-/* 35 */
+/* 31 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
- module.exports = __webpack_require__(36);
+ module.exports = __webpack_require__(32);
/***/ },
-/* 36 */
+/* 32 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4278,16 +3419,16 @@
'use strict';
- var ReactDOMComponentTree = __webpack_require__(37);
- var ReactDefaultInjection = __webpack_require__(40);
- var ReactMount = __webpack_require__(163);
- var ReactReconciler = __webpack_require__(60);
- var ReactUpdates = __webpack_require__(57);
- var ReactVersion = __webpack_require__(33);
+ var ReactDOMComponentTree = __webpack_require__(33);
+ var ReactDefaultInjection = __webpack_require__(36);
+ var ReactMount = __webpack_require__(156);
+ var ReactReconciler = __webpack_require__(56);
+ var ReactUpdates = __webpack_require__(53);
+ var ReactVersion = __webpack_require__(29);
- var findDOMNode = __webpack_require__(168);
- var getHostComponentFromComposite = __webpack_require__(169);
- var renderSubtreeIntoContainer = __webpack_require__(170);
+ var findDOMNode = __webpack_require__(161);
+ var getHostComponentFromComposite = __webpack_require__(162);
+ var renderSubtreeIntoContainer = __webpack_require__(163);
var warning = __webpack_require__(11);
ReactDefaultInjection.inject();
@@ -4327,8 +3468,8 @@
});
}
- if ((undefined) !== 'production') {
- var ExecutionEnvironment = __webpack_require__(50);
+ if (false) {
+ var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');
if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
// First check if devtools is not installed
@@ -4342,13 +3483,13 @@
}
var testFunc = function testFn() {};
- (undefined) !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;
// If we're in IE8, check to see if we are in compatibility mode and provide
// information on preventing compatibility mode
var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
- (undefined) !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '') : void 0;
var expectedFeatures = [
// shims
@@ -4356,17 +3497,17 @@
for (var i = 0; i < expectedFeatures.length; i++) {
if (!expectedFeatures[i]) {
- (undefined) !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;
break;
}
}
}
}
- if ((undefined) !== 'production') {
- var ReactInstrumentation = __webpack_require__(63);
- var ReactDOMUnknownPropertyHook = __webpack_require__(171);
- var ReactDOMNullInputValuePropHook = __webpack_require__(172);
+ if (false) {
+ var ReactInstrumentation = require('./ReactInstrumentation');
+ var ReactDOMUnknownPropertyHook = require('./ReactDOMUnknownPropertyHook');
+ var ReactDOMNullInputValuePropHook = require('./ReactDOMNullInputValuePropHook');
ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);
ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);
@@ -4375,7 +3516,7 @@
module.exports = ReactDOM;
/***/ },
-/* 37 */
+/* 33 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4393,8 +3534,8 @@
var _prodInvariant = __webpack_require__(7);
- var DOMProperty = __webpack_require__(38);
- var ReactDOMComponentFlags = __webpack_require__(39);
+ var DOMProperty = __webpack_require__(34);
+ var ReactDOMComponentFlags = __webpack_require__(35);
var invariant = __webpack_require__(8);
@@ -4474,7 +3615,7 @@
}
}
// We reached the end of the DOM children without finding an ID match.
- true ? (undefined) !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;
+ true ? false ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;
}
inst._flags |= Flags.hasCachedChildNodes;
}
@@ -4533,7 +3674,7 @@
function getNodeFromInstance(inst) {
// Without this first invariant, passing a non-DOM-component triggers the next
// invariant for a missing parent, which is super confusing.
- !(inst._hostNode !== undefined) ? (undefined) !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
+ !(inst._hostNode !== undefined) ? false ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
if (inst._hostNode) {
return inst._hostNode;
@@ -4543,7 +3684,7 @@
var parents = [];
while (!inst._hostNode) {
parents.push(inst);
- !inst._hostParent ? (undefined) !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;
+ !inst._hostParent ? false ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;
inst = inst._hostParent;
}
@@ -4568,7 +3709,7 @@
module.exports = ReactDOMComponentTree;
/***/ },
-/* 38 */
+/* 34 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4644,7 +3785,7 @@
}
for (var propName in Properties) {
- !!DOMProperty.properties.hasOwnProperty(propName) ? (undefined) !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;
+ !!DOMProperty.properties.hasOwnProperty(propName) ? false ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;
var lowerCased = propName.toLowerCase();
var propConfig = Properties[propName];
@@ -4661,16 +3802,16 @@
hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
};
- !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? (undefined) !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;
+ !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? false ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;
- if ((undefined) !== 'production') {
+ if (false) {
DOMProperty.getPossibleStandardName[lowerCased] = propName;
}
if (DOMAttributeNames.hasOwnProperty(propName)) {
var attributeName = DOMAttributeNames[propName];
propertyInfo.attributeName = attributeName;
- if ((undefined) !== 'production') {
+ if (false) {
DOMProperty.getPossibleStandardName[attributeName] = propName;
}
}
@@ -4752,7 +3893,7 @@
* to warn in the case of missing properties. Available only in __DEV__.
* @type {Object}
*/
- getPossibleStandardName: (undefined) !== 'production' ? {} : null,
+ getPossibleStandardName: false ? {} : null,
/**
* All of the isCustomAttribute() functions that have been injected.
@@ -4779,7 +3920,7 @@
module.exports = DOMProperty;
/***/ },
-/* 39 */
+/* 35 */
/***/ function(module, exports) {
/**
@@ -4802,7 +3943,7 @@
module.exports = ReactDOMComponentFlags;
/***/ },
-/* 40 */
+/* 36 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4818,24 +3959,24 @@
'use strict';
- var BeforeInputEventPlugin = __webpack_require__(41);
- var ChangeEventPlugin = __webpack_require__(56);
- var DefaultEventPluginOrder = __webpack_require__(74);
- var EnterLeaveEventPlugin = __webpack_require__(75);
- var HTMLDOMPropertyConfig = __webpack_require__(80);
- var ReactComponentBrowserEnvironment = __webpack_require__(81);
- var ReactDOMComponent = __webpack_require__(95);
- var ReactDOMComponentTree = __webpack_require__(37);
- var ReactDOMEmptyComponent = __webpack_require__(134);
- var ReactDOMTreeTraversal = __webpack_require__(135);
- var ReactDOMTextComponent = __webpack_require__(136);
- var ReactDefaultBatchingStrategy = __webpack_require__(137);
- var ReactEventListener = __webpack_require__(138);
- var ReactInjection = __webpack_require__(141);
- var ReactReconcileTransaction = __webpack_require__(142);
- var SVGDOMPropertyConfig = __webpack_require__(150);
- var SelectEventPlugin = __webpack_require__(151);
- var SimpleEventPlugin = __webpack_require__(152);
+ var BeforeInputEventPlugin = __webpack_require__(37);
+ var ChangeEventPlugin = __webpack_require__(52);
+ var DefaultEventPluginOrder = __webpack_require__(64);
+ var EnterLeaveEventPlugin = __webpack_require__(65);
+ var HTMLDOMPropertyConfig = __webpack_require__(70);
+ var ReactComponentBrowserEnvironment = __webpack_require__(71);
+ var ReactDOMComponent = __webpack_require__(85);
+ var ReactDOMComponentTree = __webpack_require__(33);
+ var ReactDOMEmptyComponent = __webpack_require__(127);
+ var ReactDOMTreeTraversal = __webpack_require__(128);
+ var ReactDOMTextComponent = __webpack_require__(129);
+ var ReactDefaultBatchingStrategy = __webpack_require__(130);
+ var ReactEventListener = __webpack_require__(131);
+ var ReactInjection = __webpack_require__(134);
+ var ReactReconcileTransaction = __webpack_require__(135);
+ var SVGDOMPropertyConfig = __webpack_require__(143);
+ var SelectEventPlugin = __webpack_require__(144);
+ var SimpleEventPlugin = __webpack_require__(145);
var alreadyInjected = false;
@@ -4891,7 +4032,7 @@
};
/***/ },
-/* 41 */
+/* 37 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -4907,12 +4048,12 @@
'use strict';
- var EventConstants = __webpack_require__(42);
- var EventPropagators = __webpack_require__(43);
- var ExecutionEnvironment = __webpack_require__(50);
- var FallbackCompositionState = __webpack_require__(51);
- var SyntheticCompositionEvent = __webpack_require__(53);
- var SyntheticInputEvent = __webpack_require__(55);
+ var EventConstants = __webpack_require__(38);
+ var EventPropagators = __webpack_require__(39);
+ var ExecutionEnvironment = __webpack_require__(46);
+ var FallbackCompositionState = __webpack_require__(47);
+ var SyntheticCompositionEvent = __webpack_require__(49);
+ var SyntheticInputEvent = __webpack_require__(51);
var keyOf = __webpack_require__(25);
@@ -5286,7 +4427,7 @@
module.exports = BeforeInputEventPlugin;
/***/ },
-/* 42 */
+/* 38 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -5388,7 +4529,7 @@
module.exports = EventConstants;
/***/ },
-/* 43 */
+/* 39 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -5404,12 +4545,12 @@
'use strict';
- var EventConstants = __webpack_require__(42);
- var EventPluginHub = __webpack_require__(44);
- var EventPluginUtils = __webpack_require__(46);
+ var EventConstants = __webpack_require__(38);
+ var EventPluginHub = __webpack_require__(40);
+ var EventPluginUtils = __webpack_require__(42);
- var accumulateInto = __webpack_require__(48);
- var forEachAccumulated = __webpack_require__(49);
+ var accumulateInto = __webpack_require__(44);
+ var forEachAccumulated = __webpack_require__(45);
var warning = __webpack_require__(11);
var PropagationPhases = EventConstants.PropagationPhases;
@@ -5431,8 +4572,8 @@
* "dispatch" object that pairs the event with the listener.
*/
function accumulateDirectionalDispatches(inst, upwards, event) {
- if ((undefined) !== 'production') {
- (undefined) !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;
}
var phase = upwards ? PropagationPhases.bubbled : PropagationPhases.captured;
var listener = listenerAtPhase(inst, event, phase);
@@ -5530,7 +4671,7 @@
module.exports = EventPropagators;
/***/ },
-/* 44 */
+/* 40 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -5548,12 +4689,12 @@
var _prodInvariant = __webpack_require__(7);
- var EventPluginRegistry = __webpack_require__(45);
- var EventPluginUtils = __webpack_require__(46);
- var ReactErrorUtils = __webpack_require__(47);
+ var EventPluginRegistry = __webpack_require__(41);
+ var EventPluginUtils = __webpack_require__(42);
+ var ReactErrorUtils = __webpack_require__(43);
- var accumulateInto = __webpack_require__(48);
- var forEachAccumulated = __webpack_require__(49);
+ var accumulateInto = __webpack_require__(44);
+ var forEachAccumulated = __webpack_require__(45);
var invariant = __webpack_require__(8);
/**
@@ -5646,7 +4787,7 @@
* @param {function} listener The callback to store.
*/
putListener: function (inst, registrationName, listener) {
- !(typeof listener === 'function') ? (undefined) !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;
+ !(typeof listener === 'function') ? false ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;
var key = getDictionaryKey(inst);
var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});
@@ -5765,7 +4906,7 @@
} else {
forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
}
- !!eventQueue ? (undefined) !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;
+ !!eventQueue ? false ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;
// This would be a good time to rethrow if any of the event handlers threw.
ReactErrorUtils.rethrowCaughtError();
},
@@ -5786,7 +4927,7 @@
module.exports = EventPluginHub;
/***/ },
-/* 45 */
+/* 41 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -5829,15 +4970,15 @@
for (var pluginName in namesToPlugins) {
var PluginModule = namesToPlugins[pluginName];
var pluginIndex = EventPluginOrder.indexOf(pluginName);
- !(pluginIndex > -1) ? (undefined) !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;
+ !(pluginIndex > -1) ? false ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;
if (EventPluginRegistry.plugins[pluginIndex]) {
continue;
}
- !PluginModule.extractEvents ? (undefined) !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;
+ !PluginModule.extractEvents ? false ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;
EventPluginRegistry.plugins[pluginIndex] = PluginModule;
var publishedEvents = PluginModule.eventTypes;
for (var eventName in publishedEvents) {
- !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? (undefined) !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;
+ !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? false ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;
}
}
}
@@ -5851,7 +4992,7 @@
* @private
*/
function publishEventForPlugin(dispatchConfig, PluginModule, eventName) {
- !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? (undefined) !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;
+ !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? false ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;
EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
@@ -5879,11 +5020,11 @@
* @private
*/
function publishRegistrationName(registrationName, PluginModule, eventName) {
- !!EventPluginRegistry.registrationNameModules[registrationName] ? (undefined) !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;
+ !!EventPluginRegistry.registrationNameModules[registrationName] ? false ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;
EventPluginRegistry.registrationNameModules[registrationName] = PluginModule;
EventPluginRegistry.registrationNameDependencies[registrationName] = PluginModule.eventTypes[eventName].dependencies;
- if ((undefined) !== 'production') {
+ if (false) {
var lowerCasedName = registrationName.toLowerCase();
EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;
@@ -5926,7 +5067,7 @@
* only in __DEV__.
* @type {Object}
*/
- possibleRegistrationNames: (undefined) !== 'production' ? {} : null,
+ possibleRegistrationNames: false ? {} : null,
/**
* Injects an ordering of plugins (by plugin name). This allows the ordering
@@ -5938,7 +5079,7 @@
* @see {EventPluginHub.injection.injectEventPluginOrder}
*/
injectEventPluginOrder: function (InjectedEventPluginOrder) {
- !!EventPluginOrder ? (undefined) !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;
+ !!EventPluginOrder ? false ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;
// Clone the ordering so it cannot be dynamically mutated.
EventPluginOrder = Array.prototype.slice.call(InjectedEventPluginOrder);
recomputePluginOrdering();
@@ -5962,7 +5103,7 @@
}
var PluginModule = injectedNamesToPlugins[pluginName];
if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== PluginModule) {
- !!namesToPlugins[pluginName] ? (undefined) !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;
+ !!namesToPlugins[pluginName] ? false ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;
namesToPlugins[pluginName] = PluginModule;
isOrderingDirty = true;
}
@@ -6023,7 +5164,7 @@
}
}
- if ((undefined) !== 'production') {
+ if (false) {
var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;
for (var lowerCasedName in possibleRegistrationNames) {
if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {
@@ -6038,7 +5179,7 @@
module.exports = EventPluginRegistry;
/***/ },
-/* 46 */
+/* 42 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6056,8 +5197,8 @@
var _prodInvariant = __webpack_require__(7);
- var EventConstants = __webpack_require__(42);
- var ReactErrorUtils = __webpack_require__(47);
+ var EventConstants = __webpack_require__(38);
+ var ReactErrorUtils = __webpack_require__(43);
var invariant = __webpack_require__(8);
var warning = __webpack_require__(11);
@@ -6075,14 +5216,14 @@
var injection = {
injectComponentTree: function (Injected) {
ComponentTree = Injected;
- if ((undefined) !== 'production') {
- (undefined) !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
}
},
injectTreeTraversal: function (Injected) {
TreeTraversal = Injected;
- if ((undefined) !== 'production') {
- (undefined) !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;
+ if (false) {
+ process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0;
}
}
};
@@ -6101,7 +5242,7 @@
}
var validateEventDispatches;
- if ((undefined) !== 'production') {
+ if (false) {
validateEventDispatches = function (event) {
var dispatchListeners = event._dispatchListeners;
var dispatchInstances = event._dispatchInstances;
@@ -6112,7 +5253,7 @@
var instancesIsArr = Array.isArray(dispatchInstances);
var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
- (undefined) !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;
};
}
@@ -6140,7 +5281,7 @@
function executeDispatchesInOrder(event, simulated) {
var dispatchListeners = event._dispatchListeners;
var dispatchInstances = event._dispatchInstances;
- if ((undefined) !== 'production') {
+ if (false) {
validateEventDispatches(event);
}
if (Array.isArray(dispatchListeners)) {
@@ -6168,7 +5309,7 @@
function executeDispatchesInOrderStopAtTrueImpl(event) {
var dispatchListeners = event._dispatchListeners;
var dispatchInstances = event._dispatchInstances;
- if ((undefined) !== 'production') {
+ if (false) {
validateEventDispatches(event);
}
if (Array.isArray(dispatchListeners)) {
@@ -6209,12 +5350,12 @@
* @return {*} The return value of executing the single dispatch.
*/
function executeDirectDispatch(event) {
- if ((undefined) !== 'production') {
+ if (false) {
validateEventDispatches(event);
}
var dispatchListener = event._dispatchListeners;
var dispatchInstance = event._dispatchInstances;
- !!Array.isArray(dispatchListener) ? (undefined) !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;
+ !!Array.isArray(dispatchListener) ? false ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;
event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;
var res = dispatchListener ? dispatchListener(event) : null;
event.currentTarget = null;
@@ -6272,7 +5413,7 @@
module.exports = EventPluginUtils;
/***/ },
-/* 47 */
+/* 43 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6331,7 +5472,7 @@
}
};
- if ((undefined) !== 'production') {
+ if (false) {
/**
* To help development we can get better devtools integration by simulating a
* real browser event.
@@ -6353,7 +5494,7 @@
module.exports = ReactErrorUtils;
/***/ },
-/* 48 */
+/* 44 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6388,7 +5529,7 @@
*/
function accumulateInto(current, next) {
- !(next != null) ? (undefined) !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;
+ !(next != null) ? false ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;
if (current == null) {
return next;
@@ -6416,7 +5557,7 @@
module.exports = accumulateInto;
/***/ },
-/* 49 */
+/* 45 */
/***/ function(module, exports) {
/**
@@ -6452,7 +5593,7 @@
module.exports = forEachAccumulated;
/***/ },
-/* 50 */
+/* 46 */
/***/ function(module, exports) {
/**
@@ -6492,7 +5633,7 @@
module.exports = ExecutionEnvironment;
/***/ },
-/* 51 */
+/* 47 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6512,7 +5653,7 @@
var PooledClass = __webpack_require__(6);
- var getTextContentAccessor = __webpack_require__(52);
+ var getTextContentAccessor = __webpack_require__(48);
/**
* This helper class stores information about text content of a target node,
@@ -6592,7 +5733,7 @@
module.exports = FallbackCompositionState;
/***/ },
-/* 52 */
+/* 48 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6608,7 +5749,7 @@
'use strict';
- var ExecutionEnvironment = __webpack_require__(50);
+ var ExecutionEnvironment = __webpack_require__(46);
var contentKey = null;
@@ -6630,7 +5771,7 @@
module.exports = getTextContentAccessor;
/***/ },
-/* 53 */
+/* 49 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6646,7 +5787,7 @@
'use strict';
- var SyntheticEvent = __webpack_require__(54);
+ var SyntheticEvent = __webpack_require__(50);
/**
* @interface Event
@@ -6671,7 +5812,7 @@
module.exports = SyntheticCompositionEvent;
/***/ },
-/* 54 */
+/* 50 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6737,7 +5878,7 @@
* @param {DOMEventTarget} nativeEventTarget Target node.
*/
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
- if ((undefined) !== 'production') {
+ if (false) {
// these have a getter/setter for warnings
delete this.nativeEvent;
delete this.preventDefault;
@@ -6753,7 +5894,7 @@
if (!Interface.hasOwnProperty(propName)) {
continue;
}
- if ((undefined) !== 'production') {
+ if (false) {
delete this[propName]; // this has a getter/setter for warnings
}
var normalize = Interface[propName];
@@ -6839,7 +5980,7 @@
destructor: function () {
var Interface = this.constructor.Interface;
for (var propName in Interface) {
- if ((undefined) !== 'production') {
+ if (false) {
Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
} else {
this[propName] = null;
@@ -6848,7 +5989,7 @@
for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
this[shouldBeReleasedProperties[i]] = null;
}
- if ((undefined) !== 'production') {
+ if (false) {
Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
@@ -6859,7 +6000,7 @@
SyntheticEvent.Interface = EventInterface;
- if ((undefined) !== 'production') {
+ if (false) {
if (isProxySupported) {
/*eslint-disable no-func-assign */
SyntheticEvent = new Proxy(SyntheticEvent, {
@@ -6870,7 +6011,7 @@
return new Proxy(constructor.apply(that, args), {
set: function (target, prop, value) {
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
- (undefined) !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
didWarnForAddedNewProperty = true;
}
target[prop] = value;
@@ -6939,12 +6080,12 @@
function warn(action, result) {
var warningCondition = false;
- (undefined) !== 'production' ? warning(warningCondition, 'This synthetic event is reused for performance reasons. If you\'re seeing this, ' + 'you\'re %s `%s` on a released/nullified synthetic event. %s. ' + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
+ false ? warning(warningCondition, 'This synthetic event is reused for performance reasons. If you\'re seeing this, ' + 'you\'re %s `%s` on a released/nullified synthetic event. %s. ' + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
}
}
/***/ },
-/* 55 */
+/* 51 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -6960,7 +6101,7 @@
'use strict';
- var SyntheticEvent = __webpack_require__(54);
+ var SyntheticEvent = __webpack_require__(50);
/**
* @interface Event
@@ -6986,7 +6127,7 @@
module.exports = SyntheticInputEvent;
/***/ },
-/* 56 */
+/* 52 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -7002,17 +6143,17 @@
'use strict';
- var EventConstants = __webpack_require__(42);
- var EventPluginHub = __webpack_require__(44);
- var EventPropagators = __webpack_require__(43);
- var ExecutionEnvironment = __webpack_require__(50);
- var ReactDOMComponentTree = __webpack_require__(37);
- var ReactUpdates = __webpack_require__(57);
- var SyntheticEvent = __webpack_require__(54);
+ var EventConstants = __webpack_require__(38);
+ var EventPluginHub = __webpack_require__(40);
+ var EventPropagators = __webpack_require__(39);
+ var ExecutionEnvironment = __webpack_require__(46);
+ var ReactDOMComponentTree = __webpack_require__(33);
+ var ReactUpdates = __webpack_require__(53);
+ var SyntheticEvent = __webpack_require__(50);
- var getEventTarget = __webpack_require__(71);
- var isEventSupported = __webpack_require__(72);
- var isTextInputElement = __webpack_require__(73);
+ var getEventTarget = __webpack_require__(61);
+ var isEventSupported = __webpack_require__(62);
+ var isTextInputElement = __webpack_require__(63);
var keyOf = __webpack_require__(25);
var topLevelTypes = EventConstants.topLevelTypes;
@@ -7316,7 +6457,7 @@
module.exports = ChangeEventPlugin;
/***/ },
-/* 57 */
+/* 53 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -7335,11 +6476,11 @@
var _prodInvariant = __webpack_require__(7),
_assign = __webpack_require__(4);
- var CallbackQueue = __webpack_require__(58);
+ var CallbackQueue = __webpack_require__(54);
var PooledClass = __webpack_require__(6);
- var ReactFeatureFlags = __webpack_require__(59);
- var ReactReconciler = __webpack_require__(60);
- var Transaction = __webpack_require__(70);
+ var ReactFeatureFlags = __webpack_require__(55);
+ var ReactReconciler = __webpack_require__(56);
+ var Transaction = __webpack_require__(60);
var invariant = __webpack_require__(8);
@@ -7351,7 +6492,7 @@
var batchingStrategy = null;
function ensureInjected() {
- !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;
+ !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? false ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;
}
var NESTED_UPDATES = {
@@ -7432,7 +6573,7 @@
function runBatchedUpdates(transaction) {
var len = transaction.dirtyComponentsLength;
- !(len === dirtyComponents.length) ? (undefined) !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;
+ !(len === dirtyComponents.length) ? false ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;
// Since reconciling a component higher in the owner hierarchy usually (not
// always -- see shouldComponentUpdate()) will reconcile children, reconcile
@@ -7534,21 +6675,21 @@
* if no updates are currently being performed.
*/
function asap(callback, context) {
- !batchingStrategy.isBatchingUpdates ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
+ !batchingStrategy.isBatchingUpdates ? false ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
asapCallbackQueue.enqueue(callback, context);
asapEnqueued = true;
}
var ReactUpdatesInjection = {
injectReconcileTransaction: function (ReconcileTransaction) {
- !ReconcileTransaction ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;
+ !ReconcileTransaction ? false ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;
ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
},
injectBatchingStrategy: function (_batchingStrategy) {
- !_batchingStrategy ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;
- !(typeof _batchingStrategy.batchedUpdates === 'function') ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;
- !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? (undefined) !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;
+ !_batchingStrategy ? false ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;
+ !(typeof _batchingStrategy.batchedUpdates === 'function') ? false ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;
+ !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? false ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;
batchingStrategy = _batchingStrategy;
}
};
@@ -7572,7 +6713,7 @@
module.exports = ReactUpdates;
/***/ },
-/* 58 */
+/* 54 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -7637,7 +6778,7 @@
var callbacks = this._callbacks;
var contexts = this._contexts;
if (callbacks) {
- !(callbacks.length === contexts.length) ? (undefined) !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;
+ !(callbacks.length === contexts.length) ? false ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;
this._callbacks = null;
this._contexts = null;
for (var i = 0; i < callbacks.length; i++) {
@@ -7683,7 +6824,7 @@
module.exports = CallbackQueue;
/***/ },
-/* 59 */
+/* 55 */
/***/ function(module, exports) {
/**
@@ -7710,7 +6851,7 @@
module.exports = ReactFeatureFlags;
/***/ },
-/* 60 */
+/* 56 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -7726,8 +6867,8 @@
'use strict';
- var ReactRef = __webpack_require__(61);
- var ReactInstrumentation = __webpack_require__(63);
+ var ReactRef = __webpack_require__(57);
+ var ReactInstrumentation = __webpack_require__(59);
var warning = __webpack_require__(11);
@@ -7754,7 +6895,7 @@
*/
mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots
) {
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);
}
@@ -7763,7 +6904,7 @@
if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {
transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
}
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);
}
@@ -7786,14 +6927,14 @@
* @internal
*/
unmountComponent: function (internalInstance, safely) {
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);
}
}
ReactRef.detachRefs(internalInstance, internalInstance._currentElement);
internalInstance.unmountComponent(safely);
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);
}
@@ -7826,7 +6967,7 @@
return;
}
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);
}
@@ -7844,7 +6985,7 @@
transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
}
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
}
@@ -7862,16 +7003,16 @@
if (internalInstance._updateBatchNumber !== updateBatchNumber) {
// The component's enqueued batch number should always be the current
// batch or the following one.
- (undefined) !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;
+ false ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;
return;
}
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);
}
}
internalInstance.performUpdateIfNecessary(transaction);
- if ((undefined) !== 'production') {
+ if (false) {
if (internalInstance._debugID !== 0) {
ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
}
@@ -7883,7 +7024,7 @@
module.exports = ReactReconciler;
/***/ },
-/* 61 */
+/* 57 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -7899,7 +7040,7 @@
'use strict';
- var ReactOwner = __webpack_require__(62);
+ var ReactOwner = __webpack_require__(58);
var ReactRef = {};
@@ -7968,7 +7109,7 @@
module.exports = ReactRef;
/***/ },
-/* 62 */
+/* 58 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -8039,7 +7180,7 @@
* @internal
*/
addComponentAsRefTo: function (component, ref, owner) {
- !ReactOwner.isValidOwner(owner) ? (undefined) !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;
+ !ReactOwner.isValidOwner(owner) ? false ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;
owner.attachRef(ref, component);
},
@@ -8053,7 +7194,7 @@
* @internal
*/
removeComponentAsRefFrom: function (component, ref, owner) {
- !ReactOwner.isValidOwner(owner) ? (undefined) !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;
+ !ReactOwner.isValidOwner(owner) ? false ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;
var ownerPublicInstance = owner.getPublicInstance();
// Check that `component`'s owner is still alive and that `component` is still the current ref
// because we do not want to detach the ref if another component stole it.
@@ -8067,7 +7208,7 @@
module.exports = ReactOwner;
/***/ },
-/* 63 */
+/* 59 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -8085,528 +7226,15 @@
var debugTool = null;
- if ((undefined) !== 'production') {
- var ReactDebugTool = __webpack_require__(64);
+ if (false) {
+ var ReactDebugTool = require('./ReactDebugTool');
debugTool = ReactDebugTool;
}
module.exports = { debugTool: debugTool };
/***/ },
-/* 64 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactDebugTool
- */
-
- 'use strict';
-
- var ReactInvalidSetStateWarningHook = __webpack_require__(65);
- var ReactHostOperationHistoryHook = __webpack_require__(66);
- var ReactComponentTreeHook = __webpack_require__(28);
- var ReactChildrenMutationWarningHook = __webpack_require__(67);
- var ExecutionEnvironment = __webpack_require__(50);
-
- var performanceNow = __webpack_require__(68);
- var warning = __webpack_require__(11);
-
- var hooks = [];
- var didHookThrowForEvent = {};
-
- function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
- try {
- fn.call(context, arg1, arg2, arg3, arg4, arg5);
- } catch (e) {
- (undefined) !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0;
- didHookThrowForEvent[event] = true;
- }
- }
-
- function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- var fn = hook[event];
- if (fn) {
- callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
- }
- }
- }
-
- var isProfiling = false;
- var flushHistory = [];
- var lifeCycleTimerStack = [];
- var currentFlushNesting = 0;
- var currentFlushMeasurements = null;
- var currentFlushStartTime = null;
- var currentTimerDebugID = null;
- var currentTimerStartTime = null;
- var currentTimerNestedFlushDuration = null;
- var currentTimerType = null;
-
- var lifeCycleTimerHasWarned = false;
-
- function clearHistory() {
- ReactComponentTreeHook.purgeUnmountedComponents();
- ReactHostOperationHistoryHook.clearHistory();
- }
-
- function getTreeSnapshot(registeredIDs) {
- return registeredIDs.reduce(function (tree, id) {
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var parentID = ReactComponentTreeHook.getParentID(id);
- tree[id] = {
- displayName: ReactComponentTreeHook.getDisplayName(id),
- text: ReactComponentTreeHook.getText(id),
- updateCount: ReactComponentTreeHook.getUpdateCount(id),
- childIDs: ReactComponentTreeHook.getChildIDs(id),
- // Text nodes don't have owners but this is close enough.
- ownerID: ownerID || ReactComponentTreeHook.getOwnerID(parentID),
- parentID: parentID
- };
- return tree;
- }, {});
- }
-
- function resetMeasurements() {
- var previousStartTime = currentFlushStartTime;
- var previousMeasurements = currentFlushMeasurements || [];
- var previousOperations = ReactHostOperationHistoryHook.getHistory();
-
- if (currentFlushNesting === 0) {
- currentFlushStartTime = null;
- currentFlushMeasurements = null;
- clearHistory();
- return;
- }
-
- if (previousMeasurements.length || previousOperations.length) {
- var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
- flushHistory.push({
- duration: performanceNow() - previousStartTime,
- measurements: previousMeasurements || [],
- operations: previousOperations || [],
- treeSnapshot: getTreeSnapshot(registeredIDs)
- });
- }
-
- clearHistory();
- currentFlushStartTime = performanceNow();
- currentFlushMeasurements = [];
- }
-
- function checkDebugID(debugID) {
- var allowRoot = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
-
- if (allowRoot && debugID === 0) {
- return;
- }
- if (!debugID) {
- (undefined) !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;
- }
- }
-
- function beginLifeCycleTimer(debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType && !lifeCycleTimerHasWarned) {
- (undefined) !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
- lifeCycleTimerHasWarned = true;
- }
- currentTimerStartTime = performanceNow();
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- }
-
- function endLifeCycleTimer(debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
- (undefined) !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
- lifeCycleTimerHasWarned = true;
- }
- if (isProfiling) {
- currentFlushMeasurements.push({
- timerType: timerType,
- instanceID: debugID,
- duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
- });
- }
- currentTimerStartTime = null;
- currentTimerNestedFlushDuration = null;
- currentTimerDebugID = null;
- currentTimerType = null;
- }
-
- function pauseCurrentLifeCycleTimer() {
- var currentTimer = {
- startTime: currentTimerStartTime,
- nestedFlushStartTime: performanceNow(),
- debugID: currentTimerDebugID,
- timerType: currentTimerType
- };
- lifeCycleTimerStack.push(currentTimer);
- currentTimerStartTime = null;
- currentTimerNestedFlushDuration = null;
- currentTimerDebugID = null;
- currentTimerType = null;
- }
-
- function resumeCurrentLifeCycleTimer() {
- var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop();
-
- var startTime = _lifeCycleTimerStack$.startTime;
- var nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime;
- var debugID = _lifeCycleTimerStack$.debugID;
- var timerType = _lifeCycleTimerStack$.timerType;
-
- var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
- currentTimerStartTime = startTime;
- currentTimerNestedFlushDuration += nestedFlushDuration;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
- }
-
- var ReactDebugTool = {
- addHook: function (hook) {
- hooks.push(hook);
- },
- removeHook: function (hook) {
- for (var i = 0; i < hooks.length; i++) {
- if (hooks[i] === hook) {
- hooks.splice(i, 1);
- i--;
- }
- }
- },
- isProfiling: function () {
- return isProfiling;
- },
- beginProfiling: function () {
- if (isProfiling) {
- return;
- }
-
- isProfiling = true;
- flushHistory.length = 0;
- resetMeasurements();
- ReactDebugTool.addHook(ReactHostOperationHistoryHook);
- },
- endProfiling: function () {
- if (!isProfiling) {
- return;
- }
-
- isProfiling = false;
- resetMeasurements();
- ReactDebugTool.removeHook(ReactHostOperationHistoryHook);
- },
- getFlushHistory: function () {
- return flushHistory;
- },
- onBeginFlush: function () {
- currentFlushNesting++;
- resetMeasurements();
- pauseCurrentLifeCycleTimer();
- emitEvent('onBeginFlush');
- },
- onEndFlush: function () {
- resetMeasurements();
- currentFlushNesting--;
- resumeCurrentLifeCycleTimer();
- emitEvent('onEndFlush');
- },
- onBeginLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- emitEvent('onBeginLifeCycleTimer', debugID, timerType);
- beginLifeCycleTimer(debugID, timerType);
- },
- onEndLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- endLifeCycleTimer(debugID, timerType);
- emitEvent('onEndLifeCycleTimer', debugID, timerType);
- },
- onBeginProcessingChildContext: function () {
- emitEvent('onBeginProcessingChildContext');
- },
- onEndProcessingChildContext: function () {
- emitEvent('onEndProcessingChildContext');
- },
- onHostOperation: function (debugID, type, payload) {
- checkDebugID(debugID);
- emitEvent('onHostOperation', debugID, type, payload);
- },
- onSetState: function () {
- emitEvent('onSetState');
- },
- onSetChildren: function (debugID, childDebugIDs) {
- checkDebugID(debugID);
- childDebugIDs.forEach(checkDebugID);
- emitEvent('onSetChildren', debugID, childDebugIDs);
- },
- onBeforeMountComponent: function (debugID, element, parentDebugID) {
- checkDebugID(debugID);
- checkDebugID(parentDebugID, true);
- emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
- },
- onMountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onMountComponent', debugID);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- checkDebugID(debugID);
- emitEvent('onBeforeUpdateComponent', debugID, element);
- },
- onUpdateComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onUpdateComponent', debugID);
- },
- onBeforeUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onBeforeUnmountComponent', debugID);
- },
- onUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onUnmountComponent', debugID);
- },
- onTestEvent: function () {
- emitEvent('onTestEvent');
- }
- };
-
- // TODO remove these when RN/www gets updated
- ReactDebugTool.addDevtool = ReactDebugTool.addHook;
- ReactDebugTool.removeDevtool = ReactDebugTool.removeHook;
-
- ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
- ReactDebugTool.addHook(ReactComponentTreeHook);
- ReactDebugTool.addHook(ReactChildrenMutationWarningHook);
- var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
- if (/[?&]react_perf\b/.test(url)) {
- ReactDebugTool.beginProfiling();
- }
-
- module.exports = ReactDebugTool;
-
-/***/ },
-/* 65 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactInvalidSetStateWarningHook
- */
-
- 'use strict';
-
- var warning = __webpack_require__(11);
-
- if ((undefined) !== 'production') {
- var processingChildContext = false;
-
- var warnInvalidSetState = function () {
- (undefined) !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;
- };
- }
-
- var ReactInvalidSetStateWarningHook = {
- onBeginProcessingChildContext: function () {
- processingChildContext = true;
- },
- onEndProcessingChildContext: function () {
- processingChildContext = false;
- },
- onSetState: function () {
- warnInvalidSetState();
- }
- };
-
- module.exports = ReactInvalidSetStateWarningHook;
-
-/***/ },
-/* 66 */
-/***/ function(module, exports) {
-
- /**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactHostOperationHistoryHook
- */
-
- 'use strict';
-
- var history = [];
-
- var ReactHostOperationHistoryHook = {
- onHostOperation: function (debugID, type, payload) {
- history.push({
- instanceID: debugID,
- type: type,
- payload: payload
- });
- },
- clearHistory: function () {
- if (ReactHostOperationHistoryHook._preventClearing) {
- // Should only be used for tests.
- return;
- }
-
- history = [];
- },
- getHistory: function () {
- return history;
- }
- };
-
- module.exports = ReactHostOperationHistoryHook;
-
-/***/ },
-/* 67 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @providesModule ReactChildrenMutationWarningHook
- */
-
- 'use strict';
-
- var ReactComponentTreeHook = __webpack_require__(28);
-
- var warning = __webpack_require__(11);
-
- function handleElement(debugID, element) {
- if (element == null) {
- return;
- }
- if (element._shadowChildren === undefined) {
- return;
- }
- if (element._shadowChildren === element.props.children) {
- return;
- }
- var isMutated = false;
- if (Array.isArray(element._shadowChildren)) {
- if (element._shadowChildren.length === element.props.children.length) {
- for (var i = 0; i < element._shadowChildren.length; i++) {
- if (element._shadowChildren[i] !== element.props.children[i]) {
- isMutated = true;
- }
- }
- } else {
- isMutated = true;
- }
- }
- if (!Array.isArray(element._shadowChildren) || isMutated) {
- (undefined) !== 'production' ? warning(false, 'Component\'s children should not be mutated.%s', ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- }
- }
-
- var ReactChildrenMutationWarningHook = {
- onMountComponent: function (debugID) {
- handleElement(debugID, ReactComponentTreeHook.getElement(debugID));
- },
- onUpdateComponent: function (debugID) {
- handleElement(debugID, ReactComponentTreeHook.getElement(debugID));
- }
- };
-
- module.exports = ReactChildrenMutationWarningHook;
-
-/***/ },
-/* 68 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
- var performance = __webpack_require__(69);
-
- var performanceNow;
-
- /**
- * Detect if we can use `window.performance.now()` and gracefully fallback to
- * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
- * because of Facebook's testing infrastructure.
- */
- if (performance.now) {
- performanceNow = function performanceNow() {
- return performance.now();
- };
- } else {
- performanceNow = function performanceNow() {
- return Date.now();
- };
- }
-
- module.exports = performanceNow;
-
-/***/ },
-/* 69 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
- 'use strict';
-
- var ExecutionEnvironment = __webpack_require__(50);
-
- var performance;
-
- if (ExecutionEnvironment.canUseDOM) {
- performance = window.performance || window.msPerformance || window.webkitPerformance;
- }
-
- module.exports = performance || {};
-
-/***/ },
-/* 70 */
+/* 60 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -8735,7 +7363,7 @@
* @return {*} Return value from `method`.
*/
perform: function (method, scope, a, b, c, d, e, f) {
- !!this.isInTransaction() ? (undefined) !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
+ !!this.isInTransaction() ? false ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
var errorThrown;
var ret;
try {
@@ -8799,7 +7427,7 @@
* invoked).
*/
closeAll: function (startIndex) {
- !this.isInTransaction() ? (undefined) !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;
+ !this.isInTransaction() ? false ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;
var transactionWrappers = this.transactionWrappers;
for (var i = startIndex; i < transactionWrappers.length; i++) {
var wrapper = transactionWrappers[i];
@@ -8844,7 +7472,7 @@
module.exports = Transaction;
/***/ },
-/* 71 */
+/* 61 */
/***/ function(module, exports) {
/**
@@ -8884,7 +7512,7 @@
module.exports = getEventTarget;
/***/ },
-/* 72 */
+/* 62 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -8900,7 +7528,7 @@
'use strict';
- var ExecutionEnvironment = __webpack_require__(50);
+ var ExecutionEnvironment = __webpack_require__(46);
var useHasFeature;
if (ExecutionEnvironment.canUseDOM) {
@@ -8949,7 +7577,7 @@
module.exports = isEventSupported;
/***/ },
-/* 73 */
+/* 63 */
/***/ function(module, exports) {
/**
@@ -9005,7 +7633,7 @@
module.exports = isTextInputElement;
/***/ },
-/* 74 */
+/* 64 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9037,7 +7665,7 @@
module.exports = DefaultEventPluginOrder;
/***/ },
-/* 75 */
+/* 65 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9053,10 +7681,10 @@
'use strict';
- var EventConstants = __webpack_require__(42);
- var EventPropagators = __webpack_require__(43);
- var ReactDOMComponentTree = __webpack_require__(37);
- var SyntheticMouseEvent = __webpack_require__(76);
+ var EventConstants = __webpack_require__(38);
+ var EventPropagators = __webpack_require__(39);
+ var ReactDOMComponentTree = __webpack_require__(33);
+ var SyntheticMouseEvent = __webpack_require__(66);
var keyOf = __webpack_require__(25);
@@ -9147,7 +7775,7 @@
module.exports = EnterLeaveEventPlugin;
/***/ },
-/* 76 */
+/* 66 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9163,10 +7791,10 @@
'use strict';
- var SyntheticUIEvent = __webpack_require__(77);
- var ViewportMetrics = __webpack_require__(78);
+ var SyntheticUIEvent = __webpack_require__(67);
+ var ViewportMetrics = __webpack_require__(68);
- var getEventModifierState = __webpack_require__(79);
+ var getEventModifierState = __webpack_require__(69);
/**
* @interface MouseEvent
@@ -9224,7 +7852,7 @@
module.exports = SyntheticMouseEvent;
/***/ },
-/* 77 */
+/* 67 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9240,9 +7868,9 @@
'use strict';
- var SyntheticEvent = __webpack_require__(54);
+ var SyntheticEvent = __webpack_require__(50);
- var getEventTarget = __webpack_require__(71);
+ var getEventTarget = __webpack_require__(61);
/**
* @interface UIEvent
@@ -9288,7 +7916,7 @@
module.exports = SyntheticUIEvent;
/***/ },
-/* 78 */
+/* 68 */
/***/ function(module, exports) {
/**
@@ -9320,7 +7948,7 @@
module.exports = ViewportMetrics;
/***/ },
-/* 79 */
+/* 69 */
/***/ function(module, exports) {
/**
@@ -9368,7 +7996,7 @@
module.exports = getEventModifierState;
/***/ },
-/* 80 */
+/* 70 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9384,7 +8012,7 @@
'use strict';
- var DOMProperty = __webpack_require__(38);
+ var DOMProperty = __webpack_require__(34);
var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;
@@ -9585,7 +8213,7 @@
module.exports = HTMLDOMPropertyConfig;
/***/ },
-/* 81 */
+/* 71 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9601,8 +8229,8 @@
'use strict';
- var DOMChildrenOperations = __webpack_require__(82);
- var ReactDOMIDOperations = __webpack_require__(94);
+ var DOMChildrenOperations = __webpack_require__(72);
+ var ReactDOMIDOperations = __webpack_require__(84);
/**
* Abstracts away all functionality of the reconciler that requires knowledge of
@@ -9620,7 +8248,7 @@
module.exports = ReactComponentBrowserEnvironment;
/***/ },
-/* 82 */
+/* 72 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9636,15 +8264,15 @@
'use strict';
- var DOMLazyTree = __webpack_require__(83);
- var Danger = __webpack_require__(89);
- var ReactMultiChildUpdateTypes = __webpack_require__(93);
- var ReactDOMComponentTree = __webpack_require__(37);
- var ReactInstrumentation = __webpack_require__(63);
+ var DOMLazyTree = __webpack_require__(73);
+ var Danger = __webpack_require__(79);
+ var ReactMultiChildUpdateTypes = __webpack_require__(83);
+ var ReactDOMComponentTree = __webpack_require__(33);
+ var ReactInstrumentation = __webpack_require__(59);
- var createMicrosoftUnsafeLocalFunction = __webpack_require__(86);
- var setInnerHTML = __webpack_require__(85);
- var setTextContent = __webpack_require__(87);
+ var createMicrosoftUnsafeLocalFunction = __webpack_require__(76);
+ var setInnerHTML = __webpack_require__(75);
+ var setTextContent = __webpack_require__(77);
function getNodeAfter(parentNode, node) {
// Special case for text components, which return [open, close] comments
@@ -9736,13 +8364,13 @@
}
}
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID, 'replace text', stringText);
}
}
var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;
- if ((undefined) !== 'production') {
+ if (false) {
dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {
Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);
if (prevInstance._debugID !== 0) {
@@ -9773,7 +8401,7 @@
* @internal
*/
processUpdates: function (parentNode, updates) {
- if ((undefined) !== 'production') {
+ if (false) {
var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;
}
@@ -9782,31 +8410,31 @@
switch (update.type) {
case ReactMultiChildUpdateTypes.INSERT_MARKUP:
insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'insert child', { toIndex: update.toIndex, content: update.content.toString() });
}
break;
case ReactMultiChildUpdateTypes.MOVE_EXISTING:
moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'move child', { fromIndex: update.fromIndex, toIndex: update.toIndex });
}
break;
case ReactMultiChildUpdateTypes.SET_MARKUP:
setInnerHTML(parentNode, update.content);
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'replace children', update.content.toString());
}
break;
case ReactMultiChildUpdateTypes.TEXT_CONTENT:
setTextContent(parentNode, update.content);
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'replace text', update.content.toString());
}
break;
case ReactMultiChildUpdateTypes.REMOVE_NODE:
removeChild(parentNode, update.fromNode);
- if ((undefined) !== 'production') {
+ if (false) {
ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'remove child', { fromIndex: update.fromIndex });
}
break;
@@ -9819,7 +8447,7 @@
module.exports = DOMChildrenOperations;
/***/ },
-/* 83 */
+/* 73 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9835,11 +8463,11 @@
'use strict';
- var DOMNamespaces = __webpack_require__(84);
- var setInnerHTML = __webpack_require__(85);
+ var DOMNamespaces = __webpack_require__(74);
+ var setInnerHTML = __webpack_require__(75);
- var createMicrosoftUnsafeLocalFunction = __webpack_require__(86);
- var setTextContent = __webpack_require__(87);
+ var createMicrosoftUnsafeLocalFunction = __webpack_require__(76);
+ var setTextContent = __webpack_require__(77);
var ELEMENT_NODE_TYPE = 1;
var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
@@ -9942,7 +8570,7 @@
module.exports = DOMLazyTree;
/***/ },
-/* 84 */
+/* 74 */
/***/ function(module, exports) {
/**
@@ -9967,7 +8595,7 @@
module.exports = DOMNamespaces;
/***/ },
-/* 85 */
+/* 75 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -9983,13 +8611,13 @@
'use strict';
- var ExecutionEnvironment = __webpack_require__(50);
- var DOMNamespaces = __webpack_require__(84);
+ var ExecutionEnvironment = __webpack_require__(46);
+ var DOMNamespaces = __webpack_require__(74);
var WHITESPACE_TEST = /^[ \r\n\t\f]/;
var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/;
- var createMicrosoftUnsafeLocalFunction = __webpack_require__(86);
+ var createMicrosoftUnsafeLocalFunction = __webpack_require__(76);
// SVG temp container for IE lacking innerHTML
var reusableSVGContainer;
@@ -10070,7 +8698,7 @@
module.exports = setInnerHTML;
/***/ },
-/* 86 */
+/* 76 */
/***/ function(module, exports) {
/**
@@ -10107,7 +8735,7 @@
module.exports = createMicrosoftUnsafeLocalFunction;
/***/ },
-/* 87 */
+/* 77 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -10123,9 +8751,9 @@
'use strict';
- var ExecutionEnvironment = __webpack_require__(50);
- var escapeTextContentForBrowser = __webpack_require__(88);
- var setInnerHTML = __webpack_require__(85);
+ var ExecutionEnvironment = __webpack_require__(46);
+ var escapeTextContentForBrowser = __webpack_require__(78);
+ var setInnerHTML = __webpack_require__(75);
/**
* Set the textContent property of a node, ensuring that whitespace is preserved
@@ -10160,7 +8788,7 @@
module.exports = setTextContent;
/***/ },
-/* 88 */
+/* 78 */
/***/ function(module, exports) {
/**
@@ -10288,7 +8916,7 @@
module.exports = escapeTextContentForBrowser;
/***/ },
-/* 89 */
+/* 79 */
/***/ function(module, exports, __webpack_require__) {
/**
@@ -10306,10 +8934,10 @@
var _prodInvariant = __webpack_require__(7);
- var DOMLazyTree = __webpack_require__(83);
- var ExecutionEnvironment = __webpack_require__(50);
+ var DOMLazyTree = __webpack_require__(73);
+ var ExecutionEnvironment = __webpack_require__(46);
- var createNodesFromMarkup = __webpack_require__(90);
+ var createNodesFromMarkup = __webpack_require__(80);
var emptyFunction = __webpack_require__(12);
var invariant = __webpack_require__(8);
@@ -10324,9 +8952,9 @@
* @internal
*/
dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {
- !ExecutionEnvironment.canUseDOM ? (undefined) !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;
- !markup ? (undefined) !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
- !(oldChild.nodeName !== 'HTML') ? (undefined) !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;
+ !ExecutionEnvironment.canUseDOM ? false ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;
+ !markup ? false ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
+ !(oldChild.nodeName !== 'HTML') ? false ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;
if (typeof markup === 'string') {
var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
@@ -10341,7 +8969,7 @@
module.exports = Danger;
/***/ },
-/* 90 */
+/* 80 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
@@ -10359,10 +8987,10 @@
/*eslint-disable fb-www/unsafe-html*/
- var ExecutionEnvironment = __webpack_require__(50);
+ var ExecutionEnvironment = __webpack_require__(46);
- var createArrayFromMixed = __webpack_require__(91);
- var getMarkupWrap = __webpack_require__(92);
+ var createArrayFromMixed = __webpack_require__(81);
+ var getMarkupWrap = __webpack_require__(82);
var invariant = __webpack_require__(8);
/**
@@ -10398,7 +9026,7 @@
*/
function createNodesFromMarkup(markup, handleScript) {
var node = dummyNode;
- !!!dummyNode ? (undefined) !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
+ !!!dummyNode ? false ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
var nodeName = getNodeName(markup);
var wrap = nodeName && getMarkupWrap(nodeName);
@@ -10415,7 +9043,7 @@
var scripts = node.getElementsByTagName('script');
if (scripts.length) {
- !handleScript ? (undefined) !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected