From 6bbace8e70f0236113536ac7b811d76e446e7c84 Mon Sep 17 00:00:00 2001 From: sohamkamani Date: Sun, 5 Jun 2016 14:08:23 +0530 Subject: [PATCH] build --- bundle.js | 36907 +++++--------------------------------------- bundle.min.js | 36 +- index.html | 2 +- package.json | 12 +- src/index.jsx | 1 - webpack.config.js | 10 +- 6 files changed, 4198 insertions(+), 32770 deletions(-) diff --git a/bundle.js b/bundle.js index 1ab9f93..d3dcc63 100644 --- a/bundle.js +++ b/bundle.js @@ -48,7 +48,7 @@ __webpack_require__(1); - __webpack_require__(569); + __webpack_require__(211); /***/ }, /* 1 */ @@ -60,126 +60,37 @@ var _react2 = _interopRequireDefault(_react); - var _reactDom = __webpack_require__(38); + var _reactDom = __webpack_require__(39); - var _reactDom2 = _interopRequireDefault(_reactDom); + var _reactRedux = __webpack_require__(169); - var _redux = __webpack_require__(168); + var _redux = __webpack_require__(176); - var _reactRedux = __webpack_require__(181); + var _reducers = __webpack_require__(191); - var _reactRouter = __webpack_require__(190); + var _reducers2 = _interopRequireDefault(_reducers); - var _app = __webpack_require__(249); + var _App = __webpack_require__(195); - var _app2 = _interopRequireDefault(_app); + var _App2 = _interopRequireDefault(_App); - var _pipeline = __webpack_require__(254); - - var _pipeline2 = _interopRequireDefault(_pipeline); - - var _utilization = __webpack_require__(413); - - var _utilization2 = _interopRequireDefault(_utilization); - - var _inNegotiation = __webpack_require__(533); - - var _inNegotiation2 = _interopRequireDefault(_inNegotiation); - - var _pendingApproval = __webpack_require__(535); - - var _pendingApproval2 = _interopRequireDefault(_pendingApproval); - - var _projectMaterialized = __webpack_require__(536); - - var _projectMaterialized2 = _interopRequireDefault(_projectMaterialized); - - var _myStaffing = __webpack_require__(537); - - var _myStaffing2 = _interopRequireDefault(_myStaffing); - - var _dataService = __webpack_require__(540); + var _dataService = __webpack_require__(204); var _dataService2 = _interopRequireDefault(_dataService); - var _dataTable = __webpack_require__(548); - - var _dataTable2 = _interopRequireDefault(_dataTable); - - var _utilization3 = __webpack_require__(549); - - var _utilization4 = _interopRequireDefault(_utilization3); - - var _myStaffing3 = __webpack_require__(564); - - var _myStaffing4 = _interopRequireDefault(_myStaffing3); - - var _pipeline3 = __webpack_require__(565); - - var _pipeline4 = _interopRequireDefault(_pipeline3); - - var _userInfo = __webpack_require__(568); - - var _userInfo2 = _interopRequireDefault(_userInfo); - - var _canView = __webpack_require__(253); - - var _canView2 = _interopRequireDefault(_canView); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var mainReducer = (0, _redux.combineReducers)({ dataTable: _dataTable2.default, utilization: _utilization4.default, myStaffing: _myStaffing4.default, pipelineTable: _pipeline4.default, userInfo: _userInfo2.default }); - - var mainStore = (0, _redux.createStore)(mainReducer, {}, window.devToolsExtension ? window.devToolsExtension() : undefined); - - var node = document.getElementById('app-node'); - - _dataService2.default.getUserInfo(function (userData) { - var viewRights = (0, _canView2.default)(userData); - var render = function render() { - return _reactDom2.default.render(_react2.default.createElement( - _reactRedux.Provider, - { store: mainStore }, - _react2.default.createElement( - _reactRouter.Router, - { history: _reactRouter.hashHistory }, - viewRights.normal ? _react2.default.createElement( - _reactRouter.Route, - { path: '/', component: _app2.default }, - _react2.default.createElement(_reactRouter.Route, { path: 'in-negotiation', component: _inNegotiation2.default }), - _react2.default.createElement(_reactRouter.Route, { path: 'pending-approval', component: _pendingApproval2.default }), - _react2.default.createElement(_reactRouter.Route, { path: 'project-materialized', component: _projectMaterialized2.default }), - _react2.default.createElement(_reactRouter.Route, { path: 'my-staffing', component: _myStaffing2.default }), - _react2.default.createElement(_reactRouter.IndexRoute, { component: _myStaffing2.default }) - ) : null, - viewRights.leadership ? _react2.default.createElement( - _reactRouter.Route, - { path: '/', component: _app2.default }, - _react2.default.createElement(_reactRouter.Route, { path: 'pipeline', component: _pipeline2.default }), - _react2.default.createElement(_reactRouter.Route, { path: 'utilization', component: _utilization2.default }), - _react2.default.createElement(_reactRouter.IndexRoute, { component: _pipeline2.default }) - ) : null - ) - ), node); - }; - - mainStore.subscribe(render); - mainStore.dispatch({ type: 'USER_ACCESS_INFO_RECEIVED', data: userData }); - render(); - - var dataService = (0, _dataService2.default)(mainStore.dispatch); + var store = (0, _redux.createStore)(_reducers2.default, {}, (0, _redux.compose)((0, _redux.applyMiddleware)(_dataService2.default), window.devToolsExtension ? window.devToolsExtension() : function (f) { + return f; + })); - if (viewRights.normal) { - dataService.getTableData(); - dataService.getMyStaffingData(); - } - if (viewRights.leadership) { - dataService.getPipelineData(); - dataService.getUtilizationData(); - } - }); + (0, _reactDom.render)(_react2.default.createElement( + _reactRedux.Provider, + { store: store }, + _react2.default.createElement(_App2.default, null) + ), document.getElementById('app-node')); - console.log('env : ', ("development")); + store.dispatch({ type: 'GET_TODO_DATA' }); /***/ }, /* 2 */ @@ -194,7 +105,7 @@ /* 3 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -207,25 +118,25 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var ReactChildren = __webpack_require__(5); - var ReactComponent = __webpack_require__(16); - var ReactClass = __webpack_require__(27); - var ReactDOMFactories = __webpack_require__(32); - var ReactElement = __webpack_require__(8); - var ReactElementValidator = __webpack_require__(33); - var ReactPropTypes = __webpack_require__(35); - var ReactVersion = __webpack_require__(36); + var ReactChildren = __webpack_require__(6); + var ReactComponent = __webpack_require__(17); + var ReactClass = __webpack_require__(28); + var ReactDOMFactories = __webpack_require__(33); + var ReactElement = __webpack_require__(9); + var ReactElementValidator = __webpack_require__(34); + var ReactPropTypes = __webpack_require__(36); + var ReactVersion = __webpack_require__(37); - var onlyChild = __webpack_require__(37); - var warning = __webpack_require__(10); + var onlyChild = __webpack_require__(38); + var warning = __webpack_require__(11); var createElement = ReactElement.createElement; var createFactory = ReactElement.createFactory; var cloneElement = ReactElement.cloneElement; - if (true) { + if (process.env.NODE_ENV !== 'production') { createElement = ReactElementValidator.createElement; createFactory = ReactElementValidator.createFactory; cloneElement = ReactElementValidator.cloneElement; @@ -233,10 +144,10 @@ var __spread = _assign; - if (true) { + if (process.env.NODE_ENV !== 'production') { var warned = false; __spread = function () { - true ? 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); }; @@ -281,9 +192,110 @@ }; module.exports = React; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 4 */ +/***/ function(module, exports) { + + // shim for using process in browser + + var process = module.exports = {}; + 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 = setTimeout(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; + clearTimeout(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) { + setTimeout(drainQueue, 0); + } + }; + + // 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; }; + + +/***/ }, +/* 5 */ /***/ function(module, exports) { 'use strict'; @@ -372,7 +384,7 @@ /***/ }, -/* 5 */ +/* 6 */ /***/ function(module, exports, __webpack_require__) { /** @@ -388,11 +400,11 @@ 'use strict'; - var PooledClass = __webpack_require__(6); - var ReactElement = __webpack_require__(8); + var PooledClass = __webpack_require__(7); + var ReactElement = __webpack_require__(9); - var emptyFunction = __webpack_require__(11); - var traverseAllChildren = __webpack_require__(13); + var emptyFunction = __webpack_require__(12); + var traverseAllChildren = __webpack_require__(14); var twoArgumentPooler = PooledClass.twoArgumentPooler; var fourArgumentPooler = PooledClass.fourArgumentPooler; @@ -568,10 +580,10 @@ module.exports = ReactChildren; /***/ }, -/* 6 */ +/* 7 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -584,7 +596,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * Static poolers. Several custom versions for each potential number of @@ -650,7 +662,7 @@ var standardReleaser = function (instance) { var Klass = this; - !(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : invariant(false) : void 0; + !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : invariant(false) : void 0; instance.destructor(); if (Klass.instancePool.length < Klass.poolSize) { Klass.instancePool.push(instance); @@ -690,12 +702,13 @@ }; module.exports = PooledClass; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 7 */ +/* 8 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * @@ -719,7 +732,7 @@ */ function invariant(condition, format, a, b, c, d, e, f) { - if (true) { + if (process.env.NODE_ENV !== 'production') { if (format === undefined) { throw new Error('invariant requires an error message argument'); } @@ -744,12 +757,13 @@ } module.exports = invariant; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 8 */ +/* 9 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-present, Facebook, Inc. * All rights reserved. * @@ -762,12 +776,12 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var ReactCurrentOwner = __webpack_require__(9); + var ReactCurrentOwner = __webpack_require__(10); - var warning = __webpack_require__(10); - var canDefineProperty = __webpack_require__(12); + var warning = __webpack_require__(11); + var canDefineProperty = __webpack_require__(13); // The Symbol used to tag the ReactElement type. If there is no native Symbol // nor polyfill, then a plain number is used for performance. @@ -817,7 +831,7 @@ _owner: owner }; - if (true) { + if (process.env.NODE_ENV !== 'production') { // 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 @@ -880,8 +894,8 @@ var source = null; if (config != null) { - if (true) { - true ? warning( + if (process.env.NODE_ENV !== 'production') { + process.env.NODE_ENV !== 'production' ? warning( /* eslint-disable no-proto */ config.__proto__ == null || config.__proto__ === Object.prototype, /* eslint-enable no-proto */ @@ -924,7 +938,7 @@ } } } - if (true) { + if (process.env.NODE_ENV !== 'production') { // Create dummy `key` and `ref` property to `props` to warn users // against its use if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) { @@ -933,7 +947,7 @@ get: function () { if (!specialPropKeyWarningShown) { specialPropKeyWarningShown = true; - true ? 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)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0; + process.env.NODE_ENV !== '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)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0; } return undefined; }, @@ -945,7 +959,7 @@ get: function () { if (!specialPropRefWarningShown) { specialPropRefWarningShown = true; - true ? 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)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0; + process.env.NODE_ENV !== '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)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0; } return undefined; }, @@ -1002,8 +1016,8 @@ var owner = element._owner; if (config != null) { - if (true) { - true ? warning( + if (process.env.NODE_ENV !== 'production') { + process.env.NODE_ENV !== 'production' ? warning( /* eslint-disable no-proto */ config.__proto__ == null || config.__proto__ === Object.prototype, /* eslint-enable no-proto */ @@ -1062,9 +1076,10 @@ }; module.exports = ReactElement; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 9 */ +/* 10 */ /***/ function(module, exports) { /** @@ -1100,10 +1115,10 @@ module.exports = ReactCurrentOwner; /***/ }, -/* 10 */ +/* 11 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * @@ -1115,7 +1130,7 @@ 'use strict'; - var emptyFunction = __webpack_require__(11); + var emptyFunction = __webpack_require__(12); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -1126,8 +1141,8 @@ var warning = emptyFunction; - if (true) { - warning = function (condition, format) { + if (process.env.NODE_ENV !== 'production') { + warning = function warning(condition, format) { for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { args[_key - 2] = arguments[_key]; } @@ -1159,9 +1174,10 @@ } module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 11 */ +/* 12 */ /***/ function(module, exports) { "use strict"; @@ -1174,6 +1190,7 @@ * 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. * + * */ function makeEmptyFunction(arg) { @@ -1187,7 +1204,7 @@ * primarily useful idiomatically for overridable function endpoints which * always need to be callable, since JS lacks a null-call idiom ala Cocoa. */ - function emptyFunction() {} + var emptyFunction = function emptyFunction() {}; emptyFunction.thatReturns = makeEmptyFunction; emptyFunction.thatReturnsFalse = makeEmptyFunction(false); @@ -1203,10 +1220,10 @@ module.exports = emptyFunction; /***/ }, -/* 12 */ +/* 13 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -1220,7 +1237,7 @@ 'use strict'; var canDefineProperty = false; - if (true) { + if (process.env.NODE_ENV !== 'production') { try { Object.defineProperty({}, 'x', { get: function () {} }); canDefineProperty = true; @@ -1230,12 +1247,13 @@ } module.exports = canDefineProperty; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 13 */ +/* 14 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -1248,13 +1266,13 @@ 'use strict'; - var ReactCurrentOwner = __webpack_require__(9); - var ReactElement = __webpack_require__(8); + var ReactCurrentOwner = __webpack_require__(10); + var ReactElement = __webpack_require__(9); - var getIteratorFn = __webpack_require__(14); - var invariant = __webpack_require__(7); - var KeyEscapeUtils = __webpack_require__(15); - var warning = __webpack_require__(10); + var getIteratorFn = __webpack_require__(15); + var invariant = __webpack_require__(8); + var KeyEscapeUtils = __webpack_require__(16); + var warning = __webpack_require__(11); var SEPARATOR = '.'; var SUBSEPARATOR = ':'; @@ -1332,8 +1350,8 @@ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); } } else { - if (true) { - true ? 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.') : void 0; + if (process.env.NODE_ENV !== 'production') { + 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.') : void 0; didWarnAboutMaps = true; } // Iterator will provide entry [k,v] tuples rather than values. @@ -1348,7 +1366,7 @@ } } else if (type === 'object') { var addendum = ''; - if (true) { + if (process.env.NODE_ENV !== 'production') { 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.'; @@ -1361,7 +1379,7 @@ } } var childrenString = String(children); - true ? true ? 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) : invariant(false) : void 0; + true ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; } } @@ -1393,9 +1411,10 @@ } module.exports = traverseAllChildren; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 14 */ +/* 15 */ /***/ function(module, exports) { /** @@ -1440,7 +1459,7 @@ module.exports = getIteratorFn; /***/ }, -/* 15 */ +/* 16 */ /***/ function(module, exports) { /** @@ -1503,10 +1522,10 @@ module.exports = KeyEscapeUtils; /***/ }, -/* 16 */ +/* 17 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -1519,13 +1538,13 @@ 'use strict'; - var ReactNoopUpdateQueue = __webpack_require__(17); - var ReactInstrumentation = __webpack_require__(18); + var ReactNoopUpdateQueue = __webpack_require__(18); + var ReactInstrumentation = __webpack_require__(19); - var canDefineProperty = __webpack_require__(12); - var emptyObject = __webpack_require__(26); - var invariant = __webpack_require__(7); - var warning = __webpack_require__(10); + var canDefineProperty = __webpack_require__(13); + var emptyObject = __webpack_require__(27); + var invariant = __webpack_require__(8); + var warning = __webpack_require__(11); /** * Base class helpers for the updating state of a component. @@ -1567,10 +1586,10 @@ * @protected */ ReactComponent.prototype.setState = function (partialState, callback) { - !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? true ? invariant(false, 'setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.') : invariant(false) : void 0; - if (true) { + !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.') : invariant(false) : void 0; + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onSetState(); - true ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0; + process.env.NODE_ENV !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0; } this.updater.enqueueSetState(this, partialState); if (callback) { @@ -1604,7 +1623,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 (true) { + if (process.env.NODE_ENV !== 'production') { 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).'] @@ -1613,7 +1632,7 @@ if (canDefineProperty) { Object.defineProperty(ReactComponent.prototype, methodName, { get: function () { - true ? 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; } }); @@ -1627,12 +1646,13 @@ } module.exports = ReactComponent; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 17 */ +/* 18 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2015-present, Facebook, Inc. * All rights reserved. * @@ -1645,11 +1665,11 @@ 'use strict'; - var warning = __webpack_require__(10); + var warning = __webpack_require__(11); function warnTDZ(publicInstance, callerName) { - if (true) { - true ? 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, publicInstance.constructor && publicInstance.constructor.displayName || '') : void 0; + if (process.env.NODE_ENV !== 'production') { + 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, publicInstance.constructor && publicInstance.constructor.displayName || '') : void 0; } } @@ -1727,9 +1747,10 @@ }; module.exports = ReactNoopUpdateQueue; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 18 */ +/* 19 */ /***/ function(module, exports, __webpack_require__) { /** @@ -1745,15 +1766,15 @@ 'use strict'; - var ReactDebugTool = __webpack_require__(19); + var ReactDebugTool = __webpack_require__(20); module.exports = { debugTool: ReactDebugTool }; /***/ }, -/* 19 */ +/* 20 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2016-present, Facebook, Inc. * All rights reserved. * @@ -1766,23 +1787,23 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); - var performanceNow = __webpack_require__(21); - var warning = __webpack_require__(10); + var performanceNow = __webpack_require__(22); + var warning = __webpack_require__(11); var eventHandlers = []; var handlerDoesThrowForEvent = {}; function emitEvent(handlerFunctionName, arg1, arg2, arg3, arg4, arg5) { - if (true) { + if (process.env.NODE_ENV !== 'production') { eventHandlers.forEach(function (handler) { try { if (handler[handlerFunctionName]) { handler[handlerFunctionName](arg1, arg2, arg3, arg4, arg5); } } catch (e) { - true ? warning(!handlerDoesThrowForEvent[handlerFunctionName], 'exception thrown by devtool while handling %s: %s', handlerFunctionName, e.message) : void 0; + process.env.NODE_ENV !== 'production' ? warning(!handlerDoesThrowForEvent[handlerFunctionName], 'exception thrown by devtool while handling %s: %s', handlerFunctionName, e.message) : void 0; handlerDoesThrowForEvent[handlerFunctionName] = true; } }); @@ -1821,7 +1842,7 @@ } function resetMeasurements() { - if (true) { + if (process.env.NODE_ENV !== 'production') { var previousStartTime = currentFlushStartTime; var previousMeasurements = currentFlushMeasurements || []; var previousOperations = ReactNativeOperationHistoryDevtool.getHistory(); @@ -1850,7 +1871,7 @@ } function checkDebugID(debugID) { - true ? warning(debugID, 'ReactDebugTool: debugID may not be empty.') : void 0; + process.env.NODE_ENV !== 'production' ? warning(debugID, 'ReactDebugTool: debugID may not be empty.') : void 0; } var ReactDebugTool = { @@ -1866,7 +1887,7 @@ } }, beginProfiling: function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { if (isProfiling) { return; } @@ -1877,7 +1898,7 @@ } }, endProfiling: function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { if (!isProfiling) { return; } @@ -1887,19 +1908,19 @@ } }, getFlushHistory: function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { return flushHistory; } }, onBeginFlush: function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { currentFlushNesting++; resetMeasurements(); } emitEvent('onBeginFlush'); }, onEndFlush: function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { resetMeasurements(); currentFlushNesting--; } @@ -1908,9 +1929,9 @@ onBeginLifeCycleTimer: function (debugID, timerType) { checkDebugID(debugID); emitEvent('onBeginLifeCycleTimer', debugID, timerType); - if (true) { + if (process.env.NODE_ENV !== 'production') { if (isProfiling && currentFlushNesting > 0) { - true ? warning(!currentTimerType, '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; + process.env.NODE_ENV !== 'production' ? warning(!currentTimerType, '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; currentTimerStartTime = performanceNow(); currentTimerDebugID = debugID; currentTimerType = timerType; @@ -1919,9 +1940,9 @@ }, onEndLifeCycleTimer: function (debugID, timerType) { checkDebugID(debugID); - if (true) { + if (process.env.NODE_ENV !== 'production') { if (isProfiling && currentFlushNesting > 0) { - true ? warning(currentTimerType === timerType, '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; + process.env.NODE_ENV !== 'production' ? warning(currentTimerType === timerType, '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; currentFlushMeasurements.push({ timerType: timerType, instanceID: debugID, @@ -1989,10 +2010,10 @@ } }; - if (true) { - var ReactInvalidSetStateWarningDevTool = __webpack_require__(23); - var ReactNativeOperationHistoryDevtool = __webpack_require__(24); - var ReactComponentTreeDevtool = __webpack_require__(25); + if (process.env.NODE_ENV !== 'production') { + var ReactInvalidSetStateWarningDevTool = __webpack_require__(24); + var ReactNativeOperationHistoryDevtool = __webpack_require__(25); + var ReactComponentTreeDevtool = __webpack_require__(26); ReactDebugTool.addDevtool(ReactInvalidSetStateWarningDevTool); ReactDebugTool.addDevtool(ReactComponentTreeDevtool); ReactDebugTool.addDevtool(ReactNativeOperationHistoryDevtool); @@ -2003,9 +2024,10 @@ } module.exports = ReactDebugTool; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 20 */ +/* 21 */ /***/ function(module, exports) { /** @@ -2045,7 +2067,7 @@ module.exports = ExecutionEnvironment; /***/ }, -/* 21 */ +/* 22 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -2061,7 +2083,7 @@ * @typechecks */ - var performance = __webpack_require__(22); + var performance = __webpack_require__(23); var performanceNow; @@ -2071,11 +2093,11 @@ * because of Facebook's testing infrastructure. */ if (performance.now) { - performanceNow = function () { + performanceNow = function performanceNow() { return performance.now(); }; } else { - performanceNow = function () { + performanceNow = function performanceNow() { return Date.now(); }; } @@ -2083,7 +2105,7 @@ module.exports = performanceNow; /***/ }, -/* 22 */ +/* 23 */ /***/ function(module, exports, __webpack_require__) { /** @@ -2099,7 +2121,7 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); var performance; @@ -2110,10 +2132,10 @@ module.exports = performance || {}; /***/ }, -/* 23 */ +/* 24 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2016-present, Facebook, Inc. * All rights reserved. * @@ -2126,13 +2148,13 @@ 'use strict'; - var warning = __webpack_require__(10); + var warning = __webpack_require__(11); - if (true) { + if (process.env.NODE_ENV !== 'production') { var processingChildContext = false; var warnInvalidSetState = function () { - true ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0; + process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0; }; } @@ -2149,9 +2171,10 @@ }; module.exports = ReactInvalidSetStateWarningDevTool; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 24 */ +/* 25 */ /***/ function(module, exports) { /** @@ -2193,10 +2216,10 @@ module.exports = ReactNativeOperationHistoryDevtool; /***/ }, -/* 25 */ +/* 26 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2016-present, Facebook, Inc. * All rights reserved. * @@ -2209,7 +2232,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); var tree = {}; var rootIDs = []; @@ -2252,10 +2275,10 @@ nextChildIDs.forEach(function (nextChildID) { var nextChild = tree[nextChildID]; - !nextChild ? true ? invariant(false, 'Expected devtool events to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; - !(nextChild.displayName != null) ? true ? invariant(false, 'Expected onSetDisplayName() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; - !(nextChild.childIDs != null || nextChild.text != null) ? true ? invariant(false, 'Expected onSetChildren() or onSetText() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; - !nextChild.isMounted ? true ? invariant(false, 'Expected onMountComponent() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; + !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected devtool events to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; + !(nextChild.displayName != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetDisplayName() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; + !(nextChild.childIDs != null || nextChild.text != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() or onSetText() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; + !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child ' + 'before its parent includes it in onSetChildren().') : invariant(false) : void 0; if (prevChildIDs.indexOf(nextChildID) === -1) { nextChild.parentID = id; @@ -2341,12 +2364,13 @@ }; module.exports = ReactComponentTreeDevtool; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 26 */ +/* 27 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * @@ -2360,17 +2384,18 @@ var emptyObject = {}; - if (true) { + if (process.env.NODE_ENV !== 'production') { Object.freeze(emptyObject); } module.exports = emptyObject; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 27 */ +/* 28 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -2383,19 +2408,19 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var ReactComponent = __webpack_require__(16); - var ReactElement = __webpack_require__(8); - var ReactPropTypeLocations = __webpack_require__(28); - var ReactPropTypeLocationNames = __webpack_require__(30); - var ReactNoopUpdateQueue = __webpack_require__(17); + var ReactComponent = __webpack_require__(17); + var ReactElement = __webpack_require__(9); + var ReactPropTypeLocations = __webpack_require__(29); + var ReactPropTypeLocationNames = __webpack_require__(31); + var ReactNoopUpdateQueue = __webpack_require__(18); - var emptyObject = __webpack_require__(26); - var invariant = __webpack_require__(7); - var keyMirror = __webpack_require__(29); - var keyOf = __webpack_require__(31); - var warning = __webpack_require__(10); + var emptyObject = __webpack_require__(27); + var invariant = __webpack_require__(8); + var keyMirror = __webpack_require__(30); + var keyOf = __webpack_require__(32); + var warning = __webpack_require__(11); var MIXINS_KEY = keyOf({ mixins: null }); @@ -2692,13 +2717,13 @@ } }, childContextTypes: function (Constructor, childContextTypes) { - if (true) { + if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, childContextTypes, ReactPropTypeLocations.childContext); } Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes); }, contextTypes: function (Constructor, contextTypes) { - if (true) { + if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, contextTypes, ReactPropTypeLocations.context); } Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes); @@ -2715,7 +2740,7 @@ } }, propTypes: function (Constructor, propTypes) { - if (true) { + if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, propTypes, ReactPropTypeLocations.prop); } Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); @@ -2731,7 +2756,7 @@ if (typeDef.hasOwnProperty(propName)) { // use a warning instead of an invariant so components // don't show up in prod but only in __DEV__ - true ? 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; + process.env.NODE_ENV !== '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; } } } @@ -2741,12 +2766,12 @@ // Disallow overriding of base class methods unless explicitly allowed. if (ReactClassMixin.hasOwnProperty(name)) { - !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? true ? 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) : invariant(false) : void 0; + !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; } // Disallow defining methods more than once unless explicitly allowed. if (isAlreadyDefined) { - !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? true ? invariant(false, 'ReactClassInterface: You are attempting to define ' + '`%s` on your component more than once. This conflict may be due ' + 'to a mixin.', name) : invariant(false) : void 0; + !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; } } @@ -2759,8 +2784,8 @@ return; } - !(typeof spec !== 'function') ? true ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component class or function as a mixin. Instead, just use a ' + 'regular object.') : invariant(false) : void 0; - !!ReactElement.isValidElement(spec) ? true ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component as a mixin. Instead, just use a regular object.') : invariant(false) : void 0; + !(typeof spec !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component class or function as a mixin. Instead, just use a ' + 'regular object.') : invariant(false) : void 0; + !!ReactElement.isValidElement(spec) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component as a mixin. Instead, just use a regular object.') : invariant(false) : void 0; var proto = Constructor.prototype; var autoBindPairs = proto.__reactAutoBindPairs; @@ -2805,7 +2830,7 @@ var specPolicy = ReactClassInterface[name]; // These cases should already be caught by validateMethodOverride. - !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? true ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name) : invariant(false) : void 0; + !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name) : invariant(false) : void 0; // For methods which are defined more than once, call the existing // methods before calling the new property, merging if appropriate. @@ -2816,7 +2841,7 @@ } } else { proto[name] = property; - if (true) { + if (process.env.NODE_ENV !== 'production') { // Add verbose displayName to the function, which helps when looking // at profiling tools. if (typeof property === 'function' && spec.displayName) { @@ -2840,10 +2865,10 @@ } var isReserved = name in RESERVED_SPEC_KEYS; - !!isReserved ? true ? 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) : invariant(false) : void 0; + !!isReserved ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; var isInherited = name in Constructor; - !!isInherited ? true ? invariant(false, 'ReactClass: You are attempting to define ' + '`%s` on your component more than once. This conflict may be ' + 'due to a mixin.', name) : invariant(false) : void 0; + !!isInherited ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; Constructor[name] = property; } } @@ -2856,11 +2881,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') ? true ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : invariant(false) : void 0; + !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : invariant(false) : void 0; for (var key in two) { if (two.hasOwnProperty(key)) { - !(one[key] === undefined) ? true ? 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) : invariant(false) : void 0; + !(one[key] === undefined) ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; one[key] = two[key]; } } @@ -2915,7 +2940,7 @@ */ function bindAutoBindMethod(component, method) { var boundMethod = method.bind(component); - if (true) { + if (process.env.NODE_ENV !== 'production') { boundMethod.__reactBoundContext = component; boundMethod.__reactBoundMethod = method; boundMethod.__reactBoundArguments = null; @@ -2930,9 +2955,9 @@ // ignore the value of "this" that the user is trying to use, so // let's warn. if (newThis !== component && newThis !== null) { - true ? 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) { - true ? 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); @@ -3010,8 +3035,8 @@ // This constructor gets overridden by mocks. The argument is used // by mocks to assert on what gets mounted. - if (true) { - true ? 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 (process.env.NODE_ENV !== 'production') { + 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 @@ -3030,7 +3055,7 @@ // getInitialState and componentWillMount methods for initialization. var initialState = this.getInitialState ? this.getInitialState() : null; - if (true) { + if (process.env.NODE_ENV !== 'production') { // 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 @@ -3038,7 +3063,7 @@ initialState = null; } } - !(typeof initialState === 'object' && !Array.isArray(initialState)) ? true ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : invariant(false) : void 0; + !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : invariant(false) : void 0; this.state = initialState; }; @@ -3055,7 +3080,7 @@ Constructor.defaultProps = Constructor.getDefaultProps(); } - if (true) { + if (process.env.NODE_ENV !== 'production') { // 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 @@ -3068,11 +3093,11 @@ } } - !Constructor.prototype.render ? true ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : invariant(false) : void 0; + !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : invariant(false) : void 0; - if (true) { - true ? 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; - true ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0; + if (process.env.NODE_ENV !== 'production') { + 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. @@ -3094,9 +3119,10 @@ }; module.exports = ReactClass; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 28 */ +/* 29 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3112,7 +3138,7 @@ 'use strict'; - var keyMirror = __webpack_require__(29); + var keyMirror = __webpack_require__(30); var ReactPropTypeLocations = keyMirror({ prop: null, @@ -3123,10 +3149,10 @@ module.exports = ReactPropTypeLocations; /***/ }, -/* 29 */ +/* 30 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * @@ -3139,7 +3165,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * Constructs an enumeration with keys equal to their value. @@ -3159,10 +3185,10 @@ * @param {object} obj * @return {object} */ - var keyMirror = function (obj) { + var keyMirror = function keyMirror(obj) { var ret = {}; var key; - !(obj instanceof Object && !Array.isArray(obj)) ? true ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0; + !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0; for (key in obj) { if (!obj.hasOwnProperty(key)) { continue; @@ -3173,12 +3199,13 @@ }; module.exports = keyMirror; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 30 */ +/* 31 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -3193,7 +3220,7 @@ var ReactPropTypeLocationNames = {}; - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactPropTypeLocationNames = { prop: 'prop', context: 'context', @@ -3202,9 +3229,10 @@ } module.exports = ReactPropTypeLocationNames; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 31 */ +/* 32 */ /***/ function(module, exports) { "use strict"; @@ -3229,7 +3257,7 @@ * 'xa12' in that case. Resolve keys you want to use once at startup time, then * reuse those resolutions. */ - var keyOf = function (oneKeyObj) { + var keyOf = function keyOf(oneKeyObj) { var key; for (key in oneKeyObj) { if (!oneKeyObj.hasOwnProperty(key)) { @@ -3243,10 +3271,10 @@ module.exports = keyOf; /***/ }, -/* 32 */ +/* 33 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -3259,10 +3287,10 @@ 'use strict'; - var ReactElement = __webpack_require__(8); - var ReactElementValidator = __webpack_require__(33); + var ReactElement = __webpack_require__(9); + var ReactElementValidator = __webpack_require__(34); - var mapObject = __webpack_require__(34); + var mapObject = __webpack_require__(35); /** * Create a factory that creates HTML tag elements. @@ -3271,7 +3299,7 @@ * @private */ function createDOMFactory(tag) { - if (true) { + if (process.env.NODE_ENV !== 'production') { return ReactElementValidator.createFactory(tag); } return ReactElement.createFactory(tag); @@ -3422,12 +3450,13 @@ }, createDOMFactory); module.exports = ReactDOMFactories; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 33 */ +/* 34 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-present, Facebook, Inc. * All rights reserved. * @@ -3447,15 +3476,15 @@ 'use strict'; - var ReactElement = __webpack_require__(8); - var ReactPropTypeLocations = __webpack_require__(28); - var ReactPropTypeLocationNames = __webpack_require__(30); - var ReactCurrentOwner = __webpack_require__(9); + var ReactElement = __webpack_require__(9); + var ReactPropTypeLocations = __webpack_require__(29); + var ReactPropTypeLocationNames = __webpack_require__(31); + var ReactCurrentOwner = __webpack_require__(10); - var canDefineProperty = __webpack_require__(12); - var getIteratorFn = __webpack_require__(14); - var invariant = __webpack_require__(7); - var warning = __webpack_require__(10); + var canDefineProperty = __webpack_require__(13); + var getIteratorFn = __webpack_require__(15); + var invariant = __webpack_require__(8); + var warning = __webpack_require__(11); function getDeclarationErrorAddendum() { if (ReactCurrentOwner.current) { @@ -3497,7 +3526,7 @@ // we already showed the warning return; } - true ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s%s', addenda.parentOrOwner || '', addenda.childOwner || '', addenda.url || '') : void 0; + process.env.NODE_ENV !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s%s', addenda.parentOrOwner || '', addenda.childOwner || '', addenda.url || '') : void 0; } /** @@ -3603,19 +3632,19 @@ try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. - !(typeof propTypes[propName] === 'function') ? true ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], propName) : invariant(false) : void 0; + !(typeof propTypes[propName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], propName) : invariant(false) : void 0; error = propTypes[propName](props, propName, componentName, location); } catch (ex) { error = ex; } - true ? 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], propName, typeof error) : void 0; + process.env.NODE_ENV !== '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], propName, 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 addendum = getDeclarationErrorAddendum(); - true ? warning(false, 'Failed propType: %s%s', error.message, addendum) : void 0; + process.env.NODE_ENV !== 'production' ? warning(false, 'Failed propType: %s%s', error.message, addendum) : void 0; } } } @@ -3637,7 +3666,7 @@ checkPropTypes(name, componentClass.propTypes, element.props, ReactPropTypeLocations.prop); } if (typeof componentClass.getDefaultProps === 'function') { - true ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; + process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; } } @@ -3647,7 +3676,7 @@ 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. - true ? warning(validType, '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; + process.env.NODE_ENV !== 'production' ? warning(validType, '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); @@ -3678,12 +3707,12 @@ // Legacy hook TODO: Warn if this is accessed validatedFactory.type = type; - if (true) { + if (process.env.NODE_ENV !== 'production') { if (canDefineProperty) { Object.defineProperty(validatedFactory, 'type', { enumerable: false, get: function () { - true ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0; + process.env.NODE_ENV !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0; Object.defineProperty(this, 'type', { value: type }); @@ -3708,9 +3737,10 @@ }; module.exports = ReactElementValidator; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 34 */ +/* 35 */ /***/ function(module, exports) { /** @@ -3765,7 +3795,7 @@ module.exports = mapObject; /***/ }, -/* 35 */ +/* 36 */ /***/ function(module, exports, __webpack_require__) { /** @@ -3781,11 +3811,11 @@ 'use strict'; - var ReactElement = __webpack_require__(8); - var ReactPropTypeLocationNames = __webpack_require__(30); + var ReactElement = __webpack_require__(9); + var ReactPropTypeLocationNames = __webpack_require__(31); - var emptyFunction = __webpack_require__(11); - var getIteratorFn = __webpack_require__(14); + var emptyFunction = __webpack_require__(12); + var getIteratorFn = __webpack_require__(15); /** * Collection of methods that allow declaration and validation of props that are @@ -4150,7 +4180,7 @@ module.exports = ReactPropTypes; /***/ }, -/* 36 */ +/* 37 */ /***/ function(module, exports) { /** @@ -4169,10 +4199,10 @@ module.exports = '15.1.0'; /***/ }, -/* 37 */ +/* 38 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -4184,9 +4214,9 @@ */ 'use strict'; - var ReactElement = __webpack_require__(8); + var ReactElement = __webpack_require__(9); - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * Returns the first child in a collection of children and verifies that there @@ -4203,26 +4233,27 @@ * structure. */ function onlyChild(children) { - !ReactElement.isValidElement(children) ? true ? invariant(false, 'onlyChild must be passed a children with exactly one child.') : invariant(false) : void 0; + !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'onlyChild must be passed a children with exactly one child.') : invariant(false) : void 0; return children; } module.exports = onlyChild; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 38 */ +/* 39 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - module.exports = __webpack_require__(39); + module.exports = __webpack_require__(40); /***/ }, -/* 39 */ +/* 40 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -4237,17 +4268,17 @@ 'use strict'; - var ReactDOMComponentTree = __webpack_require__(40); - var ReactDefaultInjection = __webpack_require__(43); - var ReactMount = __webpack_require__(160); - var ReactReconciler = __webpack_require__(62); - var ReactUpdates = __webpack_require__(59); - var ReactVersion = __webpack_require__(36); + var ReactDOMComponentTree = __webpack_require__(41); + var ReactDefaultInjection = __webpack_require__(44); + var ReactMount = __webpack_require__(161); + var ReactReconciler = __webpack_require__(63); + var ReactUpdates = __webpack_require__(60); + var ReactVersion = __webpack_require__(37); - var findDOMNode = __webpack_require__(165); - var getNativeComponentFromComposite = __webpack_require__(166); - var renderSubtreeIntoContainer = __webpack_require__(167); - var warning = __webpack_require__(10); + var findDOMNode = __webpack_require__(166); + var getNativeComponentFromComposite = __webpack_require__(167); + var renderSubtreeIntoContainer = __webpack_require__(168); + var warning = __webpack_require__(11); ReactDefaultInjection.inject(); @@ -4286,8 +4317,8 @@ }); } - if (true) { - var ExecutionEnvironment = __webpack_require__(20); + if (process.env.NODE_ENV !== 'production') { + var ExecutionEnvironment = __webpack_require__(21); if (ExecutionEnvironment.canUseDOM && window.top === window.self) { // First check if devtools is not installed @@ -4301,13 +4332,13 @@ } var testFunc = function testFn() {}; - true ? 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; - true ? 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 @@ -4315,7 +4346,7 @@ for (var i = 0; i < expectedFeatures.length; i++) { if (!expectedFeatures[i]) { - true ? 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; } } @@ -4323,12 +4354,13 @@ } module.exports = React; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 40 */ +/* 41 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -4341,10 +4373,10 @@ 'use strict'; - var DOMProperty = __webpack_require__(41); - var ReactDOMComponentFlags = __webpack_require__(42); + var DOMProperty = __webpack_require__(42); + var ReactDOMComponentFlags = __webpack_require__(43); - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; var Flags = ReactDOMComponentFlags; @@ -4422,7 +4454,7 @@ } } // We reached the end of the DOM children without finding an ID match. - true ? true ? invariant(false, 'Unable to find element with ID %s.', childID) : invariant(false) : void 0; + true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : invariant(false) : void 0; } inst._flags |= Flags.hasCachedChildNodes; } @@ -4481,7 +4513,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._nativeNode !== undefined) ? true ? invariant(false, 'getNodeFromInstance: Invalid argument.') : invariant(false) : void 0; + !(inst._nativeNode !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : invariant(false) : void 0; if (inst._nativeNode) { return inst._nativeNode; @@ -4491,7 +4523,7 @@ var parents = []; while (!inst._nativeNode) { parents.push(inst); - !inst._nativeParent ? true ? invariant(false, 'React DOM tree root should always have a node reference.') : invariant(false) : void 0; + !inst._nativeParent ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : invariant(false) : void 0; inst = inst._nativeParent; } @@ -4514,12 +4546,13 @@ }; module.exports = ReactDOMComponentTree; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 41 */ +/* 42 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -4532,7 +4565,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); function checkMask(value, bitmask) { return (value & bitmask) === bitmask; @@ -4591,7 +4624,7 @@ } for (var propName in Properties) { - !!DOMProperty.properties.hasOwnProperty(propName) ? true ? 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) : invariant(false) : void 0; + !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== '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) : invariant(false) : void 0; var lowerCased = propName.toLowerCase(); var propConfig = Properties[propName]; @@ -4610,17 +4643,17 @@ hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE) }; - !(propertyInfo.mustUseProperty || !propertyInfo.hasSideEffects) ? true ? invariant(false, 'DOMProperty: Properties that have side effects must use property: %s', propName) : invariant(false) : void 0; - !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? true ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName) : invariant(false) : void 0; + !(propertyInfo.mustUseProperty || !propertyInfo.hasSideEffects) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Properties that have side effects must use property: %s', propName) : invariant(false) : void 0; + !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName) : invariant(false) : void 0; - if (true) { + if (process.env.NODE_ENV !== 'production') { DOMProperty.getPossibleStandardName[lowerCased] = propName; } if (DOMAttributeNames.hasOwnProperty(propName)) { var attributeName = DOMAttributeNames[propName]; propertyInfo.attributeName = attributeName; - if (true) { + if (process.env.NODE_ENV !== 'production') { DOMProperty.getPossibleStandardName[attributeName] = propName; } } @@ -4707,7 +4740,7 @@ * to warn in the case of missing properties. Available only in __DEV__. * @type {Object} */ - getPossibleStandardName: true ? {} : null, + getPossibleStandardName: process.env.NODE_ENV !== 'production' ? {} : null, /** * All of the isCustomAttribute() functions that have been injected. @@ -4732,9 +4765,10 @@ }; module.exports = DOMProperty; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 42 */ +/* 43 */ /***/ function(module, exports) { /** @@ -4757,7 +4791,7 @@ module.exports = ReactDOMComponentFlags; /***/ }, -/* 43 */ +/* 44 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4773,24 +4807,24 @@ 'use strict'; - var BeforeInputEventPlugin = __webpack_require__(44); - var ChangeEventPlugin = __webpack_require__(58); - var DefaultEventPluginOrder = __webpack_require__(69); - var EnterLeaveEventPlugin = __webpack_require__(70); - var HTMLDOMPropertyConfig = __webpack_require__(75); - var ReactComponentBrowserEnvironment = __webpack_require__(76); - var ReactDOMComponent = __webpack_require__(90); - var ReactDOMComponentTree = __webpack_require__(40); - var ReactDOMEmptyComponent = __webpack_require__(131); - var ReactDOMTreeTraversal = __webpack_require__(132); - var ReactDOMTextComponent = __webpack_require__(133); - var ReactDefaultBatchingStrategy = __webpack_require__(134); - var ReactEventListener = __webpack_require__(135); - var ReactInjection = __webpack_require__(138); - var ReactReconcileTransaction = __webpack_require__(139); - var SVGDOMPropertyConfig = __webpack_require__(147); - var SelectEventPlugin = __webpack_require__(148); - var SimpleEventPlugin = __webpack_require__(149); + var BeforeInputEventPlugin = __webpack_require__(45); + var ChangeEventPlugin = __webpack_require__(59); + var DefaultEventPluginOrder = __webpack_require__(70); + var EnterLeaveEventPlugin = __webpack_require__(71); + var HTMLDOMPropertyConfig = __webpack_require__(76); + var ReactComponentBrowserEnvironment = __webpack_require__(77); + var ReactDOMComponent = __webpack_require__(91); + var ReactDOMComponentTree = __webpack_require__(41); + var ReactDOMEmptyComponent = __webpack_require__(132); + var ReactDOMTreeTraversal = __webpack_require__(133); + var ReactDOMTextComponent = __webpack_require__(134); + var ReactDefaultBatchingStrategy = __webpack_require__(135); + var ReactEventListener = __webpack_require__(136); + var ReactInjection = __webpack_require__(139); + var ReactReconcileTransaction = __webpack_require__(140); + var SVGDOMPropertyConfig = __webpack_require__(148); + var SelectEventPlugin = __webpack_require__(149); + var SimpleEventPlugin = __webpack_require__(150); var alreadyInjected = false; @@ -4846,7 +4880,7 @@ }; /***/ }, -/* 44 */ +/* 45 */ /***/ function(module, exports, __webpack_require__) { /** @@ -4862,14 +4896,14 @@ 'use strict'; - var EventConstants = __webpack_require__(45); - var EventPropagators = __webpack_require__(46); - var ExecutionEnvironment = __webpack_require__(20); - var FallbackCompositionState = __webpack_require__(53); - var SyntheticCompositionEvent = __webpack_require__(55); - var SyntheticInputEvent = __webpack_require__(57); + var EventConstants = __webpack_require__(46); + var EventPropagators = __webpack_require__(47); + var ExecutionEnvironment = __webpack_require__(21); + var FallbackCompositionState = __webpack_require__(54); + var SyntheticCompositionEvent = __webpack_require__(56); + var SyntheticInputEvent = __webpack_require__(58); - var keyOf = __webpack_require__(31); + var keyOf = __webpack_require__(32); var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space var START_KEYCODE = 229; @@ -5239,7 +5273,7 @@ module.exports = BeforeInputEventPlugin; /***/ }, -/* 45 */ +/* 46 */ /***/ function(module, exports, __webpack_require__) { /** @@ -5255,7 +5289,7 @@ 'use strict'; - var keyMirror = __webpack_require__(29); + var keyMirror = __webpack_require__(30); var PropagationPhases = keyMirror({ bubbled: null, captured: null }); @@ -5341,10 +5375,10 @@ module.exports = EventConstants; /***/ }, -/* 46 */ +/* 47 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -5357,13 +5391,13 @@ 'use strict'; - var EventConstants = __webpack_require__(45); - var EventPluginHub = __webpack_require__(47); - var EventPluginUtils = __webpack_require__(49); + var EventConstants = __webpack_require__(46); + var EventPluginHub = __webpack_require__(48); + var EventPluginUtils = __webpack_require__(50); - var accumulateInto = __webpack_require__(51); - var forEachAccumulated = __webpack_require__(52); - var warning = __webpack_require__(10); + var accumulateInto = __webpack_require__(52); + var forEachAccumulated = __webpack_require__(53); + var warning = __webpack_require__(11); var PropagationPhases = EventConstants.PropagationPhases; var getListener = EventPluginHub.getListener; @@ -5384,8 +5418,8 @@ * "dispatch" object that pairs the event with the listener. */ function accumulateDirectionalDispatches(inst, upwards, event) { - if (true) { - true ? warning(inst, 'Dispatching inst must not be null') : void 0; + if (process.env.NODE_ENV !== 'production') { + 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); @@ -5481,12 +5515,13 @@ }; module.exports = EventPropagators; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 47 */ +/* 48 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -5499,13 +5534,13 @@ 'use strict'; - var EventPluginRegistry = __webpack_require__(48); - var EventPluginUtils = __webpack_require__(49); - var ReactErrorUtils = __webpack_require__(50); + var EventPluginRegistry = __webpack_require__(49); + var EventPluginUtils = __webpack_require__(50); + var ReactErrorUtils = __webpack_require__(51); - var accumulateInto = __webpack_require__(51); - var forEachAccumulated = __webpack_require__(52); - var invariant = __webpack_require__(7); + var accumulateInto = __webpack_require__(52); + var forEachAccumulated = __webpack_require__(53); + var invariant = __webpack_require__(8); /** * Internal store for event listeners @@ -5591,7 +5626,7 @@ * @param {function} listener The callback to store. */ putListener: function (inst, registrationName, listener) { - !(typeof listener === 'function') ? true ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : invariant(false) : void 0; + !(typeof listener === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : invariant(false) : void 0; var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {}); bankForRegistrationName[inst._rootNodeID] = listener; @@ -5702,7 +5737,7 @@ } else { forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); } - !!eventQueue ? true ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing ' + 'an event queue. Support for this has not yet been implemented.') : invariant(false) : void 0; + !!eventQueue ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing ' + 'an event queue. Support for this has not yet been implemented.') : invariant(false) : void 0; // This would be a good time to rethrow if any of the event handlers threw. ReactErrorUtils.rethrowCaughtError(); }, @@ -5721,12 +5756,13 @@ }; module.exports = EventPluginHub; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 48 */ +/* 49 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -5739,7 +5775,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * Injectable ordering of event plugins. @@ -5764,15 +5800,15 @@ for (var pluginName in namesToPlugins) { var PluginModule = namesToPlugins[pluginName]; var pluginIndex = EventPluginOrder.indexOf(pluginName); - !(pluginIndex > -1) ? true ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in ' + 'the plugin ordering, `%s`.', pluginName) : invariant(false) : void 0; + !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in ' + 'the plugin ordering, `%s`.', pluginName) : invariant(false) : void 0; if (EventPluginRegistry.plugins[pluginIndex]) { continue; } - !PluginModule.extractEvents ? true ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` ' + 'method, but `%s` does not.', pluginName) : invariant(false) : void 0; + !PluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` ' + 'method, but `%s` does not.', pluginName) : invariant(false) : void 0; EventPluginRegistry.plugins[pluginIndex] = PluginModule; var publishedEvents = PluginModule.eventTypes; for (var eventName in publishedEvents) { - !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? true ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : invariant(false) : void 0; + !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : invariant(false) : void 0; } } } @@ -5786,7 +5822,7 @@ * @private */ function publishEventForPlugin(dispatchConfig, PluginModule, eventName) { - !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? true ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'event name, `%s`.', eventName) : invariant(false) : void 0; + !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'event name, `%s`.', eventName) : invariant(false) : void 0; EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig; var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; @@ -5814,11 +5850,11 @@ * @private */ function publishRegistrationName(registrationName, PluginModule, eventName) { - !!EventPluginRegistry.registrationNameModules[registrationName] ? true ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName) : invariant(false) : void 0; + !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName) : invariant(false) : void 0; EventPluginRegistry.registrationNameModules[registrationName] = PluginModule; EventPluginRegistry.registrationNameDependencies[registrationName] = PluginModule.eventTypes[eventName].dependencies; - if (true) { + if (process.env.NODE_ENV !== 'production') { var lowerCasedName = registrationName.toLowerCase(); EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName; } @@ -5857,7 +5893,7 @@ * only in __DEV__. * @type {Object} */ - possibleRegistrationNames: true ? {} : null, + possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null, /** * Injects an ordering of plugins (by plugin name). This allows the ordering @@ -5869,7 +5905,7 @@ * @see {EventPluginHub.injection.injectEventPluginOrder} */ injectEventPluginOrder: function (InjectedEventPluginOrder) { - !!EventPluginOrder ? true ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than ' + 'once. You are likely trying to load more than one copy of React.') : invariant(false) : void 0; + !!EventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than ' + 'once. You are likely trying to load more than one copy of React.') : invariant(false) : void 0; // Clone the ordering so it cannot be dynamically mutated. EventPluginOrder = Array.prototype.slice.call(InjectedEventPluginOrder); recomputePluginOrdering(); @@ -5893,7 +5929,7 @@ } var PluginModule = injectedNamesToPlugins[pluginName]; if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== PluginModule) { - !!namesToPlugins[pluginName] ? true ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins ' + 'using the same name, `%s`.', pluginName) : invariant(false) : void 0; + !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins ' + 'using the same name, `%s`.', pluginName) : invariant(false) : void 0; namesToPlugins[pluginName] = PluginModule; isOrderingDirty = true; } @@ -5954,7 +5990,7 @@ } } - if (true) { + if (process.env.NODE_ENV !== 'production') { var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames; for (var lowerCasedName in possibleRegistrationNames) { if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) { @@ -5967,12 +6003,13 @@ }; module.exports = EventPluginRegistry; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 49 */ +/* 50 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -5985,11 +6022,11 @@ 'use strict'; - var EventConstants = __webpack_require__(45); - var ReactErrorUtils = __webpack_require__(50); + var EventConstants = __webpack_require__(46); + var ReactErrorUtils = __webpack_require__(51); - var invariant = __webpack_require__(7); - var warning = __webpack_require__(10); + var invariant = __webpack_require__(8); + var warning = __webpack_require__(11); /** * Injected dependencies: @@ -6004,14 +6041,14 @@ var injection = { injectComponentTree: function (Injected) { ComponentTree = Injected; - if (true) { - true ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; + if (process.env.NODE_ENV !== 'production') { + 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 (true) { - true ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0; + if (process.env.NODE_ENV !== 'production') { + process.env.NODE_ENV !== 'production' ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0; } } }; @@ -6030,7 +6067,7 @@ } var validateEventDispatches; - if (true) { + if (process.env.NODE_ENV !== 'production') { validateEventDispatches = function (event) { var dispatchListeners = event._dispatchListeners; var dispatchInstances = event._dispatchInstances; @@ -6041,7 +6078,7 @@ var instancesIsArr = Array.isArray(dispatchInstances); var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - true ? 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; }; } @@ -6069,7 +6106,7 @@ function executeDispatchesInOrder(event, simulated) { var dispatchListeners = event._dispatchListeners; var dispatchInstances = event._dispatchInstances; - if (true) { + if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { @@ -6097,7 +6134,7 @@ function executeDispatchesInOrderStopAtTrueImpl(event) { var dispatchListeners = event._dispatchListeners; var dispatchInstances = event._dispatchInstances; - if (true) { + if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { @@ -6138,12 +6175,12 @@ * @return {*} The return value of executing the single dispatch. */ function executeDirectDispatch(event) { - if (true) { + if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } var dispatchListener = event._dispatchListeners; var dispatchInstance = event._dispatchInstances; - !!Array.isArray(dispatchListener) ? true ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : invariant(false) : void 0; + !!Array.isArray(dispatchListener) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : invariant(false) : void 0; event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null; var res = dispatchListener ? dispatchListener(event) : null; event.currentTarget = null; @@ -6199,12 +6236,13 @@ }; module.exports = EventPluginUtils; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 50 */ +/* 51 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -6260,7 +6298,7 @@ } }; - if (true) { + if (process.env.NODE_ENV !== 'production') { /** * To help development we can get better devtools integration by simulating a * real browser event. @@ -6280,12 +6318,13 @@ } module.exports = ReactErrorUtils; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 51 */ +/* 52 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-present, Facebook, Inc. * All rights reserved. * @@ -6298,7 +6337,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * @@ -6315,7 +6354,7 @@ */ function accumulateInto(current, next) { - !(next != null) ? true ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : invariant(false) : void 0; + !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : invariant(false) : void 0; if (current == null) { return next; } @@ -6344,9 +6383,10 @@ } module.exports = accumulateInto; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 52 */ +/* 53 */ /***/ function(module, exports) { /** @@ -6381,7 +6421,7 @@ module.exports = forEachAccumulated; /***/ }, -/* 53 */ +/* 54 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6397,11 +6437,11 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var PooledClass = __webpack_require__(6); + var PooledClass = __webpack_require__(7); - var getTextContentAccessor = __webpack_require__(54); + var getTextContentAccessor = __webpack_require__(55); /** * This helper class stores information about text content of a target node, @@ -6481,7 +6521,7 @@ module.exports = FallbackCompositionState; /***/ }, -/* 54 */ +/* 55 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6497,7 +6537,7 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); var contentKey = null; @@ -6519,7 +6559,7 @@ module.exports = getTextContentAccessor; /***/ }, -/* 55 */ +/* 56 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6535,7 +6575,7 @@ 'use strict'; - var SyntheticEvent = __webpack_require__(56); + var SyntheticEvent = __webpack_require__(57); /** * @interface Event @@ -6560,10 +6600,10 @@ module.exports = SyntheticCompositionEvent; /***/ }, -/* 56 */ +/* 57 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -6576,12 +6616,12 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var PooledClass = __webpack_require__(6); + var PooledClass = __webpack_require__(7); - var emptyFunction = __webpack_require__(11); - var warning = __webpack_require__(10); + var emptyFunction = __webpack_require__(12); + var warning = __webpack_require__(11); var didWarnForAddedNewProperty = false; var isProxySupported = typeof Proxy === 'function'; @@ -6626,7 +6666,7 @@ * @param {DOMEventTarget} nativeEventTarget Target node. */ function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - if (true) { + if (process.env.NODE_ENV !== 'production') { // these have a getter/setter for warnings delete this.nativeEvent; delete this.preventDefault; @@ -6642,7 +6682,7 @@ if (!Interface.hasOwnProperty(propName)) { continue; } - if (true) { + if (process.env.NODE_ENV !== 'production') { delete this[propName]; // this has a getter/setter for warnings } var normalize = Interface[propName]; @@ -6720,7 +6760,7 @@ destructor: function () { var Interface = this.constructor.Interface; for (var propName in Interface) { - if (true) { + if (process.env.NODE_ENV !== 'production') { Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); } else { this[propName] = null; @@ -6729,8 +6769,8 @@ for (var i = 0; i < shouldBeReleasedProperties.length; i++) { this[shouldBeReleasedProperties[i]] = null; } - if (true) { - var noop = __webpack_require__(11); + if (process.env.NODE_ENV !== 'production') { + var noop = __webpack_require__(12); Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', noop)); Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', noop)); @@ -6741,7 +6781,7 @@ SyntheticEvent.Interface = EventInterface; - if (true) { + if (process.env.NODE_ENV !== 'production') { if (isProxySupported) { /*eslint-disable no-func-assign */ SyntheticEvent = new Proxy(SyntheticEvent, { @@ -6752,7 +6792,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) { - true ? 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; @@ -6821,12 +6861,13 @@ function warn(action, result) { var warningCondition = false; - true ? 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; + process.env.NODE_ENV !== '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; } } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 57 */ +/* 58 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6842,7 +6883,7 @@ 'use strict'; - var SyntheticEvent = __webpack_require__(56); + var SyntheticEvent = __webpack_require__(57); /** * @interface Event @@ -6868,7 +6909,7 @@ module.exports = SyntheticInputEvent; /***/ }, -/* 58 */ +/* 59 */ /***/ function(module, exports, __webpack_require__) { /** @@ -6884,18 +6925,18 @@ 'use strict'; - var EventConstants = __webpack_require__(45); - var EventPluginHub = __webpack_require__(47); - var EventPropagators = __webpack_require__(46); - var ExecutionEnvironment = __webpack_require__(20); - var ReactDOMComponentTree = __webpack_require__(40); - var ReactUpdates = __webpack_require__(59); - var SyntheticEvent = __webpack_require__(56); + var EventConstants = __webpack_require__(46); + var EventPluginHub = __webpack_require__(48); + var EventPropagators = __webpack_require__(47); + var ExecutionEnvironment = __webpack_require__(21); + var ReactDOMComponentTree = __webpack_require__(41); + var ReactUpdates = __webpack_require__(60); + var SyntheticEvent = __webpack_require__(57); - var getEventTarget = __webpack_require__(66); - var isEventSupported = __webpack_require__(67); - var isTextInputElement = __webpack_require__(68); - var keyOf = __webpack_require__(31); + var getEventTarget = __webpack_require__(67); + var isEventSupported = __webpack_require__(68); + var isTextInputElement = __webpack_require__(69); + var keyOf = __webpack_require__(32); var topLevelTypes = EventConstants.topLevelTypes; @@ -7198,10 +7239,10 @@ module.exports = ChangeEventPlugin; /***/ }, -/* 59 */ +/* 60 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -7214,16 +7255,16 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var CallbackQueue = __webpack_require__(60); - var PooledClass = __webpack_require__(6); - var ReactFeatureFlags = __webpack_require__(61); - var ReactInstrumentation = __webpack_require__(18); - var ReactReconciler = __webpack_require__(62); - var Transaction = __webpack_require__(65); + var CallbackQueue = __webpack_require__(61); + var PooledClass = __webpack_require__(7); + var ReactFeatureFlags = __webpack_require__(62); + var ReactInstrumentation = __webpack_require__(19); + var ReactReconciler = __webpack_require__(63); + var Transaction = __webpack_require__(66); - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); var dirtyComponents = []; var updateBatchNumber = 0; @@ -7233,7 +7274,7 @@ var batchingStrategy = null; function ensureInjected() { - !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? true ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching ' + 'strategy') : invariant(false) : void 0; + !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching ' + 'strategy') : invariant(false) : void 0; } var NESTED_UPDATES = { @@ -7314,7 +7355,7 @@ function runBatchedUpdates(transaction) { var len = transaction.dirtyComponentsLength; - !(len === dirtyComponents.length) ? true ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to ' + 'match dirty-components array length (%s).', len, dirtyComponents.length) : invariant(false) : void 0; + !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to ' + 'match dirty-components array length (%s).', len, dirtyComponents.length) : invariant(false) : void 0; // Since reconciling a component higher in the owner hierarchy usually (not // always -- see shouldComponentUpdate()) will reconcile children, reconcile @@ -7366,7 +7407,7 @@ } var flushBatchedUpdates = function () { - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onBeginFlush(); } @@ -7390,7 +7431,7 @@ } } - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onEndFlush(); } }; @@ -7424,21 +7465,21 @@ * if no updates are currently being performed. */ function asap(callback, context) { - !batchingStrategy.isBatchingUpdates ? true ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context where' + 'updates are not being batched.') : invariant(false) : void 0; + !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context where' + 'updates are not being batched.') : invariant(false) : void 0; asapCallbackQueue.enqueue(callback, context); asapEnqueued = true; } var ReactUpdatesInjection = { injectReconcileTransaction: function (ReconcileTransaction) { - !ReconcileTransaction ? true ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : invariant(false) : void 0; + !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : invariant(false) : void 0; ReactUpdates.ReactReconcileTransaction = ReconcileTransaction; }, injectBatchingStrategy: function (_batchingStrategy) { - !_batchingStrategy ? true ? invariant(false, 'ReactUpdates: must provide a batching strategy') : invariant(false) : void 0; - !(typeof _batchingStrategy.batchedUpdates === 'function') ? true ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : invariant(false) : void 0; - !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? true ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : invariant(false) : void 0; + !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : invariant(false) : void 0; + !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : invariant(false) : void 0; + !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : invariant(false) : void 0; batchingStrategy = _batchingStrategy; } }; @@ -7460,12 +7501,13 @@ }; module.exports = ReactUpdates; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 60 */ +/* 61 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -7478,11 +7520,11 @@ 'use strict'; - var _assign = __webpack_require__(4); + var _assign = __webpack_require__(5); - var PooledClass = __webpack_require__(6); + var PooledClass = __webpack_require__(7); - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * A specialized pseudo-event module to help keep track of components waiting to @@ -7526,7 +7568,7 @@ var callbacks = this._callbacks; var contexts = this._contexts; if (callbacks) { - !(callbacks.length === contexts.length) ? true ? invariant(false, 'Mismatched list of contexts in callback queue') : invariant(false) : void 0; + !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : invariant(false) : void 0; this._callbacks = null; this._contexts = null; for (var i = 0; i < callbacks.length; i++) { @@ -7570,9 +7612,10 @@ PooledClass.addPoolingTo(CallbackQueue); module.exports = CallbackQueue; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 61 */ +/* 62 */ /***/ function(module, exports) { /** @@ -7598,10 +7641,10 @@ module.exports = ReactFeatureFlags; /***/ }, -/* 62 */ +/* 63 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -7614,10 +7657,10 @@ 'use strict'; - var ReactRef = __webpack_require__(63); - var ReactInstrumentation = __webpack_require__(18); + var ReactRef = __webpack_require__(64); + var ReactInstrumentation = __webpack_require__(19); - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * Helper to call ReactRef.attachRefs with this composite component, split out @@ -7641,7 +7684,7 @@ * @internal */ mountComponent: function (internalInstance, transaction, nativeParent, nativeContainerInfo, context) { - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onBeginReconcilerTimer(internalInstance._debugID, 'mountComponent'); } @@ -7650,7 +7693,7 @@ if (internalInstance._currentElement && internalInstance._currentElement.ref != null) { transaction.getReactMountReady().enqueue(attachRefs, internalInstance); } - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onEndReconcilerTimer(internalInstance._debugID, 'mountComponent'); ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID); @@ -7674,14 +7717,14 @@ * @internal */ unmountComponent: function (internalInstance, safely) { - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onBeginReconcilerTimer(internalInstance._debugID, 'unmountComponent'); } } ReactRef.detachRefs(internalInstance, internalInstance._currentElement); internalInstance.unmountComponent(safely); - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onEndReconcilerTimer(internalInstance._debugID, 'unmountComponent'); ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID); @@ -7715,7 +7758,7 @@ return; } - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onBeginReconcilerTimer(internalInstance._debugID, 'receiveComponent'); } @@ -7733,7 +7776,7 @@ transaction.getReactMountReady().enqueue(attachRefs, internalInstance); } - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onEndReconcilerTimer(internalInstance._debugID, 'receiveComponent'); ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID); @@ -7752,16 +7795,16 @@ if (internalInstance._updateBatchNumber !== updateBatchNumber) { // The component's enqueued batch number should always be the current // batch or the following one. - !(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1) ? true ? invariant(false, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : invariant(false) : void 0; + !(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : invariant(false) : void 0; return; } - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onBeginReconcilerTimer(internalInstance._debugID, 'performUpdateIfNecessary'); } } internalInstance.performUpdateIfNecessary(transaction); - if (true) { + if (process.env.NODE_ENV !== 'production') { if (internalInstance._debugID !== 0) { ReactInstrumentation.debugTool.onEndReconcilerTimer(internalInstance._debugID, 'performUpdateIfNecessary'); ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID); @@ -7772,9 +7815,10 @@ }; module.exports = ReactReconciler; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 63 */ +/* 64 */ /***/ function(module, exports, __webpack_require__) { /** @@ -7790,7 +7834,7 @@ 'use strict'; - var ReactOwner = __webpack_require__(64); + var ReactOwner = __webpack_require__(65); var ReactRef = {}; @@ -7857,10 +7901,10 @@ module.exports = ReactRef; /***/ }, -/* 64 */ +/* 65 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -7873,7 +7917,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * ReactOwners are capable of storing references to owned components. @@ -7926,7 +7970,7 @@ * @internal */ addComponentAsRefTo: function (component, ref, owner) { - !ReactOwner.isValidOwner(owner) ? true ? 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).') : invariant(false) : void 0; + !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== '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).') : invariant(false) : void 0; owner.attachRef(ref, component); }, @@ -7940,7 +7984,7 @@ * @internal */ removeComponentAsRefFrom: function (component, ref, owner) { - !ReactOwner.isValidOwner(owner) ? true ? 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).') : invariant(false) : void 0; + !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== '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).') : invariant(false) : 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. @@ -7952,12 +7996,13 @@ }; module.exports = ReactOwner; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 65 */ +/* 66 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -7970,7 +8015,7 @@ 'use strict'; - var invariant = __webpack_require__(7); + var invariant = __webpack_require__(8); /** * `Transaction` creates a black box that is able to wrap any method such that @@ -8081,7 +8126,7 @@ * @return {*} Return value from `method`. */ perform: function (method, scope, a, b, c, d, e, f) { - !!this.isInTransaction() ? true ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there ' + 'is already an outstanding transaction.') : invariant(false) : void 0; + !!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there ' + 'is already an outstanding transaction.') : invariant(false) : void 0; var errorThrown; var ret; try { @@ -8145,7 +8190,7 @@ * invoked). */ closeAll: function (startIndex) { - !this.isInTransaction() ? true ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : invariant(false) : void 0; + !this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : invariant(false) : void 0; var transactionWrappers = this.transactionWrappers; for (var i = startIndex; i < transactionWrappers.length; i++) { var wrapper = transactionWrappers[i]; @@ -8188,9 +8233,10 @@ }; module.exports = Transaction; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 66 */ +/* 67 */ /***/ function(module, exports) { /** @@ -8230,7 +8276,7 @@ module.exports = getEventTarget; /***/ }, -/* 67 */ +/* 68 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8246,7 +8292,7 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); var useHasFeature; if (ExecutionEnvironment.canUseDOM) { @@ -8295,7 +8341,7 @@ module.exports = isEventSupported; /***/ }, -/* 68 */ +/* 69 */ /***/ function(module, exports) { /** @@ -8341,7 +8387,7 @@ module.exports = isTextInputElement; /***/ }, -/* 69 */ +/* 70 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8357,7 +8403,7 @@ 'use strict'; - var keyOf = __webpack_require__(31); + var keyOf = __webpack_require__(32); /** * Module that is injectable into `EventPluginHub`, that specifies a @@ -8373,7 +8419,7 @@ module.exports = DefaultEventPluginOrder; /***/ }, -/* 70 */ +/* 71 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8389,12 +8435,12 @@ 'use strict'; - var EventConstants = __webpack_require__(45); - var EventPropagators = __webpack_require__(46); - var ReactDOMComponentTree = __webpack_require__(40); - var SyntheticMouseEvent = __webpack_require__(71); + var EventConstants = __webpack_require__(46); + var EventPropagators = __webpack_require__(47); + var ReactDOMComponentTree = __webpack_require__(41); + var SyntheticMouseEvent = __webpack_require__(72); - var keyOf = __webpack_require__(31); + var keyOf = __webpack_require__(32); var topLevelTypes = EventConstants.topLevelTypes; @@ -8483,7 +8529,7 @@ module.exports = EnterLeaveEventPlugin; /***/ }, -/* 71 */ +/* 72 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8499,10 +8545,10 @@ 'use strict'; - var SyntheticUIEvent = __webpack_require__(72); - var ViewportMetrics = __webpack_require__(73); + var SyntheticUIEvent = __webpack_require__(73); + var ViewportMetrics = __webpack_require__(74); - var getEventModifierState = __webpack_require__(74); + var getEventModifierState = __webpack_require__(75); /** * @interface MouseEvent @@ -8560,7 +8606,7 @@ module.exports = SyntheticMouseEvent; /***/ }, -/* 72 */ +/* 73 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8576,9 +8622,9 @@ 'use strict'; - var SyntheticEvent = __webpack_require__(56); + var SyntheticEvent = __webpack_require__(57); - var getEventTarget = __webpack_require__(66); + var getEventTarget = __webpack_require__(67); /** * @interface UIEvent @@ -8624,7 +8670,7 @@ module.exports = SyntheticUIEvent; /***/ }, -/* 73 */ +/* 74 */ /***/ function(module, exports) { /** @@ -8656,7 +8702,7 @@ module.exports = ViewportMetrics; /***/ }, -/* 74 */ +/* 75 */ /***/ function(module, exports) { /** @@ -8704,7 +8750,7 @@ module.exports = getEventModifierState; /***/ }, -/* 75 */ +/* 76 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8720,7 +8766,7 @@ 'use strict'; - var DOMProperty = __webpack_require__(41); + var DOMProperty = __webpack_require__(42); var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY; var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE; @@ -8918,7 +8964,7 @@ module.exports = HTMLDOMPropertyConfig; /***/ }, -/* 76 */ +/* 77 */ /***/ function(module, exports, __webpack_require__) { /** @@ -8934,8 +8980,8 @@ 'use strict'; - var DOMChildrenOperations = __webpack_require__(77); - var ReactDOMIDOperations = __webpack_require__(89); + var DOMChildrenOperations = __webpack_require__(78); + var ReactDOMIDOperations = __webpack_require__(90); /** * Abstracts away all functionality of the reconciler that requires knowledge of @@ -8962,10 +9008,10 @@ module.exports = ReactComponentBrowserEnvironment; /***/ }, -/* 77 */ +/* 78 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -8978,15 +9024,15 @@ 'use strict'; - var DOMLazyTree = __webpack_require__(78); - var Danger = __webpack_require__(84); - var ReactMultiChildUpdateTypes = __webpack_require__(88); - var ReactDOMComponentTree = __webpack_require__(40); - var ReactInstrumentation = __webpack_require__(18); + var DOMLazyTree = __webpack_require__(79); + var Danger = __webpack_require__(85); + var ReactMultiChildUpdateTypes = __webpack_require__(89); + var ReactDOMComponentTree = __webpack_require__(41); + var ReactInstrumentation = __webpack_require__(19); - var createMicrosoftUnsafeLocalFunction = __webpack_require__(80); - var setInnerHTML = __webpack_require__(83); - var setTextContent = __webpack_require__(81); + var createMicrosoftUnsafeLocalFunction = __webpack_require__(81); + var setInnerHTML = __webpack_require__(84); + var setTextContent = __webpack_require__(82); function getNodeAfter(parentNode, node) { // Special case for text components, which return [open, close] comments @@ -9078,13 +9124,13 @@ } } - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID, 'replace text', stringText); } } var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup; - if (true) { + if (process.env.NODE_ENV !== 'production') { dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) { Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup); if (prevInstance._debugID !== 0) { @@ -9115,7 +9161,7 @@ * @internal */ processUpdates: function (parentNode, updates) { - if (true) { + if (process.env.NODE_ENV !== 'production') { var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID; } @@ -9124,31 +9170,31 @@ switch (update.type) { case ReactMultiChildUpdateTypes.INSERT_MARKUP: insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode)); - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(parentNodeDebugID, 'insert child', { toIndex: update.toIndex, content: update.content.toString() }); } break; case ReactMultiChildUpdateTypes.MOVE_EXISTING: moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(parentNodeDebugID, 'move child', { fromIndex: update.fromIndex, toIndex: update.toIndex }); } break; case ReactMultiChildUpdateTypes.SET_MARKUP: setInnerHTML(parentNode, update.content); - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(parentNodeDebugID, 'replace children', update.content.toString()); } break; case ReactMultiChildUpdateTypes.TEXT_CONTENT: setTextContent(parentNode, update.content); - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(parentNodeDebugID, 'replace text', update.content.toString()); } break; case ReactMultiChildUpdateTypes.REMOVE_NODE: removeChild(parentNode, update.fromNode); - if (true) { + if (process.env.NODE_ENV !== 'production') { ReactInstrumentation.debugTool.onNativeOperation(parentNodeDebugID, 'remove child', { fromIndex: update.fromIndex }); } break; @@ -9159,9 +9205,10 @@ }; module.exports = DOMChildrenOperations; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 78 */ +/* 79 */ /***/ function(module, exports, __webpack_require__) { /** @@ -9177,10 +9224,10 @@ 'use strict'; - var DOMNamespaces = __webpack_require__(79); + var DOMNamespaces = __webpack_require__(80); - var createMicrosoftUnsafeLocalFunction = __webpack_require__(80); - var setTextContent = __webpack_require__(81); + var createMicrosoftUnsafeLocalFunction = __webpack_require__(81); + var setTextContent = __webpack_require__(82); var ELEMENT_NODE_TYPE = 1; var DOCUMENT_FRAGMENT_NODE_TYPE = 11; @@ -9283,7 +9330,7 @@ module.exports = DOMLazyTree; /***/ }, -/* 79 */ +/* 80 */ /***/ function(module, exports) { /** @@ -9308,7 +9355,7 @@ module.exports = DOMNamespaces; /***/ }, -/* 80 */ +/* 81 */ /***/ function(module, exports) { /** @@ -9345,7 +9392,7 @@ module.exports = createMicrosoftUnsafeLocalFunction; /***/ }, -/* 81 */ +/* 82 */ /***/ function(module, exports, __webpack_require__) { /** @@ -9361,9 +9408,9 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); - var escapeTextContentForBrowser = __webpack_require__(82); - var setInnerHTML = __webpack_require__(83); + var ExecutionEnvironment = __webpack_require__(21); + var escapeTextContentForBrowser = __webpack_require__(83); + var setInnerHTML = __webpack_require__(84); /** * Set the textContent property of a node, ensuring that whitespace is preserved @@ -9390,7 +9437,7 @@ module.exports = setTextContent; /***/ }, -/* 82 */ +/* 83 */ /***/ function(module, exports) { /** @@ -9433,7 +9480,7 @@ module.exports = escapeTextContentForBrowser; /***/ }, -/* 83 */ +/* 84 */ /***/ function(module, exports, __webpack_require__) { /** @@ -9449,12 +9496,12 @@ 'use strict'; - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); var WHITESPACE_TEST = /^[ \r\n\t\f]/; var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/; - var createMicrosoftUnsafeLocalFunction = __webpack_require__(80); + var createMicrosoftUnsafeLocalFunction = __webpack_require__(81); /** * Set the innerHTML property of a node, ensuring that whitespace is preserved @@ -9520,10 +9567,10 @@ module.exports = setInnerHTML; /***/ }, -/* 84 */ +/* 85 */ /***/ function(module, exports, __webpack_require__) { - /** + /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * @@ -9536,13 +9583,13 @@ 'use strict'; - var DOMLazyTree = __webpack_require__(78); - var ExecutionEnvironment = __webpack_require__(20); + var DOMLazyTree = __webpack_require__(79); + var ExecutionEnvironment = __webpack_require__(21); - var createNodesFromMarkup = __webpack_require__(85); - var emptyFunction = __webpack_require__(11); - var getMarkupWrap = __webpack_require__(87); - var invariant = __webpack_require__(7); + var createNodesFromMarkup = __webpack_require__(86); + var emptyFunction = __webpack_require__(12); + var getMarkupWrap = __webpack_require__(88); + var invariant = __webpack_require__(8); var OPEN_TAG_NAME_EXP = /^(<[^ \/>]+)/; var RESULT_INDEX_ATTR = 'data-danger-index'; @@ -9574,12 +9621,12 @@ * @internal */ dangerouslyRenderMarkup: function (markupList) { - !ExecutionEnvironment.canUseDOM ? true ? invariant(false, 'dangerouslyRenderMarkup(...): 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.') : invariant(false) : void 0; + !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): 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.') : invariant(false) : void 0; var nodeName; var markupByNodeName = {}; // Group markup by `nodeName` if a wrap is necessary, else by '*'. for (var i = 0; i < markupList.length; i++) { - !markupList[i] ? true ? invariant(false, 'dangerouslyRenderMarkup(...): Missing markup.') : invariant(false) : void 0; + !markupList[i] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): Missing markup.') : invariant(false) : void 0; nodeName = getNodeName(markupList[i]); nodeName = getMarkupWrap(nodeName) ? nodeName : '*'; markupByNodeName[nodeName] = markupByNodeName[nodeName] || []; @@ -9621,14 +9668,14 @@ resultIndex = +renderNode.getAttribute(RESULT_INDEX_ATTR); renderNode.removeAttribute(RESULT_INDEX_ATTR); - !!resultList.hasOwnProperty(resultIndex) ? true ? invariant(false, 'Danger: Assigning to an already-occupied result index.') : invariant(false) : void 0; + !!resultList.hasOwnProperty(resultIndex) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Assigning to an already-occupied result index.') : invariant(false) : void 0; resultList[resultIndex] = renderNode; // This should match resultList.length and markupList.length when // we're done. resultListAssignmentCount += 1; - } else if (true) { + } else if (process.env.NODE_ENV !== 'production') { console.error('Danger: Discarding unexpected node:', renderNode); } } @@ -9636,9 +9683,9 @@ // Although resultList was populated out of order, it should now be a dense // array. - !(resultListAssignmentCount === resultList.length) ? true ? invariant(false, 'Danger: Did not assign to every index of resultList.') : invariant(false) : void 0; + !(resultListAssignmentCount === resultList.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Did not assign to every index of resultList.') : invariant(false) : void 0; - !(resultList.length === markupList.length) ? true ? invariant(false, 'Danger: Expected markup to render %s nodes, but rendered %s.', markupList.length, resultList.length) : invariant(false) : void 0; + !(resultList.length === markupList.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Expected markup to render %s nodes, but rendered %s.', markupList.length, resultList.length) : invariant(false) : void 0; return resultList; }, @@ -9652,9 +9699,9 @@ * @internal */ dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) { - !ExecutionEnvironment.canUseDOM ? true ? 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.') : invariant(false) : void 0; - !markup ? true ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : invariant(false) : void 0; - !(oldChild.nodeName !== 'HTML') ? true ? 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().') : invariant(false) : void 0; + !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== '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.') : invariant(false) : void 0; + !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : invariant(false) : void 0; + !(oldChild.nodeName !== 'HTML') ? process.env.NODE_ENV !== '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().') : invariant(false) : void 0; if (typeof markup === 'string') { var newChild = createNodesFromMarkup(markup, emptyFunction)[0]; @@ -9667,12 +9714,13 @@ }; module.exports = Danger; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, -/* 85 */ +/* 86 */ /***/ function(module, exports, __webpack_require__) { - 'use strict'; + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; /** * Copyright (c) 2013-present, Facebook, Inc. @@ -9687,11 +9735,11 @@ /*eslint-disable fb-www/unsafe-html*/ - var ExecutionEnvironment = __webpack_require__(20); + var ExecutionEnvironment = __webpack_require__(21); - var createArrayFromMixed = __webpack_require__(86); - var getMarkupWrap = __webpack_require__(87); - var invariant = __webpack_require__(7); + var createArrayFromMixed = __webpack_require__(87); + var getMarkupWrap = __webpack_require__(88); + var invariant = __webpack_require__(8); /** * Dummy container used to render all markup. @@ -9726,7 +9774,7 @@ */ function createNodesFromMarkup(markup, handleScript) { var node = dummyNode; - !!!dummyNode ? true ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0; + !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0; var nodeName = getNodeName(markup); var wrap = nodeName && getMarkupWrap(nodeName); @@ -9743,7 +9791,7 @@ var scripts = node.getElementsByTagName('script'); if (scripts.length) { - !handleScript ? true ? invariant(false, 'createNodesFromMarkup(...): Unexpected + diff --git a/package.json b/package.json index 7b9ac1d..7ee2073 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "salesforce-dashboard", + "name": "redux-data", "version": "1.0.0", "description": "", "main": "index.js", @@ -31,19 +31,17 @@ "sass-loader": "^3.1.2", "style-loader": "^0.13.0", "uglify": "^0.1.5", + "url-loader": "^0.5.7", "webpack": "^1.12.9", - "webpack-dev-server": "^1.14.0", - "url-loader": "^0.5.7" + "webpack-dev-server": "^1.14.0" }, "dependencies": { "classnames": "2.2.5", "lodash": "^4.12.0", "moment": "^2.13.0", - "react": "^15.0.2", - "react-dom": "^15.0.2", + "react": "^15.1.0", + "react-dom": "^15.1.0", "react-redux": "^4.4.5", - "react-router": "^2.4.0", - "react-router-redux": "^4.0.4", "redux": "^3.3.1", "request-promise": "^3.0.0", "superagent": "^1.8.3" diff --git a/src/index.jsx b/src/index.jsx index 342df9d..c277f8d 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,4 +1,3 @@ -import 'babel-polyfill' import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' diff --git a/webpack.config.js b/webpack.config.js index 5fcbba4..741ed88 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,13 +10,7 @@ module.exports = { filename: 'bundle.js', sourceMapFilename: 'bundle.js.map' }, - plugins: [ - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': '"' + (process.env.NODE_ENV || 'development') + '"', - 'process.env.API_ENV': '"' + (process.env.API_ENV || 'local') + '"' - }) - ], - postcss: function() { + postcss: function () { return [precss, autoprefixer]; }, module: { @@ -38,4 +32,4 @@ module.exports = { loader: 'url-loader?limit=100000' }] } -}; \ No newline at end of file +};