aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pick-time.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r--examples/pick-time.js2723
1 files changed, 1165 insertions, 1558 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js
index bc95f7d..fd86805 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -9,6 +9,8 @@ webpackJsonp([0,1],[
9/* 1 */ 9/* 1 */
10/***/ function(module, exports, __webpack_require__) { 10/***/ function(module, exports, __webpack_require__) {
11 11
12 /* eslint no-console:0 */
13
12 'use strict'; 14 'use strict';
13 15
14 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 16 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
@@ -39,11 +41,14 @@ webpackJsonp([0,1],[
39 41
40 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); 42 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker);
41 43
42 var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(237); 44 var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(227);
43 45
44 var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN); 46 var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN);
45 47
46 var formatter = new _gregorianCalendarFormat2['default']('HH:mm:ss'); 48 var showSecond = true;
49 var str = showSecond ? 'HH:mm:ss' : 'HH:mm';
50
51 var formatter = new _gregorianCalendarFormat2['default'](str);
47 52
48 var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); 53 var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']);
49 now.setTime(Date.now()); 54 now.setTime(Date.now());
@@ -52,7 +57,10 @@ webpackJsonp([0,1],[
52 console.log(value && formatter.format(value)); 57 console.log(value && formatter.format(value));
53 } 58 }
54 59
55 _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now, onChange: onChange }), document.getElementById('__react-content')); 60 _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'],
61 showSecond: showSecond,
62 defaultValue: now,
63 onChange: onChange }), document.getElementById('__react-content'));
56 64
57/***/ }, 65/***/ },
58/* 2 */ 66/* 2 */
@@ -22250,28 +22258,28 @@ webpackJsonp([0,1],[
22250 22258
22251 var _react2 = _interopRequireDefault(_react); 22259 var _react2 = _interopRequireDefault(_react);
22252 22260
22253 var _reactDom = __webpack_require__(160);
22254
22255 var _reactDom2 = _interopRequireDefault(_reactDom);
22256
22257 var _rcTrigger = __webpack_require__(172); 22261 var _rcTrigger = __webpack_require__(172);
22258 22262
22259 var _rcTrigger2 = _interopRequireDefault(_rcTrigger); 22263 var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
22260 22264
22261 var _rcUtil = __webpack_require__(213); 22265 var _modulePanel = __webpack_require__(219);
22262
22263 var _modulePanel = __webpack_require__(229);
22264 22266
22265 var _modulePanel2 = _interopRequireDefault(_modulePanel); 22267 var _modulePanel2 = _interopRequireDefault(_modulePanel);
22266 22268
22267 var _utilPlacements = __webpack_require__(236); 22269 var _utilPlacements = __webpack_require__(225);
22268 22270
22269 var _utilPlacements2 = _interopRequireDefault(_utilPlacements); 22271 var _utilPlacements2 = _interopRequireDefault(_utilPlacements);
22270 22272
22271 var _mixinCommonMixin = __webpack_require__(230); 22273 var _mixinCommonMixin = __webpack_require__(220);
22272 22274
22273 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); 22275 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin);
22274 22276
22277 var _utilIndex = __webpack_require__(226);
22278
22279 var _gregorianCalendarLibLocaleEn_US = __webpack_require__(164);
22280
22281 var _gregorianCalendarLibLocaleEn_US2 = _interopRequireDefault(_gregorianCalendarLibLocaleEn_US);
22282
22275 function noop() {} 22283 function noop() {}
22276 22284
22277 function refFn(field, component) { 22285 function refFn(field, component) {
@@ -22283,18 +22291,23 @@ webpackJsonp([0,1],[
22283 22291
22284 propTypes: { 22292 propTypes: {
22285 prefixCls: _react.PropTypes.string, 22293 prefixCls: _react.PropTypes.string,
22286 inputClassName: _react.PropTypes.string,
22287 locale: _react.PropTypes.object, 22294 locale: _react.PropTypes.object,
22288 value: _react.PropTypes.object, 22295 value: _react.PropTypes.object,
22289 children: _react.PropTypes.func,
22290 disabled: _react.PropTypes.bool, 22296 disabled: _react.PropTypes.bool,
22297 allowEmpty: _react.PropTypes.bool,
22291 defaultValue: _react.PropTypes.object, 22298 defaultValue: _react.PropTypes.object,
22292 open: _react.PropTypes.bool, 22299 open: _react.PropTypes.bool,
22300 defaultOpen: _react.PropTypes.bool,
22293 align: _react.PropTypes.object, 22301 align: _react.PropTypes.object,
22294 placement: _react.PropTypes.any, 22302 placement: _react.PropTypes.any,
22295 transitionName: _react.PropTypes.string, 22303 transitionName: _react.PropTypes.string,
22304 getPopupContainer: _react.PropTypes.func,
22305 gregorianCalendarLocale: _react.PropTypes.object,
22296 placeholder: _react.PropTypes.string, 22306 placeholder: _react.PropTypes.string,
22297 formatter: _react.PropTypes.object, 22307 formatter: _react.PropTypes.any,
22308 showHour: _react.PropTypes.bool,
22309 style: _react.PropTypes.object,
22310 showSecond: _react.PropTypes.bool,
22298 hourOptions: _react.PropTypes.array, 22311 hourOptions: _react.PropTypes.array,
22299 minuteOptions: _react.PropTypes.array, 22312 minuteOptions: _react.PropTypes.array,
22300 secondOptions: _react.PropTypes.array, 22313 secondOptions: _react.PropTypes.array,
@@ -22307,8 +22320,13 @@ webpackJsonp([0,1],[
22307 22320
22308 getDefaultProps: function getDefaultProps() { 22321 getDefaultProps: function getDefaultProps() {
22309 return { 22322 return {
22310 open: false, 22323 defaultOpen: false,
22324 style: {},
22325 gregorianCalendarLocale: _gregorianCalendarLibLocaleEn_US2['default'],
22311 align: {}, 22326 align: {},
22327 allowEmpty: true,
22328 showHour: true,
22329 showSecond: true,
22312 placement: 'bottomLeft', 22330 placement: 'bottomLeft',
22313 onChange: noop, 22331 onChange: noop,
22314 onOpen: noop, 22332 onOpen: noop,
@@ -22319,13 +22337,16 @@ webpackJsonp([0,1],[
22319 getInitialState: function getInitialState() { 22337 getInitialState: function getInitialState() {
22320 this.savePanelRef = refFn.bind(this, 'panelInstance'); 22338 this.savePanelRef = refFn.bind(this, 'panelInstance');
22321 var _props = this.props; 22339 var _props = this.props;
22322 var open = _props.open; 22340 var defaultOpen = _props.defaultOpen;
22323 var defaultValue = _props.defaultValue; 22341 var defaultValue = _props.defaultValue;
22324 var value = _props.value; 22342 var _props$open = _props.open;
22343 var open = _props$open === undefined ? defaultOpen : _props$open;
22344 var _props$value = _props.value;
22345 var value = _props$value === undefined ? defaultValue : _props$value;
22325 22346
22326 return { 22347 return {
22327 open: open, 22348 open: open,
22328 value: value || defaultValue 22349 value: value
22329 }; 22350 };
22330 }, 22351 },
22331 22352
@@ -22353,14 +22374,18 @@ webpackJsonp([0,1],[
22353 }, 22374 },
22354 22375
22355 onVisibleChange: function onVisibleChange(open) { 22376 onVisibleChange: function onVisibleChange(open) {
22356 var _this = this; 22377 this.setOpen(open);
22378 },
22357 22379
22358 this.setOpen(open, function () { 22380 onEsc: function onEsc() {
22359 if (open) { 22381 this.setOpen(false);
22360 _reactDom2['default'].findDOMNode(_this.refs.picker).blur(); 22382 this.refs.picker.focus();
22361 _reactDom2['default'].findDOMNode(_this.panelInstance).focus(); 22383 },
22362 } 22384
22363 }); 22385 onKeyDown: function onKeyDown(e) {
22386 if (e.keyCode === 40) {
22387 this.setOpen(true);
22388 }
22364 }, 22389 },
22365 22390
22366 setValue: function setValue(value) { 22391 setValue: function setValue(value) {
@@ -22372,22 +22397,72 @@ webpackJsonp([0,1],[
22372 this.props.onChange(value); 22397 this.props.onChange(value);
22373 }, 22398 },
22374 22399
22375 getPanel: function getPanel() { 22400 getFormatter: function getFormatter() {
22401 var formatter = this.props.formatter;
22402 var locale = this.props.locale;
22403 if (formatter) {
22404 if (formatter === this.lastFormatter) {
22405 return this.normalFormatter;
22406 }
22407 this.normalFormatter = (0, _utilIndex.getFormatter)(formatter, locale);
22408 this.lastFormatter = formatter;
22409 return this.normalFormatter;
22410 }
22411 if (!this.props.showSecond) {
22412 if (!this.notShowSecondFormatter) {
22413 this.notShowSecondFormatter = (0, _utilIndex.getFormatter)('HH:mm', locale);
22414 }
22415 return this.notShowSecondFormatter;
22416 }
22417 if (!this.props.showHour) {
22418 if (!this.notShowHourFormatter) {
22419 this.notShowHourFormatter = (0, _utilIndex.getFormatter)('mm:ss', locale);
22420 }
22421 return this.notShowHourFormatter;
22422 }
22423 if (!this.normalFormatter) {
22424 this.normalFormatter = (0, _utilIndex.getFormatter)('HH:mm:ss', locale);
22425 }
22426 return this.normalFormatter;
22427 },
22428
22429 getPanelElement: function getPanelElement() {
22376 var _props2 = this.props; 22430 var _props2 = this.props;
22377 var prefixCls = _props2.prefixCls; 22431 var prefixCls = _props2.prefixCls;
22378 var defaultValue = _props2.defaultValue; 22432 var defaultValue = _props2.defaultValue;
22379 var locale = _props2.locale; 22433 var locale = _props2.locale;
22380 var formatter = _props2.formatter;
22381 var placeholder = _props2.placeholder; 22434 var placeholder = _props2.placeholder;
22382 var hourOptions = _props2.hourOptions; 22435 var hourOptions = _props2.hourOptions;
22383 var minuteOptions = _props2.minuteOptions; 22436 var minuteOptions = _props2.minuteOptions;
22384 var secondOptions = _props2.secondOptions; 22437 var secondOptions = _props2.secondOptions;
22438 var allowEmpty = _props2.allowEmpty;
22439 var showHour = _props2.showHour;
22440 var showSecond = _props2.showSecond;
22441 var gregorianCalendarLocale = _props2.gregorianCalendarLocale;
22442 var value = _props2.value;
22385 22443
22444 var calendarLocale = undefined;
22445 if (value) {
22446 calendarLocale = value.locale;
22447 } else if (defaultValue) {
22448 calendarLocale = defaultValue.locale;
22449 } else {
22450 calendarLocale = gregorianCalendarLocale;
22451 }
22386 return _react2['default'].createElement(_modulePanel2['default'], { 22452 return _react2['default'].createElement(_modulePanel2['default'], {
22387 prefixCls: prefixCls, 22453 prefixCls: prefixCls + '-panel',
22454 ref: this.savePanelRef,
22455 value: this.state.value,
22456 onChange: this.onPanelChange,
22457 gregorianCalendarLocale: calendarLocale,
22458 onClear: this.onPanelClear,
22388 defaultValue: defaultValue, 22459 defaultValue: defaultValue,
22460 showHour: showHour,
22461 onEsc: this.onEsc,
22462 showSecond: showSecond,
22389 locale: locale, 22463 locale: locale,
22390 formatter: formatter, 22464 allowEmpty: allowEmpty,
22465 formatter: this.getFormatter(),
22391 placeholder: placeholder, 22466 placeholder: placeholder,
22392 hourOptions: hourOptions, 22467 hourOptions: hourOptions,
22393 minuteOptions: minuteOptions, 22468 minuteOptions: minuteOptions,
@@ -22395,18 +22470,6 @@ webpackJsonp([0,1],[
22395 }); 22470 });
22396 }, 22471 },
22397 22472
22398 getPanelElement: function getPanelElement() {
22399 var panel = this.getPanel();
22400 var extraProps = {
22401 ref: this.savePanelRef,
22402 value: this.state.value,
22403 onChange: (0, _rcUtil.createChainedFunction)(panel.props.onChange, this.onPanelChange),
22404 onClear: (0, _rcUtil.createChainedFunction)(panel.props.onClear, this.onPanelClear)
22405 };
22406
22407 return _react2['default'].cloneElement(panel, extraProps);
22408 },
22409
22410 setOpen: function setOpen(open, callback) { 22473 setOpen: function setOpen(open, callback) {
22411 var _props3 = this.props; 22474 var _props3 = this.props;
22412 var onOpen = _props3.onOpen; 22475 var onOpen = _props3.onOpen;
@@ -22435,31 +22498,42 @@ webpackJsonp([0,1],[
22435 var align = _props4.align; 22498 var align = _props4.align;
22436 var disabled = _props4.disabled; 22499 var disabled = _props4.disabled;
22437 var transitionName = _props4.transitionName; 22500 var transitionName = _props4.transitionName;
22438 var formatter = _props4.formatter; 22501 var style = _props4.style;
22439 var inputClassName = _props4.inputClassName; 22502 var showHour = _props4.showHour;
22503 var showSecond = _props4.showSecond;
22504 var getPopupContainer = _props4.getPopupContainer;
22440 var _state = this.state; 22505 var _state = this.state;
22441 var open = _state.open; 22506 var open = _state.open;
22442 var value = _state.value; 22507 var value = _state.value;
22443 22508
22509 var popupClassName = undefined;
22510 if (!showHour || !showSecond) {
22511 popupClassName = prefixCls + '-panel-narrow}';
22512 }
22444 return _react2['default'].createElement( 22513 return _react2['default'].createElement(
22445 _rcTrigger2['default'], 22514 _rcTrigger2['default'],
22446 { 22515 {
22447 prefixCls: prefixCls + '-panel', 22516 prefixCls: prefixCls + '-panel',
22517 popupClassName: popupClassName,
22448 popup: this.getPanelElement(), 22518 popup: this.getPanelElement(),
22449 popupAlign: align, 22519 popupAlign: align,
22450 builtinPlacements: _utilPlacements2['default'], 22520 builtinPlacements: _utilPlacements2['default'],
22451 popupPlacement: placement, 22521 popupPlacement: placement,
22452 action: disabled ? [] : ['click'], 22522 action: disabled ? [] : ['click'],
22453 destroyPopupOnHide: true, 22523 destroyPopupOnHide: true,
22524 getPopupContainer: getPopupContainer,
22454 popupTransitionName: transitionName, 22525 popupTransitionName: transitionName,
22455 popupVisible: open, 22526 popupVisible: open,
22456 onPopupVisibleChange: this.onVisibleChange 22527 onPopupVisibleChange: this.onVisibleChange
22457 }, 22528 },
22458 _react2['default'].createElement( 22529 _react2['default'].createElement(
22459 'span', 22530 'span',
22460 { className: '' + prefixCls }, 22531 { className: '' + prefixCls, style: style },
22461 _react2['default'].createElement('input', { className: inputClassName, ref: 'picker', type: 'text', placeholder: placeholder, readOnly: true, 22532 _react2['default'].createElement('input', { className: prefixCls + '-input',
22462 disabled: disabled, value: value && formatter.format(value) }), 22533 ref: 'picker', type: 'text', placeholder: placeholder,
22534 readOnly: true,
22535 onKeyDown: this.onKeyDown,
22536 disabled: disabled, value: value && this.getFormatter().format(value) }),
22463 _react2['default'].createElement('span', { className: prefixCls + '-icon' }) 22537 _react2['default'].createElement('span', { className: prefixCls + '-icon' })
22464 ) 22538 )
22465 ); 22539 );
@@ -22501,11 +22575,11 @@ webpackJsonp([0,1],[
22501 22575
22502 var _rcUtil = __webpack_require__(174); 22576 var _rcUtil = __webpack_require__(174);
22503 22577
22504 var _Popup = __webpack_require__(191); 22578 var _Popup = __webpack_require__(197);
22505 22579
22506 var _Popup2 = _interopRequireDefault(_Popup); 22580 var _Popup2 = _interopRequireDefault(_Popup);
22507 22581
22508 var _utils = __webpack_require__(212); 22582 var _utils = __webpack_require__(218);
22509 22583
22510 function noop() {} 22584 function noop() {}
22511 22585
@@ -22838,18 +22912,18 @@ webpackJsonp([0,1],[
22838 module.exports = { 22912 module.exports = {
22839 guid: __webpack_require__(175), 22913 guid: __webpack_require__(175),
22840 classSet: __webpack_require__(176), 22914 classSet: __webpack_require__(176),
22841 joinClasses: __webpack_require__(178), 22915 joinClasses: __webpack_require__(179),
22842 KeyCode: __webpack_require__(179), 22916 KeyCode: __webpack_require__(180),
22843 PureRenderMixin: __webpack_require__(180), 22917 PureRenderMixin: __webpack_require__(181),
22844 shallowEqual: __webpack_require__(181), 22918 shallowEqual: __webpack_require__(182),
22845 createChainedFunction: __webpack_require__(182), 22919 createChainedFunction: __webpack_require__(188),
22846 Dom: { 22920 Dom: {
22847 addEventListener: __webpack_require__(183), 22921 addEventListener: __webpack_require__(189),
22848 contains: __webpack_require__(188) 22922 contains: __webpack_require__(194)
22849 }, 22923 },
22850 Children: { 22924 Children: {
22851 toArray: __webpack_require__(189), 22925 toArray: __webpack_require__(195),
22852 mapSelf: __webpack_require__(190) 22926 mapSelf: __webpack_require__(196)
22853 } 22927 }
22854 }; 22928 };
22855 22929
@@ -22870,13 +22944,90 @@ webpackJsonp([0,1],[
22870 22944
22871 'use strict'; 22945 'use strict';
22872 22946
22873 module.exports = __webpack_require__(177); 22947 var deprecate = __webpack_require__(177);
22948 var classNames = __webpack_require__(178);
22949
22950 module.exports = deprecate(classNames, '`rcUtil.classSet()` is deprecated, use `classNames()` by `require(\'classnames\')` instead');
22874 22951
22875/***/ }, 22952/***/ },
22876/* 177 */ 22953/* 177 */
22954/***/ function(module, exports) {
22955
22956 /* WEBPACK VAR INJECTION */(function(global) {
22957 /**
22958 * Module exports.
22959 */
22960
22961 module.exports = deprecate;
22962
22963 /**
22964 * Mark that a method should not be used.
22965 * Returns a modified function which warns once by default.
22966 *
22967 * If `localStorage.noDeprecation = true` is set, then it is a no-op.
22968 *
22969 * If `localStorage.throwDeprecation = true` is set, then deprecated functions
22970 * will throw an Error when invoked.
22971 *
22972 * If `localStorage.traceDeprecation = true` is set, then deprecated functions
22973 * will invoke `console.trace()` instead of `console.error()`.
22974 *
22975 * @param {Function} fn - the function to deprecate
22976 * @param {String} msg - the string to print to the console when `fn` is invoked
22977 * @returns {Function} a new "deprecated" version of `fn`
22978 * @api public
22979 */
22980
22981 function deprecate (fn, msg) {
22982 if (config('noDeprecation')) {
22983 return fn;
22984 }
22985
22986 var warned = false;
22987 function deprecated() {
22988 if (!warned) {
22989 if (config('throwDeprecation')) {
22990 throw new Error(msg);
22991 } else if (config('traceDeprecation')) {
22992 console.trace(msg);
22993 } else {
22994 console.warn(msg);
22995 }
22996 warned = true;
22997 }
22998 return fn.apply(this, arguments);
22999 }
23000
23001 return deprecated;
23002 }
23003
23004 /**
23005 * Checks `localStorage` for boolean values for the given `name`.
23006 *
23007 * @param {String} name
23008 * @returns {Boolean}
23009 * @api private
23010 */
23011
23012 function config (name) {
23013 // accessing global.localStorage can trigger a DOMException in sandboxed iframes
23014 try {
23015 if (!global.localStorage) return false;
23016 } catch (_) {
23017 return false;
23018 }
23019 var val = global.localStorage[name];
23020 if (null == val) return false;
23021 return String(val).toLowerCase() === 'true';
23022 }
23023
23024 /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
23025
23026/***/ },
23027/* 178 */
22877/***/ function(module, exports, __webpack_require__) { 23028/***/ function(module, exports, __webpack_require__) {
22878 23029
22879 var __WEBPACK_AMD_DEFINE_RESULT__;/*! 23030 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
22880 Copyright (c) 2015 Jed Watson. 23031 Copyright (c) 2015 Jed Watson.
22881 Licensed under the MIT License (MIT), see 23032 Licensed under the MIT License (MIT), see
22882 http://jedwatson.github.io/classnames 23033 http://jedwatson.github.io/classnames
@@ -22917,9 +23068,9 @@ webpackJsonp([0,1],[
22917 module.exports = classNames; 23068 module.exports = classNames;
22918 } else if (true) { 23069 } else if (true) {
22919 // register as 'classnames', consistent with npm package name 23070 // register as 'classnames', consistent with npm package name
22920 !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { 23071 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
22921 return classNames; 23072 return classNames;
22922 }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 23073 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
22923 } else { 23074 } else {
22924 window.classNames = classNames; 23075 window.classNames = classNames;
22925 } 23076 }
@@ -22927,41 +23078,18 @@ webpackJsonp([0,1],[
22927 23078
22928 23079
22929/***/ }, 23080/***/ },
22930/* 178 */ 23081/* 179 */
22931/***/ function(module, exports) { 23082/***/ function(module, exports, __webpack_require__) {
22932 23083
22933 /**
22934 * Combines multiple className strings into one.
22935 * http://jsperf.com/joinclasses-args-vs-array
22936 *
22937 * @param {...?string} classes
22938 * @return {string}
22939 */
22940
22941 'use strict'; 23084 'use strict';
22942 23085
22943 function joinClasses(cn) { 23086 var deprecate = __webpack_require__(177);
22944 var className = cn; 23087 var classNames = __webpack_require__(178);
22945 if (!className) {
22946 className = '';
22947 }
22948 var nextClass = undefined;
22949 var argLength = arguments.length;
22950 if (argLength > 1) {
22951 for (var ii = 1; ii < argLength; ii++) {
22952 nextClass = arguments[ii];
22953 if (nextClass) {
22954 className = (className ? className + ' ' : '') + nextClass;
22955 }
22956 }
22957 }
22958 return className;
22959 }
22960 23088
22961 module.exports = joinClasses; 23089 module.exports = deprecate(classNames, '`rcUtil.joinClasses()` is deprecated, use `classNames()` by `require(\'classnames\')` instead');
22962 23090
22963/***/ }, 23091/***/ },
22964/* 179 */ 23092/* 180 */
22965/***/ function(module, exports) { 23093/***/ function(module, exports) {
22966 23094
22967 /** 23095 /**
@@ -23486,12 +23614,12 @@ webpackJsonp([0,1],[
23486 module.exports = KeyCode; 23614 module.exports = KeyCode;
23487 23615
23488/***/ }, 23616/***/ },
23489/* 180 */ 23617/* 181 */
23490/***/ function(module, exports, __webpack_require__) { 23618/***/ function(module, exports, __webpack_require__) {
23491 23619
23492 'use strict'; 23620 'use strict';
23493 23621
23494 var shallowEqual = __webpack_require__(181); 23622 var shallowEqual = __webpack_require__(182);
23495 23623
23496 /** 23624 /**
23497 * If your React component's render function is "pure", e.g. it will render the 23625 * If your React component's render function is "pure", e.g. it will render the
@@ -23526,35 +23654,753 @@ webpackJsonp([0,1],[
23526 module.exports = ReactComponentWithPureRenderMixin; 23654 module.exports = ReactComponentWithPureRenderMixin;
23527 23655
23528/***/ }, 23656/***/ },
23529/* 181 */ 23657/* 182 */
23530/***/ function(module, exports) { 23658/***/ function(module, exports, __webpack_require__) {
23531 23659
23532 "use strict"; 23660 'use strict';
23661
23662 var shallowEqual = __webpack_require__(183);
23663
23664 module.exports = shallowEqual;
23665
23666/***/ },
23667/* 183 */
23668/***/ function(module, exports, __webpack_require__) {
23669
23670 'use strict';
23671
23672 var fetchKeys = __webpack_require__(184);
23673
23674 module.exports = function shallowEqual(objA, objB, compare, compareContext) {
23675
23676 var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
23677
23678 if (ret !== void 0) {
23679 return !!ret;
23680 }
23681
23682 if (objA === objB) {
23683 return true;
23684 }
23685
23686 if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
23687 return false;
23688 }
23689
23690 var keysA = fetchKeys(objA);
23691 var keysB = fetchKeys(objB);
23692
23693 var len = keysA.length;
23694 if (len !== keysB.length) {
23695 return false;
23696 }
23697
23698 compareContext = compareContext || null;
23699
23700 // Test for A's keys different from B.
23701 var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
23702 for (var i = 0; i < len; i++) {
23703 var key = keysA[i];
23704 if (!bHasOwnProperty(key)) {
23705 return false;
23706 }
23707 var valueA = objA[key];
23708 var valueB = objB[key];
23709
23710 var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
23711 if (_ret === false || _ret === void 0 && valueA !== valueB) {
23712 return false;
23713 }
23714 }
23533 23715
23534 function shallowEqual(objA, objB) {
23535 if (objA === objB) {
23536 return true; 23716 return true;
23537 } 23717 };
23538 var key = undefined; 23718
23539 // Test for A's keys different from B. 23719/***/ },
23540 for (key in objA) { 23720/* 184 */
23541 if (objA.hasOwnProperty(key) && (!objB.hasOwnProperty(key) || objA[key] !== objB[key])) { 23721/***/ function(module, exports, __webpack_require__) {
23542 return false; 23722
23723 /**
23724 * lodash 3.1.2 (Custom Build) <https://lodash.com/>
23725 * Build: `lodash modern modularize exports="npm" -o ./`
23726 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
23727 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
23728 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
23729 * Available under MIT license <https://lodash.com/license>
23730 */
23731 var getNative = __webpack_require__(185),
23732 isArguments = __webpack_require__(186),
23733 isArray = __webpack_require__(187);
23734
23735 /** Used to detect unsigned integer values. */
23736 var reIsUint = /^\d+$/;
23737
23738 /** Used for native method references. */
23739 var objectProto = Object.prototype;
23740
23741 /** Used to check objects for own properties. */
23742 var hasOwnProperty = objectProto.hasOwnProperty;
23743
23744 /* Native method references for those with the same name as other `lodash` methods. */
23745 var nativeKeys = getNative(Object, 'keys');
23746
23747 /**
23748 * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
23749 * of an array-like value.
23750 */
23751 var MAX_SAFE_INTEGER = 9007199254740991;
23752
23753 /**
23754 * The base implementation of `_.property` without support for deep paths.
23755 *
23756 * @private
23757 * @param {string} key The key of the property to get.
23758 * @returns {Function} Returns the new function.
23759 */
23760 function baseProperty(key) {
23761 return function(object) {
23762 return object == null ? undefined : object[key];
23763 };
23764 }
23765
23766 /**
23767 * Gets the "length" property value of `object`.
23768 *
23769 * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
23770 * that affects Safari on at least iOS 8.1-8.3 ARM64.
23771 *
23772 * @private
23773 * @param {Object} object The object to query.
23774 * @returns {*} Returns the "length" value.
23775 */
23776 var getLength = baseProperty('length');
23777
23778 /**
23779 * Checks if `value` is array-like.
23780 *
23781 * @private
23782 * @param {*} value The value to check.
23783 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
23784 */
23785 function isArrayLike(value) {
23786 return value != null && isLength(getLength(value));
23787 }
23788
23789 /**
23790 * Checks if `value` is a valid array-like index.
23791 *
23792 * @private
23793 * @param {*} value The value to check.
23794 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
23795 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
23796 */
23797 function isIndex(value, length) {
23798 value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
23799 length = length == null ? MAX_SAFE_INTEGER : length;
23800 return value > -1 && value % 1 == 0 && value < length;
23801 }
23802
23803 /**
23804 * Checks if `value` is a valid array-like length.
23805 *
23806 * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
23807 *
23808 * @private
23809 * @param {*} value The value to check.
23810 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
23811 */
23812 function isLength(value) {
23813 return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
23814 }
23815
23816 /**
23817 * A fallback implementation of `Object.keys` which creates an array of the
23818 * own enumerable property names of `object`.
23819 *
23820 * @private
23821 * @param {Object} object The object to query.
23822 * @returns {Array} Returns the array of property names.
23823 */
23824 function shimKeys(object) {
23825 var props = keysIn(object),
23826 propsLength = props.length,
23827 length = propsLength && object.length;
23828
23829 var allowIndexes = !!length && isLength(length) &&
23830 (isArray(object) || isArguments(object));
23831
23832 var index = -1,
23833 result = [];
23834
23835 while (++index < propsLength) {
23836 var key = props[index];
23837 if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {
23838 result.push(key);
23543 } 23839 }
23544 } 23840 }
23545 // Test for B's keys missing from A. 23841 return result;
23546 for (key in objB) { 23842 }
23547 if (objB.hasOwnProperty(key) && !objA.hasOwnProperty(key)) { 23843
23548 return false; 23844 /**
23845 * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
23846 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
23847 *
23848 * @static
23849 * @memberOf _
23850 * @category Lang
23851 * @param {*} value The value to check.
23852 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
23853 * @example
23854 *
23855 * _.isObject({});
23856 * // => true
23857 *
23858 * _.isObject([1, 2, 3]);
23859 * // => true
23860 *
23861 * _.isObject(1);
23862 * // => false
23863 */
23864 function isObject(value) {
23865 // Avoid a V8 JIT bug in Chrome 19-20.
23866 // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
23867 var type = typeof value;
23868 return !!value && (type == 'object' || type == 'function');
23869 }
23870
23871 /**
23872 * Creates an array of the own enumerable property names of `object`.
23873 *
23874 * **Note:** Non-object values are coerced to objects. See the
23875 * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
23876 * for more details.
23877 *
23878 * @static
23879 * @memberOf _
23880 * @category Object
23881 * @param {Object} object The object to query.
23882 * @returns {Array} Returns the array of property names.
23883 * @example
23884 *
23885 * function Foo() {
23886 * this.a = 1;
23887 * this.b = 2;
23888 * }
23889 *
23890 * Foo.prototype.c = 3;
23891 *
23892 * _.keys(new Foo);
23893 * // => ['a', 'b'] (iteration order is not guaranteed)
23894 *
23895 * _.keys('hi');
23896 * // => ['0', '1']
23897 */
23898 var keys = !nativeKeys ? shimKeys : function(object) {
23899 var Ctor = object == null ? undefined : object.constructor;
23900 if ((typeof Ctor == 'function' && Ctor.prototype === object) ||
23901 (typeof object != 'function' && isArrayLike(object))) {
23902 return shimKeys(object);
23903 }
23904 return isObject(object) ? nativeKeys(object) : [];
23905 };
23906
23907 /**
23908 * Creates an array of the own and inherited enumerable property names of `object`.
23909 *
23910 * **Note:** Non-object values are coerced to objects.
23911 *
23912 * @static
23913 * @memberOf _
23914 * @category Object
23915 * @param {Object} object The object to query.
23916 * @returns {Array} Returns the array of property names.
23917 * @example
23918 *
23919 * function Foo() {
23920 * this.a = 1;
23921 * this.b = 2;
23922 * }
23923 *
23924 * Foo.prototype.c = 3;
23925 *
23926 * _.keysIn(new Foo);
23927 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
23928 */
23929 function keysIn(object) {
23930 if (object == null) {
23931 return [];
23932 }
23933 if (!isObject(object)) {
23934 object = Object(object);
23935 }
23936 var length = object.length;
23937 length = (length && isLength(length) &&
23938 (isArray(object) || isArguments(object)) && length) || 0;
23939
23940 var Ctor = object.constructor,
23941 index = -1,
23942 isProto = typeof Ctor == 'function' && Ctor.prototype === object,
23943 result = Array(length),
23944 skipIndexes = length > 0;
23945
23946 while (++index < length) {
23947 result[index] = (index + '');
23948 }
23949 for (var key in object) {
23950 if (!(skipIndexes && isIndex(key, length)) &&
23951 !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
23952 result.push(key);
23549 } 23953 }
23550 } 23954 }
23551 return true; 23955 return result;
23552 } 23956 }
23553 23957
23554 module.exports = shallowEqual; 23958 module.exports = keys;
23959
23555 23960
23556/***/ }, 23961/***/ },
23557/* 182 */ 23962/* 185 */
23963/***/ function(module, exports) {
23964
23965 /**
23966 * lodash 3.9.1 (Custom Build) <https://lodash.com/>
23967 * Build: `lodash modern modularize exports="npm" -o ./`
23968 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
23969 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
23970 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
23971 * Available under MIT license <https://lodash.com/license>
23972 */
23973
23974 /** `Object#toString` result references. */
23975 var funcTag = '[object Function]';
23976
23977 /** Used to detect host constructors (Safari > 5). */
23978 var reIsHostCtor = /^\[object .+?Constructor\]$/;
23979
23980 /**
23981 * Checks if `value` is object-like.
23982 *
23983 * @private
23984 * @param {*} value The value to check.
23985 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
23986 */
23987 function isObjectLike(value) {
23988 return !!value && typeof value == 'object';
23989 }
23990
23991 /** Used for native method references. */
23992 var objectProto = Object.prototype;
23993
23994 /** Used to resolve the decompiled source of functions. */
23995 var fnToString = Function.prototype.toString;
23996
23997 /** Used to check objects for own properties. */
23998 var hasOwnProperty = objectProto.hasOwnProperty;
23999
24000 /**
24001 * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
24002 * of values.
24003 */
24004 var objToString = objectProto.toString;
24005
24006 /** Used to detect if a method is native. */
24007 var reIsNative = RegExp('^' +
24008 fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
24009 .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
24010 );
24011
24012 /**
24013 * Gets the native function at `key` of `object`.
24014 *
24015 * @private
24016 * @param {Object} object The object to query.
24017 * @param {string} key The key of the method to get.
24018 * @returns {*} Returns the function if it's native, else `undefined`.
24019 */
24020 function getNative(object, key) {
24021 var value = object == null ? undefined : object[key];
24022 return isNative(value) ? value : undefined;
24023 }
24024
24025 /**
24026 * Checks if `value` is classified as a `Function` object.
24027 *
24028 * @static
24029 * @memberOf _
24030 * @category Lang
24031 * @param {*} value The value to check.
24032 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
24033 * @example
24034 *
24035 * _.isFunction(_);
24036 * // => true
24037 *
24038 * _.isFunction(/abc/);
24039 * // => false
24040 */
24041 function isFunction(value) {
24042 // The use of `Object#toString` avoids issues with the `typeof` operator
24043 // in older versions of Chrome and Safari which return 'function' for regexes
24044 // and Safari 8 equivalents which return 'object' for typed array constructors.
24045 return isObject(value) && objToString.call(value) == funcTag;
24046 }
24047
24048 /**
24049 * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
24050 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
24051 *
24052 * @static
24053 * @memberOf _
24054 * @category Lang
24055 * @param {*} value The value to check.
24056 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
24057 * @example
24058 *
24059 * _.isObject({});
24060 * // => true
24061 *
24062 * _.isObject([1, 2, 3]);
24063 * // => true
24064 *
24065 * _.isObject(1);
24066 * // => false
24067 */
24068 function isObject(value) {
24069 // Avoid a V8 JIT bug in Chrome 19-20.
24070 // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
24071 var type = typeof value;
24072 return !!value && (type == 'object' || type == 'function');
24073 }
24074
24075 /**
24076 * Checks if `value` is a native function.
24077 *
24078 * @static
24079 * @memberOf _
24080 * @category Lang
24081 * @param {*} value The value to check.
24082 * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
24083 * @example
24084 *
24085 * _.isNative(Array.prototype.push);
24086 * // => true
24087 *
24088 * _.isNative(_);
24089 * // => false
24090 */
24091 function isNative(value) {
24092 if (value == null) {
24093 return false;
24094 }
24095 if (isFunction(value)) {
24096 return reIsNative.test(fnToString.call(value));
24097 }
24098 return isObjectLike(value) && reIsHostCtor.test(value);
24099 }
24100
24101 module.exports = getNative;
24102
24103
24104/***/ },
24105/* 186 */
24106/***/ function(module, exports) {
24107
24108 /**
24109 * lodash 3.0.4 (Custom Build) <https://lodash.com/>
24110 * Build: `lodash modern modularize exports="npm" -o ./`
24111 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
24112 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24113 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
24114 * Available under MIT license <https://lodash.com/license>
24115 */
24116
24117 /**
24118 * Checks if `value` is object-like.
24119 *
24120 * @private
24121 * @param {*} value The value to check.
24122 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
24123 */
24124 function isObjectLike(value) {
24125 return !!value && typeof value == 'object';
24126 }
24127
24128 /** Used for native method references. */
24129 var objectProto = Object.prototype;
24130
24131 /** Used to check objects for own properties. */
24132 var hasOwnProperty = objectProto.hasOwnProperty;
24133
24134 /** Native method references. */
24135 var propertyIsEnumerable = objectProto.propertyIsEnumerable;
24136
24137 /**
24138 * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
24139 * of an array-like value.
24140 */
24141 var MAX_SAFE_INTEGER = 9007199254740991;
24142
24143 /**
24144 * The base implementation of `_.property` without support for deep paths.
24145 *
24146 * @private
24147 * @param {string} key The key of the property to get.
24148 * @returns {Function} Returns the new function.
24149 */
24150 function baseProperty(key) {
24151 return function(object) {
24152 return object == null ? undefined : object[key];
24153 };
24154 }
24155
24156 /**
24157 * Gets the "length" property value of `object`.
24158 *
24159 * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
24160 * that affects Safari on at least iOS 8.1-8.3 ARM64.
24161 *
24162 * @private
24163 * @param {Object} object The object to query.
24164 * @returns {*} Returns the "length" value.
24165 */
24166 var getLength = baseProperty('length');
24167
24168 /**
24169 * Checks if `value` is array-like.
24170 *
24171 * @private
24172 * @param {*} value The value to check.
24173 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
24174 */
24175 function isArrayLike(value) {
24176 return value != null && isLength(getLength(value));
24177 }
24178
24179 /**
24180 * Checks if `value` is a valid array-like length.
24181 *
24182 * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
24183 *
24184 * @private
24185 * @param {*} value The value to check.
24186 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
24187 */
24188 function isLength(value) {
24189 return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
24190 }
24191
24192 /**
24193 * Checks if `value` is classified as an `arguments` object.
24194 *
24195 * @static
24196 * @memberOf _
24197 * @category Lang
24198 * @param {*} value The value to check.
24199 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
24200 * @example
24201 *
24202 * _.isArguments(function() { return arguments; }());
24203 * // => true
24204 *
24205 * _.isArguments([1, 2, 3]);
24206 * // => false
24207 */
24208 function isArguments(value) {
24209 return isObjectLike(value) && isArrayLike(value) &&
24210 hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
24211 }
24212
24213 module.exports = isArguments;
24214
24215
24216/***/ },
24217/* 187 */
24218/***/ function(module, exports) {
24219
24220 /**
24221 * lodash 3.0.4 (Custom Build) <https://lodash.com/>
24222 * Build: `lodash modern modularize exports="npm" -o ./`
24223 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
24224 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24225 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
24226 * Available under MIT license <https://lodash.com/license>
24227 */
24228
24229 /** `Object#toString` result references. */
24230 var arrayTag = '[object Array]',
24231 funcTag = '[object Function]';
24232
24233 /** Used to detect host constructors (Safari > 5). */
24234 var reIsHostCtor = /^\[object .+?Constructor\]$/;
24235
24236 /**
24237 * Checks if `value` is object-like.
24238 *
24239 * @private
24240 * @param {*} value The value to check.
24241 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
24242 */
24243 function isObjectLike(value) {
24244 return !!value && typeof value == 'object';
24245 }
24246
24247 /** Used for native method references. */
24248 var objectProto = Object.prototype;
24249
24250 /** Used to resolve the decompiled source of functions. */
24251 var fnToString = Function.prototype.toString;
24252
24253 /** Used to check objects for own properties. */
24254 var hasOwnProperty = objectProto.hasOwnProperty;
24255
24256 /**
24257 * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
24258 * of values.
24259 */
24260 var objToString = objectProto.toString;
24261
24262 /** Used to detect if a method is native. */
24263 var reIsNative = RegExp('^' +
24264 fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
24265 .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
24266 );
24267
24268 /* Native method references for those with the same name as other `lodash` methods. */
24269 var nativeIsArray = getNative(Array, 'isArray');
24270
24271 /**
24272 * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
24273 * of an array-like value.
24274 */
24275 var MAX_SAFE_INTEGER = 9007199254740991;
24276
24277 /**
24278 * Gets the native function at `key` of `object`.
24279 *
24280 * @private
24281 * @param {Object} object The object to query.
24282 * @param {string} key The key of the method to get.
24283 * @returns {*} Returns the function if it's native, else `undefined`.
24284 */
24285 function getNative(object, key) {
24286 var value = object == null ? undefined : object[key];
24287 return isNative(value) ? value : undefined;
24288 }
24289
24290 /**
24291 * Checks if `value` is a valid array-like length.
24292 *
24293 * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
24294 *
24295 * @private
24296 * @param {*} value The value to check.
24297 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
24298 */
24299 function isLength(value) {
24300 return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
24301 }
24302
24303 /**
24304 * Checks if `value` is classified as an `Array` object.
24305 *
24306 * @static
24307 * @memberOf _
24308 * @category Lang
24309 * @param {*} value The value to check.
24310 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
24311 * @example
24312 *
24313 * _.isArray([1, 2, 3]);
24314 * // => true
24315 *
24316 * _.isArray(function() { return arguments; }());
24317 * // => false
24318 */
24319 var isArray = nativeIsArray || function(value) {
24320 return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;
24321 };
24322
24323 /**
24324 * Checks if `value` is classified as a `Function` object.
24325 *
24326 * @static
24327 * @memberOf _
24328 * @category Lang
24329 * @param {*} value The value to check.
24330 * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
24331 * @example
24332 *
24333 * _.isFunction(_);
24334 * // => true
24335 *
24336 * _.isFunction(/abc/);
24337 * // => false
24338 */
24339 function isFunction(value) {
24340 // The use of `Object#toString` avoids issues with the `typeof` operator
24341 // in older versions of Chrome and Safari which return 'function' for regexes
24342 // and Safari 8 equivalents which return 'object' for typed array constructors.
24343 return isObject(value) && objToString.call(value) == funcTag;
24344 }
24345
24346 /**
24347 * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
24348 * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
24349 *
24350 * @static
24351 * @memberOf _
24352 * @category Lang
24353 * @param {*} value The value to check.
24354 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
24355 * @example
24356 *
24357 * _.isObject({});
24358 * // => true
24359 *
24360 * _.isObject([1, 2, 3]);
24361 * // => true
24362 *
24363 * _.isObject(1);
24364 * // => false
24365 */
24366 function isObject(value) {
24367 // Avoid a V8 JIT bug in Chrome 19-20.
24368 // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
24369 var type = typeof value;
24370 return !!value && (type == 'object' || type == 'function');
24371 }
24372
24373 /**
24374 * Checks if `value` is a native function.
24375 *
24376 * @static
24377 * @memberOf _
24378 * @category Lang
24379 * @param {*} value The value to check.
24380 * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
24381 * @example
24382 *
24383 * _.isNative(Array.prototype.push);
24384 * // => true
24385 *
24386 * _.isNative(_);
24387 * // => false
24388 */
24389 function isNative(value) {
24390 if (value == null) {
24391 return false;
24392 }
24393 if (isFunction(value)) {
24394 return reIsNative.test(fnToString.call(value));
24395 }
24396 return isObjectLike(value) && reIsHostCtor.test(value);
24397 }
24398
24399 module.exports = isArray;
24400
24401
24402/***/ },
24403/* 188 */
23558/***/ function(module, exports) { 24404/***/ function(module, exports) {
23559 24405
23560 /** 24406 /**
@@ -23581,7 +24427,7 @@ webpackJsonp([0,1],[
23581 module.exports = createChainedFunction; 24427 module.exports = createChainedFunction;
23582 24428
23583/***/ }, 24429/***/ },
23584/* 183 */ 24430/* 189 */
23585/***/ function(module, exports, __webpack_require__) { 24431/***/ function(module, exports, __webpack_require__) {
23586 24432
23587 'use strict'; 24433 'use strict';
@@ -23593,7 +24439,7 @@ webpackJsonp([0,1],[
23593 24439
23594 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 24440 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
23595 24441
23596 var _addDomEventListener = __webpack_require__(184); 24442 var _addDomEventListener = __webpack_require__(190);
23597 24443
23598 var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); 24444 var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
23599 24445
@@ -23612,7 +24458,7 @@ webpackJsonp([0,1],[
23612 module.exports = exports['default']; 24458 module.exports = exports['default'];
23613 24459
23614/***/ }, 24460/***/ },
23615/* 184 */ 24461/* 190 */
23616/***/ function(module, exports, __webpack_require__) { 24462/***/ function(module, exports, __webpack_require__) {
23617 24463
23618 'use strict'; 24464 'use strict';
@@ -23624,7 +24470,7 @@ webpackJsonp([0,1],[
23624 24470
23625 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 24471 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
23626 24472
23627 var _EventObject = __webpack_require__(185); 24473 var _EventObject = __webpack_require__(191);
23628 24474
23629 var _EventObject2 = _interopRequireDefault(_EventObject); 24475 var _EventObject2 = _interopRequireDefault(_EventObject);
23630 24476
@@ -23654,7 +24500,7 @@ webpackJsonp([0,1],[
23654 module.exports = exports['default']; 24500 module.exports = exports['default'];
23655 24501
23656/***/ }, 24502/***/ },
23657/* 185 */ 24503/* 191 */
23658/***/ function(module, exports, __webpack_require__) { 24504/***/ function(module, exports, __webpack_require__) {
23659 24505
23660 /** 24506 /**
@@ -23671,11 +24517,11 @@ webpackJsonp([0,1],[
23671 24517
23672 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 24518 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
23673 24519
23674 var _EventBaseObject = __webpack_require__(186); 24520 var _EventBaseObject = __webpack_require__(192);
23675 24521
23676 var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject); 24522 var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
23677 24523
23678 var _objectAssign = __webpack_require__(187); 24524 var _objectAssign = __webpack_require__(193);
23679 24525
23680 var _objectAssign2 = _interopRequireDefault(_objectAssign); 24526 var _objectAssign2 = _interopRequireDefault(_objectAssign);
23681 24527
@@ -23937,7 +24783,7 @@ webpackJsonp([0,1],[
23937 module.exports = exports['default']; 24783 module.exports = exports['default'];
23938 24784
23939/***/ }, 24785/***/ },
23940/* 186 */ 24786/* 192 */
23941/***/ function(module, exports) { 24787/***/ function(module, exports) {
23942 24788
23943 /** 24789 /**
@@ -24005,7 +24851,7 @@ webpackJsonp([0,1],[
24005 module.exports = exports["default"]; 24851 module.exports = exports["default"];
24006 24852
24007/***/ }, 24853/***/ },
24008/* 187 */ 24854/* 193 */
24009/***/ function(module, exports) { 24855/***/ function(module, exports) {
24010 24856
24011 /* eslint-disable no-unused-vars */ 24857 /* eslint-disable no-unused-vars */
@@ -24050,7 +24896,7 @@ webpackJsonp([0,1],[
24050 24896
24051 24897
24052/***/ }, 24898/***/ },
24053/* 188 */ 24899/* 194 */
24054/***/ function(module, exports) { 24900/***/ function(module, exports) {
24055 24901
24056 "use strict"; 24902 "use strict";
@@ -24068,7 +24914,7 @@ webpackJsonp([0,1],[
24068 }; 24914 };
24069 24915
24070/***/ }, 24916/***/ },
24071/* 189 */ 24917/* 195 */
24072/***/ function(module, exports, __webpack_require__) { 24918/***/ function(module, exports, __webpack_require__) {
24073 24919
24074 'use strict'; 24920 'use strict';
@@ -24084,7 +24930,7 @@ webpackJsonp([0,1],[
24084 }; 24930 };
24085 24931
24086/***/ }, 24932/***/ },
24087/* 190 */ 24933/* 196 */
24088/***/ function(module, exports, __webpack_require__) { 24934/***/ function(module, exports, __webpack_require__) {
24089 24935
24090 'use strict'; 24936 'use strict';
@@ -24101,7 +24947,7 @@ webpackJsonp([0,1],[
24101 }; 24947 };
24102 24948
24103/***/ }, 24949/***/ },
24104/* 191 */ 24950/* 197 */
24105/***/ function(module, exports, __webpack_require__) { 24951/***/ function(module, exports, __webpack_require__) {
24106 24952
24107 'use strict'; 24953 'use strict';
@@ -24120,15 +24966,15 @@ webpackJsonp([0,1],[
24120 24966
24121 var _reactDom2 = _interopRequireDefault(_reactDom); 24967 var _reactDom2 = _interopRequireDefault(_reactDom);
24122 24968
24123 var _rcAlign = __webpack_require__(192); 24969 var _rcAlign = __webpack_require__(198);
24124 24970
24125 var _rcAlign2 = _interopRequireDefault(_rcAlign); 24971 var _rcAlign2 = _interopRequireDefault(_rcAlign);
24126 24972
24127 var _rcAnimate = __webpack_require__(203); 24973 var _rcAnimate = __webpack_require__(209);
24128 24974
24129 var _rcAnimate2 = _interopRequireDefault(_rcAnimate); 24975 var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
24130 24976
24131 var _PopupInner = __webpack_require__(211); 24977 var _PopupInner = __webpack_require__(217);
24132 24978
24133 var _PopupInner2 = _interopRequireDefault(_PopupInner); 24979 var _PopupInner2 = _interopRequireDefault(_PopupInner);
24134 24980
@@ -24261,7 +25107,7 @@ webpackJsonp([0,1],[
24261 module.exports = exports['default']; 25107 module.exports = exports['default'];
24262 25108
24263/***/ }, 25109/***/ },
24264/* 192 */ 25110/* 198 */
24265/***/ function(module, exports, __webpack_require__) { 25111/***/ function(module, exports, __webpack_require__) {
24266 25112
24267 // export this package's api 25113 // export this package's api
@@ -24273,7 +25119,7 @@ webpackJsonp([0,1],[
24273 25119
24274 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25120 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
24275 25121
24276 var _Align = __webpack_require__(193); 25122 var _Align = __webpack_require__(199);
24277 25123
24278 var _Align2 = _interopRequireDefault(_Align); 25124 var _Align2 = _interopRequireDefault(_Align);
24279 25125
@@ -24281,7 +25127,7 @@ webpackJsonp([0,1],[
24281 module.exports = exports['default']; 25127 module.exports = exports['default'];
24282 25128
24283/***/ }, 25129/***/ },
24284/* 193 */ 25130/* 199 */
24285/***/ function(module, exports, __webpack_require__) { 25131/***/ function(module, exports, __webpack_require__) {
24286 25132
24287 'use strict'; 25133 'use strict';
@@ -24300,13 +25146,13 @@ webpackJsonp([0,1],[
24300 25146
24301 var _reactDom2 = _interopRequireDefault(_reactDom); 25147 var _reactDom2 = _interopRequireDefault(_reactDom);
24302 25148
24303 var _domAlign = __webpack_require__(194); 25149 var _domAlign = __webpack_require__(200);
24304 25150
24305 var _domAlign2 = _interopRequireDefault(_domAlign); 25151 var _domAlign2 = _interopRequireDefault(_domAlign);
24306 25152
24307 var _rcUtil = __webpack_require__(174); 25153 var _rcUtil = __webpack_require__(174);
24308 25154
24309 var _isWindow = __webpack_require__(202); 25155 var _isWindow = __webpack_require__(208);
24310 25156
24311 var _isWindow2 = _interopRequireDefault(_isWindow); 25157 var _isWindow2 = _interopRequireDefault(_isWindow);
24312 25158
@@ -24438,7 +25284,7 @@ webpackJsonp([0,1],[
24438 module.exports = exports['default']; 25284 module.exports = exports['default'];
24439 25285
24440/***/ }, 25286/***/ },
24441/* 194 */ 25287/* 200 */
24442/***/ function(module, exports, __webpack_require__) { 25288/***/ function(module, exports, __webpack_require__) {
24443 25289
24444 /** 25290 /**
@@ -24454,27 +25300,27 @@ webpackJsonp([0,1],[
24454 25300
24455 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25301 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
24456 25302
24457 var _utils = __webpack_require__(195); 25303 var _utils = __webpack_require__(201);
24458 25304
24459 var _utils2 = _interopRequireDefault(_utils); 25305 var _utils2 = _interopRequireDefault(_utils);
24460 25306
24461 var _getOffsetParent = __webpack_require__(196); 25307 var _getOffsetParent = __webpack_require__(202);
24462 25308
24463 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); 25309 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
24464 25310
24465 var _getVisibleRectForElement = __webpack_require__(197); 25311 var _getVisibleRectForElement = __webpack_require__(203);
24466 25312
24467 var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement); 25313 var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement);
24468 25314
24469 var _adjustForViewport = __webpack_require__(198); 25315 var _adjustForViewport = __webpack_require__(204);
24470 25316
24471 var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport); 25317 var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport);
24472 25318
24473 var _getRegion = __webpack_require__(199); 25319 var _getRegion = __webpack_require__(205);
24474 25320
24475 var _getRegion2 = _interopRequireDefault(_getRegion); 25321 var _getRegion2 = _interopRequireDefault(_getRegion);
24476 25322
24477 var _getElFuturePos = __webpack_require__(200); 25323 var _getElFuturePos = __webpack_require__(206);
24478 25324
24479 var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos); 25325 var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos);
24480 25326
@@ -24641,7 +25487,7 @@ webpackJsonp([0,1],[
24641 module.exports = exports['default']; 25487 module.exports = exports['default'];
24642 25488
24643/***/ }, 25489/***/ },
24644/* 195 */ 25490/* 201 */
24645/***/ function(module, exports) { 25491/***/ function(module, exports) {
24646 25492
24647 'use strict'; 25493 'use strict';
@@ -25139,7 +25985,7 @@ webpackJsonp([0,1],[
25139 module.exports = exports['default']; 25985 module.exports = exports['default'];
25140 25986
25141/***/ }, 25987/***/ },
25142/* 196 */ 25988/* 202 */
25143/***/ function(module, exports, __webpack_require__) { 25989/***/ function(module, exports, __webpack_require__) {
25144 25990
25145 'use strict'; 25991 'use strict';
@@ -25150,7 +25996,7 @@ webpackJsonp([0,1],[
25150 25996
25151 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25997 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25152 25998
25153 var _utils = __webpack_require__(195); 25999 var _utils = __webpack_require__(201);
25154 26000
25155 var _utils2 = _interopRequireDefault(_utils); 26001 var _utils2 = _interopRequireDefault(_utils);
25156 26002
@@ -25197,7 +26043,7 @@ webpackJsonp([0,1],[
25197 module.exports = exports['default']; 26043 module.exports = exports['default'];
25198 26044
25199/***/ }, 26045/***/ },
25200/* 197 */ 26046/* 203 */
25201/***/ function(module, exports, __webpack_require__) { 26047/***/ function(module, exports, __webpack_require__) {
25202 26048
25203 'use strict'; 26049 'use strict';
@@ -25208,11 +26054,11 @@ webpackJsonp([0,1],[
25208 26054
25209 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 26055 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25210 26056
25211 var _utils = __webpack_require__(195); 26057 var _utils = __webpack_require__(201);
25212 26058
25213 var _utils2 = _interopRequireDefault(_utils); 26059 var _utils2 = _interopRequireDefault(_utils);
25214 26060
25215 var _getOffsetParent = __webpack_require__(196); 26061 var _getOffsetParent = __webpack_require__(202);
25216 26062
25217 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); 26063 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
25218 26064
@@ -25278,7 +26124,7 @@ webpackJsonp([0,1],[
25278 module.exports = exports['default']; 26124 module.exports = exports['default'];
25279 26125
25280/***/ }, 26126/***/ },
25281/* 198 */ 26127/* 204 */
25282/***/ function(module, exports, __webpack_require__) { 26128/***/ function(module, exports, __webpack_require__) {
25283 26129
25284 'use strict'; 26130 'use strict';
@@ -25289,7 +26135,7 @@ webpackJsonp([0,1],[
25289 26135
25290 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 26136 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25291 26137
25292 var _utils = __webpack_require__(195); 26138 var _utils = __webpack_require__(201);
25293 26139
25294 var _utils2 = _interopRequireDefault(_utils); 26140 var _utils2 = _interopRequireDefault(_utils);
25295 26141
@@ -25338,7 +26184,7 @@ webpackJsonp([0,1],[
25338 module.exports = exports['default']; 26184 module.exports = exports['default'];
25339 26185
25340/***/ }, 26186/***/ },
25341/* 199 */ 26187/* 205 */
25342/***/ function(module, exports, __webpack_require__) { 26188/***/ function(module, exports, __webpack_require__) {
25343 26189
25344 'use strict'; 26190 'use strict';
@@ -25349,7 +26195,7 @@ webpackJsonp([0,1],[
25349 26195
25350 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 26196 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25351 26197
25352 var _utils = __webpack_require__(195); 26198 var _utils = __webpack_require__(201);
25353 26199
25354 var _utils2 = _interopRequireDefault(_utils); 26200 var _utils2 = _interopRequireDefault(_utils);
25355 26201
@@ -25379,7 +26225,7 @@ webpackJsonp([0,1],[
25379 module.exports = exports['default']; 26225 module.exports = exports['default'];
25380 26226
25381/***/ }, 26227/***/ },
25382/* 200 */ 26228/* 206 */
25383/***/ function(module, exports, __webpack_require__) { 26229/***/ function(module, exports, __webpack_require__) {
25384 26230
25385 'use strict'; 26231 'use strict';
@@ -25390,7 +26236,7 @@ webpackJsonp([0,1],[
25390 26236
25391 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 26237 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25392 26238
25393 var _getAlignOffset = __webpack_require__(201); 26239 var _getAlignOffset = __webpack_require__(207);
25394 26240
25395 var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset); 26241 var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);
25396 26242
@@ -25420,7 +26266,7 @@ webpackJsonp([0,1],[
25420 module.exports = exports['default']; 26266 module.exports = exports['default'];
25421 26267
25422/***/ }, 26268/***/ },
25423/* 201 */ 26269/* 207 */
25424/***/ function(module, exports) { 26270/***/ function(module, exports) {
25425 26271
25426 /** 26272 /**
@@ -25465,7 +26311,7 @@ webpackJsonp([0,1],[
25465 module.exports = exports['default']; 26311 module.exports = exports['default'];
25466 26312
25467/***/ }, 26313/***/ },
25468/* 202 */ 26314/* 208 */
25469/***/ function(module, exports) { 26315/***/ function(module, exports) {
25470 26316
25471 "use strict"; 26317 "use strict";
@@ -25484,16 +26330,16 @@ webpackJsonp([0,1],[
25484 module.exports = exports["default"]; 26330 module.exports = exports["default"];
25485 26331
25486/***/ }, 26332/***/ },
25487/* 203 */ 26333/* 209 */
25488/***/ function(module, exports, __webpack_require__) { 26334/***/ function(module, exports, __webpack_require__) {
25489 26335
25490 // export this package's api 26336 // export this package's api
25491 'use strict'; 26337 'use strict';
25492 26338
25493 module.exports = __webpack_require__(204); 26339 module.exports = __webpack_require__(210);
25494 26340
25495/***/ }, 26341/***/ },
25496/* 204 */ 26342/* 210 */
25497/***/ function(module, exports, __webpack_require__) { 26343/***/ function(module, exports, __webpack_require__) {
25498 26344
25499 'use strict'; 26345 'use strict';
@@ -25510,13 +26356,13 @@ webpackJsonp([0,1],[
25510 26356
25511 var _react2 = _interopRequireDefault(_react); 26357 var _react2 = _interopRequireDefault(_react);
25512 26358
25513 var _ChildrenUtils = __webpack_require__(205); 26359 var _ChildrenUtils = __webpack_require__(211);
25514 26360
25515 var _AnimateChild = __webpack_require__(206); 26361 var _AnimateChild = __webpack_require__(212);
25516 26362
25517 var _AnimateChild2 = _interopRequireDefault(_AnimateChild); 26363 var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
25518 26364
25519 var _util = __webpack_require__(210); 26365 var _util = __webpack_require__(216);
25520 26366
25521 var _util2 = _interopRequireDefault(_util); 26367 var _util2 = _interopRequireDefault(_util);
25522 26368
@@ -25813,7 +26659,7 @@ webpackJsonp([0,1],[
25813 module.exports = exports['default']; 26659 module.exports = exports['default'];
25814 26660
25815/***/ }, 26661/***/ },
25816/* 205 */ 26662/* 211 */
25817/***/ function(module, exports, __webpack_require__) { 26663/***/ function(module, exports, __webpack_require__) {
25818 26664
25819 'use strict'; 26665 'use strict';
@@ -25931,7 +26777,7 @@ webpackJsonp([0,1],[
25931 } 26777 }
25932 26778
25933/***/ }, 26779/***/ },
25934/* 206 */ 26780/* 212 */
25935/***/ function(module, exports, __webpack_require__) { 26781/***/ function(module, exports, __webpack_require__) {
25936 26782
25937 'use strict'; 26783 'use strict';
@@ -25950,11 +26796,11 @@ webpackJsonp([0,1],[
25950 26796
25951 var _reactDom2 = _interopRequireDefault(_reactDom); 26797 var _reactDom2 = _interopRequireDefault(_reactDom);
25952 26798
25953 var _cssAnimation = __webpack_require__(207); 26799 var _cssAnimation = __webpack_require__(213);
25954 26800
25955 var _cssAnimation2 = _interopRequireDefault(_cssAnimation); 26801 var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
25956 26802
25957 var _util = __webpack_require__(210); 26803 var _util = __webpack_require__(216);
25958 26804
25959 var _util2 = _interopRequireDefault(_util); 26805 var _util2 = _interopRequireDefault(_util);
25960 26806
@@ -26034,13 +26880,13 @@ webpackJsonp([0,1],[
26034 module.exports = exports['default']; 26880 module.exports = exports['default'];
26035 26881
26036/***/ }, 26882/***/ },
26037/* 207 */ 26883/* 213 */
26038/***/ function(module, exports, __webpack_require__) { 26884/***/ function(module, exports, __webpack_require__) {
26039 26885
26040 'use strict'; 26886 'use strict';
26041 26887
26042 var Event = __webpack_require__(208); 26888 var Event = __webpack_require__(214);
26043 var Css = __webpack_require__(209); 26889 var Css = __webpack_require__(215);
26044 var isCssAnimationSupported = Event.endEvents.length !== 0; 26890 var isCssAnimationSupported = Event.endEvents.length !== 0;
26045 26891
26046 function getDuration(node, name) { 26892 function getDuration(node, name) {
@@ -26192,7 +27038,7 @@ webpackJsonp([0,1],[
26192 module.exports = cssAnimation; 27038 module.exports = cssAnimation;
26193 27039
26194/***/ }, 27040/***/ },
26195/* 208 */ 27041/* 214 */
26196/***/ function(module, exports) { 27042/***/ function(module, exports) {
26197 27043
26198 'use strict'; 27044 'use strict';
@@ -26280,7 +27126,7 @@ webpackJsonp([0,1],[
26280 module.exports = TransitionEvents; 27126 module.exports = TransitionEvents;
26281 27127
26282/***/ }, 27128/***/ },
26283/* 209 */ 27129/* 215 */
26284/***/ function(module, exports) { 27130/***/ function(module, exports) {
26285 27131
26286 'use strict'; 27132 'use strict';
@@ -26311,7 +27157,7 @@ webpackJsonp([0,1],[
26311 }; 27157 };
26312 27158
26313/***/ }, 27159/***/ },
26314/* 210 */ 27160/* 216 */
26315/***/ function(module, exports) { 27161/***/ function(module, exports) {
26316 27162
26317 "use strict"; 27163 "use strict";
@@ -26344,7 +27190,7 @@ webpackJsonp([0,1],[
26344 module.exports = exports["default"]; 27190 module.exports = exports["default"];
26345 27191
26346/***/ }, 27192/***/ },
26347/* 211 */ 27193/* 217 */
26348/***/ function(module, exports, __webpack_require__) { 27194/***/ function(module, exports, __webpack_require__) {
26349 27195
26350 'use strict'; 27196 'use strict';
@@ -26390,7 +27236,7 @@ webpackJsonp([0,1],[
26390 module.exports = exports['default']; 27236 module.exports = exports['default'];
26391 27237
26392/***/ }, 27238/***/ },
26393/* 212 */ 27239/* 218 */
26394/***/ function(module, exports, __webpack_require__) { 27240/***/ function(module, exports, __webpack_require__) {
26395 27241
26396 'use strict'; 27242 'use strict';
@@ -26403,7 +27249,7 @@ webpackJsonp([0,1],[
26403 27249
26404 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 27250 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
26405 27251
26406 var _objectAssign = __webpack_require__(187); 27252 var _objectAssign = __webpack_require__(193);
26407 27253
26408 var _objectAssign2 = _interopRequireDefault(_objectAssign); 27254 var _objectAssign2 = _interopRequireDefault(_objectAssign);
26409 27255
@@ -26429,1243 +27275,7 @@ webpackJsonp([0,1],[
26429 } 27275 }
26430 27276
26431/***/ }, 27277/***/ },
26432/* 213 */
26433/***/ function(module, exports, __webpack_require__) {
26434
26435 module.exports = {
26436 guid: __webpack_require__(214),
26437 classSet: __webpack_require__(215),
26438 joinClasses: __webpack_require__(216),
26439 KeyCode: __webpack_require__(217),
26440 PureRenderMixin: __webpack_require__(218),
26441 shallowEqual: __webpack_require__(219),
26442 createChainedFunction: __webpack_require__(220),
26443 Dom: {
26444 addEventListener: __webpack_require__(221),
26445 contains: __webpack_require__(226)
26446 },
26447 Children: {
26448 toArray: __webpack_require__(227),
26449 mapSelf: __webpack_require__(228)
26450 }
26451 };
26452
26453
26454/***/ },
26455/* 214 */
26456/***/ function(module, exports) {
26457
26458 var seed = 0;
26459 module.exports = function () {
26460 return Date.now() + '_' + (seed++);
26461 };
26462
26463
26464/***/ },
26465/* 215 */
26466/***/ function(module, exports, __webpack_require__) {
26467
26468 module.exports = __webpack_require__(177);
26469
26470
26471/***/ },
26472/* 216 */
26473/***/ function(module, exports) {
26474
26475 /**
26476 * Copyright 2013-2014, Facebook, Inc.
26477 * All rights reserved.
26478 *
26479 * This file contains an unmodified version of:
26480 * https://github.com/facebook/react/blob/v0.12.0/src/utils/joinClasses.js
26481 *
26482 * This source code is licensed under the BSD-style license found here:
26483 * https://github.com/facebook/react/blob/v0.12.0/LICENSE
26484 * An additional grant of patent rights can be found here:
26485 * https://github.com/facebook/react/blob/v0.12.0/PATENTS
26486 */
26487
26488 "use strict";
26489
26490 /**
26491 * Combines multiple className strings into one.
26492 * http://jsperf.com/joinclasses-args-vs-array
26493 *
26494 * @param {...?string} classes
26495 * @return {string}
26496 */
26497
26498 function joinClasses(className /*, ... */ ) {
26499 if (!className) {
26500 className = '';
26501 }
26502 var nextClass;
26503 var argLength = arguments.length;
26504 if (argLength > 1) {
26505 for (var ii = 1; ii < argLength; ii++) {
26506 nextClass = arguments[ii];
26507 if (nextClass) {
26508 className = (className ? className + ' ' : '') + nextClass;
26509 }
26510 }
26511 }
26512 return className;
26513 }
26514
26515 module.exports = joinClasses;
26516
26517
26518/***/ },
26519/* 217 */
26520/***/ function(module, exports) {
26521
26522 /**
26523 * @ignore
26524 * some key-codes definition and utils from closure-library
26525 * @author yiminghe@gmail.com
26526 */
26527
26528 var KeyCode = {
26529 /**
26530 * MAC_ENTER
26531 */
26532 MAC_ENTER: 3,
26533 /**
26534 * BACKSPACE
26535 */
26536 BACKSPACE: 8,
26537 /**
26538 * TAB
26539 */
26540 TAB: 9,
26541 /**
26542 * NUMLOCK on FF/Safari Mac
26543 */
26544 NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
26545 /**
26546 * ENTER
26547 */
26548 ENTER: 13,
26549 /**
26550 * SHIFT
26551 */
26552 SHIFT: 16,
26553 /**
26554 * CTRL
26555 */
26556 CTRL: 17,
26557 /**
26558 * ALT
26559 */
26560 ALT: 18,
26561 /**
26562 * PAUSE
26563 */
26564 PAUSE: 19,
26565 /**
26566 * CAPS_LOCK
26567 */
26568 CAPS_LOCK: 20,
26569 /**
26570 * ESC
26571 */
26572 ESC: 27,
26573 /**
26574 * SPACE
26575 */
26576 SPACE: 32,
26577 /**
26578 * PAGE_UP
26579 */
26580 PAGE_UP: 33, // also NUM_NORTH_EAST
26581 /**
26582 * PAGE_DOWN
26583 */
26584 PAGE_DOWN: 34, // also NUM_SOUTH_EAST
26585 /**
26586 * END
26587 */
26588 END: 35, // also NUM_SOUTH_WEST
26589 /**
26590 * HOME
26591 */
26592 HOME: 36, // also NUM_NORTH_WEST
26593 /**
26594 * LEFT
26595 */
26596 LEFT: 37, // also NUM_WEST
26597 /**
26598 * UP
26599 */
26600 UP: 38, // also NUM_NORTH
26601 /**
26602 * RIGHT
26603 */
26604 RIGHT: 39, // also NUM_EAST
26605 /**
26606 * DOWN
26607 */
26608 DOWN: 40, // also NUM_SOUTH
26609 /**
26610 * PRINT_SCREEN
26611 */
26612 PRINT_SCREEN: 44,
26613 /**
26614 * INSERT
26615 */
26616 INSERT: 45, // also NUM_INSERT
26617 /**
26618 * DELETE
26619 */
26620 DELETE: 46, // also NUM_DELETE
26621 /**
26622 * ZERO
26623 */
26624 ZERO: 48,
26625 /**
26626 * ONE
26627 */
26628 ONE: 49,
26629 /**
26630 * TWO
26631 */
26632 TWO: 50,
26633 /**
26634 * THREE
26635 */
26636 THREE: 51,
26637 /**
26638 * FOUR
26639 */
26640 FOUR: 52,
26641 /**
26642 * FIVE
26643 */
26644 FIVE: 53,
26645 /**
26646 * SIX
26647 */
26648 SIX: 54,
26649 /**
26650 * SEVEN
26651 */
26652 SEVEN: 55,
26653 /**
26654 * EIGHT
26655 */
26656 EIGHT: 56,
26657 /**
26658 * NINE
26659 */
26660 NINE: 57,
26661 /**
26662 * QUESTION_MARK
26663 */
26664 QUESTION_MARK: 63, // needs localization
26665 /**
26666 * A
26667 */
26668 A: 65,
26669 /**
26670 * B
26671 */
26672 B: 66,
26673 /**
26674 * C
26675 */
26676 C: 67,
26677 /**
26678 * D
26679 */
26680 D: 68,
26681 /**
26682 * E
26683 */
26684 E: 69,
26685 /**
26686 * F
26687 */
26688 F: 70,
26689 /**
26690 * G
26691 */
26692 G: 71,
26693 /**
26694 * H
26695 */
26696 H: 72,
26697 /**
26698 * I
26699 */
26700 I: 73,
26701 /**
26702 * J
26703 */
26704 J: 74,
26705 /**
26706 * K
26707 */
26708 K: 75,
26709 /**
26710 * L
26711 */
26712 L: 76,
26713 /**
26714 * M
26715 */
26716 M: 77,
26717 /**
26718 * N
26719 */
26720 N: 78,
26721 /**
26722 * O
26723 */
26724 O: 79,
26725 /**
26726 * P
26727 */
26728 P: 80,
26729 /**
26730 * Q
26731 */
26732 Q: 81,
26733 /**
26734 * R
26735 */
26736 R: 82,
26737 /**
26738 * S
26739 */
26740 S: 83,
26741 /**
26742 * T
26743 */
26744 T: 84,
26745 /**
26746 * U
26747 */
26748 U: 85,
26749 /**
26750 * V
26751 */
26752 V: 86,
26753 /**
26754 * W
26755 */
26756 W: 87,
26757 /**
26758 * X
26759 */
26760 X: 88,
26761 /**
26762 * Y
26763 */
26764 Y: 89,
26765 /**
26766 * Z
26767 */
26768 Z: 90,
26769 /**
26770 * META
26771 */
26772 META: 91, // WIN_KEY_LEFT
26773 /**
26774 * WIN_KEY_RIGHT
26775 */
26776 WIN_KEY_RIGHT: 92,
26777 /**
26778 * CONTEXT_MENU
26779 */
26780 CONTEXT_MENU: 93,
26781 /**
26782 * NUM_ZERO
26783 */
26784 NUM_ZERO: 96,
26785 /**
26786 * NUM_ONE
26787 */
26788 NUM_ONE: 97,
26789 /**
26790 * NUM_TWO
26791 */
26792 NUM_TWO: 98,
26793 /**
26794 * NUM_THREE
26795 */
26796 NUM_THREE: 99,
26797 /**
26798 * NUM_FOUR
26799 */
26800 NUM_FOUR: 100,
26801 /**
26802 * NUM_FIVE
26803 */
26804 NUM_FIVE: 101,
26805 /**
26806 * NUM_SIX
26807 */
26808 NUM_SIX: 102,
26809 /**
26810 * NUM_SEVEN
26811 */
26812 NUM_SEVEN: 103,
26813 /**
26814 * NUM_EIGHT
26815 */
26816 NUM_EIGHT: 104,
26817 /**
26818 * NUM_NINE
26819 */
26820 NUM_NINE: 105,
26821 /**
26822 * NUM_MULTIPLY
26823 */
26824 NUM_MULTIPLY: 106,
26825 /**
26826 * NUM_PLUS
26827 */
26828 NUM_PLUS: 107,
26829 /**
26830 * NUM_MINUS
26831 */
26832 NUM_MINUS: 109,
26833 /**
26834 * NUM_PERIOD
26835 */
26836 NUM_PERIOD: 110,
26837 /**
26838 * NUM_DIVISION
26839 */
26840 NUM_DIVISION: 111,
26841 /**
26842 * F1
26843 */
26844 F1: 112,
26845 /**
26846 * F2
26847 */
26848 F2: 113,
26849 /**
26850 * F3
26851 */
26852 F3: 114,
26853 /**
26854 * F4
26855 */
26856 F4: 115,
26857 /**
26858 * F5
26859 */
26860 F5: 116,
26861 /**
26862 * F6
26863 */
26864 F6: 117,
26865 /**
26866 * F7
26867 */
26868 F7: 118,
26869 /**
26870 * F8
26871 */
26872 F8: 119,
26873 /**
26874 * F9
26875 */
26876 F9: 120,
26877 /**
26878 * F10
26879 */
26880 F10: 121,
26881 /**
26882 * F11
26883 */
26884 F11: 122,
26885 /**
26886 * F12
26887 */
26888 F12: 123,
26889 /**
26890 * NUMLOCK
26891 */
26892 NUMLOCK: 144,
26893 /**
26894 * SEMICOLON
26895 */
26896 SEMICOLON: 186, // needs localization
26897 /**
26898 * DASH
26899 */
26900 DASH: 189, // needs localization
26901 /**
26902 * EQUALS
26903 */
26904 EQUALS: 187, // needs localization
26905 /**
26906 * COMMA
26907 */
26908 COMMA: 188, // needs localization
26909 /**
26910 * PERIOD
26911 */
26912 PERIOD: 190, // needs localization
26913 /**
26914 * SLASH
26915 */
26916 SLASH: 191, // needs localization
26917 /**
26918 * APOSTROPHE
26919 */
26920 APOSTROPHE: 192, // needs localization
26921 /**
26922 * SINGLE_QUOTE
26923 */
26924 SINGLE_QUOTE: 222, // needs localization
26925 /**
26926 * OPEN_SQUARE_BRACKET
26927 */
26928 OPEN_SQUARE_BRACKET: 219, // needs localization
26929 /**
26930 * BACKSLASH
26931 */
26932 BACKSLASH: 220, // needs localization
26933 /**
26934 * CLOSE_SQUARE_BRACKET
26935 */
26936 CLOSE_SQUARE_BRACKET: 221, // needs localization
26937 /**
26938 * WIN_KEY
26939 */
26940 WIN_KEY: 224,
26941 /**
26942 * MAC_FF_META
26943 */
26944 MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
26945 /**
26946 * WIN_IME
26947 */
26948 WIN_IME: 229
26949 };
26950
26951 /*
26952 whether text and modified key is entered at the same time.
26953 */
26954 KeyCode.isTextModifyingKeyEvent = function (e) {
26955 var keyCode = e.keyCode;
26956 if (e.altKey && !e.ctrlKey || e.metaKey ||
26957 // Function keys don't generate text
26958 keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
26959 return false;
26960 }
26961
26962 // The following keys are quite harmless, even in combination with
26963 // CTRL, ALT or SHIFT.
26964 switch (keyCode) {
26965 case KeyCode.ALT:
26966 case KeyCode.CAPS_LOCK:
26967 case KeyCode.CONTEXT_MENU:
26968 case KeyCode.CTRL:
26969 case KeyCode.DOWN:
26970 case KeyCode.END:
26971 case KeyCode.ESC:
26972 case KeyCode.HOME:
26973 case KeyCode.INSERT:
26974 case KeyCode.LEFT:
26975 case KeyCode.MAC_FF_META:
26976 case KeyCode.META:
26977 case KeyCode.NUMLOCK:
26978 case KeyCode.NUM_CENTER:
26979 case KeyCode.PAGE_DOWN:
26980 case KeyCode.PAGE_UP:
26981 case KeyCode.PAUSE:
26982 case KeyCode.PRINT_SCREEN:
26983 case KeyCode.RIGHT:
26984 case KeyCode.SHIFT:
26985 case KeyCode.UP:
26986 case KeyCode.WIN_KEY:
26987 case KeyCode.WIN_KEY_RIGHT:
26988 return false;
26989 default:
26990 return true;
26991 }
26992 };
26993
26994 /*
26995 whether character is entered.
26996 */
26997 KeyCode.isCharacterKey = function (keyCode) {
26998 if (keyCode >= KeyCode.ZERO &&
26999 keyCode <= KeyCode.NINE) {
27000 return true;
27001 }
27002
27003 if (keyCode >= KeyCode.NUM_ZERO &&
27004 keyCode <= KeyCode.NUM_MULTIPLY) {
27005 return true;
27006 }
27007
27008 if (keyCode >= KeyCode.A &&
27009 keyCode <= KeyCode.Z) {
27010 return true;
27011 }
27012
27013 // Safari sends zero key code for non-latin characters.
27014 if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
27015 return true;
27016 }
27017
27018 switch (keyCode) {
27019 case KeyCode.SPACE:
27020 case KeyCode.QUESTION_MARK:
27021 case KeyCode.NUM_PLUS:
27022 case KeyCode.NUM_MINUS:
27023 case KeyCode.NUM_PERIOD:
27024 case KeyCode.NUM_DIVISION:
27025 case KeyCode.SEMICOLON:
27026 case KeyCode.DASH:
27027 case KeyCode.EQUALS:
27028 case KeyCode.COMMA:
27029 case KeyCode.PERIOD:
27030 case KeyCode.SLASH:
27031 case KeyCode.APOSTROPHE:
27032 case KeyCode.SINGLE_QUOTE:
27033 case KeyCode.OPEN_SQUARE_BRACKET:
27034 case KeyCode.BACKSLASH:
27035 case KeyCode.CLOSE_SQUARE_BRACKET:
27036 return true;
27037 default:
27038 return false;
27039 }
27040 };
27041
27042 module.exports = KeyCode;
27043
27044
27045/***/ },
27046/* 218 */
27047/***/ function(module, exports, __webpack_require__) {
27048
27049 /**
27050 * Copyright 2013-2014, Facebook, Inc.
27051 * All rights reserved.
27052 *
27053 * This source code is licensed under the BSD-style license found in the
27054 * LICENSE file in the root directory of this source tree. An additional grant
27055 * of patent rights can be found in the PATENTS file in the same directory.
27056 *
27057 * @providesModule ReactComponentWithPureRenderMixin
27058 */
27059
27060 "use strict";
27061
27062 var shallowEqual = __webpack_require__(219);
27063
27064 /**
27065 * If your React component's render function is "pure", e.g. it will render the
27066 * same result given the same props and state, provide this Mixin for a
27067 * considerable performance boost.
27068 *
27069 * Most React components have pure render functions.
27070 *
27071 * Example:
27072 *
27073 * var ReactComponentWithPureRenderMixin =
27074 * require('ReactComponentWithPureRenderMixin');
27075 * React.createClass({
27076 * mixins: [ReactComponentWithPureRenderMixin],
27077 *
27078 * render: function() {
27079 * return <div className={this.props.className}>foo</div>;
27080 * }
27081 * });
27082 *
27083 * Note: This only checks shallow equality for props and state. If these contain
27084 * complex data structures this mixin may have false-negatives for deeper
27085 * differences. Only mixin to components which have simple props and state, or
27086 * use `forceUpdate()` when you know deep data structures have changed.
27087 */
27088 var ReactComponentWithPureRenderMixin = {
27089 shouldComponentUpdate: function(nextProps, nextState) {
27090 return !shallowEqual(this.props, nextProps) ||
27091 !shallowEqual(this.state, nextState);
27092 }
27093 };
27094
27095 module.exports = ReactComponentWithPureRenderMixin;
27096
27097
27098/***/ },
27099/* 219 */ 27278/* 219 */
27100/***/ function(module, exports) {
27101
27102 /**
27103 * Copyright 2013-2014, Facebook, Inc.
27104 * All rights reserved.
27105 *
27106 * This source code is licensed under the BSD-style license found in the
27107 * LICENSE file in the root directory of this source tree. An additional grant
27108 * of patent rights can be found in the PATENTS file in the same directory.
27109 *
27110 * @providesModule shallowEqual
27111 */
27112
27113 "use strict";
27114
27115 /**
27116 * Performs equality by iterating through keys on an object and returning
27117 * false when any key has values which are not strictly equal between
27118 * objA and objB. Returns true when the values of all keys are strictly equal.
27119 *
27120 * @return {boolean}
27121 */
27122 function shallowEqual(objA, objB) {
27123 if (objA === objB) {
27124 return true;
27125 }
27126 var key;
27127 // Test for A's keys different from B.
27128 for (key in objA) {
27129 if (objA.hasOwnProperty(key) &&
27130 (!objB.hasOwnProperty(key) || objA[key] !== objB[key])) {
27131 return false;
27132 }
27133 }
27134 // Test for B's keys missing from A.
27135 for (key in objB) {
27136 if (objB.hasOwnProperty(key) && !objA.hasOwnProperty(key)) {
27137 return false;
27138 }
27139 }
27140 return true;
27141 }
27142
27143 module.exports = shallowEqual;
27144
27145
27146/***/ },
27147/* 220 */
27148/***/ function(module, exports) {
27149
27150 /**
27151 * Safe chained function
27152 *
27153 * Will only create a new function if needed,
27154 * otherwise will pass back existing functions or null.
27155 *
27156 * @returns {function|null}
27157 */
27158 function createChainedFunction() {
27159 var args = arguments;
27160
27161 return function chainedFunction() {
27162 for (var i = 0; i < args.length; i++) {
27163 if (args[i] && args[i].apply) {
27164 args[i].apply(this, arguments);
27165 }
27166 }
27167 };
27168 }
27169
27170 module.exports = createChainedFunction;
27171
27172
27173/***/ },
27174/* 221 */
27175/***/ function(module, exports, __webpack_require__) {
27176
27177 var addDOMEventListener = __webpack_require__(222);
27178
27179 module.exports = addDOMEventListener['default'] || addDOMEventListener;
27180
27181
27182/***/ },
27183/* 222 */
27184/***/ function(module, exports, __webpack_require__) {
27185
27186 'use strict';
27187
27188 Object.defineProperty(exports, '__esModule', {
27189 value: true
27190 });
27191 exports['default'] = addEventListener;
27192
27193 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27194
27195 var _EventObject = __webpack_require__(223);
27196
27197 var _EventObject2 = _interopRequireDefault(_EventObject);
27198
27199 function addEventListener(target, eventType, callback) {
27200 function wrapCallback(e) {
27201 var ne = new _EventObject2['default'](e);
27202 callback.call(target, ne);
27203 }
27204
27205 if (target.addEventListener) {
27206 target.addEventListener(eventType, wrapCallback, false);
27207 return {
27208 remove: function remove() {
27209 target.removeEventListener(eventType, wrapCallback, false);
27210 }
27211 };
27212 } else if (target.attachEvent) {
27213 target.attachEvent('on' + eventType, wrapCallback);
27214 return {
27215 remove: function remove() {
27216 target.detachEvent('on' + eventType, wrapCallback);
27217 }
27218 };
27219 }
27220 }
27221
27222 module.exports = exports['default'];
27223
27224/***/ },
27225/* 223 */
27226/***/ function(module, exports, __webpack_require__) {
27227
27228 /**
27229 * @ignore
27230 * event object for dom
27231 * @author yiminghe@gmail.com
27232 */
27233
27234 'use strict';
27235
27236 Object.defineProperty(exports, '__esModule', {
27237 value: true
27238 });
27239
27240 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27241
27242 var _EventBaseObject = __webpack_require__(224);
27243
27244 var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
27245
27246 var _objectAssign = __webpack_require__(225);
27247
27248 var _objectAssign2 = _interopRequireDefault(_objectAssign);
27249
27250 var TRUE = true;
27251 var FALSE = false;
27252 var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type'];
27253
27254 function isNullOrUndefined(w) {
27255 return w === null || w === undefined;
27256 }
27257
27258 var eventNormalizers = [{
27259 reg: /^key/,
27260 props: ['char', 'charCode', 'key', 'keyCode', 'which'],
27261 fix: function fix(event, nativeEvent) {
27262 if (isNullOrUndefined(event.which)) {
27263 event.which = !isNullOrUndefined(nativeEvent.charCode) ? nativeEvent.charCode : nativeEvent.keyCode;
27264 }
27265
27266 // add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs)
27267 if (event.metaKey === undefined) {
27268 event.metaKey = event.ctrlKey;
27269 }
27270 }
27271 }, {
27272 reg: /^touch/,
27273 props: ['touches', 'changedTouches', 'targetTouches']
27274 }, {
27275 reg: /^hashchange$/,
27276 props: ['newURL', 'oldURL']
27277 }, {
27278 reg: /^gesturechange$/i,
27279 props: ['rotation', 'scale']
27280 }, {
27281 reg: /^(mousewheel|DOMMouseScroll)$/,
27282 props: [],
27283 fix: function fix(event, nativeEvent) {
27284 var deltaX = undefined;
27285 var deltaY = undefined;
27286 var delta = undefined;
27287 var wheelDelta = nativeEvent.wheelDelta;
27288 var axis = nativeEvent.axis;
27289 var wheelDeltaY = nativeEvent.wheelDeltaY;
27290 var wheelDeltaX = nativeEvent.wheelDeltaX;
27291 var detail = nativeEvent.detail;
27292
27293 // ie/webkit
27294 if (wheelDelta) {
27295 delta = wheelDelta / 120;
27296 }
27297
27298 // gecko
27299 if (detail) {
27300 // press control e.detail == 1 else e.detail == 3
27301 delta = 0 - (detail % 3 === 0 ? detail / 3 : detail);
27302 }
27303
27304 // Gecko
27305 if (axis !== undefined) {
27306 if (axis === event.HORIZONTAL_AXIS) {
27307 deltaY = 0;
27308 deltaX = 0 - delta;
27309 } else if (axis === event.VERTICAL_AXIS) {
27310 deltaX = 0;
27311 deltaY = delta;
27312 }
27313 }
27314
27315 // Webkit
27316 if (wheelDeltaY !== undefined) {
27317 deltaY = wheelDeltaY / 120;
27318 }
27319 if (wheelDeltaX !== undefined) {
27320 deltaX = -1 * wheelDeltaX / 120;
27321 }
27322
27323 // 默认 deltaY (ie)
27324 if (!deltaX && !deltaY) {
27325 deltaY = delta;
27326 }
27327
27328 if (deltaX !== undefined) {
27329 /**
27330 * deltaX of mousewheel event
27331 * @property deltaX
27332 * @member Event.DomEvent.Object
27333 */
27334 event.deltaX = deltaX;
27335 }
27336
27337 if (deltaY !== undefined) {
27338 /**
27339 * deltaY of mousewheel event
27340 * @property deltaY
27341 * @member Event.DomEvent.Object
27342 */
27343 event.deltaY = deltaY;
27344 }
27345
27346 if (delta !== undefined) {
27347 /**
27348 * delta of mousewheel event
27349 * @property delta
27350 * @member Event.DomEvent.Object
27351 */
27352 event.delta = delta;
27353 }
27354 }
27355 }, {
27356 reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,
27357 props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'],
27358 fix: function fix(event, nativeEvent) {
27359 var eventDoc = undefined;
27360 var doc = undefined;
27361 var body = undefined;
27362 var target = event.target;
27363 var button = nativeEvent.button;
27364
27365 // Calculate pageX/Y if missing and clientX/Y available
27366 if (target && isNullOrUndefined(event.pageX) && !isNullOrUndefined(nativeEvent.clientX)) {
27367 eventDoc = target.ownerDocument || document;
27368 doc = eventDoc.documentElement;
27369 body = eventDoc.body;
27370 event.pageX = nativeEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
27371 event.pageY = nativeEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
27372 }
27373
27374 // which for click: 1 === left; 2 === middle; 3 === right
27375 // do not use button
27376 if (!event.which && button !== undefined) {
27377 if (button & 1) {
27378 event.which = 1;
27379 } else if (button & 2) {
27380 event.which = 3;
27381 } else if (button & 4) {
27382 event.which = 2;
27383 } else {
27384 event.which = 0;
27385 }
27386 }
27387
27388 // add relatedTarget, if necessary
27389 if (!event.relatedTarget && event.fromElement) {
27390 event.relatedTarget = event.fromElement === target ? event.toElement : event.fromElement;
27391 }
27392
27393 return event;
27394 }
27395 }];
27396
27397 function retTrue() {
27398 return TRUE;
27399 }
27400
27401 function retFalse() {
27402 return FALSE;
27403 }
27404
27405 function DomEventObject(nativeEvent) {
27406 var type = nativeEvent.type;
27407
27408 var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean';
27409
27410 _EventBaseObject2['default'].call(this);
27411
27412 this.nativeEvent = nativeEvent;
27413
27414 // in case dom event has been mark as default prevented by lower dom node
27415 var isDefaultPrevented = retFalse;
27416 if ('defaultPrevented' in nativeEvent) {
27417 isDefaultPrevented = nativeEvent.defaultPrevented ? retTrue : retFalse;
27418 } else if ('getPreventDefault' in nativeEvent) {
27419 // https://bugzilla.mozilla.org/show_bug.cgi?id=691151
27420 isDefaultPrevented = nativeEvent.getPreventDefault() ? retTrue : retFalse;
27421 } else if ('returnValue' in nativeEvent) {
27422 isDefaultPrevented = nativeEvent.returnValue === FALSE ? retTrue : retFalse;
27423 }
27424
27425 this.isDefaultPrevented = isDefaultPrevented;
27426
27427 var fixFns = [];
27428 var fixFn = undefined;
27429 var l = undefined;
27430 var prop = undefined;
27431 var props = commonProps.concat();
27432
27433 eventNormalizers.forEach(function (normalizer) {
27434 if (type.match(normalizer.reg)) {
27435 props = props.concat(normalizer.props);
27436 if (normalizer.fix) {
27437 fixFns.push(normalizer.fix);
27438 }
27439 }
27440 });
27441
27442 l = props.length;
27443
27444 // clone properties of the original event object
27445 while (l) {
27446 prop = props[--l];
27447 this[prop] = nativeEvent[prop];
27448 }
27449
27450 // fix target property, if necessary
27451 if (!this.target && isNative) {
27452 this.target = nativeEvent.srcElement || document; // srcElement might not be defined either
27453 }
27454
27455 // check if target is a text node (safari)
27456 if (this.target && this.target.nodeType === 3) {
27457 this.target = this.target.parentNode;
27458 }
27459
27460 l = fixFns.length;
27461
27462 while (l) {
27463 fixFn = fixFns[--l];
27464 fixFn(this, nativeEvent);
27465 }
27466
27467 this.timeStamp = nativeEvent.timeStamp || Date.now();
27468 }
27469
27470 var EventBaseObjectProto = _EventBaseObject2['default'].prototype;
27471
27472 (0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, {
27473 constructor: DomEventObject,
27474
27475 preventDefault: function preventDefault() {
27476 var e = this.nativeEvent;
27477
27478 // if preventDefault exists run it on the original event
27479 if (e.preventDefault) {
27480 e.preventDefault();
27481 } else {
27482 // otherwise set the returnValue property of the original event to FALSE (IE)
27483 e.returnValue = FALSE;
27484 }
27485
27486 EventBaseObjectProto.preventDefault.call(this);
27487 },
27488
27489 stopPropagation: function stopPropagation() {
27490 var e = this.nativeEvent;
27491
27492 // if stopPropagation exists run it on the original event
27493 if (e.stopPropagation) {
27494 e.stopPropagation();
27495 } else {
27496 // otherwise set the cancelBubble property of the original event to TRUE (IE)
27497 e.cancelBubble = TRUE;
27498 }
27499
27500 EventBaseObjectProto.stopPropagation.call(this);
27501 }
27502 });
27503
27504 exports['default'] = DomEventObject;
27505 module.exports = exports['default'];
27506
27507/***/ },
27508/* 224 */
27509/***/ function(module, exports) {
27510
27511 /**
27512 * @ignore
27513 * base event object for custom and dom event.
27514 * @author yiminghe@gmail.com
27515 */
27516
27517 "use strict";
27518
27519 Object.defineProperty(exports, "__esModule", {
27520 value: true
27521 });
27522 function returnFalse() {
27523 return false;
27524 }
27525
27526 function returnTrue() {
27527 return true;
27528 }
27529
27530 function EventBaseObject() {
27531 this.timeStamp = Date.now();
27532 this.target = undefined;
27533 this.currentTarget = undefined;
27534 }
27535
27536 EventBaseObject.prototype = {
27537 isEventObject: 1,
27538
27539 constructor: EventBaseObject,
27540
27541 isDefaultPrevented: returnFalse,
27542
27543 isPropagationStopped: returnFalse,
27544
27545 isImmediatePropagationStopped: returnFalse,
27546
27547 preventDefault: function preventDefault() {
27548 this.isDefaultPrevented = returnTrue;
27549 },
27550
27551 stopPropagation: function stopPropagation() {
27552 this.isPropagationStopped = returnTrue;
27553 },
27554
27555 stopImmediatePropagation: function stopImmediatePropagation() {
27556 this.isImmediatePropagationStopped = returnTrue;
27557 // fixed 1.2
27558 // call stopPropagation implicitly
27559 this.stopPropagation();
27560 },
27561
27562 halt: function halt(immediate) {
27563 if (immediate) {
27564 this.stopImmediatePropagation();
27565 } else {
27566 this.stopPropagation();
27567 }
27568 this.preventDefault();
27569 }
27570 };
27571
27572 exports["default"] = EventBaseObject;
27573 module.exports = exports["default"];
27574
27575/***/ },
27576/* 225 */
27577/***/ function(module, exports) {
27578
27579 /* eslint-disable no-unused-vars */
27580 'use strict';
27581 var hasOwnProperty = Object.prototype.hasOwnProperty;
27582 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
27583
27584 function toObject(val) {
27585 if (val === null || val === undefined) {
27586 throw new TypeError('Object.assign cannot be called with null or undefined');
27587 }
27588
27589 return Object(val);
27590 }
27591
27592 module.exports = Object.assign || function (target, source) {
27593 var from;
27594 var to = toObject(target);
27595 var symbols;
27596
27597 for (var s = 1; s < arguments.length; s++) {
27598 from = Object(arguments[s]);
27599
27600 for (var key in from) {
27601 if (hasOwnProperty.call(from, key)) {
27602 to[key] = from[key];
27603 }
27604 }
27605
27606 if (Object.getOwnPropertySymbols) {
27607 symbols = Object.getOwnPropertySymbols(from);
27608 for (var i = 0; i < symbols.length; i++) {
27609 if (propIsEnumerable.call(from, symbols[i])) {
27610 to[symbols[i]] = from[symbols[i]];
27611 }
27612 }
27613 }
27614 }
27615
27616 return to;
27617 };
27618
27619
27620/***/ },
27621/* 226 */
27622/***/ function(module, exports) {
27623
27624 module.exports = function (root, node) {
27625 while (node) {
27626 if (node === root) {
27627 return true;
27628 }
27629 node = node.parentNode;
27630 }
27631
27632 return false;
27633 };
27634
27635
27636/***/ },
27637/* 227 */
27638/***/ function(module, exports, __webpack_require__) {
27639
27640 var React = __webpack_require__(3);
27641
27642 module.exports = function (children) {
27643 var ret = [];
27644 React.Children.forEach(children, function (c) {
27645 ret.push(c);
27646 });
27647 return ret;
27648 };
27649
27650
27651/***/ },
27652/* 228 */
27653/***/ function(module, exports, __webpack_require__) {
27654
27655 var React = __webpack_require__(3);
27656
27657 function mirror(o) {
27658 return o;
27659 }
27660
27661 module.exports = function (children) {
27662 // return ReactFragment
27663 return React.Children.map(children, mirror);
27664 };
27665
27666
27667/***/ },
27668/* 229 */
27669/***/ function(module, exports, __webpack_require__) { 27279/***/ function(module, exports, __webpack_require__) {
27670 27280
27671 'use strict'; 27281 'use strict';
@@ -27680,27 +27290,15 @@ webpackJsonp([0,1],[
27680 27290
27681 var _react2 = _interopRequireDefault(_react); 27291 var _react2 = _interopRequireDefault(_react);
27682 27292
27683 var _classnames = __webpack_require__(177); 27293 var _mixinCommonMixin = __webpack_require__(220);
27684
27685 var _classnames2 = _interopRequireDefault(_classnames);
27686
27687 var _gregorianCalendar = __webpack_require__(161);
27688
27689 var _gregorianCalendar2 = _interopRequireDefault(_gregorianCalendar);
27690
27691 var _gregorianCalendarLibLocaleZh_CN = __webpack_require__(168);
27692
27693 var _gregorianCalendarLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarLibLocaleZh_CN);
27694
27695 var _mixinCommonMixin = __webpack_require__(230);
27696 27294
27697 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); 27295 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin);
27698 27296
27699 var _Header = __webpack_require__(233); 27297 var _Header = __webpack_require__(222);
27700 27298
27701 var _Header2 = _interopRequireDefault(_Header); 27299 var _Header2 = _interopRequireDefault(_Header);
27702 27300
27703 var _Combobox = __webpack_require__(234); 27301 var _Combobox = __webpack_require__(223);
27704 27302
27705 var _Combobox2 = _interopRequireDefault(_Combobox); 27303 var _Combobox2 = _interopRequireDefault(_Combobox);
27706 27304
@@ -27722,11 +27320,16 @@ webpackJsonp([0,1],[
27722 value: _react.PropTypes.object, 27320 value: _react.PropTypes.object,
27723 locale: _react.PropTypes.object, 27321 locale: _react.PropTypes.object,
27724 placeholder: _react.PropTypes.string, 27322 placeholder: _react.PropTypes.string,
27323 gregorianCalendarLocale: _react.PropTypes.object,
27725 formatter: _react.PropTypes.object, 27324 formatter: _react.PropTypes.object,
27726 hourOptions: _react.PropTypes.array, 27325 hourOptions: _react.PropTypes.array,
27727 minuteOptions: _react.PropTypes.array, 27326 minuteOptions: _react.PropTypes.array,
27728 secondOptions: _react.PropTypes.array, 27327 secondOptions: _react.PropTypes.array,
27729 onChange: _react.PropTypes.func, 27328 onChange: _react.PropTypes.func,
27329 onEsc: _react.PropTypes.func,
27330 allowEmpty: _react.PropTypes.bool,
27331 showHour: _react.PropTypes.bool,
27332 showSecond: _react.PropTypes.bool,
27730 onClear: _react.PropTypes.func 27333 onClear: _react.PropTypes.func
27731 }, 27334 },
27732 27335
@@ -27743,26 +27346,11 @@ webpackJsonp([0,1],[
27743 }, 27346 },
27744 27347
27745 getInitialState: function getInitialState() { 27348 getInitialState: function getInitialState() {
27746 var value = this.props.value;
27747 if (!value) {
27748 value = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']);
27749 value.setTime(Date.now());
27750 }
27751 return { 27349 return {
27752 value: value 27350 value: this.props.value
27753 }; 27351 };
27754 }, 27352 },
27755 27353
27756 componentWillMount: function componentWillMount() {
27757 var formatter = this.props.formatter;
27758 var pattern = formatter.originalPattern;
27759 if (pattern === 'HH:mm') {
27760 this.showSecond = false;
27761 } else if (pattern === 'mm:ss') {
27762 this.showHour = false;
27763 }
27764 },
27765
27766 componentWillReceiveProps: function componentWillReceiveProps(nextProps) { 27354 componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
27767 var value = nextProps.value; 27355 var value = nextProps.value;
27768 if (value) { 27356 if (value) {
@@ -27781,9 +27369,6 @@ webpackJsonp([0,1],[
27781 this.props.onClear(); 27369 this.props.onClear();
27782 }, 27370 },
27783 27371
27784 showHour: true,
27785 showSecond: true,
27786
27787 render: function render() { 27372 render: function render() {
27788 var _props = this.props; 27373 var _props = this.props;
27789 var locale = _props.locale; 27374 var locale = _props.locale;
@@ -27792,34 +27377,39 @@ webpackJsonp([0,1],[
27792 var hourOptions = _props.hourOptions; 27377 var hourOptions = _props.hourOptions;
27793 var minuteOptions = _props.minuteOptions; 27378 var minuteOptions = _props.minuteOptions;
27794 var secondOptions = _props.secondOptions; 27379 var secondOptions = _props.secondOptions;
27380 var allowEmpty = _props.allowEmpty;
27381 var showHour = _props.showHour;
27382 var showSecond = _props.showSecond;
27383 var formatter = _props.formatter;
27384 var gregorianCalendarLocale = _props.gregorianCalendarLocale;
27795 27385
27796 var value = this.state.value; 27386 var value = this.state.value;
27797 var cls = (0, _classnames2['default'])({ 'narrow': !this.showHour || !this.showSecond });
27798
27799 return _react2['default'].createElement( 27387 return _react2['default'].createElement(
27800 'div', 27388 'div',
27801 { className: prefixCls + '-panel-inner ' + cls }, 27389 { className: prefixCls + '-inner' },
27802 _react2['default'].createElement(_Header2['default'], { 27390 _react2['default'].createElement(_Header2['default'], {
27803 prefixCls: prefixCls, 27391 prefixCls: prefixCls,
27804 gregorianTimePickerLocale: value.locale, 27392 gregorianCalendarLocale: gregorianCalendarLocale,
27805 locale: locale, 27393 locale: locale,
27806 value: value, 27394 value: value,
27807 formatter: this.getFormatter(), 27395 onEsc: this.props.onEsc,
27396 formatter: formatter,
27808 placeholder: placeholder, 27397 placeholder: placeholder,
27809 hourOptions: hourOptions, 27398 hourOptions: hourOptions,
27810 minuteOptions: minuteOptions, 27399 minuteOptions: minuteOptions,
27811 secondOptions: secondOptions, 27400 secondOptions: secondOptions,
27812 onChange: this.onChange, 27401 onChange: this.onChange,
27813 onClear: this.onClear, 27402 onClear: this.onClear,
27814 showClear: true 27403 allowEmpty: allowEmpty
27815 }), 27404 }),
27816 _react2['default'].createElement(_Combobox2['default'], { 27405 _react2['default'].createElement(_Combobox2['default'], {
27817 prefixCls: prefixCls, 27406 prefixCls: prefixCls,
27818 value: value, 27407 value: value,
27819 formatter: this.getFormatter(), 27408 gregorianCalendarLocale: gregorianCalendarLocale,
27409 formatter: formatter,
27820 onChange: this.onChange, 27410 onChange: this.onChange,
27821 showHour: this.showHour, 27411 showHour: showHour,
27822 showSecond: this.showSecond, 27412 showSecond: showSecond,
27823 hourOptions: hourOptions, 27413 hourOptions: hourOptions,
27824 minuteOptions: minuteOptions, 27414 minuteOptions: minuteOptions,
27825 secondOptions: secondOptions 27415 secondOptions: secondOptions
@@ -27832,7 +27422,7 @@ webpackJsonp([0,1],[
27832 module.exports = exports['default']; 27422 module.exports = exports['default'];
27833 27423
27834/***/ }, 27424/***/ },
27835/* 230 */ 27425/* 220 */
27836/***/ function(module, exports, __webpack_require__) { 27426/***/ function(module, exports, __webpack_require__) {
27837 27427
27838 'use strict'; 27428 'use strict';
@@ -27845,12 +27435,10 @@ webpackJsonp([0,1],[
27845 27435
27846 var _react = __webpack_require__(3); 27436 var _react = __webpack_require__(3);
27847 27437
27848 var _localeEn_US = __webpack_require__(231); 27438 var _localeEn_US = __webpack_require__(221);
27849 27439
27850 var _localeEn_US2 = _interopRequireDefault(_localeEn_US); 27440 var _localeEn_US2 = _interopRequireDefault(_localeEn_US);
27851 27441
27852 var _utilIndex = __webpack_require__(232);
27853
27854 exports['default'] = { 27442 exports['default'] = {
27855 propTypes: { 27443 propTypes: {
27856 prefixCls: _react.PropTypes.string, 27444 prefixCls: _react.PropTypes.string,
@@ -27862,41 +27450,12 @@ webpackJsonp([0,1],[
27862 prefixCls: 'rc-time-picker', 27450 prefixCls: 'rc-time-picker',
27863 locale: _localeEn_US2['default'] 27451 locale: _localeEn_US2['default']
27864 }; 27452 };
27865 },
27866
27867 getFormatter: function getFormatter() {
27868 var formatter = this.props.formatter;
27869 var locale = this.props.locale;
27870 if (formatter) {
27871 if (formatter === this.lastFormatter) {
27872 return this.normalFormatter;
27873 }
27874 this.normalFormatter = (0, _utilIndex.getFormatter)(formatter, locale);
27875 this.lastFormatter = formatter;
27876 return this.normalFormatter;
27877 }
27878 if (!this.showSecond) {
27879 if (!this.notShowSecondFormatter) {
27880 this.notShowSecondFormatter = (0, _utilIndex.getFormatter)('HH:mm', locale);
27881 }
27882 return this.notShowSecondFormatter;
27883 }
27884 if (!this.showHour) {
27885 if (!this.notShowHourFormatter) {
27886 this.notShowHourFormatter = (0, _utilIndex.getFormatter)('mm:ss', locale);
27887 }
27888 return this.notShowHourFormatter;
27889 }
27890 if (!this.normalFormatter) {
27891 this.normalFormatter = (0, _utilIndex.getFormatter)('HH:mm:ss', locale);
27892 }
27893 return this.normalFormatter;
27894 } 27453 }
27895 }; 27454 };
27896 module.exports = exports['default']; 27455 module.exports = exports['default'];
27897 27456
27898/***/ }, 27457/***/ },
27899/* 231 */ 27458/* 221 */
27900/***/ function(module, exports, __webpack_require__) { 27459/***/ function(module, exports, __webpack_require__) {
27901 27460
27902 'use strict'; 27461 'use strict';
@@ -27918,31 +27477,7 @@ webpackJsonp([0,1],[
27918 module.exports = exports['default']; 27477 module.exports = exports['default'];
27919 27478
27920/***/ }, 27479/***/ },
27921/* 232 */ 27480/* 222 */
27922/***/ function(module, exports, __webpack_require__) {
27923
27924 'use strict';
27925
27926 Object.defineProperty(exports, '__esModule', {
27927 value: true
27928 });
27929 exports.getFormatter = getFormatter;
27930
27931 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27932
27933 var _gregorianCalendarFormat = __webpack_require__(165);
27934
27935 var _gregorianCalendarFormat2 = _interopRequireDefault(_gregorianCalendarFormat);
27936
27937 function getFormatter(format, locale) {
27938 if (typeof format === 'string') {
27939 return new _gregorianCalendarFormat2['default'](format, locale.format);
27940 }
27941 return format;
27942 }
27943
27944/***/ },
27945/* 233 */
27946/***/ function(module, exports, __webpack_require__) { 27481/***/ function(module, exports, __webpack_require__) {
27947 27482
27948 'use strict'; 27483 'use strict';
@@ -27963,7 +27498,7 @@ webpackJsonp([0,1],[
27963 propTypes: { 27498 propTypes: {
27964 formatter: _react.PropTypes.object, 27499 formatter: _react.PropTypes.object,
27965 prefixCls: _react.PropTypes.string, 27500 prefixCls: _react.PropTypes.string,
27966 gregorianTimePickerLocale: _react.PropTypes.object, 27501 gregorianCalendarLocale: _react.PropTypes.object,
27967 locale: _react.PropTypes.object, 27502 locale: _react.PropTypes.object,
27968 disabledDate: _react.PropTypes.func, 27503 disabledDate: _react.PropTypes.func,
27969 placeholder: _react.PropTypes.string, 27504 placeholder: _react.PropTypes.string,
@@ -27973,7 +27508,8 @@ webpackJsonp([0,1],[
27973 secondOptions: _react.PropTypes.array, 27508 secondOptions: _react.PropTypes.array,
27974 onChange: _react.PropTypes.func, 27509 onChange: _react.PropTypes.func,
27975 onClear: _react.PropTypes.func, 27510 onClear: _react.PropTypes.func,
27976 showClear: _react.PropTypes.bool 27511 onEsc: _react.PropTypes.func,
27512 allowEmpty: _react.PropTypes.bool
27977 }, 27513 },
27978 27514
27979 getInitialState: function getInitialState() { 27515 getInitialState: function getInitialState() {
@@ -27984,6 +27520,14 @@ webpackJsonp([0,1],[
27984 }; 27520 };
27985 }, 27521 },
27986 27522
27523 componentDidMount: function componentDidMount() {
27524 var _this = this;
27525
27526 this.timer = setTimeout(function () {
27527 _this.refs.input.focus();
27528 }, 0);
27529 },
27530
27987 componentWillReceiveProps: function componentWillReceiveProps(nextProps) { 27531 componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
27988 var value = nextProps.value; 27532 var value = nextProps.value;
27989 this.setState({ 27533 this.setState({
@@ -27992,6 +27536,10 @@ webpackJsonp([0,1],[
27992 }); 27536 });
27993 }, 27537 },
27994 27538
27539 componentWillUnmount: function componentWillUnmount() {
27540 clearTimeout(this.timer);
27541 },
27542
27995 onInputChange: function onInputChange(event) { 27543 onInputChange: function onInputChange(event) {
27996 var str = event.target.value; 27544 var str = event.target.value;
27997 this.setState({ 27545 this.setState({
@@ -28000,17 +27548,18 @@ webpackJsonp([0,1],[
28000 var value = null; 27548 var value = null;
28001 var _props = this.props; 27549 var _props = this.props;
28002 var formatter = _props.formatter; 27550 var formatter = _props.formatter;
28003 var gregorianTimePickerLocale = _props.gregorianTimePickerLocale; 27551 var gregorianCalendarLocale = _props.gregorianCalendarLocale;
28004 var hourOptions = _props.hourOptions; 27552 var hourOptions = _props.hourOptions;
28005 var minuteOptions = _props.minuteOptions; 27553 var minuteOptions = _props.minuteOptions;
28006 var secondOptions = _props.secondOptions; 27554 var secondOptions = _props.secondOptions;
28007 var onChange = _props.onChange; 27555 var onChange = _props.onChange;
27556 var allowEmpty = _props.allowEmpty;
28008 27557
28009 if (str) { 27558 if (str) {
28010 var originalValue = this.props.value; 27559 var originalValue = this.props.value;
28011 try { 27560 try {
28012 value = formatter.parse(str, { 27561 value = formatter.parse(str, {
28013 locale: gregorianTimePickerLocale, 27562 locale: gregorianCalendarLocale,
28014 obeyCount: true 27563 obeyCount: true
28015 }); 27564 });
28016 } catch (ex) { 27565 } catch (ex) {
@@ -28041,8 +27590,13 @@ webpackJsonp([0,1],[
28041 }); 27590 });
28042 return; 27591 return;
28043 } 27592 }
28044 } else { 27593 } else if (allowEmpty) {
28045 onChange(null); 27594 onChange(null);
27595 } else {
27596 this.setState({
27597 invalid: true
27598 });
27599 return;
28046 } 27600 }
28047 27601
28048 this.setState({ 27602 this.setState({
@@ -28050,6 +27604,12 @@ webpackJsonp([0,1],[
28050 }); 27604 });
28051 }, 27605 },
28052 27606
27607 onKeyDown: function onKeyDown(e) {
27608 if (e.keyCode === 27) {
27609 this.props.onEsc();
27610 }
27611 },
27612
28053 onClear: function onClear() { 27613 onClear: function onClear() {
28054 this.setState({ str: '' }); 27614 this.setState({ str: '' });
28055 this.props.onClear(); 27615 this.props.onClear();
@@ -28059,9 +27619,9 @@ webpackJsonp([0,1],[
28059 var _props2 = this.props; 27619 var _props2 = this.props;
28060 var locale = _props2.locale; 27620 var locale = _props2.locale;
28061 var prefixCls = _props2.prefixCls; 27621 var prefixCls = _props2.prefixCls;
28062 var showClear = _props2.showClear; 27622 var allowEmpty = _props2.allowEmpty;
28063 27623
28064 if (!showClear) { 27624 if (!allowEmpty) {
28065 return null; 27625 return null;
28066 } 27626 }
28067 return _react2['default'].createElement('a', { className: prefixCls + '-clear-btn', role: 'button', title: locale.clear, onMouseDown: this.onClear }); 27627 return _react2['default'].createElement('a', { className: prefixCls + '-clear-btn', role: 'button', title: locale.clear, onMouseDown: this.onClear });
@@ -28076,7 +27636,11 @@ webpackJsonp([0,1],[
28076 var str = _state.str; 27636 var str = _state.str;
28077 27637
28078 var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; 27638 var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
28079 return _react2['default'].createElement('input', { className: prefixCls + '-input ' + invalidClass, value: str, placeholder: placeholder, onChange: this.onInputChange }); 27639 return _react2['default'].createElement('input', { className: prefixCls + '-input ' + invalidClass,
27640 ref: 'input',
27641 onKeyDown: this.onKeyDown,
27642 value: str,
27643 placeholder: placeholder, onChange: this.onInputChange });
28080 }, 27644 },
28081 27645
28082 render: function render() { 27646 render: function render() {
@@ -28095,7 +27659,7 @@ webpackJsonp([0,1],[
28095 module.exports = exports['default']; 27659 module.exports = exports['default'];
28096 27660
28097/***/ }, 27661/***/ },
28098/* 234 */ 27662/* 223 */
28099/***/ function(module, exports, __webpack_require__) { 27663/***/ function(module, exports, __webpack_require__) {
28100 27664
28101 'use strict'; 27665 'use strict';
@@ -28110,10 +27674,14 @@ webpackJsonp([0,1],[
28110 27674
28111 var _react2 = _interopRequireDefault(_react); 27675 var _react2 = _interopRequireDefault(_react);
28112 27676
28113 var _Select = __webpack_require__(235); 27677 var _Select = __webpack_require__(224);
28114 27678
28115 var _Select2 = _interopRequireDefault(_Select); 27679 var _Select2 = _interopRequireDefault(_Select);
28116 27680
27681 var _gregorianCalendar = __webpack_require__(161);
27682
27683 var _gregorianCalendar2 = _interopRequireDefault(_gregorianCalendar);
27684
28117 var formatOption = function formatOption(option) { 27685 var formatOption = function formatOption(option) {
28118 if (option < 10) { 27686 if (option < 10) {
28119 return '0' + option; 27687 return '0' + option;
@@ -28130,6 +27698,7 @@ webpackJsonp([0,1],[
28130 value: _react.PropTypes.object, 27698 value: _react.PropTypes.object,
28131 onChange: _react.PropTypes.func, 27699 onChange: _react.PropTypes.func,
28132 showHour: _react.PropTypes.bool, 27700 showHour: _react.PropTypes.bool,
27701 gregorianCalendarLocale: _react.PropTypes.object,
28133 showSecond: _react.PropTypes.bool, 27702 showSecond: _react.PropTypes.bool,
28134 hourOptions: _react.PropTypes.array, 27703 hourOptions: _react.PropTypes.array,
28135 minuteOptions: _react.PropTypes.array, 27704 minuteOptions: _react.PropTypes.array,
@@ -28137,10 +27706,14 @@ webpackJsonp([0,1],[
28137 }, 27706 },
28138 27707
28139 onItemChange: function onItemChange(type, itemValue) { 27708 onItemChange: function onItemChange(type, itemValue) {
28140 var _props = this.props; 27709 var onChange = this.props.onChange;
28141 var value = _props.value;
28142 var onChange = _props.onChange;
28143 27710
27711 var value = this.props.value;
27712 if (value) {
27713 value = value.clone();
27714 } else {
27715 value = this.getNow().clone();
27716 }
28144 if (type === 'hour') { 27717 if (type === 'hour') {
28145 value.setHourOfDay(itemValue); 27718 value.setHourOfDay(itemValue);
28146 } else if (type === 'minute') { 27719 } else if (type === 'minute') {
@@ -28152,10 +27725,10 @@ webpackJsonp([0,1],[
28152 }, 27725 },
28153 27726
28154 getHourSelect: function getHourSelect(hour) { 27727 getHourSelect: function getHourSelect(hour) {
28155 var _props2 = this.props; 27728 var _props = this.props;
28156 var prefixCls = _props2.prefixCls; 27729 var prefixCls = _props.prefixCls;
28157 var hourOptions = _props2.hourOptions; 27730 var hourOptions = _props.hourOptions;
28158 var showHour = _props2.showHour; 27731 var showHour = _props.showHour;
28159 27732
28160 if (!showHour) { 27733 if (!showHour) {
28161 return null; 27734 return null;
@@ -28172,9 +27745,9 @@ webpackJsonp([0,1],[
28172 }, 27745 },
28173 27746
28174 getMinuteSelect: function getMinuteSelect(minute) { 27747 getMinuteSelect: function getMinuteSelect(minute) {
28175 var _props3 = this.props; 27748 var _props2 = this.props;
28176 var prefixCls = _props3.prefixCls; 27749 var prefixCls = _props2.prefixCls;
28177 var minuteOptions = _props3.minuteOptions; 27750 var minuteOptions = _props2.minuteOptions;
28178 27751
28179 return _react2['default'].createElement(_Select2['default'], { 27752 return _react2['default'].createElement(_Select2['default'], {
28180 prefixCls: prefixCls, 27753 prefixCls: prefixCls,
@@ -28188,10 +27761,10 @@ webpackJsonp([0,1],[
28188 }, 27761 },
28189 27762
28190 getSectionSelect: function getSectionSelect(second) { 27763 getSectionSelect: function getSectionSelect(second) {
28191 var _props4 = this.props; 27764 var _props3 = this.props;
28192 var prefixCls = _props4.prefixCls; 27765 var prefixCls = _props3.prefixCls;
28193 var secondOptions = _props4.secondOptions; 27766 var secondOptions = _props3.secondOptions;
28194 var showSecond = _props4.showSecond; 27767 var showSecond = _props3.showSecond;
28195 27768
28196 if (!showSecond) { 27769 if (!showSecond) {
28197 return null; 27770 return null;
@@ -28207,11 +27780,20 @@ webpackJsonp([0,1],[
28207 }); 27780 });
28208 }, 27781 },
28209 27782
27783 getNow: function getNow() {
27784 if (this.showNow) {
27785 return this.showNow;
27786 }
27787 var value = new _gregorianCalendar2['default'](this.props.gregorianCalendarLocale);
27788 value.setTime(Date.now());
27789 this.showNow = value;
27790 return value;
27791 },
27792
28210 render: function render() { 27793 render: function render() {
28211 var _props5 = this.props; 27794 var prefixCls = this.props.prefixCls;
28212 var prefixCls = _props5.prefixCls;
28213 var value = _props5.value;
28214 27795
27796 var value = this.props.value || this.getNow();
28215 return _react2['default'].createElement( 27797 return _react2['default'].createElement(
28216 'div', 27798 'div',
28217 { className: prefixCls + '-combobox' }, 27799 { className: prefixCls + '-combobox' },
@@ -28226,7 +27808,7 @@ webpackJsonp([0,1],[
28226 module.exports = exports['default']; 27808 module.exports = exports['default'];
28227 27809
28228/***/ }, 27810/***/ },
28229/* 235 */ 27811/* 224 */
28230/***/ function(module, exports, __webpack_require__) { 27812/***/ function(module, exports, __webpack_require__) {
28231 27813
28232 'use strict'; 27814 'use strict';
@@ -28237,6 +27819,8 @@ webpackJsonp([0,1],[
28237 27819
28238 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 27820 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
28239 27821
27822 function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27823
28240 var _react = __webpack_require__(3); 27824 var _react = __webpack_require__(3);
28241 27825
28242 var _react2 = _interopRequireDefault(_react); 27826 var _react2 = _interopRequireDefault(_react);
@@ -28245,11 +27829,14 @@ webpackJsonp([0,1],[
28245 27829
28246 var _reactDom2 = _interopRequireDefault(_reactDom); 27830 var _reactDom2 = _interopRequireDefault(_reactDom);
28247 27831
28248 var _classnames = __webpack_require__(177); 27832 var _classnames2 = __webpack_require__(178);
28249 27833
28250 var _classnames2 = _interopRequireDefault(_classnames); 27834 var _classnames3 = _interopRequireDefault(_classnames2);
28251 27835
28252 var scrollTo = function scrollTo(element, to, duration) { 27836 var scrollTo = function scrollTo(element, to, duration) {
27837 var requestAnimationFrame = window.requestAnimationFrame || function requestAnimationFrameTimeout() {
27838 return setTimeout(arguments[0], 10);
27839 };
28253 // jump to target if duration zero 27840 // jump to target if duration zero
28254 if (duration <= 0) { 27841 if (duration <= 0) {
28255 element.scrollTop = to; 27842 element.scrollTop = to;
@@ -28258,11 +27845,11 @@ webpackJsonp([0,1],[
28258 var difference = to - element.scrollTop; 27845 var difference = to - element.scrollTop;
28259 var perTick = difference / duration * 10; 27846 var perTick = difference / duration * 10;
28260 27847
28261 setTimeout(function () { 27848 requestAnimationFrame(function () {
28262 element.scrollTop = element.scrollTop + perTick; 27849 element.scrollTop = element.scrollTop + perTick;
28263 if (element.scrollTop === to) return; 27850 if (element.scrollTop === to) return;
28264 scrollTo(element, to, duration - 10); 27851 scrollTo(element, to, duration - 10);
28265 }, 10); 27852 });
28266 }; 27853 };
28267 27854
28268 var Select = _react2['default'].createClass({ 27855 var Select = _react2['default'].createClass({
@@ -28271,6 +27858,7 @@ webpackJsonp([0,1],[
28271 propTypes: { 27858 propTypes: {
28272 prefixCls: _react.PropTypes.string, 27859 prefixCls: _react.PropTypes.string,
28273 options: _react.PropTypes.array, 27860 options: _react.PropTypes.array,
27861 gregorianCalendarLocale: _react.PropTypes.object,
28274 selectedIndex: _react.PropTypes.number, 27862 selectedIndex: _react.PropTypes.number,
28275 type: _react.PropTypes.string, 27863 type: _react.PropTypes.string,
28276 onSelect: _react.PropTypes.func 27864 onSelect: _react.PropTypes.func
@@ -28283,20 +27871,14 @@ webpackJsonp([0,1],[
28283 27871
28284 componentDidUpdate: function componentDidUpdate() { 27872 componentDidUpdate: function componentDidUpdate() {
28285 // smooth scroll to selected option 27873 // smooth scroll to selected option
28286 this.scrollToSelected(200); 27874 this.scrollToSelected(120);
28287 }, 27875 },
28288 27876
28289 onSelect: function onSelect(event) { 27877 onSelect: function onSelect(value) {
28290 // do nothing when select selected option
28291 if (event.target.getAttribute('class') === 'selected') {
28292 return;
28293 }
28294 // change combobox selection
28295 var _props = this.props; 27878 var _props = this.props;
28296 var onSelect = _props.onSelect; 27879 var onSelect = _props.onSelect;
28297 var type = _props.type; 27880 var type = _props.type;
28298 27881
28299 var value = parseInt(event.target.innerHTML, 10);
28300 onSelect(type, value); 27882 onSelect(type, value);
28301 }, 27883 },
28302 27884
@@ -28306,13 +27888,14 @@ webpackJsonp([0,1],[
28306 var _props2 = this.props; 27888 var _props2 = this.props;
28307 var options = _props2.options; 27889 var options = _props2.options;
28308 var selectedIndex = _props2.selectedIndex; 27890 var selectedIndex = _props2.selectedIndex;
27891 var prefixCls = _props2.prefixCls;
28309 27892
28310 return options.map(function (item, index) { 27893 return options.map(function (item, index) {
28311 var cls = (0, _classnames2['default'])({ selected: selectedIndex === index }); 27894 var selected = selectedIndex === index;
28312 var ref = selectedIndex === index ? 'selected' : null; 27895 var cls = (0, _classnames3['default'])(_defineProperty({}, prefixCls + '-select-option-selected', selected));
28313 return _react2['default'].createElement( 27896 return _react2['default'].createElement(
28314 'li', 27897 'li',
28315 { ref: ref, className: cls, key: index, onClick: _this.onSelect }, 27898 { className: cls, key: index, onClick: _this.onSelect.bind(_this, +item) },
28316 item 27899 item
28317 ); 27900 );
28318 }); 27901 });
@@ -28322,7 +27905,7 @@ webpackJsonp([0,1],[
28322 // move to selected item 27905 // move to selected item
28323 var select = _reactDom2['default'].findDOMNode(this); 27906 var select = _reactDom2['default'].findDOMNode(this);
28324 var list = _reactDom2['default'].findDOMNode(this.refs.list); 27907 var list = _reactDom2['default'].findDOMNode(this.refs.list);
28325 var index = this.props.selectedIndex - 2; 27908 var index = this.props.selectedIndex - 1;
28326 if (index < 0) { 27909 if (index < 0) {
28327 index = 0; 27910 index = 0;
28328 } 27911 }
@@ -28354,7 +27937,7 @@ webpackJsonp([0,1],[
28354 module.exports = exports['default']; 27937 module.exports = exports['default'];
28355 27938
28356/***/ }, 27939/***/ },
28357/* 236 */ 27940/* 225 */
28358/***/ function(module, exports) { 27941/***/ function(module, exports) {
28359 27942
28360 'use strict'; 27943 'use strict';
@@ -28400,7 +27983,31 @@ webpackJsonp([0,1],[
28400 module.exports = exports['default']; 27983 module.exports = exports['default'];
28401 27984
28402/***/ }, 27985/***/ },
28403/* 237 */ 27986/* 226 */
27987/***/ function(module, exports, __webpack_require__) {
27988
27989 'use strict';
27990
27991 Object.defineProperty(exports, '__esModule', {
27992 value: true
27993 });
27994 exports.getFormatter = getFormatter;
27995
27996 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27997
27998 var _gregorianCalendarFormat = __webpack_require__(165);
27999
28000 var _gregorianCalendarFormat2 = _interopRequireDefault(_gregorianCalendarFormat);
28001
28002 function getFormatter(format, locale) {
28003 if (typeof format === 'string') {
28004 return new _gregorianCalendarFormat2['default'](format, locale.format);
28005 }
28006 return format;
28007 }
28008
28009/***/ },
28010/* 227 */
28404/***/ function(module, exports, __webpack_require__) { 28011/***/ function(module, exports, __webpack_require__) {
28405 28012
28406 'use strict'; 28013 'use strict';
@@ -28411,7 +28018,7 @@ webpackJsonp([0,1],[
28411 28018
28412 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 28019 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
28413 28020
28414 var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(238); 28021 var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(228);
28415 28022
28416 var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN); 28023 var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN);
28417 28024
@@ -28422,7 +28029,7 @@ webpackJsonp([0,1],[
28422 module.exports = exports['default']; 28029 module.exports = exports['default'];
28423 28030
28424/***/ }, 28031/***/ },
28425/* 238 */ 28032/* 228 */
28426/***/ function(module, exports) { 28033/***/ function(module, exports) {
28427 28034
28428 'use strict'; 28035 'use strict';