From 587700272addc087eeede30d490462053180718b Mon Sep 17 00:00:00 2001 From: yiminghe Date: Mon, 26 Sep 2016 17:41:25 +0800 Subject: Updates --- examples/common.js | 1056 ++++++++++++++++++++++++++-------------------------- 1 file changed, 534 insertions(+), 522 deletions(-) (limited to 'examples/common.js') diff --git a/examples/common.js b/examples/common.js index a5f9bc2..95243ac 100644 --- a/examples/common.js +++ b/examples/common.js @@ -29729,15 +29729,19 @@ value: true }); + var _defineProperty2 = __webpack_require__(214); + + var _defineProperty3 = _interopRequireDefault(_defineProperty2); + var _react = __webpack_require__(3); var _react2 = _interopRequireDefault(_react); - var _Header = __webpack_require__(214); + var _Header = __webpack_require__(233); var _Header2 = _interopRequireDefault(_Header); - var _Combobox = __webpack_require__(215); + var _Combobox = __webpack_require__(234); var _Combobox2 = _interopRequireDefault(_Combobox); @@ -29745,6 +29749,10 @@ var _moment2 = _interopRequireDefault(_moment); + var _classnames = __webpack_require__(236); + + var _classnames2 = _interopRequireDefault(_classnames); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function noop() {} @@ -29765,6 +29773,7 @@ propTypes: { clearText: _react.PropTypes.string, prefixCls: _react.PropTypes.string, + className: _react.PropTypes.string, defaultOpenValue: _react.PropTypes.object, value: _react.PropTypes.object, placeholder: _react.PropTypes.string, @@ -29817,8 +29826,11 @@ this.setState({ currentSelectPanel: currentSelectPanel }); }, render: function render() { + var _classNames; + var _props = this.props; var prefixCls = _props.prefixCls; + var className = _props.className; var placeholder = _props.placeholder; var disabledHours = _props.disabledHours; var disabledMinutes = _props.disabledMinutes; @@ -29844,7 +29856,7 @@ return _react2.default.createElement( 'div', - { className: prefixCls + '-inner' }, + { className: (0, _classnames2.default)((_classNames = {}, (0, _defineProperty3.default)(_classNames, prefixCls + '-inner', true), (0, _defineProperty3.default)(_classNames, className, !!className), _classNames)) }, _react2.default.createElement(_Header2.default, { clearText: clearText, prefixCls: prefixCls, @@ -29891,259 +29903,551 @@ /* 214 */ /***/ function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(3); + "use strict"; - var _react2 = _interopRequireDefault(_react); + exports.__esModule = true; - var _moment = __webpack_require__(177); + var _defineProperty = __webpack_require__(215); - var _moment2 = _interopRequireDefault(_moment); + var _defineProperty2 = _interopRequireDefault(_defineProperty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var Header = _react2.default.createClass({ - displayName: 'Header', - - propTypes: { - format: _react.PropTypes.string, - prefixCls: _react.PropTypes.string, - disabledDate: _react.PropTypes.func, - placeholder: _react.PropTypes.string, - clearText: _react.PropTypes.string, - value: _react.PropTypes.object, - hourOptions: _react.PropTypes.array, - minuteOptions: _react.PropTypes.array, - secondOptions: _react.PropTypes.array, - disabledHours: _react.PropTypes.func, - disabledMinutes: _react.PropTypes.func, - disabledSeconds: _react.PropTypes.func, - onChange: _react.PropTypes.func, - onClear: _react.PropTypes.func, - onEsc: _react.PropTypes.func, - allowEmpty: _react.PropTypes.bool, - defaultOpenValue: _react.PropTypes.object, - currentSelectPanel: _react.PropTypes.string - }, - - getInitialState: function getInitialState() { - var _props = this.props; - var value = _props.value; - var format = _props.format; - - return { - str: value && value.format(format) || '', - invalid: false - }; - }, - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - var value = nextProps.value; - var format = nextProps.format; - - this.setState({ - str: value && value.format(format) || '', - invalid: false - }); - }, - onInputChange: function onInputChange(event) { - var str = event.target.value; - this.setState({ - str: str - }); - var _props2 = this.props; - var format = _props2.format; - var hourOptions = _props2.hourOptions; - var minuteOptions = _props2.minuteOptions; - var secondOptions = _props2.secondOptions; - var disabledHours = _props2.disabledHours; - var disabledMinutes = _props2.disabledMinutes; - var disabledSeconds = _props2.disabledSeconds; - var onChange = _props2.onChange; - var allowEmpty = _props2.allowEmpty; - - - if (str) { - var originalValue = this.props.value; - var value = this.getProtoValue().clone(); - var parsed = (0, _moment2.default)(str, format, true); - if (!parsed.isValid()) { - this.setState({ - invalid: true - }); - return; - } - value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); - - // if time value not allowed, response warning. - if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) { - this.setState({ - invalid: true - }); - return; - } - - // if time value is disabled, response warning. - var disabledHourOptions = disabledHours(); - var disabledMinuteOptions = disabledMinutes(value.hour()); - var disabledSecondOptions = disabledSeconds(value.hour(), value.minute()); - if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) { - this.setState({ - invalid: true - }); - return; - } - - if (originalValue) { - if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) { - // keep other fields for rc-calendar - var changedValue = originalValue.clone(); - changedValue.hour(value.hour()); - changedValue.minute(value.minute()); - changedValue.second(value.second()); - onChange(changedValue); - } - } else if (originalValue !== value) { - onChange(value); - } - } else if (allowEmpty) { - onChange(null); - } else { - this.setState({ - invalid: true - }); - return; - } - - this.setState({ - invalid: false - }); - }, - onKeyDown: function onKeyDown(e) { - if (e.keyCode === 27) { - this.props.onEsc(); - } - }, - onClear: function onClear() { - this.setState({ str: '' }); - this.props.onClear(); - }, - getClearButton: function getClearButton() { - var _props3 = this.props; - var prefixCls = _props3.prefixCls; - var allowEmpty = _props3.allowEmpty; - - if (!allowEmpty) { - return null; - } - return _react2.default.createElement('a', { - className: prefixCls + '-clear-btn', - role: 'button', - title: this.props.clearText, - onMouseDown: this.onClear - }); - }, - getProtoValue: function getProtoValue() { - return this.props.value || this.props.defaultOpenValue; - }, - getInput: function getInput() { - var _props4 = this.props; - var prefixCls = _props4.prefixCls; - var placeholder = _props4.placeholder; - var _state = this.state; - var invalid = _state.invalid; - var str = _state.str; - - var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; - return _react2.default.createElement('input', { - className: prefixCls + '-input ' + invalidClass, - ref: 'input', - onKeyDown: this.onKeyDown, - value: str, - placeholder: placeholder, - onChange: this.onInputChange + exports.default = function (obj, key, value) { + if (key in obj) { + (0, _defineProperty2.default)(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true }); - }, - render: function render() { - var prefixCls = this.props.prefixCls; - - return _react2.default.createElement( - 'div', - { className: prefixCls + '-input-wrap' }, - this.getInput(), - this.getClearButton() - ); + } else { + obj[key] = value; } - }); - exports.default = Header; - module.exports = exports['default']; + return obj; + }; /***/ }, /* 215 */ /***/ function(module, exports, __webpack_require__) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - - var _react = __webpack_require__(3); - - var _react2 = _interopRequireDefault(_react); - - var _Select = __webpack_require__(216); - - var _Select2 = _interopRequireDefault(_Select); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - var formatOption = function formatOption(option, disabledOptions) { - var value = '' + option; - if (option < 10) { - value = '0' + option; - } - - var disabled = false; - if (disabledOptions && disabledOptions.indexOf(option) >= 0) { - disabled = true; - } - - return { - value: value, - disabled: disabled - }; + module.exports = { "default": __webpack_require__(216), __esModule: true }; + +/***/ }, +/* 216 */ +/***/ function(module, exports, __webpack_require__) { + + __webpack_require__(217); + var $Object = __webpack_require__(220).Object; + module.exports = function defineProperty(it, key, desc){ + return $Object.defineProperty(it, key, desc); }; + +/***/ }, +/* 217 */ +/***/ function(module, exports, __webpack_require__) { + + var $export = __webpack_require__(218); + // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) + $export($export.S + $export.F * !__webpack_require__(228), 'Object', {defineProperty: __webpack_require__(224).f}); + +/***/ }, +/* 218 */ +/***/ function(module, exports, __webpack_require__) { + + var global = __webpack_require__(219) + , core = __webpack_require__(220) + , ctx = __webpack_require__(221) + , hide = __webpack_require__(223) + , PROTOTYPE = 'prototype'; - var Combobox = _react2.default.createClass({ - displayName: 'Combobox', - - propTypes: { + var $export = function(type, name, source){ + var IS_FORCED = type & $export.F + , IS_GLOBAL = type & $export.G + , IS_STATIC = type & $export.S + , IS_PROTO = type & $export.P + , IS_BIND = type & $export.B + , IS_WRAP = type & $export.W + , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) + , expProto = exports[PROTOTYPE] + , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] + , key, own, out; + if(IS_GLOBAL)source = name; + for(key in source){ + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if(own && key in exports)continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] + // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) + // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? (function(C){ + var F = function(a, b, c){ + if(this instanceof C){ + switch(arguments.length){ + case 0: return new C; + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if(IS_PROTO){ + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); + } + } + }; + // type bitmap + $export.F = 1; // forced + $export.G = 2; // global + $export.S = 4; // static + $export.P = 8; // proto + $export.B = 16; // bind + $export.W = 32; // wrap + $export.U = 64; // safe + $export.R = 128; // real proto method for `library` + module.exports = $export; + +/***/ }, +/* 219 */ +/***/ function(module, exports) { + + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); + if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef + +/***/ }, +/* 220 */ +/***/ function(module, exports) { + + var core = module.exports = {version: '2.4.0'}; + if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef + +/***/ }, +/* 221 */ +/***/ function(module, exports, __webpack_require__) { + + // optional / simple context binding + var aFunction = __webpack_require__(222); + module.exports = function(fn, that, length){ + aFunction(fn); + if(that === undefined)return fn; + switch(length){ + case 1: return function(a){ + return fn.call(that, a); + }; + case 2: return function(a, b){ + return fn.call(that, a, b); + }; + case 3: return function(a, b, c){ + return fn.call(that, a, b, c); + }; + } + return function(/* ...args */){ + return fn.apply(that, arguments); + }; + }; + +/***/ }, +/* 222 */ +/***/ function(module, exports) { + + module.exports = function(it){ + if(typeof it != 'function')throw TypeError(it + ' is not a function!'); + return it; + }; + +/***/ }, +/* 223 */ +/***/ function(module, exports, __webpack_require__) { + + var dP = __webpack_require__(224) + , createDesc = __webpack_require__(232); + module.exports = __webpack_require__(228) ? function(object, key, value){ + return dP.f(object, key, createDesc(1, value)); + } : function(object, key, value){ + object[key] = value; + return object; + }; + +/***/ }, +/* 224 */ +/***/ function(module, exports, __webpack_require__) { + + var anObject = __webpack_require__(225) + , IE8_DOM_DEFINE = __webpack_require__(227) + , toPrimitive = __webpack_require__(231) + , dP = Object.defineProperty; + + exports.f = __webpack_require__(228) ? Object.defineProperty : function defineProperty(O, P, Attributes){ + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if(IE8_DOM_DEFINE)try { + return dP(O, P, Attributes); + } catch(e){ /* empty */ } + if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); + if('value' in Attributes)O[P] = Attributes.value; + return O; + }; + +/***/ }, +/* 225 */ +/***/ function(module, exports, __webpack_require__) { + + var isObject = __webpack_require__(226); + module.exports = function(it){ + if(!isObject(it))throw TypeError(it + ' is not an object!'); + return it; + }; + +/***/ }, +/* 226 */ +/***/ function(module, exports) { + + module.exports = function(it){ + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; + +/***/ }, +/* 227 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = !__webpack_require__(228) && !__webpack_require__(229)(function(){ + return Object.defineProperty(__webpack_require__(230)('div'), 'a', {get: function(){ return 7; }}).a != 7; + }); + +/***/ }, +/* 228 */ +/***/ function(module, exports, __webpack_require__) { + + // Thank's IE8 for his funny defineProperty + module.exports = !__webpack_require__(229)(function(){ + return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; + }); + +/***/ }, +/* 229 */ +/***/ function(module, exports) { + + module.exports = function(exec){ + try { + return !!exec(); + } catch(e){ + return true; + } + }; + +/***/ }, +/* 230 */ +/***/ function(module, exports, __webpack_require__) { + + var isObject = __webpack_require__(226) + , document = __webpack_require__(219).document + // in old IE typeof document.createElement is 'object' + , is = isObject(document) && isObject(document.createElement); + module.exports = function(it){ + return is ? document.createElement(it) : {}; + }; + +/***/ }, +/* 231 */ +/***/ function(module, exports, __webpack_require__) { + + // 7.1.1 ToPrimitive(input [, PreferredType]) + var isObject = __webpack_require__(226); + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + module.exports = function(it, S){ + if(!isObject(it))return it; + var fn, val; + if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; + if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; + if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; + throw TypeError("Can't convert object to primitive value"); + }; + +/***/ }, +/* 232 */ +/***/ function(module, exports) { + + module.exports = function(bitmap, value){ + return { + enumerable : !(bitmap & 1), + configurable: !(bitmap & 2), + writable : !(bitmap & 4), + value : value + }; + }; + +/***/ }, +/* 233 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _moment = __webpack_require__(177); + + var _moment2 = _interopRequireDefault(_moment); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var Header = _react2.default.createClass({ + displayName: 'Header', + + propTypes: { format: _react.PropTypes.string, - defaultOpenValue: _react.PropTypes.object, prefixCls: _react.PropTypes.string, + disabledDate: _react.PropTypes.func, + placeholder: _react.PropTypes.string, + clearText: _react.PropTypes.string, value: _react.PropTypes.object, - onChange: _react.PropTypes.func, - showHour: _react.PropTypes.bool, - showSecond: _react.PropTypes.bool, hourOptions: _react.PropTypes.array, minuteOptions: _react.PropTypes.array, secondOptions: _react.PropTypes.array, disabledHours: _react.PropTypes.func, disabledMinutes: _react.PropTypes.func, disabledSeconds: _react.PropTypes.func, - onCurrentSelectPanelChange: _react.PropTypes.func + onChange: _react.PropTypes.func, + onClear: _react.PropTypes.func, + onEsc: _react.PropTypes.func, + allowEmpty: _react.PropTypes.bool, + defaultOpenValue: _react.PropTypes.object, + currentSelectPanel: _react.PropTypes.string }, - onItemChange: function onItemChange(type, itemValue) { + getInitialState: function getInitialState() { var _props = this.props; - var onChange = _props.onChange; - var defaultOpenValue = _props.defaultOpenValue; + var value = _props.value; + var format = _props.format; + + return { + str: value && value.format(format) || '', + invalid: false + }; + }, + componentWillReceiveProps: function componentWillReceiveProps(nextProps) { + var value = nextProps.value; + var format = nextProps.format; + + this.setState({ + str: value && value.format(format) || '', + invalid: false + }); + }, + onInputChange: function onInputChange(event) { + var str = event.target.value; + this.setState({ + str: str + }); + var _props2 = this.props; + var format = _props2.format; + var hourOptions = _props2.hourOptions; + var minuteOptions = _props2.minuteOptions; + var secondOptions = _props2.secondOptions; + var disabledHours = _props2.disabledHours; + var disabledMinutes = _props2.disabledMinutes; + var disabledSeconds = _props2.disabledSeconds; + var onChange = _props2.onChange; + var allowEmpty = _props2.allowEmpty; + + + if (str) { + var originalValue = this.props.value; + var value = this.getProtoValue().clone(); + var parsed = (0, _moment2.default)(str, format, true); + if (!parsed.isValid()) { + this.setState({ + invalid: true + }); + return; + } + value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second()); + + // if time value not allowed, response warning. + if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) { + this.setState({ + invalid: true + }); + return; + } + + // if time value is disabled, response warning. + var disabledHourOptions = disabledHours(); + var disabledMinuteOptions = disabledMinutes(value.hour()); + var disabledSecondOptions = disabledSeconds(value.hour(), value.minute()); + if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) { + this.setState({ + invalid: true + }); + return; + } + + if (originalValue) { + if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) { + // keep other fields for rc-calendar + var changedValue = originalValue.clone(); + changedValue.hour(value.hour()); + changedValue.minute(value.minute()); + changedValue.second(value.second()); + onChange(changedValue); + } + } else if (originalValue !== value) { + onChange(value); + } + } else if (allowEmpty) { + onChange(null); + } else { + this.setState({ + invalid: true + }); + return; + } + + this.setState({ + invalid: false + }); + }, + onKeyDown: function onKeyDown(e) { + if (e.keyCode === 27) { + this.props.onEsc(); + } + }, + onClear: function onClear() { + this.setState({ str: '' }); + this.props.onClear(); + }, + getClearButton: function getClearButton() { + var _props3 = this.props; + var prefixCls = _props3.prefixCls; + var allowEmpty = _props3.allowEmpty; + + if (!allowEmpty) { + return null; + } + return _react2.default.createElement('a', { + className: prefixCls + '-clear-btn', + role: 'button', + title: this.props.clearText, + onMouseDown: this.onClear + }); + }, + getProtoValue: function getProtoValue() { + return this.props.value || this.props.defaultOpenValue; + }, + getInput: function getInput() { + var _props4 = this.props; + var prefixCls = _props4.prefixCls; + var placeholder = _props4.placeholder; + var _state = this.state; + var invalid = _state.invalid; + var str = _state.str; + + var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; + return _react2.default.createElement('input', { + className: prefixCls + '-input ' + invalidClass, + ref: 'input', + onKeyDown: this.onKeyDown, + value: str, + placeholder: placeholder, + onChange: this.onInputChange + }); + }, + render: function render() { + var prefixCls = this.props.prefixCls; + + return _react2.default.createElement( + 'div', + { className: prefixCls + '-input-wrap' }, + this.getInput(), + this.getClearButton() + ); + } + }); + + exports.default = Header; + module.exports = exports['default']; + +/***/ }, +/* 234 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _react = __webpack_require__(3); + + var _react2 = _interopRequireDefault(_react); + + var _Select = __webpack_require__(235); + + var _Select2 = _interopRequireDefault(_Select); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + var formatOption = function formatOption(option, disabledOptions) { + var value = '' + option; + if (option < 10) { + value = '0' + option; + } + + var disabled = false; + if (disabledOptions && disabledOptions.indexOf(option) >= 0) { + disabled = true; + } + + return { + value: value, + disabled: disabled + }; + }; + + var Combobox = _react2.default.createClass({ + displayName: 'Combobox', + + propTypes: { + format: _react.PropTypes.string, + defaultOpenValue: _react.PropTypes.object, + prefixCls: _react.PropTypes.string, + value: _react.PropTypes.object, + onChange: _react.PropTypes.func, + showHour: _react.PropTypes.bool, + showSecond: _react.PropTypes.bool, + hourOptions: _react.PropTypes.array, + minuteOptions: _react.PropTypes.array, + secondOptions: _react.PropTypes.array, + disabledHours: _react.PropTypes.func, + disabledMinutes: _react.PropTypes.func, + disabledSeconds: _react.PropTypes.func, + onCurrentSelectPanelChange: _react.PropTypes.func + }, + + onItemChange: function onItemChange(type, itemValue) { + var _props = this.props; + var onChange = _props.onChange; + var defaultOpenValue = _props.defaultOpenValue; var value = (this.props.value || defaultOpenValue).clone(); if (type === 'hour') { @@ -30247,7 +30551,7 @@ module.exports = exports['default']; /***/ }, -/* 216 */ +/* 235 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -30256,7 +30560,7 @@ value: true }); - var _defineProperty2 = __webpack_require__(217); + var _defineProperty2 = __webpack_require__(214); var _defineProperty3 = _interopRequireDefault(_defineProperty2); @@ -30388,298 +30692,6 @@ exports.default = Select; module.exports = exports['default']; -/***/ }, -/* 217 */ -/***/ function(module, exports, __webpack_require__) { - - "use strict"; - - exports.__esModule = true; - - var _defineProperty = __webpack_require__(218); - - var _defineProperty2 = _interopRequireDefault(_defineProperty); - - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - - exports.default = function (obj, key, value) { - if (key in obj) { - (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; - }; - -/***/ }, -/* 218 */ -/***/ function(module, exports, __webpack_require__) { - - module.exports = { "default": __webpack_require__(219), __esModule: true }; - -/***/ }, -/* 219 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(220); - var $Object = __webpack_require__(223).Object; - module.exports = function defineProperty(it, key, desc){ - return $Object.defineProperty(it, key, desc); - }; - -/***/ }, -/* 220 */ -/***/ function(module, exports, __webpack_require__) { - - var $export = __webpack_require__(221); - // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) - $export($export.S + $export.F * !__webpack_require__(231), 'Object', {defineProperty: __webpack_require__(227).f}); - -/***/ }, -/* 221 */ -/***/ function(module, exports, __webpack_require__) { - - var global = __webpack_require__(222) - , core = __webpack_require__(223) - , ctx = __webpack_require__(224) - , hide = __webpack_require__(226) - , PROTOTYPE = 'prototype'; - - var $export = function(type, name, source){ - var IS_FORCED = type & $export.F - , IS_GLOBAL = type & $export.G - , IS_STATIC = type & $export.S - , IS_PROTO = type & $export.P - , IS_BIND = type & $export.B - , IS_WRAP = type & $export.W - , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) - , expProto = exports[PROTOTYPE] - , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] - , key, own, out; - if(IS_GLOBAL)source = name; - for(key in source){ - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if(own && key in exports)continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] - // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) - // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? (function(C){ - var F = function(a, b, c){ - if(this instanceof C){ - switch(arguments.length){ - case 0: return new C; - case 1: return new C(a); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - // make static versions for prototype methods - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - if(IS_PROTO){ - (exports.virtual || (exports.virtual = {}))[key] = out; - // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); - } - } - }; - // type bitmap - $export.F = 1; // forced - $export.G = 2; // global - $export.S = 4; // static - $export.P = 8; // proto - $export.B = 16; // bind - $export.W = 32; // wrap - $export.U = 64; // safe - $export.R = 128; // real proto method for `library` - module.exports = $export; - -/***/ }, -/* 222 */ -/***/ function(module, exports) { - - // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 - var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); - if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef - -/***/ }, -/* 223 */ -/***/ function(module, exports) { - - var core = module.exports = {version: '2.4.0'}; - if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef - -/***/ }, -/* 224 */ -/***/ function(module, exports, __webpack_require__) { - - // optional / simple context binding - var aFunction = __webpack_require__(225); - module.exports = function(fn, that, length){ - aFunction(fn); - if(that === undefined)return fn; - switch(length){ - case 1: return function(a){ - return fn.call(that, a); - }; - case 2: return function(a, b){ - return fn.call(that, a, b); - }; - case 3: return function(a, b, c){ - return fn.call(that, a, b, c); - }; - } - return function(/* ...args */){ - return fn.apply(that, arguments); - }; - }; - -/***/ }, -/* 225 */ -/***/ function(module, exports) { - - module.exports = function(it){ - if(typeof it != 'function')throw TypeError(it + ' is not a function!'); - return it; - }; - -/***/ }, -/* 226 */ -/***/ function(module, exports, __webpack_require__) { - - var dP = __webpack_require__(227) - , createDesc = __webpack_require__(235); - module.exports = __webpack_require__(231) ? function(object, key, value){ - return dP.f(object, key, createDesc(1, value)); - } : function(object, key, value){ - object[key] = value; - return object; - }; - -/***/ }, -/* 227 */ -/***/ function(module, exports, __webpack_require__) { - - var anObject = __webpack_require__(228) - , IE8_DOM_DEFINE = __webpack_require__(230) - , toPrimitive = __webpack_require__(234) - , dP = Object.defineProperty; - - exports.f = __webpack_require__(231) ? Object.defineProperty : function defineProperty(O, P, Attributes){ - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if(IE8_DOM_DEFINE)try { - return dP(O, P, Attributes); - } catch(e){ /* empty */ } - if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); - if('value' in Attributes)O[P] = Attributes.value; - return O; - }; - -/***/ }, -/* 228 */ -/***/ function(module, exports, __webpack_require__) { - - var isObject = __webpack_require__(229); - module.exports = function(it){ - if(!isObject(it))throw TypeError(it + ' is not an object!'); - return it; - }; - -/***/ }, -/* 229 */ -/***/ function(module, exports) { - - module.exports = function(it){ - return typeof it === 'object' ? it !== null : typeof it === 'function'; - }; - -/***/ }, -/* 230 */ -/***/ function(module, exports, __webpack_require__) { - - module.exports = !__webpack_require__(231) && !__webpack_require__(232)(function(){ - return Object.defineProperty(__webpack_require__(233)('div'), 'a', {get: function(){ return 7; }}).a != 7; - }); - -/***/ }, -/* 231 */ -/***/ function(module, exports, __webpack_require__) { - - // Thank's IE8 for his funny defineProperty - module.exports = !__webpack_require__(232)(function(){ - return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; - }); - -/***/ }, -/* 232 */ -/***/ function(module, exports) { - - module.exports = function(exec){ - try { - return !!exec(); - } catch(e){ - return true; - } - }; - -/***/ }, -/* 233 */ -/***/ function(module, exports, __webpack_require__) { - - var isObject = __webpack_require__(229) - , document = __webpack_require__(222).document - // in old IE typeof document.createElement is 'object' - , is = isObject(document) && isObject(document.createElement); - module.exports = function(it){ - return is ? document.createElement(it) : {}; - }; - -/***/ }, -/* 234 */ -/***/ function(module, exports, __webpack_require__) { - - // 7.1.1 ToPrimitive(input [, PreferredType]) - var isObject = __webpack_require__(229); - // instead of the ES6 spec version, we didn't implement @@toPrimitive case - // and the second argument - flag - preferred type is a string - module.exports = function(it, S){ - if(!isObject(it))return it; - var fn, val; - if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; - if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; - if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; - throw TypeError("Can't convert object to primitive value"); - }; - -/***/ }, -/* 235 */ -/***/ function(module, exports) { - - module.exports = function(bitmap, value){ - return { - enumerable : !(bitmap & 1), - configurable: !(bitmap & 2), - writable : !(bitmap & 4), - value : value - }; - }; - /***/ }, /* 236 */ /***/ function(module, exports, __webpack_require__) { -- cgit v1.2.3