aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pick-time.js
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2015-12-04 22:36:31 +0800
committerafc163 <afc163@gmail.com>2015-12-04 22:36:31 +0800
commitc1e0e40b2dfc15d0f88a16a966d8e50f5de495de (patch)
treeff446b2aabddb4209aac29aa56f0eff89dc63912 /examples/pick-time.js
parentdca68b5030302ed1943ee6dcd6b0968dc570e650 (diff)
downloadtime-picker-c1e0e40b2dfc15d0f88a16a966d8e50f5de495de.tar.gz
time-picker-c1e0e40b2dfc15d0f88a16a966d8e50f5de495de.tar.zst
time-picker-c1e0e40b2dfc15d0f88a16a966d8e50f5de495de.zip
Updates
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r--examples/pick-time.js2720
1 files changed, 1559 insertions, 1161 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js
index caf4aae..bc95f7d 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -39,14 +39,11 @@ webpackJsonp([0,1],[
39 39
40 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); 40 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker);
41 41
42 var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(227); 42 var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(237);
43 43
44 var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN); 44 var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN);
45 45
46 var showSecond = true; 46 var formatter = new _gregorianCalendarFormat2['default']('HH:mm:ss');
47 var str = showSecond ? 'HH:mm:ss' : 'HH:mm';
48
49 var formatter = new _gregorianCalendarFormat2['default'](str);
50 47
51 var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); 48 var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']);
52 now.setTime(Date.now()); 49 now.setTime(Date.now());
@@ -55,12 +52,7 @@ webpackJsonp([0,1],[
55 console.log(value && formatter.format(value)); 52 console.log(value && formatter.format(value));
56 } 53 }
57 54
58 _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], 55 _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now, onChange: onChange }), document.getElementById('__react-content'));
59 showSecond: showSecond,
60 defaultValue: now,
61 onChange: onChange }), document.getElementById('__react-content'));
62
63 console.log(_gregorianCalendarLibLocaleZh_CN2['default']);
64 56
65/***/ }, 57/***/ },
66/* 2 */ 58/* 2 */
@@ -22258,28 +22250,28 @@ webpackJsonp([0,1],[
22258 22250
22259 var _react2 = _interopRequireDefault(_react); 22251 var _react2 = _interopRequireDefault(_react);
22260 22252
22253 var _reactDom = __webpack_require__(160);
22254
22255 var _reactDom2 = _interopRequireDefault(_reactDom);
22256
22261 var _rcTrigger = __webpack_require__(172); 22257 var _rcTrigger = __webpack_require__(172);
22262 22258
22263 var _rcTrigger2 = _interopRequireDefault(_rcTrigger); 22259 var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
22264 22260
22265 var _modulePanel = __webpack_require__(219); 22261 var _rcUtil = __webpack_require__(213);
22262
22263 var _modulePanel = __webpack_require__(229);
22266 22264
22267 var _modulePanel2 = _interopRequireDefault(_modulePanel); 22265 var _modulePanel2 = _interopRequireDefault(_modulePanel);
22268 22266
22269 var _utilPlacements = __webpack_require__(225); 22267 var _utilPlacements = __webpack_require__(236);
22270 22268
22271 var _utilPlacements2 = _interopRequireDefault(_utilPlacements); 22269 var _utilPlacements2 = _interopRequireDefault(_utilPlacements);
22272 22270
22273 var _mixinCommonMixin = __webpack_require__(220); 22271 var _mixinCommonMixin = __webpack_require__(230);
22274 22272
22275 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); 22273 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin);
22276 22274
22277 var _utilIndex = __webpack_require__(226);
22278
22279 var _gregorianCalendarLibLocaleEn_US = __webpack_require__(164);
22280
22281 var _gregorianCalendarLibLocaleEn_US2 = _interopRequireDefault(_gregorianCalendarLibLocaleEn_US);
22282
22283 function noop() {} 22275 function noop() {}
22284 22276
22285 function refFn(field, component) { 22277 function refFn(field, component) {
@@ -22291,23 +22283,18 @@ webpackJsonp([0,1],[
22291 22283
22292 propTypes: { 22284 propTypes: {
22293 prefixCls: _react.PropTypes.string, 22285 prefixCls: _react.PropTypes.string,
22286 inputClassName: _react.PropTypes.string,
22294 locale: _react.PropTypes.object, 22287 locale: _react.PropTypes.object,
22295 value: _react.PropTypes.object, 22288 value: _react.PropTypes.object,
22289 children: _react.PropTypes.func,
22296 disabled: _react.PropTypes.bool, 22290 disabled: _react.PropTypes.bool,
22297 allowEmpty: _react.PropTypes.bool,
22298 defaultValue: _react.PropTypes.object, 22291 defaultValue: _react.PropTypes.object,
22299 open: _react.PropTypes.bool, 22292 open: _react.PropTypes.bool,
22300 defaultOpen: _react.PropTypes.bool,
22301 align: _react.PropTypes.object, 22293 align: _react.PropTypes.object,
22302 placement: _react.PropTypes.any, 22294 placement: _react.PropTypes.any,
22303 transitionName: _react.PropTypes.string, 22295 transitionName: _react.PropTypes.string,
22304 getPopupContainer: _react.PropTypes.func,
22305 gregorianCalendarLocale: _react.PropTypes.object,
22306 placeholder: _react.PropTypes.string, 22296 placeholder: _react.PropTypes.string,
22307 formatter: _react.PropTypes.any, 22297 formatter: _react.PropTypes.object,
22308 showHour: _react.PropTypes.bool,
22309 style: _react.PropTypes.object,
22310 showSecond: _react.PropTypes.bool,
22311 hourOptions: _react.PropTypes.array, 22298 hourOptions: _react.PropTypes.array,
22312 minuteOptions: _react.PropTypes.array, 22299 minuteOptions: _react.PropTypes.array,
22313 secondOptions: _react.PropTypes.array, 22300 secondOptions: _react.PropTypes.array,
@@ -22320,13 +22307,8 @@ webpackJsonp([0,1],[
22320 22307
22321 getDefaultProps: function getDefaultProps() { 22308 getDefaultProps: function getDefaultProps() {
22322 return { 22309 return {
22323 defaultOpen: false, 22310 open: false,
22324 style: {},
22325 gregorianCalendarLocale: _gregorianCalendarLibLocaleEn_US2['default'],
22326 align: {}, 22311 align: {},
22327 allowEmpty: true,
22328 showHour: true,
22329 showSecond: true,
22330 placement: 'bottomLeft', 22312 placement: 'bottomLeft',
22331 onChange: noop, 22313 onChange: noop,
22332 onOpen: noop, 22314 onOpen: noop,
@@ -22337,16 +22319,13 @@ webpackJsonp([0,1],[
22337 getInitialState: function getInitialState() { 22319 getInitialState: function getInitialState() {
22338 this.savePanelRef = refFn.bind(this, 'panelInstance'); 22320 this.savePanelRef = refFn.bind(this, 'panelInstance');
22339 var _props = this.props; 22321 var _props = this.props;
22340 var defaultOpen = _props.defaultOpen; 22322 var open = _props.open;
22341 var defaultValue = _props.defaultValue; 22323 var defaultValue = _props.defaultValue;
22342 var _props$open = _props.open; 22324 var value = _props.value;
22343 var open = _props$open === undefined ? defaultOpen : _props$open;
22344 var _props$value = _props.value;
22345 var value = _props$value === undefined ? defaultValue : _props$value;
22346 22325
22347 return { 22326 return {
22348 open: open, 22327 open: open,
22349 value: value 22328 value: value || defaultValue
22350 }; 22329 };
22351 }, 22330 },
22352 22331
@@ -22374,18 +22353,14 @@ webpackJsonp([0,1],[
22374 }, 22353 },
22375 22354
22376 onVisibleChange: function onVisibleChange(open) { 22355 onVisibleChange: function onVisibleChange(open) {
22377 this.setOpen(open); 22356 var _this = this;
22378 },
22379
22380 onEsc: function onEsc() {
22381 this.setOpen(false);
22382 this.refs.picker.focus();
22383 },
22384 22357
22385 onKeyDown: function onKeyDown(e) { 22358 this.setOpen(open, function () {
22386 if (e.keyCode === 40) { 22359 if (open) {
22387 this.setOpen(true); 22360 _reactDom2['default'].findDOMNode(_this.refs.picker).blur();
22388 } 22361 _reactDom2['default'].findDOMNode(_this.panelInstance).focus();
22362 }
22363 });
22389 }, 22364 },
22390 22365
22391 setValue: function setValue(value) { 22366 setValue: function setValue(value) {
@@ -22397,72 +22372,22 @@ webpackJsonp([0,1],[
22397 this.props.onChange(value); 22372 this.props.onChange(value);
22398 }, 22373 },
22399 22374
22400 getFormatter: function getFormatter() { 22375 getPanel: function getPanel() {
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() {
22430 var _props2 = this.props; 22376 var _props2 = this.props;
22431 var prefixCls = _props2.prefixCls; 22377 var prefixCls = _props2.prefixCls;
22432 var defaultValue = _props2.defaultValue; 22378 var defaultValue = _props2.defaultValue;
22433 var locale = _props2.locale; 22379 var locale = _props2.locale;
22380 var formatter = _props2.formatter;
22434 var placeholder = _props2.placeholder; 22381 var placeholder = _props2.placeholder;
22435 var hourOptions = _props2.hourOptions; 22382 var hourOptions = _props2.hourOptions;
22436 var minuteOptions = _props2.minuteOptions; 22383 var minuteOptions = _props2.minuteOptions;
22437 var secondOptions = _props2.secondOptions; 22384 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;
22443 22385
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 }
22452 return _react2['default'].createElement(_modulePanel2['default'], { 22386 return _react2['default'].createElement(_modulePanel2['default'], {
22453 prefixCls: prefixCls + '-panel', 22387 prefixCls: prefixCls,
22454 ref: this.savePanelRef,
22455 value: this.state.value,
22456 onChange: this.onPanelChange,
22457 gregorianCalendarLocale: calendarLocale,
22458 onClear: this.onPanelClear,
22459 defaultValue: defaultValue, 22388 defaultValue: defaultValue,
22460 showHour: showHour,
22461 onEsc: this.onEsc,
22462 showSecond: showSecond,
22463 locale: locale, 22389 locale: locale,
22464 allowEmpty: allowEmpty, 22390 formatter: formatter,
22465 formatter: this.getFormatter(),
22466 placeholder: placeholder, 22391 placeholder: placeholder,
22467 hourOptions: hourOptions, 22392 hourOptions: hourOptions,
22468 minuteOptions: minuteOptions, 22393 minuteOptions: minuteOptions,
@@ -22470,6 +22395,18 @@ webpackJsonp([0,1],[
22470 }); 22395 });
22471 }, 22396 },
22472 22397
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
22473 setOpen: function setOpen(open, callback) { 22410 setOpen: function setOpen(open, callback) {
22474 var _props3 = this.props; 22411 var _props3 = this.props;
22475 var onOpen = _props3.onOpen; 22412 var onOpen = _props3.onOpen;
@@ -22498,42 +22435,31 @@ webpackJsonp([0,1],[
22498 var align = _props4.align; 22435 var align = _props4.align;
22499 var disabled = _props4.disabled; 22436 var disabled = _props4.disabled;
22500 var transitionName = _props4.transitionName; 22437 var transitionName = _props4.transitionName;
22501 var style = _props4.style; 22438 var formatter = _props4.formatter;
22502 var showHour = _props4.showHour; 22439 var inputClassName = _props4.inputClassName;
22503 var showSecond = _props4.showSecond;
22504 var getPopupContainer = _props4.getPopupContainer;
22505 var _state = this.state; 22440 var _state = this.state;
22506 var open = _state.open; 22441 var open = _state.open;
22507 var value = _state.value; 22442 var value = _state.value;
22508 22443
22509 var popupClassName = undefined;
22510 if (!showHour || !showSecond) {
22511 popupClassName = prefixCls + '-panel-narrow}';
22512 }
22513 return _react2['default'].createElement( 22444 return _react2['default'].createElement(
22514 _rcTrigger2['default'], 22445 _rcTrigger2['default'],
22515 { 22446 {
22516 prefixCls: prefixCls + '-panel', 22447 prefixCls: prefixCls + '-panel',
22517 popupClassName: popupClassName,
22518 popup: this.getPanelElement(), 22448 popup: this.getPanelElement(),
22519 popupAlign: align, 22449 popupAlign: align,
22520 builtinPlacements: _utilPlacements2['default'], 22450 builtinPlacements: _utilPlacements2['default'],
22521 popupPlacement: placement, 22451 popupPlacement: placement,
22522 action: disabled ? [] : ['click'], 22452 action: disabled ? [] : ['click'],
22523 destroyPopupOnHide: true, 22453 destroyPopupOnHide: true,
22524 getPopupContainer: getPopupContainer,
22525 popupTransitionName: transitionName, 22454 popupTransitionName: transitionName,
22526 popupVisible: open, 22455 popupVisible: open,
22527 onPopupVisibleChange: this.onVisibleChange 22456 onPopupVisibleChange: this.onVisibleChange
22528 }, 22457 },
22529 _react2['default'].createElement( 22458 _react2['default'].createElement(
22530 'span', 22459 'span',
22531 { className: '' + prefixCls, style: style }, 22460 { className: '' + prefixCls },
22532 _react2['default'].createElement('input', { className: prefixCls + '-input', 22461 _react2['default'].createElement('input', { className: inputClassName, ref: 'picker', type: 'text', placeholder: placeholder, readOnly: true,
22533 ref: 'picker', type: 'text', placeholder: placeholder, 22462 disabled: disabled, value: value && formatter.format(value) }),
22534 readOnly: true,
22535 onKeyDown: this.onKeyDown,
22536 disabled: disabled, value: value && this.getFormatter().format(value) }),
22537 _react2['default'].createElement('span', { className: prefixCls + '-icon' }) 22463 _react2['default'].createElement('span', { className: prefixCls + '-icon' })
22538 ) 22464 )
22539 ); 22465 );
@@ -22575,11 +22501,11 @@ webpackJsonp([0,1],[
22575 22501
22576 var _rcUtil = __webpack_require__(174); 22502 var _rcUtil = __webpack_require__(174);
22577 22503
22578 var _Popup = __webpack_require__(197); 22504 var _Popup = __webpack_require__(191);
22579 22505
22580 var _Popup2 = _interopRequireDefault(_Popup); 22506 var _Popup2 = _interopRequireDefault(_Popup);
22581 22507
22582 var _utils = __webpack_require__(218); 22508 var _utils = __webpack_require__(212);
22583 22509
22584 function noop() {} 22510 function noop() {}
22585 22511
@@ -22912,18 +22838,18 @@ webpackJsonp([0,1],[
22912 module.exports = { 22838 module.exports = {
22913 guid: __webpack_require__(175), 22839 guid: __webpack_require__(175),
22914 classSet: __webpack_require__(176), 22840 classSet: __webpack_require__(176),
22915 joinClasses: __webpack_require__(179), 22841 joinClasses: __webpack_require__(178),
22916 KeyCode: __webpack_require__(180), 22842 KeyCode: __webpack_require__(179),
22917 PureRenderMixin: __webpack_require__(181), 22843 PureRenderMixin: __webpack_require__(180),
22918 shallowEqual: __webpack_require__(182), 22844 shallowEqual: __webpack_require__(181),
22919 createChainedFunction: __webpack_require__(188), 22845 createChainedFunction: __webpack_require__(182),
22920 Dom: { 22846 Dom: {
22921 addEventListener: __webpack_require__(189), 22847 addEventListener: __webpack_require__(183),
22922 contains: __webpack_require__(194) 22848 contains: __webpack_require__(188)
22923 }, 22849 },
22924 Children: { 22850 Children: {
22925 toArray: __webpack_require__(195), 22851 toArray: __webpack_require__(189),
22926 mapSelf: __webpack_require__(196) 22852 mapSelf: __webpack_require__(190)
22927 } 22853 }
22928 }; 22854 };
22929 22855
@@ -22944,90 +22870,13 @@ webpackJsonp([0,1],[
22944 22870
22945 'use strict'; 22871 'use strict';
22946 22872
22947 var deprecate = __webpack_require__(177); 22873 module.exports = __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');
22951 22874
22952/***/ }, 22875/***/ },
22953/* 177 */ 22876/* 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 */
23028/***/ function(module, exports, __webpack_require__) { 22877/***/ function(module, exports, __webpack_require__) {
23029 22878
23030 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 22879 var __WEBPACK_AMD_DEFINE_RESULT__;/*!
23031 Copyright (c) 2015 Jed Watson. 22880 Copyright (c) 2015 Jed Watson.
23032 Licensed under the MIT License (MIT), see 22881 Licensed under the MIT License (MIT), see
23033 http://jedwatson.github.io/classnames 22882 http://jedwatson.github.io/classnames
@@ -23068,9 +22917,9 @@ webpackJsonp([0,1],[
23068 module.exports = classNames; 22917 module.exports = classNames;
23069 } else if (true) { 22918 } else if (true) {
23070 // register as 'classnames', consistent with npm package name 22919 // register as 'classnames', consistent with npm package name
23071 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { 22920 !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
23072 return classNames; 22921 return classNames;
23073 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 22922 }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
23074 } else { 22923 } else {
23075 window.classNames = classNames; 22924 window.classNames = classNames;
23076 } 22925 }
@@ -23078,18 +22927,41 @@ webpackJsonp([0,1],[
23078 22927
23079 22928
23080/***/ }, 22929/***/ },
23081/* 179 */ 22930/* 178 */
23082/***/ function(module, exports, __webpack_require__) { 22931/***/ function(module, exports) {
23083 22932
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
23084 'use strict'; 22941 'use strict';
23085 22942
23086 var deprecate = __webpack_require__(177); 22943 function joinClasses(cn) {
23087 var classNames = __webpack_require__(178); 22944 var className = cn;
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 }
23088 22960
23089 module.exports = deprecate(classNames, '`rcUtil.joinClasses()` is deprecated, use `classNames()` by `require(\'classnames\')` instead'); 22961 module.exports = joinClasses;
23090 22962
23091/***/ }, 22963/***/ },
23092/* 180 */ 22964/* 179 */
23093/***/ function(module, exports) { 22965/***/ function(module, exports) {
23094 22966
23095 /** 22967 /**
@@ -23614,12 +23486,12 @@ webpackJsonp([0,1],[
23614 module.exports = KeyCode; 23486 module.exports = KeyCode;
23615 23487
23616/***/ }, 23488/***/ },
23617/* 181 */ 23489/* 180 */
23618/***/ function(module, exports, __webpack_require__) { 23490/***/ function(module, exports, __webpack_require__) {
23619 23491
23620 'use strict'; 23492 'use strict';
23621 23493
23622 var shallowEqual = __webpack_require__(182); 23494 var shallowEqual = __webpack_require__(181);
23623 23495
23624 /** 23496 /**
23625 * If your React component's render function is "pure", e.g. it will render the 23497 * If your React component's render function is "pure", e.g. it will render the
@@ -23654,753 +23526,35 @@ webpackJsonp([0,1],[
23654 module.exports = ReactComponentWithPureRenderMixin; 23526 module.exports = ReactComponentWithPureRenderMixin;
23655 23527
23656/***/ }, 23528/***/ },
23657/* 182 */ 23529/* 181 */
23658/***/ function(module, exports, __webpack_require__) { 23530/***/ function(module, exports) {
23659
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 23531
23670 'use strict'; 23532 "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 }
23715 23533
23534 function shallowEqual(objA, objB) {
23535 if (objA === objB) {
23716 return true; 23536 return true;
23717 };
23718
23719/***/ },
23720/* 184 */
23721/***/ function(module, exports, __webpack_require__) {
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);
23839 }
23840 }
23841 return result;
23842 }
23843
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 } 23537 }
23904 return isObject(object) ? nativeKeys(object) : []; 23538 var key = undefined;
23905 }; 23539 // Test for A's keys different from B.
23906 23540 for (key in objA) {
23907 /** 23541 if (objA.hasOwnProperty(key) && (!objB.hasOwnProperty(key) || objA[key] !== objB[key])) {
23908 * Creates an array of the own and inherited enumerable property names of `object`. 23542 return false;
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);
23953 } 23543 }
23954 } 23544 }
23955 return result; 23545 // Test for B's keys missing from A.
23956 } 23546 for (key in objB) {
23957 23547 if (objB.hasOwnProperty(key) && !objA.hasOwnProperty(key)) {
23958 module.exports = keys; 23548 return false;
23959 23549 }
23960
23961/***/ },
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 } 23550 }
24396 return isObjectLike(value) && reIsHostCtor.test(value); 23551 return true;
24397 } 23552 }
24398 23553
24399 module.exports = isArray; 23554 module.exports = shallowEqual;
24400
24401 23555
24402/***/ }, 23556/***/ },
24403/* 188 */ 23557/* 182 */
24404/***/ function(module, exports) { 23558/***/ function(module, exports) {
24405 23559
24406 /** 23560 /**
@@ -24427,7 +23581,7 @@ webpackJsonp([0,1],[
24427 module.exports = createChainedFunction; 23581 module.exports = createChainedFunction;
24428 23582
24429/***/ }, 23583/***/ },
24430/* 189 */ 23584/* 183 */
24431/***/ function(module, exports, __webpack_require__) { 23585/***/ function(module, exports, __webpack_require__) {
24432 23586
24433 'use strict'; 23587 'use strict';
@@ -24439,7 +23593,7 @@ webpackJsonp([0,1],[
24439 23593
24440 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 23594 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
24441 23595
24442 var _addDomEventListener = __webpack_require__(190); 23596 var _addDomEventListener = __webpack_require__(184);
24443 23597
24444 var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); 23598 var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
24445 23599
@@ -24458,7 +23612,7 @@ webpackJsonp([0,1],[
24458 module.exports = exports['default']; 23612 module.exports = exports['default'];
24459 23613
24460/***/ }, 23614/***/ },
24461/* 190 */ 23615/* 184 */
24462/***/ function(module, exports, __webpack_require__) { 23616/***/ function(module, exports, __webpack_require__) {
24463 23617
24464 'use strict'; 23618 'use strict';
@@ -24470,7 +23624,7 @@ webpackJsonp([0,1],[
24470 23624
24471 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 23625 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
24472 23626
24473 var _EventObject = __webpack_require__(191); 23627 var _EventObject = __webpack_require__(185);
24474 23628
24475 var _EventObject2 = _interopRequireDefault(_EventObject); 23629 var _EventObject2 = _interopRequireDefault(_EventObject);
24476 23630
@@ -24500,7 +23654,7 @@ webpackJsonp([0,1],[
24500 module.exports = exports['default']; 23654 module.exports = exports['default'];
24501 23655
24502/***/ }, 23656/***/ },
24503/* 191 */ 23657/* 185 */
24504/***/ function(module, exports, __webpack_require__) { 23658/***/ function(module, exports, __webpack_require__) {
24505 23659
24506 /** 23660 /**
@@ -24517,11 +23671,11 @@ webpackJsonp([0,1],[
24517 23671
24518 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 23672 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
24519 23673
24520 var _EventBaseObject = __webpack_require__(192); 23674 var _EventBaseObject = __webpack_require__(186);
24521 23675
24522 var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject); 23676 var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
24523 23677
24524 var _objectAssign = __webpack_require__(193); 23678 var _objectAssign = __webpack_require__(187);
24525 23679
24526 var _objectAssign2 = _interopRequireDefault(_objectAssign); 23680 var _objectAssign2 = _interopRequireDefault(_objectAssign);
24527 23681
@@ -24783,7 +23937,7 @@ webpackJsonp([0,1],[
24783 module.exports = exports['default']; 23937 module.exports = exports['default'];
24784 23938
24785/***/ }, 23939/***/ },
24786/* 192 */ 23940/* 186 */
24787/***/ function(module, exports) { 23941/***/ function(module, exports) {
24788 23942
24789 /** 23943 /**
@@ -24851,7 +24005,7 @@ webpackJsonp([0,1],[
24851 module.exports = exports["default"]; 24005 module.exports = exports["default"];
24852 24006
24853/***/ }, 24007/***/ },
24854/* 193 */ 24008/* 187 */
24855/***/ function(module, exports) { 24009/***/ function(module, exports) {
24856 24010
24857 /* eslint-disable no-unused-vars */ 24011 /* eslint-disable no-unused-vars */
@@ -24896,7 +24050,7 @@ webpackJsonp([0,1],[
24896 24050
24897 24051
24898/***/ }, 24052/***/ },
24899/* 194 */ 24053/* 188 */
24900/***/ function(module, exports) { 24054/***/ function(module, exports) {
24901 24055
24902 "use strict"; 24056 "use strict";
@@ -24914,7 +24068,7 @@ webpackJsonp([0,1],[
24914 }; 24068 };
24915 24069
24916/***/ }, 24070/***/ },
24917/* 195 */ 24071/* 189 */
24918/***/ function(module, exports, __webpack_require__) { 24072/***/ function(module, exports, __webpack_require__) {
24919 24073
24920 'use strict'; 24074 'use strict';
@@ -24930,7 +24084,7 @@ webpackJsonp([0,1],[
24930 }; 24084 };
24931 24085
24932/***/ }, 24086/***/ },
24933/* 196 */ 24087/* 190 */
24934/***/ function(module, exports, __webpack_require__) { 24088/***/ function(module, exports, __webpack_require__) {
24935 24089
24936 'use strict'; 24090 'use strict';
@@ -24947,7 +24101,7 @@ webpackJsonp([0,1],[
24947 }; 24101 };
24948 24102
24949/***/ }, 24103/***/ },
24950/* 197 */ 24104/* 191 */
24951/***/ function(module, exports, __webpack_require__) { 24105/***/ function(module, exports, __webpack_require__) {
24952 24106
24953 'use strict'; 24107 'use strict';
@@ -24966,15 +24120,15 @@ webpackJsonp([0,1],[
24966 24120
24967 var _reactDom2 = _interopRequireDefault(_reactDom); 24121 var _reactDom2 = _interopRequireDefault(_reactDom);
24968 24122
24969 var _rcAlign = __webpack_require__(198); 24123 var _rcAlign = __webpack_require__(192);
24970 24124
24971 var _rcAlign2 = _interopRequireDefault(_rcAlign); 24125 var _rcAlign2 = _interopRequireDefault(_rcAlign);
24972 24126
24973 var _rcAnimate = __webpack_require__(209); 24127 var _rcAnimate = __webpack_require__(203);
24974 24128
24975 var _rcAnimate2 = _interopRequireDefault(_rcAnimate); 24129 var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
24976 24130
24977 var _PopupInner = __webpack_require__(217); 24131 var _PopupInner = __webpack_require__(211);
24978 24132
24979 var _PopupInner2 = _interopRequireDefault(_PopupInner); 24133 var _PopupInner2 = _interopRequireDefault(_PopupInner);
24980 24134
@@ -25107,7 +24261,7 @@ webpackJsonp([0,1],[
25107 module.exports = exports['default']; 24261 module.exports = exports['default'];
25108 24262
25109/***/ }, 24263/***/ },
25110/* 198 */ 24264/* 192 */
25111/***/ function(module, exports, __webpack_require__) { 24265/***/ function(module, exports, __webpack_require__) {
25112 24266
25113 // export this package's api 24267 // export this package's api
@@ -25119,7 +24273,7 @@ webpackJsonp([0,1],[
25119 24273
25120 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 24274 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25121 24275
25122 var _Align = __webpack_require__(199); 24276 var _Align = __webpack_require__(193);
25123 24277
25124 var _Align2 = _interopRequireDefault(_Align); 24278 var _Align2 = _interopRequireDefault(_Align);
25125 24279
@@ -25127,7 +24281,7 @@ webpackJsonp([0,1],[
25127 module.exports = exports['default']; 24281 module.exports = exports['default'];
25128 24282
25129/***/ }, 24283/***/ },
25130/* 199 */ 24284/* 193 */
25131/***/ function(module, exports, __webpack_require__) { 24285/***/ function(module, exports, __webpack_require__) {
25132 24286
25133 'use strict'; 24287 'use strict';
@@ -25146,13 +24300,13 @@ webpackJsonp([0,1],[
25146 24300
25147 var _reactDom2 = _interopRequireDefault(_reactDom); 24301 var _reactDom2 = _interopRequireDefault(_reactDom);
25148 24302
25149 var _domAlign = __webpack_require__(200); 24303 var _domAlign = __webpack_require__(194);
25150 24304
25151 var _domAlign2 = _interopRequireDefault(_domAlign); 24305 var _domAlign2 = _interopRequireDefault(_domAlign);
25152 24306
25153 var _rcUtil = __webpack_require__(174); 24307 var _rcUtil = __webpack_require__(174);
25154 24308
25155 var _isWindow = __webpack_require__(208); 24309 var _isWindow = __webpack_require__(202);
25156 24310
25157 var _isWindow2 = _interopRequireDefault(_isWindow); 24311 var _isWindow2 = _interopRequireDefault(_isWindow);
25158 24312
@@ -25284,7 +24438,7 @@ webpackJsonp([0,1],[
25284 module.exports = exports['default']; 24438 module.exports = exports['default'];
25285 24439
25286/***/ }, 24440/***/ },
25287/* 200 */ 24441/* 194 */
25288/***/ function(module, exports, __webpack_require__) { 24442/***/ function(module, exports, __webpack_require__) {
25289 24443
25290 /** 24444 /**
@@ -25300,27 +24454,27 @@ webpackJsonp([0,1],[
25300 24454
25301 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 24455 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25302 24456
25303 var _utils = __webpack_require__(201); 24457 var _utils = __webpack_require__(195);
25304 24458
25305 var _utils2 = _interopRequireDefault(_utils); 24459 var _utils2 = _interopRequireDefault(_utils);
25306 24460
25307 var _getOffsetParent = __webpack_require__(202); 24461 var _getOffsetParent = __webpack_require__(196);
25308 24462
25309 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); 24463 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
25310 24464
25311 var _getVisibleRectForElement = __webpack_require__(203); 24465 var _getVisibleRectForElement = __webpack_require__(197);
25312 24466
25313 var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement); 24467 var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement);
25314 24468
25315 var _adjustForViewport = __webpack_require__(204); 24469 var _adjustForViewport = __webpack_require__(198);
25316 24470
25317 var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport); 24471 var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport);
25318 24472
25319 var _getRegion = __webpack_require__(205); 24473 var _getRegion = __webpack_require__(199);
25320 24474
25321 var _getRegion2 = _interopRequireDefault(_getRegion); 24475 var _getRegion2 = _interopRequireDefault(_getRegion);
25322 24476
25323 var _getElFuturePos = __webpack_require__(206); 24477 var _getElFuturePos = __webpack_require__(200);
25324 24478
25325 var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos); 24479 var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos);
25326 24480
@@ -25487,7 +24641,7 @@ webpackJsonp([0,1],[
25487 module.exports = exports['default']; 24641 module.exports = exports['default'];
25488 24642
25489/***/ }, 24643/***/ },
25490/* 201 */ 24644/* 195 */
25491/***/ function(module, exports) { 24645/***/ function(module, exports) {
25492 24646
25493 'use strict'; 24647 'use strict';
@@ -25985,7 +25139,7 @@ webpackJsonp([0,1],[
25985 module.exports = exports['default']; 25139 module.exports = exports['default'];
25986 25140
25987/***/ }, 25141/***/ },
25988/* 202 */ 25142/* 196 */
25989/***/ function(module, exports, __webpack_require__) { 25143/***/ function(module, exports, __webpack_require__) {
25990 25144
25991 'use strict'; 25145 'use strict';
@@ -25996,7 +25150,7 @@ webpackJsonp([0,1],[
25996 25150
25997 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25151 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
25998 25152
25999 var _utils = __webpack_require__(201); 25153 var _utils = __webpack_require__(195);
26000 25154
26001 var _utils2 = _interopRequireDefault(_utils); 25155 var _utils2 = _interopRequireDefault(_utils);
26002 25156
@@ -26043,7 +25197,7 @@ webpackJsonp([0,1],[
26043 module.exports = exports['default']; 25197 module.exports = exports['default'];
26044 25198
26045/***/ }, 25199/***/ },
26046/* 203 */ 25200/* 197 */
26047/***/ function(module, exports, __webpack_require__) { 25201/***/ function(module, exports, __webpack_require__) {
26048 25202
26049 'use strict'; 25203 'use strict';
@@ -26054,11 +25208,11 @@ webpackJsonp([0,1],[
26054 25208
26055 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25209 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
26056 25210
26057 var _utils = __webpack_require__(201); 25211 var _utils = __webpack_require__(195);
26058 25212
26059 var _utils2 = _interopRequireDefault(_utils); 25213 var _utils2 = _interopRequireDefault(_utils);
26060 25214
26061 var _getOffsetParent = __webpack_require__(202); 25215 var _getOffsetParent = __webpack_require__(196);
26062 25216
26063 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); 25217 var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
26064 25218
@@ -26124,7 +25278,7 @@ webpackJsonp([0,1],[
26124 module.exports = exports['default']; 25278 module.exports = exports['default'];
26125 25279
26126/***/ }, 25280/***/ },
26127/* 204 */ 25281/* 198 */
26128/***/ function(module, exports, __webpack_require__) { 25282/***/ function(module, exports, __webpack_require__) {
26129 25283
26130 'use strict'; 25284 'use strict';
@@ -26135,7 +25289,7 @@ webpackJsonp([0,1],[
26135 25289
26136 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25290 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
26137 25291
26138 var _utils = __webpack_require__(201); 25292 var _utils = __webpack_require__(195);
26139 25293
26140 var _utils2 = _interopRequireDefault(_utils); 25294 var _utils2 = _interopRequireDefault(_utils);
26141 25295
@@ -26184,7 +25338,7 @@ webpackJsonp([0,1],[
26184 module.exports = exports['default']; 25338 module.exports = exports['default'];
26185 25339
26186/***/ }, 25340/***/ },
26187/* 205 */ 25341/* 199 */
26188/***/ function(module, exports, __webpack_require__) { 25342/***/ function(module, exports, __webpack_require__) {
26189 25343
26190 'use strict'; 25344 'use strict';
@@ -26195,7 +25349,7 @@ webpackJsonp([0,1],[
26195 25349
26196 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25350 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
26197 25351
26198 var _utils = __webpack_require__(201); 25352 var _utils = __webpack_require__(195);
26199 25353
26200 var _utils2 = _interopRequireDefault(_utils); 25354 var _utils2 = _interopRequireDefault(_utils);
26201 25355
@@ -26225,7 +25379,7 @@ webpackJsonp([0,1],[
26225 module.exports = exports['default']; 25379 module.exports = exports['default'];
26226 25380
26227/***/ }, 25381/***/ },
26228/* 206 */ 25382/* 200 */
26229/***/ function(module, exports, __webpack_require__) { 25383/***/ function(module, exports, __webpack_require__) {
26230 25384
26231 'use strict'; 25385 'use strict';
@@ -26236,7 +25390,7 @@ webpackJsonp([0,1],[
26236 25390
26237 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25391 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
26238 25392
26239 var _getAlignOffset = __webpack_require__(207); 25393 var _getAlignOffset = __webpack_require__(201);
26240 25394
26241 var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset); 25395 var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);
26242 25396
@@ -26266,7 +25420,7 @@ webpackJsonp([0,1],[
26266 module.exports = exports['default']; 25420 module.exports = exports['default'];
26267 25421
26268/***/ }, 25422/***/ },
26269/* 207 */ 25423/* 201 */
26270/***/ function(module, exports) { 25424/***/ function(module, exports) {
26271 25425
26272 /** 25426 /**
@@ -26311,7 +25465,7 @@ webpackJsonp([0,1],[
26311 module.exports = exports['default']; 25465 module.exports = exports['default'];
26312 25466
26313/***/ }, 25467/***/ },
26314/* 208 */ 25468/* 202 */
26315/***/ function(module, exports) { 25469/***/ function(module, exports) {
26316 25470
26317 "use strict"; 25471 "use strict";
@@ -26330,16 +25484,16 @@ webpackJsonp([0,1],[
26330 module.exports = exports["default"]; 25484 module.exports = exports["default"];
26331 25485
26332/***/ }, 25486/***/ },
26333/* 209 */ 25487/* 203 */
26334/***/ function(module, exports, __webpack_require__) { 25488/***/ function(module, exports, __webpack_require__) {
26335 25489
26336 // export this package's api 25490 // export this package's api
26337 'use strict'; 25491 'use strict';
26338 25492
26339 module.exports = __webpack_require__(210); 25493 module.exports = __webpack_require__(204);
26340 25494
26341/***/ }, 25495/***/ },
26342/* 210 */ 25496/* 204 */
26343/***/ function(module, exports, __webpack_require__) { 25497/***/ function(module, exports, __webpack_require__) {
26344 25498
26345 'use strict'; 25499 'use strict';
@@ -26356,13 +25510,13 @@ webpackJsonp([0,1],[
26356 25510
26357 var _react2 = _interopRequireDefault(_react); 25511 var _react2 = _interopRequireDefault(_react);
26358 25512
26359 var _ChildrenUtils = __webpack_require__(211); 25513 var _ChildrenUtils = __webpack_require__(205);
26360 25514
26361 var _AnimateChild = __webpack_require__(212); 25515 var _AnimateChild = __webpack_require__(206);
26362 25516
26363 var _AnimateChild2 = _interopRequireDefault(_AnimateChild); 25517 var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
26364 25518
26365 var _util = __webpack_require__(216); 25519 var _util = __webpack_require__(210);
26366 25520
26367 var _util2 = _interopRequireDefault(_util); 25521 var _util2 = _interopRequireDefault(_util);
26368 25522
@@ -26659,7 +25813,7 @@ webpackJsonp([0,1],[
26659 module.exports = exports['default']; 25813 module.exports = exports['default'];
26660 25814
26661/***/ }, 25815/***/ },
26662/* 211 */ 25816/* 205 */
26663/***/ function(module, exports, __webpack_require__) { 25817/***/ function(module, exports, __webpack_require__) {
26664 25818
26665 'use strict'; 25819 'use strict';
@@ -26777,7 +25931,7 @@ webpackJsonp([0,1],[
26777 } 25931 }
26778 25932
26779/***/ }, 25933/***/ },
26780/* 212 */ 25934/* 206 */
26781/***/ function(module, exports, __webpack_require__) { 25935/***/ function(module, exports, __webpack_require__) {
26782 25936
26783 'use strict'; 25937 'use strict';
@@ -26796,11 +25950,11 @@ webpackJsonp([0,1],[
26796 25950
26797 var _reactDom2 = _interopRequireDefault(_reactDom); 25951 var _reactDom2 = _interopRequireDefault(_reactDom);
26798 25952
26799 var _cssAnimation = __webpack_require__(213); 25953 var _cssAnimation = __webpack_require__(207);
26800 25954
26801 var _cssAnimation2 = _interopRequireDefault(_cssAnimation); 25955 var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
26802 25956
26803 var _util = __webpack_require__(216); 25957 var _util = __webpack_require__(210);
26804 25958
26805 var _util2 = _interopRequireDefault(_util); 25959 var _util2 = _interopRequireDefault(_util);
26806 25960
@@ -26880,13 +26034,13 @@ webpackJsonp([0,1],[
26880 module.exports = exports['default']; 26034 module.exports = exports['default'];
26881 26035
26882/***/ }, 26036/***/ },
26883/* 213 */ 26037/* 207 */
26884/***/ function(module, exports, __webpack_require__) { 26038/***/ function(module, exports, __webpack_require__) {
26885 26039
26886 'use strict'; 26040 'use strict';
26887 26041
26888 var Event = __webpack_require__(214); 26042 var Event = __webpack_require__(208);
26889 var Css = __webpack_require__(215); 26043 var Css = __webpack_require__(209);
26890 var isCssAnimationSupported = Event.endEvents.length !== 0; 26044 var isCssAnimationSupported = Event.endEvents.length !== 0;
26891 26045
26892 function getDuration(node, name) { 26046 function getDuration(node, name) {
@@ -27038,7 +26192,7 @@ webpackJsonp([0,1],[
27038 module.exports = cssAnimation; 26192 module.exports = cssAnimation;
27039 26193
27040/***/ }, 26194/***/ },
27041/* 214 */ 26195/* 208 */
27042/***/ function(module, exports) { 26196/***/ function(module, exports) {
27043 26197
27044 'use strict'; 26198 'use strict';
@@ -27126,7 +26280,7 @@ webpackJsonp([0,1],[
27126 module.exports = TransitionEvents; 26280 module.exports = TransitionEvents;
27127 26281
27128/***/ }, 26282/***/ },
27129/* 215 */ 26283/* 209 */
27130/***/ function(module, exports) { 26284/***/ function(module, exports) {
27131 26285
27132 'use strict'; 26286 'use strict';
@@ -27157,7 +26311,7 @@ webpackJsonp([0,1],[
27157 }; 26311 };
27158 26312
27159/***/ }, 26313/***/ },
27160/* 216 */ 26314/* 210 */
27161/***/ function(module, exports) { 26315/***/ function(module, exports) {
27162 26316
27163 "use strict"; 26317 "use strict";
@@ -27190,7 +26344,7 @@ webpackJsonp([0,1],[
27190 module.exports = exports["default"]; 26344 module.exports = exports["default"];
27191 26345
27192/***/ }, 26346/***/ },
27193/* 217 */ 26347/* 211 */
27194/***/ function(module, exports, __webpack_require__) { 26348/***/ function(module, exports, __webpack_require__) {
27195 26349
27196 'use strict'; 26350 'use strict';
@@ -27236,7 +26390,7 @@ webpackJsonp([0,1],[
27236 module.exports = exports['default']; 26390 module.exports = exports['default'];
27237 26391
27238/***/ }, 26392/***/ },
27239/* 218 */ 26393/* 212 */
27240/***/ function(module, exports, __webpack_require__) { 26394/***/ function(module, exports, __webpack_require__) {
27241 26395
27242 'use strict'; 26396 'use strict';
@@ -27249,7 +26403,7 @@ webpackJsonp([0,1],[
27249 26403
27250 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 26404 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27251 26405
27252 var _objectAssign = __webpack_require__(193); 26406 var _objectAssign = __webpack_require__(187);
27253 26407
27254 var _objectAssign2 = _interopRequireDefault(_objectAssign); 26408 var _objectAssign2 = _interopRequireDefault(_objectAssign);
27255 26409
@@ -27275,7 +26429,1243 @@ webpackJsonp([0,1],[
27275 } 26429 }
27276 26430
27277/***/ }, 26431/***/ },
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/***/ },
27278/* 219 */ 27099/* 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 */
27279/***/ function(module, exports, __webpack_require__) { 27669/***/ function(module, exports, __webpack_require__) {
27280 27670
27281 'use strict'; 27671 'use strict';
@@ -27290,24 +27680,38 @@ webpackJsonp([0,1],[
27290 27680
27291 var _react2 = _interopRequireDefault(_react); 27681 var _react2 = _interopRequireDefault(_react);
27292 27682
27293 var _mixinCommonMixin = __webpack_require__(220); 27683 var _classnames = __webpack_require__(177);
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);
27294 27696
27295 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin); 27697 var _mixinCommonMixin2 = _interopRequireDefault(_mixinCommonMixin);
27296 27698
27297 var _Header = __webpack_require__(222); 27699 var _Header = __webpack_require__(233);
27298 27700
27299 var _Header2 = _interopRequireDefault(_Header); 27701 var _Header2 = _interopRequireDefault(_Header);
27300 27702
27301 var _Combobox = __webpack_require__(223); 27703 var _Combobox = __webpack_require__(234);
27302 27704
27303 var _Combobox2 = _interopRequireDefault(_Combobox); 27705 var _Combobox2 = _interopRequireDefault(_Combobox);
27304 27706
27305 function noop() {} 27707 function noop() {}
27306 27708
27307 function generateOptions(length) { 27709 function generateOptions(length) {
27308 return Array.apply(null, { length: length }).map(function (item, index) { 27710 var arr = [];
27309 return index; 27711 for (var i = 0; i < length; i++) {
27310 }); 27712 arr.push(i);
27713 }
27714 return arr;
27311 } 27715 }
27312 27716
27313 var Panel = _react2['default'].createClass({ 27717 var Panel = _react2['default'].createClass({
@@ -27318,16 +27722,11 @@ webpackJsonp([0,1],[
27318 value: _react.PropTypes.object, 27722 value: _react.PropTypes.object,
27319 locale: _react.PropTypes.object, 27723 locale: _react.PropTypes.object,
27320 placeholder: _react.PropTypes.string, 27724 placeholder: _react.PropTypes.string,
27321 gregorianCalendarLocale: _react.PropTypes.object,
27322 formatter: _react.PropTypes.object, 27725 formatter: _react.PropTypes.object,
27323 hourOptions: _react.PropTypes.array, 27726 hourOptions: _react.PropTypes.array,
27324 minuteOptions: _react.PropTypes.array, 27727 minuteOptions: _react.PropTypes.array,
27325 secondOptions: _react.PropTypes.array, 27728 secondOptions: _react.PropTypes.array,
27326 onChange: _react.PropTypes.func, 27729 onChange: _react.PropTypes.func,
27327 onEsc: _react.PropTypes.func,
27328 allowEmpty: _react.PropTypes.bool,
27329 showHour: _react.PropTypes.bool,
27330 showSecond: _react.PropTypes.bool,
27331 onClear: _react.PropTypes.func 27730 onClear: _react.PropTypes.func
27332 }, 27731 },
27333 27732
@@ -27344,11 +27743,26 @@ webpackJsonp([0,1],[
27344 }, 27743 },
27345 27744
27346 getInitialState: function getInitialState() { 27745 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 }
27347 return { 27751 return {
27348 value: this.props.value 27752 value: value
27349 }; 27753 };
27350 }, 27754 },
27351 27755
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
27352 componentWillReceiveProps: function componentWillReceiveProps(nextProps) { 27766 componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
27353 var value = nextProps.value; 27767 var value = nextProps.value;
27354 if (value) { 27768 if (value) {
@@ -27367,6 +27781,9 @@ webpackJsonp([0,1],[
27367 this.props.onClear(); 27781 this.props.onClear();
27368 }, 27782 },
27369 27783
27784 showHour: true,
27785 showSecond: true,
27786
27370 render: function render() { 27787 render: function render() {
27371 var _props = this.props; 27788 var _props = this.props;
27372 var locale = _props.locale; 27789 var locale = _props.locale;
@@ -27375,39 +27792,34 @@ webpackJsonp([0,1],[
27375 var hourOptions = _props.hourOptions; 27792 var hourOptions = _props.hourOptions;
27376 var minuteOptions = _props.minuteOptions; 27793 var minuteOptions = _props.minuteOptions;
27377 var secondOptions = _props.secondOptions; 27794 var secondOptions = _props.secondOptions;
27378 var allowEmpty = _props.allowEmpty;
27379 var showHour = _props.showHour;
27380 var showSecond = _props.showSecond;
27381 var formatter = _props.formatter;
27382 var gregorianCalendarLocale = _props.gregorianCalendarLocale;
27383 27795
27384 var value = this.state.value; 27796 var value = this.state.value;
27797 var cls = (0, _classnames2['default'])({ 'narrow': !this.showHour || !this.showSecond });
27798
27385 return _react2['default'].createElement( 27799 return _react2['default'].createElement(
27386 'div', 27800 'div',
27387 { className: prefixCls + '-inner' }, 27801 { className: prefixCls + '-panel-inner ' + cls },
27388 _react2['default'].createElement(_Header2['default'], { 27802 _react2['default'].createElement(_Header2['default'], {
27389 prefixCls: prefixCls, 27803 prefixCls: prefixCls,
27390 gregorianCalendarLocale: gregorianCalendarLocale, 27804 gregorianTimePickerLocale: value.locale,
27391 locale: locale, 27805 locale: locale,
27392 value: value, 27806 value: value,
27393 onEsc: this.props.onEsc, 27807 formatter: this.getFormatter(),
27394 formatter: formatter,
27395 placeholder: placeholder, 27808 placeholder: placeholder,
27396 hourOptions: hourOptions, 27809 hourOptions: hourOptions,
27397 minuteOptions: minuteOptions, 27810 minuteOptions: minuteOptions,
27398 secondOptions: secondOptions, 27811 secondOptions: secondOptions,
27399 onChange: this.onChange, 27812 onChange: this.onChange,
27400 onClear: this.onClear, 27813 onClear: this.onClear,
27401 allowEmpty: allowEmpty 27814 showClear: true
27402 }), 27815 }),
27403 _react2['default'].createElement(_Combobox2['default'], { 27816 _react2['default'].createElement(_Combobox2['default'], {
27404 prefixCls: prefixCls, 27817 prefixCls: prefixCls,
27405 value: value, 27818 value: value,
27406 gregorianCalendarLocale: gregorianCalendarLocale, 27819 formatter: this.getFormatter(),
27407 formatter: formatter,
27408 onChange: this.onChange, 27820 onChange: this.onChange,
27409 showHour: showHour, 27821 showHour: this.showHour,
27410 showSecond: showSecond, 27822 showSecond: this.showSecond,
27411 hourOptions: hourOptions, 27823 hourOptions: hourOptions,
27412 minuteOptions: minuteOptions, 27824 minuteOptions: minuteOptions,
27413 secondOptions: secondOptions 27825 secondOptions: secondOptions
@@ -27420,7 +27832,7 @@ webpackJsonp([0,1],[
27420 module.exports = exports['default']; 27832 module.exports = exports['default'];
27421 27833
27422/***/ }, 27834/***/ },
27423/* 220 */ 27835/* 230 */
27424/***/ function(module, exports, __webpack_require__) { 27836/***/ function(module, exports, __webpack_require__) {
27425 27837
27426 'use strict'; 27838 'use strict';
@@ -27433,10 +27845,12 @@ webpackJsonp([0,1],[
27433 27845
27434 var _react = __webpack_require__(3); 27846 var _react = __webpack_require__(3);
27435 27847
27436 var _localeEn_US = __webpack_require__(221); 27848 var _localeEn_US = __webpack_require__(231);
27437 27849
27438 var _localeEn_US2 = _interopRequireDefault(_localeEn_US); 27850 var _localeEn_US2 = _interopRequireDefault(_localeEn_US);
27439 27851
27852 var _utilIndex = __webpack_require__(232);
27853
27440 exports['default'] = { 27854 exports['default'] = {
27441 propTypes: { 27855 propTypes: {
27442 prefixCls: _react.PropTypes.string, 27856 prefixCls: _react.PropTypes.string,
@@ -27448,12 +27862,41 @@ webpackJsonp([0,1],[
27448 prefixCls: 'rc-time-picker', 27862 prefixCls: 'rc-time-picker',
27449 locale: _localeEn_US2['default'] 27863 locale: _localeEn_US2['default']
27450 }; 27864 };
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;
27451 } 27894 }
27452 }; 27895 };
27453 module.exports = exports['default']; 27896 module.exports = exports['default'];
27454 27897
27455/***/ }, 27898/***/ },
27456/* 221 */ 27899/* 231 */
27457/***/ function(module, exports, __webpack_require__) { 27900/***/ function(module, exports, __webpack_require__) {
27458 27901
27459 'use strict'; 27902 'use strict';
@@ -27475,7 +27918,31 @@ webpackJsonp([0,1],[
27475 module.exports = exports['default']; 27918 module.exports = exports['default'];
27476 27919
27477/***/ }, 27920/***/ },
27478/* 222 */ 27921/* 232 */
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 */
27479/***/ function(module, exports, __webpack_require__) { 27946/***/ function(module, exports, __webpack_require__) {
27480 27947
27481 'use strict'; 27948 'use strict';
@@ -27496,7 +27963,7 @@ webpackJsonp([0,1],[
27496 propTypes: { 27963 propTypes: {
27497 formatter: _react.PropTypes.object, 27964 formatter: _react.PropTypes.object,
27498 prefixCls: _react.PropTypes.string, 27965 prefixCls: _react.PropTypes.string,
27499 gregorianCalendarLocale: _react.PropTypes.object, 27966 gregorianTimePickerLocale: _react.PropTypes.object,
27500 locale: _react.PropTypes.object, 27967 locale: _react.PropTypes.object,
27501 disabledDate: _react.PropTypes.func, 27968 disabledDate: _react.PropTypes.func,
27502 placeholder: _react.PropTypes.string, 27969 placeholder: _react.PropTypes.string,
@@ -27506,8 +27973,7 @@ webpackJsonp([0,1],[
27506 secondOptions: _react.PropTypes.array, 27973 secondOptions: _react.PropTypes.array,
27507 onChange: _react.PropTypes.func, 27974 onChange: _react.PropTypes.func,
27508 onClear: _react.PropTypes.func, 27975 onClear: _react.PropTypes.func,
27509 onEsc: _react.PropTypes.func, 27976 showClear: _react.PropTypes.bool
27510 allowEmpty: _react.PropTypes.bool
27511 }, 27977 },
27512 27978
27513 getInitialState: function getInitialState() { 27979 getInitialState: function getInitialState() {
@@ -27518,14 +27984,6 @@ webpackJsonp([0,1],[
27518 }; 27984 };
27519 }, 27985 },
27520 27986
27521 componentDidMount: function componentDidMount() {
27522 var _this = this;
27523
27524 this.timer = setTimeout(function () {
27525 _this.refs.input.focus();
27526 }, 0);
27527 },
27528
27529 componentWillReceiveProps: function componentWillReceiveProps(nextProps) { 27987 componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
27530 var value = nextProps.value; 27988 var value = nextProps.value;
27531 this.setState({ 27989 this.setState({
@@ -27534,10 +27992,6 @@ webpackJsonp([0,1],[
27534 }); 27992 });
27535 }, 27993 },
27536 27994
27537 componentWillUnmount: function componentWillUnmount() {
27538 clearTimeout(this.timer);
27539 },
27540
27541 onInputChange: function onInputChange(event) { 27995 onInputChange: function onInputChange(event) {
27542 var str = event.target.value; 27996 var str = event.target.value;
27543 this.setState({ 27997 this.setState({
@@ -27546,18 +28000,17 @@ webpackJsonp([0,1],[
27546 var value = null; 28000 var value = null;
27547 var _props = this.props; 28001 var _props = this.props;
27548 var formatter = _props.formatter; 28002 var formatter = _props.formatter;
27549 var gregorianCalendarLocale = _props.gregorianCalendarLocale; 28003 var gregorianTimePickerLocale = _props.gregorianTimePickerLocale;
27550 var hourOptions = _props.hourOptions; 28004 var hourOptions = _props.hourOptions;
27551 var minuteOptions = _props.minuteOptions; 28005 var minuteOptions = _props.minuteOptions;
27552 var secondOptions = _props.secondOptions; 28006 var secondOptions = _props.secondOptions;
27553 var onChange = _props.onChange; 28007 var onChange = _props.onChange;
27554 var allowEmpty = _props.allowEmpty;
27555 28008
27556 if (str) { 28009 if (str) {
27557 var originalValue = this.props.value; 28010 var originalValue = this.props.value;
27558 try { 28011 try {
27559 value = formatter.parse(str, { 28012 value = formatter.parse(str, {
27560 locale: gregorianCalendarLocale, 28013 locale: gregorianTimePickerLocale,
27561 obeyCount: true 28014 obeyCount: true
27562 }); 28015 });
27563 } catch (ex) { 28016 } catch (ex) {
@@ -27588,13 +28041,8 @@ webpackJsonp([0,1],[
27588 }); 28041 });
27589 return; 28042 return;
27590 } 28043 }
27591 } else if (allowEmpty) {
27592 onChange(null);
27593 } else { 28044 } else {
27594 this.setState({ 28045 onChange(null);
27595 invalid: true
27596 });
27597 return;
27598 } 28046 }
27599 28047
27600 this.setState({ 28048 this.setState({
@@ -27602,12 +28050,6 @@ webpackJsonp([0,1],[
27602 }); 28050 });
27603 }, 28051 },
27604 28052
27605 onKeyDown: function onKeyDown(e) {
27606 if (e.keyCode === 27) {
27607 this.props.onEsc();
27608 }
27609 },
27610
27611 onClear: function onClear() { 28053 onClear: function onClear() {
27612 this.setState({ str: '' }); 28054 this.setState({ str: '' });
27613 this.props.onClear(); 28055 this.props.onClear();
@@ -27617,9 +28059,9 @@ webpackJsonp([0,1],[
27617 var _props2 = this.props; 28059 var _props2 = this.props;
27618 var locale = _props2.locale; 28060 var locale = _props2.locale;
27619 var prefixCls = _props2.prefixCls; 28061 var prefixCls = _props2.prefixCls;
27620 var allowEmpty = _props2.allowEmpty; 28062 var showClear = _props2.showClear;
27621 28063
27622 if (!allowEmpty) { 28064 if (!showClear) {
27623 return null; 28065 return null;
27624 } 28066 }
27625 return _react2['default'].createElement('a', { className: prefixCls + '-clear-btn', role: 'button', title: locale.clear, onMouseDown: this.onClear }); 28067 return _react2['default'].createElement('a', { className: prefixCls + '-clear-btn', role: 'button', title: locale.clear, onMouseDown: this.onClear });
@@ -27634,11 +28076,7 @@ webpackJsonp([0,1],[
27634 var str = _state.str; 28076 var str = _state.str;
27635 28077
27636 var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; 28078 var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
27637 return _react2['default'].createElement('input', { className: prefixCls + '-input ' + invalidClass, 28079 return _react2['default'].createElement('input', { className: prefixCls + '-input ' + invalidClass, value: str, placeholder: placeholder, onChange: this.onInputChange });
27638 ref: 'input',
27639 onKeyDown: this.onKeyDown,
27640 value: str,
27641 placeholder: placeholder, onChange: this.onInputChange });
27642 }, 28080 },
27643 28081
27644 render: function render() { 28082 render: function render() {
@@ -27657,7 +28095,7 @@ webpackJsonp([0,1],[
27657 module.exports = exports['default']; 28095 module.exports = exports['default'];
27658 28096
27659/***/ }, 28097/***/ },
27660/* 223 */ 28098/* 234 */
27661/***/ function(module, exports, __webpack_require__) { 28099/***/ function(module, exports, __webpack_require__) {
27662 28100
27663 'use strict'; 28101 'use strict';
@@ -27672,14 +28110,10 @@ webpackJsonp([0,1],[
27672 28110
27673 var _react2 = _interopRequireDefault(_react); 28111 var _react2 = _interopRequireDefault(_react);
27674 28112
27675 var _Select = __webpack_require__(224); 28113 var _Select = __webpack_require__(235);
27676 28114
27677 var _Select2 = _interopRequireDefault(_Select); 28115 var _Select2 = _interopRequireDefault(_Select);
27678 28116
27679 var _gregorianCalendar = __webpack_require__(161);
27680
27681 var _gregorianCalendar2 = _interopRequireDefault(_gregorianCalendar);
27682
27683 var formatOption = function formatOption(option) { 28117 var formatOption = function formatOption(option) {
27684 if (option < 10) { 28118 if (option < 10) {
27685 return '0' + option; 28119 return '0' + option;
@@ -27696,7 +28130,6 @@ webpackJsonp([0,1],[
27696 value: _react.PropTypes.object, 28130 value: _react.PropTypes.object,
27697 onChange: _react.PropTypes.func, 28131 onChange: _react.PropTypes.func,
27698 showHour: _react.PropTypes.bool, 28132 showHour: _react.PropTypes.bool,
27699 gregorianCalendarLocale: _react.PropTypes.object,
27700 showSecond: _react.PropTypes.bool, 28133 showSecond: _react.PropTypes.bool,
27701 hourOptions: _react.PropTypes.array, 28134 hourOptions: _react.PropTypes.array,
27702 minuteOptions: _react.PropTypes.array, 28135 minuteOptions: _react.PropTypes.array,
@@ -27704,14 +28137,10 @@ webpackJsonp([0,1],[
27704 }, 28137 },
27705 28138
27706 onItemChange: function onItemChange(type, itemValue) { 28139 onItemChange: function onItemChange(type, itemValue) {
27707 var onChange = this.props.onChange; 28140 var _props = this.props;
28141 var value = _props.value;
28142 var onChange = _props.onChange;
27708 28143
27709 var value = this.props.value;
27710 if (value) {
27711 value = value.clone();
27712 } else {
27713 value = this.getNow().clone();
27714 }
27715 if (type === 'hour') { 28144 if (type === 'hour') {
27716 value.setHourOfDay(itemValue); 28145 value.setHourOfDay(itemValue);
27717 } else if (type === 'minute') { 28146 } else if (type === 'minute') {
@@ -27723,10 +28152,10 @@ webpackJsonp([0,1],[
27723 }, 28152 },
27724 28153
27725 getHourSelect: function getHourSelect(hour) { 28154 getHourSelect: function getHourSelect(hour) {
27726 var _props = this.props; 28155 var _props2 = this.props;
27727 var prefixCls = _props.prefixCls; 28156 var prefixCls = _props2.prefixCls;
27728 var hourOptions = _props.hourOptions; 28157 var hourOptions = _props2.hourOptions;
27729 var showHour = _props.showHour; 28158 var showHour = _props2.showHour;
27730 28159
27731 if (!showHour) { 28160 if (!showHour) {
27732 return null; 28161 return null;
@@ -27743,9 +28172,9 @@ webpackJsonp([0,1],[
27743 }, 28172 },
27744 28173
27745 getMinuteSelect: function getMinuteSelect(minute) { 28174 getMinuteSelect: function getMinuteSelect(minute) {
27746 var _props2 = this.props; 28175 var _props3 = this.props;
27747 var prefixCls = _props2.prefixCls; 28176 var prefixCls = _props3.prefixCls;
27748 var minuteOptions = _props2.minuteOptions; 28177 var minuteOptions = _props3.minuteOptions;
27749 28178
27750 return _react2['default'].createElement(_Select2['default'], { 28179 return _react2['default'].createElement(_Select2['default'], {
27751 prefixCls: prefixCls, 28180 prefixCls: prefixCls,
@@ -27759,10 +28188,10 @@ webpackJsonp([0,1],[
27759 }, 28188 },
27760 28189
27761 getSectionSelect: function getSectionSelect(second) { 28190 getSectionSelect: function getSectionSelect(second) {
27762 var _props3 = this.props; 28191 var _props4 = this.props;
27763 var prefixCls = _props3.prefixCls; 28192 var prefixCls = _props4.prefixCls;
27764 var secondOptions = _props3.secondOptions; 28193 var secondOptions = _props4.secondOptions;
27765 var showSecond = _props3.showSecond; 28194 var showSecond = _props4.showSecond;
27766 28195
27767 if (!showSecond) { 28196 if (!showSecond) {
27768 return null; 28197 return null;
@@ -27778,20 +28207,11 @@ webpackJsonp([0,1],[
27778 }); 28207 });
27779 }, 28208 },
27780 28209
27781 getNow: function getNow() {
27782 if (this.showNow) {
27783 return this.showNow;
27784 }
27785 var value = new _gregorianCalendar2['default'](this.props.gregorianCalendarLocale);
27786 value.setTime(Date.now());
27787 this.showNow = value;
27788 return value;
27789 },
27790
27791 render: function render() { 28210 render: function render() {
27792 var prefixCls = this.props.prefixCls; 28211 var _props5 = this.props;
28212 var prefixCls = _props5.prefixCls;
28213 var value = _props5.value;
27793 28214
27794 var value = this.props.value || this.getNow();
27795 return _react2['default'].createElement( 28215 return _react2['default'].createElement(
27796 'div', 28216 'div',
27797 { className: prefixCls + '-combobox' }, 28217 { className: prefixCls + '-combobox' },
@@ -27806,7 +28226,7 @@ webpackJsonp([0,1],[
27806 module.exports = exports['default']; 28226 module.exports = exports['default'];
27807 28227
27808/***/ }, 28228/***/ },
27809/* 224 */ 28229/* 235 */
27810/***/ function(module, exports, __webpack_require__) { 28230/***/ function(module, exports, __webpack_require__) {
27811 28231
27812 'use strict'; 28232 'use strict';
@@ -27817,8 +28237,6 @@ webpackJsonp([0,1],[
27817 28237
27818 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 28238 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27819 28239
27820 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; }
27821
27822 var _react = __webpack_require__(3); 28240 var _react = __webpack_require__(3);
27823 28241
27824 var _react2 = _interopRequireDefault(_react); 28242 var _react2 = _interopRequireDefault(_react);
@@ -27827,9 +28245,9 @@ webpackJsonp([0,1],[
27827 28245
27828 var _reactDom2 = _interopRequireDefault(_reactDom); 28246 var _reactDom2 = _interopRequireDefault(_reactDom);
27829 28247
27830 var _classnames2 = __webpack_require__(178); 28248 var _classnames = __webpack_require__(177);
27831 28249
27832 var _classnames3 = _interopRequireDefault(_classnames2); 28250 var _classnames2 = _interopRequireDefault(_classnames);
27833 28251
27834 var scrollTo = function scrollTo(element, to, duration) { 28252 var scrollTo = function scrollTo(element, to, duration) {
27835 // jump to target if duration zero 28253 // jump to target if duration zero
@@ -27853,7 +28271,6 @@ webpackJsonp([0,1],[
27853 propTypes: { 28271 propTypes: {
27854 prefixCls: _react.PropTypes.string, 28272 prefixCls: _react.PropTypes.string,
27855 options: _react.PropTypes.array, 28273 options: _react.PropTypes.array,
27856 gregorianCalendarLocale: _react.PropTypes.object,
27857 selectedIndex: _react.PropTypes.number, 28274 selectedIndex: _react.PropTypes.number,
27858 type: _react.PropTypes.string, 28275 type: _react.PropTypes.string,
27859 onSelect: _react.PropTypes.func 28276 onSelect: _react.PropTypes.func
@@ -27869,11 +28286,17 @@ webpackJsonp([0,1],[
27869 this.scrollToSelected(200); 28286 this.scrollToSelected(200);
27870 }, 28287 },
27871 28288
27872 onSelect: function onSelect(value) { 28289 onSelect: function onSelect(event) {
28290 // do nothing when select selected option
28291 if (event.target.getAttribute('class') === 'selected') {
28292 return;
28293 }
28294 // change combobox selection
27873 var _props = this.props; 28295 var _props = this.props;
27874 var onSelect = _props.onSelect; 28296 var onSelect = _props.onSelect;
27875 var type = _props.type; 28297 var type = _props.type;
27876 28298
28299 var value = parseInt(event.target.innerHTML, 10);
27877 onSelect(type, value); 28300 onSelect(type, value);
27878 }, 28301 },
27879 28302
@@ -27883,14 +28306,13 @@ webpackJsonp([0,1],[
27883 var _props2 = this.props; 28306 var _props2 = this.props;
27884 var options = _props2.options; 28307 var options = _props2.options;
27885 var selectedIndex = _props2.selectedIndex; 28308 var selectedIndex = _props2.selectedIndex;
27886 var prefixCls = _props2.prefixCls;
27887 28309
27888 return options.map(function (item, index) { 28310 return options.map(function (item, index) {
27889 var selected = selectedIndex === index; 28311 var cls = (0, _classnames2['default'])({ selected: selectedIndex === index });
27890 var cls = (0, _classnames3['default'])(_defineProperty({}, prefixCls + '-select-option-selected', selected)); 28312 var ref = selectedIndex === index ? 'selected' : null;
27891 return _react2['default'].createElement( 28313 return _react2['default'].createElement(
27892 'li', 28314 'li',
27893 { className: cls, key: index, onClick: _this.onSelect.bind(_this, +item) }, 28315 { ref: ref, className: cls, key: index, onClick: _this.onSelect },
27894 item 28316 item
27895 ); 28317 );
27896 }); 28318 });
@@ -27932,7 +28354,7 @@ webpackJsonp([0,1],[
27932 module.exports = exports['default']; 28354 module.exports = exports['default'];
27933 28355
27934/***/ }, 28356/***/ },
27935/* 225 */ 28357/* 236 */
27936/***/ function(module, exports) { 28358/***/ function(module, exports) {
27937 28359
27938 'use strict'; 28360 'use strict';
@@ -27978,31 +28400,7 @@ webpackJsonp([0,1],[
27978 module.exports = exports['default']; 28400 module.exports = exports['default'];
27979 28401
27980/***/ }, 28402/***/ },
27981/* 226 */ 28403/* 237 */
27982/***/ function(module, exports, __webpack_require__) {
27983
27984 'use strict';
27985
27986 Object.defineProperty(exports, '__esModule', {
27987 value: true
27988 });
27989 exports.getFormatter = getFormatter;
27990
27991 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
27992
27993 var _gregorianCalendarFormat = __webpack_require__(165);
27994
27995 var _gregorianCalendarFormat2 = _interopRequireDefault(_gregorianCalendarFormat);
27996
27997 function getFormatter(format, locale) {
27998 if (typeof format === 'string') {
27999 return new _gregorianCalendarFormat2['default'](format, locale.format);
28000 }
28001 return format;
28002 }
28003
28004/***/ },
28005/* 227 */
28006/***/ function(module, exports, __webpack_require__) { 28404/***/ function(module, exports, __webpack_require__) {
28007 28405
28008 'use strict'; 28406 'use strict';
@@ -28013,7 +28411,7 @@ webpackJsonp([0,1],[
28013 28411
28014 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 28412 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
28015 28413
28016 var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(228); 28414 var _gregorianCalendarFormatLibLocaleZh_CN = __webpack_require__(238);
28017 28415
28018 var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN); 28416 var _gregorianCalendarFormatLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarFormatLibLocaleZh_CN);
28019 28417
@@ -28024,7 +28422,7 @@ webpackJsonp([0,1],[
28024 module.exports = exports['default']; 28422 module.exports = exports['default'];
28025 28423
28026/***/ }, 28424/***/ },
28027/* 228 */ 28425/* 238 */
28028/***/ function(module, exports) { 28426/***/ function(module, exports) {
28029 28427
28030 'use strict'; 28428 'use strict';