\n );\n }\n}\n\n\n", "desc": " 搜索刷新表格数据" }];
var Demo = function (_Component) {
_inherits(Demo, _Component);
@@ -6212,26 +6212,6 @@
var _src2 = _interopRequireDefault(_src);
- var _beeCheckbox = __webpack_require__(84);
-
- var _beeCheckbox2 = _interopRequireDefault(_beeCheckbox);
-
- var _beeButton = __webpack_require__(62);
-
- var _beeButton2 = _interopRequireDefault(_beeButton);
-
- var _multiSelect = __webpack_require__(86);
-
- var _multiSelect2 = _interopRequireDefault(_multiSelect);
-
- var _sort = __webpack_require__(87);
-
- var _sort2 = _interopRequireDefault(_sort);
-
- var _sum = __webpack_require__(90);
-
- var _sum2 = _interopRequireDefault(_sum);
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
@@ -6241,136 +6221,66 @@
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
- *
- * @title 列排序、全选功能、合计
- * @description 列排序、全选功能、合计(通过使用的封装好的功能方法实现复杂功能,简单易用!)
- *
- */
+ *
+ * @title 简单表格
+ * @description
+ *
+ */
- var columns13 = [{
- title: "名字",
- dataIndex: "a",
- key: "a",
- width: 200
- }, {
- title: "性别",
- dataIndex: "b",
- key: "b",
- width: 200
- }, {
- title: "年龄",
- dataIndex: "c",
- key: "c",
- width: 200,
- sumCol: true,
- sorter: function sorter(a, b) {
- return a.c - b.c;
- }
- }, {
- title: "武功级别",
+ var columns = [{ title: "用户名", dataIndex: "a", key: "a", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, { title: "年龄", dataIndex: "c", key: "c", width: 200 }, {
+ title: "操作",
dataIndex: "d",
key: "d",
- width: 200
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(
+ "a",
+ {
+ href: "#",
+ onClick: function onClick() {
+ alert('这是第' + index + '列,内容为:' + text);
+ }
+ },
+ "\u4E00\u4E9B\u64CD\u4F5C"
+ );
+ }
}];
- var data13 = [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }];
- var data13_1 = [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "杨过", b: "男", c: 30, d: "内行", key: "22" }, { a: "杨过", b: "男", c: 30, d: "内行", key: "222" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }];
- //拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常
- var ComplexTable = (0, _multiSelect2["default"])((0, _sum2["default"])((0, _sort2["default"])(_src2["default"])));
+ var data = [{ a: "令狐冲", b: "男", c: 41, d: "操作", key: "1" }, { a: "杨过", b: "男", c: 67, d: "操作", key: "2" }, { a: "郭靖", b: "男", c: 25, d: "操作", key: "3" }];
- var Demo13 = function (_Component) {
- _inherits(Demo13, _Component);
+ var Demo1 = function (_Component) {
+ _inherits(Demo1, _Component);
- function Demo13(props) {
- _classCallCheck(this, Demo13);
+ function Demo1() {
+ _classCallCheck(this, Demo1);
- var _this = _possibleConstructorReturn(this, _Component.call(this, props));
-
- _this.getSelectedDataFunc = function (data) {
- console.log(data);
- _this.setState({
- data13: data
- });
- };
-
- _this.selectDisabled = function (record, index) {
- console.log(record);
- if (index === 1) {
- return true;
- }
- return false;
- };
-
- _this.selectedRow = function (record, index) {
- // console.log(record);
- // if (index === 0) {
- return true;
- // }
- // return false;
- };
-
- _this.onClick = function () {
- _this.setState({
- selectedRow: function selectedRow() {}
- });
- };
-
- _this.onClick1 = function () {
- _this.setState({
- selectDisabled: function selectDisabled(record, index) {
- console.log(record);
- if (index === 2) {
- return true;
- }
- return false;
- }
- });
- };
-
- _this.state = {
- data13: data13,
- selectedRow: _this.selectedRow,
- selectDisabled: _this.selectDisabled
- };
- return _this;
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
}
- Demo13.prototype.render = function render() {
- var multiObj = {
- type: "checkbox"
- };
- return _react2["default"].createElement(
- "div",
- null,
- _react2["default"].createElement(
- _beeButton2["default"],
- { className: "editable-add-btn", onClick: this.onClick },
- "change selectedRow"
- ),
- _react2["default"].createElement(
- _beeButton2["default"],
- {
- className: "editable-add-btn",
- style: { marginLeft: "5px" },
- onClick: this.onClick1
- },
- "change selectDisabled"
- ),
- _react2["default"].createElement(ComplexTable
- // selectDisabled={this.state.selectDisabled}
- , { selectedRow: this.state.selectedRow,
- columns: columns13,
- data: this.state.data13,
- multiSelect: multiObj,
- getSelectedDataFunc: this.getSelectedDataFunc
- })
- );
+ Demo1.prototype.render = function render() {
+ return _react2["default"].createElement(_src2["default"], {
+ columns: columns,
+ data: data,
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u8FD9\u662F\u4E00\u4E2A\u6807\u9898"
+ );
+ },
+ footer: function footer(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u8868\u5C3E: \u6211\u662F\u5C0F\u5C3E\u5DF4"
+ );
+ }
+ });
};
- return Demo13;
+ return Demo1;
}(_react.Component);
- exports["default"] = Demo13;
+ exports["default"] = Demo1;
module.exports = exports["default"];
/***/ }),
@@ -9119,7 +9029,566 @@
value: true
});
- var _Checkbox = __webpack_require__(85);
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 无数据时显示
+ * @description 无数据时显示效果展示(可自定义)
+ *
+ * import {Table} from 'tinper-bee';
+ */
+
+ var columns10 = [{
+ title: "Name",
+ dataIndex: "name",
+ key: "name",
+ width: "40%"
+ }, {
+ title: "Age",
+ dataIndex: "age",
+ key: "age",
+ width: "30%"
+ }, {
+ title: "Address",
+ dataIndex: "address",
+ key: "address"
+ }];
+
+ var data10 = [];
+
+ var emptyFunc = function emptyFunc() {
+ return _react2['default'].createElement(
+ 'span',
+ null,
+ '\u8FD9\u91CC\u6CA1\u6709\u6570\u636E\uFF01'
+ );
+ };
+
+ var Demo10 = function (_Component) {
+ _inherits(Demo10, _Component);
+
+ function Demo10() {
+ _classCallCheck(this, Demo10);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo10.prototype.render = function render() {
+ return _react2['default'].createElement(_src2['default'], { columns: columns10, data: data10, emptyText: emptyFunc });
+ };
+
+ return Demo10;
+ }(_react.Component);
+
+ exports['default'] = Demo10;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 85 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 列排序
+ * @description 点击列的上下按钮即可排序
+ *
+ */
+
+ var columns11 = [{
+ title: "名字",
+ dataIndex: "a",
+ key: "a",
+ width: 100
+ }, {
+ title: "性别",
+ dataIndex: "b",
+ key: "b",
+ width: 100
+ }, {
+ title: "年龄",
+ dataIndex: "c",
+ key: "c",
+ width: 200,
+ sorter: function sorter(a, b) {
+ return a.c - b.c;
+ }
+ }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d"
+ }];
+
+ var data11 = [{ a: "杨过", b: "男", c: 30, d: '内行', key: "2" }, { a: "令狐冲", b: "男", c: 41, d: '大侠', key: "1" }, { a: "郭靖", b: "男", c: 25, d: '大侠', key: "3" }];
+
+ var defaultProps11 = {
+ prefixCls: "bee-table"
+ };
+
+ var Demo11 = function (_Component) {
+ _inherits(Demo11, _Component);
+
+ function Demo11(props) {
+ _classCallCheck(this, Demo11);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.toggleSortOrder = function (order, column) {
+ var _this$state = _this.state,
+ sortOrder = _this$state.sortOrder,
+ data = _this$state.data,
+ oldData = _this$state.oldData;
+
+ var ascend_sort = function ascend_sort(key) {
+ return function (a, b) {
+ return a.key - b.key;
+ };
+ };
+ var descend_sort = function descend_sort(key) {
+ return function (a, b) {
+ return b.key - a.key;
+ };
+ };
+ if (sortOrder === order) {
+ // 切换为未排序状态
+ order = "";
+ }
+ if (!oldData) {
+ oldData = data.concat();
+ }
+ if (order === "ascend") {
+ data = data.sort(function (a, b) {
+ return column.sorter(a, b);
+ });
+ } else if (order === "descend") {
+ data = data.sort(function (a, b) {
+ return column.sorter(b, a);
+ });
+ } else {
+ data = oldData.concat();
+ }
+ _this.setState({
+ sortOrder: order,
+ data: data,
+ oldData: oldData
+ });
+ };
+
+ _this.state = {
+ sortOrder: "",
+ data: data11
+ };
+ return _this;
+ }
+
+ Demo11.prototype.renderColumnsDropdown = function renderColumnsDropdown(columns) {
+ var _this2 = this;
+
+ var sortOrder = this.state.sortOrder;
+ var prefixCls = this.props.prefixCls;
+
+
+ return columns.map(function (originColumn) {
+ var column = _extends({}, originColumn);
+ var sortButton = void 0;
+ if (column.sorter) {
+ var isAscend = sortOrder === "ascend";
+ var isDescend = sortOrder === "descend";
+ sortButton = _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-column-sorter' },
+ _react2['default'].createElement(
+ 'span',
+ {
+ className: prefixCls + '-column-sorter-up ' + (isAscend ? "on" : "off"),
+ title: '\u2191',
+ onClick: function onClick() {
+ return _this2.toggleSortOrder("ascend", column);
+ }
+ },
+ _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-triangle-up' })
+ ),
+ _react2['default'].createElement(
+ 'span',
+ {
+ className: prefixCls + '-column-sorter-down ' + (isDescend ? "on" : "off"),
+ title: '\u2193',
+ onClick: function onClick() {
+ return _this2.toggleSortOrder("descend", column);
+ }
+ },
+ _react2['default'].createElement(_beeIcon2['default'], { type: 'uf-triangle-down' })
+ )
+ );
+ }
+ column.title = _react2['default'].createElement(
+ 'span',
+ null,
+ column.title,
+ sortButton
+ );
+ return column;
+ });
+ };
+
+ Demo11.prototype.render = function render() {
+ var columns = this.renderColumnsDropdown(columns11);
+ return _react2['default'].createElement(_src2['default'], { columns: columns, data: this.state.data });
+ };
+
+ return Demo11;
+ }(_react.Component);
+
+ Demo11.defaultProps = defaultProps11;
+
+ exports['default'] = Demo11;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 86 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Icon = __webpack_require__(87);
+
+ var _Icon2 = _interopRequireDefault(_Icon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Icon2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 87 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ type: _propTypes2["default"].string
+
+ };
+ /**
+ * badge 默认显示内容1
+ */
+ var defaultProps = {
+ clsPrefix: 'uf'
+ };
+
+ var Icon = function (_Component) {
+ _inherits(Icon, _Component);
+
+ function Icon(props) {
+ _classCallCheck(this, Icon);
+
+ return _possibleConstructorReturn(this, _Component.call(this, props));
+ }
+
+ Icon.prototype.render = function render() {
+ var _props = this.props,
+ type = _props.type,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ others = _objectWithoutProperties(_props, ['type', 'className', 'clsPrefix']);
+
+ var clsObj = {};
+
+ var classNames = (0, _classnames2["default"])(clsPrefix, type);
+
+ return _react2["default"].createElement('i', _extends({}, others, { className: (0, _classnames2["default"])(classNames, className) }));
+ };
+
+ return Icon;
+ }(_react.Component);
+
+ Icon.defaultProps = defaultProps;
+ Icon.propTypes = propTypes;
+
+ exports["default"] = Icon;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 88 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeCheckbox = __webpack_require__(89);
+
+ var _beeCheckbox2 = _interopRequireDefault(_beeCheckbox);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 全选功能
+ * @description 点击表格左列按钮即可选中,并且在选中的回调函数中能获取到选中的数据(未使用封装好的全选功能)
+ *
+ */
+
+ var columns12 = [{
+ title: "名字",
+ dataIndex: "a",
+ key: "a",
+ width: 100
+ }, {
+ title: "性别",
+ dataIndex: "b",
+ key: "b",
+ width: 100
+ }, {
+ title: "年龄",
+ dataIndex: "c",
+ key: "c",
+ width: 200,
+ sorter: function sorter(a, b) {
+ return a.c - b.c;
+ }
+ }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d"
+ }];
+
+ var data12 = [{ a: "杨过", b: "男", c: 30, d: '内行', key: "2" }, { a: "令狐冲", b: "男", c: 41, d: '大侠', key: "1" }, { a: "郭靖", b: "男", c: 25, d: '大侠', key: "3" }];
+
+ var defaultProps12 = {
+ prefixCls: "bee-table",
+ multiSelect: {
+ type: "checkbox",
+ param: "key"
+ }
+ };
+
+ var Demo12 = function (_Component) {
+ _inherits(Demo12, _Component);
+
+ function Demo12(props) {
+ _classCallCheck(this, Demo12);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.onAllCheckChange = function () {
+ var self = _this;
+ var checkedArray = [];
+ var listData = self.state.data.concat();
+ var selIds = [];
+ // let id = self.props.multiSelect.param;
+ for (var i = 0; i < self.state.checkedArray.length; i++) {
+ checkedArray[i] = !self.state.checkedAll;
+ }
+ // if (self.state.checkedAll) {
+ // selIds = [];
+ // } else {
+ // for (var i = 0; i < listData.length; i++) {
+ // selIds[i] = listData[i][id];
+ // }
+ // }
+ self.setState({
+ checkedAll: !self.state.checkedAll,
+ checkedArray: checkedArray
+ // selIds: selIds
+ });
+ // self.props.onSelIds(selIds);
+ };
+
+ _this.onCheckboxChange = function (text, record, index) {
+ var self = _this;
+ var allFlag = false;
+ // let selIds = self.state.selIds;
+ // let id = self.props.postId;
+ var checkedArray = self.state.checkedArray.concat();
+ // if (self.state.checkedArray[index]) {
+ // selIds.remove(record[id]);
+ // } else {
+ // selIds.push(record[id]);
+ // }
+ checkedArray[index] = !self.state.checkedArray[index];
+ for (var i = 0; i < self.state.checkedArray.length; i++) {
+ if (!checkedArray[i]) {
+ allFlag = false;
+ break;
+ } else {
+ allFlag = true;
+ }
+ }
+ self.setState({
+ checkedAll: allFlag,
+ checkedArray: checkedArray
+ // selIds: selIds
+ });
+ // self.props.onSelIds(selIds);
+ };
+
+ _this.state = {
+ checkedAll: false,
+ checkedArray: [false, false, false],
+ data: data12
+ };
+ return _this;
+ }
+
+ Demo12.prototype.renderColumnsMultiSelect = function renderColumnsMultiSelect(columns) {
+ var _this2 = this;
+
+ var _state = this.state,
+ data = _state.data,
+ checkedArray = _state.checkedArray;
+ var multiSelect = this.props.multiSelect;
+
+ var select_column = {};
+ var indeterminate_bool = false;
+ // let indeterminate_bool1 = true;
+ if (multiSelect && multiSelect.type === "checkbox") {
+ var i = checkedArray.length;
+ while (i--) {
+ if (checkedArray[i]) {
+ indeterminate_bool = true;
+ break;
+ }
+ }
+ var defaultColumns = [{
+ title: _react2['default'].createElement(_beeCheckbox2['default'], {
+ className: 'table-checkbox',
+ checked: this.state.checkedAll,
+ indeterminate: indeterminate_bool && !this.state.checkedAll,
+ onChange: this.onAllCheckChange
+ }),
+ key: "checkbox",
+ dataIndex: "checkbox",
+ width: "5%",
+ render: function render(text, record, index) {
+ return _react2['default'].createElement(_beeCheckbox2['default'], {
+ className: 'table-checkbox',
+ checked: _this2.state.checkedArray[index],
+ onChange: _this2.onCheckboxChange.bind(_this2, text, record, index)
+ });
+ }
+ }];
+ columns = defaultColumns.concat(columns);
+ }
+ return columns;
+ };
+
+ Demo12.prototype.render = function render() {
+ var columns = this.renderColumnsMultiSelect(columns12);
+ return _react2['default'].createElement(_src2['default'], { columns: columns, data: data12 });
+ };
+
+ return Demo12;
+ }(_react.Component);
+
+ Demo12.defaultProps = defaultProps12;
+
+ exports['default'] = Demo12;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 89 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Checkbox = __webpack_require__(90);
var _Checkbox2 = _interopRequireDefault(_Checkbox);
@@ -9129,7 +9598,7 @@
module.exports = exports['default'];
/***/ }),
-/* 85 */
+/* 90 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
@@ -9193,10 +9662,12 @@
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+ _initialiseProps.call(_this);
+
_this.state = {
checked: 'checked' in props ? props.checked : props.defaultChecked
};
- _this.changeState = _this.changeState.bind(_this);
+ _this.doubleClickFlag = null;
return _this;
}
@@ -9208,23 +9679,6 @@
}
};
- Checkbox.prototype.changeState = function changeState() {
- var props = this.props;
-
- if (props.disabled) {
- return;
- }
- if (!('checked' in props)) {
- this.setState({
- checked: !this.state.checked
- });
- }
-
- if (props.onChange instanceof Function) {
- props.onChange(!this.state.checked);
- }
- };
-
Checkbox.prototype.render = function render() {
var _props = this.props,
disabled = _props.disabled,
@@ -9232,11 +9686,13 @@
size = _props.size,
className = _props.className,
indeterminate = _props.indeterminate,
+ onClick = _props.onClick,
children = _props.children,
checked = _props.checked,
clsPrefix = _props.clsPrefix,
+ onDoubleClick = _props.onDoubleClick,
onChange = _props.onChange,
- others = _objectWithoutProperties(_props, ['disabled', 'colors', 'size', 'className', 'indeterminate', 'children', 'checked', 'clsPrefix', 'onChange']);
+ others = _objectWithoutProperties(_props, ['disabled', 'colors', 'size', 'className', 'indeterminate', 'onClick', 'children', 'checked', 'clsPrefix', 'onDoubleClick', 'onChange']);
var input = _react2["default"].createElement('input', _extends({}, others, {
type: 'checkbox',
@@ -9264,7 +9720,10 @@
return _react2["default"].createElement(
'label',
- { className: (0, _classnames2["default"])(classNames, className), onClick: this.changeState },
+ {
+ className: (0, _classnames2["default"])(classNames, className),
+ onDoubleClick: this.handledbClick,
+ onClick: this.changeState },
input,
_react2["default"].createElement(
'label',
@@ -9277,6 +9736,40 @@
return Checkbox;
}(_react2["default"].Component);
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.changeState = function (e) {
+ var props = _this2.props;
+
+ clearTimeout(_this2.doubleClickFlag);
+ props.onClick(e);
+ //执行延时
+ _this2.doubleClickFlag = setTimeout(function () {
+ //do function在此处写单击事件要执行的代码
+ if (props.disabled) {
+ return;
+ }
+ if (!('checked' in props)) {
+ _this2.setState({
+ checked: !_this2.state.checked
+ });
+ }
+
+ if (props.onChange instanceof Function) {
+ props.onChange(!_this2.state.checked);
+ }
+ }, 300);
+ };
+
+ this.handledbClick = function (e) {
+ var onDoubleClick = _this2.props.onDoubleClick;
+
+ clearTimeout(_this2.doubleClickFlag);
+ onDoubleClick && onDoubleClick(_this2.state.checked, e);
+ };
+ };
+
Checkbox.propTypes = propTypes;
Checkbox.defaultProps = defaultProps;
@@ -9284,7 +9777,183 @@
module.exports = exports['default'];
/***/ }),
-/* 86 */
+/* 91 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeCheckbox = __webpack_require__(89);
+
+ var _beeCheckbox2 = _interopRequireDefault(_beeCheckbox);
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _multiSelect = __webpack_require__(92);
+
+ var _multiSelect2 = _interopRequireDefault(_multiSelect);
+
+ var _sort = __webpack_require__(93);
+
+ var _sort2 = _interopRequireDefault(_sort);
+
+ var _sum = __webpack_require__(94);
+
+ var _sum2 = _interopRequireDefault(_sum);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 列排序、全选功能、合计
+ * @description 列排序、全选功能、合计(通过使用的封装好的功能方法实现复杂功能,简单易用!)
+ *
+ */
+
+ var columns13 = [{
+ title: "名字",
+ dataIndex: "a",
+ key: "a",
+ width: 200
+ }, {
+ title: "性别",
+ dataIndex: "b",
+ key: "b",
+ width: 200
+ }, {
+ title: "年龄",
+ dataIndex: "c",
+ key: "c",
+ width: 200,
+ sumCol: true,
+ sorter: function sorter(a, b) {
+ return a.c - b.c;
+ }
+ }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d",
+ width: 200
+ }];
+
+ var data13 = [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }];
+ var data13_1 = [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "杨过", b: "男", c: 30, d: "内行", key: "22" }, { a: "杨过", b: "男", c: 30, d: "内行", key: "222" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }];
+ //拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常
+ var ComplexTable = (0, _multiSelect2["default"])((0, _sum2["default"])((0, _sort2["default"])(_src2["default"])));
+
+ var Demo13 = function (_Component) {
+ _inherits(Demo13, _Component);
+
+ function Demo13(props) {
+ _classCallCheck(this, Demo13);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.getSelectedDataFunc = function (data) {
+ console.log(data);
+ };
+
+ _this.selectDisabled = function (record, index) {
+ console.log(record);
+ if (index === 1) {
+ return true;
+ }
+ return false;
+ };
+
+ _this.selectedRow = function (record, index) {
+ console.log(record);
+ if (index === 0) {
+ return true;
+ }
+ return false;
+ };
+
+ _this.onClick = function () {
+ _this.setState({
+ selectedRow: function selectedRow() {}
+ });
+ };
+
+ _this.onClick1 = function () {
+ _this.setState({
+ selectDisabled: function selectDisabled(record, index) {
+ console.log(record);
+ if (index === 2) {
+ return true;
+ }
+ return false;
+ }
+ });
+ };
+
+ _this.state = {
+ data13: data13,
+ selectedRow: _this.selectedRow,
+ selectDisabled: _this.selectDisabled
+ };
+ return _this;
+ }
+
+ Demo13.prototype.render = function render() {
+ var multiObj = {
+ type: "checkbox"
+ };
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ { className: "editable-add-btn", onClick: this.onClick },
+ "change selectedRow"
+ ),
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ {
+ className: "editable-add-btn",
+ style: { marginLeft: "5px" },
+ onClick: this.onClick1
+ },
+ "change selectDisabled"
+ ),
+ _react2["default"].createElement(ComplexTable, {
+ selectDisabled: this.state.selectDisabled,
+ selectedRow: this.state.selectedRow,
+ columns: columns13,
+ data: this.state.data13,
+ multiSelect: multiObj,
+ getSelectedDataFunc: this.getSelectedDataFunc
+ })
+ );
+ };
+
+ return Demo13;
+ }(_react.Component);
+
+ exports["default"] = Demo13;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 92 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -9301,7 +9970,7 @@
var _react2 = _interopRequireDefault(_react);
- var _beeCheckbox = __webpack_require__(84);
+ var _beeCheckbox = __webpack_require__(89);
var _beeCheckbox2 = _interopRequireDefault(_beeCheckbox);
@@ -9561,7 +10230,7 @@
module.exports = exports["default"];
/***/ }),
-/* 87 */
+/* 93 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -9578,7 +10247,7 @@
var _react2 = _interopRequireDefault(_react);
- var _beeIcon = __webpack_require__(88);
+ var _beeIcon = __webpack_require__(86);
var _beeIcon2 = _interopRequireDefault(_beeIcon);
@@ -9723,105 +10392,7 @@
module.exports = exports["default"];
/***/ }),
-/* 88 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _Icon = __webpack_require__(89);
-
- var _Icon2 = _interopRequireDefault(_Icon);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- exports["default"] = _Icon2["default"];
- module.exports = exports['default'];
-
-/***/ }),
-/* 89 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-
- var _react = __webpack_require__(4);
-
- var _react2 = _interopRequireDefault(_react);
-
- var _classnames = __webpack_require__(3);
-
- var _classnames2 = _interopRequireDefault(_classnames);
-
- var _propTypes = __webpack_require__(5);
-
- var _propTypes2 = _interopRequireDefault(_propTypes);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
-
- function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
-
- var propTypes = {
- type: _propTypes2["default"].string
-
- };
- /**
- * badge 默认显示内容1
- */
- var defaultProps = {
- clsPrefix: 'uf'
- };
-
- var Icon = function (_Component) {
- _inherits(Icon, _Component);
-
- function Icon(props) {
- _classCallCheck(this, Icon);
-
- return _possibleConstructorReturn(this, _Component.call(this, props));
- }
-
- Icon.prototype.render = function render() {
- var _props = this.props,
- type = _props.type,
- className = _props.className,
- clsPrefix = _props.clsPrefix,
- others = _objectWithoutProperties(_props, ['type', 'className', 'clsPrefix']);
-
- var clsObj = {};
-
- var classNames = (0, _classnames2["default"])(clsPrefix, type);
-
- return _react2["default"].createElement('i', _extends({}, others, { className: (0, _classnames2["default"])(classNames, className) }));
- };
-
- return Icon;
- }(_react.Component);
-
- Icon.defaultProps = defaultProps;
- Icon.propTypes = propTypes;
-
- exports["default"] = Icon;
- module.exports = exports['default'];
-
-/***/ }),
-/* 90 */
+/* 94 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -9921,6 +10492,44010 @@
}
module.exports = exports["default"];
+/***/ }),
+/* 95 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeAnimate = __webpack_require__(96);
+
+ var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
+
+ var _beeTooltip = __webpack_require__(101);
+
+ var _beeTooltip2 = _interopRequireDefault(_beeTooltip);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _beeCheckbox = __webpack_require__(89);
+
+ var _beeCheckbox2 = _interopRequireDefault(_beeCheckbox);
+
+ var _beeSelect = __webpack_require__(123);
+
+ var _beeSelect2 = _interopRequireDefault(_beeSelect);
+
+ var _InputRender = __webpack_require__(155);
+
+ var _InputRender2 = _interopRequireDefault(_InputRender);
+
+ var _DateRender = __webpack_require__(168);
+
+ var _DateRender2 = _interopRequireDefault(_DateRender);
+
+ var _SelectRender = __webpack_require__(436);
+
+ var _SelectRender2 = _interopRequireDefault(_SelectRender);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 编辑态表格
+ * @description 这是带有多种不同格式的编辑态表格(编辑态是通过使用不同的render来达到不同编辑格式)
+ *
+ */
+
+ var format = "YYYY-MM-DD";
+ var format2 = "YYYY-MM";
+ var format3 = "YYYY-MM-DD HH:mm:ss";
+
+ var dateInputPlaceholder = "选择日期";
+ var dateInputPlaceholder2 = "选择年月";
+ var dataSource = [{
+ key: "boyuzhou",
+ value: "jack"
+ }, {
+ key: "renhualiu",
+ value: "lucy"
+ }, {
+ key: "yuzhao",
+ value: "yiminghe"
+ }];
+
+ var Demo14 = function (_React$Component) {
+ _inherits(Demo14, _React$Component);
+
+ function Demo14(props) {
+ _classCallCheck(this, Demo14);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.check = function (flag, obj) {
+ console.log(flag);
+ console.log(obj);
+ };
+
+ _this.onInputChange = function (index, key) {
+ return function (value) {
+ var dataSource = [].concat(_toConsumableArray(_this.state.dataSource));
+ dataSource[index][key] = value;
+ _this.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this.onCheckChange = function (index, key) {
+ return function (value) {
+ var dataSource = [].concat(_toConsumableArray(_this.state.dataSource));
+ dataSource[index][key] = value;
+ _this.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this.onSelectChange = function (index, key) {
+ return function (value) {
+ console.log("selected " + value);
+ var dataSource = [].concat(_toConsumableArray(_this.state.dataSource));
+ dataSource[index][key] = value;
+ _this.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this.onDateChange = function (d) {
+ console.log(d);
+ };
+
+ _this.onDateSelect = function (d) {
+ console.log(d);
+ };
+
+ _this.onDelete = function (index) {
+ return function () {
+ var dataSource = [].concat(_toConsumableArray(_this.state.dataSource));
+ dataSource.splice(index, 1);
+ _this.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this.handleAdd = function () {
+ var _this$state = _this.state,
+ count = _this$state.count,
+ dataSource = _this$state.dataSource;
+
+ var newData = {
+ key: count,
+ name: "\u51E4\u59D0 " + count,
+ age: 32,
+ address: "jack",
+ datepicker: "2017-06-12",
+ MonthPicker: "2017-02"
+ };
+ _this.setState({
+ dataSource: [].concat(_toConsumableArray(dataSource), [newData]),
+ count: count + 1
+ });
+ };
+
+ _this.getBodyWrapper = function (body) {
+ return _react2["default"].createElement(
+ _beeAnimate2["default"],
+ {
+ transitionName: "move",
+ component: "tbody",
+ className: body.props.className
+ },
+ body.props.children
+ );
+ };
+
+ _this.getData = function () {
+ console.log(_this.state.dataSource);
+ };
+
+ _this.state = {
+ dataSource: [{
+ key: "0",
+ name: "沉鱼",
+ number: "10",
+ age: "y",
+ address: "jack",
+ datepicker: "2017-06-12",
+ MonthPicker: "2017-02"
+ }, {
+ key: "1",
+ name: "落雁",
+ number: "100",
+ age: "y",
+ address: "lucy",
+ datepicker: "2017-06-12",
+ MonthPicker: "2017-02"
+ }, {
+ key: "2",
+ name: "闭月",
+ number: "1000",
+ age: "n",
+ address: "lucy",
+ datepicker: "2017-06-12",
+ MonthPicker: "2017-02"
+ }, {
+ key: "3",
+ name: "羞花",
+ number: "9999",
+ age: "y",
+ address: "lucy",
+ datepicker: "2017-06-12",
+ MonthPicker: "2017-02"
+ }],
+ count: 4
+ };
+ _this.columns = [{
+ title: "普通输入",
+ dataIndex: "name",
+ key: "name",
+ width: "150px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(_InputRender2["default"], {
+ name: "name",
+ placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
+ value: text,
+ isclickTrigger: true,
+ check: _this.check,
+ onChange: _this.onInputChange(index, "name"),
+ isRequire: true,
+ method: "blur",
+ errorMessage: _react2["default"].createElement(
+ _beeTooltip2["default"],
+ { overlay: "错误提示" },
+ _react2["default"].createElement(_beeIcon2["default"], { type: "uf-exc-c", className: "" })
+ ),
+ reg: /^[0-9]+$/
+ });
+ }
+ }, {
+ title: "货币输入",
+ dataIndex: "number",
+ key: "number",
+ width: "150px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(_InputRender2["default"], {
+ format: "Currency",
+ name: "name",
+ placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
+ value: text,
+ isclickTrigger: true,
+ check: _this.check,
+ onChange: _this.onInputChange(index, "name"),
+ isRequire: true,
+ method: "blur",
+ errorMessage: _react2["default"].createElement(
+ _beeTooltip2["default"],
+ { overlay: "错误提示" },
+ _react2["default"].createElement(_beeIcon2["default"], { type: "uf-exc-c", className: "" })
+ )
+ });
+ }
+ }, {
+ title: "复选",
+ dataIndex: "age",
+ key: "age",
+ width: "100px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(_beeCheckbox2["default"], {
+ checked: record.age,
+ onChange: _this.onCheckChange(index, "age")
+ });
+ }
+ }, {
+ title: "下拉框",
+ dataIndex: "address",
+ key: "address",
+ width: "200px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(
+ _SelectRender2["default"],
+ {
+ dataSource: dataSource,
+ isclickTrigger: true,
+ value: text,
+ onChange: _this.onSelectChange(index, "address")
+ },
+ _react2["default"].createElement(
+ Option,
+ { value: "jack" },
+ "boyuzhou"
+ ),
+ _react2["default"].createElement(
+ Option,
+ { value: "lucy" },
+ "renhualiu"
+ ),
+ _react2["default"].createElement(
+ Option,
+ { value: "disabled", disabled: true },
+ "Disabled"
+ ),
+ _react2["default"].createElement(
+ Option,
+ { value: "yiminghe" },
+ "yuzhao"
+ )
+ );
+ }
+ }, {
+ title: "年月日",
+ dataIndex: "datepicker",
+ key: "datepicker",
+ width: "200px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(_DateRender2["default"], {
+ value: text,
+ isclickTrigger: true,
+ format: format,
+ onSelect: _this.onDateSelect,
+ onChange: _this.onDateChange,
+ placeholder: dateInputPlaceholder
+ });
+ }
+ }, {
+ title: "年月",
+ dataIndex: "MonthPicker",
+ key: "MonthPicker",
+ width: "200px",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(_DateRender2["default"], {
+ value: text,
+ type: "MonthPicker",
+ isclickTrigger: true,
+ format: format2,
+ onSelect: _this.onSelect,
+ onChange: _this.onChange,
+ placeholder: dateInputPlaceholder2
+ });
+ }
+ }];
+ return _this;
+ }
+
+ Demo14.prototype.render = function render() {
+ var dataSource = this.state.dataSource;
+
+ var columns = this.columns;
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ {
+ className: "editable-add-btn",
+ type: "ghost",
+ onClick: this.handleAdd
+ },
+ "\u6DFB\u52A0\u4E00\u884C"
+ ),
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ {
+ style: { marginLeft: "5px" },
+ className: "editable-add-btn",
+ type: "ghost",
+ onClick: this.getData
+ },
+ "\u83B7\u53D6\u6570\u636E"
+ ),
+ _react2["default"].createElement(_src2["default"], {
+ data: dataSource,
+ columns: columns,
+ getBodyWrapper: this.getBodyWrapper
+ })
+ );
+ };
+
+ return Demo14;
+ }(_react2["default"].Component);
+
+ exports["default"] = Demo14;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 96 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Animate = __webpack_require__(97);
+
+ var _Animate2 = _interopRequireDefault(_Animate);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Animate2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 97 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _ChildrenUtils = __webpack_require__(98);
+
+ var _AnimateChild = __webpack_require__(99);
+
+ var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
+
+ var _util = __webpack_require__(100);
+
+ var _util2 = _interopRequireDefault(_util);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultKey = 'u_animate_' + Date.now();
+
+
+ function getChildrenFromProps(props) {
+ var children = props.children;
+ if (_react2["default"].isValidElement(children)) {
+ if (!children.key) {
+ return _react2["default"].cloneElement(children, {
+ key: defaultKey
+ });
+ }
+ }
+ return children;
+ }
+
+ function noop() {}
+
+ var propTypes = {
+ component: _propTypes2["default"].any,
+ animation: _propTypes2["default"].object,
+ transitionName: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]),
+ transitionEnter: _propTypes2["default"].bool,
+ transitionAppear: _propTypes2["default"].bool,
+ exclusive: _propTypes2["default"].bool,
+ transitionLeave: _propTypes2["default"].bool,
+ onEnd: _propTypes2["default"].func,
+ onEnter: _propTypes2["default"].func,
+ onLeave: _propTypes2["default"].func,
+ onAppear: _propTypes2["default"].func,
+ showProp: _propTypes2["default"].string
+ };
+
+ var defaultProps = {
+ animation: {},
+ component: 'span',
+ transitionEnter: true,
+ transitionLeave: true,
+ transitionAppear: false,
+ onEnd: noop,
+ onEnter: noop,
+ onLeave: noop,
+ onAppear: noop
+ };
+
+ var Animate = function (_Component) {
+ _inherits(Animate, _Component);
+
+ function Animate(props) {
+ _classCallCheck(this, Animate);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.currentlyAnimatingKeys = {};
+ _this.keysToEnter = [];
+ _this.keysToLeave = [];
+ _this.state = {
+ children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(_this.props))
+ };
+
+ _this.performEnter = _this.performEnter.bind(_this);
+ _this.performAppear = _this.performAppear.bind(_this);
+ _this.handleDoneAdding = _this.handleDoneAdding.bind(_this);
+ _this.performLeave = _this.performLeave.bind(_this);
+
+ _this.performLeave = _this.performLeave.bind(_this);
+ _this.handleDoneLeaving = _this.handleDoneLeaving.bind(_this);
+ _this.isValidChildByKey = _this.isValidChildByKey.bind(_this);
+ _this.stop = _this.stop.bind(_this);
+ return _this;
+ }
+
+ Animate.prototype.componentDidMount = function componentDidMount() {
+ var _this2 = this;
+
+ this.mounted = true;
+ var showProp = this.props.showProp;
+ var children = this.state.children;
+ if (showProp) {
+ children = children.filter(function (child) {
+ return !!child.props[showProp];
+ });
+ }
+ children.forEach(function (child) {
+ if (child) {
+ _this2.performAppear(child.key);
+ }
+ });
+ };
+
+ Animate.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.mounted = false;
+ };
+
+ Animate.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ var _this3 = this;
+
+ this.nextProps = nextProps;
+ var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps));
+ var props = this.props;
+ // exclusive needs immediate response
+ if (props.exclusive) {
+ Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {
+ _this3.stop(key);
+ });
+ }
+ var showProp = props.showProp;
+ var currentlyAnimatingKeys = this.currentlyAnimatingKeys;
+ // last props children if exclusive
+ var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children;
+ // in case destroy in showProp mode
+ var newChildren = [];
+ if (showProp) {
+ currentChildren.forEach(function (currentChild) {
+ var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key);
+ var newChild = void 0;
+ if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {
+ newChild = _react2["default"].cloneElement(nextChild || currentChild, _defineProperty({}, showProp, true));
+ } else {
+ newChild = nextChild;
+ }
+ if (newChild) {
+ newChildren.push(newChild);
+ }
+ });
+ nextChildren.forEach(function (nextChild) {
+ if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) {
+ newChildren.push(nextChild);
+ }
+ });
+ } else {
+ newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren);
+ }
+
+ // need render to avoid update
+ this.setState({
+ children: newChildren
+ });
+
+ nextChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ if (showProp) {
+ var showInNext = child.props[showProp];
+ if (hasPrev) {
+ var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
+ if (!showInNow && showInNext) {
+ _this3.keysToEnter.push(key);
+ }
+ } else if (showInNext) {
+ _this3.keysToEnter.push(key);
+ }
+ } else if (!hasPrev) {
+ _this3.keysToEnter.push(key);
+ }
+ });
+
+ currentChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key);
+ if (showProp) {
+ var showInNow = child.props[showProp];
+ if (hasNext) {
+ var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp);
+ if (!showInNext && showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (!hasNext) {
+ _this3.keysToLeave.push(key);
+ }
+ });
+ };
+
+ Animate.prototype.componentDidUpdate = function componentDidUpdate() {
+ var keysToEnter = this.keysToEnter;
+ this.keysToEnter = [];
+ keysToEnter.forEach(this.performEnter);
+ var keysToLeave = this.keysToLeave;
+ this.keysToLeave = [];
+ keysToLeave.forEach(this.performLeave);
+ };
+
+ Animate.prototype.performEnter = function performEnter(key) {
+ // may already remove by exclusive
+ if (this.refs[key]) {
+ this.currentlyAnimatingKeys[key] = true;
+ this.refs[key].componentWillEnter(this.handleDoneAdding.bind(this, key, 'enter'));
+ }
+ };
+
+ Animate.prototype.performAppear = function performAppear(key) {
+ if (this.refs[key]) {
+ this.currentlyAnimatingKeys[key] = true;
+ this.refs[key].componentWillAppear(this.handleDoneAdding.bind(this, key, 'appear'));
+ }
+ };
+
+ Animate.prototype.handleDoneAdding = function handleDoneAdding(key, type) {
+ var props = this.props;
+ delete this.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== this.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ if (!this.isValidChildByKey(currentChildren, key)) {
+ // exclusive will not need this
+ this.performLeave(key);
+ } else {
+ if (type === 'appear') {
+ if (_util2["default"].allowAppearCallback(props)) {
+ props.onAppear(key);
+ props.onEnd(key, true);
+ }
+ } else {
+ if (_util2["default"].allowEnterCallback(props)) {
+ props.onEnter(key);
+ props.onEnd(key, true);
+ }
+ }
+ }
+ };
+
+ Animate.prototype.performLeave = function performLeave(key) {
+ // may already remove by exclusive
+ if (this.refs[key]) {
+ this.currentlyAnimatingKeys[key] = true;
+ this.refs[key].componentWillLeave(this.handleDoneLeaving.bind(this, key));
+ }
+ };
+
+ Animate.prototype.handleDoneLeaving = function handleDoneLeaving(key) {
+ var props = this.props;
+ delete this.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== this.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ // in case state change is too fast
+ if (this.isValidChildByKey(currentChildren, key)) {
+ this.performEnter(key);
+ } else {
+ var end = function end() {
+ if (_util2["default"].allowLeaveCallback(props)) {
+ props.onLeave(key);
+ props.onEnd(key, false);
+ }
+ };
+ /* eslint react/no-is-mounted:0 */
+ if (this.mounted && !(0, _ChildrenUtils.isSameChildren)(this.state.children, currentChildren, props.showProp)) {
+ this.setState({
+ children: currentChildren
+ }, end);
+ } else {
+ end();
+ }
+ }
+ };
+
+ Animate.prototype.isValidChildByKey = function isValidChildByKey(currentChildren, key) {
+ var showProp = this.props.showProp;
+ if (showProp) {
+ return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
+ }
+ return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ };
+
+ Animate.prototype.stop = function stop(key) {
+ delete this.currentlyAnimatingKeys[key];
+ var component = this.refs[key];
+ if (component) {
+ component.stop();
+ }
+ };
+
+ Animate.prototype.render = function render() {
+ var props = this.props;
+ this.nextProps = props;
+ var stateChildren = this.state.children;
+ var children = null;
+ if (stateChildren) {
+ children = stateChildren.map(function (child) {
+ if (child === null || child === undefined) {
+ return child;
+ }
+ if (!child.key) {
+ throw new Error('must set key for children');
+ }
+ return _react2["default"].createElement(
+ _AnimateChild2["default"],
+ {
+ key: child.key,
+ ref: child.key,
+ animation: props.animation,
+ transitionName: props.transitionName,
+ transitionEnter: props.transitionEnter,
+ transitionAppear: props.transitionAppear,
+ transitionLeave: props.transitionLeave
+ },
+ child
+ );
+ });
+ }
+ var Component = props.component;
+ if (Component) {
+ var passedProps = props;
+ if (typeof Component === 'string') {
+ passedProps = {
+ className: props.className,
+ style: props.style
+ };
+ }
+ return _react2["default"].createElement(
+ Component,
+ passedProps,
+ children
+ );
+ }
+ return children[0] || null;
+ };
+
+ return Animate;
+ }(_react.Component);
+
+ ;
+ Animate.defaultProps = defaultProps;
+ Animate.propTypes = Animate.propTypes;
+
+ exports["default"] = Animate;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 98 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.toArrayChildren = toArrayChildren;
+ exports.findChildInChildrenByKey = findChildInChildrenByKey;
+ exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey;
+ exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey;
+ exports.isSameChildren = isSameChildren;
+ exports.mergeChildren = mergeChildren;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function toArrayChildren(children) {
+ var ret = [];
+ _react2["default"].Children.forEach(children, function (child) {
+ ret.push(child);
+ });
+ return ret;
+ }
+
+ function findChildInChildrenByKey(children, key) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (ret) {
+ return;
+ }
+ if (child && child.key === key) {
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findShownChildInChildrenByKey(children, key, showProp) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (child && child.key === key && child.props[showProp]) {
+ if (ret) {
+ throw new Error('two child with same key for children');
+ }
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findHiddenChildInChildrenByKey(children, key, showProp) {
+ var found = 0;
+ if (children) {
+ children.forEach(function (child) {
+ if (found) {
+ return;
+ }
+ found = child && child.key === key && !child.props[showProp];
+ });
+ }
+ return found;
+ }
+
+ function isSameChildren(c1, c2, showProp) {
+ var same = c1.length === c2.length;
+ if (same) {
+ c1.forEach(function (child, index) {
+ var child2 = c2[index];
+ if (child && child2) {
+ if (child && !child2 || !child && child2) {
+ same = false;
+ } else if (child.key !== child2.key) {
+ same = false;
+ } else if (showProp && child.props[showProp] !== child2.props[showProp]) {
+ same = false;
+ }
+ }
+ });
+ }
+ return same;
+ }
+
+ function mergeChildren(prev, next) {
+ var ret = [];
+
+ // For each key of `next`, the list of keys to insert before that key in
+ // the combined list
+ var nextChildrenPending = {};
+ var pendingChildren = [];
+ prev.forEach(function (child) {
+ if (child && findChildInChildrenByKey(next, child.key)) {
+ if (pendingChildren.length) {
+ nextChildrenPending[child.key] = pendingChildren;
+ pendingChildren = [];
+ }
+ } else {
+ pendingChildren.push(child);
+ }
+ });
+
+ next.forEach(function (child) {
+ if (child && nextChildrenPending.hasOwnProperty(child.key)) {
+ ret = ret.concat(nextChildrenPending[child.key]);
+ }
+ ret.push(child);
+ });
+
+ ret = ret.concat(pendingChildren);
+
+ return ret;
+ }
+
+/***/ }),
+/* 99 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _util = __webpack_require__(100);
+
+ var _util2 = _interopRequireDefault(_util);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var transitionMap = {
+ enter: 'transitionEnter',
+ appear: 'transitionAppear',
+ leave: 'transitionLeave'
+ };
+
+ var propTypes = {
+ children: _propTypes2["default"].any
+ };
+
+ var AnimateChild = function (_Component) {
+ _inherits(AnimateChild, _Component);
+
+ function AnimateChild(props) {
+ _classCallCheck(this, AnimateChild);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.transition = _this.transition.bind(_this);
+ _this.stop = _this.stop.bind(_this);
+ return _this;
+ }
+
+ AnimateChild.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stop();
+ };
+
+ AnimateChild.prototype.componentWillEnter = function componentWillEnter(done) {
+ if (_util2["default"].isEnterSupported(this.props)) {
+ this.transition('enter', done);
+ } else {
+ done();
+ }
+ };
+
+ AnimateChild.prototype.componentWillAppear = function componentWillAppear(done) {
+ if (_util2["default"].isAppearSupported(this.props)) {
+ this.transition('appear', done);
+ } else {
+ done();
+ }
+ };
+
+ AnimateChild.prototype.componentWillLeave = function componentWillLeave(done) {
+ if (_util2["default"].isLeaveSupported(this.props)) {
+ this.transition('leave', done);
+ } else {
+ // always sync, do not interupt with react component life cycle
+ // update hidden -> animate hidden ->
+ // didUpdate -> animate leave -> unmount (if animate is none)
+ done();
+ }
+ };
+
+ AnimateChild.prototype.transition = function transition(animationType, finishCallback) {
+ var _this2 = this;
+
+ var node = _reactDom2["default"].findDOMNode(this);
+ var props = this.props;
+ var transitionName = props.transitionName;
+ var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : _typeof(transitionName)) === 'object';
+ this.stop();
+ var end = function end() {
+ _this2.stopper = null;
+ finishCallback();
+ };
+ if ((_tinperBeeCore.cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {
+ var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;
+ var activeName = name + '-active';
+ if (nameIsObj && transitionName[animationType + 'Active']) {
+ activeName = transitionName[animationType + 'Active'];
+ }
+ this.stopper = (0, _tinperBeeCore.cssAnimation)(node, {
+ name: name,
+ active: activeName
+ }, end);
+ } else {
+ this.stopper = props.animation[animationType](node, end);
+ }
+ };
+
+ AnimateChild.prototype.stop = function stop() {
+ var stopper = this.stopper;
+ if (stopper) {
+ this.stopper = null;
+ stopper.stop();
+ }
+ };
+
+ AnimateChild.prototype.render = function render() {
+ return this.props.children;
+ };
+
+ return AnimateChild;
+ }(_react.Component);
+
+ ;
+
+ AnimateChild.propTypes = propTypes;
+
+ exports["default"] = AnimateChild;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 100 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var util = {
+ isAppearSupported: function isAppearSupported(props) {
+ return props.transitionName && props.transitionAppear || props.animation.appear;
+ },
+ isEnterSupported: function isEnterSupported(props) {
+ return props.transitionName && props.transitionEnter || props.animation.enter;
+ },
+ isLeaveSupported: function isLeaveSupported(props) {
+ return props.transitionName && props.transitionLeave || props.animation.leave;
+ },
+ allowAppearCallback: function allowAppearCallback(props) {
+ return props.transitionAppear || props.animation.appear;
+ },
+ allowEnterCallback: function allowEnterCallback(props) {
+ return props.transitionEnter || props.animation.enter;
+ },
+ allowLeaveCallback: function allowLeaveCallback(props) {
+ return props.transitionLeave || props.animation.leave;
+ }
+ };
+ exports["default"] = util;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 101 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Tooltip = __webpack_require__(102);
+
+ var _Tooltip2 = _interopRequireDefault(_Tooltip);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Tooltip2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 102 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _OverlayTrigger = __webpack_require__(103);
+
+ var _OverlayTrigger2 = _interopRequireDefault(_OverlayTrigger);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ /**
+ * @required
+ */
+ id: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].number]),
+ inverse: _propTypes2["default"].bool,
+ /**
+ * 相对目标元素显示上下左右的位置
+ */
+ placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left']),
+
+ /**
+ * 绝对定位上边距.
+ */
+ positionTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+ /**
+ * 绝对定位左边距
+ */
+ positionLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+
+ /**
+ * 与目标Top的距离
+ */
+ arrowOffsetTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+ /**
+ * 与目标Left的距离
+ */
+ arrowOffsetLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string])
+ };
+
+ var defaultProps = {
+ placement: 'right',
+ clsPrefix: 'u-tooltip'
+ };
+
+ var Tooltip = function (_React$Component) {
+ _inherits(Tooltip, _React$Component);
+
+ function Tooltip() {
+ _classCallCheck(this, Tooltip);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ Tooltip.prototype.render = function render() {
+ var _classes;
+
+ var _props = this.props,
+ placement = _props.placement,
+ positionTop = _props.positionTop,
+ positionLeft = _props.positionLeft,
+ arrowOffsetTop = _props.arrowOffsetTop,
+ arrowOffsetLeft = _props.arrowOffsetLeft,
+ className = _props.className,
+ style = _props.style,
+ children = _props.children,
+ clsPrefix = _props.clsPrefix,
+ overlay = _props.overlay,
+ inverse = _props.inverse,
+ others = _objectWithoutProperties(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', 'arrowOffsetLeft', 'className', 'style', 'children', 'clsPrefix', 'overlay', 'inverse']);
+
+ var classes = (_classes = {}, _defineProperty(_classes, placement, true), _defineProperty(_classes, 'inverse', inverse), _classes);
+
+ var outerStyle = _extends({
+ top: positionTop,
+ left: positionLeft
+ }, style);
+
+ var arrowStyle = {
+ top: arrowOffsetTop,
+ left: arrowOffsetLeft
+ };
+
+ var classNames = (0, _classnames2["default"])(clsPrefix, classes);
+
+ var overlayNode = _react2["default"].createElement(
+ 'div',
+ {
+ className: (0, _classnames2["default"])(className, classNames),
+ style: outerStyle
+ },
+ _react2["default"].createElement('div', { className: 'tooltip-arrow', style: arrowStyle }),
+ _react2["default"].createElement(
+ 'div',
+ { className: 'tooltip-inner' },
+ overlay
+ )
+ );
+
+ return _react2["default"].createElement(
+ _OverlayTrigger2["default"],
+ _extends({ placement: placement }, others, { overlay: overlayNode }),
+ children
+ );
+ };
+
+ return Tooltip;
+ }(_react2["default"].Component);
+
+ Tooltip.propTypes = propTypes;
+ Tooltip.defaultProps = defaultProps;
+
+ exports["default"] = Tooltip;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 103 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _contains = __webpack_require__(104);
+
+ var _contains2 = _interopRequireDefault(_contains);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _warning = __webpack_require__(31);
+
+ var _warning2 = _interopRequireDefault(_warning);
+
+ var _Portal = __webpack_require__(80);
+
+ var _Portal2 = _interopRequireDefault(_Portal);
+
+ var _Overlay = __webpack_require__(105);
+
+ var _Overlay2 = _interopRequireDefault(_Overlay);
+
+ var _createChainedFunction = __webpack_require__(120);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var isReact16 = _reactDom2["default"].createPortal !== undefined;
+ var createPortal = isReact16 ? _reactDom2["default"].createPortal : _reactDom2["default"].unstable_renderSubtreeIntoContainer;
+
+ /**
+ * 检查值是属于这个值,还是等于这个值
+ *
+ * @param {string} one
+ * @param {string|array} of
+ * @returns {boolean}
+ */
+ function isOneOf(one, of) {
+ if (Array.isArray(of)) {
+ return of.indexOf(one) >= 0;
+ }
+ return one === of;
+ }
+
+ var triggerType = _propTypes2["default"].oneOf(['click', 'hover', 'focus']);
+
+ var propTypes = _extends({}, _Portal2["default"].propTypes, _Overlay2["default"].propTypes, {
+
+ /**
+ * 指定哪些操作或操作触发叠加层可见性
+ */
+ trigger: _propTypes2["default"].oneOfType([triggerType, _propTypes2["default"].arrayOf(triggerType)]),
+
+ /**
+ * 显示和隐藏覆盖一旦触发的毫秒延迟量
+ */
+ delay: _propTypes2["default"].number,
+ /**
+ * 触发后显示叠加层之前的延迟毫秒
+ */
+ delayShow: _propTypes2["default"].number,
+ /**
+ * 触发后隐藏叠加层的延迟毫秒
+ */
+ delayHide: _propTypes2["default"].number,
+
+ // FIXME: This should be `defaultShow`.
+ /**
+ * 覆盖的初始可见性状态。对于更细微的可见性控制,请考虑直接使用覆盖组件。
+ */
+ defaultOverlayShown: _propTypes2["default"].bool,
+
+ /**
+ * 要覆盖在目标旁边的元素或文本。
+ */
+ overlay: _propTypes2["default"].node.isRequired,
+
+ /**
+ * @private
+ */
+ onBlur: _propTypes2["default"].func,
+ /**
+ * @private
+ */
+ onClick: _propTypes2["default"].func,
+ /**
+ * @private
+ */
+ onFocus: _propTypes2["default"].func,
+ /**
+ * @private
+ */
+ onMouseOut: _propTypes2["default"].func,
+ /**
+ * @private
+ */
+ onMouseOver: _propTypes2["default"].func,
+
+ // Overridden props from ``.
+ /**
+ * @private
+ */
+ target: _propTypes2["default"].oneOf([null]),
+ /**
+ * @private
+ */
+ onHide: _propTypes2["default"].oneOf([null]),
+ /**
+ * @private
+ */
+ show: _propTypes2["default"].oneOf([null])
+ });
+
+ var defaultProps = {
+ defaultOverlayShown: false,
+ trigger: ['hover', 'focus']
+ };
+
+ var OverlayTrigger = function (_Component) {
+ _inherits(OverlayTrigger, _Component);
+
+ function OverlayTrigger(props, context) {
+ _classCallCheck(this, OverlayTrigger);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.handleToggle = _this.handleToggle.bind(_this);
+ _this.handleDelayedShow = _this.handleDelayedShow.bind(_this);
+ _this.handleDelayedHide = _this.handleDelayedHide.bind(_this);
+ _this.handleHide = _this.handleHide.bind(_this);
+ _this.makeOverlay = _this.makeOverlay.bind(_this);
+
+ _this.handleMouseOver = function (e) {
+ return _this.handleMouseOverOut(_this.handleDelayedShow, e);
+ };
+ _this.handleMouseOut = function (e) {
+ return _this.handleMouseOverOut(_this.handleDelayedHide, e);
+ };
+
+ _this._mountNode = null;
+
+ _this.state = {
+ show: props.defaultOverlayShown
+ };
+ return _this;
+ }
+
+ OverlayTrigger.prototype.componentDidMount = function componentDidMount() {
+ this._mountNode = document.createElement('div');
+ !isReact16 && this.renderOverlay();
+ };
+
+ OverlayTrigger.prototype.componentDidUpdate = function componentDidUpdate() {
+ !isReact16 && this.renderOverlay();
+ };
+
+ OverlayTrigger.prototype.componentWillUnmount = function componentWillUnmount() {
+ !isReact16 && _reactDom2["default"].unmountComponentAtNode(this._mountNode);
+ this._mountNode = null;
+
+ clearTimeout(this._hoverShowDelay);
+ clearTimeout(this._hoverHideDelay);
+ };
+
+ OverlayTrigger.prototype.handleToggle = function handleToggle() {
+ if (this.state.show) {
+ this.hide();
+ } else {
+ this.show();
+ }
+ };
+
+ OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() {
+ var _this2 = this;
+
+ if (this._hoverHideDelay != null) {
+ clearTimeout(this._hoverHideDelay);
+ this._hoverHideDelay = null;
+ return;
+ }
+
+ if (this.state.show || this._hoverShowDelay != null) {
+ return;
+ }
+
+ var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay;
+
+ if (!delay) {
+ this.show();
+ return;
+ }
+
+ this._hoverShowDelay = setTimeout(function () {
+ _this2._hoverShowDelay = null;
+ _this2.show();
+ }, delay);
+ };
+
+ OverlayTrigger.prototype.handleDelayedHide = function handleDelayedHide() {
+ var _this3 = this;
+
+ if (this._hoverShowDelay != null) {
+ clearTimeout(this._hoverShowDelay);
+ this._hoverShowDelay = null;
+ return;
+ }
+
+ if (!this.state.show || this._hoverHideDelay != null) {
+ return;
+ }
+
+ var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay;
+
+ if (!delay) {
+ this.hide();
+ return;
+ }
+
+ this._hoverHideDelay = setTimeout(function () {
+ _this3._hoverHideDelay = null;
+ _this3.hide();
+ }, delay);
+ };
+
+ // 简单实现mouseEnter和mouseLeave。
+ // React的内置版本是有问题的:https://github.com/facebook/react/issues/4251
+ //在触发器被禁用的情况下,mouseOut / Over可能导致闪烁
+ //从一个子元素移动到另一个子元素。
+
+
+ OverlayTrigger.prototype.handleMouseOverOut = function handleMouseOverOut(handler, e) {
+ var target = e.currentTarget;
+ var related = e.relatedTarget || e.nativeEvent.toElement;
+
+ if (!related || related !== target && !(0, _contains2["default"])(target, related)) {
+ handler(e);
+ }
+ };
+
+ OverlayTrigger.prototype.handleHide = function handleHide() {
+ this.hide();
+ };
+
+ OverlayTrigger.prototype.show = function show() {
+ this.setState({ show: true });
+ };
+
+ OverlayTrigger.prototype.hide = function hide() {
+ this.setState({ show: false });
+ };
+
+ OverlayTrigger.prototype.makeOverlay = function makeOverlay(overlay, props) {
+ return _react2["default"].createElement(
+ _Overlay2["default"],
+ _extends({}, props, {
+ show: this.state.show,
+ onHide: this.handleHide,
+ target: this
+ }),
+ overlay
+ );
+ };
+
+ OverlayTrigger.prototype.renderOverlay = function renderOverlay() {
+ _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode);
+ };
+
+ OverlayTrigger.prototype.render = function render() {
+ var _props = this.props,
+ trigger = _props.trigger,
+ overlay = _props.overlay,
+ children = _props.children,
+ onBlur = _props.onBlur,
+ onClick = _props.onClick,
+ onFocus = _props.onFocus,
+ onMouseOut = _props.onMouseOut,
+ onMouseOver = _props.onMouseOver,
+ props = _objectWithoutProperties(_props, ['trigger', 'overlay', 'children', 'onBlur', 'onClick', 'onFocus', 'onMouseOut', 'onMouseOver']);
+
+ delete props.delay;
+ delete props.delayShow;
+ delete props.delayHide;
+ delete props.defaultOverlayShown;
+
+ var child = _react2["default"].Children.only(children);
+ var childProps = child.props;
+
+ var triggerProps = {
+ 'aria-describedby': overlay.props.id
+ };
+
+ // FIXME: 这里用于传递这个组件上的处理程序的逻辑是不一致的。我们不应该通过任何这些道具。
+
+ triggerProps.onClick = (0, _createChainedFunction2["default"])(childProps.onClick, onClick);
+
+ if (isOneOf('click', trigger)) {
+ triggerProps.onClick = (0, _createChainedFunction2["default"])(triggerProps.onClick, this.handleToggle);
+ }
+
+ if (isOneOf('hover', trigger)) {
+ (0, _warning2["default"])(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and keyboard only ' + 'users can see the overlay as well.');
+
+ triggerProps.onMouseOver = (0, _createChainedFunction2["default"])(childProps.onMouseOver, onMouseOver, this.handleMouseOver);
+ triggerProps.onMouseOut = (0, _createChainedFunction2["default"])(childProps.onMouseOut, onMouseOut, this.handleMouseOut);
+ }
+
+ if (isOneOf('focus', trigger)) {
+ triggerProps.onFocus = (0, _createChainedFunction2["default"])(childProps.onFocus, onFocus, this.handleDelayedShow);
+ triggerProps.onBlur = (0, _createChainedFunction2["default"])(childProps.onBlur, onBlur, this.handleDelayedHide);
+ }
+
+ this._overlay = this.makeOverlay(overlay, props);
+
+ if (!isReact16) {
+ return (0, _react.cloneElement)(child, triggerProps);
+ }
+ triggerProps.key = 'overlay';
+
+ var portal = _react2["default"].createElement(
+ _Portal2["default"],
+ {
+ key: 'portal',
+ container: props.container },
+ this._overlay
+ );
+
+ return [(0, _react.cloneElement)(child, triggerProps), portal];
+ };
+
+ return OverlayTrigger;
+ }(_react.Component);
+
+ OverlayTrigger.propTypes = propTypes;
+ OverlayTrigger.defaultProps = defaultProps;
+
+ exports["default"] = OverlayTrigger;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 104 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _inDOM = __webpack_require__(14);
+
+ var _inDOM2 = _interopRequireDefault(_inDOM);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function () {
+ // HTML DOM and SVG DOM may have different support levels,
+ // so we need to check on context instead of a document root element.
+ return _inDOM2.default ? function (context, node) {
+ if (context.contains) {
+ return context.contains(node);
+ } else if (context.compareDocumentPosition) {
+ return context === node || !!(context.compareDocumentPosition(node) & 16);
+ } else {
+ return fallback(context, node);
+ }
+ } : fallback;
+ }();
+
+ function fallback(context, node) {
+ if (node) do {
+ if (node === context) return true;
+ } while (node = node.parentNode);
+
+ return false;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 105 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _BaseOverlay = __webpack_require__(106);
+
+ var _BaseOverlay2 = _interopRequireDefault(_BaseOverlay);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _Fade = __webpack_require__(118);
+
+ var _Fade2 = _interopRequireDefault(_Fade);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = _extends({}, _BaseOverlay2["default"].propTypes, {
+
+ /**
+ * 是否显示
+ */
+ show: _propTypes2["default"].bool,
+ /**
+ * 是
+ */
+ rootClose: _propTypes2["default"].bool,
+ /**
+ * 当点击rootClose触发close时的回调函数
+ */
+ onHide: _propTypes2["default"].func,
+
+ /**
+ * 使用动画
+ */
+ animation: _propTypes2["default"].oneOfType([_tinperBeeCore.elementType, _propTypes2["default"].func]),
+
+ /**
+ * Callback fired before the Overlay transitions in
+ */
+ onEnter: _propTypes2["default"].func,
+
+ /**
+ * Callback fired as the Overlay begins to transition in
+ */
+ onEntering: _propTypes2["default"].func,
+
+ /**
+ * Callback fired after the Overlay finishes transitioning in
+ */
+ onEntered: _propTypes2["default"].func,
+
+ /**
+ * Callback fired right before the Overlay transitions out
+ */
+ onExit: _propTypes2["default"].func,
+
+ /**
+ * Callback fired as the Overlay begins to transition out
+ */
+ onExiting: _propTypes2["default"].func,
+
+ /**
+ * Callback fired after the Overlay finishes transitioning out
+ */
+ onExited: _propTypes2["default"].func,
+
+ /**
+ * Sets the direction of the Overlay.
+ */
+ placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left'])
+ });
+
+ var defaultProps = {
+ animation: _Fade2["default"],
+ rootClose: false,
+ show: false,
+ placement: 'right'
+ };
+
+ var Overlay = function (_Component) {
+ _inherits(Overlay, _Component);
+
+ function Overlay() {
+ _classCallCheck(this, Overlay);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Overlay.prototype.render = function render() {
+ var _props = this.props,
+ animation = _props.animation,
+ children = _props.children,
+ props = _objectWithoutProperties(_props, ['animation', 'children']);
+
+ var transition = animation === true ? _Fade2["default"] : animation || null;
+
+ var child = void 0;
+
+ if (!transition) {
+ child = (0, _react.cloneElement)(children, {
+ className: (0, _classnames2["default"])(children.props.className, 'in')
+ });
+ } else {
+ child = children;
+ }
+
+ return _react2["default"].createElement(
+ _BaseOverlay2["default"],
+ _extends({}, props, {
+ transition: transition
+ }),
+ child
+ );
+ };
+
+ return Overlay;
+ }(_react.Component);
+
+ Overlay.propTypes = propTypes;
+ Overlay.defaultProps = defaultProps;
+
+ exports["default"] = Overlay;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 106 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _Portal = __webpack_require__(80);
+
+ var _Portal2 = _interopRequireDefault(_Portal);
+
+ var _Position = __webpack_require__(107);
+
+ var _Position2 = _interopRequireDefault(_Position);
+
+ var _RootCloseWrapper = __webpack_require__(115);
+
+ var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var isReact16 = _reactDom2["default"].createPortal !== undefined;
+
+ var propTypes = _extends({}, _Position2["default"].propTypes, {
+
+ /**
+ * 是否显示
+ */
+ show: _propTypes2["default"].bool,
+
+ /**
+ * 点击其他地方,是否隐藏overlay
+ */
+ rootClose: _propTypes2["default"].bool,
+
+ /**
+ * 当rootClose为true的时候,触发的隐藏方法
+ * @type func
+ */
+ onHide: function onHide(props) {
+ var propType = _propTypes2["default"].func;
+ if (props.rootClose) {
+ propType = propType.isRequired;
+ }
+
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ return propType.apply(undefined, [props].concat(args));
+ },
+
+
+ /**
+ * 过渡动画组件
+ */
+ transition: _propTypes2["default"].oneOfType([_tinperBeeCore.elementType, _propTypes2["default"].func]),
+
+ /**
+ * overlay添加动画前的钩子函数
+ */
+ onEnter: _propTypes2["default"].func,
+
+ /**
+ * 开始动画的钩子函数
+ */
+ onEntering: _propTypes2["default"].func,
+
+ /**
+ * 渲染之后的钩子函数
+ */
+ onEntered: _propTypes2["default"].func,
+
+ /**
+ * 关闭开始时的钩子函数
+ */
+ onExit: _propTypes2["default"].func,
+
+ /**
+ * 关闭时的钩子函数
+ */
+ onExiting: _propTypes2["default"].func,
+
+ /**
+ * 关闭后的钩子函数
+ */
+ onExited: _propTypes2["default"].func
+ });
+
+ function noop() {}
+
+ var defaultProps = {
+ show: false,
+ rootClose: true
+ };
+
+ /**
+ * 悬浮组件
+ */
+
+ var BaseOverlay = function (_Component) {
+ _inherits(BaseOverlay, _Component);
+
+ function BaseOverlay(props, context) {
+ _classCallCheck(this, BaseOverlay);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.state = { exited: !props.show };
+ _this.onHiddenListener = _this.handleHidden.bind(_this);
+ return _this;
+ }
+
+ BaseOverlay.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if (nextProps.show) {
+ this.setState({ exited: false });
+ } else if (!nextProps.transition) {
+ // Otherwise let handleHidden take care of marking exited.
+ this.setState({ exited: true });
+ }
+ };
+
+ BaseOverlay.prototype.handleHidden = function handleHidden() {
+ this.setState({ exited: true });
+
+ if (this.props.onExited) {
+ var _props;
+
+ (_props = this.props).onExited.apply(_props, arguments);
+ }
+ };
+
+ BaseOverlay.prototype.render = function render() {
+ var _props2 = this.props,
+ container = _props2.container,
+ containerPadding = _props2.containerPadding,
+ target = _props2.target,
+ placement = _props2.placement,
+ shouldUpdatePosition = _props2.shouldUpdatePosition,
+ rootClose = _props2.rootClose,
+ positionLeft = _props2.positionLeft,
+ positionTop = _props2.positionTop,
+ children = _props2.children,
+ Transition = _props2.transition,
+ props = _objectWithoutProperties(_props2, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'positionLeft', 'positionTop', 'children', 'transition']);
+
+ // Don't un-render the overlay while it's transitioning out.
+
+
+ var mountOverlay = props.show || Transition && !this.state.exited;
+ if (!mountOverlay) {
+ // Don't bother showing anything if we don't have to.
+ return null;
+ }
+
+ var child = children;
+
+ // Position is be inner-most because it adds inline styles into the child,
+ // which the other wrappers don't forward correctly.
+ child = _react2["default"].createElement(
+ _Position2["default"],
+ {
+ container: container,
+ containerPadding: containerPadding,
+ target: target,
+ positionLeft: positionLeft,
+ positionTop: positionTop,
+ placement: placement,
+ shouldUpdatePosition: shouldUpdatePosition },
+ child
+ );
+
+ if (Transition) {
+ var onExit = props.onExit,
+ onExiting = props.onExiting,
+ onEnter = props.onEnter,
+ onEntering = props.onEntering,
+ onEntered = props.onEntered;
+
+ // This animates the child node by injecting props, so it must precede
+ // anything that adds a wrapping div.
+
+ child = _react2["default"].createElement(
+ Transition,
+ {
+ 'in': props.show,
+ transitionAppear: true,
+ onExit: onExit,
+ onExiting: onExiting,
+ onExited: this.onHiddenListener,
+ onEnter: onEnter,
+ onEntering: onEntering,
+ onEntered: onEntered
+ },
+ child
+ );
+ }
+
+ // This goes after everything else because it adds a wrapping div.
+ if (rootClose) {
+ child = _react2["default"].createElement(
+ _RootCloseWrapper2["default"],
+ { onRootClose: props.onHide },
+ child
+ );
+ }
+
+ if (isReact16) {
+ return child;
+ } else {
+ return _react2["default"].createElement(
+ _Portal2["default"],
+ { container: container },
+ child
+ );
+ }
+ };
+
+ return BaseOverlay;
+ }(_react.Component);
+
+ BaseOverlay.propTypes = propTypes;
+ BaseOverlay.defaultProps = defaultProps;
+
+ exports["default"] = BaseOverlay;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 107 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _calculatePosition = __webpack_require__(108);
+
+ var _calculatePosition2 = _interopRequireDefault(_calculatePosition);
+
+ var _getContainer = __webpack_require__(83);
+
+ var _getContainer2 = _interopRequireDefault(_getContainer);
+
+ var _ownerDocument = __webpack_require__(81);
+
+ var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ /**
+ * 要设置定位的元素
+ */
+ target: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]),
+
+ /**
+ * 存放的容器元素
+ */
+ container: _propTypes2["default"].oneOfType([_tinperBeeCore.componentOrElement, _propTypes2["default"].func]),
+ /**
+ * 容器padding值
+ */
+ containerPadding: _propTypes2["default"].number,
+ /**
+ * 位置设置
+ */
+ placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left']),
+ /**
+ * 是否需要更新位置
+ */
+ shouldUpdatePosition: _propTypes2["default"].bool
+ };
+
+ var defaultProps = {
+ containerPadding: 0,
+ placement: 'right',
+ shouldUpdatePosition: false
+ };
+
+ /**
+ * 计算子组件的位置的组件
+ */
+
+ var Position = function (_Component) {
+ _inherits(Position, _Component);
+
+ function Position(props, context) {
+ _classCallCheck(this, Position);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.state = {
+ positionLeft: 0,
+ positionTop: 0,
+ arrowOffsetLeft: null,
+ arrowOffsetTop: null
+ };
+
+ _this.needsFlush = false;
+ _this.lastTarget = null;
+
+ _this.getTarget = _this.getTarget.bind(_this);
+ _this.maybeUpdatePosition = _this.maybeUpdatePosition.bind(_this);
+ _this.updatePosition = _this.updatePosition.bind(_this);
+ return _this;
+ }
+
+ Position.prototype.componentDidMount = function componentDidMount() {
+ this.updatePosition(this.getTarget());
+ };
+
+ Position.prototype.componentWillReceiveProps = function componentWillReceiveProps() {
+ this.needsFlush = true;
+ };
+
+ Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ if (this.needsFlush) {
+ this.needsFlush = false;
+
+ this.maybeUpdatePosition();
+ }
+ };
+
+ /**
+ * 获取要设置位置的子元素
+ */
+
+
+ Position.prototype.getTarget = function getTarget() {
+ var target = this.props.target;
+
+ var targetElement = typeof target === 'function' ? target() : target;
+ return targetElement && _reactDom2["default"].findDOMNode(targetElement) || null;
+ };
+
+ /**
+ * 验证是否需要更新位置
+ */
+
+
+ Position.prototype.maybeUpdatePosition = function maybeUpdatePosition(placementChanged) {
+ var target = this.getTarget();
+ if (!this.props.shouldUpdatePosition && target === this.lastTarget && !placementChanged) {
+ return;
+ }
+
+ this.updatePosition(target);
+ };
+
+ /**
+ * 更新位置
+ */
+
+ Position.prototype.updatePosition = function updatePosition(target) {
+ this.lastTarget = target;
+
+ if (!target) {
+ this.setState({
+ positionLeft: 0,
+ positionTop: 0,
+ arrowOffsetLeft: null,
+ arrowOffsetTop: null
+ });
+
+ return;
+ }
+
+ var overlay = _reactDom2["default"].findDOMNode(this);
+ var container = (0, _getContainer2["default"])(this.props.container, (0, _ownerDocument2["default"])(this).body);
+
+ this.setState((0, _calculatePosition2["default"])(this.props.placement, overlay, target, container, this.props.containerPadding));
+ };
+
+ Position.prototype.render = function render() {
+ var _props = this.props,
+ children = _props.children,
+ className = _props.className,
+ props = _objectWithoutProperties(_props, ['children', 'className']);
+
+ var _state = this.state,
+ positionLeft = _state.positionLeft,
+ positionTop = _state.positionTop,
+ arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']);
+
+ // These should not be forwarded to the child.
+
+
+ delete props.target;
+ delete props.container;
+ delete props.containerPadding;
+ delete props.shouldUpdatePosition;
+
+ var child = _react2["default"].Children.only(children);
+ return (0, _react.cloneElement)(child, {
+ className: (0, _classnames2["default"])(className, child.props.className),
+ style: _extends({}, child.props.style, {
+ left: positionLeft,
+ top: positionTop
+ })
+ });
+ };
+
+ return Position;
+ }(_react.Component);
+
+ Position.propTypes = propTypes;
+ Position.defaultProps = defaultProps;
+
+ exports["default"] = Position;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 108 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = calculatePosition;
+
+ var _offset = __webpack_require__(109);
+
+ var _offset2 = _interopRequireDefault(_offset);
+
+ var _position = __webpack_require__(111);
+
+ var _position2 = _interopRequireDefault(_position);
+
+ var _scrollTop = __webpack_require__(113);
+
+ var _scrollTop2 = _interopRequireDefault(_scrollTop);
+
+ var _ownerDocument = __webpack_require__(81);
+
+ var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function getContainerDimensions(containerNode) {
+ var width = void 0,
+ height = void 0,
+ scroll = void 0;
+
+ if (containerNode.tagName === 'BODY') {
+ width = window.innerWidth;
+ height = window.innerHeight;
+
+ scroll = (0, _scrollTop2["default"])((0, _ownerDocument2["default"])(containerNode).documentElement) || (0, _scrollTop2["default"])(containerNode);
+ } else {
+ var _getOffset = (0, _offset2["default"])(containerNode);
+
+ width = _getOffset.width;
+ height = _getOffset.height;
+
+ scroll = (0, _scrollTop2["default"])(containerNode);
+ }
+
+ return { width: width, height: height, scroll: scroll };
+ }
+
+ function getTopDelta(top, overlayHeight, container, padding) {
+ var containerDimensions = getContainerDimensions(container);
+ var containerScroll = containerDimensions.scroll;
+ var containerHeight = containerDimensions.height;
+
+ var topEdgeOffset = top - padding - containerScroll;
+ var bottomEdgeOffset = top + padding - containerScroll + overlayHeight;
+
+ if (topEdgeOffset < 0) {
+ return -topEdgeOffset;
+ } else if (bottomEdgeOffset > containerHeight) {
+ return containerHeight - bottomEdgeOffset;
+ } else {
+ return 0;
+ }
+ }
+
+ function getLeftDelta(left, overlayWidth, container, padding) {
+ var containerDimensions = getContainerDimensions(container);
+ var containerWidth = containerDimensions.width;
+
+ var leftEdgeOffset = left - padding;
+ var rightEdgeOffset = left + padding + overlayWidth;
+
+ if (leftEdgeOffset < 0) {
+ return -leftEdgeOffset;
+ } else if (rightEdgeOffset > containerWidth) {
+ return containerWidth - rightEdgeOffset;
+ }
+
+ return 0;
+ }
+
+ function calculatePosition(placement, overlayNode, target, container, padding) {
+ var childOffset = container.tagName === 'BODY' ? (0, _offset2["default"])(target) : (0, _position2["default"])(target, container);
+
+ var _getOffset2 = (0, _offset2["default"])(overlayNode),
+ overlayHeight = _getOffset2.height,
+ overlayWidth = _getOffset2.width;
+
+ var positionLeft = void 0,
+ positionTop = void 0,
+ arrowOffsetLeft = void 0,
+ arrowOffsetTop = void 0;
+
+ if (/^left|^right/.test(placement)) {
+ positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2;
+
+ if (/left/.test(placement)) {
+ positionLeft = childOffset.left - overlayWidth;
+ } else {
+ positionLeft = childOffset.left + childOffset.width;
+ }
+
+ if (/Top/.test(placement)) {
+ positionTop = childOffset.top;
+ } else if (/Bottom/.test(placement)) {
+ positionTop = childOffset.top + childOffset.height - overlayHeight;
+ }
+
+ var topDelta = getTopDelta(positionTop, overlayHeight, container, padding);
+
+ positionTop += topDelta;
+ arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%';
+ arrowOffsetLeft = void 0;
+ } else if (/^top|^bottom/.test(placement)) {
+ positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2;
+
+ if (/top/.test(placement)) {
+ positionTop = childOffset.top - overlayHeight;
+ } else {
+ positionTop = childOffset.top + childOffset.height;
+ }
+
+ if (/Left/.test(placement)) {
+ positionLeft = childOffset.left;
+ } else if (/Right/.test(placement)) {
+ positionLeft = childOffset.left + (childOffset.width - overlayWidth);
+ }
+
+ var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding);
+
+ positionLeft += leftDelta;
+ arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%';
+ arrowOffsetTop = void 0;
+ } else {
+ throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.');
+ }
+
+ return { positionLeft: positionLeft, positionTop: positionTop, arrowOffsetLeft: arrowOffsetLeft, arrowOffsetTop: arrowOffsetTop };
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 109 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = offset;
+
+ var _contains = __webpack_require__(104);
+
+ var _contains2 = _interopRequireDefault(_contains);
+
+ var _isWindow = __webpack_require__(110);
+
+ var _isWindow2 = _interopRequireDefault(_isWindow);
+
+ var _ownerDocument = __webpack_require__(82);
+
+ var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function offset(node) {
+ var doc = (0, _ownerDocument2.default)(node),
+ win = (0, _isWindow2.default)(doc),
+ docElem = doc && doc.documentElement,
+ box = { top: 0, left: 0, height: 0, width: 0 };
+
+ if (!doc) return;
+
+ // Make sure it's not a disconnected DOM node
+ if (!(0, _contains2.default)(docElem, node)) return box;
+
+ if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect();
+
+ // IE8 getBoundingClientRect doesn't support width & height
+ box = {
+ top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
+ left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),
+ width: (box.width == null ? node.offsetWidth : box.width) || 0,
+ height: (box.height == null ? node.offsetHeight : box.height) || 0
+ };
+
+ return box;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 110 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = getWindow;
+ function getWindow(node) {
+ return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
+ }
+ module.exports = exports["default"];
+
+/***/ }),
+/* 111 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ exports.default = position;
+
+ var _offset = __webpack_require__(109);
+
+ var _offset2 = _interopRequireDefault(_offset);
+
+ var _offsetParent = __webpack_require__(112);
+
+ var _offsetParent2 = _interopRequireDefault(_offsetParent);
+
+ var _scrollTop = __webpack_require__(113);
+
+ var _scrollTop2 = _interopRequireDefault(_scrollTop);
+
+ var _scrollLeft = __webpack_require__(114);
+
+ var _scrollLeft2 = _interopRequireDefault(_scrollLeft);
+
+ var _style = __webpack_require__(17);
+
+ var _style2 = _interopRequireDefault(_style);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function nodeName(node) {
+ return node.nodeName && node.nodeName.toLowerCase();
+ }
+
+ function position(node, offsetParent) {
+ var parentOffset = { top: 0, left: 0 },
+ offset;
+
+ // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
+ // because it is its only offset parent
+ if ((0, _style2.default)(node, 'position') === 'fixed') {
+ offset = node.getBoundingClientRect();
+ } else {
+ offsetParent = offsetParent || (0, _offsetParent2.default)(node);
+ offset = (0, _offset2.default)(node);
+
+ if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent);
+
+ parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0;
+ parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0;
+ }
+
+ // Subtract parent offsets and node margins
+ return _extends({}, offset, {
+ top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0),
+ left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0)
+ });
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 112 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = offsetParent;
+
+ var _ownerDocument = __webpack_require__(82);
+
+ var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
+
+ var _style = __webpack_require__(17);
+
+ var _style2 = _interopRequireDefault(_style);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function nodeName(node) {
+ return node.nodeName && node.nodeName.toLowerCase();
+ }
+
+ function offsetParent(node) {
+ var doc = (0, _ownerDocument2.default)(node),
+ offsetParent = node && node.offsetParent;
+
+ while (offsetParent && nodeName(node) !== 'html' && (0, _style2.default)(offsetParent, 'position') === 'static') {
+ offsetParent = offsetParent.offsetParent;
+ }
+
+ return offsetParent || doc.documentElement;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 113 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = scrollTop;
+
+ var _isWindow = __webpack_require__(110);
+
+ var _isWindow2 = _interopRequireDefault(_isWindow);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function scrollTop(node, val) {
+ var win = (0, _isWindow2.default)(node);
+
+ if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;
+
+ if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 114 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.default = scrollTop;
+
+ var _isWindow = __webpack_require__(110);
+
+ var _isWindow2 = _interopRequireDefault(_isWindow);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function scrollTop(node, val) {
+ var win = (0, _isWindow2.default)(node);
+
+ if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;
+
+ if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 115 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _contains = __webpack_require__(104);
+
+ var _contains2 = _interopRequireDefault(_contains);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _addEventListener = __webpack_require__(116);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ var _ownerDocument = __webpack_require__(81);
+
+ var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ onRootClose: _propTypes2["default"].func,
+ children: _propTypes2["default"].element,
+ /**
+ * 是否禁用
+ */
+ disabled: _propTypes2["default"].bool,
+ /**
+ * 触发事件选择
+ */
+ event: _propTypes2["default"].oneOf(['click', 'mousedown'])
+ };
+
+ var defaultProps = {
+ event: 'click'
+ };
+
+ function isLeftClickEvent(event) {
+ return event.button === 0;
+ }
+
+ function isModifiedEvent(event) {
+ return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
+ }
+
+ var RootCloseWrapper = function (_Component) {
+ _inherits(RootCloseWrapper, _Component);
+
+ function RootCloseWrapper(props, context) {
+ _classCallCheck(this, RootCloseWrapper);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.handleMouseCapture = function (e) {
+ _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2["default"])(_reactDom2["default"].findDOMNode(_this), e.target);
+ };
+
+ _this.handleMouse = function () {
+ if (!_this.preventMouseRootClose && _this.props.onRootClose) {
+ _this.props.onRootClose();
+ }
+ };
+
+ _this.handleKeyUp = function (e) {
+ if (e.keyCode === 27 && _this.props.onRootClose) {
+ _this.props.onRootClose();
+ }
+ };
+
+ _this.preventMouseRootClose = false;
+
+ _this.addEventListeners = _this.addEventListeners.bind(_this);
+ _this.removeEventListeners = _this.removeEventListeners.bind(_this);
+
+ return _this;
+ }
+
+ RootCloseWrapper.prototype.componentDidMount = function componentDidMount() {
+ if (!this.props.disabled) {
+ this.addEventListeners();
+ }
+ };
+
+ RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ if (!this.props.disabled && prevProps.disabled) {
+ this.addEventListeners();
+ } else if (this.props.disabled && !prevProps.disabled) {
+ this.removeEventListeners();
+ }
+ };
+
+ RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() {
+ if (!this.props.disabled) {
+ this.removeEventListeners();
+ }
+ };
+
+ RootCloseWrapper.prototype.addEventListeners = function addEventListeners() {
+ var event = this.props.event;
+
+ var doc = (0, _ownerDocument2["default"])(this);
+
+ // 避免react的监听事件触发引起判断的不准确
+ this.documentMouseCaptureListener = (0, _addEventListener2["default"])(doc, event, this.handleMouseCapture, true);
+
+ this.documentMouseListener = (0, _addEventListener2["default"])(doc, event, this.handleMouse);
+
+ this.documentKeyupListener = (0, _addEventListener2["default"])(doc, 'keyup', this.handleKeyUp);
+ };
+
+ RootCloseWrapper.prototype.removeEventListeners = function removeEventListeners() {
+ if (this.documentMouseCaptureListener) {
+ this.documentMouseCaptureListener.remove();
+ }
+
+ if (this.documentMouseListener) {
+ this.documentMouseListener.remove();
+ }
+
+ if (this.documentKeyupListener) {
+ this.documentKeyupListener.remove();
+ }
+ };
+
+ RootCloseWrapper.prototype.render = function render() {
+ return this.props.children;
+ };
+
+ return RootCloseWrapper;
+ }(_react.Component);
+
+ RootCloseWrapper.propTypes = propTypes;
+
+ RootCloseWrapper.defaultProps = defaultProps;
+
+ exports["default"] = RootCloseWrapper;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 116 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ exports["default"] = function (node, event, handler, capture) {
+ (0, _on2["default"])(node, event, handler, capture);
+
+ return {
+ remove: function remove() {
+ (0, _off2["default"])(node, event, handler, capture);
+ }
+ };
+ };
+
+ var _on = __webpack_require__(15);
+
+ var _on2 = _interopRequireDefault(_on);
+
+ var _off = __webpack_require__(117);
+
+ var _off2 = _interopRequireDefault(_off);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ module.exports = exports['default'];
+
+/***/ }),
+/* 117 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _inDOM = __webpack_require__(14);
+
+ var _inDOM2 = _interopRequireDefault(_inDOM);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ var off = function off() {};
+ if (_inDOM2.default) {
+ off = function () {
+ if (document.addEventListener) return function (node, eventName, handler, capture) {
+ return node.removeEventListener(eventName, handler, capture || false);
+ };else if (document.attachEvent) return function (node, eventName, handler) {
+ return node.detachEvent('on' + eventName, handler);
+ };
+ }();
+ }
+
+ exports.default = off;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 118 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _Transition = __webpack_require__(119);
+
+ var _Transition2 = _interopRequireDefault(_Transition);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ /**
+ * Show the component; triggers the fade in or fade out animation
+ */
+ "in": _propTypes2["default"].bool,
+
+ /**
+ * Unmount the component (remove it from the DOM) when it is faded out
+ */
+ unmountOnExit: _propTypes2["default"].bool,
+
+ /**
+ * Run the fade in animation when the component mounts, if it is initially
+ * shown
+ */
+ transitionAppear: _propTypes2["default"].bool,
+
+ /**
+ * Duration of the fade animation in milliseconds, to ensure that finishing
+ * callbacks are fired even if the original browser transition end events are
+ * canceled
+ */
+ timeout: _propTypes2["default"].number,
+
+ /**
+ * Callback fired before the component fades in
+ */
+ onEnter: _propTypes2["default"].func,
+ /**
+ * Callback fired after the component starts to fade in
+ */
+ onEntering: _propTypes2["default"].func,
+ /**
+ * Callback fired after the has component faded in
+ */
+ onEntered: _propTypes2["default"].func,
+ /**
+ * Callback fired before the component fades out
+ */
+ onExit: _propTypes2["default"].func,
+ /**
+ * Callback fired after the component starts to fade out
+ */
+ onExiting: _propTypes2["default"].func,
+ /**
+ * Callback fired after the component has faded out
+ */
+ onExited: _propTypes2["default"].func
+ };
+
+ var defaultProps = {
+ "in": false,
+ timeout: 300,
+ unmountOnExit: false,
+ transitionAppear: false
+ };
+
+ var Fade = function (_React$Component) {
+ _inherits(Fade, _React$Component);
+
+ function Fade() {
+ _classCallCheck(this, Fade);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ Fade.prototype.render = function render() {
+ return _react2["default"].createElement(_Transition2["default"], _extends({}, this.props, {
+ className: (0, _classnames2["default"])(this.props.className, 'fade'),
+ enteredClassName: 'in',
+ enteringClassName: 'in'
+ }));
+ };
+
+ return Fade;
+ }(_react2["default"].Component);
+
+ Fade.propTypes = propTypes;
+ Fade.defaultProps = defaultProps;
+
+ exports["default"] = Fade;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 119 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _properties = __webpack_require__(13);
+
+ var _properties2 = _interopRequireDefault(_properties);
+
+ var _on = __webpack_require__(15);
+
+ var _on2 = _interopRequireDefault(_on);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var transitionEndEvent = _properties2["default"].end;
+
+ //设置状态码
+ var UNMOUNTED = exports.UNMOUNTED = 0;
+ var EXITED = exports.EXITED = 1;
+ var ENTERING = exports.ENTERING = 2;
+ var ENTERED = exports.ENTERED = 3;
+ var EXITING = exports.EXITING = 4;
+
+ var propTypes = {
+ /**
+ * 是否触发动画
+ */
+ "in": _propTypes2["default"].bool,
+
+ /**
+ * 不显示的时候是否移除组件
+ */
+ unmountOnExit: _propTypes2["default"].bool,
+
+ /**
+ * 如果设置为默认显示,挂载时显示动画
+ */
+ transitionAppear: _propTypes2["default"].bool,
+
+ /**
+ * 设置超时时间,防止出现问题,可设置为>=动画时间
+ */
+ timeout: _propTypes2["default"].number,
+
+ /**
+ * 退出组件时添加的class
+ */
+ exitedClassName: _propTypes2["default"].string,
+ /**
+ * 退出组件中添加的class
+ */
+ exitingClassName: _propTypes2["default"].string,
+ /**
+ * 进入动画后添加的class
+ */
+ enteredClassName: _propTypes2["default"].string,
+ /**
+ * 进入动画时添加的class
+ */
+ enteringClassName: _propTypes2["default"].string,
+
+ /**
+ * 进入动画开始时的钩子函数
+ */
+ onEnter: _propTypes2["default"].func,
+ /**
+ * 进入动画中的钩子函数
+ */
+ onEntering: _propTypes2["default"].func,
+ /**
+ * 进入动画后的钩子函数
+ */
+ onEntered: _propTypes2["default"].func,
+ /**
+ * 退出动画开始时的钩子函数
+ */
+ onExit: _propTypes2["default"].func,
+ /**
+ * 退出动画中的钩子函数
+ */
+ onExiting: _propTypes2["default"].func,
+ /**
+ * 退出动画后的钩子函数
+ */
+ onExited: _propTypes2["default"].func
+ };
+
+ function noop() {}
+
+ var defaultProps = {
+ "in": false,
+ unmountOnExit: false,
+ transitionAppear: false,
+ timeout: 5000,
+ onEnter: noop,
+ onEntering: noop,
+ onEntered: noop,
+ onExit: noop,
+ onExiting: noop,
+ onExited: noop
+ };
+
+ /**
+ * 动画组件
+ */
+
+ var Transition = function (_Component) {
+ _inherits(Transition, _Component);
+
+ function Transition(props, context) {
+ _classCallCheck(this, Transition);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ var initialStatus = void 0;
+ if (props["in"]) {
+ // 在componentdidmount时开始执行动画
+ initialStatus = props.transitionAppear ? EXITED : ENTERED;
+ } else {
+ initialStatus = props.unmountOnExit ? UNMOUNTED : EXITED;
+ }
+ _this.state = { status: initialStatus };
+
+ _this.nextCallback = null;
+
+ _this.performEnter = _this.performEnter.bind(_this);
+ _this.performExit = _this.performExit.bind(_this);
+ _this.cancelNextCallback = _this.cancelNextCallback.bind(_this);
+ _this.onTransitionEnd = _this.onTransitionEnd.bind(_this);
+ _this.safeSetState = _this.safeSetState.bind(_this);
+ _this.setNextCallback = _this.setNextCallback.bind(_this);
+
+ return _this;
+ }
+
+ Transition.prototype.componentDidMount = function componentDidMount() {
+ if (this.props.transitionAppear && this.props["in"]) {
+ this.performEnter(this.props);
+ }
+ };
+
+ Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if (nextProps["in"] && this.props.unmountOnExit) {
+ if (this.state.status === UNMOUNTED) {
+ // 在componentDidUpdate执行动画.
+ this.setState({ status: EXITED });
+ }
+ } else {
+ this._needsUpdate = true;
+ }
+ };
+
+ Transition.prototype.componentDidUpdate = function componentDidUpdate() {
+ var status = this.state.status;
+
+ if (this.props.unmountOnExit && status === EXITED) {
+ // 当使用unmountOnExit时,exited为exiting和unmont的过渡状态
+ if (this.props["in"]) {
+ this.performEnter(this.props);
+ } else {
+ this.setState({ status: UNMOUNTED });
+ }
+
+ return;
+ }
+
+ // 确保只响应prop变化
+ if (this._needsUpdate) {
+ this._needsUpdate = false;
+
+ if (this.props["in"]) {
+ if (status === EXITING) {
+ this.performEnter(this.props);
+ } else if (status === EXITED) {
+ this.performEnter(this.props);
+ }
+ // 其他,当我们已经输入或输出
+ } else {
+ if (status === ENTERING || status === ENTERED) {
+ this.performExit(this.props);
+ }
+ // 我们已经输入或输出完成
+ }
+ }
+ };
+
+ Transition.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.cancelNextCallback();
+ };
+
+ Transition.prototype.performEnter = function performEnter(props) {
+ var _this2 = this;
+
+ this.cancelNextCallback();
+ var node = _reactDom2["default"].findDOMNode(this);
+
+ // 这里接收新props
+ props.onEnter(node);
+
+ this.safeSetState({ status: ENTERING }, function () {
+ _this2.props.onEntering(node);
+
+ _this2.onTransitionEnd(node, function () {
+ _this2.safeSetState({ status: ENTERED }, function () {
+ _this2.props.onEntered(node);
+ });
+ });
+ });
+ };
+
+ Transition.prototype.performExit = function performExit(props) {
+ var _this3 = this;
+
+ this.cancelNextCallback();
+ var node = _reactDom2["default"].findDOMNode(this);
+
+ props.onExit(node);
+
+ this.safeSetState({ status: EXITING }, function () {
+ _this3.props.onExiting(node);
+
+ _this3.onTransitionEnd(node, function () {
+ _this3.safeSetState({ status: EXITED }, function () {
+ _this3.props.onExited(node);
+ });
+ });
+ });
+ };
+
+ Transition.prototype.cancelNextCallback = function cancelNextCallback() {
+ if (this.nextCallback !== null) {
+ this.nextCallback.cancel();
+ this.nextCallback = null;
+ }
+ };
+
+ Transition.prototype.safeSetState = function safeSetState(nextState, callback) {
+ // 确保在组件销毁后挂起的setState被消除
+ this.setState(nextState, this.setNextCallback(callback));
+ };
+
+ Transition.prototype.setNextCallback = function setNextCallback(callback) {
+ var _this4 = this;
+
+ var active = true;
+
+ this.nextCallback = function (event) {
+ if (active) {
+ active = false;
+ _this4.nextCallback = null;
+
+ callback(event);
+ }
+ };
+
+ this.nextCallback.cancel = function () {
+ active = false;
+ };
+
+ return this.nextCallback;
+ };
+
+ Transition.prototype.onTransitionEnd = function onTransitionEnd(node, handler) {
+ this.setNextCallback(handler);
+
+ if (node) {
+ (0, _on2["default"])(node, transitionEndEvent, this.nextCallback);
+ setTimeout(this.nextCallback, this.props.timeout);
+ } else {
+ setTimeout(this.nextCallback, 0);
+ }
+ };
+
+ Transition.prototype.render = function render() {
+ var status = this.state.status;
+ if (status === UNMOUNTED) {
+ return null;
+ }
+
+ var _props = this.props,
+ children = _props.children,
+ className = _props.className,
+ childProps = _objectWithoutProperties(_props, ['children', 'className']);
+
+ Object.keys(Transition.propTypes).forEach(function (key) {
+ return delete childProps[key];
+ });
+
+ var transitionClassName = void 0;
+ if (status === EXITED) {
+ transitionClassName = this.props.exitedClassName;
+ } else if (status === ENTERING) {
+ transitionClassName = this.props.enteringClassName;
+ } else if (status === ENTERED) {
+ transitionClassName = this.props.enteredClassName;
+ } else if (status === EXITING) {
+ transitionClassName = this.props.exitingClassName;
+ }
+
+ var child = _react2["default"].Children.only(children);
+ return _react2["default"].cloneElement(child, _extends({}, childProps, {
+ className: (0, _classnames2["default"])(child.props.className, className, transitionClassName)
+ }));
+ };
+
+ return Transition;
+ }(_react.Component);
+
+ Transition.propTypes = propTypes;
+
+ Transition.defaultProps = defaultProps;
+
+ exports["default"] = Transition;
+
+/***/ }),
+/* 120 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ /**
+ * Safe chained function
+ *
+ * Will only create a new function if needed,
+ * otherwise will pass back existing functions or null.
+ *
+ * @param {function} functions to chain
+ * @returns {function|null}
+ */
+ function createChainedFunction() {
+ for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
+ funcs[_key] = arguments[_key];
+ }
+
+ return funcs.filter(function (f) {
+ return f != null;
+ }).reduce(function (acc, f) {
+ if (typeof f !== 'function') {
+ throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
+ }
+
+ if (acc === null) {
+ return f;
+ }
+
+ return function chainedFunction() {
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ args[_key2] = arguments[_key2];
+ }
+
+ acc.apply(this, args);
+ f.apply(this, args);
+ };
+ }, null);
+ }
+
+ exports["default"] = createChainedFunction;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 121 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _FormControl = __webpack_require__(122);
+
+ var _FormControl2 = _interopRequireDefault(_FormControl);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _FormControl2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 122 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ componentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string]),
+ type: _propTypes2["default"].string,
+ size: _propTypes2["default"].oneOf(['sm', 'md', 'lg']),
+ onSearch: _propTypes2["default"].func,
+ onChange: _propTypes2["default"].func
+ };
+
+ var defaultProps = {
+ componentClass: 'input',
+ clsPrefix: 'u-form-control',
+ type: 'text',
+ size: 'md'
+ };
+
+ var FormControl = function (_React$Component) {
+ _inherits(FormControl, _React$Component);
+
+ function FormControl(props) {
+ _classCallCheck(this, FormControl);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.handleSearchChange = function (e) {
+ var onChange = _this.props.onChange;
+
+ var value = _this.input.value;
+ _this.setState({
+ value: value,
+ showSearch: value == null || value === ""
+ });
+ if (onChange) {
+ onChange(value, e);
+ }
+ };
+
+ _this.handleChange = function (e) {
+ var onChange = _this.props.onChange;
+
+ var value = _this.input.value;
+
+ if (onChange) {
+ onChange(value, e);
+ }
+ };
+
+ _this.clearValue = function () {
+ var onChange = _this.props.onChange;
+
+ _this.setState({ showSearch: true, value: "" });
+ if (onChange) {
+ onChange("");
+ }
+ _this.input.focus();
+ };
+
+ _this.handleKeyDown = function (e) {
+ var _this$props = _this.props,
+ onSearch = _this$props.onSearch,
+ value = _this$props.value,
+ type = _this$props.type;
+
+ if (e.keyCode === 13 && type === "search") {
+ if (onSearch) {
+ onSearch(value);
+ }
+ }
+ };
+
+ _this.renderInput = function () {
+ var _this$props2 = _this.props,
+ Component = _this$props2.componentClass,
+ type = _this$props2.type,
+ className = _this$props2.className,
+ size = _this$props2.size,
+ clsPrefix = _this$props2.clsPrefix,
+ value = _this$props2.value,
+ onChange = _this$props2.onChange,
+ onSearch = _this$props2.onSearch,
+ others = _objectWithoutProperties(_this$props2, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'value', 'onChange', 'onSearch']);
+ // input[type="file"] 不应该有类名 .form-control.
+
+
+ var classes = {};
+ if (size) {
+ classes['' + size] = true;
+ }
+
+ var classNames = void 0;
+ if (type !== 'file') {
+ classNames = (0, _classnames2["default"])(clsPrefix, classes);
+ }
+
+ return _react2["default"].createElement(Component, _extends({}, others, {
+ type: type,
+ ref: function ref(el) {
+ return _this.input = el;
+ },
+ value: value,
+ onChange: _this.handleChange,
+ className: (0, _classnames2["default"])(className, classNames)
+ }));
+ };
+
+ _this.renderSearch = function () {
+ var _this$props3 = _this.props,
+ Component = _this$props3.componentClass,
+ type = _this$props3.type,
+ className = _this$props3.className,
+ size = _this$props3.size,
+ clsPrefix = _this$props3.clsPrefix,
+ value = _this$props3.value,
+ onChange = _this$props3.onChange,
+ onSearch = _this$props3.onSearch,
+ others = _objectWithoutProperties(_this$props3, ['componentClass', 'type', 'className', 'size', 'clsPrefix', 'value', 'onChange', 'onSearch']);
+ // input[type="file"] 不应该有类名 .form-control.
+
+
+ var classes = {};
+ if (size) {
+ classes['' + size] = true;
+ }
+ classes[clsPrefix + '-search'] = true;
+
+ if (type === "search") {
+ return _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(clsPrefix + '-search', clsPrefix + '-affix-wrapper', className) },
+ _react2["default"].createElement(Component, _extends({}, others, {
+ type: type,
+ ref: function ref(el) {
+ return _this.input = el;
+ },
+ onChange: _this.handleSearchChange,
+ value: value,
+ onKeyDown: _this.handleKeyDown,
+ className: (0, _classnames2["default"])(className, clsPrefix, classes)
+ })),
+ _react2["default"].createElement(
+ 'div',
+ { className: clsPrefix + '-suffix' },
+ _this.state.showSearch ? _react2["default"].createElement(_beeIcon2["default"], { type: 'uf-search' }) : _react2["default"].createElement(_beeIcon2["default"], { onClick: _this.clearValue, type: 'uf-close-c' })
+ )
+ );
+ }
+ };
+
+ _this.state = {
+ showSearch: !props.value,
+ value: props.value == null ? "" : props.value
+ };
+ _this.input = {};
+ return _this;
+ }
+
+ FormControl.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProp) {
+ if (nextProp.value !== this.state.value) {
+ this.setState({ value: nextProp.value });
+ }
+ };
+
+ FormControl.prototype.render = function render() {
+
+ if (this.props.type === "search") {
+ return this.renderSearch();
+ }
+
+ return this.renderInput();
+ };
+
+ return FormControl;
+ }(_react2["default"].Component);
+
+ FormControl.propTypes = propTypes;
+ FormControl.defaultProps = defaultProps;
+
+ exports["default"] = FormControl;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 123 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Select = __webpack_require__(124);
+
+ var _Select2 = _interopRequireDefault(_Select);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Select2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 124 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _RcSelect = __webpack_require__(125);
+
+ var _RcSelect2 = _interopRequireDefault(_RcSelect);
+
+ var _Option = __webpack_require__(154);
+
+ var _Option2 = _interopRequireDefault(_Option);
+
+ var _OptGroup = __webpack_require__(141);
+
+ var _OptGroup2 = _interopRequireDefault(_OptGroup);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var SelectContext = {
+ antLocale: {
+ Select: _propTypes2["default"].any
+ }
+ };
+
+ var defaultProps = {
+ clsPrefix: "u-select",
+ showSearch: false,
+ transitionName: "slide-up",
+ choiceTransitionName: "zoom"
+ };
+
+ var propTypes = {
+ clsPrefix: _propTypes2["default"].string,
+ className: _propTypes2["default"].string,
+ value: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].any]),
+ defaultValue: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]),
+ size: _propTypes2["default"].oneOf(["default", "lg", "sm"]),
+ combobox: _propTypes2["default"].bool,
+ notFoundContent: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array, _propTypes2["default"].any]),
+ showSearch: _propTypes2["default"].bool,
+ transitionName: _propTypes2["default"].string,
+ choiceTransitionName: _propTypes2["default"].string,
+ multiple: _propTypes2["default"].bool,
+ allowClear: _propTypes2["default"].bool,
+ filterOption: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].func]),
+ tags: _propTypes2["default"].bool,
+ onSelect: _propTypes2["default"].func,
+ onDeselect: _propTypes2["default"].func,
+ onSearch: _propTypes2["default"].func,
+ placeholder: _propTypes2["default"].string,
+ dropdownMatchSelectWidth: _propTypes2["default"].bool,
+ optionFilterProp: _propTypes2["default"].string,
+ optionLabelProp: _propTypes2["default"].string,
+ disabled: _propTypes2["default"].bool,
+ defaultActiveFirstOption: _propTypes2["default"].bool,
+ labelInValue: _propTypes2["default"].bool,
+ getPopupContainer: _propTypes2["default"].func,
+ style: _propTypes2["default"].object,
+ dropdownStyle: _propTypes2["default"].object,
+ dropdownMenuStyle: _propTypes2["default"].object,
+ onChange: _propTypes2["default"].func,
+ scrollToEnd: _propTypes2["default"].func
+ };
+
+ var Select = function (_Component) {
+ _inherits(Select, _Component);
+
+ function Select(props) {
+ _classCallCheck(this, Select);
+
+ return _possibleConstructorReturn(this, _Component.call(this, props));
+ }
+
+ Select.prototype.render = function render() {
+ var _classNames;
+
+ var _props = this.props,
+ clsPrefix = _props.clsPrefix,
+ _props$className = _props.className,
+ className = _props$className === undefined ? "" : _props$className,
+ size = _props.size,
+ combobox = _props.combobox,
+ showSearch = _props.showSearch,
+ data = _props.data;
+ var _props2 = this.props,
+ _props2$notFoundConte = _props2.notFoundContent,
+ notFoundContent = _props2$notFoundConte === undefined ? "Not Found" : _props2$notFoundConte,
+ optionLabelProp = _props2.optionLabelProp;
+
+
+ var cls = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, clsPrefix + "-lg", size === "lg"), _defineProperty(_classNames, clsPrefix + "-sm", size === "sm"), _defineProperty(_classNames, clsPrefix + "-show-search", showSearch), _classNames), className);
+
+ var antLocale = this.context.antLocale;
+
+ if (antLocale && antLocale.Select) {
+ notFoundContent = "notFoundContent" in this.props ? notFoundContent : antLocale.Select.notFoundContent;
+ }
+
+ if (combobox) {
+ notFoundContent = null;
+ // children 带 dom 结构时,无法填入输入框
+ optionLabelProp = optionLabelProp || "value";
+ }
+ if (data) {
+ data.map(function (item) {
+ return _react2["default"].createElement(
+ _Option2["default"],
+ { value: item.value },
+ item.key
+ );
+ });
+ }
+ return data ? _react2["default"].createElement(
+ _RcSelect2["default"],
+ _extends({}, this.props, {
+ className: cls,
+ optionLabelProp: optionLabelProp || "children",
+ notFoundContent: notFoundContent
+ }),
+ data.map(function (item) {
+ return _react2["default"].createElement(
+ _Option2["default"],
+ { key: item.value, value: item.value, disabled: item.disabled ? true : false },
+ item.key
+ );
+ })
+ ) : _react2["default"].createElement(_RcSelect2["default"], _extends({}, this.props, {
+ className: cls,
+ optionLabelProp: optionLabelProp || "children",
+ notFoundContent: notFoundContent
+ }));
+ };
+
+ return Select;
+ }(_react.Component);
+
+ Select.context = SelectContext;
+ Select.propTypes = propTypes;
+ Select.defaultProps = defaultProps;
+ Select.Option = _Option2["default"];
+ Select.OptGroup = _OptGroup2["default"];
+
+ exports["default"] = Select;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 125 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _beeMenus = __webpack_require__(126);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _OptGroup = __webpack_require__(141);
+
+ var _OptGroup2 = _interopRequireDefault(_OptGroup);
+
+ var _warning = __webpack_require__(31);
+
+ var _warning2 = _interopRequireDefault(_warning);
+
+ var _componentClasses = __webpack_require__(46);
+
+ var _componentClasses2 = _interopRequireDefault(_componentClasses);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _util = __webpack_require__(142);
+
+ var _SelectTrigger = __webpack_require__(143);
+
+ var _SelectTrigger2 = _interopRequireDefault(_SelectTrigger);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ //import FilterMixin from './FilterMixin';
+
+ function noop() {}
+
+ function filterFn(input, child) {
+ return String((0, _util.getPropValue)(child, this.props.optionFilterProp)).indexOf(input) > -1;
+ }
+
+ function saveRef(name, component) {
+ this[name] = component;
+ }
+
+ var valueObjectShape = void 0;
+
+ if (_propTypes2["default"]) {
+ valueObjectShape = _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].shape({
+ key: _propTypes2["default"].string,
+ label: _propTypes2["default"].node
+ })]);
+ }
+
+ var propTypes = {
+ defaultActiveFirstOption: _propTypes2["default"].bool,
+ multiple: _propTypes2["default"].bool,
+ filterOption: _propTypes2["default"].any,
+ children: _propTypes2["default"].any,
+ showSearch: _propTypes2["default"].bool,
+ disabled: _propTypes2["default"].bool,
+ allowClear: _propTypes2["default"].bool,
+ showArrow: _propTypes2["default"].bool,
+ tags: _propTypes2["default"].bool,
+ clsPrefix: _propTypes2["default"].string,
+ className: _propTypes2["default"].string,
+ transitionName: _propTypes2["default"].string,
+ optionLabelProp: _propTypes2["default"].string,
+ optionFilterProp: _propTypes2["default"].string,
+ animation: _propTypes2["default"].string,
+ choiceTransitionName: _propTypes2["default"].string,
+ onChange: _propTypes2["default"].func,
+ onBlur: _propTypes2["default"].func,
+ onFocus: _propTypes2["default"].func,
+ onSelect: _propTypes2["default"].func,
+ onSearch: _propTypes2["default"].func,
+ placeholder: _propTypes2["default"].any,
+ onDeselect: _propTypes2["default"].func,
+ labelInValue: _propTypes2["default"].bool,
+ value: _propTypes2["default"].oneOfType([valueObjectShape, _propTypes2["default"].arrayOf(valueObjectShape)]),
+ defaultValue: _propTypes2["default"].oneOfType([valueObjectShape, _propTypes2["default"].arrayOf(valueObjectShape)]),
+ dropdownStyle: _propTypes2["default"].object,
+ maxTagTextLength: _propTypes2["default"].number,
+ tokenSeparators: _propTypes2["default"].arrayOf(_propTypes2["default"].string)
+ };
+
+ var defaultProps = {
+ clsPrefix: 'rc-select',
+ filterOption: filterFn,
+ defaultOpen: false,
+ labelInValue: false,
+ defaultActiveFirstOption: true,
+ showSearch: true,
+ allowClear: false,
+ placeholder: '',
+ defaultValue: [],
+ onChange: noop,
+ onFocus: noop,
+ onBlur: noop,
+ onSelect: noop,
+ onSearch: noop,
+ onDeselect: noop,
+ showArrow: true,
+ dropdownMatchSelectWidth: true,
+ dropdownStyle: {},
+ dropdownMenuStyle: {},
+ optionFilterProp: 'value',
+ optionLabelProp: 'value',
+ notFoundContent: 'Not Found'
+ };
+
+ var RcSelect = function (_Component) {
+ _inherits(RcSelect, _Component);
+
+ //mixins: [FilterMixin],
+
+ function RcSelect(props) {
+ _classCallCheck(this, RcSelect);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ var value = [];
+ if ('value' in props) {
+ value = (0, _util.toArray)(props.value);
+ } else {
+ value = (0, _util.toArray)(props.defaultValue);
+ }
+ value = _this.addLabelToValue(props, value);
+ value = _this.addTitleToValue(props, value);
+ var inputValue = '';
+ if (props.combobox) {
+ inputValue = value.length ? String(value[0].key) : '';
+ }
+ _this.saveInputRef = saveRef.bind(_this, 'inputInstance');
+ _this.saveInputMirrorRef = saveRef.bind(_this, 'inputMirrorInstance');
+ var open = props.open;
+ if (open === undefined) {
+ open = props.defaultOpen;
+ }
+ _this.state = {
+ value: value,
+ inputValue: inputValue,
+ open: open
+ };
+
+ _this.filterOption = _this.filterOption.bind(_this);
+ _this.renderFilterOptions = _this.renderFilterOptions.bind(_this);
+ _this.renderFilterOptionsFromChildren = _this.renderFilterOptionsFromChildren.bind(_this);
+ _this.onInputChange = _this.onInputChange.bind(_this);
+ _this.onDropdownVisibleChange = _this.onDropdownVisibleChange.bind(_this);
+
+ _this.onKeyDown = _this.onKeyDown.bind(_this);
+ _this.onInputKeyDown = _this.onInputKeyDown.bind(_this);
+ _this.onMenuSelect = _this.onMenuSelect.bind(_this);
+ _this.onMenuDeselect = _this.onMenuDeselect.bind(_this);
+ _this.onArrowClick = _this.onArrowClick.bind(_this);
+
+ _this.onPlaceholderClick = _this.onPlaceholderClick.bind(_this);
+ _this.onOuterFocus = _this.onOuterFocus.bind(_this);
+ _this.onPopupFocus = _this.onPopupFocus.bind(_this);
+ _this.onOuterBlur = _this.onOuterBlur.bind(_this);
+ _this.onClearSelection = _this.onClearSelection.bind(_this);
+
+ _this.onChoiceAnimationLeave = _this.onChoiceAnimationLeave.bind(_this);
+ _this.getLabelBySingleValue = _this.getLabelBySingleValue.bind(_this);
+ _this.getValueByLabel = _this.getValueByLabel.bind(_this);
+ _this.getLabelFromOption = _this.getLabelFromOption.bind(_this);
+ _this.getLabelFromProps = _this.getLabelFromProps.bind(_this);
+
+ _this.getVLForOnChange = _this.getVLForOnChange.bind(_this);
+ _this.getLabelByValue = _this.getLabelByValue.bind(_this);
+ _this.getDropdownContainer = _this.getDropdownContainer.bind(_this);
+ _this.getPlaceholderElement = _this.getPlaceholderElement.bind(_this);
+ _this.getInputElement = _this.getInputElement.bind(_this);
+
+ _this.getInputDOMNode = _this.getInputDOMNode.bind(_this);
+ _this.getInputMirrorDOMNode = _this.getInputMirrorDOMNode.bind(_this);
+ _this.getPopupDOMNode = _this.getPopupDOMNode.bind(_this);
+ _this.getPopupMenuComponent = _this.getPopupMenuComponent.bind(_this);
+ _this.setOpenState = _this.setOpenState.bind(_this);
+
+ _this.setInputValue = _this.setInputValue.bind(_this);
+ _this.clearBlurTime = _this.clearBlurTime.bind(_this);
+ _this.clearAdjustTimer = _this.clearAdjustTimer.bind(_this);
+ _this.clearAdjustTimer = _this.clearAdjustTimer.bind(_this);
+ _this.updateFocusClassName = _this.updateFocusClassName.bind(_this);
+
+ _this.maybeFocus = _this.maybeFocus.bind(_this);
+ _this.addLabelToValue = _this.addLabelToValue.bind(_this);
+ _this.addTitleToValue = _this.addTitleToValue.bind(_this);
+ _this.removeSelected = _this.removeSelected.bind(_this);
+ _this.openIfHasChildren = _this.openIfHasChildren.bind(_this);
+
+ _this.fireChange = _this.fireChange.bind(_this);
+ _this.isChildDisabled = _this.isChildDisabled.bind(_this);
+ _this.tokenize = _this.tokenize.bind(_this);
+ _this.adjustOpenState = _this.adjustOpenState.bind(_this);
+ _this.renderTopControlNode = _this.renderTopControlNode.bind(_this);
+
+ return _this;
+ }
+
+ RcSelect.prototype.componentWillMount = function componentWillMount() {
+ this.adjustOpenState();
+ };
+
+ RcSelect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if ('value' in nextProps) {
+ var value = (0, _util.toArray)(nextProps.value);
+ value = this.addLabelToValue(nextProps, value);
+ value = this.addTitleToValue(nextProps, value);
+ this.setState({
+ value: value
+ });
+ if (nextProps.combobox) {
+ this.setState({
+ inputValue: value.length ? this.getLabelFromProps(nextProps, value[0].key) : ''
+ });
+ }
+ }
+ };
+
+ RcSelect.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
+ this.props = nextProps;
+ this.state = nextState;
+ this.adjustOpenState();
+ };
+
+ RcSelect.prototype.componentDidUpdate = function componentDidUpdate() {
+ var state = this.state,
+ props = this.props;
+
+ if (state.open && (0, _util.isMultipleOrTags)(props)) {
+ var inputNode = this.getInputDOMNode();
+ var mirrorNode = this.getInputMirrorDOMNode();
+ if (inputNode.value) {
+ inputNode.style.width = '';
+ inputNode.style.width = mirrorNode.clientWidth + 'px';
+ } else {
+ inputNode.style.width = '';
+ }
+ }
+ };
+
+ RcSelect.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.clearBlurTime();
+ this.clearAdjustTimer();
+ if (this.dropdownContainer) {
+ _reactDom2["default"].unmountComponentAtNode(this.dropdownContainer);
+ document.body.removeChild(this.dropdownContainer);
+ this.dropdownContainer = null;
+ }
+ };
+
+ RcSelect.prototype.filterOption = function filterOption(input, child) {
+ if (!input) {
+ return true;
+ }
+ var filterOption = this.props.filterOption;
+ if (!filterOption) {
+ return true;
+ }
+ if (child.props.disabled) {
+ return false;
+ }
+ return filterOption.call(this, input, child);
+ };
+
+ RcSelect.prototype.renderFilterOptions = function renderFilterOptions(inputValue) {
+ return this.renderFilterOptionsFromChildren(this.props.children, true, inputValue);
+ };
+
+ RcSelect.prototype.renderFilterOptionsFromChildren = function renderFilterOptionsFromChildren(children, showNotFound, iv) {
+ var _this2 = this;
+
+ var sel = [];
+ var props = this.props;
+ var inputValue = iv === undefined ? this.state.inputValue : iv;
+ var childrenKeys = [];
+ var tags = props.tags;
+ _react2["default"].Children.forEach(children, function (child) {
+ if (child.type === _OptGroup2["default"]) {
+ var innerItems = _this2.renderFilterOptionsFromChildren(child.props.children, false);
+ if (innerItems.length) {
+ var label = child.props.label;
+ var key = child.key;
+ if (!key && typeof label === 'string') {
+ key = label;
+ } else if (!label && key) {
+ label = key;
+ }
+ sel.push(_react2["default"].createElement(
+ _beeMenus.ItemGroup,
+ { key: key, title: label },
+ innerItems
+ ));
+ }
+ return;
+ }
+
+ // warning(
+ // child.type === Option,
+ // 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' +
+ // `instead of \`${child.type.name || child.type.displayName || child.type}\`.`
+ // );
+
+ var childValue = (0, _util.getValuePropValue)(child);
+ if (_this2.filterOption(inputValue, child)) {
+ sel.push(_react2["default"].createElement(_beeMenus.Item, _extends({
+ style: _util.UNSELECTABLE_STYLE,
+ attribute: _util.UNSELECTABLE_ATTRIBUTE,
+ value: childValue,
+ key: childValue
+ }, child.props)));
+ }
+ if (tags && !child.props.disabled) {
+ childrenKeys.push(childValue);
+ }
+ });
+ if (tags) {
+ // tags value must be string
+ var value = this.state.value || [];
+ value = value.filter(function (singleValue) {
+ return childrenKeys.indexOf(singleValue.key) === -1 && (!inputValue || String(singleValue.key).indexOf(String(inputValue)) > -1);
+ });
+ sel = sel.concat(value.map(function (singleValue) {
+ var key = singleValue.key;
+ return _react2["default"].createElement(
+ _beeMenus.Item,
+ {
+ style: _util.UNSELECTABLE_STYLE,
+ attribute: _util.UNSELECTABLE_ATTRIBUTE,
+ value: key,
+ key: key
+ },
+ key
+ );
+ }));
+ if (inputValue) {
+ var notFindInputItem = sel.every(function (option) {
+ return (0, _util.getValuePropValue)(option) !== inputValue;
+ });
+ if (notFindInputItem) {
+ sel.unshift(_react2["default"].createElement(
+ _beeMenus.Item,
+ {
+ style: _util.UNSELECTABLE_STYLE,
+ attribute: _util.UNSELECTABLE_ATTRIBUTE,
+ value: inputValue,
+ key: inputValue
+ },
+ inputValue
+ ));
+ }
+ }
+ }
+ if (!sel.length && showNotFound && props.notFoundContent) {
+ sel = [_react2["default"].createElement(
+ _beeMenus.Item,
+ {
+ style: _util.UNSELECTABLE_STYLE,
+ attribute: _util.UNSELECTABLE_ATTRIBUTE,
+ disabled: true,
+ value: 'NOT_FOUND',
+ key: 'NOT_FOUND'
+ },
+ props.notFoundContent
+ )];
+ }
+ return sel;
+ };
+
+ RcSelect.prototype.onInputChange = function onInputChange(event) {
+ var tokenSeparators = this.props.tokenSeparators;
+
+ var val = event.target.value;
+ if ((0, _util.isMultipleOrTags)(this.props) && tokenSeparators && (0, _util.includesSeparators)(val, tokenSeparators)) {
+ var nextValue = this.tokenize(val);
+ this.fireChange(nextValue);
+ this.setOpenState(false, true);
+ this.setInputValue('', false);
+ return;
+ }
+ this.setInputValue(val);
+ this.setState({
+ open: true
+ });
+ if ((0, _util.isCombobox)(this.props)) {
+ this.fireChange([{
+ key: val
+ }]);
+ }
+ };
+
+ RcSelect.prototype.onDropdownVisibleChange = function onDropdownVisibleChange(open) {
+ this.setOpenState(open);
+ };
+
+ // combobox ignore
+
+
+ RcSelect.prototype.onKeyDown = function onKeyDown(event) {
+ var props = this.props;
+ if (props.disabled) {
+ return;
+ }
+ var keyCode = event.keyCode;
+ if (this.state.open && !this.getInputDOMNode()) {
+ this.onInputKeyDown(event);
+ } else if (keyCode === _tinperBeeCore.KeyCode.ENTER || keyCode === _tinperBeeCore.KeyCode.DOWN) {
+ this.setOpenState(true);
+ event.preventDefault();
+ }
+ };
+
+ RcSelect.prototype.onInputKeyDown = function onInputKeyDown(event) {
+ var props = this.props;
+ if (props.disabled) {
+ return;
+ }
+ var state = this.state;
+ var keyCode = event.keyCode;
+ if ((0, _util.isMultipleOrTags)(props) && !event.target.value && keyCode === _tinperBeeCore.KeyCode.BACKSPACE) {
+ event.preventDefault();
+ var value = state.value;
+
+ if (value.length) {
+ this.removeSelected(value[value.length - 1].key);
+ }
+ return;
+ }
+ if (keyCode === _tinperBeeCore.KeyCode.DOWN) {
+ if (!state.open) {
+ this.openIfHasChildren();
+ event.preventDefault();
+ event.stopPropagation();
+ return;
+ }
+ } else if (keyCode === _tinperBeeCore.KeyCode.ESC) {
+ if (state.open) {
+ this.setOpenState(false);
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ return;
+ }
+
+ if (state.open) {
+ var menu = this.refs.trigger.getInnerMenu();
+
+ if (menu && menu.rcMenu.onKeyDown(event)) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+ };
+
+ RcSelect.prototype.onMenuSelect = function onMenuSelect(_ref) {
+ var _this3 = this;
+
+ var item = _ref.item;
+
+ var value = this.state.value;
+ var props = this.props;
+ var selectedValue = (0, _util.getValuePropValue)(item);
+ var selectedLabel = this.getLabelFromOption(item);
+ var event = selectedValue;
+ if (props.labelInValue) {
+ event = {
+ key: event,
+ label: selectedLabel
+ };
+ }
+ props.onSelect(event, item);
+ var selectedTitle = item.props.title;
+ if ((0, _util.isMultipleOrTags)(props)) {
+ if ((0, _util.findIndexInValueByKey)(value, selectedValue) !== -1) {
+ return;
+ }
+ value = value.concat([{
+ key: selectedValue,
+ label: selectedLabel,
+ title: selectedTitle
+ }]);
+ } else {
+ if ((0, _util.isCombobox)(props)) {
+ this.skipAdjustOpen = true;
+ this.clearAdjustTimer();
+ this.skipAdjustOpenTimer = setTimeout(function () {
+ _this3.skipAdjustOpen = false;
+ }, 0);
+ }
+ if (value.length && value[0].key === selectedValue) {
+ this.setOpenState(false, true);
+ return;
+ }
+ value = [{
+ key: selectedValue,
+ label: selectedLabel,
+ title: selectedTitle
+ }];
+ this.setOpenState(false, true);
+ }
+ this.fireChange(value);
+ var inputValue = void 0;
+ if ((0, _util.isCombobox)(props)) {
+ inputValue = (0, _util.getPropValue)(item, props.optionLabelProp);
+ } else {
+ inputValue = '';
+ }
+ this.setInputValue(inputValue, false);
+ };
+
+ RcSelect.prototype.onMenuDeselect = function onMenuDeselect(_ref2) {
+ var item = _ref2.item,
+ domEvent = _ref2.domEvent;
+
+ if (domEvent.type === 'click') {
+ this.removeSelected((0, _util.getValuePropValue)(item));
+ }
+ this.setInputValue('', false);
+ };
+
+ RcSelect.prototype.onArrowClick = function onArrowClick(e) {
+ e.stopPropagation();
+ if (!this.props.disabled) {
+ this.setOpenState(!this.state.open, true);
+ }
+ };
+
+ RcSelect.prototype.onPlaceholderClick = function onPlaceholderClick() {
+ if (this.getInputDOMNode()) {
+ this.getInputDOMNode().focus();
+ }
+ };
+
+ RcSelect.prototype.onOuterFocus = function onOuterFocus() {
+ this.clearBlurTime();
+ this._focused = true;
+ this.updateFocusClassName();
+ this.props.onFocus();
+ };
+
+ RcSelect.prototype.onPopupFocus = function onPopupFocus() {
+ // fix ie scrollbar, focus element again
+ this.maybeFocus(true, true);
+ };
+
+ RcSelect.prototype.onOuterBlur = function onOuterBlur() {
+ var _this4 = this;
+
+ this.blurTimer = setTimeout(function () {
+ _this4._focused = false;
+ _this4.updateFocusClassName();
+ var props = _this4.props;
+ var value = _this4.state.value;
+ var inputValue = _this4.state.inputValue;
+
+ if ((0, _util.isSingleMode)(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {
+ var options = _this4._options || [];
+ if (options.length) {
+ var firstOption = (0, _util.findFirstMenuItem)(options);
+ if (firstOption) {
+ value = [{
+ key: firstOption.key,
+ label: _this4.getLabelFromOption(firstOption)
+ }];
+ _this4.fireChange(value);
+ }
+ }
+ } else if ((0, _util.isMultipleOrTags)(props) && inputValue) {
+ // why not use setState?
+ _this4.state.inputValue = _this4.getInputDOMNode().value = '';
+ }
+ props.onBlur(_this4.getVLForOnChange(value));
+ }, 10);
+ };
+
+ RcSelect.prototype.onClearSelection = function onClearSelection(event) {
+ var props = this.props;
+ var state = this.state;
+ if (props.disabled) {
+ return;
+ }
+ var inputValue = state.inputValue,
+ value = state.value;
+
+ event.stopPropagation();
+ if (inputValue || value.length) {
+ if (value.length) {
+ this.fireChange([]);
+ }
+ this.setOpenState(false, true);
+ if (inputValue) {
+ this.setInputValue('');
+ }
+ }
+ };
+
+ RcSelect.prototype.onChoiceAnimationLeave = function onChoiceAnimationLeave() {
+ this.refs.trigger.refs.trigger.forcePopupAlign();
+ };
+
+ RcSelect.prototype.getLabelBySingleValue = function getLabelBySingleValue(children, value) {
+ var _this5 = this;
+
+ if (value === undefined) {
+ return null;
+ }
+ var label = null;
+ _react2["default"].Children.forEach(children, function (child) {
+ if (child.type === _OptGroup2["default"]) {
+ var maybe = _this5.getLabelBySingleValue(child.props.children, value);
+ if (maybe !== null) {
+ label = maybe;
+ }
+ } else if ((0, _util.getValuePropValue)(child) === value) {
+ label = _this5.getLabelFromOption(child);
+ }
+ });
+ return label;
+ };
+
+ RcSelect.prototype.getValueByLabel = function getValueByLabel(children, label) {
+ var _this6 = this;
+
+ if (label === undefined) {
+ return null;
+ }
+ var value = null;
+ _react2["default"].Children.forEach(children, function (child) {
+ if (child.type === _OptGroup2["default"]) {
+ var maybe = _this6.getValueByLabel(child.props.children, label);
+ if (maybe !== null) {
+ value = maybe;
+ }
+ } else if ((0, _util.toArray)(_this6.getLabelFromOption(child)).join('') === label) {
+ value = (0, _util.getValuePropValue)(child);
+ }
+ });
+ return value;
+ };
+
+ RcSelect.prototype.getLabelFromOption = function getLabelFromOption(child) {
+ return (0, _util.getPropValue)(child, this.props.optionLabelProp);
+ };
+
+ RcSelect.prototype.getLabelFromProps = function getLabelFromProps(props, value) {
+ return this.getLabelByValue(props.children, value);
+ };
+
+ RcSelect.prototype.getVLForOnChange = function getVLForOnChange(vls_) {
+ var vls = vls_;
+ if (vls !== undefined) {
+ if (!this.props.labelInValue) {
+ vls = vls.map(function (v) {
+ return v.key;
+ });
+ } else {
+ vls = vls.map(function (vl) {
+ return { key: vl.key, label: vl.label };
+ });
+ }
+ return (0, _util.isMultipleOrTags)(this.props) ? vls : vls[0];
+ }
+ return vls;
+ };
+
+ RcSelect.prototype.getLabelByValue = function getLabelByValue(children, value) {
+ var label = this.getLabelBySingleValue(children, value);
+ if (label === null) {
+ return value;
+ }
+ return label;
+ };
+
+ RcSelect.prototype.getDropdownContainer = function getDropdownContainer() {
+ if (!this.dropdownContainer) {
+ this.dropdownContainer = document.createElement('div');
+ document.body.appendChild(this.dropdownContainer);
+ }
+ return this.dropdownContainer;
+ };
+
+ RcSelect.prototype.getPlaceholderElement = function getPlaceholderElement() {
+ var props = this.props,
+ state = this.state;
+
+ var hidden = false;
+ if (state.inputValue) {
+ hidden = true;
+ }
+ if (state.value.length) {
+ hidden = true;
+ }
+ if ((0, _util.isCombobox)(props) && state.value.length === 1 && !state.value[0].key) {
+ hidden = false;
+ }
+ var placeholder = props.placeholder;
+ if (placeholder) {
+ return _react2["default"].createElement(
+ 'div',
+ _extends({
+ onMouseDown: _util.preventDefaultEvent,
+ style: _extends({
+ display: hidden ? 'none' : 'block'
+ }, _util.UNSELECTABLE_STYLE)
+ }, _util.UNSELECTABLE_ATTRIBUTE, {
+ onClick: this.onPlaceholderClick,
+ className: props.clsPrefix + '-selection-placeholder'
+ }),
+ placeholder
+ );
+ }
+ return null;
+ };
+
+ RcSelect.prototype.getInputElement = function getInputElement() {
+ var props = this.props;
+ return _react2["default"].createElement(
+ 'div',
+ { className: props.clsPrefix + '-search-field-wrap' },
+ _react2["default"].createElement('input', {
+ ref: this.saveInputRef,
+ onChange: this.onInputChange,
+ onKeyDown: this.onInputKeyDown,
+ value: this.state.inputValue,
+ disabled: props.disabled,
+ className: props.clsPrefix + '-search-field'
+ }),
+ _react2["default"].createElement(
+ 'span',
+ {
+ ref: this.saveInputMirrorRef,
+ className: props.clsPrefix + '-search-field-mirror'
+ },
+ this.state.inputValue
+ )
+ );
+ };
+
+ RcSelect.prototype.getInputDOMNode = function getInputDOMNode() {
+ return this.inputInstance;
+ };
+
+ RcSelect.prototype.getInputMirrorDOMNode = function getInputMirrorDOMNode() {
+ return this.inputMirrorInstance;
+ };
+
+ RcSelect.prototype.getPopupDOMNode = function getPopupDOMNode() {
+ return this.refs.trigger.getPopupDOMNode();
+ };
+
+ RcSelect.prototype.getPopupMenuComponent = function getPopupMenuComponent() {
+ return this.refs.trigger.getInnerMenu();
+ };
+
+ RcSelect.prototype.setOpenState = function setOpenState(open, needFocus) {
+ var _this7 = this;
+
+ var props = this.props,
+ state = this.state;
+
+ if (state.open === open) {
+ this.maybeFocus(open, needFocus);
+ return;
+ }
+ var nextState = {
+ open: open
+ };
+ // clear search input value when open is false in singleMode.
+ if (!open && (0, _util.isSingleMode)(props) && props.showSearch) {
+ this.setInputValue('');
+ }
+ if (!open) {
+ this.maybeFocus(open, needFocus);
+ }
+ this.setState(nextState, function () {
+ if (open) {
+ _this7.maybeFocus(open, needFocus);
+ }
+ });
+ };
+
+ RcSelect.prototype.setInputValue = function setInputValue(inputValue) {
+ var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+
+ this.setState({
+ inputValue: inputValue
+ });
+ if (fireSearch) {
+ this.props.onSearch(inputValue);
+ }
+ };
+
+ RcSelect.prototype.clearBlurTime = function clearBlurTime() {
+ if (this.blurTimer) {
+ clearTimeout(this.blurTimer);
+ this.blurTimer = null;
+ }
+ };
+
+ RcSelect.prototype.clearAdjustTimer = function clearAdjustTimer() {
+ if (this.skipAdjustOpenTimer) {
+ clearTimeout(this.skipAdjustOpenTimer);
+ this.skipAdjustOpenTimer = null;
+ }
+ };
+
+ RcSelect.prototype.updateFocusClassName = function updateFocusClassName() {
+ var refs = this.refs,
+ props = this.props;
+
+
+ if (this._focused) {
+ (0, _componentClasses2["default"])(refs.root).add(props.clsPrefix + '-focused');
+ } else {
+ (0, _componentClasses2["default"])(refs.root).remove(props.clsPrefix + '-focused');
+ }
+ };
+
+ RcSelect.prototype.maybeFocus = function maybeFocus(open, needFocus) {
+ if (needFocus || open) {
+ var input = this.getInputDOMNode();
+ var _document = document,
+ activeElement = _document.activeElement;
+
+ if (input && (open || (0, _util.isMultipleOrTagsOrCombobox)(this.props))) {
+ if (activeElement !== input) {
+ input.focus();
+ }
+ } else {
+ var selection = this.refs.selection;
+ if (activeElement !== selection) {
+ selection.focus();
+ }
+ }
+ }
+ };
+
+ RcSelect.prototype.addLabelToValue = function addLabelToValue(props, value_) {
+ var _this8 = this;
+
+ var value = value_;
+ if (props.labelInValue) {
+ value.forEach(function (v) {
+ v.label = v.label || _this8.getLabelFromProps(props, v.key);
+ });
+ } else {
+ value = value.map(function (v) {
+ return {
+ key: v,
+ label: _this8.getLabelFromProps(props, v)
+ };
+ });
+ }
+ return value;
+ };
+
+ RcSelect.prototype.addTitleToValue = function addTitleToValue(props, values) {
+ var _this9 = this;
+
+ var nextValues = values;
+ var keys = values.map(function (v) {
+ return v.key;
+ });
+ _react2["default"].Children.forEach(props.children, function (child) {
+ if (child.type === _OptGroup2["default"]) {
+ nextValues = _this9.addTitleToValue(child.props, nextValues);
+ } else {
+ var value = (0, _util.getValuePropValue)(child);
+ var valueIndex = keys.indexOf(value);
+ if (valueIndex > -1) {
+ nextValues[valueIndex].title = child.props.title;
+ }
+ }
+ });
+ return nextValues;
+ };
+
+ RcSelect.prototype.removeSelected = function removeSelected(selectedKey) {
+ var props = this.props;
+ if (props.disabled || this.isChildDisabled(selectedKey)) {
+ return;
+ }
+ var label = void 0;
+ var value = this.state.value.filter(function (singleValue) {
+ if (singleValue.key === selectedKey) {
+ label = singleValue.label;
+ }
+ return singleValue.key !== selectedKey;
+ });
+ var canMultiple = (0, _util.isMultipleOrTags)(props);
+
+ if (canMultiple) {
+ var event = selectedKey;
+ if (props.labelInValue) {
+ event = {
+ key: selectedKey,
+ label: label
+ };
+ }
+ props.onDeselect(event);
+ }
+ this.fireChange(value);
+ };
+
+ RcSelect.prototype.openIfHasChildren = function openIfHasChildren() {
+ var props = this.props;
+ if (_react2["default"].Children.count(props.children) || (0, _util.isSingleMode)(props)) {
+ this.setOpenState(true);
+ }
+ };
+
+ RcSelect.prototype.fireChange = function fireChange(value) {
+ var props = this.props;
+ if (!('value' in props)) {
+ this.setState({
+ value: value
+ });
+ }
+ props.onChange(this.getVLForOnChange(value));
+ };
+
+ RcSelect.prototype.isChildDisabled = function isChildDisabled(key) {
+ return (0, _util.toArray)(this.props.children).some(function (child) {
+ var childValue = (0, _util.getValuePropValue)(child);
+ return childValue === key && child.props && child.props.disabled;
+ });
+ };
+
+ RcSelect.prototype.tokenize = function tokenize(string) {
+ var _this10 = this;
+
+ var _props = this.props,
+ multiple = _props.multiple,
+ tokenSeparators = _props.tokenSeparators,
+ children = _props.children;
+
+ var nextValue = this.state.value;
+ (0, _util.splitBySeparators)(string, tokenSeparators).forEach(function (label) {
+ var selectedValue = { key: label, label: label };
+ if ((0, _util.findIndexInValueByLabel)(nextValue, label) === -1) {
+ if (multiple) {
+ var value = _this10.getValueByLabel(children, label);
+ if (value) {
+ selectedValue.key = value;
+ nextValue = nextValue.concat(selectedValue);
+ }
+ } else {
+ nextValue = nextValue.concat(selectedValue);
+ }
+ }
+ });
+ return nextValue;
+ };
+
+ RcSelect.prototype.adjustOpenState = function adjustOpenState() {
+ if (this.skipAdjustOpen) {
+ return;
+ }
+ var open = this.state.open;
+
+ if (typeof document !== 'undefined' && this.getInputDOMNode() && document.activeElement === this.getInputDOMNode()) {
+ open = true;
+ }
+ var options = [];
+ if (open) {
+ options = this.renderFilterOptions();
+ }
+ this._options = options;
+ if (open && ((0, _util.isMultipleOrTagsOrCombobox)(this.props) || !this.props.showSearch) && !options.length) {
+ open = false;
+ }
+ this.state.open = open;
+ };
+
+ RcSelect.prototype.renderTopControlNode = function renderTopControlNode() {
+ var _this11 = this;
+
+ var _state = this.state,
+ value = _state.value,
+ open = _state.open,
+ inputValue = _state.inputValue;
+
+ var props = this.props;
+ var choiceTransitionName = props.choiceTransitionName,
+ clsPrefix = props.clsPrefix,
+ maxTagTextLength = props.maxTagTextLength,
+ showSearch = props.showSearch;
+
+ var className = clsPrefix + '-selection-rendered';
+ // search input is inside topControlNode in single, multiple & combobox. 2016/04/13
+ var innerNode = null;
+ if ((0, _util.isSingleMode)(props)) {
+ var selectedValue = null;
+ if (value.length) {
+ var showSelectedValue = false;
+ var opacity = 1;
+ if (!showSearch) {
+ showSelectedValue = true;
+ } else {
+ if (open) {
+ showSelectedValue = !inputValue;
+ if (showSelectedValue) {
+ opacity = 0.4;
+ }
+ } else {
+ showSelectedValue = true;
+ }
+ }
+ var singleValue = value[0];
+ selectedValue = _react2["default"].createElement(
+ 'div',
+ {
+ key: 'value',
+ className: clsPrefix + '-selection-selected-value',
+ title: singleValue.title || singleValue.label,
+ style: {
+ display: showSelectedValue ? 'block' : 'none',
+ opacity: opacity
+ }
+ },
+ value[0].label
+ );
+ }
+ if (!showSearch) {
+ innerNode = [selectedValue];
+ } else {
+ innerNode = [selectedValue, _react2["default"].createElement(
+ 'div',
+ {
+ className: clsPrefix + '-search ' + clsPrefix + '-search--inline',
+ key: 'input',
+ style: {
+ display: open ? 'block' : 'none'
+ }
+ },
+ this.getInputElement()
+ )];
+ }
+ } else {
+ var selectedValueNodes = [];
+ if ((0, _util.isMultipleOrTags)(props)) {
+ selectedValueNodes = value.map(function (singleValue) {
+ var content = singleValue.label;
+ var title = singleValue.title || content;
+ if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
+ content = content.slice(0, maxTagTextLength) + '...';
+ }
+ var disabled = _this11.isChildDisabled(singleValue.key);
+ var choiceClassName = disabled ? clsPrefix + '-selection-choice ' + clsPrefix + '-selection-choice-disabled' : clsPrefix + '-selection-choice';
+ return _react2["default"].createElement(
+ 'li',
+ _extends({
+ style: _util.UNSELECTABLE_STYLE
+ }, _util.UNSELECTABLE_ATTRIBUTE, {
+ onMouseDown: _util.preventDefaultEvent,
+ className: choiceClassName,
+ key: singleValue.key,
+ title: title
+ }),
+ _react2["default"].createElement(
+ 'div',
+ { className: clsPrefix + '-selection-choice-content' },
+ content
+ ),
+ disabled ? null : _react2["default"].createElement('span', {
+ className: clsPrefix + '-selection-choice-remove',
+ onClick: _this11.removeSelected.bind(_this11, singleValue.key)
+ })
+ );
+ });
+ }
+ selectedValueNodes.push(_react2["default"].createElement(
+ 'li',
+ {
+ className: clsPrefix + '-search ' + clsPrefix + '-search--inline',
+ key: '__input'
+ },
+ this.getInputElement()
+ ));
+
+ innerNode = _react2["default"].createElement(
+ 'ul',
+ null,
+ selectedValueNodes
+ );
+ }
+ return _react2["default"].createElement(
+ 'div',
+ { className: className },
+ this.getPlaceholderElement(),
+ innerNode
+ );
+ };
+
+ RcSelect.prototype.render = function render() {
+ var _rootCls;
+
+ var props = this.props;
+ var multiple = (0, _util.isMultipleOrTags)(props);
+ var state = this.state;
+ var className = props.className,
+ disabled = props.disabled,
+ allowClear = props.allowClear,
+ clsPrefix = props.clsPrefix;
+
+ var ctrlNode = this.renderTopControlNode();
+ var extraSelectionProps = {};
+ var open = this.state.open;
+
+ var options = this._options;
+ if (!(0, _util.isMultipleOrTagsOrCombobox)(props)) {
+ extraSelectionProps = {
+ onKeyDown: this.onKeyDown,
+ tabIndex: 0
+ };
+ }
+ var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, clsPrefix, 1), _defineProperty(_rootCls, clsPrefix + '-open', open), _defineProperty(_rootCls, clsPrefix + '-focused', open || !!this._focused), _defineProperty(_rootCls, clsPrefix + '-combobox', (0, _util.isCombobox)(props)), _defineProperty(_rootCls, clsPrefix + '-disabled', disabled), _defineProperty(_rootCls, clsPrefix + '-enabled', !disabled), _defineProperty(_rootCls, clsPrefix + '-allow-clear', !!props.allowClear), _rootCls);
+ var clearStyle = _extends({}, _util.UNSELECTABLE_STYLE, {
+ display: 'none'
+ });
+ if (state.inputValue || state.value.length) {
+ clearStyle.display = 'block';
+ }
+ var clear = _react2["default"].createElement('span', _extends({
+ key: 'clear',
+ onMouseDown: _util.preventDefaultEvent,
+ style: clearStyle
+ }, _util.UNSELECTABLE_ATTRIBUTE, {
+ className: clsPrefix + '-selection-clear',
+ onClick: this.onClearSelection
+ }));
+ return _react2["default"].createElement(
+ _SelectTrigger2["default"],
+ {
+ onPopupFocus: this.onPopupFocus,
+ dropdownAlign: props.dropdownAlign,
+ dropdownClassName: props.dropdownClassName,
+ dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,
+ defaultActiveFirstOption: props.defaultActiveFirstOption,
+ dropdownMenuStyle: props.dropdownMenuStyle,
+ transitionName: props.transitionName,
+ animation: props.animation,
+ clsPrefix: props.clsPrefix,
+ dropdownStyle: props.dropdownStyle,
+ combobox: props.combobox,
+ showSearch: props.showSearch,
+ options: options,
+ multiple: multiple,
+ disabled: disabled,
+ visible: open,
+ inputValue: state.inputValue,
+ value: state.value,
+ onDropdownVisibleChange: this.onDropdownVisibleChange,
+ getPopupContainer: props.getPopupContainer,
+ onMenuSelect: this.onMenuSelect,
+ onMenuDeselect: this.onMenuDeselect,
+ scrollToEnd: props.scrollToEnd,
+ ref: 'trigger'
+ },
+ _react2["default"].createElement(
+ 'div',
+ {
+ style: props.style,
+ ref: 'root',
+ onBlur: this.onOuterBlur,
+ onFocus: this.onOuterFocus,
+ className: (0, _classnames2["default"])(rootCls)
+ },
+ _react2["default"].createElement(
+ 'div',
+ _extends({
+ ref: 'selection',
+ key: 'selection',
+ className: clsPrefix + '-selection\n ' + clsPrefix + '-selection--' + (multiple ? 'multiple' : 'single'),
+ role: 'combobox',
+ 'aria-autocomplete': 'list',
+ 'aria-haspopup': 'true',
+ 'aria-expanded': open
+ }, extraSelectionProps),
+ ctrlNode,
+ allowClear && !multiple ? clear : null,
+ multiple || !props.showArrow ? null : _react2["default"].createElement(
+ 'span',
+ _extends({
+ key: 'arrow',
+ className: clsPrefix + '-arrow',
+ style: _util.UNSELECTABLE_STYLE
+ }, _util.UNSELECTABLE_ATTRIBUTE, {
+ onMouseDown: _util.preventDefaultEvent,
+ onClick: this.onArrowClick
+ }),
+ _react2["default"].createElement('b', null)
+ )
+ )
+ )
+ );
+ };
+
+ return RcSelect;
+ }(_react.Component);
+
+ ;
+
+ RcSelect.defaultProps = defaultProps;
+ RcSelect.propTypes = propTypes;
+
+ exports["default"] = RcSelect;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 126 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _VerticalMenu = __webpack_require__(127);
+
+ var _VerticalMenu2 = _interopRequireDefault(_VerticalMenu);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _VerticalMenu2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 127 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _ExportMenu = __webpack_require__(128);
+
+ var _ExportMenu2 = _interopRequireDefault(_ExportMenu);
+
+ var _openAnimation = __webpack_require__(139);
+
+ var _openAnimation2 = _interopRequireDefault(_openAnimation);
+
+ var _warning = __webpack_require__(140);
+
+ var _warning2 = _interopRequireDefault(_warning);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var Menu = function (_React$Component) {
+ _inherits(Menu, _React$Component);
+
+ function Menu(props) {
+ _classCallCheck(this, Menu);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.handleClick = function (e) {
+ _this.setOpenKeys([]);
+
+ var onClick = _this.props.onClick;
+ if (onClick) {
+ onClick(e);
+ }
+ };
+
+ _this.handleOpenChange = function (openKeys) {
+ _this.setOpenKeys(openKeys);
+
+ var onOpenChange = _this.props.onOpenChange;
+ if (onOpenChange) {
+ onOpenChange(openKeys);
+ }
+ };
+
+ (0, _warning2["default"])(!('onOpen' in props || 'onClose' in props), '`onOpen` and `onClose` are removed, please use `onOpenChange` instead.');
+
+ _this.state = {
+ openKeys: []
+ };
+ _this.rcMenu = {};
+ return _this;
+ }
+
+ Menu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if (this.props.mode === 'inline' && nextProps.mode !== 'inline') {
+ this.switchModeFromInline = true;
+ }
+ if ('openKeys' in nextProps) {
+ this.setOpenKeys(nextProps.openKeys);
+ }
+ };
+
+ Menu.prototype.setOpenKeys = function setOpenKeys(openKeys) {
+ if (!('openKeys' in this.props)) {
+ this.setState({ openKeys: openKeys });
+ }
+ };
+
+ Menu.prototype.render = function render() {
+ var _this2 = this;
+
+ var openAnimation = this.props.openAnimation || this.props.openTransitionName;
+ if (!openAnimation) {
+ switch (this.props.mode) {
+ case 'horizontal':
+ openAnimation = 'slide-up';
+ break;
+ case 'vertical':
+ // When mode switch from inline
+ // submenu should hide without animation
+ if (this.switchModeFromInline) {
+ openAnimation = '';
+ this.switchModeFromInline = false;
+ } else {
+ openAnimation = 'zoom-big';
+ }
+ break;
+ case 'inline':
+ openAnimation = _openAnimation2["default"];
+ break;
+ default:
+ }
+ }
+
+ var props = {};
+ var className = this.props.className + ' ' + this.props.prefixCls + '-' + this.props.theme;
+ if (this.props.mode !== 'inline') {
+ // 这组属性的目的是
+ // 弹出型的菜单需要点击后立即关闭
+ // 另外,弹出型的菜单的受控模式没有使用场景
+ props = {
+ openKeys: this.state.openKeys,
+ onClick: this.handleClick,
+ onOpenChange: this.handleOpenChange,
+ openTransitionName: openAnimation,
+ className: className
+ };
+ } else {
+ props = {
+ openAnimation: openAnimation,
+ className: className
+ };
+ }
+ return _react2["default"].createElement(_ExportMenu2["default"], _extends({ ref: function ref(el) {
+ return _this2.rcMenu = el;
+ } }, this.props, props));
+ };
+
+ return Menu;
+ }(_react2["default"].Component);
+
+ Menu.defaultProps = {
+ prefixCls: 'u-menu',
+ className: '',
+ theme: 'light' // or dark
+ };
+
+ Menu.Divider = _ExportMenu.Divider;
+ Menu.Item = _ExportMenu.Item;
+ Menu.SubMenu = _ExportMenu.SubMenu;
+ Menu.ItemGroup = _ExportMenu.ItemGroup;
+ Menu.MenuToggle = _ExportMenu.MenuToggle;
+ Menu.SideContainer = _ExportMenu.SideContainer;
+ exports["default"] = Menu;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 128 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.MenuToggle = exports.SideContainer = exports.Divider = exports.ItemGroup = exports.MenuItemGroup = exports.MenuItem = exports.Item = exports.SubMenu = undefined;
+
+ var _Menu = __webpack_require__(129);
+
+ var _Menu2 = _interopRequireDefault(_Menu);
+
+ var _SubMenu = __webpack_require__(132);
+
+ var _SubMenu2 = _interopRequireDefault(_SubMenu);
+
+ var _MenuItem = __webpack_require__(134);
+
+ var _MenuItem2 = _interopRequireDefault(_MenuItem);
+
+ var _MenuItemGroup = __webpack_require__(135);
+
+ var _MenuItemGroup2 = _interopRequireDefault(_MenuItemGroup);
+
+ var _Divider = __webpack_require__(136);
+
+ var _Divider2 = _interopRequireDefault(_Divider);
+
+ var _SideContainer = __webpack_require__(137);
+
+ var _SideContainer2 = _interopRequireDefault(_SideContainer);
+
+ var _MenuToggle = __webpack_require__(138);
+
+ var _MenuToggle2 = _interopRequireDefault(_MenuToggle);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports.SubMenu = _SubMenu2["default"];
+ exports.Item = _MenuItem2["default"];
+ exports.MenuItem = _MenuItem2["default"];
+ exports.MenuItemGroup = _MenuItemGroup2["default"];
+ exports.ItemGroup = _MenuItemGroup2["default"];
+ exports.Divider = _Divider2["default"];
+ exports.SideContainer = _SideContainer2["default"];
+ exports.MenuToggle = _MenuToggle2["default"];
+ exports["default"] = _Menu2["default"];
+
+/***/ }),
+/* 129 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _util = __webpack_require__(130);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _DOMWrap = __webpack_require__(131);
+
+ var _DOMWrap2 = _interopRequireDefault(_DOMWrap);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ function saveRef(index, subIndex, c) {
+ if (c) {
+ if (subIndex !== undefined) {
+ this.instanceArray[index] = this.instanceArray[index] || [];
+ this.instanceArray[index][subIndex] = c;
+ } else {
+ this.instanceArray[index] = c;
+ }
+ }
+ }
+ function allDisabled(arr) {
+ if (!arr.length) {
+ return true;
+ }
+ return arr.every(function (c) {
+ return !!c.props.disabled;
+ });
+ }
+
+ function getActiveKey(props, originalActiveKey) {
+ var activeKey = originalActiveKey;
+ var children = props.children,
+ eventKey = props.eventKey;
+
+ if (activeKey) {
+ var found = void 0;
+ (0, _util.loopMenuItem)(children, function (c, i) {
+ if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) {
+ found = true;
+ }
+ });
+ if (found) {
+ return activeKey;
+ }
+ }
+ activeKey = null;
+ if (props.defaultActiveFirst) {
+ (0, _util.loopMenuItem)(children, function (c, i) {
+ if (!activeKey && c && !c.props.disabled) {
+ activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i);
+ }
+ });
+ return activeKey;
+ }
+ return activeKey;
+ }
+
+ var propTypes = {
+
+ openSubMenuOnMouseEnter: _propTypes2["default"].bool,
+ closeSubMenuOnMouseLeave: _propTypes2["default"].bool,
+ selectedKeys: _propTypes2["default"].oneOfType([_propTypes2["default"].array, _propTypes2["default"].string]),
+ defaultSelectedKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string),
+ defaultOpenKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string),
+ openKeys: _propTypes2["default"].arrayOf(_propTypes2["default"].string),
+ mode: _propTypes2["default"].string,
+ onClick: _propTypes2["default"].func,
+ onSelect: _propTypes2["default"].func,
+ onDeselect: _propTypes2["default"].func,
+ onDestroy: _propTypes2["default"].func,
+ openTransitionName: _propTypes2["default"].string,
+ openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]),
+ level: _propTypes2["default"].number,
+ eventKey: _propTypes2["default"].string,
+ selectable: _propTypes2["default"].bool,
+ children: _propTypes2["default"].any,
+
+ focusable: _propTypes2["default"].bool,
+ multiple: _propTypes2["default"].bool,
+ style: _propTypes2["default"].object,
+ defaultActiveFirst: _propTypes2["default"].bool,
+ visible: _propTypes2["default"].bool,
+ activeKey: _propTypes2["default"].string
+
+ };
+ var defaultProps = {
+ openSubMenuOnMouseEnter: true,
+ closeSubMenuOnMouseLeave: true,
+ selectable: true,
+ onClick: _util.noop,
+ onSelect: _util.noop,
+ onOpenChange: _util.noop,
+ onDeselect: _util.noop,
+ defaultSelectedKeys: [],
+ defaultOpenKeys: [],
+
+ clsPrefix: 'u-menu',
+ className: '',
+ mode: 'vertical',
+ level: 1,
+ inlineIndent: 24,
+ visible: true,
+ focusable: true,
+ style: {}
+ };
+
+ var Menu = function (_Component) {
+ _inherits(Menu, _Component);
+
+ function Menu(props) {
+ _classCallCheck(this, Menu);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ var selectedKeys = _this.props.defaultSelectedKeys;
+ var openKeys = _this.props.defaultOpenKeys;
+ if ('selectedKeys' in _this.props) {
+ selectedKeys = _this.props.selectedKeys || [];
+ }
+ if ('openKeys' in props) {
+ openKeys = _this.props.openKeys || [];
+ }
+
+ _this.state = {
+ selectedKeys: selectedKeys,
+ openKeys: openKeys,
+ activeKey: getActiveKey(_this.props, _this.props.activeKey)
+ //activeKey: getActiveKey(this.props, this.props.activeKey),
+ };
+ _this.renderMenuItem = _this.renderMenuItem.bind(_this);
+ _this.onDestroy = _this.onDestroy.bind(_this);
+ _this.onItemHover = _this.onItemHover.bind(_this);
+ _this.onSelect = _this.onSelect.bind(_this);
+ _this.onOpenChange = _this.onOpenChange.bind(_this);
+ _this.onClick = _this.onClick.bind(_this);
+ _this.onDeselect = _this.onDeselect.bind(_this);
+ _this.getOpenTransitionName = _this.getOpenTransitionName.bind(_this);
+ _this.isInlineMode = _this.isInlineMode.bind(_this);
+ _this.lastOpenSubMenu = _this.lastOpenSubMenu.bind(_this);
+ _this.renderMenuItem = _this.renderMenuItem.bind(_this);
+
+ _this.renderCommonMenuItem = _this.renderCommonMenuItem.bind(_this);
+ _this.renderRoot = _this.renderRoot.bind(_this);
+ _this.getOpenChangesOnItemHover = _this.getOpenChangesOnItemHover.bind(_this);
+ _this.getFlatInstanceArray = _this.getFlatInstanceArray.bind(_this);
+ _this.onKeyDown = _this.onKeyDown.bind(_this);
+ _this.step = _this.step.bind(_this);
+
+ return _this;
+ }
+
+ Menu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ var props = {};
+ if ('selectedKeys' in nextProps) {
+ props.selectedKeys = nextProps.selectedKeys;
+ }
+ if ('openKeys' in nextProps) {
+ props.openKeys = nextProps.openKeys;
+ }
+
+ if ('activeKey' in nextProps) {
+ props.activeKey = getActiveKey(nextProps, nextProps.activeKey);
+ } else {
+ var originalActiveKey = this.state.activeKey;
+ var activeKey = getActiveKey(nextProps, originalActiveKey);
+ // fix: this.setState(), parent.render(),
+ if (activeKey !== originalActiveKey) {
+ props.activeKey = activeKey;
+ }
+ }
+
+ this.setState(props);
+ };
+
+ Menu.prototype.componentWillMount = function componentWillMount() {
+ this.instanceArray = [];
+ };
+
+ Menu.prototype.onDestroy = function onDestroy(key) {
+ var state = this.state;
+ var props = this.props;
+ var selectedKeys = state.selectedKeys;
+ var openKeys = state.openKeys;
+ var index = selectedKeys.indexOf(key);
+ if (!('selectedKeys' in props) && index !== -1) {
+ selectedKeys.splice(index, 1);
+ }
+ index = openKeys.indexOf(key);
+ if (!('openKeys' in props) && index !== -1) {
+ openKeys.splice(index, 1);
+ }
+ };
+
+ Menu.prototype.onItemHover = function onItemHover(e) {
+ var item = e.item;
+ var _props = this.props,
+ mode = _props.mode,
+ closeSubMenuOnMouseLeave = _props.closeSubMenuOnMouseLeave;
+ var _e$openChanges = e.openChanges,
+ openChanges = _e$openChanges === undefined ? [] : _e$openChanges;
+ // special for top sub menu
+
+ if (mode !== 'inline' && !closeSubMenuOnMouseLeave && item.isSubMenu) {
+ var activeKey = this.state.activeKey;
+ var activeItem = this.getFlatInstanceArray().filter(function (c) {
+ return c && c.props.eventKey === activeKey;
+ })[0];
+ if (activeItem && activeItem.props.open) {
+ openChanges = openChanges.concat({
+ key: item.props.eventKey,
+ item: item,
+ originalEvent: e,
+ open: true
+ });
+ }
+ }
+ openChanges = openChanges.concat(this.getOpenChangesOnItemHover(e));
+ if (openChanges.length) {
+ this.onOpenChange(openChanges);
+ }
+ };
+
+ Menu.prototype.onSelect = function onSelect(selectInfo) {
+ var props = this.props;
+ if (props.selectable) {
+ // root menu
+ var selectedKeys = this.state.selectedKeys;
+ var selectedKey = selectInfo.key;
+ if (props.multiple) {
+ selectedKeys = selectedKeys.concat([selectedKey]);
+ } else {
+ selectedKeys = [selectedKey];
+ }
+ if (!('selectedKeys' in props)) {
+ this.setState({
+ selectedKeys: selectedKeys
+ });
+ }
+ props.onSelect(_extends({}, selectInfo, {
+ selectedKeys: selectedKeys
+ }));
+ }
+ };
+
+ Menu.prototype.onClick = function onClick(e) {
+ this.props.onClick(e);
+ };
+
+ Menu.prototype.onOpenChange = function onOpenChange(e_) {
+ var props = this.props;
+ var openKeys = this.state.openKeys.concat();
+ var changed = false;
+ var processSingle = function processSingle(e) {
+ var oneChanged = false;
+ if (e.open) {
+ oneChanged = openKeys.indexOf(e.key) === -1;
+ if (oneChanged) {
+ openKeys.push(e.key);
+ }
+ } else {
+ var index = openKeys.indexOf(e.key);
+ oneChanged = index !== -1;
+ if (oneChanged) {
+ openKeys.splice(index, 1);
+ }
+ }
+ changed = changed || oneChanged;
+ };
+ if (Array.isArray(e_)) {
+ // batch change call
+ e_.forEach(processSingle);
+ } else {
+ processSingle(e_);
+ }
+ if (changed) {
+ if (!('openKeys' in this.props)) {
+ this.setState({ openKeys: openKeys });
+ }
+ props.onOpenChange(openKeys);
+ }
+ };
+
+ Menu.prototype.onDeselect = function onDeselect(selectInfo) {
+ var props = this.props;
+ if (props.selectable) {
+ var selectedKeys = this.state.selectedKeys.concat();
+ var selectedKey = selectInfo.key;
+ var index = selectedKeys.indexOf(selectedKey);
+ if (index !== -1) {
+ selectedKeys.splice(index, 1);
+ }
+ if (!('selectedKeys' in props)) {
+ this.setState({
+ selectedKeys: selectedKeys
+ });
+ }
+ props.onDeselect(_extends({}, selectInfo, {
+ selectedKeys: selectedKeys
+ }));
+ }
+ };
+
+ Menu.prototype.getOpenTransitionName = function getOpenTransitionName() {
+ var props = this.props;
+ var transitionName = props.openTransitionName;
+ var animationName = props.openAnimation;
+ if (!transitionName && typeof animationName === 'string') {
+ transitionName = props.clsPrefix + '-open-' + animationName;
+ }
+ return transitionName;
+ };
+
+ Menu.prototype.isInlineMode = function isInlineMode() {
+ return this.props.mode === 'inline';
+ };
+
+ Menu.prototype.lastOpenSubMenu = function lastOpenSubMenu() {
+ var lastOpen = [];
+ var openKeys = this.state.openKeys;
+
+ if (openKeys.length) {
+ lastOpen = this.getFlatInstanceArray().filter(function (c) {
+ return c && openKeys.indexOf(c.props.eventKey) !== -1;
+ });
+ }
+ return lastOpen[0];
+ };
+
+ Menu.prototype.renderMenuItem = function renderMenuItem(c, i, subIndex) {
+ if (!c) {
+ return null;
+ }
+ var state = this.state;
+ var extraProps = {
+ openKeys: state.openKeys,
+ selectedKeys: state.selectedKeys,
+ openSubMenuOnMouseEnter: this.props.openSubMenuOnMouseEnter
+ };
+ return this.renderCommonMenuItem(c, i, subIndex, extraProps);
+ };
+
+ Menu.prototype.renderCommonMenuItem = function renderCommonMenuItem(child, i, subIndex, extraProps) {
+ var state = this.state;
+ var props = this.props;
+ var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i);
+ var childProps = child.props;
+ var isActive = key === state.activeKey;
+ var newChildProps = _extends({
+ mode: props.mode,
+ level: props.level,
+ inlineIndent: props.inlineIndent,
+ renderMenuItem: this.renderMenuItem,
+ rootPrefixCls: props.clsPrefix,
+ index: i,
+ parentMenu: this,
+ ref: childProps.disabled ? undefined : (0, _tinperBeeCore.createChainedFunction)(child.ref, saveRef.bind(this, i, subIndex)),
+ eventKey: key,
+ closeSubMenuOnMouseLeave: props.closeSubMenuOnMouseLeave,
+ onItemHover: this.onItemHover,
+ active: !childProps.disabled && isActive,
+ multiple: props.multiple,
+ onClick: this.onClick,
+ openTransitionName: this.getOpenTransitionName(),
+ openAnimation: props.openAnimation,
+ onOpenChange: this.onOpenChange,
+ onDeselect: this.onDeselect,
+ onDestroy: this.onDestroy,
+ onSelect: this.onSelect
+ }, extraProps);
+ if (props.mode === 'inline') {
+ newChildProps.closeSubMenuOnMouseLeave = newChildProps.openSubMenuOnMouseEnter = false;
+ }
+ return _react2["default"].cloneElement(child, newChildProps);
+ };
+
+ Menu.prototype.getOpenChangesOnItemHover = function getOpenChangesOnItemHover(e) {
+ var mode = this.props.mode;
+ var key = e.key,
+ hover = e.hover,
+ trigger = e.trigger;
+
+ var activeKey = this.state.activeKey;
+ if (!trigger || hover || this.props.closeSubMenuOnMouseLeave || !e.item.isSubMenu || mode === 'inline') {
+ this.setState({
+ activeKey: hover ? key : null
+ });
+ } else {}
+ // keep active for sub menu for click active
+ // empty
+
+ // clear last open status
+ if (hover && mode !== 'inline') {
+ var activeItem = this.getFlatInstanceArray().filter(function (c) {
+ return c && c.props.eventKey === activeKey;
+ })[0];
+ if (activeItem && activeItem.isSubMenu && activeItem.props.eventKey !== key) {
+ return {
+ item: activeItem,
+ originalEvent: e,
+ key: activeItem.props.eventKey,
+ open: false
+ };
+ }
+ }
+ return [];
+ };
+
+ Menu.prototype.getFlatInstanceArray = function getFlatInstanceArray() {
+ var instanceArray = this.instanceArray;
+ var hasInnerArray = instanceArray.some(function (a) {
+ return Array.isArray(a);
+ });
+ if (hasInnerArray) {
+ instanceArray = [];
+ this.instanceArray.forEach(function (a) {
+ if (Array.isArray(a)) {
+ instanceArray.push.apply(instanceArray, a);
+ } else {
+ instanceArray.push(a);
+ }
+ });
+ this.instanceArray = instanceArray;
+ }
+ return instanceArray;
+ };
+
+ Menu.prototype.step = function step(direction) {
+ var children = this.getFlatInstanceArray();
+ var activeKey = this.state.activeKey;
+ var len = children.length;
+ if (!len) {
+ return null;
+ }
+ if (direction < 0) {
+ children = children.concat().reverse();
+ }
+ // find current activeIndex
+ var activeIndex = -1;
+ children.every(function (c, ci) {
+ if (c && c.props.eventKey === activeKey) {
+ activeIndex = ci;
+ return false;
+ }
+ return true;
+ });
+ if (!this.props.defaultActiveFirst && activeIndex !== -1) {
+ if (allDisabled(children.slice(activeIndex, len - 1))) {
+ return undefined;
+ }
+ }
+ var start = (activeIndex + 1) % len;
+ var i = start;
+ for (;;) {
+ var child = children[i];
+ if (!child || child.props.disabled) {
+ i = (i + 1 + len) % len;
+ // complete a loop
+ if (i === start) {
+ return null;
+ }
+ } else {
+ return child;
+ }
+ }
+ };
+
+ Menu.prototype.onKeyDown = function onKeyDown(e) {
+ var _this2 = this;
+
+ var keyCode = e.keyCode;
+ var handled = void 0;
+ this.getFlatInstanceArray().forEach(function (obj) {
+ if (obj && obj.props.active) {
+ handled = obj.onKeyDown(e);
+ }
+ });
+ if (handled) {
+ return 1;
+ }
+ var activeItem = null;
+ if (keyCode === _tinperBeeCore.KeyCode.UP || keyCode === _tinperBeeCore.KeyCode.DOWN) {
+ activeItem = this.step(keyCode === _tinperBeeCore.KeyCode.UP ? -1 : 1);
+ }
+ if (activeItem) {
+ e.preventDefault();
+ this.setState({
+ activeKey: activeItem.props.eventKey
+ }, function () {
+ scrollIntoView(ReactDOM.findDOMNode(activeItem), ReactDOM.findDOMNode(_this2), {
+ onlyScrollIfNeeded: true
+ });
+ });
+ return 1;
+ } else if (activeItem === undefined) {
+ e.preventDefault();
+ this.setState({
+ activeKey: null
+ });
+ return 1;
+ }
+ };
+
+ Menu.prototype.renderRoot = function renderRoot(props) {
+ var _classes;
+
+ this.instanceArray = [];
+ var classes = (_classes = {}, _defineProperty(_classes, props.clsPrefix, 1), _defineProperty(_classes, props.clsPrefix + '-' + props.mode, 1), _defineProperty(_classes, props.className, !!props.className), _classes);
+ var domProps = {
+ className: (0, _classnames2["default"])(classes),
+ role: 'menu',
+ 'aria-activedescendant': ''
+ };
+ if (props.id) {
+ domProps.id = props.id;
+ }
+ if (props.focusable) {
+ domProps.tabIndex = '0';
+ domProps.onKeyDown = this.onKeyDown;
+ }
+ return (
+ // ESLint is not smart enough to know that the type of `children` was checked.
+ /* eslint-disable */
+ _react2["default"].createElement(
+ _DOMWrap2["default"],
+ _extends({
+ style: props.style,
+ tag: 'ul',
+ hiddenClassName: props.clsPrefix + '-hidden',
+ visible: props.visible
+ }, domProps),
+ _react2["default"].Children.map(props.children, this.renderMenuItem.bind(this))
+ )
+ /*eslint-enable */
+
+ );
+ };
+
+ Menu.prototype.render = function render() {
+ var props = _extends({}, this.props);
+ props.className += ' ' + props.clsPrefix + '-root';
+ return this.renderRoot(props);
+ };
+
+ return Menu;
+ }(_react.Component);
+
+ ;
+
+ Menu.propTypes = propTypes;
+ Menu.defaultProps = defaultProps;
+
+ exports["default"] = Menu;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 130 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.noop = noop;
+ exports.getKeyFromChildrenIndex = getKeyFromChildrenIndex;
+ exports.loopMenuItem = loopMenuItem;
+ exports.loopMenuItemRecusively = loopMenuItemRecusively;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function noop() {}
+
+ function getKeyFromChildrenIndex(child, menuEventKey, index) {
+ var prefix = menuEventKey || '';
+ return child.key || prefix + 'item_' + index;
+ }
+
+ function loopMenuItem(children, cb) {
+ var index = -1;
+ _react2["default"].Children.forEach(children, function (c) {
+ index++;
+ if (c && c.type && c.type.isMenuItemGroup) {
+ _react2["default"].Children.forEach(c.props.children, function (c2) {
+ index++;
+ cb(c2, index);
+ });
+ } else {
+ cb(c, index);
+ }
+ });
+ }
+
+ function loopMenuItemRecusively(children, keys, ret) {
+ if (!children || ret.find) {
+ return;
+ }
+ _react2["default"].Children.forEach(children, function (c) {
+ if (ret.find) {
+ return;
+ }
+ if (c) {
+ var construt = c.type;
+ if (!construt || !(construt.isSubMenu || construt.isMenuItem || construt.isMenuItemGroup)) {
+ return;
+ }
+ if (keys.indexOf(c.key) !== -1) {
+ ret.find = true;
+ } else if (c.props.children) {
+ loopMenuItemRecusively(c.props.children, keys, ret);
+ }
+ }
+ });
+ }
+
+/***/ }),
+/* 131 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ tag: _propTypes2["default"].string,
+ hiddenClassName: _propTypes2["default"].string,
+ visible: _propTypes2["default"].bool
+ };
+ var defaultProps = {
+ tag: 'div'
+ };
+
+ var DOMWrap = function (_Component) {
+ _inherits(DOMWrap, _Component);
+
+ function DOMWrap() {
+ _classCallCheck(this, DOMWrap);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ DOMWrap.prototype.render = function render() {
+ var props = _extends({}, this.props);
+ if (!props.visible) {
+ props.className = props.className || '';
+ props.className += ' ' + props.hiddenClassName;
+ }
+ var Tag = props.tag;
+ delete props.tag;
+ delete props.hiddenClassName;
+ delete props.visible;
+ return _react2["default"].createElement(Tag, props);
+ };
+
+ return DOMWrap;
+ }(_react.Component);
+
+ ;
+
+ DOMWrap.propTypes = propTypes;
+ DOMWrap.defaultProps = defaultProps;
+
+ exports["default"] = DOMWrap;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 132 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _SubPopupMenu = __webpack_require__(133);
+
+ var _SubPopupMenu2 = _interopRequireDefault(_SubPopupMenu);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _keyCode = __webpack_require__(37);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _util = __webpack_require__(130);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var guid = 0;
+
+ var propTypes = {
+ parentMenu: _propTypes2["default"].object,
+ title: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].node]),
+ children: _propTypes2["default"].any,
+ selectedKeys: _propTypes2["default"].array,
+ openKeys: _propTypes2["default"].array,
+ onClick: _propTypes2["default"].func,
+ onOpenChange: _propTypes2["default"].func,
+ rootPrefixCls: _propTypes2["default"].string,
+ eventKey: _propTypes2["default"].string,
+ multiple: _propTypes2["default"].bool,
+ active: _propTypes2["default"].bool,
+ onSelect: _propTypes2["default"].func,
+ closeSubMenuOnMouseLeave: _propTypes2["default"].bool,
+ openSubMenuOnMouseEnter: _propTypes2["default"].bool,
+ onDeselect: _propTypes2["default"].func,
+ onDestroy: _propTypes2["default"].func,
+ onItemHover: _propTypes2["default"].func,
+ onMouseEnter: _propTypes2["default"].func,
+ onMouseLeave: _propTypes2["default"].func,
+ onTitleMouseEnter: _propTypes2["default"].func,
+ onTitleMouseLeave: _propTypes2["default"].func,
+ onTitleClick: _propTypes2["default"].func
+ };
+ var defaultProps = {
+ onMouseEnter: _util.noop,
+ onMouseLeave: _util.noop,
+ onTitleMouseEnter: _util.noop,
+ onTitleMouseLeave: _util.noop,
+ onTitleClick: _util.noop,
+ title: ''
+ };
+
+ var SubMenu = function (_Component) {
+ _inherits(SubMenu, _Component);
+
+ function SubMenu(props) {
+ _classCallCheck(this, SubMenu);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.isSubMenu = 1;
+ _this.state = {
+ defaultActiveFirst: false
+ };
+
+ _this.onDestroy = _this.onDestroy.bind(_this);
+ _this.onKeyDown = _this.onKeyDown.bind(_this);
+ _this.onOpenChange = _this.onOpenChange.bind(_this);
+ _this.onMouseEnter = _this.onMouseEnter.bind(_this);
+ _this.onTitleMouseEnter = _this.onTitleMouseEnter.bind(_this);
+
+ _this.onTitleMouseLeave = _this.onTitleMouseLeave.bind(_this);
+ _this.onMouseLeave = _this.onMouseLeave.bind(_this);
+ _this.onTitleClick = _this.onTitleClick.bind(_this);
+ _this.onSubMenuClick = _this.onSubMenuClick.bind(_this);
+ _this.onSelect = _this.onSelect.bind(_this);
+ _this.onDeselect = _this.onDeselect.bind(_this);
+
+ _this.getPrefixCls = _this.getPrefixCls.bind(_this);
+ _this.getActiveClassName = _this.getActiveClassName.bind(_this);
+ _this.getSelectedClassName = _this.getSelectedClassName.bind(_this);
+
+ _this.getDisabledClassName = _this.getDisabledClassName.bind(_this);
+ _this.getOpenClassName = _this.getOpenClassName.bind(_this);
+ _this.saveMenuInstance = _this.saveMenuInstance.bind(_this);
+ _this.addKeyPath = _this.addKeyPath.bind(_this);
+ _this.triggerOpenChange = _this.triggerOpenChange.bind(_this);
+ _this.clearSubMenuTimers = _this.clearSubMenuTimers.bind(_this);
+
+ _this.clearSubMenuLeaveTimer = _this.clearSubMenuLeaveTimer.bind(_this);
+ _this.clearSubMenuTitleLeaveTimer = _this.clearSubMenuTitleLeaveTimer.bind(_this);
+ _this.isChildrenSelected = _this.isChildrenSelected.bind(_this);
+ _this.isOpen = _this.isOpen.bind(_this);
+ _this.renderChildren = _this.renderChildren.bind(_this);
+ return _this;
+ }
+
+ SubMenu.prototype.componentWillUnmount = function componentWillUnmount() {
+ var _props = this.props,
+ onDestroy = _props.onDestroy,
+ eventKey = _props.eventKey,
+ parentMenu = _props.parentMenu;
+
+ this.mounted = true;
+ if (onDestroy) {
+ onDestroy(eventKey);
+ }
+ if (parentMenu.subMenuInstance === this) {
+ this.clearSubMenuTimers();
+ }
+ };
+
+ SubMenu.prototype.componentDidMount = function componentDidMount() {
+ this.mounted = true;
+ };
+
+ SubMenu.prototype.onDestroy = function onDestroy(key) {
+ this.props.onDestroy(key);
+ };
+
+ SubMenu.prototype.onKeyDown = function onKeyDown(e) {
+ var keyCode = e.keyCode;
+ var menu = this.menuInstance;
+ var isOpen = this.isOpen();
+
+ if (keyCode === _keyCode2["default"].ENTER) {
+ this.onTitleClick(e);
+ this.setState({
+ defaultActiveFirst: true
+ });
+ return true;
+ }
+
+ if (keyCode === _keyCode2["default"].RIGHT) {
+ if (isOpen) {
+ menu.onKeyDown(e);
+ } else {
+ this.triggerOpenChange(true);
+ this.setState({
+ defaultActiveFirst: true
+ });
+ }
+ return true;
+ }
+ if (keyCode === _keyCode2["default"].LEFT) {
+ var handled = void 0;
+ if (isOpen) {
+ handled = menu.onKeyDown(e);
+ } else {
+ return undefined;
+ }
+ if (!handled) {
+ this.triggerOpenChange(false);
+ handled = true;
+ }
+ return handled;
+ }
+
+ if (isOpen && (keyCode === _keyCode2["default"].UP || keyCode === _keyCode2["default"].DOWN)) {
+ return menu.onKeyDown(e);
+ }
+ };
+
+ SubMenu.prototype.onOpenChange = function onOpenChange(e) {
+ this.props.onOpenChange(e);
+ };
+
+ SubMenu.prototype.onMouseEnter = function onMouseEnter(e) {
+ var props = this.props;
+ this.clearSubMenuLeaveTimer(props.parentMenu.subMenuInstance !== this);
+ props.onMouseEnter({
+ key: props.eventKey,
+ domEvent: e
+ });
+ };
+
+ SubMenu.prototype.onTitleMouseEnter = function onTitleMouseEnter(domEvent) {
+ var props = this.props;
+ var parentMenu = props.parentMenu,
+ key = props.eventKey;
+
+ var item = this;
+ this.clearSubMenuTitleLeaveTimer(parentMenu.subMenuInstance !== item);
+ if (parentMenu.menuItemInstance) {
+ parentMenu.menuItemInstance.clearMenuItemMouseLeaveTimer(true);
+ }
+ var openChanges = [];
+ if (props.openSubMenuOnMouseEnter) {
+ openChanges.push({
+ key: key,
+ item: item,
+ trigger: 'mouseenter',
+ open: true
+ });
+ }
+ props.onItemHover({
+ key: key,
+ item: item,
+ hover: true,
+ trigger: 'mouseenter',
+ openChanges: openChanges
+ });
+ this.setState({
+ defaultActiveFirst: false
+ });
+ props.onTitleMouseEnter({
+ key: key,
+ domEvent: domEvent
+ });
+ };
+
+ SubMenu.prototype.onTitleMouseLeave = function onTitleMouseLeave(e) {
+ var _this2 = this;
+
+ var props = this.props;
+ var parentMenu = props.parentMenu,
+ eventKey = props.eventKey;
+
+ parentMenu.subMenuInstance = this;
+ parentMenu.subMenuTitleLeaveFn = function () {
+ if (_this2.mounted) {
+ // leave whole sub tree
+ // still active
+ if (props.mode === 'inline' && props.active) {
+ props.onItemHover({
+ key: eventKey,
+ item: _this2,
+ hover: false,
+ trigger: 'mouseleave'
+ });
+ }
+ props.onTitleMouseLeave({
+ key: props.eventKey,
+ domEvent: e
+ });
+ }
+ };
+ parentMenu.subMenuTitleLeaveTimer = setTimeout(parentMenu.subMenuTitleLeaveFn, 100);
+ };
+
+ SubMenu.prototype.onMouseLeave = function onMouseLeave(e) {
+ var _this3 = this;
+
+ var props = this.props;
+ var parentMenu = props.parentMenu,
+ eventKey = props.eventKey;
+
+ parentMenu.subMenuInstance = this;
+ parentMenu.subMenuLeaveFn = function () {
+ if (_this3.mounted) {
+ // leave whole sub tree
+ // still active
+ if (props.mode !== 'inline') {
+ var isOpen = _this3.isOpen();
+ if (isOpen && props.closeSubMenuOnMouseLeave && props.active) {
+ props.onItemHover({
+ key: eventKey,
+ item: _this3,
+ hover: false,
+ trigger: 'mouseleave',
+ openChanges: [{
+ key: eventKey,
+ item: _this3,
+ trigger: 'mouseleave',
+ open: false
+ }]
+ });
+ } else {
+ if (props.active) {
+ props.onItemHover({
+ key: eventKey,
+ item: _this3,
+ hover: false,
+ trigger: 'mouseleave'
+ });
+ }
+ if (isOpen && props.closeSubMenuOnMouseLeave) {
+ _this3.triggerOpenChange(false);
+ }
+ }
+ }
+ // trigger mouseleave
+ props.onMouseLeave({
+ key: eventKey,
+ domEvent: e
+ });
+ }
+ };
+ // prevent popup menu and submenu gap
+ parentMenu.subMenuLeaveTimer = setTimeout(parentMenu.subMenuLeaveFn, 100);
+ };
+
+ SubMenu.prototype.onTitleClick = function onTitleClick(e) {
+ var props = this.props;
+
+ props.onTitleClick({
+ key: props.eventKey,
+ domEvent: e
+ });
+ if (props.openSubMenuOnMouseEnter) {
+ return;
+ }
+ this.triggerOpenChange(!this.isOpen(), 'click');
+ this.setState({
+ defaultActiveFirst: false
+ });
+ };
+
+ SubMenu.prototype.onSubMenuClick = function onSubMenuClick(info) {
+ this.props.onClick(this.addKeyPath(info));
+ };
+
+ SubMenu.prototype.onSelect = function onSelect(info) {
+ this.props.onSelect(info);
+ };
+
+ SubMenu.prototype.onDeselect = function onDeselect(info) {
+ this.props.onDeselect(info);
+ };
+
+ SubMenu.prototype.getPrefixCls = function getPrefixCls() {
+ return this.props.rootPrefixCls + '-submenu';
+ };
+
+ SubMenu.prototype.getActiveClassName = function getActiveClassName() {
+ return this.getPrefixCls() + '-active';
+ };
+
+ SubMenu.prototype.getDisabledClassName = function getDisabledClassName() {
+ return this.getPrefixCls() + '-disabled';
+ };
+
+ SubMenu.prototype.getSelectedClassName = function getSelectedClassName() {
+ return this.getPrefixCls() + '-selected';
+ };
+
+ SubMenu.prototype.getOpenClassName = function getOpenClassName() {
+ return this.props.rootPrefixCls + '-submenu-open';
+ };
+
+ SubMenu.prototype.saveMenuInstance = function saveMenuInstance(c) {
+ this.menuInstance = c;
+ };
+
+ SubMenu.prototype.addKeyPath = function addKeyPath(info) {
+ return _extends({}, info, {
+ keyPath: (info.keyPath || []).concat(this.props.eventKey)
+ });
+ };
+
+ SubMenu.prototype.triggerOpenChange = function triggerOpenChange(open, type) {
+ var key = this.props.eventKey;
+ this.onOpenChange({
+ key: key,
+ item: this,
+ trigger: type,
+ open: open
+ });
+ };
+
+ SubMenu.prototype.clearSubMenuTimers = function clearSubMenuTimers() {
+ var callFn = void 0;
+ this.clearSubMenuLeaveTimer(callFn);
+ this.clearSubMenuTitleLeaveTimer(callFn);
+ };
+
+ SubMenu.prototype.clearSubMenuTitleLeaveTimer = function clearSubMenuTitleLeaveTimer() {
+ var callFn = void 0;
+ var parentMenu = this.props.parentMenu;
+ if (parentMenu.subMenuTitleLeaveTimer) {
+ clearTimeout(parentMenu.subMenuTitleLeaveTimer);
+ parentMenu.subMenuTitleLeaveTimer = null;
+ if (callFn && parentMenu.subMenuTitleLeaveFn) {
+ parentMenu.subMenuTitleLeaveFn();
+ }
+ parentMenu.subMenuTitleLeaveFn = null;
+ }
+ };
+
+ SubMenu.prototype.clearSubMenuLeaveTimer = function clearSubMenuLeaveTimer() {
+ var callFn = void 0;
+ var parentMenu = this.props.parentMenu;
+ if (parentMenu.subMenuLeaveTimer) {
+ clearTimeout(parentMenu.subMenuLeaveTimer);
+ parentMenu.subMenuLeaveTimer = null;
+ if (callFn && parentMenu.subMenuLeaveFn) {
+ parentMenu.subMenuLeaveFn();
+ }
+ parentMenu.subMenuLeaveFn = null;
+ }
+ };
+
+ SubMenu.prototype.isChildrenSelected = function isChildrenSelected() {
+ var ret = { find: false };
+ (0, _util.loopMenuItemRecusively)(this.props.children, this.props.selectedKeys, ret);
+ return ret.find;
+ };
+
+ SubMenu.prototype.isOpen = function isOpen() {
+ return this.props.openKeys.indexOf(this.props.eventKey) !== -1;
+ };
+
+ SubMenu.prototype.renderChildren = function renderChildren(children) {
+ var props = this.props;
+ var baseProps = {
+ mode: props.mode === 'horizontal' ? 'vertical' : props.mode,
+ visible: this.isOpen(),
+ level: props.level + 1,
+ inlineIndent: props.inlineIndent,
+ focusable: false,
+ onClick: this.onSubMenuClick,
+ onSelect: this.onSelect,
+ onDeselect: this.onDeselect,
+ onDestroy: this.onDestroy,
+ selectedKeys: props.selectedKeys,
+ eventKey: props.eventKey + '-menu-',
+ openKeys: props.openKeys,
+ openTransitionName: props.openTransitionName,
+ openAnimation: props.openAnimation,
+ onOpenChange: this.onOpenChange,
+ closeSubMenuOnMouseLeave: props.closeSubMenuOnMouseLeave,
+ defaultActiveFirst: this.state.defaultActiveFirst,
+ multiple: props.multiple,
+ prefixCls: props.rootPrefixCls,
+ id: this._menuId,
+ ref: this.saveMenuInstance
+ };
+ return _react2["default"].createElement(
+ _SubPopupMenu2["default"],
+ baseProps,
+ children
+ );
+ };
+
+ SubMenu.prototype.render = function render() {
+ var _classes;
+
+ var isOpen = this.isOpen();
+ this.haveOpen = this.haveOpen || isOpen;
+ var props = this.props;
+ var prefixCls = this.getPrefixCls();
+ var classes = (_classes = {}, _defineProperty(_classes, props.className, !!props.className), _defineProperty(_classes, prefixCls + '-' + props.mode, 1), _classes);
+
+ classes[this.getOpenClassName()] = isOpen;
+ classes[this.getActiveClassName()] = props.active;
+ classes[this.getDisabledClassName()] = props.disabled;
+ classes[this.getSelectedClassName()] = this.isChildrenSelected();
+
+ if (!this._menuId) {
+ if (props.eventKey) {
+ this._menuId = props.eventKey + '$Menu';
+ } else {
+ this._menuId = '$__$' + ++guid + '$Menu';
+ }
+ }
+
+ classes[prefixCls] = true;
+ classes[prefixCls + '-' + props.mode] = 1;
+ var titleClickEvents = {};
+ var mouseEvents = {};
+ var titleMouseEvents = {};
+ if (!props.disabled) {
+ titleClickEvents = {
+ onClick: this.onTitleClick
+ };
+ mouseEvents = {
+ onMouseLeave: this.onMouseLeave,
+ onMouseEnter: this.onMouseEnter
+ };
+ // only works in title, not outer li
+ titleMouseEvents = {
+ onMouseEnter: this.onTitleMouseEnter,
+ onMouseLeave: this.onTitleMouseLeave
+ };
+ }
+ var style = {};
+ if (props.mode === 'inline') {
+ style.paddingLeft = props.inlineIndent * props.level;
+ }
+ return _react2["default"].createElement(
+ 'li',
+ _extends({ className: (0, _classnames2["default"])(classes) }, mouseEvents),
+ _react2["default"].createElement(
+ 'div',
+ _extends({
+ style: style,
+ className: prefixCls + '-title'
+ }, titleMouseEvents, titleClickEvents, {
+ 'aria-expanded': isOpen,
+ 'aria-owns': this._menuId,
+ 'aria-haspopup': 'true'
+ }),
+ props.title
+ ),
+ this.renderChildren(props.children)
+ );
+ };
+
+ return SubMenu;
+ }(_react.Component);
+
+ ;
+
+ SubMenu.propTypes = propTypes;
+ SubMenu.defaultProps = defaultProps;
+ SubMenu.isSubMenu = 1;
+
+ exports["default"] = SubMenu;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 133 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _beeAnimate = __webpack_require__(96);
+
+ var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _createChainedFunction = __webpack_require__(36);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ var _util = __webpack_require__(130);
+
+ var _DOMWrap = __webpack_require__(131);
+
+ var _DOMWrap2 = _interopRequireDefault(_DOMWrap);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ function allDisabled(arr) {
+ if (!arr.length) {
+ return true;
+ }
+ return arr.every(function (c) {
+ return !!c.props.disabled;
+ });
+ }
+
+ function getActiveKey(props, originalActiveKey) {
+ var activeKey = originalActiveKey;
+ var children = props.children,
+ eventKey = props.eventKey;
+
+ if (activeKey) {
+ var found = void 0;
+ (0, _util.loopMenuItem)(children, function (c, i) {
+ if (c && !c.props.disabled && activeKey === (0, _util.getKeyFromChildrenIndex)(c, eventKey, i)) {
+ found = true;
+ }
+ });
+ if (found) {
+ return activeKey;
+ }
+ }
+ activeKey = null;
+ if (props.defaultActiveFirst) {
+ (0, _util.loopMenuItem)(children, function (c, i) {
+ if (!activeKey && c && !c.props.disabled) {
+ activeKey = (0, _util.getKeyFromChildrenIndex)(c, eventKey, i);
+ }
+ });
+ return activeKey;
+ }
+ return activeKey;
+ }
+
+ function saveRef(index, subIndex, c) {
+ if (c) {
+ if (subIndex !== undefined) {
+ this.instanceArray[index] = this.instanceArray[index] || [];
+ this.instanceArray[index][subIndex] = c;
+ } else {
+ this.instanceArray[index] = c;
+ }
+ }
+ }
+
+ var propTypes = {
+ onSelect: _propTypes2["default"].func,
+ onClick: _propTypes2["default"].func,
+ onDeselect: _propTypes2["default"].func,
+ onOpenChange: _propTypes2["default"].func,
+ onDestroy: _propTypes2["default"].func,
+ openTransitionName: _propTypes2["default"].string,
+ openAnimation: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object]),
+ openKeys: _propTypes2["default"].array,
+ closeSubMenuOnMouseLeave: _propTypes2["default"].bool,
+ visible: _propTypes2["default"].bool,
+ children: _propTypes2["default"].any
+ };
+
+ var SubPopupMenu = function (_Component) {
+ _inherits(SubPopupMenu, _Component);
+
+ function SubPopupMenu(props) {
+ _classCallCheck(this, SubPopupMenu);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.state = {
+ activeKey: getActiveKey(_this.props, _this.props.activeKey)
+ };
+ _this.getOpenChangesOnItemHover = _this.getOpenChangesOnItemHover.bind(_this);
+ _this.onDeselect = _this.onDeselect.bind(_this);
+ _this.onClick = _this.onClick.bind(_this);
+ _this.onOpenChange = _this.onOpenChange.bind(_this);
+ _this.onDestroy = _this.onDestroy.bind(_this);
+ _this.onSelect = _this.onSelect.bind(_this);
+
+ _this.onItemHover = _this.onItemHover.bind(_this);
+ _this.getOpenTransitionName = _this.getOpenTransitionName.bind(_this);
+ _this.renderMenuItem = _this.renderMenuItem.bind(_this);
+
+ _this.getFlatInstanceArray = _this.getFlatInstanceArray.bind(_this);
+ _this.renderCommonMenuItem = _this.renderCommonMenuItem.bind(_this);
+ _this.renderRoot = _this.renderRoot.bind(_this);
+
+ return _this;
+ }
+
+ SubPopupMenu.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ var props = void 0;
+ if ('activeKey' in nextProps) {
+ props = {
+ activeKey: getActiveKey(nextProps, nextProps.activeKey)
+ };
+ } else {
+ var originalActiveKey = this.state.activeKey;
+ var activeKey = getActiveKey(nextProps, originalActiveKey);
+ // fix: this.setState(), parent.render(),
+ if (activeKey !== originalActiveKey) {
+ props = {
+ activeKey: activeKey
+ };
+ }
+ }
+ if (props) {
+ this.setState(props);
+ }
+ };
+
+ SubPopupMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ return this.props.visible || nextProps.visible;
+ };
+
+ SubPopupMenu.prototype.onDeselect = function onDeselect(selectInfo) {
+ this.props.onDeselect(selectInfo);
+ };
+
+ SubPopupMenu.prototype.onSelect = function onSelect(selectInfo) {
+ this.props.onSelect(selectInfo);
+ };
+
+ SubPopupMenu.prototype.onClick = function onClick(e) {
+ this.props.onClick(e);
+ };
+
+ SubPopupMenu.prototype.onOpenChange = function onOpenChange(e) {
+ this.props.onOpenChange(e);
+ };
+
+ SubPopupMenu.prototype.onDestroy = function onDestroy(key) {
+ this.props.onDestroy(key);
+ };
+
+ SubPopupMenu.prototype.onItemHover = function onItemHover(e) {
+ var _e$openChanges = e.openChanges,
+ openChanges = _e$openChanges === undefined ? [] : _e$openChanges;
+
+ openChanges = openChanges.concat(this.getOpenChangesOnItemHover(e));
+ if (openChanges.length) {
+ this.onOpenChange(openChanges);
+ }
+ };
+
+ SubPopupMenu.prototype.getOpenTransitionName = function getOpenTransitionName() {
+ return this.props.openTransitionName;
+ };
+
+ SubPopupMenu.prototype.renderMenuItem = function renderMenuItem(c, i, subIndex) {
+ var props = this.props;
+ var extraProps = {
+ openKeys: props.openKeys,
+ selectedKeys: props.selectedKeys,
+ openSubMenuOnMouseEnter: true
+ };
+ return this.renderCommonMenuItem(c, i, subIndex, extraProps);
+ };
+
+ SubPopupMenu.prototype.getOpenChangesOnItemHover = function getOpenChangesOnItemHover(e) {
+ var mode = this.props.mode;
+ var key = e.key,
+ hover = e.hover,
+ trigger = e.trigger;
+
+ var activeKey = this.state.activeKey;
+ if (!trigger || hover || this.props.closeSubMenuOnMouseLeave || !e.item.isSubMenu || mode === 'inline') {
+ this.setState({
+ activeKey: hover ? key : null
+ });
+ } else {}
+ // keep active for sub menu for click active
+ // empty
+
+ // clear last open status
+ if (hover && mode !== 'inline') {
+ var activeItem = this.getFlatInstanceArray().filter(function (c) {
+ return c && c.props.eventKey === activeKey;
+ })[0];
+ if (activeItem && activeItem.isSubMenu && activeItem.props.eventKey !== key) {
+ return {
+ item: activeItem,
+ originalEvent: e,
+ key: activeItem.props.eventKey,
+ open: false
+ };
+ }
+ }
+ return [];
+ };
+
+ SubPopupMenu.prototype.renderCommonMenuItem = function renderCommonMenuItem(child, i, subIndex, extraProps) {
+ var state = this.state;
+ var props = this.props;
+ var key = (0, _util.getKeyFromChildrenIndex)(child, props.eventKey, i);
+ var childProps = child.props;
+ var isActive = key === state.activeKey;
+ var newChildProps = _extends({
+ mode: props.mode,
+ level: props.level,
+ inlineIndent: props.inlineIndent,
+ renderMenuItem: this.renderMenuItem,
+ rootPrefixCls: props.prefixCls,
+ index: i,
+ parentMenu: this,
+ ref: childProps.disabled ? undefined : (0, _createChainedFunction2["default"])(child.ref, saveRef.bind(this, i, subIndex)),
+ eventKey: key,
+ closeSubMenuOnMouseLeave: props.closeSubMenuOnMouseLeave,
+ onItemHover: this.onItemHover,
+ active: !childProps.disabled && isActive,
+ multiple: props.multiple,
+ onClick: this.onClick,
+ openTransitionName: this.getOpenTransitionName(),
+ openAnimation: props.openAnimation,
+ onOpenChange: this.onOpenChange,
+ onDeselect: this.onDeselect,
+ onDestroy: this.onDestroy,
+ onSelect: this.onSelect
+ }, extraProps);
+ if (props.mode === 'inline') {
+ newChildProps.closeSubMenuOnMouseLeave = newChildProps.openSubMenuOnMouseEnter = false;
+ }
+ return _react2["default"].cloneElement(child, newChildProps);
+ };
+
+ SubPopupMenu.prototype.getFlatInstanceArray = function getFlatInstanceArray() {
+ var instanceArray = this.instanceArray;
+ var hasInnerArray = instanceArray.some(function (a) {
+ return Array.isArray(a);
+ });
+ if (hasInnerArray) {
+ instanceArray = [];
+ this.instanceArray.forEach(function (a) {
+ if (Array.isArray(a)) {
+ instanceArray.push.apply(instanceArray, a);
+ } else {
+ instanceArray.push(a);
+ }
+ });
+ this.instanceArray = instanceArray;
+ }
+ return instanceArray;
+ };
+
+ SubPopupMenu.prototype.renderRoot = function renderRoot(props) {
+ var _classes;
+
+ this.instanceArray = [];
+ var classes = (_classes = {}, _defineProperty(_classes, props.prefixCls, 1), _defineProperty(_classes, props.prefixCls + '-' + props.mode, 1), _defineProperty(_classes, props.className, !!props.className), _classes);
+ var domProps = {
+ className: (0, _classnames2["default"])(classes),
+ role: 'menu',
+ 'aria-activedescendant': ''
+ };
+ if (props.id) {
+ domProps.id = props.id;
+ }
+ if (props.focusable) {
+ domProps.tabIndex = '0';
+ domProps.onKeyDown = this.onKeyDown;
+ }
+ return (
+ // ESLint is not smart enough to know that the type of `children` was checked.
+ /* eslint-disable */
+ _react2["default"].createElement(
+ _DOMWrap2["default"],
+ _extends({
+ style: props.style,
+ tag: 'ul',
+ hiddenClassName: props.prefixCls + '-hidden',
+ visible: props.visible
+ }, domProps),
+ _react2["default"].Children.map(props.children, this.renderMenuItem.bind(this))
+ )
+ /*eslint-enable */
+
+ );
+ };
+
+ SubPopupMenu.prototype.render = function render() {
+ var renderFirst = this.renderFirst;
+ this.renderFirst = 1;
+ this.haveOpened = this.haveOpened || this.props.visible;
+ if (!this.haveOpened) {
+ return null;
+ }
+ var transitionAppear = true;
+ if (!renderFirst && this.props.visible) {
+ transitionAppear = false;
+ }
+ var props = _extends({}, this.props);
+ props.className += ' ' + props.prefixCls + '-sub';
+ var animProps = {};
+ if (props.openTransitionName) {
+ animProps.transitionName = props.openTransitionName;
+ } else if (_typeof(props.openAnimation) === 'object') {
+ animProps.animation = _extends({}, props.openAnimation);
+ if (!transitionAppear) {
+ delete animProps.animation.appear;
+ }
+ }
+ return _react2["default"].createElement(
+ _beeAnimate2["default"],
+ _extends({}, animProps, {
+ showProp: 'visible',
+ component: '',
+ transitionAppear: transitionAppear
+ }),
+ this.renderRoot(props)
+ );
+ };
+
+ return SubPopupMenu;
+ }(_react.Component);
+
+ ;
+ SubPopupMenu.propTypes = propTypes;
+ exports["default"] = SubPopupMenu;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 134 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _keyCode = __webpack_require__(37);
+
+ var _keyCode2 = _interopRequireDefault(_keyCode);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _util = __webpack_require__(130);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ /* eslint react/no-is-mounted:0 */
+ var propTypes = {
+ rootPrefixCls: _propTypes2["default"].string,
+ eventKey: _propTypes2["default"].string,
+ active: _propTypes2["default"].bool,
+ children: _propTypes2["default"].any,
+ selectedKeys: _propTypes2["default"].array,
+ disabled: _propTypes2["default"].bool,
+ title: _propTypes2["default"].string,
+ onSelect: _propTypes2["default"].func,
+ onClick: _propTypes2["default"].func,
+ onDeselect: _propTypes2["default"].func,
+ parentMenu: _propTypes2["default"].object,
+ onItemHover: _propTypes2["default"].func,
+ onDestroy: _propTypes2["default"].func,
+ onMouseEnter: _propTypes2["default"].func,
+ onMouseLeave: _propTypes2["default"].func
+ };
+
+ var defaultProps = {
+ onSelect: _util.noop,
+ onMouseEnter: _util.noop,
+ onMouseLeave: _util.noop
+ };
+
+ var MenuItem = function (_Component) {
+ _inherits(MenuItem, _Component);
+
+ function MenuItem(props) {
+ _classCallCheck(this, MenuItem);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.onMouseLeave = _this.onMouseLeave.bind(_this);
+ _this.onMouseEnter = _this.onMouseEnter.bind(_this);
+ _this.onKeyDown = _this.onKeyDown.bind(_this);
+ _this.onClick = _this.onClick.bind(_this);
+ _this.getPrefixCls = _this.getPrefixCls.bind(_this);
+ _this.getActiveClassName = _this.getActiveClassName.bind(_this);
+ _this.getDisabledClassName = _this.getDisabledClassName.bind(_this);
+ _this.getSelectedClassName = _this.getSelectedClassName.bind(_this);
+ _this.clearMenuItemMouseLeaveTimer = _this.clearMenuItemMouseLeaveTimer.bind(_this);
+ _this.isSelected = _this.isSelected.bind(_this);
+ return _this;
+ }
+
+ MenuItem.prototype.componentWillUnmount = function componentWillUnmount() {
+ var props = this.props;
+ this.mounted = false;
+ if (props.onDestroy) {
+ props.onDestroy(props.eventKey);
+ }
+ if (props.parentMenu.menuItemInstance === this) {
+ this.clearMenuItemMouseLeaveTimer();
+ }
+ };
+
+ MenuItem.prototype.componentDidMount = function componentDidMount() {
+ this.mounted = true;
+ };
+
+ MenuItem.prototype.onKeyDown = function onKeyDown(e) {
+ var keyCode = e.keyCode;
+ if (keyCode === _keyCode2["default"].ENTER) {
+ this.onClick(e);
+ return true;
+ }
+ };
+
+ MenuItem.prototype.onMouseLeave = function onMouseLeave(e) {
+ var _this2 = this;
+
+ var props = this.props;
+ var eventKey = props.eventKey,
+ parentMenu = props.parentMenu;
+
+ parentMenu.menuItemInstance = this;
+ parentMenu.menuItemMouseLeaveFn = function () {
+ if (_this2.mounted && props.active) {
+ props.onItemHover({
+ key: eventKey,
+ item: _this2,
+ hover: false,
+ domEvent: e,
+ trigger: 'mouseleave'
+ });
+ }
+ };
+ parentMenu.menuItemMouseLeaveTimer = setTimeout(parentMenu.menuItemMouseLeaveFn, 30);
+ props.onMouseLeave({
+ key: eventKey,
+ domEvent: e
+ });
+ };
+
+ MenuItem.prototype.onMouseEnter = function onMouseEnter(e) {
+ var props = this.props;
+ var eventKey = props.eventKey,
+ parentMenu = props.parentMenu;
+
+ this.clearMenuItemMouseLeaveTimer(parentMenu.menuItemInstance !== this);
+ if (parentMenu.subMenuInstance) {
+ parentMenu.subMenuInstance.clearSubMenuTimers();
+ }
+ props.onItemHover({
+ key: eventKey,
+ item: this,
+ hover: true,
+ domEvent: e,
+ trigger: 'mouseenter'
+ });
+ props.onMouseEnter({
+ key: eventKey,
+ domEvent: e
+ });
+ };
+
+ MenuItem.prototype.onClick = function onClick(e) {
+ var props = this.props;
+ var selected = this.isSelected();
+ var eventKey = props.eventKey;
+ var info = {
+ key: eventKey,
+ keyPath: [eventKey],
+ item: this,
+ domEvent: e
+ };
+ props.onClick(info);
+ if (props.multiple) {
+ if (selected) {
+ props.onDeselect(info);
+ } else {
+ props.onSelect(info);
+ }
+ } else if (!selected) {
+ props.onSelect(info);
+ }
+ };
+
+ MenuItem.prototype.getPrefixCls = function getPrefixCls() {
+ return this.props.rootPrefixCls + '-item';
+ };
+
+ MenuItem.prototype.getActiveClassName = function getActiveClassName() {
+ return this.getPrefixCls() + '-active';
+ };
+
+ MenuItem.prototype.getSelectedClassName = function getSelectedClassName() {
+ return this.getPrefixCls() + '-selected';
+ };
+
+ MenuItem.prototype.getDisabledClassName = function getDisabledClassName() {
+ return this.getPrefixCls() + '-disabled';
+ };
+
+ MenuItem.prototype.clearMenuItemMouseLeaveTimer = function clearMenuItemMouseLeaveTimer() {
+ var props = this.props;
+ var callFn = void 0;
+ var parentMenu = props.parentMenu;
+ if (parentMenu.menuItemMouseLeaveTimer) {
+ clearTimeout(parentMenu.menuItemMouseLeaveTimer);
+ parentMenu.menuItemMouseLeaveTimer = null;
+ if (callFn && parentMenu.menuItemMouseLeaveFn) {
+ parentMenu.menuItemMouseLeaveFn();
+ }
+ parentMenu.menuItemMouseLeaveFn = null;
+ }
+ };
+
+ MenuItem.prototype.isSelected = function isSelected() {
+ return this.props.selectedKeys.indexOf(this.props.eventKey) !== -1;
+ };
+
+ MenuItem.prototype.render = function render() {
+ var props = this.props;
+ var selected = this.isSelected();
+ var classes = {};
+ classes[this.getActiveClassName()] = !props.disabled && props.active;
+ classes[this.getSelectedClassName()] = selected;
+ classes[this.getDisabledClassName()] = props.disabled;
+ classes[this.getPrefixCls()] = true;
+ classes[props.className] = !!props.className;
+ var attrs = _extends({}, props.attribute, {
+ title: props.title,
+ className: (0, _classnames2["default"])(classes),
+ role: 'menuitem',
+ 'aria-selected': selected,
+ 'aria-disabled': props.disabled
+ });
+ var mouseEvent = {};
+ if (!props.disabled) {
+ mouseEvent = {
+ onClick: this.onClick,
+ onMouseLeave: this.onMouseLeave,
+ onMouseEnter: this.onMouseEnter
+ };
+ }
+ var style = _extends({}, props.style);
+ if (props.mode === 'inline') {
+ style.paddingLeft = props.inlineIndent * props.level;
+ }
+ return _react2["default"].createElement(
+ 'li',
+ _extends({
+ style: style
+ }, attrs, mouseEvent),
+ props.children
+ );
+ };
+
+ return MenuItem;
+ }(_react.Component);
+
+ ;
+
+ MenuItem.isMenuItem = 1;
+
+ MenuItem.defaultProps = defaultProps;
+ MenuItem.propTypes = propTypes;
+
+ exports["default"] = MenuItem;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 135 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ renderMenuItem: _propTypes2["default"].func,
+ index: _propTypes2["default"].number,
+ className: _propTypes2["default"].string,
+ rootPrefixCls: _propTypes2["default"].string,
+ title: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].node]),
+ children: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].node])
+ };
+
+ var defaultProps = {
+ disabled: true
+ };
+
+ var MenuItemGroup = function (_Component) {
+ _inherits(MenuItemGroup, _Component);
+
+ function MenuItemGroup() {
+ _classCallCheck(this, MenuItemGroup);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ MenuItemGroup.prototype.renderInnerMenuItem = function renderInnerMenuItem(item, subIndex) {
+ var _props = this.props,
+ renderMenuItem = _props.renderMenuItem,
+ index = _props.index;
+
+ return renderMenuItem(item, index, subIndex);
+ };
+
+ MenuItemGroup.prototype.render = function render() {
+ var _props2 = this.props,
+ _props2$className = _props2.className,
+ className = _props2$className === undefined ? '' : _props2$className,
+ title = _props2.title,
+ children = _props2.children,
+ rootPrefixCls = _props2.rootPrefixCls;
+
+ var titleClassName = rootPrefixCls + '-item-group-title';
+ var listClassName = rootPrefixCls + '-item-group-list';
+
+ return _react2["default"].createElement(
+ 'li',
+ { className: className + ' ' + rootPrefixCls + '-item-group' },
+ _react2["default"].createElement(
+ 'div',
+ { className: titleClassName },
+ title
+ ),
+ _react2["default"].createElement(
+ 'ul',
+ { className: listClassName },
+ _react2["default"].Children.map(children, this.renderInnerMenuItem.bind(this))
+ )
+ );
+ };
+
+ return MenuItemGroup;
+ }(_react.Component);
+
+ ;
+
+ MenuItemGroup.isMenuItemGroup = true;
+ MenuItemGroup.propTypes = propTypes;
+ MenuItemGroup.defaultProps = defaultProps;
+
+ exports["default"] = MenuItemGroup;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 136 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ className: _propTypes2["default"].string,
+ rootPrefixCls: _propTypes2["default"].string
+ };
+
+ var Divider = function (_Component) {
+ _inherits(Divider, _Component);
+
+ function Divider() {
+ _classCallCheck(this, Divider);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Divider.prototype.render = function render() {
+ var _props = this.props,
+ className = _props.className,
+ rootPrefixCls = _props.rootPrefixCls;
+
+ return _react2["default"].createElement('li', { className: className + ' ' + rootPrefixCls + '-item-divider' });
+ };
+
+ return Divider;
+ }(_react.Component);
+
+ ;
+
+ Divider.propTypes = propTypes;
+
+ exports["default"] = Divider;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 137 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultProps = {
+ clsPrefix: "u-navbar-side-container",
+ sideActive: false
+ };
+
+ var NavSideContainer = function (_React$Component) {
+ _inherits(NavSideContainer, _React$Component);
+
+ function NavSideContainer() {
+ _classCallCheck(this, NavSideContainer);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ NavSideContainer.prototype.render = function render() {
+ var _props = this.props,
+ className = _props.className,
+ children = _props.children,
+ clsPrefix = _props.clsPrefix,
+ sideActive = _props.sideActive,
+ expanded = _props.expanded,
+ props = _objectWithoutProperties(_props, ['className', 'children', 'clsPrefix', 'sideActive', 'expanded']);
+
+ //const navbarProps = this.context.u_navbar;
+
+ return _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(className, clsPrefix, expanded && 'expanded') },
+ children
+ );
+ };
+
+ return NavSideContainer;
+ }(_react2["default"].Component);
+
+ NavSideContainer.defaultProps = defaultProps;
+
+ exports["default"] = NavSideContainer;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 138 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _createChainedFunction = __webpack_require__(36);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ onClick: _propTypes2["default"].func,
+ /**
+ * The toggle content, if left empty it will render the default toggle (seen above).
+ */
+ show: _propTypes2["default"].bool,
+ children: _propTypes2["default"].node
+ };
+
+ var contextTypes = {
+ u_navbar: _propTypes2["default"].shape({
+ expanded: _propTypes2["default"].bool,
+ onToggle: _propTypes2["default"].func
+ })
+ };
+
+ var defaultProps = {
+ clsPrefix: 'u-navbar-toggle',
+ show: false
+ };
+
+ var MenuToggle = function (_React$Component) {
+ _inherits(MenuToggle, _React$Component);
+
+ function MenuToggle(props) {
+ _classCallCheck(this, MenuToggle);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
+
+ _this.state = {
+ toggleState: false
+ //this.handleRender = this.handleRender.bind(this);
+ };return _this;
+ }
+
+ MenuToggle.prototype.handleClick = function handleClick() {
+ var _context$u_navbar = this.context.u_navbar,
+ expanded = _context$u_navbar.expanded,
+ onToggle = _context$u_navbar.onToggle;
+
+ this.setState({ toggleState: !this.state.toggleState });
+ if (onToggle) {
+ onToggle(!expanded);
+ }
+ };
+
+ MenuToggle.prototype.render = function render() {
+ var _props = this.props,
+ onClick = _props.onClick,
+ className = _props.className,
+ children = _props.children,
+ clsPrefix = _props.clsPrefix,
+ show = _props.show,
+ props = _objectWithoutProperties(_props, ['onClick', 'className', 'children', 'clsPrefix', 'show']);
+ //const navbarProps = this.context.u_navbar || { bsClass: 'navbar' };
+ //console.log(navbarProps.onToggle, navbarProps.expanded);
+
+ var buttonProps = _extends({
+ type: 'button'
+ }, props, {
+ onClick: (0, _createChainedFunction2["default"])(onClick, this.handleClick.bind(this)),
+ className: (0, _classnames2["default"])(className, clsPrefix, show && 'show')
+ //!this.context.u_navbar.expanded && 'collapsed',
+ });
+
+ if (children) {
+ return _react2["default"].createElement(
+ 'button',
+ buttonProps,
+ children
+ );
+ }
+ //当show存在时,渲染左侧静态面包按钮
+ return _react2["default"].createElement(
+ 'div',
+ null,
+ show && this.state.toggleState && _react2["default"].createElement(
+ 'button',
+ buttonProps,
+ _react2["default"].createElement(
+ 'span',
+ { className: 'sr-only' },
+ 'Toggle navigation'
+ ),
+ _react2["default"].createElement('span', { className: 'icon-bar' }),
+ _react2["default"].createElement('span', { className: 'icon-bar' }),
+ _react2["default"].createElement('span', { className: 'icon-bar' })
+ ),
+ show && !this.state.toggleState && _react2["default"].createElement(
+ 'button',
+ buttonProps,
+ _react2["default"].createElement('span', { className: 'uf uf-arrow-left' })
+ ),
+ !show && !this.state.toggleState && _react2["default"].createElement(
+ 'button',
+ buttonProps,
+ _react2["default"].createElement(
+ 'span',
+ { className: 'sr-only' },
+ 'Toggle navigation'
+ ),
+ _react2["default"].createElement('span', { className: 'icon-bar' }),
+ _react2["default"].createElement('span', { className: 'icon-bar' }),
+ _react2["default"].createElement('span', { className: 'icon-bar' })
+ )
+ );
+ };
+
+ return MenuToggle;
+ }(_react2["default"].Component);
+
+ MenuToggle.propTypes = propTypes;
+ MenuToggle.defaultProps = defaultProps;
+ MenuToggle.contextTypes = contextTypes;
+
+ exports["default"] = MenuToggle;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 139 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ function animate(node, show, done) {
+ var height = void 0;
+ return (0, _tinperBeeCore.cssAnimation)(node, 'u-motion-collapse', {
+ start: function start() {
+ if (!show) {
+ node.style.height = node.offsetHeight + 'px';
+ } else {
+ height = node.offsetHeight;
+ node.style.height = 0;
+ }
+ },
+ active: function active() {
+ node.style.height = (show ? height : 0) + 'px';
+ },
+ end: function end() {
+ node.style.height = '';
+ done();
+ }
+ });
+ }
+
+ var animation = {
+ enter: function enter(node, done) {
+ return animate(node, true, done);
+ },
+ leave: function leave(node, done) {
+ return animate(node, false, done);
+ },
+ appear: function appear(node, done) {
+ return animate(node, true, done);
+ }
+ };
+
+ exports["default"] = animation;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 140 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _warning = __webpack_require__(31);
+
+ var _warning2 = _interopRequireDefault(_warning);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ var warned = {};
+
+ exports["default"] = function (valid, message) {
+ if (!valid && !warned[message]) {
+ (0, _warning2["default"])(false, message);
+ warned[message] = true;
+ }
+ };
+
+ module.exports = exports['default'];
+
+/***/ }),
+/* 141 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ label: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].object])
+ };
+
+ var OptGroup = function (_React$Component) {
+ _inherits(OptGroup, _React$Component);
+
+ function OptGroup() {
+ _classCallCheck(this, OptGroup);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ return OptGroup;
+ }(_react2["default"].Component);
+
+ OptGroup.propTypes = propTypes;
+ exports["default"] = OptGroup;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 142 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_STYLE = undefined;
+ exports.getValuePropValue = getValuePropValue;
+ exports.getPropValue = getPropValue;
+ exports.isCombobox = isCombobox;
+ exports.isMultipleOrTags = isMultipleOrTags;
+ exports.isMultipleOrTagsOrCombobox = isMultipleOrTagsOrCombobox;
+ exports.isSingleMode = isSingleMode;
+ exports.toArray = toArray;
+ exports.preventDefaultEvent = preventDefaultEvent;
+ exports.findIndexInValueByKey = findIndexInValueByKey;
+ exports.findIndexInValueByLabel = findIndexInValueByLabel;
+ exports.getSelectKeys = getSelectKeys;
+ exports.findFirstMenuItem = findFirstMenuItem;
+ exports.includesSeparators = includesSeparators;
+ exports.splitBySeparators = splitBySeparators;
+
+ var _beeMenus = __webpack_require__(126);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function getValuePropValue(child) {
+ var props = child.props;
+ if ('value' in props) {
+ return props.value;
+ }
+ if (child.key) {
+ return child.key;
+ }
+ throw new Error('no key or value for ' + child);
+ }
+
+ function getPropValue(child, prop) {
+ if (prop === 'value') {
+ return getValuePropValue(child);
+ }
+ return child.props[prop];
+ }
+
+ function isCombobox(props) {
+ return props.combobox;
+ }
+
+ function isMultipleOrTags(props) {
+ return props.multiple || props.tags;
+ }
+
+ function isMultipleOrTagsOrCombobox(props) {
+ return isMultipleOrTags(props) || isCombobox(props);
+ }
+
+ function isSingleMode(props) {
+ return !isMultipleOrTagsOrCombobox(props);
+ }
+
+ function toArray(value) {
+ var ret = value;
+ if (value === undefined) {
+ ret = [];
+ } else if (!Array.isArray(value)) {
+ ret = [value];
+ }
+ return ret;
+ }
+
+ function preventDefaultEvent(e) {
+ e.preventDefault();
+ }
+
+ function findIndexInValueByKey(value, key) {
+ var index = -1;
+ for (var i = 0; i < value.length; i++) {
+ if (value[i].key === key) {
+ index = i;
+ break;
+ }
+ }
+ return index;
+ }
+
+ function findIndexInValueByLabel(value, label) {
+ var index = -1;
+ for (var i = 0; i < value.length; i++) {
+ if (toArray(value[i].label).join('') === label) {
+ index = i;
+ break;
+ }
+ }
+ return index;
+ }
+
+ function getSelectKeys(menuItems, value) {
+ if (value === null || value === undefined) {
+ return [];
+ }
+ var selectedKeys = [];
+ _react2["default"].Children.forEach(menuItems, function (item) {
+ if (item.type === _beeMenus.ItemGroup) {
+ selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value));
+ } else {
+ var itemValue = getValuePropValue(item);
+ var itemKey = item.key;
+ if (findIndexInValueByKey(value, itemValue) !== -1 && itemKey) {
+ selectedKeys.push(itemKey);
+ }
+ }
+ });
+ return selectedKeys;
+ }
+
+ var UNSELECTABLE_STYLE = exports.UNSELECTABLE_STYLE = {
+ userSelect: 'none',
+ WebkitUserSelect: 'none'
+ };
+
+ var UNSELECTABLE_ATTRIBUTE = exports.UNSELECTABLE_ATTRIBUTE = {
+ unselectable: 'unselectable'
+ };
+
+ function findFirstMenuItem(children) {
+ for (var i = 0; i < children.length; i++) {
+ var child = children[i];
+ if (child.type === _beeMenus.ItemGroup) {
+ var found = findFirstMenuItem(child.props.children);
+ if (found) {
+ return found;
+ }
+ } else if (!child.props.disabled) {
+ return child;
+ }
+ }
+ return null;
+ }
+
+ function includesSeparators(string, separators) {
+ for (var i = 0; i < separators.length; ++i) {
+ if (string.lastIndexOf(separators[i]) > 0) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ function splitBySeparators(string, separators) {
+ var reg = new RegExp('[' + separators.join() + ']');
+ var array = string.split(reg);
+ if (array[0] === '') {
+ array.shift();
+ }
+ if (array[array.length - 1] === '') {
+ array.pop();
+ }
+ return array;
+ }
+
+/***/ }),
+/* 143 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _trigger = __webpack_require__(144);
+
+ var _trigger2 = _interopRequireDefault(_trigger);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _DropdownMenu = __webpack_require__(150);
+
+ var _DropdownMenu2 = _interopRequireDefault(_DropdownMenu);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _util = __webpack_require__(142);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var BUILT_IN_PLACEMENTS = {
+ bottomLeft: {
+ points: ['tl', 'bl'],
+ offset: [0, 4],
+ overflow: {
+ adjustX: 0,
+ adjustY: 1
+ }
+ },
+ topLeft: {
+ points: ['bl', 'tl'],
+ offset: [0, -4],
+ overflow: {
+ adjustX: 0,
+ adjustY: 1
+ }
+ }
+ };
+
+ var propTypes = {
+ onPopupFocus: _propTypes2["default"].func,
+ dropdownMatchSelectWidth: _propTypes2["default"].bool,
+ dropdownAlign: _propTypes2["default"].object,
+ visible: _propTypes2["default"].bool,
+ disabled: _propTypes2["default"].bool,
+ showSearch: _propTypes2["default"].bool,
+ dropdownClassName: _propTypes2["default"].string,
+ multiple: _propTypes2["default"].bool,
+ inputValue: _propTypes2["default"].string,
+ filterOption: _propTypes2["default"].any,
+ options: _propTypes2["default"].any,
+ clsPrefix: _propTypes2["default"].string,
+ popupClassName: _propTypes2["default"].string,
+ children: _propTypes2["default"].any
+ };
+
+ var SelectTrigger = function (_Component) {
+ _inherits(SelectTrigger, _Component);
+
+ function SelectTrigger(props) {
+ _classCallCheck(this, SelectTrigger);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.setDropdownWidth = function () {
+ var width = _reactDom2["default"].findDOMNode(_this).offsetWidth;
+ if (width !== _this.state.dropdownWidth) {
+ _this.setState({ dropdownWidth: width });
+ }
+ };
+
+ _this.getInnerMenu = _this.getInnerMenu.bind(_this);
+ _this.getPopupDOMNode = _this.getPopupDOMNode.bind(_this);
+ _this.getDropdownTransitionName = _this.getDropdownTransitionName.bind(_this);
+ _this.getDropdownElement = _this.getDropdownElement.bind(_this);
+ _this.getDropdownPrefixCls = _this.getDropdownPrefixCls.bind(_this);
+ _this.saveMenu = _this.saveMenu.bind(_this);
+ _this.state = {
+ dropdownWidth: null
+ };
+
+ return _this;
+ }
+
+ SelectTrigger.prototype.componentDidMount = function componentDidMount() {
+ this.setDropdownWidth();
+ };
+
+ SelectTrigger.prototype.componentDidUpdate = function componentDidUpdate() {
+ this.setDropdownWidth();
+ };
+
+ SelectTrigger.prototype.getInnerMenu = function getInnerMenu() {
+ return this.popupMenu && this.popupMenu.refs.menu;
+ };
+
+ SelectTrigger.prototype.getPopupDOMNode = function getPopupDOMNode() {
+ return this.refs.trigger.getPopupDomNode();
+ };
+
+ SelectTrigger.prototype.getDropdownElement = function getDropdownElement(newProps) {
+ var props = this.props;
+ return _react2["default"].createElement(_DropdownMenu2["default"], _extends({
+ ref: this.saveMenu
+ }, newProps, {
+ clsPrefix: this.getDropdownPrefixCls(),
+ onMenuSelect: props.onMenuSelect,
+ scrollToEnd: props.scrollToEnd,
+ onMenuDeselect: props.onMenuDeselect,
+ value: props.value,
+ defaultActiveFirstOption: props.defaultActiveFirstOption,
+ dropdownMenuStyle: props.dropdownMenuStyle
+ }));
+ };
+
+ SelectTrigger.prototype.getDropdownTransitionName = function getDropdownTransitionName() {
+ var props = this.props;
+ var transitionName = props.transitionName;
+ if (!transitionName && props.animation) {
+ transitionName = this.getDropdownPrefixCls() + '-' + props.animation;
+ }
+ return transitionName;
+ };
+
+ SelectTrigger.prototype.getDropdownPrefixCls = function getDropdownPrefixCls() {
+ return this.props.clsPrefix + '-dropdown';
+ };
+
+ SelectTrigger.prototype.saveMenu = function saveMenu(menu) {
+ this.popupMenu = menu;
+ };
+
+ SelectTrigger.prototype.render = function render() {
+ var _popupClassName;
+
+ var _props = this.props,
+ onPopupFocus = _props.onPopupFocus,
+ props = _objectWithoutProperties(_props, ['onPopupFocus']);
+
+ var multiple = props.multiple,
+ visible = props.visible,
+ inputValue = props.inputValue,
+ dropdownAlign = props.dropdownAlign,
+ disabled = props.disabled,
+ showSearch = props.showSearch,
+ dropdownClassName = props.dropdownClassName,
+ dropdownStyle = props.dropdownStyle,
+ dropdownMatchSelectWidth = props.dropdownMatchSelectWidth;
+
+ var dropdownPrefixCls = this.getDropdownPrefixCls();
+ var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), _popupClassName);
+ var popupElement = this.getDropdownElement({
+ menuItems: props.options,
+ onPopupFocus: onPopupFocus,
+ multiple: multiple,
+ inputValue: inputValue,
+ visible: visible
+ });
+ var hideAction = void 0;
+ if (disabled) {
+ hideAction = [];
+ } else if ((0, _util.isSingleMode)(props) && !showSearch) {
+ hideAction = ['click'];
+ } else {
+ hideAction = ['blur'];
+ }
+ var popupStyle = _extends({}, dropdownStyle);
+ var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';
+ if (this.state.dropdownWidth) {
+ popupStyle[widthProp] = this.state.dropdownWidth + 'px';
+ }
+ return _react2["default"].createElement(
+ _trigger2["default"],
+ _extends({}, props, {
+ showAction: disabled ? [] : ['click'],
+ hideAction: hideAction,
+ ref: 'trigger',
+ popupPlacement: 'bottomLeft',
+ builtinPlacements: BUILT_IN_PLACEMENTS,
+ clsPrefix: dropdownPrefixCls
+ // popupTransitionName={this.getDropdownTransitionName()}
+ , onPopupVisibleChange: props.onDropdownVisibleChange,
+ popup: popupElement,
+ popupAlign: dropdownAlign,
+ popupVisible: visible,
+ getPopupContainer: props.getPopupContainer,
+ popupClassName: (0, _classnames2["default"])(popupClassName),
+ popupStyle: popupStyle
+ }),
+ props.children
+ );
+ };
+
+ return SelectTrigger;
+ }(_react.Component);
+
+ ;
+
+ SelectTrigger.propTypes = propTypes;
+
+ exports["default"] = SelectTrigger;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 144 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ module.exports = __webpack_require__(145);
+
+/***/ }),
+/* 145 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _contains = __webpack_require__(104);
+
+ var _contains2 = _interopRequireDefault(_contains);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _Popup = __webpack_require__(146);
+
+ var _Popup2 = _interopRequireDefault(_Popup);
+
+ var _utils = __webpack_require__(149);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ //import getContainerRenderMixin from './getContainerRenderMixin';
+
+ function noop() {}
+
+ function returnEmptyString() {
+ return '';
+ }
+
+ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];
+
+ var propTypes = {
+ children: _propTypes2["default"].any,
+ action: _propTypes2["default"].oneOfType([_propTypes2["default"].string, _propTypes2["default"].arrayOf(_propTypes2["default"].string)]),
+ showAction: _propTypes2["default"].any,
+ hideAction: _propTypes2["default"].any,
+ getPopupClassNameFromAlign: _propTypes2["default"].any,
+ onPopupVisibleChange: _propTypes2["default"].func,
+ afterPopupVisibleChange: _propTypes2["default"].func,
+ popup: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].func]).isRequired,
+ popupStyle: _propTypes2["default"].object,
+ clsPrefix: _propTypes2["default"].string,
+ popupClassName: _propTypes2["default"].string,
+ popupPlacement: _propTypes2["default"].string,
+ builtinPlacements: _propTypes2["default"].object,
+ popupTransitionName: _propTypes2["default"].string,
+ popupAnimation: _propTypes2["default"].any,
+ mouseEnterDelay: _propTypes2["default"].number,
+ mouseLeaveDelay: _propTypes2["default"].number,
+ zIndex: _propTypes2["default"].number,
+ focusDelay: _propTypes2["default"].number,
+ blurDelay: _propTypes2["default"].number,
+ getPopupContainer: _propTypes2["default"].func,
+ destroyPopupOnHide: _propTypes2["default"].bool,
+ mask: _propTypes2["default"].bool,
+ maskClosable: _propTypes2["default"].bool,
+ onPopupAlign: _propTypes2["default"].func,
+ popupAlign: _propTypes2["default"].object,
+ popupVisible: _propTypes2["default"].bool,
+ maskTransitionName: _propTypes2["default"].string,
+ maskAnimation: _propTypes2["default"].string
+ };
+
+ var defaultProps = {
+ clsPrefix: 'rc-trigger-popup',
+ getPopupClassNameFromAlign: returnEmptyString,
+ onPopupVisibleChange: noop,
+ afterPopupVisibleChange: noop,
+ onPopupAlign: noop,
+ popupClassName: '',
+ mouseEnterDelay: 0,
+ mouseLeaveDelay: 0.1,
+ focusDelay: 0,
+ blurDelay: 0.15,
+ popupStyle: {},
+ destroyPopupOnHide: false,
+ popupAlign: {},
+ defaultPopupVisible: false,
+ mask: false,
+ maskClosable: true,
+ action: [],
+ showAction: [],
+ hideAction: []
+ };
+
+ var Trigger = function (_Component) {
+ _inherits(Trigger, _Component);
+
+ function Trigger(props) {
+ _classCallCheck(this, Trigger);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.state = {
+ popupVisible: !!_this.props.popupVisible || _this.props.defaultPopupVisible
+ //this.removeContainer = this.removeContainer.bind(this);
+ };_this.getContainer = _this.getContainer.bind(_this);
+ _this.renderComponent = _this.renderComponent.bind(_this);
+ _this.isVisible = _this.isVisible.bind(_this);
+
+ _this.onMouseEnter = _this.onMouseEnter.bind(_this);
+ _this.onMouseLeave = _this.onMouseLeave.bind(_this);
+ _this.onPopupMouseEnter = _this.onPopupMouseEnter.bind(_this);
+ _this.onPopupMouseLeave = _this.onPopupMouseLeave.bind(_this);
+ _this.onFocus = _this.onFocus.bind(_this);
+
+ _this.onMouseDown = _this.onMouseDown.bind(_this);
+ _this.onTouchStart = _this.onTouchStart.bind(_this);
+ _this.onBlur = _this.onBlur.bind(_this);
+ _this.onDocumentClick = _this.onDocumentClick.bind(_this);
+ _this.getPopupDomNode = _this.getPopupDomNode.bind(_this);
+
+ _this.getRootDomNode = _this.getRootDomNode.bind(_this);
+ _this.getPopupClassNameFromAlign = _this.getPopupClassNameFromAlign.bind(_this);
+ _this.getPopupAlign = _this.getPopupAlign.bind(_this);
+ _this.getComponent = _this.getComponent.bind(_this);
+ _this.setPopupVisible = _this.setPopupVisible.bind(_this);
+
+ _this.delaySetPopupVisible = _this.delaySetPopupVisible.bind(_this);
+ _this.clearDelayTimer = _this.clearDelayTimer.bind(_this);
+ _this.createTwoChains = _this.createTwoChains.bind(_this);
+ _this.isClickToShow = _this.isClickToShow.bind(_this);
+ _this.isClickToHide = _this.isClickToHide.bind(_this);
+
+ _this.isMouseEnterToShow = _this.isMouseEnterToShow.bind(_this);
+ _this.isMouseLeaveToHide = _this.isMouseLeaveToHide.bind(_this);
+ _this.isFocusToShow = _this.isFocusToShow.bind(_this);
+ _this.isBlurToHide = _this.isBlurToHide.bind(_this);
+ _this.forcePopupAlign = _this.forcePopupAlign.bind(_this);
+
+ _this.fireEvents = _this.fireEvents.bind(_this);
+ _this.close = _this.close.bind(_this);
+ _this.onClick = _this.onClick.bind(_this);
+ return _this;
+ }
+
+ Trigger.prototype.isVisible = function isVisible(instance) {
+ return instance.state.popupVisible;
+ };
+
+ Trigger.prototype.getContainer = function getContainer(instance) {
+ var popupContainer = document.createElement('div');
+ var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body;
+ mountNode.appendChild(popupContainer);
+ return popupContainer;
+ };
+
+ Trigger.prototype.renderComponent = function renderComponent(instance, componentArg, ready) {
+ if (instance._component || this.isVisible(instance)) {
+ if (!instance._container) {
+ instance._container = this.getContainer(instance);
+ }
+ var component = instance.getComponent(componentArg);
+ _reactDom2["default"].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() {
+ instance._component = this;
+ if (ready) {
+ ready.call(this);
+ }
+ });
+ }
+ };
+
+ Trigger.prototype.componentWillMount = function componentWillMount() {
+ var _this2 = this;
+
+ this.mounted = false;
+ ALL_HANDLERS.forEach(function (h) {
+ _this2['fire' + h] = function (e) {
+ _this2.fireEvents(h, e);
+ };
+ });
+ };
+
+ Trigger.prototype.componentDidMount = function componentDidMount() {
+ this.mounted = true;
+ this.componentDidUpdate({}, {
+ popupVisible: this.state.popupVisible
+ });
+ };
+
+ Trigger.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {
+ var popupVisible = _ref.popupVisible;
+
+ if (popupVisible !== undefined) {
+ this.setState({
+ popupVisible: popupVisible
+ });
+ }
+ };
+
+ Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {
+ var props = this.props;
+ var state = this.state;
+ this.renderComponent(this, null, function () {
+ if (prevState.popupVisible !== state.popupVisible) {
+ props.afterPopupVisibleChange(state.popupVisible);
+ }
+ });
+ if (this.isClickToHide()) {
+ if (state.popupVisible) {
+ if (!this.clickOutsideHandler) {
+ this.clickOutsideHandler = (0, _tinperBeeCore.addEventListener)(document, 'mousedown', this.onDocumentClick);
+ this.touchOutsideHandler = (0, _tinperBeeCore.addEventListener)(document, 'touchstart', this.onDocumentClick);
+ }
+ return;
+ }
+ }
+ if (this.clickOutsideHandler) {
+ this.clickOutsideHandler.remove();
+ this.touchOutsideHandler.remove();
+ this.clickOutsideHandler = null;
+ this.touchOutsideHandler = null;
+ }
+ };
+
+ Trigger.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.clearDelayTimer();
+ if (this.clickOutsideHandler) {
+ this.clickOutsideHandler.remove();
+ this.touchOutsideHandler.remove();
+ this.clickOutsideHandler = null;
+ this.touchOutsideHandler = null;
+ }
+ if (this._container) {
+ _reactDom2["default"].unmountComponentAtNode(this._container);
+ }
+
+ //this.removeContainer();
+ };
+
+ Trigger.prototype.onMouseEnter = function onMouseEnter(e) {
+ this.fireEvents('onMouseEnter', e);
+ this.delaySetPopupVisible(true, this.props.mouseEnterDelay);
+ };
+
+ Trigger.prototype.onMouseLeave = function onMouseLeave(e) {
+ this.fireEvents('onMouseLeave', e);
+ this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);
+ };
+
+ Trigger.prototype.onPopupMouseEnter = function onPopupMouseEnter() {
+ this.clearDelayTimer();
+ };
+
+ Trigger.prototype.onPopupMouseLeave = function onPopupMouseLeave(e) {
+ // https://github.com/react-component/trigger/pull/13
+ // react bug?
+ if (e.relatedTarget && !e.relatedTarget.setTimeout && this._component && (0, _contains2["default"])(this._component.getPopupDomNode(), e.relatedTarget)) {
+ return;
+ }
+ this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);
+ };
+
+ Trigger.prototype.onFocus = function onFocus(e) {
+ this.fireEvents('onFocus', e);
+ // incase focusin and focusout
+ this.clearDelayTimer();
+ if (this.isFocusToShow()) {
+ this.focusTime = Date.now();
+ this.delaySetPopupVisible(true, this.props.focusDelay);
+ }
+ };
+
+ Trigger.prototype.onMouseDown = function onMouseDown(e) {
+ this.fireEvents('onMouseDown', e);
+ this.preClickTime = Date.now();
+ };
+
+ Trigger.prototype.onTouchStart = function onTouchStart(e) {
+ this.fireEvents('onTouchStart', e);
+ this.preTouchTime = Date.now();
+ };
+
+ Trigger.prototype.onBlur = function onBlur(e) {
+ this.fireEvents('onBlur', e);
+ this.clearDelayTimer();
+ if (this.isBlurToHide()) {
+ this.delaySetPopupVisible(false, this.props.blurDelay);
+ }
+ };
+
+ Trigger.prototype.onClick = function onClick(event) {
+ this.fireEvents('onClick', event);
+ // focus will trigger click
+ if (this.focusTime) {
+ var preTime = void 0;
+ if (this.preClickTime && this.preTouchTime) {
+ preTime = Math.min(this.preClickTime, this.preTouchTime);
+ } else if (this.preClickTime) {
+ preTime = this.preClickTime;
+ } else if (this.preTouchTime) {
+ preTime = this.preTouchTime;
+ }
+ if (Math.abs(preTime - this.focusTime) < 20) {
+ return;
+ }
+ this.focusTime = 0;
+ }
+ this.preClickTime = 0;
+ this.preTouchTime = 0;
+ event.preventDefault();
+ var nextVisible = !this.state.popupVisible;
+ if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
+ this.setPopupVisible(!this.state.popupVisible);
+ }
+ };
+
+ Trigger.prototype.onDocumentClick = function onDocumentClick(event) {
+ if (this.props.mask && !this.props.maskClosable) {
+ return;
+ }
+ var target = event.target;
+ var root = (0, _reactDom.findDOMNode)(this);
+ var popupNode = this.getPopupDomNode();
+ if (!(0, _contains2["default"])(root, target) && !(0, _contains2["default"])(popupNode, target)) {
+ this.close();
+ }
+ };
+
+ Trigger.prototype.getPopupDomNode = function getPopupDomNode() {
+ // for test
+ if (this._component) {
+ return this.mounted ? this._component.getPopupDomNode() : null;
+ }
+ return null;
+ };
+
+ Trigger.prototype.getRootDomNode = function getRootDomNode() {
+ return _reactDom2["default"].findDOMNode(this);
+ };
+
+ Trigger.prototype.getPopupClassNameFromAlign = function getPopupClassNameFromAlign(align) {
+ var className = [];
+ var props = this.props;
+ var popupPlacement = props.popupPlacement,
+ builtinPlacements = props.builtinPlacements,
+ clsPrefix = props.clsPrefix;
+
+ if (popupPlacement && builtinPlacements) {
+ className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, clsPrefix, align));
+ }
+ if (props.getPopupClassNameFromAlign) {
+ className.push(props.getPopupClassNameFromAlign(align));
+ }
+ return className.join(' ');
+ };
+
+ Trigger.prototype.getPopupAlign = function getPopupAlign() {
+ var props = this.props;
+ var popupPlacement = props.popupPlacement,
+ popupAlign = props.popupAlign,
+ builtinPlacements = props.builtinPlacements;
+
+ if (popupPlacement && builtinPlacements) {
+ return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign);
+ }
+ return popupAlign;
+ };
+
+ Trigger.prototype.getComponent = function getComponent() {
+ var props = this.props,
+ state = this.state;
+
+ var mouseProps = {};
+ if (this.isMouseEnterToShow()) {
+ mouseProps.onMouseEnter = this.onPopupMouseEnter;
+ }
+ if (this.isMouseLeaveToHide()) {
+ mouseProps.onMouseLeave = this.onPopupMouseLeave;
+ }
+ return _react2["default"].createElement(
+ _Popup2["default"],
+ _extends({
+ clsPrefix: props.clsPrefix,
+ destroyPopupOnHide: props.destroyPopupOnHide,
+ visible: state.popupVisible,
+ className: props.popupClassName,
+ action: props.action,
+ align: this.getPopupAlign(),
+ onAlign: props.onPopupAlign,
+ animation: props.popupAnimation,
+ getClassNameFromAlign: this.getPopupClassNameFromAlign
+ }, mouseProps, {
+ getRootDomNode: this.getRootDomNode,
+ style: props.popupStyle,
+ mask: props.mask,
+ zIndex: props.zIndex,
+ transitionName: props.popupTransitionName,
+ maskAnimation: props.maskAnimation,
+ maskTransitionName: props.maskTransitionName
+ }),
+ typeof props.popup === 'function' ? props.popup() : props.popup
+ );
+ };
+
+ Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible) {
+ this.clearDelayTimer();
+ if (this.state.popupVisible !== popupVisible) {
+ if (!('popupVisible' in this.props)) {
+ this.setState({
+ popupVisible: popupVisible
+ });
+ }
+ this.props.onPopupVisibleChange(popupVisible);
+ }
+ };
+
+ Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS) {
+ var _this3 = this;
+
+ var delay = delayS * 1000;
+ this.clearDelayTimer();
+ if (delay) {
+ this.delayTimer = setTimeout(function () {
+ _this3.setPopupVisible(visible);
+ _this3.clearDelayTimer();
+ }, delay);
+ } else {
+ this.setPopupVisible(visible);
+ }
+ };
+
+ Trigger.prototype.clearDelayTimer = function clearDelayTimer() {
+ if (this.delayTimer) {
+ clearTimeout(this.delayTimer);
+ this.delayTimer = null;
+ }
+ };
+
+ Trigger.prototype.createTwoChains = function createTwoChains(event) {
+ var childPros = this.props.children.props;
+ var props = this.props;
+ if (childPros[event] && props[event]) {
+ return this['fire' + event];
+ }
+ return childPros[event] || props[event];
+ };
+
+ Trigger.prototype.isClickToShow = function isClickToShow() {
+ var _props = this.props,
+ action = _props.action,
+ showAction = _props.showAction;
+
+ return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
+ };
+
+ Trigger.prototype.isClickToHide = function isClickToHide() {
+ var _props2 = this.props,
+ action = _props2.action,
+ hideAction = _props2.hideAction;
+
+ return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
+ };
+
+ Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {
+ var _props3 = this.props,
+ action = _props3.action,
+ showAction = _props3.showAction;
+
+ return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
+ };
+
+ Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {
+ var _props4 = this.props,
+ action = _props4.action,
+ hideAction = _props4.hideAction;
+
+ return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
+ };
+
+ Trigger.prototype.isFocusToShow = function isFocusToShow() {
+ var _props5 = this.props,
+ action = _props5.action,
+ showAction = _props5.showAction;
+
+ return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
+ };
+
+ Trigger.prototype.isBlurToHide = function isBlurToHide() {
+ var _props6 = this.props,
+ action = _props6.action,
+ hideAction = _props6.hideAction;
+
+ return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
+ };
+
+ Trigger.prototype.forcePopupAlign = function forcePopupAlign() {
+ if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) {
+ this.popupInstance.alignInstance.forceAlign();
+ }
+ };
+
+ Trigger.prototype.fireEvents = function fireEvents(type, e) {
+ var childCallback = this.props.children.props[type];
+ if (childCallback) {
+ childCallback(e);
+ }
+ var callback = this.props[type];
+ if (callback) {
+ callback(e);
+ }
+ };
+
+ Trigger.prototype.close = function close() {
+ this.setPopupVisible(false);
+ };
+
+ Trigger.prototype.render = function render() {
+ var props = this.props;
+ var children = props.children;
+ var child = _react2["default"].Children.only(children);
+ var newChildProps = {};
+
+ if (this.isClickToHide() || this.isClickToShow()) {
+ newChildProps.onClick = this.onClick;
+ newChildProps.onMouseDown = this.onMouseDown;
+ newChildProps.onTouchStart = this.onTouchStart;
+ } else {
+ newChildProps.onClick = this.createTwoChains('onClick');
+ newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
+ newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
+ }
+ if (this.isMouseEnterToShow()) {
+ newChildProps.onMouseEnter = this.onMouseEnter;
+ } else {
+ newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
+ }
+ if (this.isMouseLeaveToHide()) {
+ newChildProps.onMouseLeave = this.onMouseLeave;
+ } else {
+ newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
+ }
+ if (this.isFocusToShow() || this.isBlurToHide()) {
+ newChildProps.onFocus = this.onFocus;
+ newChildProps.onBlur = this.onBlur;
+ } else {
+ newChildProps.onFocus = this.createTwoChains('onFocus');
+ newChildProps.onBlur = this.createTwoChains('onBlur');
+ }
+
+ return _react2["default"].cloneElement(child, newChildProps);
+ };
+
+ return Trigger;
+ }(_react.Component);
+
+ ;
+
+ Trigger.propTypes = propTypes;
+ Trigger.defaultProps = defaultProps;
+ exports["default"] = Trigger;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 146 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _Align = __webpack_require__(49);
+
+ var _Align2 = _interopRequireDefault(_Align);
+
+ var _beeAnimate = __webpack_require__(96);
+
+ var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
+
+ var _PopupInner = __webpack_require__(147);
+
+ var _PopupInner2 = _interopRequireDefault(_PopupInner);
+
+ var _LazyRenderBox = __webpack_require__(148);
+
+ var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ visible: _propTypes2["default"].bool,
+ style: _propTypes2["default"].object,
+ getClassNameFromAlign: _propTypes2["default"].func,
+ onAlign: _propTypes2["default"].func,
+ getRootDomNode: _propTypes2["default"].func,
+ onMouseEnter: _propTypes2["default"].func,
+ align: _propTypes2["default"].any,
+ destroyPopupOnHide: _propTypes2["default"].bool,
+ className: _propTypes2["default"].string,
+ clsPrefix: _propTypes2["default"].string,
+ onMouseLeave: _propTypes2["default"].func
+ };
+
+ var Popup = function (_Component) {
+ _inherits(Popup, _Component);
+
+ function Popup() {
+ _classCallCheck(this, Popup);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this));
+
+ _this.onAlign = _this.onAlign.bind(_this);
+ _this.getPopupDomNode = _this.getPopupDomNode.bind(_this);
+ _this.getTarget = _this.getTarget.bind(_this);
+ _this.getMaskTransitionName = _this.getMaskTransitionName.bind(_this);
+ _this.getTransitionName = _this.getTransitionName.bind(_this);
+ _this.getClassName = _this.getClassName.bind(_this);
+ _this.getPopupElement = _this.getPopupElement.bind(_this);
+ _this.getZIndexStyle = _this.getZIndexStyle.bind(_this);
+ _this.getMaskElement = _this.getMaskElement.bind(_this);
+ _this.saveAlign = _this.saveAlign.bind(_this);
+ return _this;
+ }
+
+ Popup.prototype.componentDidMount = function componentDidMount() {
+ this.rootNode = this.getPopupDomNode();
+ };
+
+ Popup.prototype.onAlign = function onAlign(popupDomNode, align) {
+ var props = this.props;
+ var alignClassName = props.getClassNameFromAlign(props.align);
+ var currentAlignClassName = props.getClassNameFromAlign(align);
+ if (alignClassName !== currentAlignClassName) {
+ this.currentAlignClassName = currentAlignClassName;
+ popupDomNode.className = this.getClassName(currentAlignClassName);
+ }
+ props.onAlign(popupDomNode, align);
+ };
+
+ Popup.prototype.getPopupDomNode = function getPopupDomNode() {
+ return _reactDom2["default"].findDOMNode(this.refs.popup);
+ };
+
+ Popup.prototype.getTarget = function getTarget() {
+ return this.props.getRootDomNode();
+ };
+
+ Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {
+ var props = this.props;
+ var transitionName = props.maskTransitionName;
+ var animation = props.maskAnimation;
+ if (!transitionName && animation) {
+ transitionName = props.clsPrefix + '-' + animation;
+ }
+ return transitionName;
+ };
+
+ Popup.prototype.getTransitionName = function getTransitionName() {
+ var props = this.props;
+ var transitionName = props.transitionName;
+ if (!transitionName && props.animation) {
+ transitionName = props.clsPrefix + '-' + props.animation;
+ }
+ return transitionName;
+ };
+
+ Popup.prototype.getClassName = function getClassName(currentAlignClassName) {
+ return this.props.clsPrefix + ' ' + this.props.className + ' ' + currentAlignClassName;
+ };
+
+ Popup.prototype.getPopupElement = function getPopupElement() {
+ var props = this.props;
+ var align = props.align,
+ style = props.style,
+ visible = props.visible,
+ clsPrefix = props.clsPrefix,
+ destroyPopupOnHide = props.destroyPopupOnHide;
+
+ var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align));
+ var hiddenClassName = clsPrefix + '-hidden';
+ if (!visible) {
+ this.currentAlignClassName = null;
+ }
+ var newStyle = _extends({}, style, this.getZIndexStyle());
+ var popupInnerProps = {
+ className: className,
+ clsPrefix: clsPrefix,
+ ref: 'popup',
+ onMouseEnter: props.onMouseEnter,
+ onMouseLeave: props.onMouseLeave,
+ style: newStyle
+ };
+ if (destroyPopupOnHide) {
+ return _react2["default"].createElement(
+ _beeAnimate2["default"],
+ {
+ component: '',
+ exclusive: true,
+ transitionAppear: true,
+ transitionName: this.getTransitionName()
+ },
+ visible ? _react2["default"].createElement(
+ _Align2["default"],
+ {
+ target: this.getTarget,
+ key: 'popup',
+ ref: this.saveAlign,
+ monitorWindowResize: true,
+ align: align,
+ onAlign: this.onAlign
+ },
+ _react2["default"].createElement(
+ _PopupInner2["default"],
+ _extends({
+ visible: true
+ }, popupInnerProps),
+ props.children
+ )
+ ) : null
+ );
+ }
+ return _react2["default"].createElement(
+ _beeAnimate2["default"],
+ {
+ component: '',
+ exclusive: true,
+ transitionAppear: true,
+ transitionName: this.getTransitionName(),
+ showProp: 'xVisible'
+ },
+ _react2["default"].createElement(
+ _Align2["default"],
+ {
+ target: this.getTarget,
+ key: 'popup',
+ ref: this.saveAlign,
+ monitorWindowResize: true,
+ xVisible: visible,
+ childrenProps: { visible: 'xVisible' },
+ disabled: !visible,
+ align: align,
+ onAlign: this.onAlign
+ },
+ _react2["default"].createElement(
+ _PopupInner2["default"],
+ _extends({
+ hiddenClassName: hiddenClassName
+ }, popupInnerProps),
+ props.children
+ )
+ )
+ );
+ };
+
+ Popup.prototype.getZIndexStyle = function getZIndexStyle() {
+ var style = {};
+ var props = this.props;
+ if (props.zIndex !== undefined) {
+ style.zIndex = props.zIndex;
+ }
+ return style;
+ };
+
+ Popup.prototype.getMaskElement = function getMaskElement() {
+ var props = this.props;
+ var maskElement = void 0;
+ if (props.mask) {
+ var maskTransition = this.getMaskTransitionName();
+ maskElement = _react2["default"].createElement(_LazyRenderBox2["default"], {
+ style: this.getZIndexStyle(),
+ key: 'mask',
+ className: props.clsPrefix + '-mask',
+ hiddenClassName: props.clsPrefix + '-mask-hidden',
+ visible: props.visible
+ });
+ if (maskTransition) {
+ maskElement = _react2["default"].createElement(
+ _beeAnimate2["default"],
+ {
+ key: 'mask',
+ showProp: 'visible',
+ transitionAppear: true,
+ component: '',
+ transitionName: maskTransition
+ },
+ maskElement
+ );
+ }
+ }
+ return maskElement;
+ };
+
+ Popup.prototype.saveAlign = function saveAlign(align) {
+ this.alignInstance = align;
+ };
+
+ Popup.prototype.render = function render() {
+ return _react2["default"].createElement(
+ 'div',
+ null,
+ this.getMaskElement(),
+ this.getPopupElement()
+ );
+ };
+
+ return Popup;
+ }(_react.Component);
+
+ ;
+
+ Popup.propTypes = propTypes;
+ exports["default"] = Popup;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 147 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _LazyRenderBox = __webpack_require__(148);
+
+ var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ hiddenClassName: _propTypes2["default"].string,
+ className: _propTypes2["default"].string,
+ clsPrefix: _propTypes2["default"].string,
+ onMouseEnter: _propTypes2["default"].func,
+ onMouseLeave: _propTypes2["default"].func,
+ children: _propTypes2["default"].any
+ };
+
+ var PopupInner = function (_Component) {
+ _inherits(PopupInner, _Component);
+
+ function PopupInner() {
+ _classCallCheck(this, PopupInner);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ PopupInner.prototype.render = function render() {
+ var props = this.props;
+ var className = props.className;
+ if (!props.visible) {
+ className += ' ' + props.hiddenClassName;
+ }
+ return _react2["default"].createElement(
+ 'div',
+ {
+ className: className,
+ onMouseEnter: props.onMouseEnter,
+ onMouseLeave: props.onMouseLeave,
+ style: props.style
+ },
+ _react2["default"].createElement(
+ _LazyRenderBox2["default"],
+ { className: props.clsPrefix + '-content', visible: props.visible },
+ props.children
+ )
+ );
+ };
+
+ return PopupInner;
+ }(_react.Component);
+
+ ;
+
+ PopupInner.propTypes = propTypes;
+ exports["default"] = PopupInner;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 148 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ children: _propTypes2["default"].any,
+ className: _propTypes2["default"].string,
+ visible: _propTypes2["default"].bool,
+ hiddenClassName: _propTypes2["default"].string
+ };
+
+ var LazyRenderBox = function (_Component) {
+ _inherits(LazyRenderBox, _Component);
+
+ function LazyRenderBox() {
+ _classCallCheck(this, LazyRenderBox);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ return nextProps.hiddenClassName || nextProps.visible;
+ };
+
+ LazyRenderBox.prototype.render = function render() {
+ var _props = this.props,
+ hiddenClassName = _props.hiddenClassName,
+ visible = _props.visible,
+ props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);
+
+ if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) {
+ if (!visible && hiddenClassName) {
+ props.className += ' ' + hiddenClassName;
+ }
+ return _react2["default"].createElement('div', props);
+ }
+
+ return _react2["default"].Children.only(props.children);
+ };
+
+ return LazyRenderBox;
+ }(_react.Component);
+
+ ;
+ LazyRenderBox.propTypes = propTypes;
+
+ exports["default"] = LazyRenderBox;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 149 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ exports.getAlignFromPlacement = getAlignFromPlacement;
+ exports.getPopupClassNameFromAlign = getPopupClassNameFromAlign;
+ function isPointsEq(a1, a2) {
+ return a1[0] === a2[0] && a1[1] === a2[1];
+ }
+
+ function getAlignFromPlacement(builtinPlacements, placementStr, align) {
+ var baseAlign = builtinPlacements[placementStr] || {};
+ return _extends({}, baseAlign, align);
+ }
+
+ function getPopupClassNameFromAlign(builtinPlacements, clsPrefix, align) {
+ var points = align.points;
+ for (var placement in builtinPlacements) {
+ if (builtinPlacements.hasOwnProperty(placement)) {
+ if (isPointsEq(builtinPlacements[placement].points, points)) {
+ return clsPrefix + '-placement-' + placement;
+ }
+ }
+ }
+ return '';
+ }
+
+/***/ }),
+/* 150 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _tinperBeeCore = __webpack_require__(26);
+
+ var _beeMenus = __webpack_require__(126);
+
+ var _beeMenus2 = _interopRequireDefault(_beeMenus);
+
+ var _domScrollIntoView = __webpack_require__(151);
+
+ var _domScrollIntoView2 = _interopRequireDefault(_domScrollIntoView);
+
+ var _util = __webpack_require__(142);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ defaultActiveFirstOption: _propTypes2["default"].bool,
+ value: _propTypes2["default"].any,
+ dropdownMenuStyle: _propTypes2["default"].object,
+ multiple: _propTypes2["default"].bool,
+ onPopupFocus: _propTypes2["default"].func,
+ onMenuDeSelect: _propTypes2["default"].func,
+ onMenuSelect: _propTypes2["default"].func,
+ clsPrefix: _propTypes2["default"].string,
+ menuItems: _propTypes2["default"].any,
+ inputValue: _propTypes2["default"].string,
+ visible: _propTypes2["default"].bool
+ };
+
+ var DropdownMenu = function (_Component) {
+ _inherits(DropdownMenu, _Component);
+
+ function DropdownMenu() {
+ _classCallCheck(this, DropdownMenu);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ DropdownMenu.prototype.componentWillMount = function componentWillMount() {
+ this.lastInputValue = this.props.inputValue;
+ };
+
+ DropdownMenu.prototype.componentDidMount = function componentDidMount() {
+ this.scrollActiveItemToView();
+ this.lastVisible = this.props.visible;
+ var scrollDom = (0, _reactDom.findDOMNode)(this.refs.menu);
+ scrollDom.addEventListener('scroll', this.handleScroll.bind(this));
+ };
+
+ DropdownMenu.prototype.componentWillUnmount = function componentWillUnmount() {
+ var scrollDom = (0, _reactDom.findDOMNode)(this.refs.menu);
+ scrollDom.removeEventListener('scroll', this.handleScroll.bind(this));
+ };
+
+ DropdownMenu.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
+ if (!nextProps.visible) {
+ this.lastVisible = false;
+ }
+ // freeze when hide
+ return nextProps.visible;
+ };
+
+ DropdownMenu.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var props = this.props;
+ if (!prevProps.visible && props.visible) {
+ this.scrollActiveItemToView();
+ }
+ this.lastVisible = props.visible;
+ this.lastInputValue = props.inputValue;
+ };
+
+ DropdownMenu.prototype.handleScroll = function handleScroll(event) {
+ var scrollToEnd = this.props.scrollToEnd;
+
+ var el = event.target;
+ if (el.scrollHeight < el.clientHeight + el.scrollTop + 1) {
+ if (scrollToEnd) {
+ scrollToEnd();
+ }
+ }
+ };
+
+ DropdownMenu.prototype.scrollActiveItemToView = function scrollActiveItemToView() {
+ // scroll into view
+ var itemComponent = (0, _reactDom.findDOMNode)(this.firstActiveItem);
+ if (itemComponent) {
+ (0, _domScrollIntoView2["default"])(itemComponent, (0, _reactDom.findDOMNode)(this.refs.menu), {
+ onlyScrollIfNeeded: true
+ });
+ }
+ };
+
+ DropdownMenu.prototype.renderMenu = function renderMenu() {
+ var _this2 = this;
+
+ var props = this.props;
+ var menuItems = props.menuItems,
+ defaultActiveFirstOption = props.defaultActiveFirstOption,
+ value = props.value,
+ clsPrefix = props.clsPrefix,
+ multiple = props.multiple,
+ onMenuSelect = props.onMenuSelect,
+ inputValue = props.inputValue;
+
+ if (menuItems && menuItems.length) {
+ var menuProps = {};
+ if (multiple) {
+ menuProps.onDeselect = props.onMenuDeselect;
+ menuProps.onSelect = onMenuSelect;
+ } else {
+ menuProps.onClick = onMenuSelect;
+ }
+
+ var selectedKeys = (0, _util.getSelectKeys)(menuItems, value);
+ var activeKeyProps = {};
+
+ var clonedMenuItems = menuItems;
+ if (selectedKeys.length) {
+ if (props.visible && !this.lastVisible) {
+ activeKeyProps.activeKey = selectedKeys[0];
+ }
+ var foundFirst = false;
+ // set firstActiveItem via cloning menus
+ // for scroll into view
+ var clone = function clone(item) {
+ if (!foundFirst && selectedKeys.indexOf(item.key) !== -1) {
+ foundFirst = true;
+ return (0, _react.cloneElement)(item, {
+ ref: function ref(_ref) {
+ _this2.firstActiveItem = _ref;
+ }
+ });
+ }
+ return item;
+ };
+
+ clonedMenuItems = menuItems.map(function (item) {
+ if (item.type === _beeMenus.ItemGroup) {
+ var children = (0, _tinperBeeCore.toArray)(item.props.children).map(clone);
+ return (0, _react.cloneElement)(item, {}, children);
+ }
+ return clone(item);
+ });
+ }
+
+ // clear activeKey when inputValue change
+ if (inputValue !== this.lastInputValue) {
+ activeKeyProps.activeKey = '';
+ }
+
+ return _react2["default"].createElement(
+ _beeMenus2["default"],
+ _extends({
+ ref: 'menu',
+ style: this.props.dropdownMenuStyle,
+ defaultActiveFirst: defaultActiveFirstOption
+ }, activeKeyProps, {
+ multiple: multiple,
+ focusable: false
+ }, menuProps, {
+ selectedKeys: selectedKeys,
+ clsPrefix: clsPrefix + '-menu'
+ }),
+ clonedMenuItems
+ );
+ }
+ return null;
+ };
+
+ DropdownMenu.prototype.render = function render() {
+ var renderMenu = this.renderMenu();
+ return renderMenu ? _react2["default"].createElement(
+ 'div',
+ {
+ style: { overflow: 'auto' },
+ onFocus: this.props.onPopupFocus,
+ onMouseDown: _util.preventDefaultEvent
+ },
+ renderMenu
+ ) : null;
+ };
+
+ return DropdownMenu;
+ }(_react.Component);
+
+ ;
+
+ exports["default"] = DropdownMenu;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 151 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ module.exports = __webpack_require__(152);
+
+/***/ }),
+/* 152 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ var util = __webpack_require__(153);
+
+ function scrollIntoView(elem, container, config) {
+ config = config || {};
+ // document 归一化到 window
+ if (container.nodeType === 9) {
+ container = util.getWindow(container);
+ }
+
+ var allowHorizontalScroll = config.allowHorizontalScroll;
+ var onlyScrollIfNeeded = config.onlyScrollIfNeeded;
+ var alignWithTop = config.alignWithTop;
+ var alignWithLeft = config.alignWithLeft;
+ var offsetTop = config.offsetTop || 0;
+ var offsetLeft = config.offsetLeft || 0;
+ var offsetBottom = config.offsetBottom || 0;
+ var offsetRight = config.offsetRight || 0;
+
+ allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;
+
+ var isWin = util.isWindow(container);
+ var elemOffset = util.offset(elem);
+ var eh = util.outerHeight(elem);
+ var ew = util.outerWidth(elem);
+ var containerOffset = undefined;
+ var ch = undefined;
+ var cw = undefined;
+ var containerScroll = undefined;
+ var diffTop = undefined;
+ var diffBottom = undefined;
+ var win = undefined;
+ var winScroll = undefined;
+ var ww = undefined;
+ var wh = undefined;
+
+ if (isWin) {
+ win = container;
+ wh = util.height(win);
+ ww = util.width(win);
+ winScroll = {
+ left: util.scrollLeft(win),
+ top: util.scrollTop(win)
+ };
+ // elem 相对 container 可视视窗的距离
+ diffTop = {
+ left: elemOffset.left - winScroll.left - offsetLeft,
+ top: elemOffset.top - winScroll.top - offsetTop
+ };
+ diffBottom = {
+ left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,
+ top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom
+ };
+ containerScroll = winScroll;
+ } else {
+ containerOffset = util.offset(container);
+ ch = container.clientHeight;
+ cw = container.clientWidth;
+ containerScroll = {
+ left: container.scrollLeft,
+ top: container.scrollTop
+ };
+ // elem 相对 container 可视视窗的距离
+ // 注意边框, offset 是边框到根节点
+ diffTop = {
+ left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,
+ top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop
+ };
+ diffBottom = {
+ left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,
+ top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom
+ };
+ }
+
+ if (diffTop.top < 0 || diffBottom.top > 0) {
+ // 强制向上
+ if (alignWithTop === true) {
+ util.scrollTop(container, containerScroll.top + diffTop.top);
+ } else if (alignWithTop === false) {
+ util.scrollTop(container, containerScroll.top + diffBottom.top);
+ } else {
+ // 自动调整
+ if (diffTop.top < 0) {
+ util.scrollTop(container, containerScroll.top + diffTop.top);
+ } else {
+ util.scrollTop(container, containerScroll.top + diffBottom.top);
+ }
+ }
+ } else {
+ if (!onlyScrollIfNeeded) {
+ alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;
+ if (alignWithTop) {
+ util.scrollTop(container, containerScroll.top + diffTop.top);
+ } else {
+ util.scrollTop(container, containerScroll.top + diffBottom.top);
+ }
+ }
+ }
+
+ if (allowHorizontalScroll) {
+ if (diffTop.left < 0 || diffBottom.left > 0) {
+ // 强制向上
+ if (alignWithLeft === true) {
+ util.scrollLeft(container, containerScroll.left + diffTop.left);
+ } else if (alignWithLeft === false) {
+ util.scrollLeft(container, containerScroll.left + diffBottom.left);
+ } else {
+ // 自动调整
+ if (diffTop.left < 0) {
+ util.scrollLeft(container, containerScroll.left + diffTop.left);
+ } else {
+ util.scrollLeft(container, containerScroll.left + diffBottom.left);
+ }
+ }
+ } else {
+ if (!onlyScrollIfNeeded) {
+ alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;
+ if (alignWithLeft) {
+ util.scrollLeft(container, containerScroll.left + diffTop.left);
+ } else {
+ util.scrollLeft(container, containerScroll.left + diffBottom.left);
+ }
+ }
+ }
+ }
+ }
+
+ module.exports = scrollIntoView;
+
+/***/ }),
+/* 153 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
+
+ var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
+
+ function getClientPosition(elem) {
+ var box = undefined;
+ var x = undefined;
+ var y = undefined;
+ var doc = elem.ownerDocument;
+ var body = doc.body;
+ var docElem = doc && doc.documentElement;
+ // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
+ box = elem.getBoundingClientRect();
+
+ // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
+ // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
+ // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
+
+ x = box.left;
+ y = box.top;
+
+ // In IE, most of the time, 2 extra pixels are added to the top and left
+ // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
+ // IE6 standards mode, this border can be overridden by setting the
+ // document element's border to zero -- thus, we cannot rely on the
+ // offset always being 2 pixels.
+
+ // In quirks mode, the offset can be determined by querying the body's
+ // clientLeft/clientTop, but in standards mode, it is found by querying
+ // the document element's clientLeft/clientTop. Since we already called
+ // getClientBoundingRect we have already forced a reflow, so it is not
+ // too expensive just to query them all.
+
+ // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
+ // 窗口边框标准是设 documentElement ,quirks 时设置 body
+ // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
+ // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
+ // 标准 ie 下 docElem.clientTop 就是 border-top
+ // ie7 html 即窗口边框改变不了。永远为 2
+ // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
+
+ x -= docElem.clientLeft || body.clientLeft || 0;
+ y -= docElem.clientTop || body.clientTop || 0;
+
+ return {
+ left: x,
+ top: y
+ };
+ }
+
+ function getScroll(w, top) {
+ var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
+ var method = 'scroll' + (top ? 'Top' : 'Left');
+ if (typeof ret !== 'number') {
+ var d = w.document;
+ // ie6,7,8 standard mode
+ ret = d.documentElement[method];
+ if (typeof ret !== 'number') {
+ // quirks mode
+ ret = d.body[method];
+ }
+ }
+ return ret;
+ }
+
+ function getScrollLeft(w) {
+ return getScroll(w);
+ }
+
+ function getScrollTop(w) {
+ return getScroll(w, true);
+ }
+
+ function getOffset(el) {
+ var pos = getClientPosition(el);
+ var doc = el.ownerDocument;
+ var w = doc.defaultView || doc.parentWindow;
+ pos.left += getScrollLeft(w);
+ pos.top += getScrollTop(w);
+ return pos;
+ }
+ function _getComputedStyle(elem, name, computedStyle_) {
+ var val = '';
+ var d = elem.ownerDocument;
+ var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null);
+
+ // https://github.com/kissyteam/kissy/issues/61
+ if (computedStyle) {
+ val = computedStyle.getPropertyValue(name) || computedStyle[name];
+ }
+
+ return val;
+ }
+
+ var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i');
+ var RE_POS = /^(top|right|bottom|left)$/;
+ var CURRENT_STYLE = 'currentStyle';
+ var RUNTIME_STYLE = 'runtimeStyle';
+ var LEFT = 'left';
+ var PX = 'px';
+
+ function _getComputedStyleIE(elem, name) {
+ // currentStyle maybe null
+ // http://msdn.microsoft.com/en-us/library/ms535231.aspx
+ var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
+
+ // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
+ // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
+ // 在 ie 下不对,需要直接用 offset 方式
+ // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
+
+ // From the awesome hack by Dean Edwards
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+ // If we're not dealing with a regular pixel number
+ // but a number that has a weird ending, we need to convert it to pixels
+ // exclude left right for relativity
+ if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
+ // Remember the original values
+ var style = elem.style;
+ var left = style[LEFT];
+ var rsLeft = elem[RUNTIME_STYLE][LEFT];
+
+ // prevent flashing of content
+ elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
+
+ // Put in the new values to get a computed value out
+ style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
+ ret = style.pixelLeft + PX;
+
+ // Revert the changed values
+ style[LEFT] = left;
+
+ elem[RUNTIME_STYLE][LEFT] = rsLeft;
+ }
+ return ret === '' ? 'auto' : ret;
+ }
+
+ var getComputedStyleX = undefined;
+ if (typeof window !== 'undefined') {
+ getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
+ }
+
+ function each(arr, fn) {
+ for (var i = 0; i < arr.length; i++) {
+ fn(arr[i]);
+ }
+ }
+
+ function isBorderBoxFn(elem) {
+ return getComputedStyleX(elem, 'boxSizing') === 'border-box';
+ }
+
+ var BOX_MODELS = ['margin', 'border', 'padding'];
+ var CONTENT_INDEX = -1;
+ var PADDING_INDEX = 2;
+ var BORDER_INDEX = 1;
+ var MARGIN_INDEX = 0;
+
+ function swap(elem, options, callback) {
+ var old = {};
+ var style = elem.style;
+ var name = undefined;
+
+ // Remember the old values, and insert the new ones
+ for (name in options) {
+ if (options.hasOwnProperty(name)) {
+ old[name] = style[name];
+ style[name] = options[name];
+ }
+ }
+
+ callback.call(elem);
+
+ // Revert the old values
+ for (name in options) {
+ if (options.hasOwnProperty(name)) {
+ style[name] = old[name];
+ }
+ }
+ }
+
+ function getPBMWidth(elem, props, which) {
+ var value = 0;
+ var prop = undefined;
+ var j = undefined;
+ var i = undefined;
+ for (j = 0; j < props.length; j++) {
+ prop = props[j];
+ if (prop) {
+ for (i = 0; i < which.length; i++) {
+ var cssProp = undefined;
+ if (prop === 'border') {
+ cssProp = prop + which[i] + 'Width';
+ } else {
+ cssProp = prop + which[i];
+ }
+ value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
+ }
+ }
+ }
+ return value;
+ }
+
+ /**
+ * A crude way of determining if an object is a window
+ * @member util
+ */
+ function isWindow(obj) {
+ // must use == for ie8
+ /* eslint eqeqeq:0 */
+ return obj != null && obj == obj.window;
+ }
+
+ var domUtils = {};
+
+ each(['Width', 'Height'], function (name) {
+ domUtils['doc' + name] = function (refWin) {
+ var d = refWin.document;
+ return Math.max(
+ // firefox chrome documentElement.scrollHeight< body.scrollHeight
+ // ie standard mode : documentElement.scrollHeight> body.scrollHeight
+ d.documentElement['scroll' + name],
+ // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
+ d.body['scroll' + name], domUtils['viewport' + name](d));
+ };
+
+ domUtils['viewport' + name] = function (win) {
+ // pc browser includes scrollbar in window.innerWidth
+ var prop = 'client' + name;
+ var doc = win.document;
+ var body = doc.body;
+ var documentElement = doc.documentElement;
+ var documentElementProp = documentElement[prop];
+ // 标准模式取 documentElement
+ // backcompat 取 body
+ return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
+ };
+ });
+
+ /*
+ 得到元素的大小信息
+ @param elem
+ @param name
+ @param {String} [extra] 'padding' : (css width) + padding
+ 'border' : (css width) + padding + border
+ 'margin' : (css width) + padding + border + margin
+ */
+ function getWH(elem, name, extra) {
+ if (isWindow(elem)) {
+ return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
+ } else if (elem.nodeType === 9) {
+ return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
+ }
+ var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
+ var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight;
+ var computedStyle = getComputedStyleX(elem);
+ var isBorderBox = isBorderBoxFn(elem, computedStyle);
+ var cssBoxValue = 0;
+ if (borderBoxValue == null || borderBoxValue <= 0) {
+ borderBoxValue = undefined;
+ // Fall back to computed then un computed css if necessary
+ cssBoxValue = getComputedStyleX(elem, name);
+ if (cssBoxValue == null || Number(cssBoxValue) < 0) {
+ cssBoxValue = elem.style[name] || 0;
+ }
+ // Normalize '', auto, and prepare for extra
+ cssBoxValue = parseFloat(cssBoxValue) || 0;
+ }
+ if (extra === undefined) {
+ extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
+ }
+ var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
+ var val = borderBoxValue || cssBoxValue;
+ if (extra === CONTENT_INDEX) {
+ if (borderBoxValueOrIsBorderBox) {
+ return val - getPBMWidth(elem, ['border', 'padding'], which, computedStyle);
+ }
+ return cssBoxValue;
+ }
+ if (borderBoxValueOrIsBorderBox) {
+ var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which, computedStyle) : getPBMWidth(elem, ['margin'], which, computedStyle);
+ return val + (extra === BORDER_INDEX ? 0 : padding);
+ }
+ return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which, computedStyle);
+ }
+
+ var cssShow = {
+ position: 'absolute',
+ visibility: 'hidden',
+ display: 'block'
+ };
+
+ // fix #119 : https://github.com/kissyteam/kissy/issues/119
+ function getWHIgnoreDisplay(elem) {
+ var val = undefined;
+ var args = arguments;
+ // in case elem is window
+ // elem.offsetWidth === undefined
+ if (elem.offsetWidth !== 0) {
+ val = getWH.apply(undefined, args);
+ } else {
+ swap(elem, cssShow, function () {
+ val = getWH.apply(undefined, args);
+ });
+ }
+ return val;
+ }
+
+ function css(el, name, v) {
+ var value = v;
+ if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
+ for (var i in name) {
+ if (name.hasOwnProperty(i)) {
+ css(el, i, name[i]);
+ }
+ }
+ return undefined;
+ }
+ if (typeof value !== 'undefined') {
+ if (typeof value === 'number') {
+ value += 'px';
+ }
+ el.style[name] = value;
+ return undefined;
+ }
+ return getComputedStyleX(el, name);
+ }
+
+ each(['width', 'height'], function (name) {
+ var first = name.charAt(0).toUpperCase() + name.slice(1);
+ domUtils['outer' + first] = function (el, includeMargin) {
+ return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
+ };
+ var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
+
+ domUtils[name] = function (elem, val) {
+ if (val !== undefined) {
+ if (elem) {
+ var computedStyle = getComputedStyleX(elem);
+ var isBorderBox = isBorderBoxFn(elem);
+ if (isBorderBox) {
+ val += getPBMWidth(elem, ['padding', 'border'], which, computedStyle);
+ }
+ return css(elem, name, val);
+ }
+ return undefined;
+ }
+ return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
+ };
+ });
+
+ // 设置 elem 相对 elem.ownerDocument 的坐标
+ function setOffset(elem, offset) {
+ // set position first, in-case top/left are set even on static elem
+ if (css(elem, 'position') === 'static') {
+ elem.style.position = 'relative';
+ }
+
+ var old = getOffset(elem);
+ var ret = {};
+ var current = undefined;
+ var key = undefined;
+
+ for (key in offset) {
+ if (offset.hasOwnProperty(key)) {
+ current = parseFloat(css(elem, key)) || 0;
+ ret[key] = current + offset[key] - old[key];
+ }
+ }
+ css(elem, ret);
+ }
+
+ module.exports = _extends({
+ getWindow: function getWindow(node) {
+ var doc = node.ownerDocument || node;
+ return doc.defaultView || doc.parentWindow;
+ },
+ offset: function offset(el, value) {
+ if (typeof value !== 'undefined') {
+ setOffset(el, value);
+ } else {
+ return getOffset(el);
+ }
+ },
+
+ isWindow: isWindow,
+ each: each,
+ css: css,
+ clone: function clone(obj) {
+ var ret = {};
+ for (var i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ ret[i] = obj[i];
+ }
+ }
+ var overflow = obj.overflow;
+ if (overflow) {
+ for (var i in obj) {
+ if (obj.hasOwnProperty(i)) {
+ ret.overflow[i] = obj.overflow[i];
+ }
+ }
+ }
+ return ret;
+ },
+ scrollLeft: function scrollLeft(w, v) {
+ if (isWindow(w)) {
+ if (v === undefined) {
+ return getScrollLeft(w);
+ }
+ window.scrollTo(v, getScrollTop(w));
+ } else {
+ if (v === undefined) {
+ return w.scrollLeft;
+ }
+ w.scrollLeft = v;
+ }
+ },
+ scrollTop: function scrollTop(w, v) {
+ if (isWindow(w)) {
+ if (v === undefined) {
+ return getScrollTop(w);
+ }
+ window.scrollTo(getScrollLeft(w), v);
+ } else {
+ if (v === undefined) {
+ return w.scrollTop;
+ }
+ w.scrollTop = v;
+ }
+ },
+
+ viewportWidth: 0,
+ viewportHeight: 0
+ }, domUtils);
+
+/***/ }),
+/* 154 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ disabled: _propTypes2["default"].bool,
+ value: _propTypes2["default"].string
+ };
+
+ var Option = function (_React$Component) {
+ _inherits(Option, _React$Component);
+
+ function Option() {
+ _classCallCheck(this, Option);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ return Option;
+ }(_react2["default"].Component);
+
+ Option.propTypes = propTypes;
+ exports["default"] = Option;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 155 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _beeForm = __webpack_require__(156);
+
+ var _beeForm2 = _interopRequireDefault(_beeForm);
+
+ var _beeTooltip = __webpack_require__(101);
+
+ var _beeTooltip2 = _interopRequireDefault(_beeTooltip);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ check: _propTypes2["default"].func
+ };
+
+ var defaultProps = {
+ check: function check() {
+ return "";
+ }
+ };
+
+ var InputRender = function (_Component) {
+ _inherits(InputRender, _Component);
+
+ function InputRender() {
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, InputRender);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
+ value: _this.props.value,
+ editable: false
+ }, _this.handleChange = function (e) {
+ var value = e;
+ _this.setState({ value: value });
+ }, _this.check = function () {
+ console.log('1');
+ if (typeof _this.flag === "undefined" || _this.flag) {
+ _this.props.check(_this.flag, _this.obj);
+ _this.setState({ editable: false });
+ if (_this.props.onChange) {
+ _this.props.onChange(_this.state.value);
+ }
+ _this.flag = undefined;
+ }
+ }, _this.checkValidate = function (flag, obj) {
+ _this.flag = flag;
+ _this.obj = obj;
+ }, _this.edit = function () {
+ _this.setState({ editable: true });
+ }, _this.handleKeydown = function (event) {
+ if (event.keyCode == 13) {
+ _this.check();
+ } else if (event.keyCode == 9) {
+ debugger;
+ }
+ }, _this.formatCurrency = function (money) {
+ if (money && money != null && !!Number(money)) {
+ money = String(money);
+ var left = money.split(".")[0],
+ right = money.split(".")[1];
+ right = right ? right.length >= 2 ? "." + right.substr(0, 2) : "." + right + "0" : ".00";
+ var temp = left.split("").reverse().join("").match(/(\d{1,3})/g);
+ return (Number(money) < 0 ? "-" : "") + temp.join(",").split("").reverse().join("") + right;
+ } else if (money === 0) {
+ //注意===在这里的使用,如果传入的money为0,if中会将其判定为boolean类型,故而要另外做===判断
+ return "0.00";
+ } else {
+ return "";
+ }
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+ //货币的格式化方法
+
+
+ InputRender.prototype.render = function render() {
+ var _state = this.state,
+ value = _state.value,
+ editable = _state.editable;
+
+ var _props = this.props,
+ name = _props.name,
+ placeholder = _props.placeholder,
+ isclickTrigger = _props.isclickTrigger,
+ format = _props.format,
+ formItemClassName = _props.formItemClassName,
+ mesClassName = _props.mesClassName,
+ check = _props.check,
+ other = _objectWithoutProperties(_props, ["name", "placeholder", "isclickTrigger", "format", "formItemClassName", "mesClassName", "check"]);
+
+ var cellContent = "";
+ if (editable) {
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(
+ _beeForm2["default"].FormItem,
+ _extends({
+ className: "formItem-style " + formItemClassName,
+ mesClassName: "errMessage-style " + mesClassName,
+ change: this.handleChange,
+ blur: this.check,
+ check: this.checkValidate
+ }, other),
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ name: name,
+ placeholder: placeholder,
+ onKeyDown: this.handleKeydown,
+ autoFocus: true,
+ value: value
+ })
+ )
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(
+ _beeForm2["default"].FormItem,
+ _extends({
+ className: "formItem-style " + formItemClassName,
+ mesClassName: "errMessage-style " + mesClassName,
+ change: this.handleChange,
+ blur: this.check,
+ check: this.checkValidate
+ }, other),
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ name: name,
+ placeholder: placeholder,
+ onKeyDown: this.handleKeydown,
+ autoFocus: true,
+ value: value
+ })
+ ),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ );
+ } else {
+ if (format && format === "Currency") {
+ value = this.formatCurrency(value);
+ }
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper", onClick: this.edit },
+ value || " "
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper" },
+ value || " ",
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-pencil",
+ className: "editable-cell-icon",
+ onClick: this.edit
+ })
+ );
+ }
+ return _react2["default"].createElement(
+ "div",
+ { className: "editable-cell" },
+ cellContent
+ );
+ };
+
+ return InputRender;
+ }(_react.Component);
+
+ exports["default"] = InputRender;
+
+ InputRender.PropTypes = propTypes;
+ InputRender.defaultProps = defaultProps;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 156 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Form = __webpack_require__(157);
+
+ var _Form2 = _interopRequireDefault(_Form);
+
+ var _FormItem = __webpack_require__(160);
+
+ var _FormItem2 = _interopRequireDefault(_FormItem);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ _Form2["default"].FormItem = _FormItem2["default"];
+ exports["default"] = _Form2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 157 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _beeLayout = __webpack_require__(1);
+
+ var _beeLabel = __webpack_require__(158);
+
+ var _beeLabel2 = _interopRequireDefault(_beeLabel);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ clsPrefix: _propTypes2["default"].string,
+ className: _propTypes2["default"].string,
+ submitCallBack: _propTypes2["default"].func, //form验证的回调
+ submitAreaClassName: _propTypes2["default"].string, //提交区域className
+ submitBtnClassName: _propTypes2["default"].string, //提交按钮className
+ beforeSubmitBtn: _propTypes2["default"].node, //提交按钮之前的dom
+ afterSubmitBtn: _propTypes2["default"].node, //提交按钮之后的dom
+ useRow: _propTypes2["default"].bool, //是否使用栅格布局
+ checkFormNow: _propTypes2["default"].bool, //现在就校验(主动校验参数)
+ showSubmit: _propTypes2["default"].bool //是否显示提交按钮
+ };
+ var defaultProps = {
+ clsPrefix: 'u-form',
+ className: '',
+ submitCallBack: function submitCallBack() {}, //form验证的回调
+ submitAreaClassName: '',
+ submitBtnClassName: '',
+ beforeSubmitBtn: '',
+ afterSubmitBtn: '',
+ useRow: false,
+ checkFormNow: false,
+ showSubmit: true
+ };
+
+ var Form = function (_Component) {
+ _inherits(Form, _Component);
+
+ function Form(props) {
+ _classCallCheck(this, Form);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.checkItem = function (obj, flag) {
+ var items = _this.state.items;
+ items.forEach(function (item) {
+ if (item.name === obj.name) {
+ item.verify = obj.verify;
+ item.value = obj.value === undefined ? '' : obj.value;
+ }
+ });
+ _this.setState({
+ items: items
+ });
+ if (flag && items[items.length - 1] && items[items.length - 1].name === obj.name) {
+ _this.submit(items);
+ }
+ };
+
+ _this.getFormItems = function () {
+ var items = [];
+ if (_this.props.children.length) {
+ _this.props.children.map(function (item) {
+ if (item.props.isFormItem) {
+ items.push({
+ 'name': item.props.children.props.name,
+ 'verify': true,
+ 'value': ''
+ });
+ }
+ });
+ } else {
+ var item = _this.props.children;
+ if (item.props.isFormItem) {
+ items.push({
+ 'name': item.props.children.props.name,
+ 'verify': true,
+ 'value': ''
+ });
+ }
+ }
+ _this.setState({
+ items: items
+ });
+ };
+
+ _this.checkNow = function (onClickFn) {
+ _this.setState({
+ checkNow: true
+ });
+ typeof onClickFn === 'function' ? onClickFn() : '';
+ };
+
+ _this.btnCheck = function (onClickFn) {
+ var self = _this;
+ return function () {
+ self.checkNow(onClickFn);
+ };
+ };
+
+ _this.submit = function (items) {
+ var flag = true;
+ items.forEach(function (item) {
+ if (!item.verify) {
+ flag = false;
+ }
+ });
+ _this.setState({
+ checkNow: false
+ });
+ _this.props.submitCallBack(flag, _this.state.items);
+ };
+
+ _this.state = {
+ items: [], //验证结果对象
+ checkNow: false //是否立刻验证,提交按钮
+ };
+ return _this;
+ }
+
+ Form.prototype.componentDidMount = function componentDidMount() {
+ this.getFormItems();
+ };
+
+ Form.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if (nextProps.checkFormNow) {
+ this.checkNow();
+ }
+ };
+
+ Form.prototype.render = function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ className = _props.className,
+ showSubmit = _props.showSubmit,
+ useRow = _props.useRow,
+ submitAreaClassName = _props.submitAreaClassName,
+ submitBtnClassName = _props.submitBtnClassName,
+ beforeSubmitBtn = _props.beforeSubmitBtn,
+ afterSubmitBtn = _props.afterSubmitBtn,
+ clsPrefix = _props.clsPrefix;
+
+ var childs = [];
+ _react2["default"].Children.map(this.props.children, function (child, index) {
+ var _child$props = child.props,
+ labelName = _child$props.labelName,
+ labelClassName = _child$props.labelClassName,
+ xs = _child$props.xs,
+ sm = _child$props.sm,
+ md = _child$props.md,
+ lg = _child$props.lg,
+ xsOffset = _child$props.xsOffset,
+ smOffset = _child$props.smOffset,
+ mdOffset = _child$props.mdOffset,
+ lgOffset = _child$props.lgOffset,
+ xsPush = _child$props.xsPush,
+ smPush = _child$props.smPush,
+ mdPush = _child$props.mdPush,
+ lgPush = _child$props.lgPush,
+ xsPull = _child$props.xsPull,
+ smPull = _child$props.smPull,
+ mdPull = _child$props.mdPull,
+ lgPull = _child$props.lgPull,
+ labelXs = _child$props.labelXs,
+ labelSm = _child$props.labelSm,
+ labelMd = _child$props.labelMd,
+ labelLg = _child$props.labelLg,
+ labelXsOffset = _child$props.labelXsOffset,
+ labelSmOffset = _child$props.labelSmOffset,
+ labelMdOffset = _child$props.labelMdOffset,
+ labelLgOffset = _child$props.labelLgOffset,
+ labelXsPush = _child$props.labelXsPush,
+ labelSmPush = _child$props.labelSmPush,
+ labelMdPush = _child$props.labelMdPush,
+ labelLgPush = _child$props.labelLgPush,
+ labelXsPull = _child$props.labelXsPull,
+ labelSmPull = _child$props.labelSmPull,
+ labelMdPull = _child$props.labelMdPull,
+ labelLgPull = _child$props.labelLgPull,
+ showMast = _child$props.showMast,
+ isSubmit = _child$props.isSubmit;
+
+ if (child.props.isFormItem) {
+ if (useRow) {
+ childs.push(_react2["default"].createElement(
+ 'span',
+ { className: child.props.className, key: index, style: child.props.style },
+ _react2["default"].createElement(
+ _beeLayout.Col,
+ { key: 'label' + index, xs: labelXs, sm: labelSm, md: labelMd, lg: labelLg, xsOffset: labelXsOffset, smOffset: labelSmOffset,
+ mdOffset: labelMdOffset, lgOffset: labelLgOffset, xsPush: labelXsPush, smPush: labelSmPush, mdPush: labelMdPush, lgPush: labelLgPush,
+ xsPull: labelXsPull, smPull: labelSmPull, mdPull: labelMdPull, lgPull: labelLgPull },
+ _react2["default"].createElement(
+ _beeLabel2["default"],
+ { className: labelClassName ? labelClassName : '' },
+ showMast ? _react2["default"].createElement(
+ 'span',
+ { className: 'u-mast' },
+ '*'
+ ) : '',
+ labelName
+ )
+ ),
+ _react2["default"].createElement(
+ _beeLayout.Col,
+ { key: 'fromGroup' + index, xs: xs, sm: sm, md: md, lg: lg, xsOffset: xsOffset, smOffset: smOffset, mdOffset: mdOffset,
+ lgOffset: lgOffset, xsPush: xsPush, smPush: smPush, mdPush: mdPush, lgPush: lgPush,
+ xsPull: xsPull, smPull: smPull, mdPull: mdPull, lgPull: lgPull },
+ _react2["default"].cloneElement(child, {
+ useRow: useRow,
+ checkItem: _this2.checkItem,
+ checkNow: _this2.state.checkNow,
+ className: child.props.className ? child.props.className + '-item' : '',
+ style: child.props.style
+ })
+ )
+ ));
+ } else {
+ childs.push(_react2["default"].createElement(
+ 'span',
+ { key: index, className: child.props.className },
+ _react2["default"].cloneElement(child, {
+ useRow: useRow,
+ checkItem: _this2.checkItem,
+ checkNow: _this2.state.checkNow,
+ className: child.props.className ? child.props.className + '-item' : '',
+ style: child.props.style
+ })
+ ));
+ }
+ } else if (child.props.isSubmit) {
+ childs.push(_react2["default"].createElement(
+ 'span',
+ { key: index },
+ _react2["default"].cloneElement(child, {
+ onClick: _this2.btnCheck(child.props.onClick)
+ })
+ ));
+ } else {
+ childs.push(_react2["default"].cloneElement(child));
+ }
+ });
+ return _react2["default"].createElement(
+ 'form',
+ { className: clsPrefix + ' ' + className, onSubmit: this.checkNow },
+ useRow ? _react2["default"].createElement(
+ _beeLayout.Row,
+ null,
+ childs
+ ) : childs,
+ showSubmit ? _react2["default"].createElement(
+ 'div',
+ { className: clsPrefix + '-submit ' + submitAreaClassName },
+ beforeSubmitBtn,
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ { onClick: this.checkNow, colors: 'primary', className: clsPrefix + '-submit-btn ' + submitBtnClassName },
+ '\u63D0\u4EA4'
+ ),
+ afterSubmitBtn
+ ) : ''
+ );
+ };
+
+ return Form;
+ }(_react.Component);
+
+ ;
+ Form.propTypes = propTypes;
+ Form.defaultProps = defaultProps;
+ exports["default"] = Form;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 158 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Label = __webpack_require__(159);
+
+ var _Label2 = _interopRequireDefault(_Label);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Label2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 159 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultProps = {
+ clsPrefix: 'u-label'
+ };
+
+ var Label = function (_Component) {
+ _inherits(Label, _Component);
+
+ function Label() {
+ _classCallCheck(this, Label);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Label.prototype.render = function render() {
+ var _props = this.props,
+ className = _props.className,
+ children = _props.children,
+ clsPrefix = _props.clsPrefix,
+ others = _objectWithoutProperties(_props, ['className', 'children', 'clsPrefix']);
+
+ var classNames = (0, _classnames2["default"])(clsPrefix, className);
+
+ return _react2["default"].createElement(
+ 'label',
+ _extends({}, others, {
+ className: classNames
+ }),
+ children
+ );
+ };
+
+ return Label;
+ }(_react.Component);
+
+ Label.defaultProps = defaultProps;
+
+ exports["default"] = Label;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 160 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _beeInputGroup = __webpack_require__(161);
+
+ var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
+
+ var _beeLabel = __webpack_require__(158);
+
+ var _beeLabel2 = _interopRequireDefault(_beeLabel);
+
+ var _lodash = __webpack_require__(166);
+
+ var _lodash2 = _interopRequireDefault(_lodash);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var regs = {
+ email: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
+ tel: /^1\d{10}$/,
+ IDCard: /^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/, //身份证
+ chinese: /^[\u4e00-\u9fa5]+?$/, //中文校验
+ password: /^[0-9a-zA-Z,.!?`~#$%^&*()-=_+<>'"\[\]\{\}\\\|]{6,15}$/, //6-15位数字英文符号
+ number: /^\d*$/
+ };
+ var propTypes = {
+ clsPrefix: _propTypes2["default"].string,
+ className: _propTypes2["default"].string,
+ isRequire: _propTypes2["default"].bool, //是否必填
+ errorMessage: _propTypes2["default"].oneOfType([_propTypes2["default"].node, _propTypes2["default"].array]), //错误信息
+ htmlType: _propTypes2["default"].oneOf(['email', 'tel', 'IDCard', 'chinese', 'password', null]), //htmlType有值的时候 reg不生效
+ reg: _propTypes2["default"].oneOfType([_propTypes2["default"].instanceOf(RegExp), _propTypes2["default"].array]), //校验正则,可传字符串或者数组,如果是数组,需要和errorMessage数组一一对应
+ method: _propTypes2["default"].oneOf(['change', 'blur', null]), //校验方式
+ blur: _propTypes2["default"].func, //失去焦点的回调,参数为value
+ change: _propTypes2["default"].func, //值改变的回调,参数为value当地售后地址
+ check: _propTypes2["default"].func, //验证的回调
+ checkItem: _propTypes2["default"].func,
+ useRow: _propTypes2["default"].bool,
+ inline: _propTypes2["default"].bool, //formItem是否行内
+ labelName: _propTypes2["default"].node, //label标签文字或dom
+ labelClassName: _propTypes2["default"].string, //label样式名
+ inputBefore: _propTypes2["default"].node, //input之前的
+ inputAfter: _propTypes2["default"].node, //input之后的
+ // inputBeforeSimple:PropTypes.node,//input之前的(参考输入框组的inputGroup.Button,和inputBefore不能同时使用)
+ // inputAfterSimple:PropTypes.node,//input之后的(参考输入框组的inputGroup.Button,和inputAfter不能同时使用)
+ mesClassName: _propTypes2["default"].string, //提示信息样式名
+ checkInitialValue: _propTypes2["default"].bool, //是否校验初始值,未开放 ...col.propTypes
+ showMast: _propTypes2["default"].bool, //是否显示必填项的 *
+ asyncCheck: _propTypes2["default"].func, //自定义校验,返回true则校验成功,false或无返回值则校验失败。参数为{name:xxx,value:xxx}
+
+ valuePropsName: _propTypes2["default"].string, //默认值的props属性key。默认为'defaultValue'
+ // valuePropsName: PropTypes.string,//当前值的props属性key。默认为'value'
+
+ xs: _propTypes2["default"].number, //xs显示列数
+ sm: _propTypes2["default"].number, //sm显示列数
+ md: _propTypes2["default"].number, //md显示列数
+ lg: _propTypes2["default"].number, //lg显示列数
+ xsOffset: _propTypes2["default"].number, //xs偏移列数
+ smOffset: _propTypes2["default"].number, //sm偏移列数
+ mdOffset: _propTypes2["default"].number, //md偏移列数
+ lgOffset: _propTypes2["default"].number, //lg偏移列数
+ xsPush: _propTypes2["default"].number, //xs右偏移列数
+ smPush: _propTypes2["default"].number, //sm右偏移列数
+ mdPush: _propTypes2["default"].number, //md右偏移列数
+ lgPush: _propTypes2["default"].number, //lg右偏移列数
+ xsPull: _propTypes2["default"].number, //xs左偏移列数
+ smPull: _propTypes2["default"].number, //sm左偏移列数`
+ mdPull: _propTypes2["default"].number, //md左偏移列数
+ lgPull: _propTypes2["default"].number, //lg左偏移列数
+ labelXs: _propTypes2["default"].number,
+ labelSm: _propTypes2["default"].number,
+ labelMd: _propTypes2["default"].number,
+ labelLg: _propTypes2["default"].number,
+ labelXsOffset: _propTypes2["default"].number,
+ labelSmOffset: _propTypes2["default"].number,
+ labelMdOffset: _propTypes2["default"].number,
+ labelLgOffset: _propTypes2["default"].number,
+ labelXsPush: _propTypes2["default"].number,
+ labelSmPush: _propTypes2["default"].number,
+ labelMdPush: _propTypes2["default"].number,
+ labelLgPush: _propTypes2["default"].number,
+ labelXsPull: _propTypes2["default"].number,
+ labelSmPull: _propTypes2["default"].number,
+ labelMdPull: _propTypes2["default"].number,
+ labelLgPull: _propTypes2["default"].number
+ };
+ var defaultProps = {
+ clsPrefix: 'u-form',
+ isRequire: false, //是否必填
+ errorMessage: '校验失败', //错误信息
+ reg: /[/w/W]*/,
+ method: 'change',
+ blur: function blur() {},
+ change: function change() {},
+ isFormItem: true,
+ check: function check() {},
+ checkItem: function checkItem() {},
+ inline: false,
+ labelName: '',
+ labelClassName: '',
+ inputBefore: '',
+ inputAfter: '',
+ // inputBeforeSimple:'',
+ // inputAfterSimple:'',
+ mesClassName: '',
+ checkInitialValue: false,
+ useRow: false,
+ showMast: false,
+ valuePropsName: 'defaultValue'
+ };
+
+ var FormItem = function (_Component) {
+ _inherits(FormItem, _Component);
+
+ function FormItem(props) {
+ _classCallCheck(this, FormItem);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.getNowValueName = function (item) {
+ return {
+ value: _this.state.valueNow,
+ name: item.props.name //item.localName 例如textarea原生元素
+ };
+ };
+
+ _this.getWidth = function (key) {
+ return _reactDom2["default"].findDOMNode(_this.refs[key]) ? _reactDom2["default"].findDOMNode(_this.refs[key]).clientWidth || _reactDom2["default"].findDOMNode(_this.refs[key]).offsetWidth : 0;
+ };
+
+ _this.setWidth = function () {
+ var outerWidth = _this.getWidth('outer');
+ var width = _this.getWidth('label');
+ var maxWidth = outerWidth ? outerWidth - width - 10 : '100%';
+ if (_this.props.inline) {
+ _this.setState({
+ width: width,
+ maxWidth: maxWidth
+ });
+ }
+ var before = _this.getWidth('before');
+ var after = _this.getWidth('after');
+ _this.setState({
+ childrenWidth: maxWidth - before - after - 2
+ });
+ };
+
+ _this.handleBlur = function () {
+ var _this$getNowValueName = _this.getNowValueName(_this.props.children),
+ value = _this$getNowValueName.value,
+ name = _this$getNowValueName.name;
+
+ if (_this.props.method === 'blur') {
+ var flag = _this.itemCheck(value, name);
+ _this.setState({
+ hasError: !flag
+ });
+ _this.props.checkItem({
+ "verify": flag,
+ "name": name,
+ "value": value
+ });
+ }
+ _this.props.blur(value);
+ _this.props.children.props.onBlur && _this.props.children.props.onBlur(value);
+ };
+
+ _this.handleChange = function (selectV) {
+ var value = selectV;
+ _this.setState({
+ valueNow: selectV
+ });
+ var name = _this.getNowValueName(_this.props.children).name;
+ if (_this.props.method === 'change') {
+ var flag = _this.itemCheck(value, name);
+ _this.setState({
+ hasError: !flag,
+ value: value
+ });
+ _this.props.checkItem({
+ "verify": flag,
+ "name": name,
+ "value": value
+ });
+ }
+ _this.props.change(value);
+ _this.props.children.props.onChange && _this.props.children.props.onChange(value);
+ };
+
+ _this.itemCheck = function (value, name) {
+ var _this$props = _this.props,
+ isRequire = _this$props.isRequire,
+ htmlType = _this$props.htmlType,
+ check = _this$props.check,
+ asyncCheck = _this$props.asyncCheck,
+ errorMessage = _this$props.errorMessage;
+
+ var reg = htmlType ? regs[htmlType] : _this.props.reg;
+ var obj = {
+ "name": name,
+ "value": value === undefined ? '' : value
+ };
+ if (typeof asyncCheck == 'function') {
+ var flag = !!asyncCheck(obj);
+ obj.verify = flag;
+ check(flag, obj);
+ return flag;
+ } else {
+ if (reg.length) {
+ var _flag = true;
+ for (var i = 0; i < reg.length; i++) {
+ if (!reg[i].test(value)) {
+ _this.setState({
+ errorMessage: errorMessage[i]
+ });
+ _flag = false;
+ break;
+ }
+ }
+ obj.verify = _flag;
+ if (isRequire) {
+ if (value != undefined && value !== '') {
+ check(_flag, obj);
+ return _flag;
+ } else {
+ check(false, obj);
+ return false;
+ }
+ } else {
+ if (value != undefined && value !== '') {
+ check(_flag, obj);
+ return _flag;
+ } else {
+ check(true, obj);
+ return true;
+ }
+ }
+ } else {
+ var _flag2 = reg.test(value);
+ obj.verify = _flag2;
+ if (isRequire) {
+ if (value != undefined && value !== '') {
+ check(_flag2, obj);
+ return _flag2;
+ } else {
+ check(false, obj);
+ return false;
+ }
+ } else {
+ if (value != undefined && value !== '') {
+ check(_flag2, obj);
+ return _flag2;
+ } else {
+ check(true, obj);
+ return true;
+ }
+ }
+ }
+ }
+ };
+
+ _this.checkSelf = function (v, checkFlag) {
+ var value = v == undefined ? _this.getNowValueName(_this.props.children).value : v;
+ var name = _this.getNowValueName(_this.props.children).name;
+ var flag = _this.itemCheck(value, name);
+ _this.props.checkItem({
+ "verify": flag,
+ "name": name,
+ "value": value
+ }, checkFlag ? false : true);
+ _this.setState({
+ hasError: !flag
+ });
+ };
+
+ _this.state = {
+ hasError: false,
+ width: 0,
+ valueNow: props.children.props[props.valuePropsName],
+ maxWidth: '100%',
+ errorMessage: typeof props.errorMessage == 'string' ? props.errorMessage : props.errorMessage[0],
+ childrenWidth: '100%'
+ };
+ return _this;
+ }
+
+ FormItem.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
+ if ((0, _lodash2["default"])(this.props, nextProps) && (0, _lodash2["default"])(this.state, nextState)) {
+ return false;
+ } else {
+ return true;
+ }
+ };
+
+ FormItem.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ var thisValue = this.props.children.props[this.props.valuePropsName];
+ var nextValue = nextProps.children.props[this.props.valuePropsName];
+ if (!(0, _lodash2["default"])(thisValue, nextValue)) {
+ this.checkSelf(nextValue, true);
+ this.setState({
+ valueNow: nextValue
+ });
+ }
+ if (nextProps.checkNow && !this.props.checkNow) {
+ this.checkSelf();
+ }
+ };
+
+ FormItem.prototype.componentDidMount = function componentDidMount() {
+ this.setWidth();
+ window.addEventListener('resize', this.setWidth);
+ };
+
+ FormItem.prototype.componentWillUnmount = function componentWillUnmount() {
+ window.removeEventListener('resize', this.setWidth);
+ };
+ /**
+ * 校验方法
+ * @param value
+ * @returns {boolean}
+ */
+
+ /**
+ * 触发校验
+ */
+
+
+ FormItem.prototype.render = function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ showMast = _props.showMast,
+ useRow = _props.useRow,
+ children = _props.children,
+ inline = _props.inline,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ inputBefore = _props.inputBefore,
+ inputAfter = _props.inputAfter,
+ mesClassName = _props.mesClassName,
+ labelName = _props.labelName,
+ labelClassName = _props.labelClassName;
+
+ var clsObj = {};
+ clsObj[clsPrefix + '-item'] = true;
+ className ? clsObj[className] = true : '';
+ var clsErrObj = {};
+ clsErrObj[clsPrefix + '-error'] = true;
+ if (inline) {
+ clsObj[clsPrefix + '-inline'] = true;
+ clsErrObj[clsPrefix + '-error-inline'] = true;
+ }
+ mesClassName ? clsErrObj[mesClassName] = true : '';
+ if (this.state.hasError) clsErrObj['show'] = true;
+ var childs = [];
+ var childrenStyles = this.props.children.props.style ? this.props.children.props.style : {};
+ var appendObj = {
+ onBlur: this.handleBlur,
+ onChange: this.handleChange
+ };
+ if (this.props.children.props.clsPrefix && this.props.children.props.clsPrefix.indexOf('u-form-control') != -1) {
+ appendObj.style = childrenStyles;
+ if (this.state.childrenWidth) {
+ appendObj.style.width = this.state.childrenWidth;
+ }
+ }
+ _react2["default"].Children.map(this.props.children, function (child, index) {
+ childs.push(_react2["default"].createElement(
+ 'div',
+ { ref: 'outer', key: index },
+ useRow ? '' : _react2["default"].createElement(
+ _beeLabel2["default"],
+ { ref: 'label', className: labelClassName ? labelClassName : '' },
+ showMast ? _react2["default"].createElement(
+ 'span',
+ { className: 'u-mast' },
+ '*'
+ ) : '',
+ labelName
+ ),
+ _react2["default"].createElement(
+ 'span',
+ { className: 'u-input-group-outer', style: { 'maxWidth': _this2.state.maxWidth } },
+ _react2["default"].createElement(
+ _beeInputGroup2["default"],
+ { key: index },
+ inputBefore ? _react2["default"].createElement(
+ 'span',
+ { className: 'u-input-before', ref: 'before' },
+ inputBefore
+ ) : '',
+ _react2["default"].createElement(
+ 'span',
+ { className: 'u-input-inner' },
+ _react2["default"].cloneElement(children, appendObj)
+ ),
+ inputAfter ? _react2["default"].createElement(
+ 'span',
+ { className: 'u-input-after', ref: 'after' },
+ inputAfter
+ ) : ''
+ )
+ )
+ ));
+ });
+ return _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(clsObj) },
+ childs,
+ _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(clsErrObj), style: { 'marginLeft': this.state.width } },
+ this.state.errorMessage
+ )
+ );
+ };
+
+ return FormItem;
+ }(_react.Component);
+
+ ;
+ FormItem.propTypes = propTypes;
+ FormItem.defaultProps = defaultProps;
+ exports["default"] = FormItem;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 161 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ module.exports = __webpack_require__(162);
+
+/***/ }),
+/* 162 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _beeInputGroupAddon = __webpack_require__(163);
+
+ var _beeInputGroupAddon2 = _interopRequireDefault(_beeInputGroupAddon);
+
+ var _InputGroupButton = __webpack_require__(165);
+
+ var _InputGroupButton2 = _interopRequireDefault(_InputGroupButton);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultProps = {
+ clsPrefix: 'u-input-group',
+ simple: false
+ };
+
+ var InputGroup = function (_React$Component) {
+ _inherits(InputGroup, _React$Component);
+
+ function InputGroup() {
+ _classCallCheck(this, InputGroup);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ InputGroup.prototype.render = function render() {
+ var _props = this.props,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ simple = _props.simple,
+ others = _objectWithoutProperties(_props, ['className', 'clsPrefix', 'simple']);
+
+ return _react2["default"].createElement('span', _extends({}, others, {
+ className: (0, _classnames2["default"])(className, clsPrefix, simple && 'simple')
+ }));
+ };
+
+ return InputGroup;
+ }(_react2["default"].Component);
+
+ /**
+ * 将InputGroupAddon与InputGroupButton组件作为InputGroup的附属组件
+ */
+
+
+ InputGroup.Addon = _beeInputGroupAddon2["default"];
+ InputGroup.Button = _InputGroupButton2["default"];
+ InputGroup.defaultProps = defaultProps;
+ exports["default"] = InputGroup;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 163 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _InputGroupAddon = __webpack_require__(164);
+
+ var _InputGroupAddon2 = _interopRequireDefault(_InputGroupAddon);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _InputGroupAddon2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 164 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultProps = {
+ clsPrefix: 'u-input-group-addon'
+ };
+
+ var InputGroupAddon = function (_React$Component) {
+ _inherits(InputGroupAddon, _React$Component);
+
+ function InputGroupAddon() {
+ _classCallCheck(this, InputGroupAddon);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ InputGroupAddon.prototype.render = function render() {
+ var _props = this.props;
+ var className = _props.className;
+ var clsPrefix = _props.clsPrefix;
+
+ var others = _objectWithoutProperties(_props, ['className', 'clsPrefix']);
+
+ return _react2["default"].createElement('span', _extends({}, others, {
+ className: (0, _classnames2["default"])(className, clsPrefix)
+ }));
+ };
+
+ return InputGroupAddon;
+ }(_react2["default"].Component);
+
+ InputGroupAddon.defaultProps = defaultProps;
+ exports["default"] = InputGroupAddon;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 165 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var defaultProps = {
+ clsPrefix: 'u-input-group-btn'
+ };
+
+ var InputGroupButton = function (_React$Component) {
+ _inherits(InputGroupButton, _React$Component);
+
+ function InputGroupButton() {
+ _classCallCheck(this, InputGroupButton);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ InputGroupButton.prototype.render = function render() {
+ var _props = this.props,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ others = _objectWithoutProperties(_props, ['className', 'clsPrefix']);
+
+ return _react2["default"].createElement('span', _extends({}, others, {
+ className: (0, _classnames2["default"])(className, clsPrefix)
+ }));
+ };
+
+ return InputGroupButton;
+ }(_react2["default"].Component);
+
+ InputGroupButton.defaultProps = defaultProps;
+ exports["default"] = InputGroupButton;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 166 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(global, module) {/**
+ * Lodash (Custom Build)
+ * Build: `lodash modularize exports="npm" -o ./`
+ * Copyright JS Foundation and other contributors
+ * Released under MIT license
+ * Based on Underscore.js 1.8.3
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
+
+ /** Used as the size to enable large array optimizations. */
+ var LARGE_ARRAY_SIZE = 200;
+
+ /** Used to stand-in for `undefined` hash values. */
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+ /** Used to compose bitmasks for value comparisons. */
+ var COMPARE_PARTIAL_FLAG = 1,
+ COMPARE_UNORDERED_FLAG = 2;
+
+ /** Used as references for various `Number` constants. */
+ var MAX_SAFE_INTEGER = 9007199254740991;
+
+ /** `Object#toString` result references. */
+ var argsTag = '[object Arguments]',
+ arrayTag = '[object Array]',
+ asyncTag = '[object AsyncFunction]',
+ boolTag = '[object Boolean]',
+ dateTag = '[object Date]',
+ errorTag = '[object Error]',
+ funcTag = '[object Function]',
+ genTag = '[object GeneratorFunction]',
+ mapTag = '[object Map]',
+ numberTag = '[object Number]',
+ nullTag = '[object Null]',
+ objectTag = '[object Object]',
+ promiseTag = '[object Promise]',
+ proxyTag = '[object Proxy]',
+ regexpTag = '[object RegExp]',
+ setTag = '[object Set]',
+ stringTag = '[object String]',
+ symbolTag = '[object Symbol]',
+ undefinedTag = '[object Undefined]',
+ weakMapTag = '[object WeakMap]';
+
+ var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
+ float32Tag = '[object Float32Array]',
+ float64Tag = '[object Float64Array]',
+ int8Tag = '[object Int8Array]',
+ int16Tag = '[object Int16Array]',
+ int32Tag = '[object Int32Array]',
+ uint8Tag = '[object Uint8Array]',
+ uint8ClampedTag = '[object Uint8ClampedArray]',
+ uint16Tag = '[object Uint16Array]',
+ uint32Tag = '[object Uint32Array]';
+
+ /**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ */
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
+
+ /** Used to detect host constructors (Safari). */
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
+
+ /** Used to detect unsigned integer values. */
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
+
+ /** Used to identify `toStringTag` values of typed arrays. */
+ var typedArrayTags = {};
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
+ typedArrayTags[uint32Tag] = true;
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
+ typedArrayTags[weakMapTag] = false;
+
+ /** Detect free variable `global` from Node.js. */
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
+
+ /** Detect free variable `self`. */
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
+
+ /** Used as a reference to the global object. */
+ var root = freeGlobal || freeSelf || Function('return this')();
+
+ /** Detect free variable `exports`. */
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
+
+ /** Detect free variable `module`. */
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
+
+ /** Detect the popular CommonJS extension `module.exports`. */
+ var moduleExports = freeModule && freeModule.exports === freeExports;
+
+ /** Detect free variable `process` from Node.js. */
+ var freeProcess = moduleExports && freeGlobal.process;
+
+ /** Used to access faster Node.js helpers. */
+ var nodeUtil = (function() {
+ try {
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
+ } catch (e) {}
+ }());
+
+ /* Node.js helper references. */
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
+
+ /**
+ * A specialized version of `_.filter` for arrays without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {Array} Returns the new filtered array.
+ */
+ function arrayFilter(array, predicate) {
+ var index = -1,
+ length = array == null ? 0 : array.length,
+ resIndex = 0,
+ result = [];
+
+ while (++index < length) {
+ var value = array[index];
+ if (predicate(value, index, array)) {
+ result[resIndex++] = value;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Appends the elements of `values` to `array`.
+ *
+ * @private
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to append.
+ * @returns {Array} Returns `array`.
+ */
+ function arrayPush(array, values) {
+ var index = -1,
+ length = values.length,
+ offset = array.length;
+
+ while (++index < length) {
+ array[offset + index] = values[index];
+ }
+ return array;
+ }
+
+ /**
+ * A specialized version of `_.some` for arrays without support for iteratee
+ * shorthands.
+ *
+ * @private
+ * @param {Array} [array] The array to iterate over.
+ * @param {Function} predicate The function invoked per iteration.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
+ */
+ function arraySome(array, predicate) {
+ var index = -1,
+ length = array == null ? 0 : array.length;
+
+ while (++index < length) {
+ if (predicate(array[index], index, array)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * The base implementation of `_.times` without support for iteratee shorthands
+ * or max array length checks.
+ *
+ * @private
+ * @param {number} n The number of times to invoke `iteratee`.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {Array} Returns the array of results.
+ */
+ function baseTimes(n, iteratee) {
+ var index = -1,
+ result = Array(n);
+
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
+ }
+
+ /**
+ * The base implementation of `_.unary` without support for storing metadata.
+ *
+ * @private
+ * @param {Function} func The function to cap arguments for.
+ * @returns {Function} Returns the new capped function.
+ */
+ function baseUnary(func) {
+ return function(value) {
+ return func(value);
+ };
+ }
+
+ /**
+ * Checks if a `cache` value for `key` exists.
+ *
+ * @private
+ * @param {Object} cache The cache to query.
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+ function cacheHas(cache, key) {
+ return cache.has(key);
+ }
+
+ /**
+ * Gets the value at `key` of `object`.
+ *
+ * @private
+ * @param {Object} [object] The object to query.
+ * @param {string} key The key of the property to get.
+ * @returns {*} Returns the property value.
+ */
+ function getValue(object, key) {
+ return object == null ? undefined : object[key];
+ }
+
+ /**
+ * Converts `map` to its key-value pairs.
+ *
+ * @private
+ * @param {Object} map The map to convert.
+ * @returns {Array} Returns the key-value pairs.
+ */
+ function mapToArray(map) {
+ var index = -1,
+ result = Array(map.size);
+
+ map.forEach(function(value, key) {
+ result[++index] = [key, value];
+ });
+ return result;
+ }
+
+ /**
+ * Creates a unary function that invokes `func` with its argument transformed.
+ *
+ * @private
+ * @param {Function} func The function to wrap.
+ * @param {Function} transform The argument transform.
+ * @returns {Function} Returns the new function.
+ */
+ function overArg(func, transform) {
+ return function(arg) {
+ return func(transform(arg));
+ };
+ }
+
+ /**
+ * Converts `set` to an array of its values.
+ *
+ * @private
+ * @param {Object} set The set to convert.
+ * @returns {Array} Returns the values.
+ */
+ function setToArray(set) {
+ var index = -1,
+ result = Array(set.size);
+
+ set.forEach(function(value) {
+ result[++index] = value;
+ });
+ return result;
+ }
+
+ /** Used for built-in method references. */
+ var arrayProto = Array.prototype,
+ funcProto = Function.prototype,
+ objectProto = Object.prototype;
+
+ /** Used to detect overreaching core-js shims. */
+ var coreJsData = root['__core-js_shared__'];
+
+ /** Used to resolve the decompiled source of functions. */
+ var funcToString = funcProto.toString;
+
+ /** Used to check objects for own properties. */
+ var hasOwnProperty = objectProto.hasOwnProperty;
+
+ /** Used to detect methods masquerading as native. */
+ var maskSrcKey = (function() {
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
+ return uid ? ('Symbol(src)_1.' + uid) : '';
+ }());
+
+ /**
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
+ * of values.
+ */
+ var nativeObjectToString = objectProto.toString;
+
+ /** Used to detect if a method is native. */
+ var reIsNative = RegExp('^' +
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
+ );
+
+ /** Built-in value references. */
+ var Buffer = moduleExports ? root.Buffer : undefined,
+ Symbol = root.Symbol,
+ Uint8Array = root.Uint8Array,
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
+ splice = arrayProto.splice,
+ symToStringTag = Symbol ? Symbol.toStringTag : undefined;
+
+ /* Built-in method references for those with the same name as other `lodash` methods. */
+ var nativeGetSymbols = Object.getOwnPropertySymbols,
+ nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
+ nativeKeys = overArg(Object.keys, Object);
+
+ /* Built-in method references that are verified to be native. */
+ var DataView = getNative(root, 'DataView'),
+ Map = getNative(root, 'Map'),
+ Promise = getNative(root, 'Promise'),
+ Set = getNative(root, 'Set'),
+ WeakMap = getNative(root, 'WeakMap'),
+ nativeCreate = getNative(Object, 'create');
+
+ /** Used to detect maps, sets, and weakmaps. */
+ var dataViewCtorString = toSource(DataView),
+ mapCtorString = toSource(Map),
+ promiseCtorString = toSource(Promise),
+ setCtorString = toSource(Set),
+ weakMapCtorString = toSource(WeakMap);
+
+ /** Used to convert symbols to primitives and strings. */
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
+
+ /**
+ * Creates a hash object.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+ function Hash(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
+
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+
+ /**
+ * Removes all key-value entries from the hash.
+ *
+ * @private
+ * @name clear
+ * @memberOf Hash
+ */
+ function hashClear() {
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
+ this.size = 0;
+ }
+
+ /**
+ * Removes `key` and its value from the hash.
+ *
+ * @private
+ * @name delete
+ * @memberOf Hash
+ * @param {Object} hash The hash to modify.
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+ function hashDelete(key) {
+ var result = this.has(key) && delete this.__data__[key];
+ this.size -= result ? 1 : 0;
+ return result;
+ }
+
+ /**
+ * Gets the hash value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Hash
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+ function hashGet(key) {
+ var data = this.__data__;
+ if (nativeCreate) {
+ var result = data[key];
+ return result === HASH_UNDEFINED ? undefined : result;
+ }
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
+ }
+
+ /**
+ * Checks if a hash value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf Hash
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+ function hashHas(key) {
+ var data = this.__data__;
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
+ }
+
+ /**
+ * Sets the hash `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf Hash
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the hash instance.
+ */
+ function hashSet(key, value) {
+ var data = this.__data__;
+ this.size += this.has(key) ? 0 : 1;
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
+ return this;
+ }
+
+ // Add methods to `Hash`.
+ Hash.prototype.clear = hashClear;
+ Hash.prototype['delete'] = hashDelete;
+ Hash.prototype.get = hashGet;
+ Hash.prototype.has = hashHas;
+ Hash.prototype.set = hashSet;
+
+ /**
+ * Creates an list cache object.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+ function ListCache(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
+
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+
+ /**
+ * Removes all key-value entries from the list cache.
+ *
+ * @private
+ * @name clear
+ * @memberOf ListCache
+ */
+ function listCacheClear() {
+ this.__data__ = [];
+ this.size = 0;
+ }
+
+ /**
+ * Removes `key` and its value from the list cache.
+ *
+ * @private
+ * @name delete
+ * @memberOf ListCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+ function listCacheDelete(key) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ if (index < 0) {
+ return false;
+ }
+ var lastIndex = data.length - 1;
+ if (index == lastIndex) {
+ data.pop();
+ } else {
+ splice.call(data, index, 1);
+ }
+ --this.size;
+ return true;
+ }
+
+ /**
+ * Gets the list cache value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf ListCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+ function listCacheGet(key) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ return index < 0 ? undefined : data[index][1];
+ }
+
+ /**
+ * Checks if a list cache value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf ListCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+ function listCacheHas(key) {
+ return assocIndexOf(this.__data__, key) > -1;
+ }
+
+ /**
+ * Sets the list cache `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf ListCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the list cache instance.
+ */
+ function listCacheSet(key, value) {
+ var data = this.__data__,
+ index = assocIndexOf(data, key);
+
+ if (index < 0) {
+ ++this.size;
+ data.push([key, value]);
+ } else {
+ data[index][1] = value;
+ }
+ return this;
+ }
+
+ // Add methods to `ListCache`.
+ ListCache.prototype.clear = listCacheClear;
+ ListCache.prototype['delete'] = listCacheDelete;
+ ListCache.prototype.get = listCacheGet;
+ ListCache.prototype.has = listCacheHas;
+ ListCache.prototype.set = listCacheSet;
+
+ /**
+ * Creates a map cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+ function MapCache(entries) {
+ var index = -1,
+ length = entries == null ? 0 : entries.length;
+
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+
+ /**
+ * Removes all key-value entries from the map.
+ *
+ * @private
+ * @name clear
+ * @memberOf MapCache
+ */
+ function mapCacheClear() {
+ this.size = 0;
+ this.__data__ = {
+ 'hash': new Hash,
+ 'map': new (Map || ListCache),
+ 'string': new Hash
+ };
+ }
+
+ /**
+ * Removes `key` and its value from the map.
+ *
+ * @private
+ * @name delete
+ * @memberOf MapCache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+ function mapCacheDelete(key) {
+ var result = getMapData(this, key)['delete'](key);
+ this.size -= result ? 1 : 0;
+ return result;
+ }
+
+ /**
+ * Gets the map value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf MapCache
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+ function mapCacheGet(key) {
+ return getMapData(this, key).get(key);
+ }
+
+ /**
+ * Checks if a map value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf MapCache
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+ function mapCacheHas(key) {
+ return getMapData(this, key).has(key);
+ }
+
+ /**
+ * Sets the map `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf MapCache
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the map cache instance.
+ */
+ function mapCacheSet(key, value) {
+ var data = getMapData(this, key),
+ size = data.size;
+
+ data.set(key, value);
+ this.size += data.size == size ? 0 : 1;
+ return this;
+ }
+
+ // Add methods to `MapCache`.
+ MapCache.prototype.clear = mapCacheClear;
+ MapCache.prototype['delete'] = mapCacheDelete;
+ MapCache.prototype.get = mapCacheGet;
+ MapCache.prototype.has = mapCacheHas;
+ MapCache.prototype.set = mapCacheSet;
+
+ /**
+ *
+ * Creates an array cache object to store unique values.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [values] The values to cache.
+ */
+ function SetCache(values) {
+ var index = -1,
+ length = values == null ? 0 : values.length;
+
+ this.__data__ = new MapCache;
+ while (++index < length) {
+ this.add(values[index]);
+ }
+ }
+
+ /**
+ * Adds `value` to the array cache.
+ *
+ * @private
+ * @name add
+ * @memberOf SetCache
+ * @alias push
+ * @param {*} value The value to cache.
+ * @returns {Object} Returns the cache instance.
+ */
+ function setCacheAdd(value) {
+ this.__data__.set(value, HASH_UNDEFINED);
+ return this;
+ }
+
+ /**
+ * Checks if `value` is in the array cache.
+ *
+ * @private
+ * @name has
+ * @memberOf SetCache
+ * @param {*} value The value to search for.
+ * @returns {number} Returns `true` if `value` is found, else `false`.
+ */
+ function setCacheHas(value) {
+ return this.__data__.has(value);
+ }
+
+ // Add methods to `SetCache`.
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
+ SetCache.prototype.has = setCacheHas;
+
+ /**
+ * Creates a stack cache object to store key-value pairs.
+ *
+ * @private
+ * @constructor
+ * @param {Array} [entries] The key-value pairs to cache.
+ */
+ function Stack(entries) {
+ var data = this.__data__ = new ListCache(entries);
+ this.size = data.size;
+ }
+
+ /**
+ * Removes all key-value entries from the stack.
+ *
+ * @private
+ * @name clear
+ * @memberOf Stack
+ */
+ function stackClear() {
+ this.__data__ = new ListCache;
+ this.size = 0;
+ }
+
+ /**
+ * Removes `key` and its value from the stack.
+ *
+ * @private
+ * @name delete
+ * @memberOf Stack
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
+ */
+ function stackDelete(key) {
+ var data = this.__data__,
+ result = data['delete'](key);
+
+ this.size = data.size;
+ return result;
+ }
+
+ /**
+ * Gets the stack value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Stack
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+ function stackGet(key) {
+ return this.__data__.get(key);
+ }
+
+ /**
+ * Checks if a stack value for `key` exists.
+ *
+ * @private
+ * @name has
+ * @memberOf Stack
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+ function stackHas(key) {
+ return this.__data__.has(key);
+ }
+
+ /**
+ * Sets the stack `key` to `value`.
+ *
+ * @private
+ * @name set
+ * @memberOf Stack
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns the stack cache instance.
+ */
+ function stackSet(key, value) {
+ var data = this.__data__;
+ if (data instanceof ListCache) {
+ var pairs = data.__data__;
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
+ pairs.push([key, value]);
+ this.size = ++data.size;
+ return this;
+ }
+ data = this.__data__ = new MapCache(pairs);
+ }
+ data.set(key, value);
+ this.size = data.size;
+ return this;
+ }
+
+ // Add methods to `Stack`.
+ Stack.prototype.clear = stackClear;
+ Stack.prototype['delete'] = stackDelete;
+ Stack.prototype.get = stackGet;
+ Stack.prototype.has = stackHas;
+ Stack.prototype.set = stackSet;
+
+ /**
+ * Creates an array of the enumerable property names of the array-like `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @param {boolean} inherited Specify returning inherited property names.
+ * @returns {Array} Returns the array of property names.
+ */
+ function arrayLikeKeys(value, inherited) {
+ var isArr = isArray(value),
+ isArg = !isArr && isArguments(value),
+ isBuff = !isArr && !isArg && isBuffer(value),
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
+ skipIndexes = isArr || isArg || isBuff || isType,
+ result = skipIndexes ? baseTimes(value.length, String) : [],
+ length = result.length;
+
+ for (var key in value) {
+ if ((inherited || hasOwnProperty.call(value, key)) &&
+ !(skipIndexes && (
+ // Safari 9 has enumerable `arguments.length` in strict mode.
+ key == 'length' ||
+ // Node.js 0.10 has enumerable non-index properties on buffers.
+ (isBuff && (key == 'offset' || key == 'parent')) ||
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
+ // Skip index properties.
+ isIndex(key, length)
+ ))) {
+ result.push(key);
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} key The key to search for.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+ function assocIndexOf(array, key) {
+ var length = array.length;
+ while (length--) {
+ if (eq(array[length][0], key)) {
+ return length;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
+ var result = keysFunc(object);
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
+ }
+
+ /**
+ * The base implementation of `getTag` without fallbacks for buggy environments.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
+ */
+ function baseGetTag(value) {
+ if (value == null) {
+ return value === undefined ? undefinedTag : nullTag;
+ }
+ return (symToStringTag && symToStringTag in Object(value))
+ ? getRawTag(value)
+ : objectToString(value);
+ }
+
+ /**
+ * The base implementation of `_.isArguments`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ */
+ function baseIsArguments(value) {
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
+ }
+
+ /**
+ * The base implementation of `_.isEqual` which supports partial comparisons
+ * and tracks traversed objects.
+ *
+ * @private
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @param {boolean} bitmask The bitmask flags.
+ * 1 - Unordered comparison
+ * 2 - Partial comparison
+ * @param {Function} [customizer] The function to customize comparisons.
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ */
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
+ if (value === other) {
+ return true;
+ }
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
+ return value !== value && other !== other;
+ }
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
+ }
+
+ /**
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
+ * deep comparisons and tracks traversed objects enabling objects with circular
+ * references to be compared.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
+ var objIsArr = isArray(object),
+ othIsArr = isArray(other),
+ objTag = objIsArr ? arrayTag : getTag(object),
+ othTag = othIsArr ? arrayTag : getTag(other);
+
+ objTag = objTag == argsTag ? objectTag : objTag;
+ othTag = othTag == argsTag ? objectTag : othTag;
+
+ var objIsObj = objTag == objectTag,
+ othIsObj = othTag == objectTag,
+ isSameTag = objTag == othTag;
+
+ if (isSameTag && isBuffer(object)) {
+ if (!isBuffer(other)) {
+ return false;
+ }
+ objIsArr = true;
+ objIsObj = false;
+ }
+ if (isSameTag && !objIsObj) {
+ stack || (stack = new Stack);
+ return (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
+ }
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
+
+ if (objIsWrapped || othIsWrapped) {
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ stack || (stack = new Stack);
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
+ }
+ }
+ if (!isSameTag) {
+ return false;
+ }
+ stack || (stack = new Stack);
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
+ }
+
+ /**
+ * The base implementation of `_.isNative` without bad shim checks.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ * else `false`.
+ */
+ function baseIsNative(value) {
+ if (!isObject(value) || isMasked(value)) {
+ return false;
+ }
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
+ return pattern.test(toSource(value));
+ }
+
+ /**
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ */
+ function baseIsTypedArray(value) {
+ return isObjectLike(value) &&
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+ }
+
+ /**
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ */
+ function baseKeys(object) {
+ if (!isPrototype(object)) {
+ return nativeKeys(object);
+ }
+ var result = [];
+ for (var key in Object(object)) {
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
+ result.push(key);
+ }
+ }
+ return result;
+ }
+
+ /**
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
+ * partial deep comparisons.
+ *
+ * @private
+ * @param {Array} array The array to compare.
+ * @param {Array} other The other array to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
+ */
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+ arrLength = array.length,
+ othLength = other.length;
+
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(array);
+ if (stacked && stack.get(other)) {
+ return stacked == other;
+ }
+ var index = -1,
+ result = true,
+ seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
+
+ stack.set(array, other);
+ stack.set(other, array);
+
+ // Ignore non-index properties.
+ while (++index < arrLength) {
+ var arrValue = array[index],
+ othValue = other[index];
+
+ if (customizer) {
+ var compared = isPartial
+ ? customizer(othValue, arrValue, index, other, array, stack)
+ : customizer(arrValue, othValue, index, array, other, stack);
+ }
+ if (compared !== undefined) {
+ if (compared) {
+ continue;
+ }
+ result = false;
+ break;
+ }
+ // Recursively compare arrays (susceptible to call stack limits).
+ if (seen) {
+ if (!arraySome(other, function(othValue, othIndex) {
+ if (!cacheHas(seen, othIndex) &&
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
+ return seen.push(othIndex);
+ }
+ })) {
+ result = false;
+ break;
+ }
+ } else if (!(
+ arrValue === othValue ||
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
+ )) {
+ result = false;
+ break;
+ }
+ }
+ stack['delete'](array);
+ stack['delete'](other);
+ return result;
+ }
+
+ /**
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
+ * the same `toStringTag`.
+ *
+ * **Note:** This function only supports comparing values with tags of
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {string} tag The `toStringTag` of the objects to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
+ switch (tag) {
+ case dataViewTag:
+ if ((object.byteLength != other.byteLength) ||
+ (object.byteOffset != other.byteOffset)) {
+ return false;
+ }
+ object = object.buffer;
+ other = other.buffer;
+
+ case arrayBufferTag:
+ if ((object.byteLength != other.byteLength) ||
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
+ return false;
+ }
+ return true;
+
+ case boolTag:
+ case dateTag:
+ case numberTag:
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
+ // Invalid dates are coerced to `NaN`.
+ return eq(+object, +other);
+
+ case errorTag:
+ return object.name == other.name && object.message == other.message;
+
+ case regexpTag:
+ case stringTag:
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
+ // for more details.
+ return object == (other + '');
+
+ case mapTag:
+ var convert = mapToArray;
+
+ case setTag:
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
+ convert || (convert = setToArray);
+
+ if (object.size != other.size && !isPartial) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ bitmask |= COMPARE_UNORDERED_FLAG;
+
+ // Recursively compare objects (susceptible to call stack limits).
+ stack.set(object, other);
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
+ stack['delete'](object);
+ return result;
+
+ case symbolTag:
+ if (symbolValueOf) {
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
+ }
+ }
+ return false;
+ }
+
+ /**
+ * A specialized version of `baseIsEqualDeep` for objects with support for
+ * partial deep comparisons.
+ *
+ * @private
+ * @param {Object} object The object to compare.
+ * @param {Object} other The other object to compare.
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {Function} equalFunc The function to determine equivalents of values.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
+ */
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
+ objProps = getAllKeys(object),
+ objLength = objProps.length,
+ othProps = getAllKeys(other),
+ othLength = othProps.length;
+
+ if (objLength != othLength && !isPartial) {
+ return false;
+ }
+ var index = objLength;
+ while (index--) {
+ var key = objProps[index];
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
+ return false;
+ }
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked && stack.get(other)) {
+ return stacked == other;
+ }
+ var result = true;
+ stack.set(object, other);
+ stack.set(other, object);
+
+ var skipCtor = isPartial;
+ while (++index < objLength) {
+ key = objProps[index];
+ var objValue = object[key],
+ othValue = other[key];
+
+ if (customizer) {
+ var compared = isPartial
+ ? customizer(othValue, objValue, key, other, object, stack)
+ : customizer(objValue, othValue, key, object, other, stack);
+ }
+ // Recursively compare objects (susceptible to call stack limits).
+ if (!(compared === undefined
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
+ : compared
+ )) {
+ result = false;
+ break;
+ }
+ skipCtor || (skipCtor = key == 'constructor');
+ }
+ if (result && !skipCtor) {
+ var objCtor = object.constructor,
+ othCtor = other.constructor;
+
+ // Non `Object` object instances with different constructors are not equal.
+ if (objCtor != othCtor &&
+ ('constructor' in object && 'constructor' in other) &&
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
+ result = false;
+ }
+ }
+ stack['delete'](object);
+ stack['delete'](other);
+ return result;
+ }
+
+ /**
+ * Creates an array of own enumerable property names and symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+ function getAllKeys(object) {
+ return baseGetAllKeys(object, keys, getSymbols);
+ }
+
+ /**
+ * Gets the data for `map`.
+ *
+ * @private
+ * @param {Object} map The map to query.
+ * @param {string} key The reference key.
+ * @returns {*} Returns the map data.
+ */
+ function getMapData(map, key) {
+ var data = map.__data__;
+ return isKeyable(key)
+ ? data[typeof key == 'string' ? 'string' : 'hash']
+ : data.map;
+ }
+
+ /**
+ * Gets the native function at `key` of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {string} key The key of the method to get.
+ * @returns {*} Returns the function if it's native, else `undefined`.
+ */
+ function getNative(object, key) {
+ var value = getValue(object, key);
+ return baseIsNative(value) ? value : undefined;
+ }
+
+ /**
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the raw `toStringTag`.
+ */
+ function getRawTag(value) {
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
+ tag = value[symToStringTag];
+
+ try {
+ value[symToStringTag] = undefined;
+ var unmasked = true;
+ } catch (e) {}
+
+ var result = nativeObjectToString.call(value);
+ if (unmasked) {
+ if (isOwn) {
+ value[symToStringTag] = tag;
+ } else {
+ delete value[symToStringTag];
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Creates an array of the own enumerable symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
+ if (object == null) {
+ return [];
+ }
+ object = Object(object);
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
+ return propertyIsEnumerable.call(object, symbol);
+ });
+ };
+
+ /**
+ * Gets the `toStringTag` of `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the `toStringTag`.
+ */
+ var getTag = baseGetTag;
+
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+ (Map && getTag(new Map) != mapTag) ||
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
+ (Set && getTag(new Set) != setTag) ||
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
+ getTag = function(value) {
+ var result = baseGetTag(value),
+ Ctor = result == objectTag ? value.constructor : undefined,
+ ctorString = Ctor ? toSource(Ctor) : '';
+
+ if (ctorString) {
+ switch (ctorString) {
+ case dataViewCtorString: return dataViewTag;
+ case mapCtorString: return mapTag;
+ case promiseCtorString: return promiseTag;
+ case setCtorString: return setTag;
+ case weakMapCtorString: return weakMapTag;
+ }
+ }
+ return result;
+ };
+ }
+
+ /**
+ * Checks if `value` is a valid array-like index.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
+ */
+ function isIndex(value, length) {
+ length = length == null ? MAX_SAFE_INTEGER : length;
+ return !!length &&
+ (typeof value == 'number' || reIsUint.test(value)) &&
+ (value > -1 && value % 1 == 0 && value < length);
+ }
+
+ /**
+ * Checks if `value` is suitable for use as unique object key.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
+ */
+ function isKeyable(value) {
+ var type = typeof value;
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
+ ? (value !== '__proto__')
+ : (value === null);
+ }
+
+ /**
+ * Checks if `func` has its source masked.
+ *
+ * @private
+ * @param {Function} func The function to check.
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
+ */
+ function isMasked(func) {
+ return !!maskSrcKey && (maskSrcKey in func);
+ }
+
+ /**
+ * Checks if `value` is likely a prototype object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+ */
+ function isPrototype(value) {
+ var Ctor = value && value.constructor,
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
+
+ return value === proto;
+ }
+
+ /**
+ * Converts `value` to a string using `Object.prototype.toString`.
+ *
+ * @private
+ * @param {*} value The value to convert.
+ * @returns {string} Returns the converted string.
+ */
+ function objectToString(value) {
+ return nativeObjectToString.call(value);
+ }
+
+ /**
+ * Converts `func` to its source code.
+ *
+ * @private
+ * @param {Function} func The function to convert.
+ * @returns {string} Returns the source code.
+ */
+ function toSource(func) {
+ if (func != null) {
+ try {
+ return funcToString.call(func);
+ } catch (e) {}
+ try {
+ return (func + '');
+ } catch (e) {}
+ }
+ return '';
+ }
+
+ /**
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
+ * comparison between two values to determine if they are equivalent.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'a': 1 };
+ * var other = { 'a': 1 };
+ *
+ * _.eq(object, object);
+ * // => true
+ *
+ * _.eq(object, other);
+ * // => false
+ *
+ * _.eq('a', 'a');
+ * // => true
+ *
+ * _.eq('a', Object('a'));
+ * // => false
+ *
+ * _.eq(NaN, NaN);
+ * // => true
+ */
+ function eq(value, other) {
+ return value === other || (value !== value && other !== other);
+ }
+
+ /**
+ * Checks if `value` is likely an `arguments` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
+ * else `false`.
+ * @example
+ *
+ * _.isArguments(function() { return arguments; }());
+ * // => true
+ *
+ * _.isArguments([1, 2, 3]);
+ * // => false
+ */
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
+ !propertyIsEnumerable.call(value, 'callee');
+ };
+
+ /**
+ * Checks if `value` is classified as an `Array` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
+ * @example
+ *
+ * _.isArray([1, 2, 3]);
+ * // => true
+ *
+ * _.isArray(document.body.children);
+ * // => false
+ *
+ * _.isArray('abc');
+ * // => false
+ *
+ * _.isArray(_.noop);
+ * // => false
+ */
+ var isArray = Array.isArray;
+
+ /**
+ * Checks if `value` is array-like. A value is considered array-like if it's
+ * not a function and has a `value.length` that's an integer greater than or
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ * @example
+ *
+ * _.isArrayLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isArrayLike(document.body.children);
+ * // => true
+ *
+ * _.isArrayLike('abc');
+ * // => true
+ *
+ * _.isArrayLike(_.noop);
+ * // => false
+ */
+ function isArrayLike(value) {
+ return value != null && isLength(value.length) && !isFunction(value);
+ }
+
+ /**
+ * Checks if `value` is a buffer.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.3.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
+ * @example
+ *
+ * _.isBuffer(new Buffer(2));
+ * // => true
+ *
+ * _.isBuffer(new Uint8Array(2));
+ * // => false
+ */
+ var isBuffer = nativeIsBuffer || stubFalse;
+
+ /**
+ * Performs a deep comparison between two values to determine if they are
+ * equivalent.
+ *
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
+ * by their own, not inherited, enumerable properties. Functions and DOM
+ * nodes are compared by strict equality, i.e. `===`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to compare.
+ * @param {*} other The other value to compare.
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @example
+ *
+ * var object = { 'a': 1 };
+ * var other = { 'a': 1 };
+ *
+ * _.isEqual(object, other);
+ * // => true
+ *
+ * object === other;
+ * // => false
+ */
+ function isEqual(value, other) {
+ return baseIsEqual(value, other);
+ }
+
+ /**
+ * Checks if `value` is classified as a `Function` object.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
+ * @example
+ *
+ * _.isFunction(_);
+ * // => true
+ *
+ * _.isFunction(/abc/);
+ * // => false
+ */
+ function isFunction(value) {
+ if (!isObject(value)) {
+ return false;
+ }
+ // The use of `Object#toString` avoids issues with the `typeof` operator
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
+ var tag = baseGetTag(value);
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
+ }
+
+ /**
+ * Checks if `value` is a valid array-like length.
+ *
+ * **Note:** This method is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @example
+ *
+ * _.isLength(3);
+ * // => true
+ *
+ * _.isLength(Number.MIN_VALUE);
+ * // => false
+ *
+ * _.isLength(Infinity);
+ * // => false
+ *
+ * _.isLength('3');
+ * // => false
+ */
+ function isLength(value) {
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ }
+
+ /**
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+ * @example
+ *
+ * _.isObject({});
+ * // => true
+ *
+ * _.isObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isObject(_.noop);
+ * // => true
+ *
+ * _.isObject(null);
+ * // => false
+ */
+ function isObject(value) {
+ var type = typeof value;
+ return value != null && (type == 'object' || type == 'function');
+ }
+
+ /**
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
+ * and has a `typeof` result of "object".
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
+ * @example
+ *
+ * _.isObjectLike({});
+ * // => true
+ *
+ * _.isObjectLike([1, 2, 3]);
+ * // => true
+ *
+ * _.isObjectLike(_.noop);
+ * // => false
+ *
+ * _.isObjectLike(null);
+ * // => false
+ */
+ function isObjectLike(value) {
+ return value != null && typeof value == 'object';
+ }
+
+ /**
+ * Checks if `value` is classified as a typed array.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.0.0
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
+ * @example
+ *
+ * _.isTypedArray(new Uint8Array);
+ * // => true
+ *
+ * _.isTypedArray([]);
+ * // => false
+ */
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
+
+ /**
+ * Creates an array of the own enumerable property names of `object`.
+ *
+ * **Note:** Non-object values are coerced to objects. See the
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
+ * for more details.
+ *
+ * @static
+ * @since 0.1.0
+ * @memberOf _
+ * @category Object
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names.
+ * @example
+ *
+ * function Foo() {
+ * this.a = 1;
+ * this.b = 2;
+ * }
+ *
+ * Foo.prototype.c = 3;
+ *
+ * _.keys(new Foo);
+ * // => ['a', 'b'] (iteration order is not guaranteed)
+ *
+ * _.keys('hi');
+ * // => ['0', '1']
+ */
+ function keys(object) {
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
+ }
+
+ /**
+ * This method returns a new empty array.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {Array} Returns the new empty array.
+ * @example
+ *
+ * var arrays = _.times(2, _.stubArray);
+ *
+ * console.log(arrays);
+ * // => [[], []]
+ *
+ * console.log(arrays[0] === arrays[1]);
+ * // => false
+ */
+ function stubArray() {
+ return [];
+ }
+
+ /**
+ * This method returns `false`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.13.0
+ * @category Util
+ * @returns {boolean} Returns `false`.
+ * @example
+ *
+ * _.times(2, _.stubFalse);
+ * // => [false, false]
+ */
+ function stubFalse() {
+ return false;
+ }
+
+ module.exports = isEqual;
+
+ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(167)(module)))
+
+/***/ }),
+/* 167 */
+/***/ (function(module, exports) {
+
+ module.exports = function(module) {
+ if(!module.webpackPolyfill) {
+ module.deprecate = function() {};
+ module.paths = [];
+ // module.parent = undefined by default
+ module.children = [];
+ module.webpackPolyfill = 1;
+ }
+ return module;
+ }
+
+
+/***/ }),
+/* 168 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeDatepicker = __webpack_require__(169);
+
+ var _beeDatepicker2 = _interopRequireDefault(_beeDatepicker);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var MonthPicker = _beeDatepicker2["default"].MonthPicker,
+ RangePicker = _beeDatepicker2["default"].RangePicker,
+ WeekPicker = _beeDatepicker2["default"].WeekPicker;
+
+ var DateRender = function (_Component) {
+ _inherits(DateRender, _Component);
+
+ function DateRender() {
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, DateRender);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
+ value: _this.props.value,
+ editable: false
+ }, _this.handleChange = function (e) {
+ var _ref = _this.props || "YYYY-MM-DD",
+ format = _ref.format;
+
+ var value = e ? e.format(format) : "";
+ _this.setState({ value: value, editable: false });
+ if (_this.props.onChange) {
+ _this.props.onChange(value);
+ }
+ }, _this.check = function () {
+ _this.setState({ editable: false });
+ if (_this.props.onChange) {
+ _this.props.onChange(_this.state.value);
+ }
+ }, _this.edit = function () {
+ _this.setState({ editable: true });
+ }, _this.handleKeydown = function (event) {
+ if (event.keyCode == 13) {
+ _this.check();
+ }
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ DateRender.prototype.render = function render() {
+ var _state = this.state,
+ value = _state.value,
+ editable = _state.editable;
+ var _props = this.props,
+ isclickTrigger = _props.isclickTrigger,
+ type = _props.type;
+
+ var cellContent = "";
+ var TComponent = void 0;
+ switch (type.toLowerCase()) {
+ case "monthpicker":
+ TComponent = MonthPicker;
+ break;
+ // case "rangepicker":
+ // TComponent = RangePicker;
+ // break;
+ case "weekpicker":
+ TComponent = WeekPicker;
+ break;
+ default:
+ TComponent = _beeDatepicker2["default"];
+ break;
+ }
+ TComponent;
+ var date_value = value ? (0, _moment2["default"])(value) : value;
+ if (editable) {
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(TComponent, _extends({}, this.props, {
+ value: date_value,
+ onChange: this.handleChange
+ })),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(TComponent, _extends({}, this.props, {
+ value: date_value,
+ onChange: this.handleChange
+ })),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ );
+ } else {
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper", onClick: this.edit },
+ value || " "
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper" },
+ value || " ",
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-pencil",
+ className: "editable-cell-icon",
+ onClick: this.edit
+ })
+ );
+ }
+ return _react2["default"].createElement(
+ "div",
+ { className: "editable-cell" },
+ cellContent
+ );
+ };
+
+ return DateRender;
+ }(_react.Component);
+
+ exports["default"] = DateRender;
+
+ DateRender.defaultProps = {
+ type: "DatePicker"
+ };
+ module.exports = exports["default"];
+
+/***/ }),
+/* 169 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _DatePicker = __webpack_require__(170);
+
+ var _DatePicker2 = _interopRequireDefault(_DatePicker);
+
+ var _MonthPicker = __webpack_require__(412);
+
+ var _MonthPicker2 = _interopRequireDefault(_MonthPicker);
+
+ var _RangePicker = __webpack_require__(414);
+
+ var _RangePicker2 = _interopRequireDefault(_RangePicker);
+
+ var _WeekPicker = __webpack_require__(435);
+
+ var _WeekPicker2 = _interopRequireDefault(_WeekPicker);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ _DatePicker2["default"].MonthPicker = _MonthPicker2["default"];
+ _DatePicker2["default"].RangePicker = _RangePicker2["default"];
+ _DatePicker2["default"].WeekPicker = _WeekPicker2["default"];
+
+ exports["default"] = _DatePicker2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 170 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _rcCalendar = __webpack_require__(171);
+
+ var _rcCalendar2 = _interopRequireDefault(_rcCalendar);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _Picker = __webpack_require__(387);
+
+ var _Picker2 = _interopRequireDefault(_Picker);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _Panel = __webpack_require__(408);
+
+ var _Panel2 = _interopRequireDefault(_Panel);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeInputGroup = __webpack_require__(161);
+
+ var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ * Created by chief on 17/4/6.
+ */
+
+ var timePickerElement = _react2["default"].createElement(_Panel2["default"], { defaultValue: (0, _moment2["default"])("00:00:00", "HH:mm:ss") });
+
+ var DatePicker = function (_Component) {
+ _inherits(DatePicker, _Component);
+
+ function DatePicker(props, context) {
+ _classCallCheck(this, DatePicker);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _initialiseProps.call(_this);
+
+ _this.state = {
+ type: "month",
+ value: props.value || props.defaultValue || _moment2["default"].Moment,
+ open: false
+
+ };
+ return _this;
+ }
+
+ DatePicker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ if ("value" in nextProps) {
+ this.setState({
+ value: nextProps.value
+ });
+ }
+ };
+
+ DatePicker.prototype.render = function render() {
+ var _this2 = this;
+
+ var state = this.state;
+ var props = this.props;
+ var value = state.value;
+
+ var pickerChangeHandler = {};
+ var calendarHandler = {};
+
+ if (props.showTime) {
+ calendarHandler = {
+ // fix https://github.com/ant-design/ant-design/issues/1902
+ onSelect: this.handleChange
+ };
+ } else {
+ pickerChangeHandler = {
+ onChange: this.handleChange
+ };
+ }
+
+ var calendar = _react2["default"].createElement(_rcCalendar2["default"], _extends({
+ timePicker: props.showTime ? timePickerElement : null
+ }, props, {
+ onChange: this.handleCalendarChange,
+ value: this.state.value
+ }));
+
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _Picker2["default"],
+ _extends({}, props, pickerChangeHandler, {
+ onOpenChange: this.onOpenChange,
+ animation: "slide-up",
+ calendar: calendar,
+ open: this.state.open,
+ value: state.value
+ }),
+ function () {
+ return _react2["default"].createElement(
+ _beeInputGroup2["default"],
+ { simple: true, className: "datepicker-input-group" },
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ disabled: props.disabled,
+ readOnly: true,
+ placeholder: _this2.props.placeholder,
+ className: _this2.props.className,
+ value: value && value.format(props.format) || ""
+ }),
+ _react2["default"].createElement(
+ _beeInputGroup2["default"].Button,
+ { shape: "border" },
+ props.renderIcon()
+ )
+ );
+ }
+ )
+ );
+ };
+
+ return DatePicker;
+ }(_react.Component);
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this3 = this;
+
+ this.onChange = function (value) {
+ var props = _this3.props;
+
+ _this3.setState({ value: value });
+ };
+
+ this.onOpenChange = function (open) {
+ _this3.setState({
+ open: open
+ });
+ };
+
+ this.handleCalendarChange = function (value) {
+ _this3.setState({ value: value });
+ };
+
+ this.handleChange = function (value) {
+ var props = _this3.props;
+ if (!("value" in props)) {
+ _this3.setState({ value: value });
+ }
+ props.onChange(value, value && value.format(props.format) || '');
+ };
+ };
+
+ DatePicker.defaultProps = {
+ renderIcon: function renderIcon() {
+ return _react2["default"].createElement(_beeIcon2["default"], { type: "uf-calendar" });
+ }
+ };
+
+ exports["default"] = DatePicker;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 171 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Calendar = __webpack_require__(172);
+
+ var _Calendar2 = _interopRequireDefault(_Calendar);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ exports['default'] = _Calendar2['default'];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 172 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _KeyCode = __webpack_require__(195);
+
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
+
+ var _DateTable = __webpack_require__(196);
+
+ var _DateTable2 = _interopRequireDefault(_DateTable);
+
+ var _CalendarHeader = __webpack_require__(373);
+
+ var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);
+
+ var _CalendarFooter = __webpack_require__(379);
+
+ var _CalendarFooter2 = _interopRequireDefault(_CalendarFooter);
+
+ var _CalendarMixin = __webpack_require__(383);
+
+ var _CalendarMixin2 = _interopRequireDefault(_CalendarMixin);
+
+ var _CommonMixin = __webpack_require__(384);
+
+ var _CommonMixin2 = _interopRequireDefault(_CommonMixin);
+
+ var _DateInput = __webpack_require__(386);
+
+ var _DateInput2 = _interopRequireDefault(_DateInput);
+
+ var _util = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function goStartMonth() {
+ var next = this.state.value.clone();
+ next.startOf('month');
+ this.setValue(next);
+ }
+
+ function goEndMonth() {
+ var next = this.state.value.clone();
+ next.endOf('month');
+ this.setValue(next);
+ }
+
+ function goTime(direction, unit) {
+ var next = this.state.value.clone();
+ next.add(direction, unit);
+ this.setValue(next);
+ }
+
+ function goMonth(direction) {
+ return goTime.call(this, direction, 'months');
+ }
+
+ function goYear(direction) {
+ return goTime.call(this, direction, 'years');
+ }
+
+ function goWeek(direction) {
+ return goTime.call(this, direction, 'weeks');
+ }
+
+ function goDay(direction) {
+ return goTime.call(this, direction, 'days');
+ }
+
+ var Calendar = (0, _createReactClass2['default'])({
+ displayName: 'Calendar',
+
+ propTypes: {
+ disabledDate: _propTypes2['default'].func,
+ disabledTime: _propTypes2['default'].any,
+ value: _propTypes2['default'].object,
+ selectedValue: _propTypes2['default'].object,
+ defaultValue: _propTypes2['default'].object,
+ className: _propTypes2['default'].string,
+ locale: _propTypes2['default'].object,
+ showWeekNumber: _propTypes2['default'].bool,
+ style: _propTypes2['default'].object,
+ showToday: _propTypes2['default'].bool,
+ showDateInput: _propTypes2['default'].bool,
+ visible: _propTypes2['default'].bool,
+ onSelect: _propTypes2['default'].func,
+ onOk: _propTypes2['default'].func,
+ showOk: _propTypes2['default'].bool,
+ prefixCls: _propTypes2['default'].string,
+ onKeyDown: _propTypes2['default'].func,
+ timePicker: _propTypes2['default'].element,
+ dateInputPlaceholder: _propTypes2['default'].any,
+ onClear: _propTypes2['default'].func,
+ onChange: _propTypes2['default'].func,
+ renderFooter: _propTypes2['default'].func,
+ renderSidebar: _propTypes2['default'].func
+ },
+
+ mixins: [_CommonMixin2['default'], _CalendarMixin2['default']],
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ showToday: true,
+ showDateInput: true,
+ timePicker: null,
+ onOk: noop
+ };
+ },
+ getInitialState: function getInitialState() {
+ return {
+ showTimePicker: false
+ };
+ },
+ onKeyDown: function onKeyDown(event) {
+ if (event.target.nodeName.toLowerCase() === 'input') {
+ return undefined;
+ }
+ var keyCode = event.keyCode;
+ // mac
+ var ctrlKey = event.ctrlKey || event.metaKey;
+ var disabledDate = this.props.disabledDate;
+ var value = this.state.value;
+
+ switch (keyCode) {
+ case _KeyCode2['default'].DOWN:
+ goWeek.call(this, 1);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].UP:
+ goWeek.call(this, -1);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].LEFT:
+ if (ctrlKey) {
+ goYear.call(this, -1);
+ } else {
+ goDay.call(this, -1);
+ }
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].RIGHT:
+ if (ctrlKey) {
+ goYear.call(this, 1);
+ } else {
+ goDay.call(this, 1);
+ }
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].HOME:
+ goStartMonth.call(this);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].END:
+ goEndMonth.call(this);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].PAGE_DOWN:
+ goMonth.call(this, 1);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].PAGE_UP:
+ goMonth.call(this, -1);
+ event.preventDefault();
+ return 1;
+ case _KeyCode2['default'].ENTER:
+ if (!disabledDate || !disabledDate(value)) {
+ this.onSelect(value, {
+ source: 'keyboard'
+ });
+ }
+ event.preventDefault();
+ return 1;
+ default:
+ this.props.onKeyDown(event);
+ return 1;
+ }
+ },
+ onClear: function onClear() {
+ this.onSelect(null);
+ this.props.onClear();
+ },
+ onOk: function onOk() {
+ var selectedValue = this.state.selectedValue;
+
+ if (this.isAllowedDate(selectedValue)) {
+ this.props.onOk(selectedValue);
+ }
+ },
+ onDateInputChange: function onDateInputChange(value) {
+ this.onSelect(value, {
+ source: 'dateInput'
+ });
+ },
+ onDateTableSelect: function onDateTableSelect(value) {
+ var timePicker = this.props.timePicker;
+ var selectedValue = this.state.selectedValue;
+
+ if (!selectedValue && timePicker) {
+ var timePickerDefaultValue = timePicker.props.defaultValue;
+ if (timePickerDefaultValue) {
+ (0, _util.syncTime)(timePickerDefaultValue, value);
+ }
+ }
+ this.onSelect(value);
+ },
+ onToday: function onToday() {
+ var value = this.state.value;
+
+ var now = (0, _util.getTodayTime)(value);
+ this.onSelect(now, {
+ source: 'todayButton'
+ });
+ },
+ getRootDOMNode: function getRootDOMNode() {
+ return _reactDom2['default'].findDOMNode(this);
+ },
+ openTimePicker: function openTimePicker() {
+ this.setState({
+ showTimePicker: true
+ });
+ },
+ closeTimePicker: function closeTimePicker() {
+ this.setState({
+ showTimePicker: false
+ });
+ },
+ render: function render() {
+ var props = this.props;
+ var locale = props.locale,
+ prefixCls = props.prefixCls,
+ disabledDate = props.disabledDate,
+ dateInputPlaceholder = props.dateInputPlaceholder,
+ timePicker = props.timePicker,
+ disabledTime = props.disabledTime;
+
+ var state = this.state;
+ var value = state.value,
+ selectedValue = state.selectedValue,
+ showTimePicker = state.showTimePicker;
+
+ var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? (0, _util.getTimeConfig)(selectedValue, disabledTime) : null;
+
+ var timePickerEle = timePicker && showTimePicker ? _react2['default'].cloneElement(timePicker, (0, _extends3['default'])({
+ showHour: true,
+ showSecond: true,
+ showMinute: true
+ }, timePicker.props, disabledTimeConfig, {
+ onChange: this.onDateInputChange,
+ defaultOpenValue: timePicker.props.defaultValue,
+ value: selectedValue,
+ disabledTime: disabledTime
+ })) : null;
+ var dateInputElement = props.showDateInput ? _react2['default'].createElement(_DateInput2['default'], {
+ ref: 'dateInput',
+ format: this.getFormat(),
+ key: 'date-input',
+ value: value,
+ locale: locale,
+ placeholder: dateInputPlaceholder,
+ showClear: true,
+ disabledTime: disabledTime,
+ disabledDate: disabledDate,
+ onClear: this.onClear,
+ prefixCls: prefixCls,
+ selectedValue: selectedValue,
+ onChange: this.onDateInputChange
+ }) : null;
+ var children = [props.renderSidebar(), _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-panel', key: 'panel' },
+ dateInputElement,
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-date-panel' },
+ _react2['default'].createElement(_CalendarHeader2['default'], {
+ locale: locale,
+ onValueChange: this.setValue,
+ value: value,
+ showTimePicker: showTimePicker,
+ prefixCls: prefixCls
+ }),
+ timePicker && showTimePicker ? _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-time-picker' },
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-time-picker-panel' },
+ timePickerEle
+ )
+ ) : null,
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-body' },
+ _react2['default'].createElement(_DateTable2['default'], {
+ locale: locale,
+ value: value,
+ selectedValue: selectedValue,
+ prefixCls: prefixCls,
+ dateRender: props.dateRender,
+ onSelect: this.onDateTableSelect,
+ disabledDate: disabledDate,
+ showWeekNumber: props.showWeekNumber
+ })
+ ),
+ _react2['default'].createElement(_CalendarFooter2['default'], {
+ showOk: props.showOk,
+ renderFooter: props.renderFooter,
+ locale: locale,
+ prefixCls: prefixCls,
+ showToday: props.showToday,
+ disabledTime: disabledTime,
+ showTimePicker: showTimePicker,
+ showDateInput: props.showDateInput,
+ timePicker: timePicker,
+ selectedValue: selectedValue,
+ value: value,
+ disabledDate: disabledDate,
+ okDisabled: !this.isAllowedDate(selectedValue),
+ onOk: this.onOk,
+ onSelect: this.onSelect,
+ onToday: this.onToday,
+ onOpenTimePicker: this.openTimePicker,
+ onCloseTimePicker: this.closeTimePicker
+ })
+ )
+ )];
+
+ return this.renderRoot({
+ children: children,
+ className: props.showWeekNumber ? prefixCls + '-week-number' : ''
+ });
+ }
+ });
+
+ exports['default'] = Calendar;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 173 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _assign = __webpack_require__(174);
+
+ var _assign2 = _interopRequireDefault(_assign);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = _assign2.default || function (target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = arguments[i];
+
+ for (var key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key];
+ }
+ }
+ }
+
+ return target;
+ };
+
+/***/ }),
+/* 174 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(175), __esModule: true };
+
+/***/ }),
+/* 175 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(176);
+ module.exports = __webpack_require__(179).Object.assign;
+
+/***/ }),
+/* 176 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 19.1.3.1 Object.assign(target, source)
+ var $export = __webpack_require__(177);
+
+ $export($export.S + $export.F, 'Object', {assign: __webpack_require__(182)});
+
+/***/ }),
+/* 177 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var global = __webpack_require__(178)
+ , core = __webpack_require__(179)
+ , ctx = __webpack_require__(180)
+ , 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] = {})
+ , 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 && key in target;
+ 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(param){
+ return this instanceof C ? new C(param) : C(param);
+ };
+ F[PROTOTYPE] = C[PROTOTYPE];
+ return F;
+ // make static versions for prototype methods
+ })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
+ if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[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
+ module.exports = $export;
+
+/***/ }),
+/* 178 */
+/***/ (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
+
+/***/ }),
+/* 179 */
+/***/ (function(module, exports) {
+
+ var core = module.exports = {version: '1.2.6'};
+ if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
+
+/***/ }),
+/* 180 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // optional / simple context binding
+ var aFunction = __webpack_require__(181);
+ 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);
+ };
+ };
+
+/***/ }),
+/* 181 */
+/***/ (function(module, exports) {
+
+ module.exports = function(it){
+ if(typeof it != 'function')throw TypeError(it + ' is not a function!');
+ return it;
+ };
+
+/***/ }),
+/* 182 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 19.1.2.1 Object.assign(target, source, ...)
+ var $ = __webpack_require__(183)
+ , toObject = __webpack_require__(184)
+ , IObject = __webpack_require__(186);
+
+ // should work with symbols and should have deterministic property order (V8 bug)
+ module.exports = __webpack_require__(188)(function(){
+ var a = Object.assign
+ , A = {}
+ , B = {}
+ , S = Symbol()
+ , K = 'abcdefghijklmnopqrst';
+ A[S] = 7;
+ K.split('').forEach(function(k){ B[k] = k; });
+ return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;
+ }) ? function assign(target, source){ // eslint-disable-line no-unused-vars
+ var T = toObject(target)
+ , $$ = arguments
+ , $$len = $$.length
+ , index = 1
+ , getKeys = $.getKeys
+ , getSymbols = $.getSymbols
+ , isEnum = $.isEnum;
+ while($$len > index){
+ var S = IObject($$[index++])
+ , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
+ , length = keys.length
+ , j = 0
+ , key;
+ while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
+ }
+ return T;
+ } : Object.assign;
+
+/***/ }),
+/* 183 */
+/***/ (function(module, exports) {
+
+ var $Object = Object;
+ module.exports = {
+ create: $Object.create,
+ getProto: $Object.getPrototypeOf,
+ isEnum: {}.propertyIsEnumerable,
+ getDesc: $Object.getOwnPropertyDescriptor,
+ setDesc: $Object.defineProperty,
+ setDescs: $Object.defineProperties,
+ getKeys: $Object.keys,
+ getNames: $Object.getOwnPropertyNames,
+ getSymbols: $Object.getOwnPropertySymbols,
+ each: [].forEach
+ };
+
+/***/ }),
+/* 184 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 7.1.13 ToObject(argument)
+ var defined = __webpack_require__(185);
+ module.exports = function(it){
+ return Object(defined(it));
+ };
+
+/***/ }),
+/* 185 */
+/***/ (function(module, exports) {
+
+ // 7.2.1 RequireObjectCoercible(argument)
+ module.exports = function(it){
+ if(it == undefined)throw TypeError("Can't call method on " + it);
+ return it;
+ };
+
+/***/ }),
+/* 186 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
+ var cof = __webpack_require__(187);
+ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
+ return cof(it) == 'String' ? it.split('') : Object(it);
+ };
+
+/***/ }),
+/* 187 */
+/***/ (function(module, exports) {
+
+ var toString = {}.toString;
+
+ module.exports = function(it){
+ return toString.call(it).slice(8, -1);
+ };
+
+/***/ }),
+/* 188 */
+/***/ (function(module, exports) {
+
+ module.exports = function(exec){
+ try {
+ return !!exec();
+ } catch(e){
+ return true;
+ }
+ };
+
+/***/ }),
+/* 189 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ 'use strict';
+
+ var React = __webpack_require__(4);
+ var factory = __webpack_require__(190);
+
+ if (typeof React === 'undefined') {
+ throw Error(
+ 'create-react-class could not find the React object. If you are using script tags, ' +
+ 'make sure that React is being loaded before create-react-class.'
+ );
+ }
+
+ // Hack to grab NoopUpdateQueue from isomorphic React
+ var ReactNoopUpdateQueue = new React.Component().updater;
+
+ module.exports = factory(
+ React.Component,
+ React.isValidElement,
+ ReactNoopUpdateQueue
+ );
+
+
+/***/ }),
+/* 190 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ 'use strict';
+
+ var _assign = __webpack_require__(43);
+
+ var emptyObject = __webpack_require__(191);
+ var _invariant = __webpack_require__(192);
+
+ if (process.env.NODE_ENV !== 'production') {
+ var warning = __webpack_require__(193);
+ }
+
+ var MIXINS_KEY = 'mixins';
+
+ // Helper function to allow the creation of anonymous functions which do not
+ // have .name set to the name of the variable being assigned to.
+ function identity(fn) {
+ return fn;
+ }
+
+ var ReactPropTypeLocationNames;
+ if (process.env.NODE_ENV !== 'production') {
+ ReactPropTypeLocationNames = {
+ prop: 'prop',
+ context: 'context',
+ childContext: 'child context'
+ };
+ } else {
+ ReactPropTypeLocationNames = {};
+ }
+
+ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
+ /**
+ * Policies that describe methods in `ReactClassInterface`.
+ */
+
+ var injectedMixins = [];
+
+ /**
+ * Composite components are higher-level components that compose other composite
+ * or host components.
+ *
+ * To create a new type of `ReactClass`, pass a specification of
+ * your new class to `React.createClass`. The only requirement of your class
+ * specification is that you implement a `render` method.
+ *
+ * var MyComponent = React.createClass({
+ * render: function() {
+ * return
Hello World
;
+ * }
+ * });
+ *
+ * The class specification supports a specific protocol of methods that have
+ * special meaning (e.g. `render`). See `ReactClassInterface` for
+ * more the comprehensive protocol. Any other properties and methods in the
+ * class specification will be available on the prototype.
+ *
+ * @interface ReactClassInterface
+ * @internal
+ */
+ var ReactClassInterface = {
+ /**
+ * An array of Mixin objects to include when defining your component.
+ *
+ * @type {array}
+ * @optional
+ */
+ mixins: 'DEFINE_MANY',
+
+ /**
+ * An object containing properties and methods that should be defined on
+ * the component's constructor instead of its prototype (static methods).
+ *
+ * @type {object}
+ * @optional
+ */
+ statics: 'DEFINE_MANY',
+
+ /**
+ * Definition of prop types for this component.
+ *
+ * @type {object}
+ * @optional
+ */
+ propTypes: 'DEFINE_MANY',
+
+ /**
+ * Definition of context types for this component.
+ *
+ * @type {object}
+ * @optional
+ */
+ contextTypes: 'DEFINE_MANY',
+
+ /**
+ * Definition of context types this component sets for its children.
+ *
+ * @type {object}
+ * @optional
+ */
+ childContextTypes: 'DEFINE_MANY',
+
+ // ==== Definition methods ====
+
+ /**
+ * Invoked when the component is mounted. Values in the mapping will be set on
+ * `this.props` if that prop is not specified (i.e. using an `in` check).
+ *
+ * This method is invoked before `getInitialState` and therefore cannot rely
+ * on `this.state` or use `this.setState`.
+ *
+ * @return {object}
+ * @optional
+ */
+ getDefaultProps: 'DEFINE_MANY_MERGED',
+
+ /**
+ * Invoked once before the component is mounted. The return value will be used
+ * as the initial value of `this.state`.
+ *
+ * getInitialState: function() {
+ * return {
+ * isOn: false,
+ * fooBaz: new BazFoo()
+ * }
+ * }
+ *
+ * @return {object}
+ * @optional
+ */
+ getInitialState: 'DEFINE_MANY_MERGED',
+
+ /**
+ * @return {object}
+ * @optional
+ */
+ getChildContext: 'DEFINE_MANY_MERGED',
+
+ /**
+ * Uses props from `this.props` and state from `this.state` to render the
+ * structure of the component.
+ *
+ * No guarantees are made about when or how often this method is invoked, so
+ * it must not have side effects.
+ *
+ * render: function() {
+ * var name = this.props.name;
+ * return
Hello, {name}!
;
+ * }
+ *
+ * @return {ReactComponent}
+ * @required
+ */
+ render: 'DEFINE_ONCE',
+
+ // ==== Delegate methods ====
+
+ /**
+ * Invoked when the component is initially created and about to be mounted.
+ * This may have side effects, but any external subscriptions or data created
+ * by this method must be cleaned up in `componentWillUnmount`.
+ *
+ * @optional
+ */
+ componentWillMount: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component has been mounted and has a DOM representation.
+ * However, there is no guarantee that the DOM node is in the document.
+ *
+ * Use this as an opportunity to operate on the DOM when the component has
+ * been mounted (initialized and rendered) for the first time.
+ *
+ * @param {DOMElement} rootNode DOM element representing the component.
+ * @optional
+ */
+ componentDidMount: 'DEFINE_MANY',
+
+ /**
+ * Invoked before the component receives new props.
+ *
+ * Use this as an opportunity to react to a prop transition by updating the
+ * state using `this.setState`. Current props are accessed via `this.props`.
+ *
+ * componentWillReceiveProps: function(nextProps, nextContext) {
+ * this.setState({
+ * likesIncreasing: nextProps.likeCount > this.props.likeCount
+ * });
+ * }
+ *
+ * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
+ * transition may cause a state change, but the opposite is not true. If you
+ * need it, you are probably looking for `componentWillUpdate`.
+ *
+ * @param {object} nextProps
+ * @optional
+ */
+ componentWillReceiveProps: 'DEFINE_MANY',
+
+ /**
+ * Invoked while deciding if the component should be updated as a result of
+ * receiving new props, state and/or context.
+ *
+ * Use this as an opportunity to `return false` when you're certain that the
+ * transition to the new props/state/context will not require a component
+ * update.
+ *
+ * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
+ * return !equal(nextProps, this.props) ||
+ * !equal(nextState, this.state) ||
+ * !equal(nextContext, this.context);
+ * }
+ *
+ * @param {object} nextProps
+ * @param {?object} nextState
+ * @param {?object} nextContext
+ * @return {boolean} True if the component should update.
+ * @optional
+ */
+ shouldComponentUpdate: 'DEFINE_ONCE',
+
+ /**
+ * Invoked when the component is about to update due to a transition from
+ * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
+ * and `nextContext`.
+ *
+ * Use this as an opportunity to perform preparation before an update occurs.
+ *
+ * NOTE: You **cannot** use `this.setState()` in this method.
+ *
+ * @param {object} nextProps
+ * @param {?object} nextState
+ * @param {?object} nextContext
+ * @param {ReactReconcileTransaction} transaction
+ * @optional
+ */
+ componentWillUpdate: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component's DOM representation has been updated.
+ *
+ * Use this as an opportunity to operate on the DOM when the component has
+ * been updated.
+ *
+ * @param {object} prevProps
+ * @param {?object} prevState
+ * @param {?object} prevContext
+ * @param {DOMElement} rootNode DOM element representing the component.
+ * @optional
+ */
+ componentDidUpdate: 'DEFINE_MANY',
+
+ /**
+ * Invoked when the component is about to be removed from its parent and have
+ * its DOM representation destroyed.
+ *
+ * Use this as an opportunity to deallocate any external resources.
+ *
+ * NOTE: There is no `componentDidUnmount` since your component will have been
+ * destroyed by that point.
+ *
+ * @optional
+ */
+ componentWillUnmount: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillMount`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillMount: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillReceiveProps`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillReceiveProps: 'DEFINE_MANY',
+
+ /**
+ * Replacement for (deprecated) `componentWillUpdate`.
+ *
+ * @optional
+ */
+ UNSAFE_componentWillUpdate: 'DEFINE_MANY',
+
+ // ==== Advanced methods ====
+
+ /**
+ * Updates the component's currently mounted DOM representation.
+ *
+ * By default, this implements React's rendering and reconciliation algorithm.
+ * Sophisticated clients may wish to override this.
+ *
+ * @param {ReactReconcileTransaction} transaction
+ * @internal
+ * @overridable
+ */
+ updateComponent: 'OVERRIDE_BASE'
+ };
+
+ /**
+ * Similar to ReactClassInterface but for static methods.
+ */
+ var ReactClassStaticInterface = {
+ /**
+ * This method is invoked after a component is instantiated and when it
+ * receives new props. Return an object to update state in response to
+ * prop changes. Return null to indicate no change to state.
+ *
+ * If an object is returned, its keys will be merged into the existing state.
+ *
+ * @return {object || null}
+ * @optional
+ */
+ getDerivedStateFromProps: 'DEFINE_MANY_MERGED'
+ };
+
+ /**
+ * Mapping from class specification keys to special processing functions.
+ *
+ * Although these are declared like instance properties in the specification
+ * when defining classes using `React.createClass`, they are actually static
+ * and are accessible on the constructor instead of the prototype. Despite
+ * being static, they must be defined outside of the "statics" key under
+ * which all other static methods are defined.
+ */
+ var RESERVED_SPEC_KEYS = {
+ displayName: function(Constructor, displayName) {
+ Constructor.displayName = displayName;
+ },
+ mixins: function(Constructor, mixins) {
+ if (mixins) {
+ for (var i = 0; i < mixins.length; i++) {
+ mixSpecIntoComponent(Constructor, mixins[i]);
+ }
+ }
+ },
+ childContextTypes: function(Constructor, childContextTypes) {
+ if (process.env.NODE_ENV !== 'production') {
+ validateTypeDef(Constructor, childContextTypes, 'childContext');
+ }
+ Constructor.childContextTypes = _assign(
+ {},
+ Constructor.childContextTypes,
+ childContextTypes
+ );
+ },
+ contextTypes: function(Constructor, contextTypes) {
+ if (process.env.NODE_ENV !== 'production') {
+ validateTypeDef(Constructor, contextTypes, 'context');
+ }
+ Constructor.contextTypes = _assign(
+ {},
+ Constructor.contextTypes,
+ contextTypes
+ );
+ },
+ /**
+ * Special case getDefaultProps which should move into statics but requires
+ * automatic merging.
+ */
+ getDefaultProps: function(Constructor, getDefaultProps) {
+ if (Constructor.getDefaultProps) {
+ Constructor.getDefaultProps = createMergedResultFunction(
+ Constructor.getDefaultProps,
+ getDefaultProps
+ );
+ } else {
+ Constructor.getDefaultProps = getDefaultProps;
+ }
+ },
+ propTypes: function(Constructor, propTypes) {
+ if (process.env.NODE_ENV !== 'production') {
+ validateTypeDef(Constructor, propTypes, 'prop');
+ }
+ Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
+ },
+ statics: function(Constructor, statics) {
+ mixStaticSpecIntoComponent(Constructor, statics);
+ },
+ autobind: function() {}
+ };
+
+ function validateTypeDef(Constructor, typeDef, location) {
+ for (var propName in typeDef) {
+ if (typeDef.hasOwnProperty(propName)) {
+ // use a warning instead of an _invariant so components
+ // don't show up in prod but only in __DEV__
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ typeof typeDef[propName] === 'function',
+ '%s: %s type `%s` is invalid; it must be a function, usually from ' +
+ 'React.PropTypes.',
+ Constructor.displayName || 'ReactClass',
+ ReactPropTypeLocationNames[location],
+ propName
+ );
+ }
+ }
+ }
+ }
+
+ function validateMethodOverride(isAlreadyDefined, name) {
+ var specPolicy = ReactClassInterface.hasOwnProperty(name)
+ ? ReactClassInterface[name]
+ : null;
+
+ // Disallow overriding of base class methods unless explicitly allowed.
+ if (ReactClassMixin.hasOwnProperty(name)) {
+ _invariant(
+ specPolicy === 'OVERRIDE_BASE',
+ 'ReactClassInterface: You are attempting to override ' +
+ '`%s` from your class specification. Ensure that your method names ' +
+ 'do not overlap with React methods.',
+ name
+ );
+ }
+
+ // Disallow defining methods more than once unless explicitly allowed.
+ if (isAlreadyDefined) {
+ _invariant(
+ specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED',
+ 'ReactClassInterface: You are attempting to define ' +
+ '`%s` on your component more than once. This conflict may be due ' +
+ 'to a mixin.',
+ name
+ );
+ }
+ }
+
+ /**
+ * Mixin helper which handles policy validation and reserved
+ * specification keys when building React classes.
+ */
+ function mixSpecIntoComponent(Constructor, spec) {
+ if (!spec) {
+ if (process.env.NODE_ENV !== 'production') {
+ var typeofSpec = typeof spec;
+ var isMixinValid = typeofSpec === 'object' && spec !== null;
+
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ isMixinValid,
+ "%s: You're attempting to include a mixin that is either null " +
+ 'or not an object. Check the mixins included by the component, ' +
+ 'as well as any mixins they include themselves. ' +
+ 'Expected object but got %s.',
+ Constructor.displayName || 'ReactClass',
+ spec === null ? null : typeofSpec
+ );
+ }
+ }
+
+ return;
+ }
+
+ _invariant(
+ typeof spec !== 'function',
+ "ReactClass: You're attempting to " +
+ 'use a component class or function as a mixin. Instead, just use a ' +
+ 'regular object.'
+ );
+ _invariant(
+ !isValidElement(spec),
+ "ReactClass: You're attempting to " +
+ 'use a component as a mixin. Instead, just use a regular object.'
+ );
+
+ var proto = Constructor.prototype;
+ var autoBindPairs = proto.__reactAutoBindPairs;
+
+ // By handling mixins before any other properties, we ensure the same
+ // chaining order is applied to methods with DEFINE_MANY policy, whether
+ // mixins are listed before or after these methods in the spec.
+ if (spec.hasOwnProperty(MIXINS_KEY)) {
+ RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
+ }
+
+ for (var name in spec) {
+ if (!spec.hasOwnProperty(name)) {
+ continue;
+ }
+
+ if (name === MIXINS_KEY) {
+ // We have already handled mixins in a special case above.
+ continue;
+ }
+
+ var property = spec[name];
+ var isAlreadyDefined = proto.hasOwnProperty(name);
+ validateMethodOverride(isAlreadyDefined, name);
+
+ if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
+ RESERVED_SPEC_KEYS[name](Constructor, property);
+ } else {
+ // Setup methods on prototype:
+ // The following member methods should not be automatically bound:
+ // 1. Expected ReactClass methods (in the "interface").
+ // 2. Overridden methods (that were mixed in).
+ var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
+ var isFunction = typeof property === 'function';
+ var shouldAutoBind =
+ isFunction &&
+ !isReactClassMethod &&
+ !isAlreadyDefined &&
+ spec.autobind !== false;
+
+ if (shouldAutoBind) {
+ autoBindPairs.push(name, property);
+ proto[name] = property;
+ } else {
+ if (isAlreadyDefined) {
+ var specPolicy = ReactClassInterface[name];
+
+ // These cases should already be caught by validateMethodOverride.
+ _invariant(
+ isReactClassMethod &&
+ (specPolicy === 'DEFINE_MANY_MERGED' ||
+ specPolicy === 'DEFINE_MANY'),
+ 'ReactClass: Unexpected spec policy %s for key %s ' +
+ 'when mixing in component specs.',
+ specPolicy,
+ name
+ );
+
+ // For methods which are defined more than once, call the existing
+ // methods before calling the new property, merging if appropriate.
+ if (specPolicy === 'DEFINE_MANY_MERGED') {
+ proto[name] = createMergedResultFunction(proto[name], property);
+ } else if (specPolicy === 'DEFINE_MANY') {
+ proto[name] = createChainedFunction(proto[name], property);
+ }
+ } else {
+ proto[name] = property;
+ if (process.env.NODE_ENV !== 'production') {
+ // Add verbose displayName to the function, which helps when looking
+ // at profiling tools.
+ if (typeof property === 'function' && spec.displayName) {
+ proto[name].displayName = spec.displayName + '_' + name;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ function mixStaticSpecIntoComponent(Constructor, statics) {
+ if (!statics) {
+ return;
+ }
+
+ for (var name in statics) {
+ var property = statics[name];
+ if (!statics.hasOwnProperty(name)) {
+ continue;
+ }
+
+ var isReserved = name in RESERVED_SPEC_KEYS;
+ _invariant(
+ !isReserved,
+ 'ReactClass: You are attempting to define a reserved ' +
+ 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' +
+ 'as an instance property instead; it will still be accessible on the ' +
+ 'constructor.',
+ name
+ );
+
+ var isAlreadyDefined = name in Constructor;
+ if (isAlreadyDefined) {
+ var specPolicy = ReactClassStaticInterface.hasOwnProperty(name)
+ ? ReactClassStaticInterface[name]
+ : null;
+
+ _invariant(
+ specPolicy === 'DEFINE_MANY_MERGED',
+ 'ReactClass: You are attempting to define ' +
+ '`%s` on your component more than once. This conflict may be ' +
+ 'due to a mixin.',
+ name
+ );
+
+ Constructor[name] = createMergedResultFunction(Constructor[name], property);
+
+ return;
+ }
+
+ Constructor[name] = property;
+ }
+ }
+
+ /**
+ * Merge two objects, but throw if both contain the same key.
+ *
+ * @param {object} one The first object, which is mutated.
+ * @param {object} two The second object
+ * @return {object} one after it has been mutated to contain everything in two.
+ */
+ function mergeIntoWithNoDuplicateKeys(one, two) {
+ _invariant(
+ one && two && typeof one === 'object' && typeof two === 'object',
+ 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.'
+ );
+
+ for (var key in two) {
+ if (two.hasOwnProperty(key)) {
+ _invariant(
+ one[key] === undefined,
+ 'mergeIntoWithNoDuplicateKeys(): ' +
+ 'Tried to merge two objects with the same key: `%s`. This conflict ' +
+ 'may be due to a mixin; in particular, this may be caused by two ' +
+ 'getInitialState() or getDefaultProps() methods returning objects ' +
+ 'with clashing keys.',
+ key
+ );
+ one[key] = two[key];
+ }
+ }
+ return one;
+ }
+
+ /**
+ * Creates a function that invokes two functions and merges their return values.
+ *
+ * @param {function} one Function to invoke first.
+ * @param {function} two Function to invoke second.
+ * @return {function} Function that invokes the two argument functions.
+ * @private
+ */
+ function createMergedResultFunction(one, two) {
+ return function mergedResult() {
+ var a = one.apply(this, arguments);
+ var b = two.apply(this, arguments);
+ if (a == null) {
+ return b;
+ } else if (b == null) {
+ return a;
+ }
+ var c = {};
+ mergeIntoWithNoDuplicateKeys(c, a);
+ mergeIntoWithNoDuplicateKeys(c, b);
+ return c;
+ };
+ }
+
+ /**
+ * Creates a function that invokes two functions and ignores their return vales.
+ *
+ * @param {function} one Function to invoke first.
+ * @param {function} two Function to invoke second.
+ * @return {function} Function that invokes the two argument functions.
+ * @private
+ */
+ function createChainedFunction(one, two) {
+ return function chainedFunction() {
+ one.apply(this, arguments);
+ two.apply(this, arguments);
+ };
+ }
+
+ /**
+ * Binds a method to the component.
+ *
+ * @param {object} component Component whose method is going to be bound.
+ * @param {function} method Method to be bound.
+ * @return {function} The bound method.
+ */
+ function bindAutoBindMethod(component, method) {
+ var boundMethod = method.bind(component);
+ if (process.env.NODE_ENV !== 'production') {
+ boundMethod.__reactBoundContext = component;
+ boundMethod.__reactBoundMethod = method;
+ boundMethod.__reactBoundArguments = null;
+ var componentName = component.constructor.displayName;
+ var _bind = boundMethod.bind;
+ boundMethod.bind = function(newThis) {
+ for (
+ var _len = arguments.length,
+ args = Array(_len > 1 ? _len - 1 : 0),
+ _key = 1;
+ _key < _len;
+ _key++
+ ) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ // User is trying to bind() an autobound method; we effectively will
+ // ignore the value of "this" that the user is trying to use, so
+ // let's warn.
+ if (newThis !== component && newThis !== null) {
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ false,
+ 'bind(): React component methods may only be bound to the ' +
+ 'component instance. See %s',
+ componentName
+ );
+ }
+ } else if (!args.length) {
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ false,
+ 'bind(): You are binding a component method to the component. ' +
+ 'React does this for you automatically in a high-performance ' +
+ 'way, so you can safely remove this call. See %s',
+ componentName
+ );
+ }
+ return boundMethod;
+ }
+ var reboundMethod = _bind.apply(boundMethod, arguments);
+ reboundMethod.__reactBoundContext = component;
+ reboundMethod.__reactBoundMethod = method;
+ reboundMethod.__reactBoundArguments = args;
+ return reboundMethod;
+ };
+ }
+ return boundMethod;
+ }
+
+ /**
+ * Binds all auto-bound methods in a component.
+ *
+ * @param {object} component Component whose method is going to be bound.
+ */
+ function bindAutoBindMethods(component) {
+ var pairs = component.__reactAutoBindPairs;
+ for (var i = 0; i < pairs.length; i += 2) {
+ var autoBindKey = pairs[i];
+ var method = pairs[i + 1];
+ component[autoBindKey] = bindAutoBindMethod(component, method);
+ }
+ }
+
+ var IsMountedPreMixin = {
+ componentDidMount: function() {
+ this.__isMounted = true;
+ }
+ };
+
+ var IsMountedPostMixin = {
+ componentWillUnmount: function() {
+ this.__isMounted = false;
+ }
+ };
+
+ /**
+ * Add more to the ReactClass base class. These are all legacy features and
+ * therefore not already part of the modern ReactComponent.
+ */
+ var ReactClassMixin = {
+ /**
+ * TODO: This will be deprecated because state should always keep a consistent
+ * type signature and the only use case for this, is to avoid that.
+ */
+ replaceState: function(newState, callback) {
+ this.updater.enqueueReplaceState(this, newState, callback);
+ },
+
+ /**
+ * Checks whether or not this composite component is mounted.
+ * @return {boolean} True if mounted, false otherwise.
+ * @protected
+ * @final
+ */
+ isMounted: function() {
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ this.__didWarnIsMounted,
+ '%s: isMounted is deprecated. Instead, make sure to clean up ' +
+ 'subscriptions and pending requests in componentWillUnmount to ' +
+ 'prevent memory leaks.',
+ (this.constructor && this.constructor.displayName) ||
+ this.name ||
+ 'Component'
+ );
+ this.__didWarnIsMounted = true;
+ }
+ return !!this.__isMounted;
+ }
+ };
+
+ var ReactClassComponent = function() {};
+ _assign(
+ ReactClassComponent.prototype,
+ ReactComponent.prototype,
+ ReactClassMixin
+ );
+
+ /**
+ * Creates a composite component class given a class specification.
+ * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass
+ *
+ * @param {object} spec Class specification (which must define `render`).
+ * @return {function} Component constructor function.
+ * @public
+ */
+ function createClass(spec) {
+ // To keep our warnings more understandable, we'll use a little hack here to
+ // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
+ // unnecessarily identify a class without displayName as 'Constructor'.
+ var Constructor = identity(function(props, context, updater) {
+ // This constructor gets overridden by mocks. The argument is used
+ // by mocks to assert on what gets mounted.
+
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ this instanceof Constructor,
+ 'Something is calling a React component directly. Use a factory or ' +
+ 'JSX instead. See: https://fb.me/react-legacyfactory'
+ );
+ }
+
+ // Wire up auto-binding
+ if (this.__reactAutoBindPairs.length) {
+ bindAutoBindMethods(this);
+ }
+
+ this.props = props;
+ this.context = context;
+ this.refs = emptyObject;
+ this.updater = updater || ReactNoopUpdateQueue;
+
+ this.state = null;
+
+ // ReactClasses doesn't have constructors. Instead, they use the
+ // getInitialState and componentWillMount methods for initialization.
+
+ var initialState = this.getInitialState ? this.getInitialState() : null;
+ if (process.env.NODE_ENV !== 'production') {
+ // We allow auto-mocks to proceed as if they're returning null.
+ if (
+ initialState === undefined &&
+ this.getInitialState._isMockFunction
+ ) {
+ // This is probably bad practice. Consider warning here and
+ // deprecating this convenience.
+ initialState = null;
+ }
+ }
+ _invariant(
+ typeof initialState === 'object' && !Array.isArray(initialState),
+ '%s.getInitialState(): must return an object or null',
+ Constructor.displayName || 'ReactCompositeComponent'
+ );
+
+ this.state = initialState;
+ });
+ Constructor.prototype = new ReactClassComponent();
+ Constructor.prototype.constructor = Constructor;
+ Constructor.prototype.__reactAutoBindPairs = [];
+
+ injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));
+
+ mixSpecIntoComponent(Constructor, IsMountedPreMixin);
+ mixSpecIntoComponent(Constructor, spec);
+ mixSpecIntoComponent(Constructor, IsMountedPostMixin);
+
+ // Initialize the defaultProps property after all mixins have been merged.
+ if (Constructor.getDefaultProps) {
+ Constructor.defaultProps = Constructor.getDefaultProps();
+ }
+
+ if (process.env.NODE_ENV !== 'production') {
+ // This is a tag to indicate that the use of these method names is ok,
+ // since it's used with createClass. If it's not, then it's likely a
+ // mistake so we'll warn you to use the static property, property
+ // initializer or constructor respectively.
+ if (Constructor.getDefaultProps) {
+ Constructor.getDefaultProps.isReactClassApproved = {};
+ }
+ if (Constructor.prototype.getInitialState) {
+ Constructor.prototype.getInitialState.isReactClassApproved = {};
+ }
+ }
+
+ _invariant(
+ Constructor.prototype.render,
+ 'createClass(...): Class specification must implement a `render` method.'
+ );
+
+ if (process.env.NODE_ENV !== 'production') {
+ warning(
+ !Constructor.prototype.componentShouldUpdate,
+ '%s has a method called ' +
+ 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
+ 'The name is phrased as a question because the function is ' +
+ 'expected to return a value.',
+ spec.displayName || 'A component'
+ );
+ warning(
+ !Constructor.prototype.componentWillRecieveProps,
+ '%s has a method called ' +
+ 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
+ spec.displayName || 'A component'
+ );
+ warning(
+ !Constructor.prototype.UNSAFE_componentWillRecieveProps,
+ '%s has a method called UNSAFE_componentWillRecieveProps(). ' +
+ 'Did you mean UNSAFE_componentWillReceiveProps()?',
+ spec.displayName || 'A component'
+ );
+ }
+
+ // Reduce time spent doing lookups by setting these on the prototype.
+ for (var methodName in ReactClassInterface) {
+ if (!Constructor.prototype[methodName]) {
+ Constructor.prototype[methodName] = null;
+ }
+ }
+
+ return Constructor;
+ }
+
+ return createClass;
+ }
+
+ module.exports = factory;
+
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(32)))
+
+/***/ }),
+/* 191 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ 'use strict';
+
+ var emptyObject = {};
+
+ if (process.env.NODE_ENV !== 'production') {
+ Object.freeze(emptyObject);
+ }
+
+ module.exports = emptyObject;
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(32)))
+
+/***/ }),
+/* 192 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ 'use strict';
+
+ /**
+ * Use invariant() to assert state which your program assumes to be true.
+ *
+ * Provide sprintf-style format (only %s is supported) and arguments
+ * to provide information about what broke and what you were
+ * expecting.
+ *
+ * The invariant message will be stripped in production, but the invariant
+ * will remain to ensure logic does not differ in production.
+ */
+
+ var validateFormat = function validateFormat(format) {};
+
+ if (process.env.NODE_ENV !== 'production') {
+ validateFormat = function validateFormat(format) {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument');
+ }
+ };
+ }
+
+ function invariant(condition, format, a, b, c, d, e, f) {
+ validateFormat(format);
+
+ if (!condition) {
+ var error;
+ if (format === undefined) {
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
+ } else {
+ var args = [a, b, c, d, e, f];
+ var argIndex = 0;
+ error = new Error(format.replace(/%s/g, function () {
+ return args[argIndex++];
+ }));
+ error.name = 'Invariant Violation';
+ }
+
+ error.framesToPop = 1; // we don't care about invariant's own frame
+ throw error;
+ }
+ }
+
+ module.exports = invariant;
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(32)))
+
+/***/ }),
+/* 193 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /* WEBPACK VAR INJECTION */(function(process) {/**
+ * Copyright (c) 2014-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+
+ 'use strict';
+
+ var emptyFunction = __webpack_require__(194);
+
+ /**
+ * Similar to invariant but only logs a warning if the condition is not met.
+ * This can be used to log issues in development environments in critical
+ * paths. Removing the logging code for production environments will keep the
+ * same logic and follow the same code paths.
+ */
+
+ var warning = emptyFunction;
+
+ if (process.env.NODE_ENV !== 'production') {
+ var printWarning = function printWarning(format) {
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ var argIndex = 0;
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
+ return args[argIndex++];
+ });
+ if (typeof console !== 'undefined') {
+ console.error(message);
+ }
+ try {
+ // --- Welcome to debugging React ---
+ // This error was thrown as a convenience so that you can use this stack
+ // to find the callsite that caused this warning to fire.
+ throw new Error(message);
+ } catch (x) {}
+ };
+
+ warning = function warning(condition, format) {
+ if (format === undefined) {
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
+ }
+
+ if (format.indexOf('Failed Composite propType: ') === 0) {
+ return; // Ignore CompositeComponent proptype check.
+ }
+
+ if (!condition) {
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
+ args[_key2 - 2] = arguments[_key2];
+ }
+
+ printWarning.apply(undefined, [format].concat(args));
+ }
+ };
+ }
+
+ module.exports = warning;
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(32)))
+
+/***/ }),
+/* 194 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ /**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ *
+ */
+
+ function makeEmptyFunction(arg) {
+ return function () {
+ return arg;
+ };
+ }
+
+ /**
+ * This function accepts and discards inputs; it has no side effects. This is
+ * primarily useful idiomatically for overridable function endpoints which
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
+ */
+ var emptyFunction = function emptyFunction() {};
+
+ emptyFunction.thatReturns = makeEmptyFunction;
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
+ emptyFunction.thatReturnsThis = function () {
+ return this;
+ };
+ emptyFunction.thatReturnsArgument = function (arg) {
+ return arg;
+ };
+
+ module.exports = emptyFunction;
+
+/***/ }),
+/* 195 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ /**
+ * @ignore
+ * some key-codes definition and utils from closure-library
+ * @author yiminghe@gmail.com
+ */
+
+ var KeyCode = {
+ /**
+ * MAC_ENTER
+ */
+ MAC_ENTER: 3,
+ /**
+ * BACKSPACE
+ */
+ BACKSPACE: 8,
+ /**
+ * TAB
+ */
+ TAB: 9,
+ /**
+ * NUMLOCK on FF/Safari Mac
+ */
+ NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
+ /**
+ * ENTER
+ */
+ ENTER: 13,
+ /**
+ * SHIFT
+ */
+ SHIFT: 16,
+ /**
+ * CTRL
+ */
+ CTRL: 17,
+ /**
+ * ALT
+ */
+ ALT: 18,
+ /**
+ * PAUSE
+ */
+ PAUSE: 19,
+ /**
+ * CAPS_LOCK
+ */
+ CAPS_LOCK: 20,
+ /**
+ * ESC
+ */
+ ESC: 27,
+ /**
+ * SPACE
+ */
+ SPACE: 32,
+ /**
+ * PAGE_UP
+ */
+ PAGE_UP: 33, // also NUM_NORTH_EAST
+ /**
+ * PAGE_DOWN
+ */
+ PAGE_DOWN: 34, // also NUM_SOUTH_EAST
+ /**
+ * END
+ */
+ END: 35, // also NUM_SOUTH_WEST
+ /**
+ * HOME
+ */
+ HOME: 36, // also NUM_NORTH_WEST
+ /**
+ * LEFT
+ */
+ LEFT: 37, // also NUM_WEST
+ /**
+ * UP
+ */
+ UP: 38, // also NUM_NORTH
+ /**
+ * RIGHT
+ */
+ RIGHT: 39, // also NUM_EAST
+ /**
+ * DOWN
+ */
+ DOWN: 40, // also NUM_SOUTH
+ /**
+ * PRINT_SCREEN
+ */
+ PRINT_SCREEN: 44,
+ /**
+ * INSERT
+ */
+ INSERT: 45, // also NUM_INSERT
+ /**
+ * DELETE
+ */
+ DELETE: 46, // also NUM_DELETE
+ /**
+ * ZERO
+ */
+ ZERO: 48,
+ /**
+ * ONE
+ */
+ ONE: 49,
+ /**
+ * TWO
+ */
+ TWO: 50,
+ /**
+ * THREE
+ */
+ THREE: 51,
+ /**
+ * FOUR
+ */
+ FOUR: 52,
+ /**
+ * FIVE
+ */
+ FIVE: 53,
+ /**
+ * SIX
+ */
+ SIX: 54,
+ /**
+ * SEVEN
+ */
+ SEVEN: 55,
+ /**
+ * EIGHT
+ */
+ EIGHT: 56,
+ /**
+ * NINE
+ */
+ NINE: 57,
+ /**
+ * QUESTION_MARK
+ */
+ QUESTION_MARK: 63, // needs localization
+ /**
+ * A
+ */
+ A: 65,
+ /**
+ * B
+ */
+ B: 66,
+ /**
+ * C
+ */
+ C: 67,
+ /**
+ * D
+ */
+ D: 68,
+ /**
+ * E
+ */
+ E: 69,
+ /**
+ * F
+ */
+ F: 70,
+ /**
+ * G
+ */
+ G: 71,
+ /**
+ * H
+ */
+ H: 72,
+ /**
+ * I
+ */
+ I: 73,
+ /**
+ * J
+ */
+ J: 74,
+ /**
+ * K
+ */
+ K: 75,
+ /**
+ * L
+ */
+ L: 76,
+ /**
+ * M
+ */
+ M: 77,
+ /**
+ * N
+ */
+ N: 78,
+ /**
+ * O
+ */
+ O: 79,
+ /**
+ * P
+ */
+ P: 80,
+ /**
+ * Q
+ */
+ Q: 81,
+ /**
+ * R
+ */
+ R: 82,
+ /**
+ * S
+ */
+ S: 83,
+ /**
+ * T
+ */
+ T: 84,
+ /**
+ * U
+ */
+ U: 85,
+ /**
+ * V
+ */
+ V: 86,
+ /**
+ * W
+ */
+ W: 87,
+ /**
+ * X
+ */
+ X: 88,
+ /**
+ * Y
+ */
+ Y: 89,
+ /**
+ * Z
+ */
+ Z: 90,
+ /**
+ * META
+ */
+ META: 91, // WIN_KEY_LEFT
+ /**
+ * WIN_KEY_RIGHT
+ */
+ WIN_KEY_RIGHT: 92,
+ /**
+ * CONTEXT_MENU
+ */
+ CONTEXT_MENU: 93,
+ /**
+ * NUM_ZERO
+ */
+ NUM_ZERO: 96,
+ /**
+ * NUM_ONE
+ */
+ NUM_ONE: 97,
+ /**
+ * NUM_TWO
+ */
+ NUM_TWO: 98,
+ /**
+ * NUM_THREE
+ */
+ NUM_THREE: 99,
+ /**
+ * NUM_FOUR
+ */
+ NUM_FOUR: 100,
+ /**
+ * NUM_FIVE
+ */
+ NUM_FIVE: 101,
+ /**
+ * NUM_SIX
+ */
+ NUM_SIX: 102,
+ /**
+ * NUM_SEVEN
+ */
+ NUM_SEVEN: 103,
+ /**
+ * NUM_EIGHT
+ */
+ NUM_EIGHT: 104,
+ /**
+ * NUM_NINE
+ */
+ NUM_NINE: 105,
+ /**
+ * NUM_MULTIPLY
+ */
+ NUM_MULTIPLY: 106,
+ /**
+ * NUM_PLUS
+ */
+ NUM_PLUS: 107,
+ /**
+ * NUM_MINUS
+ */
+ NUM_MINUS: 109,
+ /**
+ * NUM_PERIOD
+ */
+ NUM_PERIOD: 110,
+ /**
+ * NUM_DIVISION
+ */
+ NUM_DIVISION: 111,
+ /**
+ * F1
+ */
+ F1: 112,
+ /**
+ * F2
+ */
+ F2: 113,
+ /**
+ * F3
+ */
+ F3: 114,
+ /**
+ * F4
+ */
+ F4: 115,
+ /**
+ * F5
+ */
+ F5: 116,
+ /**
+ * F6
+ */
+ F6: 117,
+ /**
+ * F7
+ */
+ F7: 118,
+ /**
+ * F8
+ */
+ F8: 119,
+ /**
+ * F9
+ */
+ F9: 120,
+ /**
+ * F10
+ */
+ F10: 121,
+ /**
+ * F11
+ */
+ F11: 122,
+ /**
+ * F12
+ */
+ F12: 123,
+ /**
+ * NUMLOCK
+ */
+ NUMLOCK: 144,
+ /**
+ * SEMICOLON
+ */
+ SEMICOLON: 186, // needs localization
+ /**
+ * DASH
+ */
+ DASH: 189, // needs localization
+ /**
+ * EQUALS
+ */
+ EQUALS: 187, // needs localization
+ /**
+ * COMMA
+ */
+ COMMA: 188, // needs localization
+ /**
+ * PERIOD
+ */
+ PERIOD: 190, // needs localization
+ /**
+ * SLASH
+ */
+ SLASH: 191, // needs localization
+ /**
+ * APOSTROPHE
+ */
+ APOSTROPHE: 192, // needs localization
+ /**
+ * SINGLE_QUOTE
+ */
+ SINGLE_QUOTE: 222, // needs localization
+ /**
+ * OPEN_SQUARE_BRACKET
+ */
+ OPEN_SQUARE_BRACKET: 219, // needs localization
+ /**
+ * BACKSLASH
+ */
+ BACKSLASH: 220, // needs localization
+ /**
+ * CLOSE_SQUARE_BRACKET
+ */
+ CLOSE_SQUARE_BRACKET: 221, // needs localization
+ /**
+ * WIN_KEY
+ */
+ WIN_KEY: 224,
+ /**
+ * MAC_FF_META
+ */
+ MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
+ /**
+ * WIN_IME
+ */
+ WIN_IME: 229
+ };
+
+ /*
+ whether text and modified key is entered at the same time.
+ */
+ KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
+ var keyCode = e.keyCode;
+ if (e.altKey && !e.ctrlKey || e.metaKey ||
+ // Function keys don't generate text
+ keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
+ return false;
+ }
+
+ // The following keys are quite harmless, even in combination with
+ // CTRL, ALT or SHIFT.
+ switch (keyCode) {
+ case KeyCode.ALT:
+ case KeyCode.CAPS_LOCK:
+ case KeyCode.CONTEXT_MENU:
+ case KeyCode.CTRL:
+ case KeyCode.DOWN:
+ case KeyCode.END:
+ case KeyCode.ESC:
+ case KeyCode.HOME:
+ case KeyCode.INSERT:
+ case KeyCode.LEFT:
+ case KeyCode.MAC_FF_META:
+ case KeyCode.META:
+ case KeyCode.NUMLOCK:
+ case KeyCode.NUM_CENTER:
+ case KeyCode.PAGE_DOWN:
+ case KeyCode.PAGE_UP:
+ case KeyCode.PAUSE:
+ case KeyCode.PRINT_SCREEN:
+ case KeyCode.RIGHT:
+ case KeyCode.SHIFT:
+ case KeyCode.UP:
+ case KeyCode.WIN_KEY:
+ case KeyCode.WIN_KEY_RIGHT:
+ return false;
+ default:
+ return true;
+ }
+ };
+
+ /*
+ whether character is entered.
+ */
+ KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
+ if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
+ return true;
+ }
+
+ if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
+ return true;
+ }
+
+ if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
+ return true;
+ }
+
+ // Safari sends zero key code for non-latin characters.
+ if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
+ return true;
+ }
+
+ switch (keyCode) {
+ case KeyCode.SPACE:
+ case KeyCode.QUESTION_MARK:
+ case KeyCode.NUM_PLUS:
+ case KeyCode.NUM_MINUS:
+ case KeyCode.NUM_PERIOD:
+ case KeyCode.NUM_DIVISION:
+ case KeyCode.SEMICOLON:
+ case KeyCode.DASH:
+ case KeyCode.EQUALS:
+ case KeyCode.COMMA:
+ case KeyCode.PERIOD:
+ case KeyCode.SLASH:
+ case KeyCode.APOSTROPHE:
+ case KeyCode.SINGLE_QUOTE:
+ case KeyCode.OPEN_SQUARE_BRACKET:
+ case KeyCode.BACKSLASH:
+ case KeyCode.CLOSE_SQUARE_BRACKET:
+ return true;
+ default:
+ return false;
+ }
+ };
+
+ exports['default'] = KeyCode;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 196 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _DateTHead = __webpack_require__(243);
+
+ var _DateTHead2 = _interopRequireDefault(_DateTHead);
+
+ var _DateTBody = __webpack_require__(370);
+
+ var _DateTBody2 = _interopRequireDefault(_DateTBody);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var DateTable = function (_React$Component) {
+ (0, _inherits3['default'])(DateTable, _React$Component);
+
+ function DateTable() {
+ (0, _classCallCheck3['default'])(this, DateTable);
+ return (0, _possibleConstructorReturn3['default'])(this, (DateTable.__proto__ || Object.getPrototypeOf(DateTable)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(DateTable, [{
+ key: 'render',
+ value: function render() {
+ var props = this.props;
+ var prefixCls = props.prefixCls;
+ return _react2['default'].createElement(
+ 'table',
+ { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },
+ _react2['default'].createElement(_DateTHead2['default'], props),
+ _react2['default'].createElement(_DateTBody2['default'], props)
+ );
+ }
+ }]);
+ return DateTable;
+ }(_react2['default'].Component);
+
+ exports['default'] = DateTable;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 197 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ exports.default = function (instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+ };
+
+/***/ }),
+/* 198 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _defineProperty = __webpack_require__(199);
+
+ var _defineProperty2 = _interopRequireDefault(_defineProperty);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function () {
+ function defineProperties(target, props) {
+ for (var i = 0; i < props.length; i++) {
+ var descriptor = props[i];
+ descriptor.enumerable = descriptor.enumerable || false;
+ descriptor.configurable = true;
+ if ("value" in descriptor) descriptor.writable = true;
+ (0, _defineProperty2.default)(target, descriptor.key, descriptor);
+ }
+ }
+
+ return function (Constructor, protoProps, staticProps) {
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
+ if (staticProps) defineProperties(Constructor, staticProps);
+ return Constructor;
+ };
+ }();
+
+/***/ }),
+/* 199 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(200), __esModule: true };
+
+/***/ }),
+/* 200 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var $ = __webpack_require__(183);
+ module.exports = function defineProperty(it, key, desc){
+ return $.setDesc(it, key, desc);
+ };
+
+/***/ }),
+/* 201 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _typeof2 = __webpack_require__(202);
+
+ var _typeof3 = _interopRequireDefault(_typeof2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function (self, call) {
+ if (!self) {
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ }
+
+ return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
+ };
+
+/***/ }),
+/* 202 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _iterator = __webpack_require__(203);
+
+ var _iterator2 = _interopRequireDefault(_iterator);
+
+ var _symbol = __webpack_require__(226);
+
+ var _symbol2 = _interopRequireDefault(_symbol);
+
+ var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
+ return typeof obj === "undefined" ? "undefined" : _typeof(obj);
+ } : function (obj) {
+ return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
+ };
+
+/***/ }),
+/* 203 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(204), __esModule: true };
+
+/***/ }),
+/* 204 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(205);
+ __webpack_require__(221);
+ module.exports = __webpack_require__(218)('iterator');
+
+/***/ }),
+/* 205 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ var $at = __webpack_require__(206)(true);
+
+ // 21.1.3.27 String.prototype[@@iterator]()
+ __webpack_require__(208)(String, 'String', function(iterated){
+ this._t = String(iterated); // target
+ this._i = 0; // next index
+ // 21.1.5.2.1 %StringIteratorPrototype%.next()
+ }, function(){
+ var O = this._t
+ , index = this._i
+ , point;
+ if(index >= O.length)return {value: undefined, done: true};
+ point = $at(O, index);
+ this._i += point.length;
+ return {value: point, done: false};
+ });
+
+/***/ }),
+/* 206 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var toInteger = __webpack_require__(207)
+ , defined = __webpack_require__(185);
+ // true -> String#at
+ // false -> String#codePointAt
+ module.exports = function(TO_STRING){
+ return function(that, pos){
+ var s = String(defined(that))
+ , i = toInteger(pos)
+ , l = s.length
+ , a, b;
+ if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
+ a = s.charCodeAt(i);
+ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
+ ? TO_STRING ? s.charAt(i) : a
+ : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
+ };
+ };
+
+/***/ }),
+/* 207 */
+/***/ (function(module, exports) {
+
+ // 7.1.4 ToInteger
+ var ceil = Math.ceil
+ , floor = Math.floor;
+ module.exports = function(it){
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
+ };
+
+/***/ }),
+/* 208 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ var LIBRARY = __webpack_require__(209)
+ , $export = __webpack_require__(177)
+ , redefine = __webpack_require__(210)
+ , hide = __webpack_require__(211)
+ , has = __webpack_require__(214)
+ , Iterators = __webpack_require__(215)
+ , $iterCreate = __webpack_require__(216)
+ , setToStringTag = __webpack_require__(217)
+ , getProto = __webpack_require__(183).getProto
+ , ITERATOR = __webpack_require__(218)('iterator')
+ , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
+ , FF_ITERATOR = '@@iterator'
+ , KEYS = 'keys'
+ , VALUES = 'values';
+
+ var returnThis = function(){ return this; };
+
+ module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
+ $iterCreate(Constructor, NAME, next);
+ var getMethod = function(kind){
+ if(!BUGGY && kind in proto)return proto[kind];
+ switch(kind){
+ case KEYS: return function keys(){ return new Constructor(this, kind); };
+ case VALUES: return function values(){ return new Constructor(this, kind); };
+ } return function entries(){ return new Constructor(this, kind); };
+ };
+ var TAG = NAME + ' Iterator'
+ , DEF_VALUES = DEFAULT == VALUES
+ , VALUES_BUG = false
+ , proto = Base.prototype
+ , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
+ , $default = $native || getMethod(DEFAULT)
+ , methods, key;
+ // Fix native
+ if($native){
+ var IteratorPrototype = getProto($default.call(new Base));
+ // Set @@toStringTag to native iterators
+ setToStringTag(IteratorPrototype, TAG, true);
+ // FF fix
+ if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
+ // fix Array#{values, @@iterator}.name in V8 / FF
+ if(DEF_VALUES && $native.name !== VALUES){
+ VALUES_BUG = true;
+ $default = function values(){ return $native.call(this); };
+ }
+ }
+ // Define iterator
+ if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
+ hide(proto, ITERATOR, $default);
+ }
+ // Plug for library
+ Iterators[NAME] = $default;
+ Iterators[TAG] = returnThis;
+ if(DEFAULT){
+ methods = {
+ values: DEF_VALUES ? $default : getMethod(VALUES),
+ keys: IS_SET ? $default : getMethod(KEYS),
+ entries: !DEF_VALUES ? $default : getMethod('entries')
+ };
+ if(FORCED)for(key in methods){
+ if(!(key in proto))redefine(proto, key, methods[key]);
+ } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
+ }
+ return methods;
+ };
+
+/***/ }),
+/* 209 */
+/***/ (function(module, exports) {
+
+ module.exports = true;
+
+/***/ }),
+/* 210 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = __webpack_require__(211);
+
+/***/ }),
+/* 211 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var $ = __webpack_require__(183)
+ , createDesc = __webpack_require__(212);
+ module.exports = __webpack_require__(213) ? function(object, key, value){
+ return $.setDesc(object, key, createDesc(1, value));
+ } : function(object, key, value){
+ object[key] = value;
+ return object;
+ };
+
+/***/ }),
+/* 212 */
+/***/ (function(module, exports) {
+
+ module.exports = function(bitmap, value){
+ return {
+ enumerable : !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable : !(bitmap & 4),
+ value : value
+ };
+ };
+
+/***/ }),
+/* 213 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // Thank's IE8 for his funny defineProperty
+ module.exports = !__webpack_require__(188)(function(){
+ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
+ });
+
+/***/ }),
+/* 214 */
+/***/ (function(module, exports) {
+
+ var hasOwnProperty = {}.hasOwnProperty;
+ module.exports = function(it, key){
+ return hasOwnProperty.call(it, key);
+ };
+
+/***/ }),
+/* 215 */
+/***/ (function(module, exports) {
+
+ module.exports = {};
+
+/***/ }),
+/* 216 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ var $ = __webpack_require__(183)
+ , descriptor = __webpack_require__(212)
+ , setToStringTag = __webpack_require__(217)
+ , IteratorPrototype = {};
+
+ // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
+ __webpack_require__(211)(IteratorPrototype, __webpack_require__(218)('iterator'), function(){ return this; });
+
+ module.exports = function(Constructor, NAME, next){
+ Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});
+ setToStringTag(Constructor, NAME + ' Iterator');
+ };
+
+/***/ }),
+/* 217 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var def = __webpack_require__(183).setDesc
+ , has = __webpack_require__(214)
+ , TAG = __webpack_require__(218)('toStringTag');
+
+ module.exports = function(it, tag, stat){
+ if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
+ };
+
+/***/ }),
+/* 218 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var store = __webpack_require__(219)('wks')
+ , uid = __webpack_require__(220)
+ , Symbol = __webpack_require__(178).Symbol;
+ module.exports = function(name){
+ return store[name] || (store[name] =
+ Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));
+ };
+
+/***/ }),
+/* 219 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var global = __webpack_require__(178)
+ , SHARED = '__core-js_shared__'
+ , store = global[SHARED] || (global[SHARED] = {});
+ module.exports = function(key){
+ return store[key] || (store[key] = {});
+ };
+
+/***/ }),
+/* 220 */
+/***/ (function(module, exports) {
+
+ var id = 0
+ , px = Math.random();
+ module.exports = function(key){
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+ };
+
+/***/ }),
+/* 221 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(222);
+ var Iterators = __webpack_require__(215);
+ Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;
+
+/***/ }),
+/* 222 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ var addToUnscopables = __webpack_require__(223)
+ , step = __webpack_require__(224)
+ , Iterators = __webpack_require__(215)
+ , toIObject = __webpack_require__(225);
+
+ // 22.1.3.4 Array.prototype.entries()
+ // 22.1.3.13 Array.prototype.keys()
+ // 22.1.3.29 Array.prototype.values()
+ // 22.1.3.30 Array.prototype[@@iterator]()
+ module.exports = __webpack_require__(208)(Array, 'Array', function(iterated, kind){
+ this._t = toIObject(iterated); // target
+ this._i = 0; // next index
+ this._k = kind; // kind
+ // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
+ }, function(){
+ var O = this._t
+ , kind = this._k
+ , index = this._i++;
+ if(!O || index >= O.length){
+ this._t = undefined;
+ return step(1);
+ }
+ if(kind == 'keys' )return step(0, index);
+ if(kind == 'values')return step(0, O[index]);
+ return step(0, [index, O[index]]);
+ }, 'values');
+
+ // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
+ Iterators.Arguments = Iterators.Array;
+
+ addToUnscopables('keys');
+ addToUnscopables('values');
+ addToUnscopables('entries');
+
+/***/ }),
+/* 223 */
+/***/ (function(module, exports) {
+
+ module.exports = function(){ /* empty */ };
+
+/***/ }),
+/* 224 */
+/***/ (function(module, exports) {
+
+ module.exports = function(done, value){
+ return {value: value, done: !!done};
+ };
+
+/***/ }),
+/* 225 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // to indexed object, toObject with fallback for non-array-like ES3 strings
+ var IObject = __webpack_require__(186)
+ , defined = __webpack_require__(185);
+ module.exports = function(it){
+ return IObject(defined(it));
+ };
+
+/***/ }),
+/* 226 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(227), __esModule: true };
+
+/***/ }),
+/* 227 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(228);
+ __webpack_require__(235);
+ module.exports = __webpack_require__(179).Symbol;
+
+/***/ }),
+/* 228 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ // ECMAScript 6 symbols shim
+ var $ = __webpack_require__(183)
+ , global = __webpack_require__(178)
+ , has = __webpack_require__(214)
+ , DESCRIPTORS = __webpack_require__(213)
+ , $export = __webpack_require__(177)
+ , redefine = __webpack_require__(210)
+ , $fails = __webpack_require__(188)
+ , shared = __webpack_require__(219)
+ , setToStringTag = __webpack_require__(217)
+ , uid = __webpack_require__(220)
+ , wks = __webpack_require__(218)
+ , keyOf = __webpack_require__(229)
+ , $names = __webpack_require__(230)
+ , enumKeys = __webpack_require__(231)
+ , isArray = __webpack_require__(232)
+ , anObject = __webpack_require__(233)
+ , toIObject = __webpack_require__(225)
+ , createDesc = __webpack_require__(212)
+ , getDesc = $.getDesc
+ , setDesc = $.setDesc
+ , _create = $.create
+ , getNames = $names.get
+ , $Symbol = global.Symbol
+ , $JSON = global.JSON
+ , _stringify = $JSON && $JSON.stringify
+ , setter = false
+ , HIDDEN = wks('_hidden')
+ , isEnum = $.isEnum
+ , SymbolRegistry = shared('symbol-registry')
+ , AllSymbols = shared('symbols')
+ , useNative = typeof $Symbol == 'function'
+ , ObjectProto = Object.prototype;
+
+ // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
+ var setSymbolDesc = DESCRIPTORS && $fails(function(){
+ return _create(setDesc({}, 'a', {
+ get: function(){ return setDesc(this, 'a', {value: 7}).a; }
+ })).a != 7;
+ }) ? function(it, key, D){
+ var protoDesc = getDesc(ObjectProto, key);
+ if(protoDesc)delete ObjectProto[key];
+ setDesc(it, key, D);
+ if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);
+ } : setDesc;
+
+ var wrap = function(tag){
+ var sym = AllSymbols[tag] = _create($Symbol.prototype);
+ sym._k = tag;
+ DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {
+ configurable: true,
+ set: function(value){
+ if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
+ setSymbolDesc(this, tag, createDesc(1, value));
+ }
+ });
+ return sym;
+ };
+
+ var isSymbol = function(it){
+ return typeof it == 'symbol';
+ };
+
+ var $defineProperty = function defineProperty(it, key, D){
+ if(D && has(AllSymbols, key)){
+ if(!D.enumerable){
+ if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));
+ it[HIDDEN][key] = true;
+ } else {
+ if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
+ D = _create(D, {enumerable: createDesc(0, false)});
+ } return setSymbolDesc(it, key, D);
+ } return setDesc(it, key, D);
+ };
+ var $defineProperties = function defineProperties(it, P){
+ anObject(it);
+ var keys = enumKeys(P = toIObject(P))
+ , i = 0
+ , l = keys.length
+ , key;
+ while(l > i)$defineProperty(it, key = keys[i++], P[key]);
+ return it;
+ };
+ var $create = function create(it, P){
+ return P === undefined ? _create(it) : $defineProperties(_create(it), P);
+ };
+ var $propertyIsEnumerable = function propertyIsEnumerable(key){
+ var E = isEnum.call(this, key);
+ return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]
+ ? E : true;
+ };
+ var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
+ var D = getDesc(it = toIObject(it), key);
+ if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
+ return D;
+ };
+ var $getOwnPropertyNames = function getOwnPropertyNames(it){
+ var names = getNames(toIObject(it))
+ , result = []
+ , i = 0
+ , key;
+ while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);
+ return result;
+ };
+ var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
+ var names = getNames(toIObject(it))
+ , result = []
+ , i = 0
+ , key;
+ while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);
+ return result;
+ };
+ var $stringify = function stringify(it){
+ if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
+ var args = [it]
+ , i = 1
+ , $$ = arguments
+ , replacer, $replacer;
+ while($$.length > i)args.push($$[i++]);
+ replacer = args[1];
+ if(typeof replacer == 'function')$replacer = replacer;
+ if($replacer || !isArray(replacer))replacer = function(key, value){
+ if($replacer)value = $replacer.call(this, key, value);
+ if(!isSymbol(value))return value;
+ };
+ args[1] = replacer;
+ return _stringify.apply($JSON, args);
+ };
+ var buggyJSON = $fails(function(){
+ var S = $Symbol();
+ // MS Edge converts symbol values to JSON as {}
+ // WebKit converts symbol values to JSON as null
+ // V8 throws on boxed symbols
+ return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
+ });
+
+ // 19.4.1.1 Symbol([description])
+ if(!useNative){
+ $Symbol = function Symbol(){
+ if(isSymbol(this))throw TypeError('Symbol is not a constructor');
+ return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));
+ };
+ redefine($Symbol.prototype, 'toString', function toString(){
+ return this._k;
+ });
+
+ isSymbol = function(it){
+ return it instanceof $Symbol;
+ };
+
+ $.create = $create;
+ $.isEnum = $propertyIsEnumerable;
+ $.getDesc = $getOwnPropertyDescriptor;
+ $.setDesc = $defineProperty;
+ $.setDescs = $defineProperties;
+ $.getNames = $names.get = $getOwnPropertyNames;
+ $.getSymbols = $getOwnPropertySymbols;
+
+ if(DESCRIPTORS && !__webpack_require__(209)){
+ redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
+ }
+ }
+
+ var symbolStatics = {
+ // 19.4.2.1 Symbol.for(key)
+ 'for': function(key){
+ return has(SymbolRegistry, key += '')
+ ? SymbolRegistry[key]
+ : SymbolRegistry[key] = $Symbol(key);
+ },
+ // 19.4.2.5 Symbol.keyFor(sym)
+ keyFor: function keyFor(key){
+ return keyOf(SymbolRegistry, key);
+ },
+ useSetter: function(){ setter = true; },
+ useSimple: function(){ setter = false; }
+ };
+ // 19.4.2.2 Symbol.hasInstance
+ // 19.4.2.3 Symbol.isConcatSpreadable
+ // 19.4.2.4 Symbol.iterator
+ // 19.4.2.6 Symbol.match
+ // 19.4.2.8 Symbol.replace
+ // 19.4.2.9 Symbol.search
+ // 19.4.2.10 Symbol.species
+ // 19.4.2.11 Symbol.split
+ // 19.4.2.12 Symbol.toPrimitive
+ // 19.4.2.13 Symbol.toStringTag
+ // 19.4.2.14 Symbol.unscopables
+ $.each.call((
+ 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
+ 'species,split,toPrimitive,toStringTag,unscopables'
+ ).split(','), function(it){
+ var sym = wks(it);
+ symbolStatics[it] = useNative ? sym : wrap(sym);
+ });
+
+ setter = true;
+
+ $export($export.G + $export.W, {Symbol: $Symbol});
+
+ $export($export.S, 'Symbol', symbolStatics);
+
+ $export($export.S + $export.F * !useNative, 'Object', {
+ // 19.1.2.2 Object.create(O [, Properties])
+ create: $create,
+ // 19.1.2.4 Object.defineProperty(O, P, Attributes)
+ defineProperty: $defineProperty,
+ // 19.1.2.3 Object.defineProperties(O, Properties)
+ defineProperties: $defineProperties,
+ // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
+ // 19.1.2.7 Object.getOwnPropertyNames(O)
+ getOwnPropertyNames: $getOwnPropertyNames,
+ // 19.1.2.8 Object.getOwnPropertySymbols(O)
+ getOwnPropertySymbols: $getOwnPropertySymbols
+ });
+
+ // 24.3.2 JSON.stringify(value [, replacer [, space]])
+ $JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});
+
+ // 19.4.3.5 Symbol.prototype[@@toStringTag]
+ setToStringTag($Symbol, 'Symbol');
+ // 20.2.1.9 Math[@@toStringTag]
+ setToStringTag(Math, 'Math', true);
+ // 24.3.3 JSON[@@toStringTag]
+ setToStringTag(global.JSON, 'JSON', true);
+
+/***/ }),
+/* 229 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var $ = __webpack_require__(183)
+ , toIObject = __webpack_require__(225);
+ module.exports = function(object, el){
+ var O = toIObject(object)
+ , keys = $.getKeys(O)
+ , length = keys.length
+ , index = 0
+ , key;
+ while(length > index)if(O[key = keys[index++]] === el)return key;
+ };
+
+/***/ }),
+/* 230 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
+ var toIObject = __webpack_require__(225)
+ , getNames = __webpack_require__(183).getNames
+ , toString = {}.toString;
+
+ var windowNames = typeof window == 'object' && Object.getOwnPropertyNames
+ ? Object.getOwnPropertyNames(window) : [];
+
+ var getWindowNames = function(it){
+ try {
+ return getNames(it);
+ } catch(e){
+ return windowNames.slice();
+ }
+ };
+
+ module.exports.get = function getOwnPropertyNames(it){
+ if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);
+ return getNames(toIObject(it));
+ };
+
+/***/ }),
+/* 231 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // all enumerable object keys, includes symbols
+ var $ = __webpack_require__(183);
+ module.exports = function(it){
+ var keys = $.getKeys(it)
+ , getSymbols = $.getSymbols;
+ if(getSymbols){
+ var symbols = getSymbols(it)
+ , isEnum = $.isEnum
+ , i = 0
+ , key;
+ while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);
+ }
+ return keys;
+ };
+
+/***/ }),
+/* 232 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 7.2.2 IsArray(argument)
+ var cof = __webpack_require__(187);
+ module.exports = Array.isArray || function(arg){
+ return cof(arg) == 'Array';
+ };
+
+/***/ }),
+/* 233 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var isObject = __webpack_require__(234);
+ module.exports = function(it){
+ if(!isObject(it))throw TypeError(it + ' is not an object!');
+ return it;
+ };
+
+/***/ }),
+/* 234 */
+/***/ (function(module, exports) {
+
+ module.exports = function(it){
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
+ };
+
+/***/ }),
+/* 235 */
+/***/ (function(module, exports) {
+
+
+
+/***/ }),
+/* 236 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _setPrototypeOf = __webpack_require__(237);
+
+ var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
+
+ var _create = __webpack_require__(241);
+
+ var _create2 = _interopRequireDefault(_create);
+
+ var _typeof2 = __webpack_require__(202);
+
+ var _typeof3 = _interopRequireDefault(_typeof2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function (subClass, superClass) {
+ if (typeof superClass !== "function" && superClass !== null) {
+ throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
+ }
+
+ subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
+ constructor: {
+ value: subClass,
+ enumerable: false,
+ writable: true,
+ configurable: true
+ }
+ });
+ if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
+ };
+
+/***/ }),
+/* 237 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(238), __esModule: true };
+
+/***/ }),
+/* 238 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(239);
+ module.exports = __webpack_require__(179).Object.setPrototypeOf;
+
+/***/ }),
+/* 239 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 19.1.3.19 Object.setPrototypeOf(O, proto)
+ var $export = __webpack_require__(177);
+ $export($export.S, 'Object', {setPrototypeOf: __webpack_require__(240).set});
+
+/***/ }),
+/* 240 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
+ /* eslint-disable no-proto */
+ var getDesc = __webpack_require__(183).getDesc
+ , isObject = __webpack_require__(234)
+ , anObject = __webpack_require__(233);
+ var check = function(O, proto){
+ anObject(O);
+ if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
+ };
+ module.exports = {
+ set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
+ function(test, buggy, set){
+ try {
+ set = __webpack_require__(180)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);
+ set(test, []);
+ buggy = !(test instanceof Array);
+ } catch(e){ buggy = true; }
+ return function setPrototypeOf(O, proto){
+ check(O, proto);
+ if(buggy)O.__proto__ = proto;
+ else set(O, proto);
+ return O;
+ };
+ }({}, false) : undefined),
+ check: check
+ };
+
+/***/ }),
+/* 241 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(242), __esModule: true };
+
+/***/ }),
+/* 242 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var $ = __webpack_require__(183);
+ module.exports = function create(P, D){
+ return $.create(P, D);
+ };
+
+/***/ }),
+/* 243 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _DateConstants = __webpack_require__(244);
+
+ var _DateConstants2 = _interopRequireDefault(_DateConstants);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var DateTHead = function (_React$Component) {
+ (0, _inherits3['default'])(DateTHead, _React$Component);
+
+ function DateTHead() {
+ (0, _classCallCheck3['default'])(this, DateTHead);
+ return (0, _possibleConstructorReturn3['default'])(this, (DateTHead.__proto__ || Object.getPrototypeOf(DateTHead)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(DateTHead, [{
+ key: 'render',
+ value: function render() {
+ var props = this.props;
+ var value = props.value;
+ var localeData = value.localeData();
+ var prefixCls = props.prefixCls;
+ var veryShortWeekdays = [];
+ var weekDays = [];
+ var firstDayOfWeek = localeData.firstDayOfWeek();
+ var showWeekNumberEl = void 0;
+ var now = (0, _moment2['default'])();
+ for (var dateColIndex = 0; dateColIndex < _DateConstants2['default'].DATE_COL_COUNT; dateColIndex++) {
+ var index = (firstDayOfWeek + dateColIndex) % _DateConstants2['default'].DATE_COL_COUNT;
+ now.day(index);
+ veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);
+ weekDays[dateColIndex] = localeData.weekdaysShort(now);
+ }
+
+ if (props.showWeekNumber) {
+ showWeekNumberEl = _react2['default'].createElement(
+ 'th',
+ {
+ role: 'columnheader',
+ className: prefixCls + '-column-header ' + prefixCls + '-week-number-header'
+ },
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-column-header-inner' },
+ 'x'
+ )
+ );
+ }
+ var weekDaysEls = weekDays.map(function (day, xindex) {
+ return _react2['default'].createElement(
+ 'th',
+ {
+ key: xindex,
+ role: 'columnheader',
+ title: day,
+ className: prefixCls + '-column-header'
+ },
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-column-header-inner' },
+ veryShortWeekdays[xindex]
+ )
+ );
+ });
+ return _react2['default'].createElement(
+ 'thead',
+ null,
+ _react2['default'].createElement(
+ 'tr',
+ { role: 'row' },
+ showWeekNumberEl,
+ weekDaysEls
+ )
+ );
+ }
+ }]);
+ return DateTHead;
+ }(_react2['default'].Component);
+
+ exports['default'] = DateTHead;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 244 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = {
+ DATE_ROW_COUNT: 6,
+ DATE_COL_COUNT: 7
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 245 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var require;/* WEBPACK VAR INJECTION */(function(module) {//! moment.js
+
+ ;(function (global, factory) {
+ true ? module.exports = factory() :
+ typeof define === 'function' && define.amd ? define(factory) :
+ global.moment = factory()
+ }(this, (function () { 'use strict';
+
+ var hookCallback;
+
+ function hooks () {
+ return hookCallback.apply(null, arguments);
+ }
+
+ // This is done to register the method called with moment()
+ // without creating circular dependencies.
+ function setHookCallback (callback) {
+ hookCallback = callback;
+ }
+
+ function isArray(input) {
+ return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
+ }
+
+ function isObject(input) {
+ // IE8 will treat undefined and null as object if it wasn't for
+ // input != null
+ return input != null && Object.prototype.toString.call(input) === '[object Object]';
+ }
+
+ function isObjectEmpty(obj) {
+ if (Object.getOwnPropertyNames) {
+ return (Object.getOwnPropertyNames(obj).length === 0);
+ } else {
+ var k;
+ for (k in obj) {
+ if (obj.hasOwnProperty(k)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ }
+
+ function isUndefined(input) {
+ return input === void 0;
+ }
+
+ function isNumber(input) {
+ return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
+ }
+
+ function isDate(input) {
+ return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
+ }
+
+ function map(arr, fn) {
+ var res = [], i;
+ for (i = 0; i < arr.length; ++i) {
+ res.push(fn(arr[i], i));
+ }
+ return res;
+ }
+
+ function hasOwnProp(a, b) {
+ return Object.prototype.hasOwnProperty.call(a, b);
+ }
+
+ function extend(a, b) {
+ for (var i in b) {
+ if (hasOwnProp(b, i)) {
+ a[i] = b[i];
+ }
+ }
+
+ if (hasOwnProp(b, 'toString')) {
+ a.toString = b.toString;
+ }
+
+ if (hasOwnProp(b, 'valueOf')) {
+ a.valueOf = b.valueOf;
+ }
+
+ return a;
+ }
+
+ function createUTC (input, format, locale, strict) {
+ return createLocalOrUTC(input, format, locale, strict, true).utc();
+ }
+
+ function defaultParsingFlags() {
+ // We need to deep clone this object.
+ return {
+ empty : false,
+ unusedTokens : [],
+ unusedInput : [],
+ overflow : -2,
+ charsLeftOver : 0,
+ nullInput : false,
+ invalidMonth : null,
+ invalidFormat : false,
+ userInvalidated : false,
+ iso : false,
+ parsedDateParts : [],
+ meridiem : null,
+ rfc2822 : false,
+ weekdayMismatch : false
+ };
+ }
+
+ function getParsingFlags(m) {
+ if (m._pf == null) {
+ m._pf = defaultParsingFlags();
+ }
+ return m._pf;
+ }
+
+ var some;
+ if (Array.prototype.some) {
+ some = Array.prototype.some;
+ } else {
+ some = function (fun) {
+ var t = Object(this);
+ var len = t.length >>> 0;
+
+ for (var i = 0; i < len; i++) {
+ if (i in t && fun.call(this, t[i], i, t)) {
+ return true;
+ }
+ }
+
+ return false;
+ };
+ }
+
+ function isValid(m) {
+ if (m._isValid == null) {
+ var flags = getParsingFlags(m);
+ var parsedParts = some.call(flags.parsedDateParts, function (i) {
+ return i != null;
+ });
+ var isNowValid = !isNaN(m._d.getTime()) &&
+ flags.overflow < 0 &&
+ !flags.empty &&
+ !flags.invalidMonth &&
+ !flags.invalidWeekday &&
+ !flags.weekdayMismatch &&
+ !flags.nullInput &&
+ !flags.invalidFormat &&
+ !flags.userInvalidated &&
+ (!flags.meridiem || (flags.meridiem && parsedParts));
+
+ if (m._strict) {
+ isNowValid = isNowValid &&
+ flags.charsLeftOver === 0 &&
+ flags.unusedTokens.length === 0 &&
+ flags.bigHour === undefined;
+ }
+
+ if (Object.isFrozen == null || !Object.isFrozen(m)) {
+ m._isValid = isNowValid;
+ }
+ else {
+ return isNowValid;
+ }
+ }
+ return m._isValid;
+ }
+
+ function createInvalid (flags) {
+ var m = createUTC(NaN);
+ if (flags != null) {
+ extend(getParsingFlags(m), flags);
+ }
+ else {
+ getParsingFlags(m).userInvalidated = true;
+ }
+
+ return m;
+ }
+
+ // Plugins that add properties should also add the key here (null value),
+ // so we can properly clone ourselves.
+ var momentProperties = hooks.momentProperties = [];
+
+ function copyConfig(to, from) {
+ var i, prop, val;
+
+ if (!isUndefined(from._isAMomentObject)) {
+ to._isAMomentObject = from._isAMomentObject;
+ }
+ if (!isUndefined(from._i)) {
+ to._i = from._i;
+ }
+ if (!isUndefined(from._f)) {
+ to._f = from._f;
+ }
+ if (!isUndefined(from._l)) {
+ to._l = from._l;
+ }
+ if (!isUndefined(from._strict)) {
+ to._strict = from._strict;
+ }
+ if (!isUndefined(from._tzm)) {
+ to._tzm = from._tzm;
+ }
+ if (!isUndefined(from._isUTC)) {
+ to._isUTC = from._isUTC;
+ }
+ if (!isUndefined(from._offset)) {
+ to._offset = from._offset;
+ }
+ if (!isUndefined(from._pf)) {
+ to._pf = getParsingFlags(from);
+ }
+ if (!isUndefined(from._locale)) {
+ to._locale = from._locale;
+ }
+
+ if (momentProperties.length > 0) {
+ for (i = 0; i < momentProperties.length; i++) {
+ prop = momentProperties[i];
+ val = from[prop];
+ if (!isUndefined(val)) {
+ to[prop] = val;
+ }
+ }
+ }
+
+ return to;
+ }
+
+ var updateInProgress = false;
+
+ // Moment prototype object
+ function Moment(config) {
+ copyConfig(this, config);
+ this._d = new Date(config._d != null ? config._d.getTime() : NaN);
+ if (!this.isValid()) {
+ this._d = new Date(NaN);
+ }
+ // Prevent infinite loop in case updateOffset creates new moment
+ // objects.
+ if (updateInProgress === false) {
+ updateInProgress = true;
+ hooks.updateOffset(this);
+ updateInProgress = false;
+ }
+ }
+
+ function isMoment (obj) {
+ return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
+ }
+
+ function absFloor (number) {
+ if (number < 0) {
+ // -0 -> 0
+ return Math.ceil(number) || 0;
+ } else {
+ return Math.floor(number);
+ }
+ }
+
+ function toInt(argumentForCoercion) {
+ var coercedNumber = +argumentForCoercion,
+ value = 0;
+
+ if (coercedNumber !== 0 && isFinite(coercedNumber)) {
+ value = absFloor(coercedNumber);
+ }
+
+ return value;
+ }
+
+ // compare two arrays, return the number of differences
+ function compareArrays(array1, array2, dontConvert) {
+ var len = Math.min(array1.length, array2.length),
+ lengthDiff = Math.abs(array1.length - array2.length),
+ diffs = 0,
+ i;
+ for (i = 0; i < len; i++) {
+ if ((dontConvert && array1[i] !== array2[i]) ||
+ (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
+ diffs++;
+ }
+ }
+ return diffs + lengthDiff;
+ }
+
+ function warn(msg) {
+ if (hooks.suppressDeprecationWarnings === false &&
+ (typeof console !== 'undefined') && console.warn) {
+ console.warn('Deprecation warning: ' + msg);
+ }
+ }
+
+ function deprecate(msg, fn) {
+ var firstTime = true;
+
+ return extend(function () {
+ if (hooks.deprecationHandler != null) {
+ hooks.deprecationHandler(null, msg);
+ }
+ if (firstTime) {
+ var args = [];
+ var arg;
+ for (var i = 0; i < arguments.length; i++) {
+ arg = '';
+ if (typeof arguments[i] === 'object') {
+ arg += '\n[' + i + '] ';
+ for (var key in arguments[0]) {
+ arg += key + ': ' + arguments[0][key] + ', ';
+ }
+ arg = arg.slice(0, -2); // Remove trailing comma and space
+ } else {
+ arg = arguments[i];
+ }
+ args.push(arg);
+ }
+ warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
+ firstTime = false;
+ }
+ return fn.apply(this, arguments);
+ }, fn);
+ }
+
+ var deprecations = {};
+
+ function deprecateSimple(name, msg) {
+ if (hooks.deprecationHandler != null) {
+ hooks.deprecationHandler(name, msg);
+ }
+ if (!deprecations[name]) {
+ warn(msg);
+ deprecations[name] = true;
+ }
+ }
+
+ hooks.suppressDeprecationWarnings = false;
+ hooks.deprecationHandler = null;
+
+ function isFunction(input) {
+ return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
+ }
+
+ function set (config) {
+ var prop, i;
+ for (i in config) {
+ prop = config[i];
+ if (isFunction(prop)) {
+ this[i] = prop;
+ } else {
+ this['_' + i] = prop;
+ }
+ }
+ this._config = config;
+ // Lenient ordinal parsing accepts just a number in addition to
+ // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
+ // TODO: Remove "ordinalParse" fallback in next major release.
+ this._dayOfMonthOrdinalParseLenient = new RegExp(
+ (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
+ '|' + (/\d{1,2}/).source);
+ }
+
+ function mergeConfigs(parentConfig, childConfig) {
+ var res = extend({}, parentConfig), prop;
+ for (prop in childConfig) {
+ if (hasOwnProp(childConfig, prop)) {
+ if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
+ res[prop] = {};
+ extend(res[prop], parentConfig[prop]);
+ extend(res[prop], childConfig[prop]);
+ } else if (childConfig[prop] != null) {
+ res[prop] = childConfig[prop];
+ } else {
+ delete res[prop];
+ }
+ }
+ }
+ for (prop in parentConfig) {
+ if (hasOwnProp(parentConfig, prop) &&
+ !hasOwnProp(childConfig, prop) &&
+ isObject(parentConfig[prop])) {
+ // make sure changes to properties don't modify parent config
+ res[prop] = extend({}, res[prop]);
+ }
+ }
+ return res;
+ }
+
+ function Locale(config) {
+ if (config != null) {
+ this.set(config);
+ }
+ }
+
+ var keys;
+
+ if (Object.keys) {
+ keys = Object.keys;
+ } else {
+ keys = function (obj) {
+ var i, res = [];
+ for (i in obj) {
+ if (hasOwnProp(obj, i)) {
+ res.push(i);
+ }
+ }
+ return res;
+ };
+ }
+
+ var defaultCalendar = {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ };
+
+ function calendar (key, mom, now) {
+ var output = this._calendar[key] || this._calendar['sameElse'];
+ return isFunction(output) ? output.call(mom, now) : output;
+ }
+
+ var defaultLongDateFormat = {
+ LTS : 'h:mm:ss A',
+ LT : 'h:mm A',
+ L : 'MM/DD/YYYY',
+ LL : 'MMMM D, YYYY',
+ LLL : 'MMMM D, YYYY h:mm A',
+ LLLL : 'dddd, MMMM D, YYYY h:mm A'
+ };
+
+ function longDateFormat (key) {
+ var format = this._longDateFormat[key],
+ formatUpper = this._longDateFormat[key.toUpperCase()];
+
+ if (format || !formatUpper) {
+ return format;
+ }
+
+ this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
+ return val.slice(1);
+ });
+
+ return this._longDateFormat[key];
+ }
+
+ var defaultInvalidDate = 'Invalid date';
+
+ function invalidDate () {
+ return this._invalidDate;
+ }
+
+ var defaultOrdinal = '%d';
+ var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
+
+ function ordinal (number) {
+ return this._ordinal.replace('%d', number);
+ }
+
+ var defaultRelativeTime = {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ };
+
+ function relativeTime (number, withoutSuffix, string, isFuture) {
+ var output = this._relativeTime[string];
+ return (isFunction(output)) ?
+ output(number, withoutSuffix, string, isFuture) :
+ output.replace(/%d/i, number);
+ }
+
+ function pastFuture (diff, output) {
+ var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
+ return isFunction(format) ? format(output) : format.replace(/%s/i, output);
+ }
+
+ var aliases = {};
+
+ function addUnitAlias (unit, shorthand) {
+ var lowerCase = unit.toLowerCase();
+ aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
+ }
+
+ function normalizeUnits(units) {
+ return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
+ }
+
+ function normalizeObjectUnits(inputObject) {
+ var normalizedInput = {},
+ normalizedProp,
+ prop;
+
+ for (prop in inputObject) {
+ if (hasOwnProp(inputObject, prop)) {
+ normalizedProp = normalizeUnits(prop);
+ if (normalizedProp) {
+ normalizedInput[normalizedProp] = inputObject[prop];
+ }
+ }
+ }
+
+ return normalizedInput;
+ }
+
+ var priorities = {};
+
+ function addUnitPriority(unit, priority) {
+ priorities[unit] = priority;
+ }
+
+ function getPrioritizedUnits(unitsObj) {
+ var units = [];
+ for (var u in unitsObj) {
+ units.push({unit: u, priority: priorities[u]});
+ }
+ units.sort(function (a, b) {
+ return a.priority - b.priority;
+ });
+ return units;
+ }
+
+ function zeroFill(number, targetLength, forceSign) {
+ var absNumber = '' + Math.abs(number),
+ zerosToFill = targetLength - absNumber.length,
+ sign = number >= 0;
+ return (sign ? (forceSign ? '+' : '') : '-') +
+ Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
+ }
+
+ var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
+
+ var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
+
+ var formatFunctions = {};
+
+ var formatTokenFunctions = {};
+
+ // token: 'M'
+ // padded: ['MM', 2]
+ // ordinal: 'Mo'
+ // callback: function () { this.month() + 1 }
+ function addFormatToken (token, padded, ordinal, callback) {
+ var func = callback;
+ if (typeof callback === 'string') {
+ func = function () {
+ return this[callback]();
+ };
+ }
+ if (token) {
+ formatTokenFunctions[token] = func;
+ }
+ if (padded) {
+ formatTokenFunctions[padded[0]] = function () {
+ return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
+ };
+ }
+ if (ordinal) {
+ formatTokenFunctions[ordinal] = function () {
+ return this.localeData().ordinal(func.apply(this, arguments), token);
+ };
+ }
+ }
+
+ function removeFormattingTokens(input) {
+ if (input.match(/\[[\s\S]/)) {
+ return input.replace(/^\[|\]$/g, '');
+ }
+ return input.replace(/\\/g, '');
+ }
+
+ function makeFormatFunction(format) {
+ var array = format.match(formattingTokens), i, length;
+
+ for (i = 0, length = array.length; i < length; i++) {
+ if (formatTokenFunctions[array[i]]) {
+ array[i] = formatTokenFunctions[array[i]];
+ } else {
+ array[i] = removeFormattingTokens(array[i]);
+ }
+ }
+
+ return function (mom) {
+ var output = '', i;
+ for (i = 0; i < length; i++) {
+ output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
+ }
+ return output;
+ };
+ }
+
+ // format date using native date object
+ function formatMoment(m, format) {
+ if (!m.isValid()) {
+ return m.localeData().invalidDate();
+ }
+
+ format = expandFormat(format, m.localeData());
+ formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
+
+ return formatFunctions[format](m);
+ }
+
+ function expandFormat(format, locale) {
+ var i = 5;
+
+ function replaceLongDateFormatTokens(input) {
+ return locale.longDateFormat(input) || input;
+ }
+
+ localFormattingTokens.lastIndex = 0;
+ while (i >= 0 && localFormattingTokens.test(format)) {
+ format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
+ localFormattingTokens.lastIndex = 0;
+ i -= 1;
+ }
+
+ return format;
+ }
+
+ var match1 = /\d/; // 0 - 9
+ var match2 = /\d\d/; // 00 - 99
+ var match3 = /\d{3}/; // 000 - 999
+ var match4 = /\d{4}/; // 0000 - 9999
+ var match6 = /[+-]?\d{6}/; // -999999 - 999999
+ var match1to2 = /\d\d?/; // 0 - 99
+ var match3to4 = /\d\d\d\d?/; // 999 - 9999
+ var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
+ var match1to3 = /\d{1,3}/; // 0 - 999
+ var match1to4 = /\d{1,4}/; // 0 - 9999
+ var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
+
+ var matchUnsigned = /\d+/; // 0 - inf
+ var matchSigned = /[+-]?\d+/; // -inf - inf
+
+ var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
+ var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
+
+ var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
+
+ // any word (or two) characters or numbers including two/three word month in arabic.
+ // includes scottish gaelic two word and hyphenated months
+ var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
+
+ var regexes = {};
+
+ function addRegexToken (token, regex, strictRegex) {
+ regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
+ return (isStrict && strictRegex) ? strictRegex : regex;
+ };
+ }
+
+ function getParseRegexForToken (token, config) {
+ if (!hasOwnProp(regexes, token)) {
+ return new RegExp(unescapeFormat(token));
+ }
+
+ return regexes[token](config._strict, config._locale);
+ }
+
+ // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
+ function unescapeFormat(s) {
+ return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
+ return p1 || p2 || p3 || p4;
+ }));
+ }
+
+ function regexEscape(s) {
+ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
+ }
+
+ var tokens = {};
+
+ function addParseToken (token, callback) {
+ var i, func = callback;
+ if (typeof token === 'string') {
+ token = [token];
+ }
+ if (isNumber(callback)) {
+ func = function (input, array) {
+ array[callback] = toInt(input);
+ };
+ }
+ for (i = 0; i < token.length; i++) {
+ tokens[token[i]] = func;
+ }
+ }
+
+ function addWeekParseToken (token, callback) {
+ addParseToken(token, function (input, array, config, token) {
+ config._w = config._w || {};
+ callback(input, config._w, config, token);
+ });
+ }
+
+ function addTimeToArrayFromToken(token, input, config) {
+ if (input != null && hasOwnProp(tokens, token)) {
+ tokens[token](input, config._a, config, token);
+ }
+ }
+
+ var YEAR = 0;
+ var MONTH = 1;
+ var DATE = 2;
+ var HOUR = 3;
+ var MINUTE = 4;
+ var SECOND = 5;
+ var MILLISECOND = 6;
+ var WEEK = 7;
+ var WEEKDAY = 8;
+
+ // FORMATTING
+
+ addFormatToken('Y', 0, 0, function () {
+ var y = this.year();
+ return y <= 9999 ? '' + y : '+' + y;
+ });
+
+ addFormatToken(0, ['YY', 2], 0, function () {
+ return this.year() % 100;
+ });
+
+ addFormatToken(0, ['YYYY', 4], 0, 'year');
+ addFormatToken(0, ['YYYYY', 5], 0, 'year');
+ addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
+
+ // ALIASES
+
+ addUnitAlias('year', 'y');
+
+ // PRIORITIES
+
+ addUnitPriority('year', 1);
+
+ // PARSING
+
+ addRegexToken('Y', matchSigned);
+ addRegexToken('YY', match1to2, match2);
+ addRegexToken('YYYY', match1to4, match4);
+ addRegexToken('YYYYY', match1to6, match6);
+ addRegexToken('YYYYYY', match1to6, match6);
+
+ addParseToken(['YYYYY', 'YYYYYY'], YEAR);
+ addParseToken('YYYY', function (input, array) {
+ array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
+ });
+ addParseToken('YY', function (input, array) {
+ array[YEAR] = hooks.parseTwoDigitYear(input);
+ });
+ addParseToken('Y', function (input, array) {
+ array[YEAR] = parseInt(input, 10);
+ });
+
+ // HELPERS
+
+ function daysInYear(year) {
+ return isLeapYear(year) ? 366 : 365;
+ }
+
+ function isLeapYear(year) {
+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
+ }
+
+ // HOOKS
+
+ hooks.parseTwoDigitYear = function (input) {
+ return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
+ };
+
+ // MOMENTS
+
+ var getSetYear = makeGetSet('FullYear', true);
+
+ function getIsLeapYear () {
+ return isLeapYear(this.year());
+ }
+
+ function makeGetSet (unit, keepTime) {
+ return function (value) {
+ if (value != null) {
+ set$1(this, unit, value);
+ hooks.updateOffset(this, keepTime);
+ return this;
+ } else {
+ return get(this, unit);
+ }
+ };
+ }
+
+ function get (mom, unit) {
+ return mom.isValid() ?
+ mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
+ }
+
+ function set$1 (mom, unit, value) {
+ if (mom.isValid() && !isNaN(value)) {
+ if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
+ mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
+ }
+ else {
+ mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
+ }
+ }
+ }
+
+ // MOMENTS
+
+ function stringGet (units) {
+ units = normalizeUnits(units);
+ if (isFunction(this[units])) {
+ return this[units]();
+ }
+ return this;
+ }
+
+
+ function stringSet (units, value) {
+ if (typeof units === 'object') {
+ units = normalizeObjectUnits(units);
+ var prioritized = getPrioritizedUnits(units);
+ for (var i = 0; i < prioritized.length; i++) {
+ this[prioritized[i].unit](units[prioritized[i].unit]);
+ }
+ } else {
+ units = normalizeUnits(units);
+ if (isFunction(this[units])) {
+ return this[units](value);
+ }
+ }
+ return this;
+ }
+
+ function mod(n, x) {
+ return ((n % x) + x) % x;
+ }
+
+ var indexOf;
+
+ if (Array.prototype.indexOf) {
+ indexOf = Array.prototype.indexOf;
+ } else {
+ indexOf = function (o) {
+ // I know
+ var i;
+ for (i = 0; i < this.length; ++i) {
+ if (this[i] === o) {
+ return i;
+ }
+ }
+ return -1;
+ };
+ }
+
+ function daysInMonth(year, month) {
+ if (isNaN(year) || isNaN(month)) {
+ return NaN;
+ }
+ var modMonth = mod(month, 12);
+ year += (month - modMonth) / 12;
+ return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
+ }
+
+ // FORMATTING
+
+ addFormatToken('M', ['MM', 2], 'Mo', function () {
+ return this.month() + 1;
+ });
+
+ addFormatToken('MMM', 0, 0, function (format) {
+ return this.localeData().monthsShort(this, format);
+ });
+
+ addFormatToken('MMMM', 0, 0, function (format) {
+ return this.localeData().months(this, format);
+ });
+
+ // ALIASES
+
+ addUnitAlias('month', 'M');
+
+ // PRIORITY
+
+ addUnitPriority('month', 8);
+
+ // PARSING
+
+ addRegexToken('M', match1to2);
+ addRegexToken('MM', match1to2, match2);
+ addRegexToken('MMM', function (isStrict, locale) {
+ return locale.monthsShortRegex(isStrict);
+ });
+ addRegexToken('MMMM', function (isStrict, locale) {
+ return locale.monthsRegex(isStrict);
+ });
+
+ addParseToken(['M', 'MM'], function (input, array) {
+ array[MONTH] = toInt(input) - 1;
+ });
+
+ addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
+ var month = config._locale.monthsParse(input, token, config._strict);
+ // if we didn't find a month name, mark the date as invalid.
+ if (month != null) {
+ array[MONTH] = month;
+ } else {
+ getParsingFlags(config).invalidMonth = input;
+ }
+ });
+
+ // LOCALES
+
+ var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
+ var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
+ function localeMonths (m, format) {
+ if (!m) {
+ return isArray(this._months) ? this._months :
+ this._months['standalone'];
+ }
+ return isArray(this._months) ? this._months[m.month()] :
+ this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
+ }
+
+ var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
+ function localeMonthsShort (m, format) {
+ if (!m) {
+ return isArray(this._monthsShort) ? this._monthsShort :
+ this._monthsShort['standalone'];
+ }
+ return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
+ this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
+ }
+
+ function handleStrictParse(monthName, format, strict) {
+ var i, ii, mom, llc = monthName.toLocaleLowerCase();
+ if (!this._monthsParse) {
+ // this is not used
+ this._monthsParse = [];
+ this._longMonthsParse = [];
+ this._shortMonthsParse = [];
+ for (i = 0; i < 12; ++i) {
+ mom = createUTC([2000, i]);
+ this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
+ this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
+ }
+ }
+
+ if (strict) {
+ if (format === 'MMM') {
+ ii = indexOf.call(this._shortMonthsParse, llc);
+ return ii !== -1 ? ii : null;
+ } else {
+ ii = indexOf.call(this._longMonthsParse, llc);
+ return ii !== -1 ? ii : null;
+ }
+ } else {
+ if (format === 'MMM') {
+ ii = indexOf.call(this._shortMonthsParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._longMonthsParse, llc);
+ return ii !== -1 ? ii : null;
+ } else {
+ ii = indexOf.call(this._longMonthsParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._shortMonthsParse, llc);
+ return ii !== -1 ? ii : null;
+ }
+ }
+ }
+
+ function localeMonthsParse (monthName, format, strict) {
+ var i, mom, regex;
+
+ if (this._monthsParseExact) {
+ return handleStrictParse.call(this, monthName, format, strict);
+ }
+
+ if (!this._monthsParse) {
+ this._monthsParse = [];
+ this._longMonthsParse = [];
+ this._shortMonthsParse = [];
+ }
+
+ // TODO: add sorting
+ // Sorting makes sure if one month (or abbr) is a prefix of another
+ // see sorting in computeMonthsParse
+ for (i = 0; i < 12; i++) {
+ // make the regex if we don't have it already
+ mom = createUTC([2000, i]);
+ if (strict && !this._longMonthsParse[i]) {
+ this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
+ this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
+ }
+ if (!strict && !this._monthsParse[i]) {
+ regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
+ this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
+ }
+ // test the regex
+ if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
+ return i;
+ } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
+ return i;
+ } else if (!strict && this._monthsParse[i].test(monthName)) {
+ return i;
+ }
+ }
+ }
+
+ // MOMENTS
+
+ function setMonth (mom, value) {
+ var dayOfMonth;
+
+ if (!mom.isValid()) {
+ // No op
+ return mom;
+ }
+
+ if (typeof value === 'string') {
+ if (/^\d+$/.test(value)) {
+ value = toInt(value);
+ } else {
+ value = mom.localeData().monthsParse(value);
+ // TODO: Another silent failure?
+ if (!isNumber(value)) {
+ return mom;
+ }
+ }
+ }
+
+ dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
+ mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
+ return mom;
+ }
+
+ function getSetMonth (value) {
+ if (value != null) {
+ setMonth(this, value);
+ hooks.updateOffset(this, true);
+ return this;
+ } else {
+ return get(this, 'Month');
+ }
+ }
+
+ function getDaysInMonth () {
+ return daysInMonth(this.year(), this.month());
+ }
+
+ var defaultMonthsShortRegex = matchWord;
+ function monthsShortRegex (isStrict) {
+ if (this._monthsParseExact) {
+ if (!hasOwnProp(this, '_monthsRegex')) {
+ computeMonthsParse.call(this);
+ }
+ if (isStrict) {
+ return this._monthsShortStrictRegex;
+ } else {
+ return this._monthsShortRegex;
+ }
+ } else {
+ if (!hasOwnProp(this, '_monthsShortRegex')) {
+ this._monthsShortRegex = defaultMonthsShortRegex;
+ }
+ return this._monthsShortStrictRegex && isStrict ?
+ this._monthsShortStrictRegex : this._monthsShortRegex;
+ }
+ }
+
+ var defaultMonthsRegex = matchWord;
+ function monthsRegex (isStrict) {
+ if (this._monthsParseExact) {
+ if (!hasOwnProp(this, '_monthsRegex')) {
+ computeMonthsParse.call(this);
+ }
+ if (isStrict) {
+ return this._monthsStrictRegex;
+ } else {
+ return this._monthsRegex;
+ }
+ } else {
+ if (!hasOwnProp(this, '_monthsRegex')) {
+ this._monthsRegex = defaultMonthsRegex;
+ }
+ return this._monthsStrictRegex && isStrict ?
+ this._monthsStrictRegex : this._monthsRegex;
+ }
+ }
+
+ function computeMonthsParse () {
+ function cmpLenRev(a, b) {
+ return b.length - a.length;
+ }
+
+ var shortPieces = [], longPieces = [], mixedPieces = [],
+ i, mom;
+ for (i = 0; i < 12; i++) {
+ // make the regex if we don't have it already
+ mom = createUTC([2000, i]);
+ shortPieces.push(this.monthsShort(mom, ''));
+ longPieces.push(this.months(mom, ''));
+ mixedPieces.push(this.months(mom, ''));
+ mixedPieces.push(this.monthsShort(mom, ''));
+ }
+ // Sorting makes sure if one month (or abbr) is a prefix of another it
+ // will match the longer piece.
+ shortPieces.sort(cmpLenRev);
+ longPieces.sort(cmpLenRev);
+ mixedPieces.sort(cmpLenRev);
+ for (i = 0; i < 12; i++) {
+ shortPieces[i] = regexEscape(shortPieces[i]);
+ longPieces[i] = regexEscape(longPieces[i]);
+ }
+ for (i = 0; i < 24; i++) {
+ mixedPieces[i] = regexEscape(mixedPieces[i]);
+ }
+
+ this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
+ this._monthsShortRegex = this._monthsRegex;
+ this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
+ this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
+ }
+
+ function createDate (y, m, d, h, M, s, ms) {
+ // can't just apply() to create a date:
+ // https://stackoverflow.com/q/181348
+ var date = new Date(y, m, d, h, M, s, ms);
+
+ // the date constructor remaps years 0-99 to 1900-1999
+ if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
+ date.setFullYear(y);
+ }
+ return date;
+ }
+
+ function createUTCDate (y) {
+ var date = new Date(Date.UTC.apply(null, arguments));
+
+ // the Date.UTC function remaps years 0-99 to 1900-1999
+ if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
+ date.setUTCFullYear(y);
+ }
+ return date;
+ }
+
+ // start-of-first-week - start-of-year
+ function firstWeekOffset(year, dow, doy) {
+ var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
+ fwd = 7 + dow - doy,
+ // first-week day local weekday -- which local weekday is fwd
+ fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
+
+ return -fwdlw + fwd - 1;
+ }
+
+ // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
+ function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
+ var localWeekday = (7 + weekday - dow) % 7,
+ weekOffset = firstWeekOffset(year, dow, doy),
+ dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
+ resYear, resDayOfYear;
+
+ if (dayOfYear <= 0) {
+ resYear = year - 1;
+ resDayOfYear = daysInYear(resYear) + dayOfYear;
+ } else if (dayOfYear > daysInYear(year)) {
+ resYear = year + 1;
+ resDayOfYear = dayOfYear - daysInYear(year);
+ } else {
+ resYear = year;
+ resDayOfYear = dayOfYear;
+ }
+
+ return {
+ year: resYear,
+ dayOfYear: resDayOfYear
+ };
+ }
+
+ function weekOfYear(mom, dow, doy) {
+ var weekOffset = firstWeekOffset(mom.year(), dow, doy),
+ week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
+ resWeek, resYear;
+
+ if (week < 1) {
+ resYear = mom.year() - 1;
+ resWeek = week + weeksInYear(resYear, dow, doy);
+ } else if (week > weeksInYear(mom.year(), dow, doy)) {
+ resWeek = week - weeksInYear(mom.year(), dow, doy);
+ resYear = mom.year() + 1;
+ } else {
+ resYear = mom.year();
+ resWeek = week;
+ }
+
+ return {
+ week: resWeek,
+ year: resYear
+ };
+ }
+
+ function weeksInYear(year, dow, doy) {
+ var weekOffset = firstWeekOffset(year, dow, doy),
+ weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
+ return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
+ }
+
+ // FORMATTING
+
+ addFormatToken('w', ['ww', 2], 'wo', 'week');
+ addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
+
+ // ALIASES
+
+ addUnitAlias('week', 'w');
+ addUnitAlias('isoWeek', 'W');
+
+ // PRIORITIES
+
+ addUnitPriority('week', 5);
+ addUnitPriority('isoWeek', 5);
+
+ // PARSING
+
+ addRegexToken('w', match1to2);
+ addRegexToken('ww', match1to2, match2);
+ addRegexToken('W', match1to2);
+ addRegexToken('WW', match1to2, match2);
+
+ addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
+ week[token.substr(0, 1)] = toInt(input);
+ });
+
+ // HELPERS
+
+ // LOCALES
+
+ function localeWeek (mom) {
+ return weekOfYear(mom, this._week.dow, this._week.doy).week;
+ }
+
+ var defaultLocaleWeek = {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ };
+
+ function localeFirstDayOfWeek () {
+ return this._week.dow;
+ }
+
+ function localeFirstDayOfYear () {
+ return this._week.doy;
+ }
+
+ // MOMENTS
+
+ function getSetWeek (input) {
+ var week = this.localeData().week(this);
+ return input == null ? week : this.add((input - week) * 7, 'd');
+ }
+
+ function getSetISOWeek (input) {
+ var week = weekOfYear(this, 1, 4).week;
+ return input == null ? week : this.add((input - week) * 7, 'd');
+ }
+
+ // FORMATTING
+
+ addFormatToken('d', 0, 'do', 'day');
+
+ addFormatToken('dd', 0, 0, function (format) {
+ return this.localeData().weekdaysMin(this, format);
+ });
+
+ addFormatToken('ddd', 0, 0, function (format) {
+ return this.localeData().weekdaysShort(this, format);
+ });
+
+ addFormatToken('dddd', 0, 0, function (format) {
+ return this.localeData().weekdays(this, format);
+ });
+
+ addFormatToken('e', 0, 0, 'weekday');
+ addFormatToken('E', 0, 0, 'isoWeekday');
+
+ // ALIASES
+
+ addUnitAlias('day', 'd');
+ addUnitAlias('weekday', 'e');
+ addUnitAlias('isoWeekday', 'E');
+
+ // PRIORITY
+ addUnitPriority('day', 11);
+ addUnitPriority('weekday', 11);
+ addUnitPriority('isoWeekday', 11);
+
+ // PARSING
+
+ addRegexToken('d', match1to2);
+ addRegexToken('e', match1to2);
+ addRegexToken('E', match1to2);
+ addRegexToken('dd', function (isStrict, locale) {
+ return locale.weekdaysMinRegex(isStrict);
+ });
+ addRegexToken('ddd', function (isStrict, locale) {
+ return locale.weekdaysShortRegex(isStrict);
+ });
+ addRegexToken('dddd', function (isStrict, locale) {
+ return locale.weekdaysRegex(isStrict);
+ });
+
+ addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
+ var weekday = config._locale.weekdaysParse(input, token, config._strict);
+ // if we didn't get a weekday name, mark the date as invalid
+ if (weekday != null) {
+ week.d = weekday;
+ } else {
+ getParsingFlags(config).invalidWeekday = input;
+ }
+ });
+
+ addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
+ week[token] = toInt(input);
+ });
+
+ // HELPERS
+
+ function parseWeekday(input, locale) {
+ if (typeof input !== 'string') {
+ return input;
+ }
+
+ if (!isNaN(input)) {
+ return parseInt(input, 10);
+ }
+
+ input = locale.weekdaysParse(input);
+ if (typeof input === 'number') {
+ return input;
+ }
+
+ return null;
+ }
+
+ function parseIsoWeekday(input, locale) {
+ if (typeof input === 'string') {
+ return locale.weekdaysParse(input) % 7 || 7;
+ }
+ return isNaN(input) ? null : input;
+ }
+
+ // LOCALES
+
+ var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
+ function localeWeekdays (m, format) {
+ if (!m) {
+ return isArray(this._weekdays) ? this._weekdays :
+ this._weekdays['standalone'];
+ }
+ return isArray(this._weekdays) ? this._weekdays[m.day()] :
+ this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
+ }
+
+ var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
+ function localeWeekdaysShort (m) {
+ return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
+ }
+
+ var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
+ function localeWeekdaysMin (m) {
+ return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
+ }
+
+ function handleStrictParse$1(weekdayName, format, strict) {
+ var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
+ if (!this._weekdaysParse) {
+ this._weekdaysParse = [];
+ this._shortWeekdaysParse = [];
+ this._minWeekdaysParse = [];
+
+ for (i = 0; i < 7; ++i) {
+ mom = createUTC([2000, 1]).day(i);
+ this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
+ this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
+ this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
+ }
+ }
+
+ if (strict) {
+ if (format === 'dddd') {
+ ii = indexOf.call(this._weekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ } else if (format === 'ddd') {
+ ii = indexOf.call(this._shortWeekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ } else {
+ ii = indexOf.call(this._minWeekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ }
+ } else {
+ if (format === 'dddd') {
+ ii = indexOf.call(this._weekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._shortWeekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._minWeekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ } else if (format === 'ddd') {
+ ii = indexOf.call(this._shortWeekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._weekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._minWeekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ } else {
+ ii = indexOf.call(this._minWeekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._weekdaysParse, llc);
+ if (ii !== -1) {
+ return ii;
+ }
+ ii = indexOf.call(this._shortWeekdaysParse, llc);
+ return ii !== -1 ? ii : null;
+ }
+ }
+ }
+
+ function localeWeekdaysParse (weekdayName, format, strict) {
+ var i, mom, regex;
+
+ if (this._weekdaysParseExact) {
+ return handleStrictParse$1.call(this, weekdayName, format, strict);
+ }
+
+ if (!this._weekdaysParse) {
+ this._weekdaysParse = [];
+ this._minWeekdaysParse = [];
+ this._shortWeekdaysParse = [];
+ this._fullWeekdaysParse = [];
+ }
+
+ for (i = 0; i < 7; i++) {
+ // make the regex if we don't have it already
+
+ mom = createUTC([2000, 1]).day(i);
+ if (strict && !this._fullWeekdaysParse[i]) {
+ this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
+ this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
+ this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
+ }
+ if (!this._weekdaysParse[i]) {
+ regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
+ this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
+ }
+ // test the regex
+ if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
+ return i;
+ } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
+ return i;
+ } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
+ return i;
+ } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
+ return i;
+ }
+ }
+ }
+
+ // MOMENTS
+
+ function getSetDayOfWeek (input) {
+ if (!this.isValid()) {
+ return input != null ? this : NaN;
+ }
+ var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
+ if (input != null) {
+ input = parseWeekday(input, this.localeData());
+ return this.add(input - day, 'd');
+ } else {
+ return day;
+ }
+ }
+
+ function getSetLocaleDayOfWeek (input) {
+ if (!this.isValid()) {
+ return input != null ? this : NaN;
+ }
+ var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
+ return input == null ? weekday : this.add(input - weekday, 'd');
+ }
+
+ function getSetISODayOfWeek (input) {
+ if (!this.isValid()) {
+ return input != null ? this : NaN;
+ }
+
+ // behaves the same as moment#day except
+ // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
+ // as a setter, sunday should belong to the previous week.
+
+ if (input != null) {
+ var weekday = parseIsoWeekday(input, this.localeData());
+ return this.day(this.day() % 7 ? weekday : weekday - 7);
+ } else {
+ return this.day() || 7;
+ }
+ }
+
+ var defaultWeekdaysRegex = matchWord;
+ function weekdaysRegex (isStrict) {
+ if (this._weekdaysParseExact) {
+ if (!hasOwnProp(this, '_weekdaysRegex')) {
+ computeWeekdaysParse.call(this);
+ }
+ if (isStrict) {
+ return this._weekdaysStrictRegex;
+ } else {
+ return this._weekdaysRegex;
+ }
+ } else {
+ if (!hasOwnProp(this, '_weekdaysRegex')) {
+ this._weekdaysRegex = defaultWeekdaysRegex;
+ }
+ return this._weekdaysStrictRegex && isStrict ?
+ this._weekdaysStrictRegex : this._weekdaysRegex;
+ }
+ }
+
+ var defaultWeekdaysShortRegex = matchWord;
+ function weekdaysShortRegex (isStrict) {
+ if (this._weekdaysParseExact) {
+ if (!hasOwnProp(this, '_weekdaysRegex')) {
+ computeWeekdaysParse.call(this);
+ }
+ if (isStrict) {
+ return this._weekdaysShortStrictRegex;
+ } else {
+ return this._weekdaysShortRegex;
+ }
+ } else {
+ if (!hasOwnProp(this, '_weekdaysShortRegex')) {
+ this._weekdaysShortRegex = defaultWeekdaysShortRegex;
+ }
+ return this._weekdaysShortStrictRegex && isStrict ?
+ this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
+ }
+ }
+
+ var defaultWeekdaysMinRegex = matchWord;
+ function weekdaysMinRegex (isStrict) {
+ if (this._weekdaysParseExact) {
+ if (!hasOwnProp(this, '_weekdaysRegex')) {
+ computeWeekdaysParse.call(this);
+ }
+ if (isStrict) {
+ return this._weekdaysMinStrictRegex;
+ } else {
+ return this._weekdaysMinRegex;
+ }
+ } else {
+ if (!hasOwnProp(this, '_weekdaysMinRegex')) {
+ this._weekdaysMinRegex = defaultWeekdaysMinRegex;
+ }
+ return this._weekdaysMinStrictRegex && isStrict ?
+ this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
+ }
+ }
+
+
+ function computeWeekdaysParse () {
+ function cmpLenRev(a, b) {
+ return b.length - a.length;
+ }
+
+ var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
+ i, mom, minp, shortp, longp;
+ for (i = 0; i < 7; i++) {
+ // make the regex if we don't have it already
+ mom = createUTC([2000, 1]).day(i);
+ minp = this.weekdaysMin(mom, '');
+ shortp = this.weekdaysShort(mom, '');
+ longp = this.weekdays(mom, '');
+ minPieces.push(minp);
+ shortPieces.push(shortp);
+ longPieces.push(longp);
+ mixedPieces.push(minp);
+ mixedPieces.push(shortp);
+ mixedPieces.push(longp);
+ }
+ // Sorting makes sure if one weekday (or abbr) is a prefix of another it
+ // will match the longer piece.
+ minPieces.sort(cmpLenRev);
+ shortPieces.sort(cmpLenRev);
+ longPieces.sort(cmpLenRev);
+ mixedPieces.sort(cmpLenRev);
+ for (i = 0; i < 7; i++) {
+ shortPieces[i] = regexEscape(shortPieces[i]);
+ longPieces[i] = regexEscape(longPieces[i]);
+ mixedPieces[i] = regexEscape(mixedPieces[i]);
+ }
+
+ this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
+ this._weekdaysShortRegex = this._weekdaysRegex;
+ this._weekdaysMinRegex = this._weekdaysRegex;
+
+ this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
+ this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
+ this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
+ }
+
+ // FORMATTING
+
+ function hFormat() {
+ return this.hours() % 12 || 12;
+ }
+
+ function kFormat() {
+ return this.hours() || 24;
+ }
+
+ addFormatToken('H', ['HH', 2], 0, 'hour');
+ addFormatToken('h', ['hh', 2], 0, hFormat);
+ addFormatToken('k', ['kk', 2], 0, kFormat);
+
+ addFormatToken('hmm', 0, 0, function () {
+ return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
+ });
+
+ addFormatToken('hmmss', 0, 0, function () {
+ return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
+ zeroFill(this.seconds(), 2);
+ });
+
+ addFormatToken('Hmm', 0, 0, function () {
+ return '' + this.hours() + zeroFill(this.minutes(), 2);
+ });
+
+ addFormatToken('Hmmss', 0, 0, function () {
+ return '' + this.hours() + zeroFill(this.minutes(), 2) +
+ zeroFill(this.seconds(), 2);
+ });
+
+ function meridiem (token, lowercase) {
+ addFormatToken(token, 0, 0, function () {
+ return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
+ });
+ }
+
+ meridiem('a', true);
+ meridiem('A', false);
+
+ // ALIASES
+
+ addUnitAlias('hour', 'h');
+
+ // PRIORITY
+ addUnitPriority('hour', 13);
+
+ // PARSING
+
+ function matchMeridiem (isStrict, locale) {
+ return locale._meridiemParse;
+ }
+
+ addRegexToken('a', matchMeridiem);
+ addRegexToken('A', matchMeridiem);
+ addRegexToken('H', match1to2);
+ addRegexToken('h', match1to2);
+ addRegexToken('k', match1to2);
+ addRegexToken('HH', match1to2, match2);
+ addRegexToken('hh', match1to2, match2);
+ addRegexToken('kk', match1to2, match2);
+
+ addRegexToken('hmm', match3to4);
+ addRegexToken('hmmss', match5to6);
+ addRegexToken('Hmm', match3to4);
+ addRegexToken('Hmmss', match5to6);
+
+ addParseToken(['H', 'HH'], HOUR);
+ addParseToken(['k', 'kk'], function (input, array, config) {
+ var kInput = toInt(input);
+ array[HOUR] = kInput === 24 ? 0 : kInput;
+ });
+ addParseToken(['a', 'A'], function (input, array, config) {
+ config._isPm = config._locale.isPM(input);
+ config._meridiem = input;
+ });
+ addParseToken(['h', 'hh'], function (input, array, config) {
+ array[HOUR] = toInt(input);
+ getParsingFlags(config).bigHour = true;
+ });
+ addParseToken('hmm', function (input, array, config) {
+ var pos = input.length - 2;
+ array[HOUR] = toInt(input.substr(0, pos));
+ array[MINUTE] = toInt(input.substr(pos));
+ getParsingFlags(config).bigHour = true;
+ });
+ addParseToken('hmmss', function (input, array, config) {
+ var pos1 = input.length - 4;
+ var pos2 = input.length - 2;
+ array[HOUR] = toInt(input.substr(0, pos1));
+ array[MINUTE] = toInt(input.substr(pos1, 2));
+ array[SECOND] = toInt(input.substr(pos2));
+ getParsingFlags(config).bigHour = true;
+ });
+ addParseToken('Hmm', function (input, array, config) {
+ var pos = input.length - 2;
+ array[HOUR] = toInt(input.substr(0, pos));
+ array[MINUTE] = toInt(input.substr(pos));
+ });
+ addParseToken('Hmmss', function (input, array, config) {
+ var pos1 = input.length - 4;
+ var pos2 = input.length - 2;
+ array[HOUR] = toInt(input.substr(0, pos1));
+ array[MINUTE] = toInt(input.substr(pos1, 2));
+ array[SECOND] = toInt(input.substr(pos2));
+ });
+
+ // LOCALES
+
+ function localeIsPM (input) {
+ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
+ // Using charAt should be more compatible.
+ return ((input + '').toLowerCase().charAt(0) === 'p');
+ }
+
+ var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
+ function localeMeridiem (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'pm' : 'PM';
+ } else {
+ return isLower ? 'am' : 'AM';
+ }
+ }
+
+
+ // MOMENTS
+
+ // Setting the hour should keep the time, because the user explicitly
+ // specified which hour they want. So trying to maintain the same hour (in
+ // a new timezone) makes sense. Adding/subtracting hours does not follow
+ // this rule.
+ var getSetHour = makeGetSet('Hours', true);
+
+ var baseConfig = {
+ calendar: defaultCalendar,
+ longDateFormat: defaultLongDateFormat,
+ invalidDate: defaultInvalidDate,
+ ordinal: defaultOrdinal,
+ dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
+ relativeTime: defaultRelativeTime,
+
+ months: defaultLocaleMonths,
+ monthsShort: defaultLocaleMonthsShort,
+
+ week: defaultLocaleWeek,
+
+ weekdays: defaultLocaleWeekdays,
+ weekdaysMin: defaultLocaleWeekdaysMin,
+ weekdaysShort: defaultLocaleWeekdaysShort,
+
+ meridiemParse: defaultLocaleMeridiemParse
+ };
+
+ // internal storage for locale config files
+ var locales = {};
+ var localeFamilies = {};
+ var globalLocale;
+
+ function normalizeLocale(key) {
+ return key ? key.toLowerCase().replace('_', '-') : key;
+ }
+
+ // pick the locale from the array
+ // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
+ // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
+ function chooseLocale(names) {
+ var i = 0, j, next, locale, split;
+
+ while (i < names.length) {
+ split = normalizeLocale(names[i]).split('-');
+ j = split.length;
+ next = normalizeLocale(names[i + 1]);
+ next = next ? next.split('-') : null;
+ while (j > 0) {
+ locale = loadLocale(split.slice(0, j).join('-'));
+ if (locale) {
+ return locale;
+ }
+ if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
+ //the next array item is better than a shallower substring of this one
+ break;
+ }
+ j--;
+ }
+ i++;
+ }
+ return globalLocale;
+ }
+
+ function loadLocale(name) {
+ var oldLocale = null;
+ // TODO: Find a better way to register and load all the locales in Node
+ if (!locales[name] && (typeof module !== 'undefined') &&
+ module && module.exports) {
+ try {
+ oldLocale = globalLocale._abbr;
+ var aliasedRequire = require;
+ __webpack_require__(246)("./" + name);
+ getSetGlobalLocale(oldLocale);
+ } catch (e) {}
+ }
+ return locales[name];
+ }
+
+ // This function will load locale and then set the global locale. If
+ // no arguments are passed in, it will simply return the current global
+ // locale key.
+ function getSetGlobalLocale (key, values) {
+ var data;
+ if (key) {
+ if (isUndefined(values)) {
+ data = getLocale(key);
+ }
+ else {
+ data = defineLocale(key, values);
+ }
+
+ if (data) {
+ // moment.duration._locale = moment._locale = data;
+ globalLocale = data;
+ }
+ else {
+ if ((typeof console !== 'undefined') && console.warn) {
+ //warn user if arguments are passed but the locale could not be set
+ console.warn('Locale ' + key + ' not found. Did you forget to load it?');
+ }
+ }
+ }
+
+ return globalLocale._abbr;
+ }
+
+ function defineLocale (name, config) {
+ if (config !== null) {
+ var locale, parentConfig = baseConfig;
+ config.abbr = name;
+ if (locales[name] != null) {
+ deprecateSimple('defineLocaleOverride',
+ 'use moment.updateLocale(localeName, config) to change ' +
+ 'an existing locale. moment.defineLocale(localeName, ' +
+ 'config) should only be used for creating a new locale ' +
+ 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
+ parentConfig = locales[name]._config;
+ } else if (config.parentLocale != null) {
+ if (locales[config.parentLocale] != null) {
+ parentConfig = locales[config.parentLocale]._config;
+ } else {
+ locale = loadLocale(config.parentLocale);
+ if (locale != null) {
+ parentConfig = locale._config;
+ } else {
+ if (!localeFamilies[config.parentLocale]) {
+ localeFamilies[config.parentLocale] = [];
+ }
+ localeFamilies[config.parentLocale].push({
+ name: name,
+ config: config
+ });
+ return null;
+ }
+ }
+ }
+ locales[name] = new Locale(mergeConfigs(parentConfig, config));
+
+ if (localeFamilies[name]) {
+ localeFamilies[name].forEach(function (x) {
+ defineLocale(x.name, x.config);
+ });
+ }
+
+ // backwards compat for now: also set the locale
+ // make sure we set the locale AFTER all child locales have been
+ // created, so we won't end up with the child locale set.
+ getSetGlobalLocale(name);
+
+
+ return locales[name];
+ } else {
+ // useful for testing
+ delete locales[name];
+ return null;
+ }
+ }
+
+ function updateLocale(name, config) {
+ if (config != null) {
+ var locale, tmpLocale, parentConfig = baseConfig;
+ // MERGE
+ tmpLocale = loadLocale(name);
+ if (tmpLocale != null) {
+ parentConfig = tmpLocale._config;
+ }
+ config = mergeConfigs(parentConfig, config);
+ locale = new Locale(config);
+ locale.parentLocale = locales[name];
+ locales[name] = locale;
+
+ // backwards compat for now: also set the locale
+ getSetGlobalLocale(name);
+ } else {
+ // pass null for config to unupdate, useful for tests
+ if (locales[name] != null) {
+ if (locales[name].parentLocale != null) {
+ locales[name] = locales[name].parentLocale;
+ } else if (locales[name] != null) {
+ delete locales[name];
+ }
+ }
+ }
+ return locales[name];
+ }
+
+ // returns locale data
+ function getLocale (key) {
+ var locale;
+
+ if (key && key._locale && key._locale._abbr) {
+ key = key._locale._abbr;
+ }
+
+ if (!key) {
+ return globalLocale;
+ }
+
+ if (!isArray(key)) {
+ //short-circuit everything else
+ locale = loadLocale(key);
+ if (locale) {
+ return locale;
+ }
+ key = [key];
+ }
+
+ return chooseLocale(key);
+ }
+
+ function listLocales() {
+ return keys(locales);
+ }
+
+ function checkOverflow (m) {
+ var overflow;
+ var a = m._a;
+
+ if (a && getParsingFlags(m).overflow === -2) {
+ overflow =
+ a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
+ a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
+ a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
+ a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
+ a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
+ a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
+ -1;
+
+ if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
+ overflow = DATE;
+ }
+ if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
+ overflow = WEEK;
+ }
+ if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
+ overflow = WEEKDAY;
+ }
+
+ getParsingFlags(m).overflow = overflow;
+ }
+
+ return m;
+ }
+
+ // Pick the first defined of two or three arguments.
+ function defaults(a, b, c) {
+ if (a != null) {
+ return a;
+ }
+ if (b != null) {
+ return b;
+ }
+ return c;
+ }
+
+ function currentDateArray(config) {
+ // hooks is actually the exported moment object
+ var nowValue = new Date(hooks.now());
+ if (config._useUTC) {
+ return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
+ }
+ return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
+ }
+
+ // convert an array to a date.
+ // the array should mirror the parameters below
+ // note: all values past the year are optional and will default to the lowest possible value.
+ // [year, month, day , hour, minute, second, millisecond]
+ function configFromArray (config) {
+ var i, date, input = [], currentDate, expectedWeekday, yearToUse;
+
+ if (config._d) {
+ return;
+ }
+
+ currentDate = currentDateArray(config);
+
+ //compute day of the year from weeks and weekdays
+ if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
+ dayOfYearFromWeekInfo(config);
+ }
+
+ //if the day of the year is set, figure out what it is
+ if (config._dayOfYear != null) {
+ yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
+
+ if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
+ getParsingFlags(config)._overflowDayOfYear = true;
+ }
+
+ date = createUTCDate(yearToUse, 0, config._dayOfYear);
+ config._a[MONTH] = date.getUTCMonth();
+ config._a[DATE] = date.getUTCDate();
+ }
+
+ // Default to current date.
+ // * if no year, month, day of month are given, default to today
+ // * if day of month is given, default month and year
+ // * if month is given, default only year
+ // * if year is given, don't default anything
+ for (i = 0; i < 3 && config._a[i] == null; ++i) {
+ config._a[i] = input[i] = currentDate[i];
+ }
+
+ // Zero out whatever was not defaulted, including time
+ for (; i < 7; i++) {
+ config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
+ }
+
+ // Check for 24:00:00.000
+ if (config._a[HOUR] === 24 &&
+ config._a[MINUTE] === 0 &&
+ config._a[SECOND] === 0 &&
+ config._a[MILLISECOND] === 0) {
+ config._nextDay = true;
+ config._a[HOUR] = 0;
+ }
+
+ config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
+ expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
+
+ // Apply timezone offset from input. The actual utcOffset can be changed
+ // with parseZone.
+ if (config._tzm != null) {
+ config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
+ }
+
+ if (config._nextDay) {
+ config._a[HOUR] = 24;
+ }
+
+ // check for mismatching day of week
+ if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
+ getParsingFlags(config).weekdayMismatch = true;
+ }
+ }
+
+ function dayOfYearFromWeekInfo(config) {
+ var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
+
+ w = config._w;
+ if (w.GG != null || w.W != null || w.E != null) {
+ dow = 1;
+ doy = 4;
+
+ // TODO: We need to take the current isoWeekYear, but that depends on
+ // how we interpret now (local, utc, fixed offset). So create
+ // a now version of current config (take local/utc/offset flags, and
+ // create now).
+ weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
+ week = defaults(w.W, 1);
+ weekday = defaults(w.E, 1);
+ if (weekday < 1 || weekday > 7) {
+ weekdayOverflow = true;
+ }
+ } else {
+ dow = config._locale._week.dow;
+ doy = config._locale._week.doy;
+
+ var curWeek = weekOfYear(createLocal(), dow, doy);
+
+ weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
+
+ // Default to current week.
+ week = defaults(w.w, curWeek.week);
+
+ if (w.d != null) {
+ // weekday -- low day numbers are considered next week
+ weekday = w.d;
+ if (weekday < 0 || weekday > 6) {
+ weekdayOverflow = true;
+ }
+ } else if (w.e != null) {
+ // local weekday -- counting starts from begining of week
+ weekday = w.e + dow;
+ if (w.e < 0 || w.e > 6) {
+ weekdayOverflow = true;
+ }
+ } else {
+ // default to begining of week
+ weekday = dow;
+ }
+ }
+ if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
+ getParsingFlags(config)._overflowWeeks = true;
+ } else if (weekdayOverflow != null) {
+ getParsingFlags(config)._overflowWeekday = true;
+ } else {
+ temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
+ config._a[YEAR] = temp.year;
+ config._dayOfYear = temp.dayOfYear;
+ }
+ }
+
+ // iso 8601 regex
+ // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
+ var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
+ var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
+
+ var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
+
+ var isoDates = [
+ ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
+ ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
+ ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
+ ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
+ ['YYYY-DDD', /\d{4}-\d{3}/],
+ ['YYYY-MM', /\d{4}-\d\d/, false],
+ ['YYYYYYMMDD', /[+-]\d{10}/],
+ ['YYYYMMDD', /\d{8}/],
+ // YYYYMM is NOT allowed by the standard
+ ['GGGG[W]WWE', /\d{4}W\d{3}/],
+ ['GGGG[W]WW', /\d{4}W\d{2}/, false],
+ ['YYYYDDD', /\d{7}/]
+ ];
+
+ // iso time formats and regexes
+ var isoTimes = [
+ ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
+ ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
+ ['HH:mm:ss', /\d\d:\d\d:\d\d/],
+ ['HH:mm', /\d\d:\d\d/],
+ ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
+ ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
+ ['HHmmss', /\d\d\d\d\d\d/],
+ ['HHmm', /\d\d\d\d/],
+ ['HH', /\d\d/]
+ ];
+
+ var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
+
+ // date from iso format
+ function configFromISO(config) {
+ var i, l,
+ string = config._i,
+ match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
+ allowTime, dateFormat, timeFormat, tzFormat;
+
+ if (match) {
+ getParsingFlags(config).iso = true;
+
+ for (i = 0, l = isoDates.length; i < l; i++) {
+ if (isoDates[i][1].exec(match[1])) {
+ dateFormat = isoDates[i][0];
+ allowTime = isoDates[i][2] !== false;
+ break;
+ }
+ }
+ if (dateFormat == null) {
+ config._isValid = false;
+ return;
+ }
+ if (match[3]) {
+ for (i = 0, l = isoTimes.length; i < l; i++) {
+ if (isoTimes[i][1].exec(match[3])) {
+ // match[2] should be 'T' or space
+ timeFormat = (match[2] || ' ') + isoTimes[i][0];
+ break;
+ }
+ }
+ if (timeFormat == null) {
+ config._isValid = false;
+ return;
+ }
+ }
+ if (!allowTime && timeFormat != null) {
+ config._isValid = false;
+ return;
+ }
+ if (match[4]) {
+ if (tzRegex.exec(match[4])) {
+ tzFormat = 'Z';
+ } else {
+ config._isValid = false;
+ return;
+ }
+ }
+ config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
+ configFromStringAndFormat(config);
+ } else {
+ config._isValid = false;
+ }
+ }
+
+ // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
+ var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
+
+ function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
+ var result = [
+ untruncateYear(yearStr),
+ defaultLocaleMonthsShort.indexOf(monthStr),
+ parseInt(dayStr, 10),
+ parseInt(hourStr, 10),
+ parseInt(minuteStr, 10)
+ ];
+
+ if (secondStr) {
+ result.push(parseInt(secondStr, 10));
+ }
+
+ return result;
+ }
+
+ function untruncateYear(yearStr) {
+ var year = parseInt(yearStr, 10);
+ if (year <= 49) {
+ return 2000 + year;
+ } else if (year <= 999) {
+ return 1900 + year;
+ }
+ return year;
+ }
+
+ function preprocessRFC2822(s) {
+ // Remove comments and folding whitespace and replace multiple-spaces with a single space
+ return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
+ }
+
+ function checkWeekday(weekdayStr, parsedInput, config) {
+ if (weekdayStr) {
+ // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
+ var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
+ weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
+ if (weekdayProvided !== weekdayActual) {
+ getParsingFlags(config).weekdayMismatch = true;
+ config._isValid = false;
+ return false;
+ }
+ }
+ return true;
+ }
+
+ var obsOffsets = {
+ UT: 0,
+ GMT: 0,
+ EDT: -4 * 60,
+ EST: -5 * 60,
+ CDT: -5 * 60,
+ CST: -6 * 60,
+ MDT: -6 * 60,
+ MST: -7 * 60,
+ PDT: -7 * 60,
+ PST: -8 * 60
+ };
+
+ function calculateOffset(obsOffset, militaryOffset, numOffset) {
+ if (obsOffset) {
+ return obsOffsets[obsOffset];
+ } else if (militaryOffset) {
+ // the only allowed military tz is Z
+ return 0;
+ } else {
+ var hm = parseInt(numOffset, 10);
+ var m = hm % 100, h = (hm - m) / 100;
+ return h * 60 + m;
+ }
+ }
+
+ // date and time from ref 2822 format
+ function configFromRFC2822(config) {
+ var match = rfc2822.exec(preprocessRFC2822(config._i));
+ if (match) {
+ var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
+ if (!checkWeekday(match[1], parsedArray, config)) {
+ return;
+ }
+
+ config._a = parsedArray;
+ config._tzm = calculateOffset(match[8], match[9], match[10]);
+
+ config._d = createUTCDate.apply(null, config._a);
+ config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
+
+ getParsingFlags(config).rfc2822 = true;
+ } else {
+ config._isValid = false;
+ }
+ }
+
+ // date from iso format or fallback
+ function configFromString(config) {
+ var matched = aspNetJsonRegex.exec(config._i);
+
+ if (matched !== null) {
+ config._d = new Date(+matched[1]);
+ return;
+ }
+
+ configFromISO(config);
+ if (config._isValid === false) {
+ delete config._isValid;
+ } else {
+ return;
+ }
+
+ configFromRFC2822(config);
+ if (config._isValid === false) {
+ delete config._isValid;
+ } else {
+ return;
+ }
+
+ // Final attempt, use Input Fallback
+ hooks.createFromInputFallback(config);
+ }
+
+ hooks.createFromInputFallback = deprecate(
+ 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
+ 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
+ 'discouraged and will be removed in an upcoming major release. Please refer to ' +
+ 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
+ function (config) {
+ config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
+ }
+ );
+
+ // constant that refers to the ISO standard
+ hooks.ISO_8601 = function () {};
+
+ // constant that refers to the RFC 2822 form
+ hooks.RFC_2822 = function () {};
+
+ // date from string and format string
+ function configFromStringAndFormat(config) {
+ // TODO: Move this to another part of the creation flow to prevent circular deps
+ if (config._f === hooks.ISO_8601) {
+ configFromISO(config);
+ return;
+ }
+ if (config._f === hooks.RFC_2822) {
+ configFromRFC2822(config);
+ return;
+ }
+ config._a = [];
+ getParsingFlags(config).empty = true;
+
+ // This array is used to make a Date, either with `new Date` or `Date.UTC`
+ var string = '' + config._i,
+ i, parsedInput, tokens, token, skipped,
+ stringLength = string.length,
+ totalParsedInputLength = 0;
+
+ tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
+
+ for (i = 0; i < tokens.length; i++) {
+ token = tokens[i];
+ parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
+ // console.log('token', token, 'parsedInput', parsedInput,
+ // 'regex', getParseRegexForToken(token, config));
+ if (parsedInput) {
+ skipped = string.substr(0, string.indexOf(parsedInput));
+ if (skipped.length > 0) {
+ getParsingFlags(config).unusedInput.push(skipped);
+ }
+ string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
+ totalParsedInputLength += parsedInput.length;
+ }
+ // don't parse if it's not a known token
+ if (formatTokenFunctions[token]) {
+ if (parsedInput) {
+ getParsingFlags(config).empty = false;
+ }
+ else {
+ getParsingFlags(config).unusedTokens.push(token);
+ }
+ addTimeToArrayFromToken(token, parsedInput, config);
+ }
+ else if (config._strict && !parsedInput) {
+ getParsingFlags(config).unusedTokens.push(token);
+ }
+ }
+
+ // add remaining unparsed input length to the string
+ getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
+ if (string.length > 0) {
+ getParsingFlags(config).unusedInput.push(string);
+ }
+
+ // clear _12h flag if hour is <= 12
+ if (config._a[HOUR] <= 12 &&
+ getParsingFlags(config).bigHour === true &&
+ config._a[HOUR] > 0) {
+ getParsingFlags(config).bigHour = undefined;
+ }
+
+ getParsingFlags(config).parsedDateParts = config._a.slice(0);
+ getParsingFlags(config).meridiem = config._meridiem;
+ // handle meridiem
+ config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
+
+ configFromArray(config);
+ checkOverflow(config);
+ }
+
+
+ function meridiemFixWrap (locale, hour, meridiem) {
+ var isPm;
+
+ if (meridiem == null) {
+ // nothing to do
+ return hour;
+ }
+ if (locale.meridiemHour != null) {
+ return locale.meridiemHour(hour, meridiem);
+ } else if (locale.isPM != null) {
+ // Fallback
+ isPm = locale.isPM(meridiem);
+ if (isPm && hour < 12) {
+ hour += 12;
+ }
+ if (!isPm && hour === 12) {
+ hour = 0;
+ }
+ return hour;
+ } else {
+ // this is not supposed to happen
+ return hour;
+ }
+ }
+
+ // date from string and array of format strings
+ function configFromStringAndArray(config) {
+ var tempConfig,
+ bestMoment,
+
+ scoreToBeat,
+ i,
+ currentScore;
+
+ if (config._f.length === 0) {
+ getParsingFlags(config).invalidFormat = true;
+ config._d = new Date(NaN);
+ return;
+ }
+
+ for (i = 0; i < config._f.length; i++) {
+ currentScore = 0;
+ tempConfig = copyConfig({}, config);
+ if (config._useUTC != null) {
+ tempConfig._useUTC = config._useUTC;
+ }
+ tempConfig._f = config._f[i];
+ configFromStringAndFormat(tempConfig);
+
+ if (!isValid(tempConfig)) {
+ continue;
+ }
+
+ // if there is any input that was not parsed add a penalty for that format
+ currentScore += getParsingFlags(tempConfig).charsLeftOver;
+
+ //or tokens
+ currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
+
+ getParsingFlags(tempConfig).score = currentScore;
+
+ if (scoreToBeat == null || currentScore < scoreToBeat) {
+ scoreToBeat = currentScore;
+ bestMoment = tempConfig;
+ }
+ }
+
+ extend(config, bestMoment || tempConfig);
+ }
+
+ function configFromObject(config) {
+ if (config._d) {
+ return;
+ }
+
+ var i = normalizeObjectUnits(config._i);
+ config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
+ return obj && parseInt(obj, 10);
+ });
+
+ configFromArray(config);
+ }
+
+ function createFromConfig (config) {
+ var res = new Moment(checkOverflow(prepareConfig(config)));
+ if (res._nextDay) {
+ // Adding is smart enough around DST
+ res.add(1, 'd');
+ res._nextDay = undefined;
+ }
+
+ return res;
+ }
+
+ function prepareConfig (config) {
+ var input = config._i,
+ format = config._f;
+
+ config._locale = config._locale || getLocale(config._l);
+
+ if (input === null || (format === undefined && input === '')) {
+ return createInvalid({nullInput: true});
+ }
+
+ if (typeof input === 'string') {
+ config._i = input = config._locale.preparse(input);
+ }
+
+ if (isMoment(input)) {
+ return new Moment(checkOverflow(input));
+ } else if (isDate(input)) {
+ config._d = input;
+ } else if (isArray(format)) {
+ configFromStringAndArray(config);
+ } else if (format) {
+ configFromStringAndFormat(config);
+ } else {
+ configFromInput(config);
+ }
+
+ if (!isValid(config)) {
+ config._d = null;
+ }
+
+ return config;
+ }
+
+ function configFromInput(config) {
+ var input = config._i;
+ if (isUndefined(input)) {
+ config._d = new Date(hooks.now());
+ } else if (isDate(input)) {
+ config._d = new Date(input.valueOf());
+ } else if (typeof input === 'string') {
+ configFromString(config);
+ } else if (isArray(input)) {
+ config._a = map(input.slice(0), function (obj) {
+ return parseInt(obj, 10);
+ });
+ configFromArray(config);
+ } else if (isObject(input)) {
+ configFromObject(config);
+ } else if (isNumber(input)) {
+ // from milliseconds
+ config._d = new Date(input);
+ } else {
+ hooks.createFromInputFallback(config);
+ }
+ }
+
+ function createLocalOrUTC (input, format, locale, strict, isUTC) {
+ var c = {};
+
+ if (locale === true || locale === false) {
+ strict = locale;
+ locale = undefined;
+ }
+
+ if ((isObject(input) && isObjectEmpty(input)) ||
+ (isArray(input) && input.length === 0)) {
+ input = undefined;
+ }
+ // object construction must be done this way.
+ // https://github.com/moment/moment/issues/1423
+ c._isAMomentObject = true;
+ c._useUTC = c._isUTC = isUTC;
+ c._l = locale;
+ c._i = input;
+ c._f = format;
+ c._strict = strict;
+
+ return createFromConfig(c);
+ }
+
+ function createLocal (input, format, locale, strict) {
+ return createLocalOrUTC(input, format, locale, strict, false);
+ }
+
+ var prototypeMin = deprecate(
+ 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
+ function () {
+ var other = createLocal.apply(null, arguments);
+ if (this.isValid() && other.isValid()) {
+ return other < this ? this : other;
+ } else {
+ return createInvalid();
+ }
+ }
+ );
+
+ var prototypeMax = deprecate(
+ 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
+ function () {
+ var other = createLocal.apply(null, arguments);
+ if (this.isValid() && other.isValid()) {
+ return other > this ? this : other;
+ } else {
+ return createInvalid();
+ }
+ }
+ );
+
+ // Pick a moment m from moments so that m[fn](other) is true for all
+ // other. This relies on the function fn to be transitive.
+ //
+ // moments should either be an array of moment objects or an array, whose
+ // first element is an array of moment objects.
+ function pickBy(fn, moments) {
+ var res, i;
+ if (moments.length === 1 && isArray(moments[0])) {
+ moments = moments[0];
+ }
+ if (!moments.length) {
+ return createLocal();
+ }
+ res = moments[0];
+ for (i = 1; i < moments.length; ++i) {
+ if (!moments[i].isValid() || moments[i][fn](res)) {
+ res = moments[i];
+ }
+ }
+ return res;
+ }
+
+ // TODO: Use [].sort instead?
+ function min () {
+ var args = [].slice.call(arguments, 0);
+
+ return pickBy('isBefore', args);
+ }
+
+ function max () {
+ var args = [].slice.call(arguments, 0);
+
+ return pickBy('isAfter', args);
+ }
+
+ var now = function () {
+ return Date.now ? Date.now() : +(new Date());
+ };
+
+ var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
+
+ function isDurationValid(m) {
+ for (var key in m) {
+ if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
+ return false;
+ }
+ }
+
+ var unitHasDecimal = false;
+ for (var i = 0; i < ordering.length; ++i) {
+ if (m[ordering[i]]) {
+ if (unitHasDecimal) {
+ return false; // only allow non-integers for smallest unit
+ }
+ if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
+ unitHasDecimal = true;
+ }
+ }
+ }
+
+ return true;
+ }
+
+ function isValid$1() {
+ return this._isValid;
+ }
+
+ function createInvalid$1() {
+ return createDuration(NaN);
+ }
+
+ function Duration (duration) {
+ var normalizedInput = normalizeObjectUnits(duration),
+ years = normalizedInput.year || 0,
+ quarters = normalizedInput.quarter || 0,
+ months = normalizedInput.month || 0,
+ weeks = normalizedInput.week || 0,
+ days = normalizedInput.day || 0,
+ hours = normalizedInput.hour || 0,
+ minutes = normalizedInput.minute || 0,
+ seconds = normalizedInput.second || 0,
+ milliseconds = normalizedInput.millisecond || 0;
+
+ this._isValid = isDurationValid(normalizedInput);
+
+ // representation for dateAddRemove
+ this._milliseconds = +milliseconds +
+ seconds * 1e3 + // 1000
+ minutes * 6e4 + // 1000 * 60
+ hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
+ // Because of dateAddRemove treats 24 hours as different from a
+ // day when working around DST, we need to store them separately
+ this._days = +days +
+ weeks * 7;
+ // It is impossible to translate months into days without knowing
+ // which months you are are talking about, so we have to store
+ // it separately.
+ this._months = +months +
+ quarters * 3 +
+ years * 12;
+
+ this._data = {};
+
+ this._locale = getLocale();
+
+ this._bubble();
+ }
+
+ function isDuration (obj) {
+ return obj instanceof Duration;
+ }
+
+ function absRound (number) {
+ if (number < 0) {
+ return Math.round(-1 * number) * -1;
+ } else {
+ return Math.round(number);
+ }
+ }
+
+ // FORMATTING
+
+ function offset (token, separator) {
+ addFormatToken(token, 0, 0, function () {
+ var offset = this.utcOffset();
+ var sign = '+';
+ if (offset < 0) {
+ offset = -offset;
+ sign = '-';
+ }
+ return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
+ });
+ }
+
+ offset('Z', ':');
+ offset('ZZ', '');
+
+ // PARSING
+
+ addRegexToken('Z', matchShortOffset);
+ addRegexToken('ZZ', matchShortOffset);
+ addParseToken(['Z', 'ZZ'], function (input, array, config) {
+ config._useUTC = true;
+ config._tzm = offsetFromString(matchShortOffset, input);
+ });
+
+ // HELPERS
+
+ // timezone chunker
+ // '+10:00' > ['10', '00']
+ // '-1530' > ['-15', '30']
+ var chunkOffset = /([\+\-]|\d\d)/gi;
+
+ function offsetFromString(matcher, string) {
+ var matches = (string || '').match(matcher);
+
+ if (matches === null) {
+ return null;
+ }
+
+ var chunk = matches[matches.length - 1] || [];
+ var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
+ var minutes = +(parts[1] * 60) + toInt(parts[2]);
+
+ return minutes === 0 ?
+ 0 :
+ parts[0] === '+' ? minutes : -minutes;
+ }
+
+ // Return a moment from input, that is local/utc/zone equivalent to model.
+ function cloneWithOffset(input, model) {
+ var res, diff;
+ if (model._isUTC) {
+ res = model.clone();
+ diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
+ // Use low-level api, because this fn is low-level api.
+ res._d.setTime(res._d.valueOf() + diff);
+ hooks.updateOffset(res, false);
+ return res;
+ } else {
+ return createLocal(input).local();
+ }
+ }
+
+ function getDateOffset (m) {
+ // On Firefox.24 Date#getTimezoneOffset returns a floating point.
+ // https://github.com/moment/moment/pull/1871
+ return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
+ }
+
+ // HOOKS
+
+ // This function will be called whenever a moment is mutated.
+ // It is intended to keep the offset in sync with the timezone.
+ hooks.updateOffset = function () {};
+
+ // MOMENTS
+
+ // keepLocalTime = true means only change the timezone, without
+ // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
+ // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
+ // +0200, so we adjust the time as needed, to be valid.
+ //
+ // Keeping the time actually adds/subtracts (one hour)
+ // from the actual represented time. That is why we call updateOffset
+ // a second time. In case it wants us to change the offset again
+ // _changeInProgress == true case, then we have to adjust, because
+ // there is no such time in the given timezone.
+ function getSetOffset (input, keepLocalTime, keepMinutes) {
+ var offset = this._offset || 0,
+ localAdjust;
+ if (!this.isValid()) {
+ return input != null ? this : NaN;
+ }
+ if (input != null) {
+ if (typeof input === 'string') {
+ input = offsetFromString(matchShortOffset, input);
+ if (input === null) {
+ return this;
+ }
+ } else if (Math.abs(input) < 16 && !keepMinutes) {
+ input = input * 60;
+ }
+ if (!this._isUTC && keepLocalTime) {
+ localAdjust = getDateOffset(this);
+ }
+ this._offset = input;
+ this._isUTC = true;
+ if (localAdjust != null) {
+ this.add(localAdjust, 'm');
+ }
+ if (offset !== input) {
+ if (!keepLocalTime || this._changeInProgress) {
+ addSubtract(this, createDuration(input - offset, 'm'), 1, false);
+ } else if (!this._changeInProgress) {
+ this._changeInProgress = true;
+ hooks.updateOffset(this, true);
+ this._changeInProgress = null;
+ }
+ }
+ return this;
+ } else {
+ return this._isUTC ? offset : getDateOffset(this);
+ }
+ }
+
+ function getSetZone (input, keepLocalTime) {
+ if (input != null) {
+ if (typeof input !== 'string') {
+ input = -input;
+ }
+
+ this.utcOffset(input, keepLocalTime);
+
+ return this;
+ } else {
+ return -this.utcOffset();
+ }
+ }
+
+ function setOffsetToUTC (keepLocalTime) {
+ return this.utcOffset(0, keepLocalTime);
+ }
+
+ function setOffsetToLocal (keepLocalTime) {
+ if (this._isUTC) {
+ this.utcOffset(0, keepLocalTime);
+ this._isUTC = false;
+
+ if (keepLocalTime) {
+ this.subtract(getDateOffset(this), 'm');
+ }
+ }
+ return this;
+ }
+
+ function setOffsetToParsedOffset () {
+ if (this._tzm != null) {
+ this.utcOffset(this._tzm, false, true);
+ } else if (typeof this._i === 'string') {
+ var tZone = offsetFromString(matchOffset, this._i);
+ if (tZone != null) {
+ this.utcOffset(tZone);
+ }
+ else {
+ this.utcOffset(0, true);
+ }
+ }
+ return this;
+ }
+
+ function hasAlignedHourOffset (input) {
+ if (!this.isValid()) {
+ return false;
+ }
+ input = input ? createLocal(input).utcOffset() : 0;
+
+ return (this.utcOffset() - input) % 60 === 0;
+ }
+
+ function isDaylightSavingTime () {
+ return (
+ this.utcOffset() > this.clone().month(0).utcOffset() ||
+ this.utcOffset() > this.clone().month(5).utcOffset()
+ );
+ }
+
+ function isDaylightSavingTimeShifted () {
+ if (!isUndefined(this._isDSTShifted)) {
+ return this._isDSTShifted;
+ }
+
+ var c = {};
+
+ copyConfig(c, this);
+ c = prepareConfig(c);
+
+ if (c._a) {
+ var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
+ this._isDSTShifted = this.isValid() &&
+ compareArrays(c._a, other.toArray()) > 0;
+ } else {
+ this._isDSTShifted = false;
+ }
+
+ return this._isDSTShifted;
+ }
+
+ function isLocal () {
+ return this.isValid() ? !this._isUTC : false;
+ }
+
+ function isUtcOffset () {
+ return this.isValid() ? this._isUTC : false;
+ }
+
+ function isUtc () {
+ return this.isValid() ? this._isUTC && this._offset === 0 : false;
+ }
+
+ // ASP.NET json date format regex
+ var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
+
+ // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
+ // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
+ // and further modified to allow for strings containing both week and day
+ var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
+
+ function createDuration (input, key) {
+ var duration = input,
+ // matching against regexp is expensive, do it on demand
+ match = null,
+ sign,
+ ret,
+ diffRes;
+
+ if (isDuration(input)) {
+ duration = {
+ ms : input._milliseconds,
+ d : input._days,
+ M : input._months
+ };
+ } else if (isNumber(input)) {
+ duration = {};
+ if (key) {
+ duration[key] = input;
+ } else {
+ duration.milliseconds = input;
+ }
+ } else if (!!(match = aspNetRegex.exec(input))) {
+ sign = (match[1] === '-') ? -1 : 1;
+ duration = {
+ y : 0,
+ d : toInt(match[DATE]) * sign,
+ h : toInt(match[HOUR]) * sign,
+ m : toInt(match[MINUTE]) * sign,
+ s : toInt(match[SECOND]) * sign,
+ ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
+ };
+ } else if (!!(match = isoRegex.exec(input))) {
+ sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
+ duration = {
+ y : parseIso(match[2], sign),
+ M : parseIso(match[3], sign),
+ w : parseIso(match[4], sign),
+ d : parseIso(match[5], sign),
+ h : parseIso(match[6], sign),
+ m : parseIso(match[7], sign),
+ s : parseIso(match[8], sign)
+ };
+ } else if (duration == null) {// checks for null or undefined
+ duration = {};
+ } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
+ diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
+
+ duration = {};
+ duration.ms = diffRes.milliseconds;
+ duration.M = diffRes.months;
+ }
+
+ ret = new Duration(duration);
+
+ if (isDuration(input) && hasOwnProp(input, '_locale')) {
+ ret._locale = input._locale;
+ }
+
+ return ret;
+ }
+
+ createDuration.fn = Duration.prototype;
+ createDuration.invalid = createInvalid$1;
+
+ function parseIso (inp, sign) {
+ // We'd normally use ~~inp for this, but unfortunately it also
+ // converts floats to ints.
+ // inp may be undefined, so careful calling replace on it.
+ var res = inp && parseFloat(inp.replace(',', '.'));
+ // apply sign while we're at it
+ return (isNaN(res) ? 0 : res) * sign;
+ }
+
+ function positiveMomentsDifference(base, other) {
+ var res = {milliseconds: 0, months: 0};
+
+ res.months = other.month() - base.month() +
+ (other.year() - base.year()) * 12;
+ if (base.clone().add(res.months, 'M').isAfter(other)) {
+ --res.months;
+ }
+
+ res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
+
+ return res;
+ }
+
+ function momentsDifference(base, other) {
+ var res;
+ if (!(base.isValid() && other.isValid())) {
+ return {milliseconds: 0, months: 0};
+ }
+
+ other = cloneWithOffset(other, base);
+ if (base.isBefore(other)) {
+ res = positiveMomentsDifference(base, other);
+ } else {
+ res = positiveMomentsDifference(other, base);
+ res.milliseconds = -res.milliseconds;
+ res.months = -res.months;
+ }
+
+ return res;
+ }
+
+ // TODO: remove 'name' arg after deprecation is removed
+ function createAdder(direction, name) {
+ return function (val, period) {
+ var dur, tmp;
+ //invert the arguments, but complain about it
+ if (period !== null && !isNaN(+period)) {
+ deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
+ 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
+ tmp = val; val = period; period = tmp;
+ }
+
+ val = typeof val === 'string' ? +val : val;
+ dur = createDuration(val, period);
+ addSubtract(this, dur, direction);
+ return this;
+ };
+ }
+
+ function addSubtract (mom, duration, isAdding, updateOffset) {
+ var milliseconds = duration._milliseconds,
+ days = absRound(duration._days),
+ months = absRound(duration._months);
+
+ if (!mom.isValid()) {
+ // No op
+ return;
+ }
+
+ updateOffset = updateOffset == null ? true : updateOffset;
+
+ if (months) {
+ setMonth(mom, get(mom, 'Month') + months * isAdding);
+ }
+ if (days) {
+ set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
+ }
+ if (milliseconds) {
+ mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
+ }
+ if (updateOffset) {
+ hooks.updateOffset(mom, days || months);
+ }
+ }
+
+ var add = createAdder(1, 'add');
+ var subtract = createAdder(-1, 'subtract');
+
+ function getCalendarFormat(myMoment, now) {
+ var diff = myMoment.diff(now, 'days', true);
+ return diff < -6 ? 'sameElse' :
+ diff < -1 ? 'lastWeek' :
+ diff < 0 ? 'lastDay' :
+ diff < 1 ? 'sameDay' :
+ diff < 2 ? 'nextDay' :
+ diff < 7 ? 'nextWeek' : 'sameElse';
+ }
+
+ function calendar$1 (time, formats) {
+ // We want to compare the start of today, vs this.
+ // Getting start-of-today depends on whether we're local/utc/offset or not.
+ var now = time || createLocal(),
+ sod = cloneWithOffset(now, this).startOf('day'),
+ format = hooks.calendarFormat(this, sod) || 'sameElse';
+
+ var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
+
+ return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
+ }
+
+ function clone () {
+ return new Moment(this);
+ }
+
+ function isAfter (input, units) {
+ var localInput = isMoment(input) ? input : createLocal(input);
+ if (!(this.isValid() && localInput.isValid())) {
+ return false;
+ }
+ units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
+ if (units === 'millisecond') {
+ return this.valueOf() > localInput.valueOf();
+ } else {
+ return localInput.valueOf() < this.clone().startOf(units).valueOf();
+ }
+ }
+
+ function isBefore (input, units) {
+ var localInput = isMoment(input) ? input : createLocal(input);
+ if (!(this.isValid() && localInput.isValid())) {
+ return false;
+ }
+ units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
+ if (units === 'millisecond') {
+ return this.valueOf() < localInput.valueOf();
+ } else {
+ return this.clone().endOf(units).valueOf() < localInput.valueOf();
+ }
+ }
+
+ function isBetween (from, to, units, inclusivity) {
+ inclusivity = inclusivity || '()';
+ return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
+ (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
+ }
+
+ function isSame (input, units) {
+ var localInput = isMoment(input) ? input : createLocal(input),
+ inputMs;
+ if (!(this.isValid() && localInput.isValid())) {
+ return false;
+ }
+ units = normalizeUnits(units || 'millisecond');
+ if (units === 'millisecond') {
+ return this.valueOf() === localInput.valueOf();
+ } else {
+ inputMs = localInput.valueOf();
+ return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
+ }
+ }
+
+ function isSameOrAfter (input, units) {
+ return this.isSame(input, units) || this.isAfter(input,units);
+ }
+
+ function isSameOrBefore (input, units) {
+ return this.isSame(input, units) || this.isBefore(input,units);
+ }
+
+ function diff (input, units, asFloat) {
+ var that,
+ zoneDelta,
+ output;
+
+ if (!this.isValid()) {
+ return NaN;
+ }
+
+ that = cloneWithOffset(input, this);
+
+ if (!that.isValid()) {
+ return NaN;
+ }
+
+ zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
+
+ units = normalizeUnits(units);
+
+ switch (units) {
+ case 'year': output = monthDiff(this, that) / 12; break;
+ case 'month': output = monthDiff(this, that); break;
+ case 'quarter': output = monthDiff(this, that) / 3; break;
+ case 'second': output = (this - that) / 1e3; break; // 1000
+ case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
+ case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
+ case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
+ case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
+ default: output = this - that;
+ }
+
+ return asFloat ? output : absFloor(output);
+ }
+
+ function monthDiff (a, b) {
+ // difference in months
+ var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
+ // b is in (anchor - 1 month, anchor + 1 month)
+ anchor = a.clone().add(wholeMonthDiff, 'months'),
+ anchor2, adjust;
+
+ if (b - anchor < 0) {
+ anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
+ // linear across the month
+ adjust = (b - anchor) / (anchor - anchor2);
+ } else {
+ anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
+ // linear across the month
+ adjust = (b - anchor) / (anchor2 - anchor);
+ }
+
+ //check for negative zero, return zero if negative zero
+ return -(wholeMonthDiff + adjust) || 0;
+ }
+
+ hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
+ hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
+
+ function toString () {
+ return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
+ }
+
+ function toISOString(keepOffset) {
+ if (!this.isValid()) {
+ return null;
+ }
+ var utc = keepOffset !== true;
+ var m = utc ? this.clone().utc() : this;
+ if (m.year() < 0 || m.year() > 9999) {
+ return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
+ }
+ if (isFunction(Date.prototype.toISOString)) {
+ // native implementation is ~50x faster, use it when we can
+ if (utc) {
+ return this.toDate().toISOString();
+ } else {
+ return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
+ }
+ }
+ return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
+ }
+
+ /**
+ * Return a human readable representation of a moment that can
+ * also be evaluated to get a new moment which is the same
+ *
+ * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
+ */
+ function inspect () {
+ if (!this.isValid()) {
+ return 'moment.invalid(/* ' + this._i + ' */)';
+ }
+ var func = 'moment';
+ var zone = '';
+ if (!this.isLocal()) {
+ func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
+ zone = 'Z';
+ }
+ var prefix = '[' + func + '("]';
+ var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
+ var datetime = '-MM-DD[T]HH:mm:ss.SSS';
+ var suffix = zone + '[")]';
+
+ return this.format(prefix + year + datetime + suffix);
+ }
+
+ function format (inputString) {
+ if (!inputString) {
+ inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
+ }
+ var output = formatMoment(this, inputString);
+ return this.localeData().postformat(output);
+ }
+
+ function from (time, withoutSuffix) {
+ if (this.isValid() &&
+ ((isMoment(time) && time.isValid()) ||
+ createLocal(time).isValid())) {
+ return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
+ } else {
+ return this.localeData().invalidDate();
+ }
+ }
+
+ function fromNow (withoutSuffix) {
+ return this.from(createLocal(), withoutSuffix);
+ }
+
+ function to (time, withoutSuffix) {
+ if (this.isValid() &&
+ ((isMoment(time) && time.isValid()) ||
+ createLocal(time).isValid())) {
+ return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
+ } else {
+ return this.localeData().invalidDate();
+ }
+ }
+
+ function toNow (withoutSuffix) {
+ return this.to(createLocal(), withoutSuffix);
+ }
+
+ // If passed a locale key, it will set the locale for this
+ // instance. Otherwise, it will return the locale configuration
+ // variables for this instance.
+ function locale (key) {
+ var newLocaleData;
+
+ if (key === undefined) {
+ return this._locale._abbr;
+ } else {
+ newLocaleData = getLocale(key);
+ if (newLocaleData != null) {
+ this._locale = newLocaleData;
+ }
+ return this;
+ }
+ }
+
+ var lang = deprecate(
+ 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
+ function (key) {
+ if (key === undefined) {
+ return this.localeData();
+ } else {
+ return this.locale(key);
+ }
+ }
+ );
+
+ function localeData () {
+ return this._locale;
+ }
+
+ function startOf (units) {
+ units = normalizeUnits(units);
+ // the following switch intentionally omits break keywords
+ // to utilize falling through the cases.
+ switch (units) {
+ case 'year':
+ this.month(0);
+ /* falls through */
+ case 'quarter':
+ case 'month':
+ this.date(1);
+ /* falls through */
+ case 'week':
+ case 'isoWeek':
+ case 'day':
+ case 'date':
+ this.hours(0);
+ /* falls through */
+ case 'hour':
+ this.minutes(0);
+ /* falls through */
+ case 'minute':
+ this.seconds(0);
+ /* falls through */
+ case 'second':
+ this.milliseconds(0);
+ }
+
+ // weeks are a special case
+ if (units === 'week') {
+ this.weekday(0);
+ }
+ if (units === 'isoWeek') {
+ this.isoWeekday(1);
+ }
+
+ // quarters are also special
+ if (units === 'quarter') {
+ this.month(Math.floor(this.month() / 3) * 3);
+ }
+
+ return this;
+ }
+
+ function endOf (units) {
+ units = normalizeUnits(units);
+ if (units === undefined || units === 'millisecond') {
+ return this;
+ }
+
+ // 'date' is an alias for 'day', so it should be considered as such.
+ if (units === 'date') {
+ units = 'day';
+ }
+
+ return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
+ }
+
+ function valueOf () {
+ return this._d.valueOf() - ((this._offset || 0) * 60000);
+ }
+
+ function unix () {
+ return Math.floor(this.valueOf() / 1000);
+ }
+
+ function toDate () {
+ return new Date(this.valueOf());
+ }
+
+ function toArray () {
+ var m = this;
+ return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
+ }
+
+ function toObject () {
+ var m = this;
+ return {
+ years: m.year(),
+ months: m.month(),
+ date: m.date(),
+ hours: m.hours(),
+ minutes: m.minutes(),
+ seconds: m.seconds(),
+ milliseconds: m.milliseconds()
+ };
+ }
+
+ function toJSON () {
+ // new Date(NaN).toJSON() === null
+ return this.isValid() ? this.toISOString() : null;
+ }
+
+ function isValid$2 () {
+ return isValid(this);
+ }
+
+ function parsingFlags () {
+ return extend({}, getParsingFlags(this));
+ }
+
+ function invalidAt () {
+ return getParsingFlags(this).overflow;
+ }
+
+ function creationData() {
+ return {
+ input: this._i,
+ format: this._f,
+ locale: this._locale,
+ isUTC: this._isUTC,
+ strict: this._strict
+ };
+ }
+
+ // FORMATTING
+
+ addFormatToken(0, ['gg', 2], 0, function () {
+ return this.weekYear() % 100;
+ });
+
+ addFormatToken(0, ['GG', 2], 0, function () {
+ return this.isoWeekYear() % 100;
+ });
+
+ function addWeekYearFormatToken (token, getter) {
+ addFormatToken(0, [token, token.length], 0, getter);
+ }
+
+ addWeekYearFormatToken('gggg', 'weekYear');
+ addWeekYearFormatToken('ggggg', 'weekYear');
+ addWeekYearFormatToken('GGGG', 'isoWeekYear');
+ addWeekYearFormatToken('GGGGG', 'isoWeekYear');
+
+ // ALIASES
+
+ addUnitAlias('weekYear', 'gg');
+ addUnitAlias('isoWeekYear', 'GG');
+
+ // PRIORITY
+
+ addUnitPriority('weekYear', 1);
+ addUnitPriority('isoWeekYear', 1);
+
+
+ // PARSING
+
+ addRegexToken('G', matchSigned);
+ addRegexToken('g', matchSigned);
+ addRegexToken('GG', match1to2, match2);
+ addRegexToken('gg', match1to2, match2);
+ addRegexToken('GGGG', match1to4, match4);
+ addRegexToken('gggg', match1to4, match4);
+ addRegexToken('GGGGG', match1to6, match6);
+ addRegexToken('ggggg', match1to6, match6);
+
+ addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
+ week[token.substr(0, 2)] = toInt(input);
+ });
+
+ addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
+ week[token] = hooks.parseTwoDigitYear(input);
+ });
+
+ // MOMENTS
+
+ function getSetWeekYear (input) {
+ return getSetWeekYearHelper.call(this,
+ input,
+ this.week(),
+ this.weekday(),
+ this.localeData()._week.dow,
+ this.localeData()._week.doy);
+ }
+
+ function getSetISOWeekYear (input) {
+ return getSetWeekYearHelper.call(this,
+ input, this.isoWeek(), this.isoWeekday(), 1, 4);
+ }
+
+ function getISOWeeksInYear () {
+ return weeksInYear(this.year(), 1, 4);
+ }
+
+ function getWeeksInYear () {
+ var weekInfo = this.localeData()._week;
+ return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
+ }
+
+ function getSetWeekYearHelper(input, week, weekday, dow, doy) {
+ var weeksTarget;
+ if (input == null) {
+ return weekOfYear(this, dow, doy).year;
+ } else {
+ weeksTarget = weeksInYear(input, dow, doy);
+ if (week > weeksTarget) {
+ week = weeksTarget;
+ }
+ return setWeekAll.call(this, input, week, weekday, dow, doy);
+ }
+ }
+
+ function setWeekAll(weekYear, week, weekday, dow, doy) {
+ var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
+ date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
+
+ this.year(date.getUTCFullYear());
+ this.month(date.getUTCMonth());
+ this.date(date.getUTCDate());
+ return this;
+ }
+
+ // FORMATTING
+
+ addFormatToken('Q', 0, 'Qo', 'quarter');
+
+ // ALIASES
+
+ addUnitAlias('quarter', 'Q');
+
+ // PRIORITY
+
+ addUnitPriority('quarter', 7);
+
+ // PARSING
+
+ addRegexToken('Q', match1);
+ addParseToken('Q', function (input, array) {
+ array[MONTH] = (toInt(input) - 1) * 3;
+ });
+
+ // MOMENTS
+
+ function getSetQuarter (input) {
+ return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
+ }
+
+ // FORMATTING
+
+ addFormatToken('D', ['DD', 2], 'Do', 'date');
+
+ // ALIASES
+
+ addUnitAlias('date', 'D');
+
+ // PRIOROITY
+ addUnitPriority('date', 9);
+
+ // PARSING
+
+ addRegexToken('D', match1to2);
+ addRegexToken('DD', match1to2, match2);
+ addRegexToken('Do', function (isStrict, locale) {
+ // TODO: Remove "ordinalParse" fallback in next major release.
+ return isStrict ?
+ (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
+ locale._dayOfMonthOrdinalParseLenient;
+ });
+
+ addParseToken(['D', 'DD'], DATE);
+ addParseToken('Do', function (input, array) {
+ array[DATE] = toInt(input.match(match1to2)[0]);
+ });
+
+ // MOMENTS
+
+ var getSetDayOfMonth = makeGetSet('Date', true);
+
+ // FORMATTING
+
+ addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
+
+ // ALIASES
+
+ addUnitAlias('dayOfYear', 'DDD');
+
+ // PRIORITY
+ addUnitPriority('dayOfYear', 4);
+
+ // PARSING
+
+ addRegexToken('DDD', match1to3);
+ addRegexToken('DDDD', match3);
+ addParseToken(['DDD', 'DDDD'], function (input, array, config) {
+ config._dayOfYear = toInt(input);
+ });
+
+ // HELPERS
+
+ // MOMENTS
+
+ function getSetDayOfYear (input) {
+ var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
+ return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
+ }
+
+ // FORMATTING
+
+ addFormatToken('m', ['mm', 2], 0, 'minute');
+
+ // ALIASES
+
+ addUnitAlias('minute', 'm');
+
+ // PRIORITY
+
+ addUnitPriority('minute', 14);
+
+ // PARSING
+
+ addRegexToken('m', match1to2);
+ addRegexToken('mm', match1to2, match2);
+ addParseToken(['m', 'mm'], MINUTE);
+
+ // MOMENTS
+
+ var getSetMinute = makeGetSet('Minutes', false);
+
+ // FORMATTING
+
+ addFormatToken('s', ['ss', 2], 0, 'second');
+
+ // ALIASES
+
+ addUnitAlias('second', 's');
+
+ // PRIORITY
+
+ addUnitPriority('second', 15);
+
+ // PARSING
+
+ addRegexToken('s', match1to2);
+ addRegexToken('ss', match1to2, match2);
+ addParseToken(['s', 'ss'], SECOND);
+
+ // MOMENTS
+
+ var getSetSecond = makeGetSet('Seconds', false);
+
+ // FORMATTING
+
+ addFormatToken('S', 0, 0, function () {
+ return ~~(this.millisecond() / 100);
+ });
+
+ addFormatToken(0, ['SS', 2], 0, function () {
+ return ~~(this.millisecond() / 10);
+ });
+
+ addFormatToken(0, ['SSS', 3], 0, 'millisecond');
+ addFormatToken(0, ['SSSS', 4], 0, function () {
+ return this.millisecond() * 10;
+ });
+ addFormatToken(0, ['SSSSS', 5], 0, function () {
+ return this.millisecond() * 100;
+ });
+ addFormatToken(0, ['SSSSSS', 6], 0, function () {
+ return this.millisecond() * 1000;
+ });
+ addFormatToken(0, ['SSSSSSS', 7], 0, function () {
+ return this.millisecond() * 10000;
+ });
+ addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
+ return this.millisecond() * 100000;
+ });
+ addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
+ return this.millisecond() * 1000000;
+ });
+
+
+ // ALIASES
+
+ addUnitAlias('millisecond', 'ms');
+
+ // PRIORITY
+
+ addUnitPriority('millisecond', 16);
+
+ // PARSING
+
+ addRegexToken('S', match1to3, match1);
+ addRegexToken('SS', match1to3, match2);
+ addRegexToken('SSS', match1to3, match3);
+
+ var token;
+ for (token = 'SSSS'; token.length <= 9; token += 'S') {
+ addRegexToken(token, matchUnsigned);
+ }
+
+ function parseMs(input, array) {
+ array[MILLISECOND] = toInt(('0.' + input) * 1000);
+ }
+
+ for (token = 'S'; token.length <= 9; token += 'S') {
+ addParseToken(token, parseMs);
+ }
+ // MOMENTS
+
+ var getSetMillisecond = makeGetSet('Milliseconds', false);
+
+ // FORMATTING
+
+ addFormatToken('z', 0, 0, 'zoneAbbr');
+ addFormatToken('zz', 0, 0, 'zoneName');
+
+ // MOMENTS
+
+ function getZoneAbbr () {
+ return this._isUTC ? 'UTC' : '';
+ }
+
+ function getZoneName () {
+ return this._isUTC ? 'Coordinated Universal Time' : '';
+ }
+
+ var proto = Moment.prototype;
+
+ proto.add = add;
+ proto.calendar = calendar$1;
+ proto.clone = clone;
+ proto.diff = diff;
+ proto.endOf = endOf;
+ proto.format = format;
+ proto.from = from;
+ proto.fromNow = fromNow;
+ proto.to = to;
+ proto.toNow = toNow;
+ proto.get = stringGet;
+ proto.invalidAt = invalidAt;
+ proto.isAfter = isAfter;
+ proto.isBefore = isBefore;
+ proto.isBetween = isBetween;
+ proto.isSame = isSame;
+ proto.isSameOrAfter = isSameOrAfter;
+ proto.isSameOrBefore = isSameOrBefore;
+ proto.isValid = isValid$2;
+ proto.lang = lang;
+ proto.locale = locale;
+ proto.localeData = localeData;
+ proto.max = prototypeMax;
+ proto.min = prototypeMin;
+ proto.parsingFlags = parsingFlags;
+ proto.set = stringSet;
+ proto.startOf = startOf;
+ proto.subtract = subtract;
+ proto.toArray = toArray;
+ proto.toObject = toObject;
+ proto.toDate = toDate;
+ proto.toISOString = toISOString;
+ proto.inspect = inspect;
+ proto.toJSON = toJSON;
+ proto.toString = toString;
+ proto.unix = unix;
+ proto.valueOf = valueOf;
+ proto.creationData = creationData;
+ proto.year = getSetYear;
+ proto.isLeapYear = getIsLeapYear;
+ proto.weekYear = getSetWeekYear;
+ proto.isoWeekYear = getSetISOWeekYear;
+ proto.quarter = proto.quarters = getSetQuarter;
+ proto.month = getSetMonth;
+ proto.daysInMonth = getDaysInMonth;
+ proto.week = proto.weeks = getSetWeek;
+ proto.isoWeek = proto.isoWeeks = getSetISOWeek;
+ proto.weeksInYear = getWeeksInYear;
+ proto.isoWeeksInYear = getISOWeeksInYear;
+ proto.date = getSetDayOfMonth;
+ proto.day = proto.days = getSetDayOfWeek;
+ proto.weekday = getSetLocaleDayOfWeek;
+ proto.isoWeekday = getSetISODayOfWeek;
+ proto.dayOfYear = getSetDayOfYear;
+ proto.hour = proto.hours = getSetHour;
+ proto.minute = proto.minutes = getSetMinute;
+ proto.second = proto.seconds = getSetSecond;
+ proto.millisecond = proto.milliseconds = getSetMillisecond;
+ proto.utcOffset = getSetOffset;
+ proto.utc = setOffsetToUTC;
+ proto.local = setOffsetToLocal;
+ proto.parseZone = setOffsetToParsedOffset;
+ proto.hasAlignedHourOffset = hasAlignedHourOffset;
+ proto.isDST = isDaylightSavingTime;
+ proto.isLocal = isLocal;
+ proto.isUtcOffset = isUtcOffset;
+ proto.isUtc = isUtc;
+ proto.isUTC = isUtc;
+ proto.zoneAbbr = getZoneAbbr;
+ proto.zoneName = getZoneName;
+ proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
+ proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
+ proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
+ proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
+ proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
+
+ function createUnix (input) {
+ return createLocal(input * 1000);
+ }
+
+ function createInZone () {
+ return createLocal.apply(null, arguments).parseZone();
+ }
+
+ function preParsePostFormat (string) {
+ return string;
+ }
+
+ var proto$1 = Locale.prototype;
+
+ proto$1.calendar = calendar;
+ proto$1.longDateFormat = longDateFormat;
+ proto$1.invalidDate = invalidDate;
+ proto$1.ordinal = ordinal;
+ proto$1.preparse = preParsePostFormat;
+ proto$1.postformat = preParsePostFormat;
+ proto$1.relativeTime = relativeTime;
+ proto$1.pastFuture = pastFuture;
+ proto$1.set = set;
+
+ proto$1.months = localeMonths;
+ proto$1.monthsShort = localeMonthsShort;
+ proto$1.monthsParse = localeMonthsParse;
+ proto$1.monthsRegex = monthsRegex;
+ proto$1.monthsShortRegex = monthsShortRegex;
+ proto$1.week = localeWeek;
+ proto$1.firstDayOfYear = localeFirstDayOfYear;
+ proto$1.firstDayOfWeek = localeFirstDayOfWeek;
+
+ proto$1.weekdays = localeWeekdays;
+ proto$1.weekdaysMin = localeWeekdaysMin;
+ proto$1.weekdaysShort = localeWeekdaysShort;
+ proto$1.weekdaysParse = localeWeekdaysParse;
+
+ proto$1.weekdaysRegex = weekdaysRegex;
+ proto$1.weekdaysShortRegex = weekdaysShortRegex;
+ proto$1.weekdaysMinRegex = weekdaysMinRegex;
+
+ proto$1.isPM = localeIsPM;
+ proto$1.meridiem = localeMeridiem;
+
+ function get$1 (format, index, field, setter) {
+ var locale = getLocale();
+ var utc = createUTC().set(setter, index);
+ return locale[field](utc, format);
+ }
+
+ function listMonthsImpl (format, index, field) {
+ if (isNumber(format)) {
+ index = format;
+ format = undefined;
+ }
+
+ format = format || '';
+
+ if (index != null) {
+ return get$1(format, index, field, 'month');
+ }
+
+ var i;
+ var out = [];
+ for (i = 0; i < 12; i++) {
+ out[i] = get$1(format, i, field, 'month');
+ }
+ return out;
+ }
+
+ // ()
+ // (5)
+ // (fmt, 5)
+ // (fmt)
+ // (true)
+ // (true, 5)
+ // (true, fmt, 5)
+ // (true, fmt)
+ function listWeekdaysImpl (localeSorted, format, index, field) {
+ if (typeof localeSorted === 'boolean') {
+ if (isNumber(format)) {
+ index = format;
+ format = undefined;
+ }
+
+ format = format || '';
+ } else {
+ format = localeSorted;
+ index = format;
+ localeSorted = false;
+
+ if (isNumber(format)) {
+ index = format;
+ format = undefined;
+ }
+
+ format = format || '';
+ }
+
+ var locale = getLocale(),
+ shift = localeSorted ? locale._week.dow : 0;
+
+ if (index != null) {
+ return get$1(format, (index + shift) % 7, field, 'day');
+ }
+
+ var i;
+ var out = [];
+ for (i = 0; i < 7; i++) {
+ out[i] = get$1(format, (i + shift) % 7, field, 'day');
+ }
+ return out;
+ }
+
+ function listMonths (format, index) {
+ return listMonthsImpl(format, index, 'months');
+ }
+
+ function listMonthsShort (format, index) {
+ return listMonthsImpl(format, index, 'monthsShort');
+ }
+
+ function listWeekdays (localeSorted, format, index) {
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
+ }
+
+ function listWeekdaysShort (localeSorted, format, index) {
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
+ }
+
+ function listWeekdaysMin (localeSorted, format, index) {
+ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
+ }
+
+ getSetGlobalLocale('en', {
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (toInt(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ }
+ });
+
+ // Side effect imports
+
+ hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
+ hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
+
+ var mathAbs = Math.abs;
+
+ function abs () {
+ var data = this._data;
+
+ this._milliseconds = mathAbs(this._milliseconds);
+ this._days = mathAbs(this._days);
+ this._months = mathAbs(this._months);
+
+ data.milliseconds = mathAbs(data.milliseconds);
+ data.seconds = mathAbs(data.seconds);
+ data.minutes = mathAbs(data.minutes);
+ data.hours = mathAbs(data.hours);
+ data.months = mathAbs(data.months);
+ data.years = mathAbs(data.years);
+
+ return this;
+ }
+
+ function addSubtract$1 (duration, input, value, direction) {
+ var other = createDuration(input, value);
+
+ duration._milliseconds += direction * other._milliseconds;
+ duration._days += direction * other._days;
+ duration._months += direction * other._months;
+
+ return duration._bubble();
+ }
+
+ // supports only 2.0-style add(1, 's') or add(duration)
+ function add$1 (input, value) {
+ return addSubtract$1(this, input, value, 1);
+ }
+
+ // supports only 2.0-style subtract(1, 's') or subtract(duration)
+ function subtract$1 (input, value) {
+ return addSubtract$1(this, input, value, -1);
+ }
+
+ function absCeil (number) {
+ if (number < 0) {
+ return Math.floor(number);
+ } else {
+ return Math.ceil(number);
+ }
+ }
+
+ function bubble () {
+ var milliseconds = this._milliseconds;
+ var days = this._days;
+ var months = this._months;
+ var data = this._data;
+ var seconds, minutes, hours, years, monthsFromDays;
+
+ // if we have a mix of positive and negative values, bubble down first
+ // check: https://github.com/moment/moment/issues/2166
+ if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
+ (milliseconds <= 0 && days <= 0 && months <= 0))) {
+ milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
+ days = 0;
+ months = 0;
+ }
+
+ // The following code bubbles up values, see the tests for
+ // examples of what that means.
+ data.milliseconds = milliseconds % 1000;
+
+ seconds = absFloor(milliseconds / 1000);
+ data.seconds = seconds % 60;
+
+ minutes = absFloor(seconds / 60);
+ data.minutes = minutes % 60;
+
+ hours = absFloor(minutes / 60);
+ data.hours = hours % 24;
+
+ days += absFloor(hours / 24);
+
+ // convert days to months
+ monthsFromDays = absFloor(daysToMonths(days));
+ months += monthsFromDays;
+ days -= absCeil(monthsToDays(monthsFromDays));
+
+ // 12 months -> 1 year
+ years = absFloor(months / 12);
+ months %= 12;
+
+ data.days = days;
+ data.months = months;
+ data.years = years;
+
+ return this;
+ }
+
+ function daysToMonths (days) {
+ // 400 years have 146097 days (taking into account leap year rules)
+ // 400 years have 12 months === 4800
+ return days * 4800 / 146097;
+ }
+
+ function monthsToDays (months) {
+ // the reverse of daysToMonths
+ return months * 146097 / 4800;
+ }
+
+ function as (units) {
+ if (!this.isValid()) {
+ return NaN;
+ }
+ var days;
+ var months;
+ var milliseconds = this._milliseconds;
+
+ units = normalizeUnits(units);
+
+ if (units === 'month' || units === 'year') {
+ days = this._days + milliseconds / 864e5;
+ months = this._months + daysToMonths(days);
+ return units === 'month' ? months : months / 12;
+ } else {
+ // handle milliseconds separately because of floating point math errors (issue #1867)
+ days = this._days + Math.round(monthsToDays(this._months));
+ switch (units) {
+ case 'week' : return days / 7 + milliseconds / 6048e5;
+ case 'day' : return days + milliseconds / 864e5;
+ case 'hour' : return days * 24 + milliseconds / 36e5;
+ case 'minute' : return days * 1440 + milliseconds / 6e4;
+ case 'second' : return days * 86400 + milliseconds / 1000;
+ // Math.floor prevents floating point math errors here
+ case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
+ default: throw new Error('Unknown unit ' + units);
+ }
+ }
+ }
+
+ // TODO: Use this.as('ms')?
+ function valueOf$1 () {
+ if (!this.isValid()) {
+ return NaN;
+ }
+ return (
+ this._milliseconds +
+ this._days * 864e5 +
+ (this._months % 12) * 2592e6 +
+ toInt(this._months / 12) * 31536e6
+ );
+ }
+
+ function makeAs (alias) {
+ return function () {
+ return this.as(alias);
+ };
+ }
+
+ var asMilliseconds = makeAs('ms');
+ var asSeconds = makeAs('s');
+ var asMinutes = makeAs('m');
+ var asHours = makeAs('h');
+ var asDays = makeAs('d');
+ var asWeeks = makeAs('w');
+ var asMonths = makeAs('M');
+ var asYears = makeAs('y');
+
+ function clone$1 () {
+ return createDuration(this);
+ }
+
+ function get$2 (units) {
+ units = normalizeUnits(units);
+ return this.isValid() ? this[units + 's']() : NaN;
+ }
+
+ function makeGetter(name) {
+ return function () {
+ return this.isValid() ? this._data[name] : NaN;
+ };
+ }
+
+ var milliseconds = makeGetter('milliseconds');
+ var seconds = makeGetter('seconds');
+ var minutes = makeGetter('minutes');
+ var hours = makeGetter('hours');
+ var days = makeGetter('days');
+ var months = makeGetter('months');
+ var years = makeGetter('years');
+
+ function weeks () {
+ return absFloor(this.days() / 7);
+ }
+
+ var round = Math.round;
+ var thresholds = {
+ ss: 44, // a few seconds to seconds
+ s : 45, // seconds to minute
+ m : 45, // minutes to hour
+ h : 22, // hours to day
+ d : 26, // days to month
+ M : 11 // months to year
+ };
+
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
+ function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
+ return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
+ }
+
+ function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
+ var duration = createDuration(posNegDuration).abs();
+ var seconds = round(duration.as('s'));
+ var minutes = round(duration.as('m'));
+ var hours = round(duration.as('h'));
+ var days = round(duration.as('d'));
+ var months = round(duration.as('M'));
+ var years = round(duration.as('y'));
+
+ var a = seconds <= thresholds.ss && ['s', seconds] ||
+ seconds < thresholds.s && ['ss', seconds] ||
+ minutes <= 1 && ['m'] ||
+ minutes < thresholds.m && ['mm', minutes] ||
+ hours <= 1 && ['h'] ||
+ hours < thresholds.h && ['hh', hours] ||
+ days <= 1 && ['d'] ||
+ days < thresholds.d && ['dd', days] ||
+ months <= 1 && ['M'] ||
+ months < thresholds.M && ['MM', months] ||
+ years <= 1 && ['y'] || ['yy', years];
+
+ a[2] = withoutSuffix;
+ a[3] = +posNegDuration > 0;
+ a[4] = locale;
+ return substituteTimeAgo.apply(null, a);
+ }
+
+ // This function allows you to set the rounding function for relative time strings
+ function getSetRelativeTimeRounding (roundingFunction) {
+ if (roundingFunction === undefined) {
+ return round;
+ }
+ if (typeof(roundingFunction) === 'function') {
+ round = roundingFunction;
+ return true;
+ }
+ return false;
+ }
+
+ // This function allows you to set a threshold for relative time strings
+ function getSetRelativeTimeThreshold (threshold, limit) {
+ if (thresholds[threshold] === undefined) {
+ return false;
+ }
+ if (limit === undefined) {
+ return thresholds[threshold];
+ }
+ thresholds[threshold] = limit;
+ if (threshold === 's') {
+ thresholds.ss = limit - 1;
+ }
+ return true;
+ }
+
+ function humanize (withSuffix) {
+ if (!this.isValid()) {
+ return this.localeData().invalidDate();
+ }
+
+ var locale = this.localeData();
+ var output = relativeTime$1(this, !withSuffix, locale);
+
+ if (withSuffix) {
+ output = locale.pastFuture(+this, output);
+ }
+
+ return locale.postformat(output);
+ }
+
+ var abs$1 = Math.abs;
+
+ function sign(x) {
+ return ((x > 0) - (x < 0)) || +x;
+ }
+
+ function toISOString$1() {
+ // for ISO strings we do not use the normal bubbling rules:
+ // * milliseconds bubble up until they become hours
+ // * days do not bubble at all
+ // * months bubble up until they become years
+ // This is because there is no context-free conversion between hours and days
+ // (think of clock changes)
+ // and also not between days and months (28-31 days per month)
+ if (!this.isValid()) {
+ return this.localeData().invalidDate();
+ }
+
+ var seconds = abs$1(this._milliseconds) / 1000;
+ var days = abs$1(this._days);
+ var months = abs$1(this._months);
+ var minutes, hours, years;
+
+ // 3600 seconds -> 60 minutes -> 1 hour
+ minutes = absFloor(seconds / 60);
+ hours = absFloor(minutes / 60);
+ seconds %= 60;
+ minutes %= 60;
+
+ // 12 months -> 1 year
+ years = absFloor(months / 12);
+ months %= 12;
+
+
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
+ var Y = years;
+ var M = months;
+ var D = days;
+ var h = hours;
+ var m = minutes;
+ var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
+ var total = this.asSeconds();
+
+ if (!total) {
+ // this is the same as C#'s (Noda) and python (isodate)...
+ // but not other JS (goog.date)
+ return 'P0D';
+ }
+
+ var totalSign = total < 0 ? '-' : '';
+ var ymSign = sign(this._months) !== sign(total) ? '-' : '';
+ var daysSign = sign(this._days) !== sign(total) ? '-' : '';
+ var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
+
+ return totalSign + 'P' +
+ (Y ? ymSign + Y + 'Y' : '') +
+ (M ? ymSign + M + 'M' : '') +
+ (D ? daysSign + D + 'D' : '') +
+ ((h || m || s) ? 'T' : '') +
+ (h ? hmsSign + h + 'H' : '') +
+ (m ? hmsSign + m + 'M' : '') +
+ (s ? hmsSign + s + 'S' : '');
+ }
+
+ var proto$2 = Duration.prototype;
+
+ proto$2.isValid = isValid$1;
+ proto$2.abs = abs;
+ proto$2.add = add$1;
+ proto$2.subtract = subtract$1;
+ proto$2.as = as;
+ proto$2.asMilliseconds = asMilliseconds;
+ proto$2.asSeconds = asSeconds;
+ proto$2.asMinutes = asMinutes;
+ proto$2.asHours = asHours;
+ proto$2.asDays = asDays;
+ proto$2.asWeeks = asWeeks;
+ proto$2.asMonths = asMonths;
+ proto$2.asYears = asYears;
+ proto$2.valueOf = valueOf$1;
+ proto$2._bubble = bubble;
+ proto$2.clone = clone$1;
+ proto$2.get = get$2;
+ proto$2.milliseconds = milliseconds;
+ proto$2.seconds = seconds;
+ proto$2.minutes = minutes;
+ proto$2.hours = hours;
+ proto$2.days = days;
+ proto$2.weeks = weeks;
+ proto$2.months = months;
+ proto$2.years = years;
+ proto$2.humanize = humanize;
+ proto$2.toISOString = toISOString$1;
+ proto$2.toString = toISOString$1;
+ proto$2.toJSON = toISOString$1;
+ proto$2.locale = locale;
+ proto$2.localeData = localeData;
+
+ proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
+ proto$2.lang = lang;
+
+ // Side effect imports
+
+ // FORMATTING
+
+ addFormatToken('X', 0, 0, 'unix');
+ addFormatToken('x', 0, 0, 'valueOf');
+
+ // PARSING
+
+ addRegexToken('x', matchSigned);
+ addRegexToken('X', matchTimestamp);
+ addParseToken('X', function (input, array, config) {
+ config._d = new Date(parseFloat(input, 10) * 1000);
+ });
+ addParseToken('x', function (input, array, config) {
+ config._d = new Date(toInt(input));
+ });
+
+ // Side effect imports
+
+
+ hooks.version = '2.22.0';
+
+ setHookCallback(createLocal);
+
+ hooks.fn = proto;
+ hooks.min = min;
+ hooks.max = max;
+ hooks.now = now;
+ hooks.utc = createUTC;
+ hooks.unix = createUnix;
+ hooks.months = listMonths;
+ hooks.isDate = isDate;
+ hooks.locale = getSetGlobalLocale;
+ hooks.invalid = createInvalid;
+ hooks.duration = createDuration;
+ hooks.isMoment = isMoment;
+ hooks.weekdays = listWeekdays;
+ hooks.parseZone = createInZone;
+ hooks.localeData = getLocale;
+ hooks.isDuration = isDuration;
+ hooks.monthsShort = listMonthsShort;
+ hooks.weekdaysMin = listWeekdaysMin;
+ hooks.defineLocale = defineLocale;
+ hooks.updateLocale = updateLocale;
+ hooks.locales = listLocales;
+ hooks.weekdaysShort = listWeekdaysShort;
+ hooks.normalizeUnits = normalizeUnits;
+ hooks.relativeTimeRounding = getSetRelativeTimeRounding;
+ hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
+ hooks.calendarFormat = getCalendarFormat;
+ hooks.prototype = proto;
+
+ // currently HTML5 input type only supports 24-hour formats
+ hooks.HTML5_FMT = {
+ DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', //
+ DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', //
+ DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', //
+ DATE: 'YYYY-MM-DD', //
+ TIME: 'HH:mm', //
+ TIME_SECONDS: 'HH:mm:ss', //
+ TIME_MS: 'HH:mm:ss.SSS', //
+ WEEK: 'YYYY-[W]WW', //
+ MONTH: 'YYYY-MM' //
+ };
+
+ return hooks;
+
+ })));
+
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(167)(module)))
+
+/***/ }),
+/* 246 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var map = {
+ "./af": 247,
+ "./af.js": 247,
+ "./ar": 248,
+ "./ar-dz": 249,
+ "./ar-dz.js": 249,
+ "./ar-kw": 250,
+ "./ar-kw.js": 250,
+ "./ar-ly": 251,
+ "./ar-ly.js": 251,
+ "./ar-ma": 252,
+ "./ar-ma.js": 252,
+ "./ar-sa": 253,
+ "./ar-sa.js": 253,
+ "./ar-tn": 254,
+ "./ar-tn.js": 254,
+ "./ar.js": 248,
+ "./az": 255,
+ "./az.js": 255,
+ "./be": 256,
+ "./be.js": 256,
+ "./bg": 257,
+ "./bg.js": 257,
+ "./bm": 258,
+ "./bm.js": 258,
+ "./bn": 259,
+ "./bn.js": 259,
+ "./bo": 260,
+ "./bo.js": 260,
+ "./br": 261,
+ "./br.js": 261,
+ "./bs": 262,
+ "./bs.js": 262,
+ "./ca": 263,
+ "./ca.js": 263,
+ "./cs": 264,
+ "./cs.js": 264,
+ "./cv": 265,
+ "./cv.js": 265,
+ "./cy": 266,
+ "./cy.js": 266,
+ "./da": 267,
+ "./da.js": 267,
+ "./de": 268,
+ "./de-at": 269,
+ "./de-at.js": 269,
+ "./de-ch": 270,
+ "./de-ch.js": 270,
+ "./de.js": 268,
+ "./dv": 271,
+ "./dv.js": 271,
+ "./el": 272,
+ "./el.js": 272,
+ "./en-au": 273,
+ "./en-au.js": 273,
+ "./en-ca": 274,
+ "./en-ca.js": 274,
+ "./en-gb": 275,
+ "./en-gb.js": 275,
+ "./en-ie": 276,
+ "./en-ie.js": 276,
+ "./en-il": 277,
+ "./en-il.js": 277,
+ "./en-nz": 278,
+ "./en-nz.js": 278,
+ "./eo": 279,
+ "./eo.js": 279,
+ "./es": 280,
+ "./es-do": 281,
+ "./es-do.js": 281,
+ "./es-us": 282,
+ "./es-us.js": 282,
+ "./es.js": 280,
+ "./et": 283,
+ "./et.js": 283,
+ "./eu": 284,
+ "./eu.js": 284,
+ "./fa": 285,
+ "./fa.js": 285,
+ "./fi": 286,
+ "./fi.js": 286,
+ "./fo": 287,
+ "./fo.js": 287,
+ "./fr": 288,
+ "./fr-ca": 289,
+ "./fr-ca.js": 289,
+ "./fr-ch": 290,
+ "./fr-ch.js": 290,
+ "./fr.js": 288,
+ "./fy": 291,
+ "./fy.js": 291,
+ "./gd": 292,
+ "./gd.js": 292,
+ "./gl": 293,
+ "./gl.js": 293,
+ "./gom-latn": 294,
+ "./gom-latn.js": 294,
+ "./gu": 295,
+ "./gu.js": 295,
+ "./he": 296,
+ "./he.js": 296,
+ "./hi": 297,
+ "./hi.js": 297,
+ "./hr": 298,
+ "./hr.js": 298,
+ "./hu": 299,
+ "./hu.js": 299,
+ "./hy-am": 300,
+ "./hy-am.js": 300,
+ "./id": 301,
+ "./id.js": 301,
+ "./is": 302,
+ "./is.js": 302,
+ "./it": 303,
+ "./it.js": 303,
+ "./ja": 304,
+ "./ja.js": 304,
+ "./jv": 305,
+ "./jv.js": 305,
+ "./ka": 306,
+ "./ka.js": 306,
+ "./kk": 307,
+ "./kk.js": 307,
+ "./km": 308,
+ "./km.js": 308,
+ "./kn": 309,
+ "./kn.js": 309,
+ "./ko": 310,
+ "./ko.js": 310,
+ "./ky": 311,
+ "./ky.js": 311,
+ "./lb": 312,
+ "./lb.js": 312,
+ "./lo": 313,
+ "./lo.js": 313,
+ "./lt": 314,
+ "./lt.js": 314,
+ "./lv": 315,
+ "./lv.js": 315,
+ "./me": 316,
+ "./me.js": 316,
+ "./mi": 317,
+ "./mi.js": 317,
+ "./mk": 318,
+ "./mk.js": 318,
+ "./ml": 319,
+ "./ml.js": 319,
+ "./mn": 320,
+ "./mn.js": 320,
+ "./mr": 321,
+ "./mr.js": 321,
+ "./ms": 322,
+ "./ms-my": 323,
+ "./ms-my.js": 323,
+ "./ms.js": 322,
+ "./mt": 324,
+ "./mt.js": 324,
+ "./my": 325,
+ "./my.js": 325,
+ "./nb": 326,
+ "./nb.js": 326,
+ "./ne": 327,
+ "./ne.js": 327,
+ "./nl": 328,
+ "./nl-be": 329,
+ "./nl-be.js": 329,
+ "./nl.js": 328,
+ "./nn": 330,
+ "./nn.js": 330,
+ "./pa-in": 331,
+ "./pa-in.js": 331,
+ "./pl": 332,
+ "./pl.js": 332,
+ "./pt": 333,
+ "./pt-br": 334,
+ "./pt-br.js": 334,
+ "./pt.js": 333,
+ "./ro": 335,
+ "./ro.js": 335,
+ "./ru": 336,
+ "./ru.js": 336,
+ "./sd": 337,
+ "./sd.js": 337,
+ "./se": 338,
+ "./se.js": 338,
+ "./si": 339,
+ "./si.js": 339,
+ "./sk": 340,
+ "./sk.js": 340,
+ "./sl": 341,
+ "./sl.js": 341,
+ "./sq": 342,
+ "./sq.js": 342,
+ "./sr": 343,
+ "./sr-cyrl": 344,
+ "./sr-cyrl.js": 344,
+ "./sr.js": 343,
+ "./ss": 345,
+ "./ss.js": 345,
+ "./sv": 346,
+ "./sv.js": 346,
+ "./sw": 347,
+ "./sw.js": 347,
+ "./ta": 348,
+ "./ta.js": 348,
+ "./te": 349,
+ "./te.js": 349,
+ "./tet": 350,
+ "./tet.js": 350,
+ "./tg": 351,
+ "./tg.js": 351,
+ "./th": 352,
+ "./th.js": 352,
+ "./tl-ph": 353,
+ "./tl-ph.js": 353,
+ "./tlh": 354,
+ "./tlh.js": 354,
+ "./tr": 355,
+ "./tr.js": 355,
+ "./tzl": 356,
+ "./tzl.js": 356,
+ "./tzm": 357,
+ "./tzm-latn": 358,
+ "./tzm-latn.js": 358,
+ "./tzm.js": 357,
+ "./ug-cn": 359,
+ "./ug-cn.js": 359,
+ "./uk": 360,
+ "./uk.js": 360,
+ "./ur": 361,
+ "./ur.js": 361,
+ "./uz": 362,
+ "./uz-latn": 363,
+ "./uz-latn.js": 363,
+ "./uz.js": 362,
+ "./vi": 364,
+ "./vi.js": 364,
+ "./x-pseudo": 365,
+ "./x-pseudo.js": 365,
+ "./yo": 366,
+ "./yo.js": 366,
+ "./zh-cn": 367,
+ "./zh-cn.js": 367,
+ "./zh-hk": 368,
+ "./zh-hk.js": 368,
+ "./zh-tw": 369,
+ "./zh-tw.js": 369
+ };
+ function webpackContext(req) {
+ return __webpack_require__(webpackContextResolve(req));
+ };
+ function webpackContextResolve(req) {
+ return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }());
+ };
+ webpackContext.keys = function webpackContextKeys() {
+ return Object.keys(map);
+ };
+ webpackContext.resolve = webpackContextResolve;
+ module.exports = webpackContext;
+ webpackContext.id = 246;
+
+
+/***/ }),
+/* 247 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var af = moment.defineLocale('af', {
+ months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
+ monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
+ weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
+ weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
+ weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
+ meridiemParse: /vm|nm/i,
+ isPM : function (input) {
+ return /^nm$/i.test(input);
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 12) {
+ return isLower ? 'vm' : 'VM';
+ } else {
+ return isLower ? 'nm' : 'NM';
+ }
+ },
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Vandag om] LT',
+ nextDay : '[Môre om] LT',
+ nextWeek : 'dddd [om] LT',
+ lastDay : '[Gister om] LT',
+ lastWeek : '[Laas] dddd [om] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'oor %s',
+ past : '%s gelede',
+ s : '\'n paar sekondes',
+ ss : '%d sekondes',
+ m : '\'n minuut',
+ mm : '%d minute',
+ h : '\'n uur',
+ hh : '%d ure',
+ d : '\'n dag',
+ dd : '%d dae',
+ M : '\'n maand',
+ MM : '%d maande',
+ y : '\'n jaar',
+ yy : '%d jaar'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+ ordinal : function (number) {
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
+ },
+ week : {
+ dow : 1, // Maandag is die eerste dag van die week.
+ doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
+ }
+ });
+
+ return af;
+
+ })));
+
+
+/***/ }),
+/* 248 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '١',
+ '2': '٢',
+ '3': '٣',
+ '4': '٤',
+ '5': '٥',
+ '6': '٦',
+ '7': '٧',
+ '8': '٨',
+ '9': '٩',
+ '0': '٠'
+ }, numberMap = {
+ '١': '1',
+ '٢': '2',
+ '٣': '3',
+ '٤': '4',
+ '٥': '5',
+ '٦': '6',
+ '٧': '7',
+ '٨': '8',
+ '٩': '9',
+ '٠': '0'
+ }, pluralForm = function (n) {
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
+ }, plurals = {
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
+ }, pluralize = function (u) {
+ return function (number, withoutSuffix, string, isFuture) {
+ var f = pluralForm(number),
+ str = plurals[u][pluralForm(number)];
+ if (f === 2) {
+ str = str[withoutSuffix ? 0 : 1];
+ }
+ return str.replace(/%d/i, number);
+ };
+ }, months = [
+ 'يناير',
+ 'فبراير',
+ 'مارس',
+ 'أبريل',
+ 'مايو',
+ 'يونيو',
+ 'يوليو',
+ 'أغسطس',
+ 'سبتمبر',
+ 'أكتوبر',
+ 'نوفمبر',
+ 'ديسمبر'
+ ];
+
+ var ar = moment.defineLocale('ar', {
+ months : months,
+ monthsShort : months,
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'D/\u200FM/\u200FYYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /ص|م/,
+ isPM : function (input) {
+ return 'م' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ص';
+ } else {
+ return 'م';
+ }
+ },
+ calendar : {
+ sameDay: '[اليوم عند الساعة] LT',
+ nextDay: '[غدًا عند الساعة] LT',
+ nextWeek: 'dddd [عند الساعة] LT',
+ lastDay: '[أمس عند الساعة] LT',
+ lastWeek: 'dddd [عند الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'بعد %s',
+ past : 'منذ %s',
+ s : pluralize('s'),
+ ss : pluralize('s'),
+ m : pluralize('m'),
+ mm : pluralize('m'),
+ h : pluralize('h'),
+ hh : pluralize('h'),
+ d : pluralize('d'),
+ dd : pluralize('d'),
+ M : pluralize('M'),
+ MM : pluralize('M'),
+ y : pluralize('y'),
+ yy : pluralize('y')
+ },
+ preparse: function (string) {
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+ return numberMap[match];
+ }).replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ }).replace(/,/g, '،');
+ },
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ar;
+
+ })));
+
+
+/***/ }),
+/* 249 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var arDz = moment.defineLocale('ar-dz', {
+ months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[اليوم على الساعة] LT',
+ nextDay: '[غدا على الساعة] LT',
+ nextWeek: 'dddd [على الساعة] LT',
+ lastDay: '[أمس على الساعة] LT',
+ lastWeek: 'dddd [على الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'في %s',
+ past : 'منذ %s',
+ s : 'ثوان',
+ ss : '%d ثانية',
+ m : 'دقيقة',
+ mm : '%d دقائق',
+ h : 'ساعة',
+ hh : '%d ساعات',
+ d : 'يوم',
+ dd : '%d أيام',
+ M : 'شهر',
+ MM : '%d أشهر',
+ y : 'سنة',
+ yy : '%d سنوات'
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 4 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return arDz;
+
+ })));
+
+
+/***/ }),
+/* 250 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var arKw = moment.defineLocale('ar-kw', {
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[اليوم على الساعة] LT',
+ nextDay: '[غدا على الساعة] LT',
+ nextWeek: 'dddd [على الساعة] LT',
+ lastDay: '[أمس على الساعة] LT',
+ lastWeek: 'dddd [على الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'في %s',
+ past : 'منذ %s',
+ s : 'ثوان',
+ ss : '%d ثانية',
+ m : 'دقيقة',
+ mm : '%d دقائق',
+ h : 'ساعة',
+ hh : '%d ساعات',
+ d : 'يوم',
+ dd : '%d أيام',
+ M : 'شهر',
+ MM : '%d أشهر',
+ y : 'سنة',
+ yy : '%d سنوات'
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return arKw;
+
+ })));
+
+
+/***/ }),
+/* 251 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '1',
+ '2': '2',
+ '3': '3',
+ '4': '4',
+ '5': '5',
+ '6': '6',
+ '7': '7',
+ '8': '8',
+ '9': '9',
+ '0': '0'
+ }, pluralForm = function (n) {
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
+ }, plurals = {
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
+ }, pluralize = function (u) {
+ return function (number, withoutSuffix, string, isFuture) {
+ var f = pluralForm(number),
+ str = plurals[u][pluralForm(number)];
+ if (f === 2) {
+ str = str[withoutSuffix ? 0 : 1];
+ }
+ return str.replace(/%d/i, number);
+ };
+ }, months = [
+ 'يناير',
+ 'فبراير',
+ 'مارس',
+ 'أبريل',
+ 'مايو',
+ 'يونيو',
+ 'يوليو',
+ 'أغسطس',
+ 'سبتمبر',
+ 'أكتوبر',
+ 'نوفمبر',
+ 'ديسمبر'
+ ];
+
+ var arLy = moment.defineLocale('ar-ly', {
+ months : months,
+ monthsShort : months,
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'D/\u200FM/\u200FYYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /ص|م/,
+ isPM : function (input) {
+ return 'م' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ص';
+ } else {
+ return 'م';
+ }
+ },
+ calendar : {
+ sameDay: '[اليوم عند الساعة] LT',
+ nextDay: '[غدًا عند الساعة] LT',
+ nextWeek: 'dddd [عند الساعة] LT',
+ lastDay: '[أمس عند الساعة] LT',
+ lastWeek: 'dddd [عند الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'بعد %s',
+ past : 'منذ %s',
+ s : pluralize('s'),
+ ss : pluralize('s'),
+ m : pluralize('m'),
+ mm : pluralize('m'),
+ h : pluralize('h'),
+ hh : pluralize('h'),
+ d : pluralize('d'),
+ dd : pluralize('d'),
+ M : pluralize('M'),
+ MM : pluralize('M'),
+ y : pluralize('y'),
+ yy : pluralize('y')
+ },
+ preparse: function (string) {
+ return string.replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ }).replace(/,/g, '،');
+ },
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return arLy;
+
+ })));
+
+
+/***/ }),
+/* 252 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var arMa = moment.defineLocale('ar-ma', {
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[اليوم على الساعة] LT',
+ nextDay: '[غدا على الساعة] LT',
+ nextWeek: 'dddd [على الساعة] LT',
+ lastDay: '[أمس على الساعة] LT',
+ lastWeek: 'dddd [على الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'في %s',
+ past : 'منذ %s',
+ s : 'ثوان',
+ ss : '%d ثانية',
+ m : 'دقيقة',
+ mm : '%d دقائق',
+ h : 'ساعة',
+ hh : '%d ساعات',
+ d : 'يوم',
+ dd : '%d أيام',
+ M : 'شهر',
+ MM : '%d أشهر',
+ y : 'سنة',
+ yy : '%d سنوات'
+ },
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return arMa;
+
+ })));
+
+
+/***/ }),
+/* 253 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '١',
+ '2': '٢',
+ '3': '٣',
+ '4': '٤',
+ '5': '٥',
+ '6': '٦',
+ '7': '٧',
+ '8': '٨',
+ '9': '٩',
+ '0': '٠'
+ }, numberMap = {
+ '١': '1',
+ '٢': '2',
+ '٣': '3',
+ '٤': '4',
+ '٥': '5',
+ '٦': '6',
+ '٧': '7',
+ '٨': '8',
+ '٩': '9',
+ '٠': '0'
+ };
+
+ var arSa = moment.defineLocale('ar-sa', {
+ months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /ص|م/,
+ isPM : function (input) {
+ return 'م' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ص';
+ } else {
+ return 'م';
+ }
+ },
+ calendar : {
+ sameDay: '[اليوم على الساعة] LT',
+ nextDay: '[غدا على الساعة] LT',
+ nextWeek: 'dddd [على الساعة] LT',
+ lastDay: '[أمس على الساعة] LT',
+ lastWeek: 'dddd [على الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'في %s',
+ past : 'منذ %s',
+ s : 'ثوان',
+ ss : '%d ثانية',
+ m : 'دقيقة',
+ mm : '%d دقائق',
+ h : 'ساعة',
+ hh : '%d ساعات',
+ d : 'يوم',
+ dd : '%d أيام',
+ M : 'شهر',
+ MM : '%d أشهر',
+ y : 'سنة',
+ yy : '%d سنوات'
+ },
+ preparse: function (string) {
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+ return numberMap[match];
+ }).replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ }).replace(/,/g, '،');
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return arSa;
+
+ })));
+
+
+/***/ }),
+/* 254 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var arTn = moment.defineLocale('ar-tn', {
+ months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar: {
+ sameDay: '[اليوم على الساعة] LT',
+ nextDay: '[غدا على الساعة] LT',
+ nextWeek: 'dddd [على الساعة] LT',
+ lastDay: '[أمس على الساعة] LT',
+ lastWeek: 'dddd [على الساعة] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: 'في %s',
+ past: 'منذ %s',
+ s: 'ثوان',
+ ss : '%d ثانية',
+ m: 'دقيقة',
+ mm: '%d دقائق',
+ h: 'ساعة',
+ hh: '%d ساعات',
+ d: 'يوم',
+ dd: '%d أيام',
+ M: 'شهر',
+ MM: '%d أشهر',
+ y: 'سنة',
+ yy: '%d سنوات'
+ },
+ week: {
+ dow: 1, // Monday is the first day of the week.
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return arTn;
+
+ })));
+
+
+/***/ }),
+/* 255 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var suffixes = {
+ 1: '-inci',
+ 5: '-inci',
+ 8: '-inci',
+ 70: '-inci',
+ 80: '-inci',
+ 2: '-nci',
+ 7: '-nci',
+ 20: '-nci',
+ 50: '-nci',
+ 3: '-üncü',
+ 4: '-üncü',
+ 100: '-üncü',
+ 6: '-ncı',
+ 9: '-uncu',
+ 10: '-uncu',
+ 30: '-uncu',
+ 60: '-ıncı',
+ 90: '-ıncı'
+ };
+
+ var az = moment.defineLocale('az', {
+ months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
+ monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
+ weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
+ weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
+ weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[bugün saat] LT',
+ nextDay : '[sabah saat] LT',
+ nextWeek : '[gələn həftə] dddd [saat] LT',
+ lastDay : '[dünən] LT',
+ lastWeek : '[keçən həftə] dddd [saat] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s sonra',
+ past : '%s əvvəl',
+ s : 'birneçə saniyyə',
+ ss : '%d saniyə',
+ m : 'bir dəqiqə',
+ mm : '%d dəqiqə',
+ h : 'bir saat',
+ hh : '%d saat',
+ d : 'bir gün',
+ dd : '%d gün',
+ M : 'bir ay',
+ MM : '%d ay',
+ y : 'bir il',
+ yy : '%d il'
+ },
+ meridiemParse: /gecə|səhər|gündüz|axşam/,
+ isPM : function (input) {
+ return /^(gündüz|axşam)$/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'gecə';
+ } else if (hour < 12) {
+ return 'səhər';
+ } else if (hour < 17) {
+ return 'gündüz';
+ } else {
+ return 'axşam';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
+ ordinal : function (number) {
+ if (number === 0) { // special case for zero
+ return number + '-ıncı';
+ }
+ var a = number % 10,
+ b = number % 100 - a,
+ c = number >= 100 ? 100 : null;
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return az;
+
+ })));
+
+
+/***/ }),
+/* 256 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function plural(word, num) {
+ var forms = word.split('_');
+ return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
+ }
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
+ var format = {
+ 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
+ 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
+ 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
+ 'dd': 'дзень_дні_дзён',
+ 'MM': 'месяц_месяцы_месяцаў',
+ 'yy': 'год_гады_гадоў'
+ };
+ if (key === 'm') {
+ return withoutSuffix ? 'хвіліна' : 'хвіліну';
+ }
+ else if (key === 'h') {
+ return withoutSuffix ? 'гадзіна' : 'гадзіну';
+ }
+ else {
+ return number + ' ' + plural(format[key], +number);
+ }
+ }
+
+ var be = moment.defineLocale('be', {
+ months : {
+ format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
+ standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
+ },
+ monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
+ weekdays : {
+ format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
+ standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
+ isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
+ },
+ weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
+ weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY г.',
+ LLL : 'D MMMM YYYY г., HH:mm',
+ LLLL : 'dddd, D MMMM YYYY г., HH:mm'
+ },
+ calendar : {
+ sameDay: '[Сёння ў] LT',
+ nextDay: '[Заўтра ў] LT',
+ lastDay: '[Учора ў] LT',
+ nextWeek: function () {
+ return '[У] dddd [ў] LT';
+ },
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ case 5:
+ case 6:
+ return '[У мінулую] dddd [ў] LT';
+ case 1:
+ case 2:
+ case 4:
+ return '[У мінулы] dddd [ў] LT';
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'праз %s',
+ past : '%s таму',
+ s : 'некалькі секунд',
+ m : relativeTimeWithPlural,
+ mm : relativeTimeWithPlural,
+ h : relativeTimeWithPlural,
+ hh : relativeTimeWithPlural,
+ d : 'дзень',
+ dd : relativeTimeWithPlural,
+ M : 'месяц',
+ MM : relativeTimeWithPlural,
+ y : 'год',
+ yy : relativeTimeWithPlural
+ },
+ meridiemParse: /ночы|раніцы|дня|вечара/,
+ isPM : function (input) {
+ return /^(дня|вечара)$/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'ночы';
+ } else if (hour < 12) {
+ return 'раніцы';
+ } else if (hour < 17) {
+ return 'дня';
+ } else {
+ return 'вечара';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'M':
+ case 'd':
+ case 'DDD':
+ case 'w':
+ case 'W':
+ return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
+ case 'D':
+ return number + '-га';
+ default:
+ return number;
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return be;
+
+ })));
+
+
+/***/ }),
+/* 257 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var bg = moment.defineLocale('bg', {
+ months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
+ monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
+ weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
+ weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'D.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY H:mm',
+ LLLL : 'dddd, D MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[Днес в] LT',
+ nextDay : '[Утре в] LT',
+ nextWeek : 'dddd [в] LT',
+ lastDay : '[Вчера в] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ case 6:
+ return '[В изминалата] dddd [в] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[В изминалия] dddd [в] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'след %s',
+ past : 'преди %s',
+ s : 'няколко секунди',
+ ss : '%d секунди',
+ m : 'минута',
+ mm : '%d минути',
+ h : 'час',
+ hh : '%d часа',
+ d : 'ден',
+ dd : '%d дни',
+ M : 'месец',
+ MM : '%d месеца',
+ y : 'година',
+ yy : '%d години'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
+ ordinal : function (number) {
+ var lastDigit = number % 10,
+ last2Digits = number % 100;
+ if (number === 0) {
+ return number + '-ев';
+ } else if (last2Digits === 0) {
+ return number + '-ен';
+ } else if (last2Digits > 10 && last2Digits < 20) {
+ return number + '-ти';
+ } else if (lastDigit === 1) {
+ return number + '-ви';
+ } else if (lastDigit === 2) {
+ return number + '-ри';
+ } else if (lastDigit === 7 || lastDigit === 8) {
+ return number + '-ми';
+ } else {
+ return number + '-ти';
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return bg;
+
+ })));
+
+
+/***/ }),
+/* 258 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var bm = moment.defineLocale('bm', {
+ months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
+ monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
+ weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
+ weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
+ weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'MMMM [tile] D [san] YYYY',
+ LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
+ LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
+ },
+ calendar : {
+ sameDay : '[Bi lɛrɛ] LT',
+ nextDay : '[Sini lɛrɛ] LT',
+ nextWeek : 'dddd [don lɛrɛ] LT',
+ lastDay : '[Kunu lɛrɛ] LT',
+ lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s kɔnɔ',
+ past : 'a bɛ %s bɔ',
+ s : 'sanga dama dama',
+ ss : 'sekondi %d',
+ m : 'miniti kelen',
+ mm : 'miniti %d',
+ h : 'lɛrɛ kelen',
+ hh : 'lɛrɛ %d',
+ d : 'tile kelen',
+ dd : 'tile %d',
+ M : 'kalo kelen',
+ MM : 'kalo %d',
+ y : 'san kelen',
+ yy : 'san %d'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return bm;
+
+ })));
+
+
+/***/ }),
+/* 259 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '১',
+ '2': '২',
+ '3': '৩',
+ '4': '৪',
+ '5': '৫',
+ '6': '৬',
+ '7': '৭',
+ '8': '৮',
+ '9': '৯',
+ '0': '০'
+ },
+ numberMap = {
+ '১': '1',
+ '২': '2',
+ '৩': '3',
+ '৪': '4',
+ '৫': '5',
+ '৬': '6',
+ '৭': '7',
+ '৮': '8',
+ '৯': '9',
+ '০': '0'
+ };
+
+ var bn = moment.defineLocale('bn', {
+ months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
+ monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
+ weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
+ weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
+ weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm সময়',
+ LTS : 'A h:mm:ss সময়',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm সময়',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
+ },
+ calendar : {
+ sameDay : '[আজ] LT',
+ nextDay : '[আগামীকাল] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[গতকাল] LT',
+ lastWeek : '[গত] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s পরে',
+ past : '%s আগে',
+ s : 'কয়েক সেকেন্ড',
+ ss : '%d সেকেন্ড',
+ m : 'এক মিনিট',
+ mm : '%d মিনিট',
+ h : 'এক ঘন্টা',
+ hh : '%d ঘন্টা',
+ d : 'এক দিন',
+ dd : '%d দিন',
+ M : 'এক মাস',
+ MM : '%d মাস',
+ y : 'এক বছর',
+ yy : '%d বছর'
+ },
+ preparse: function (string) {
+ return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if ((meridiem === 'রাত' && hour >= 4) ||
+ (meridiem === 'দুপুর' && hour < 5) ||
+ meridiem === 'বিকাল') {
+ return hour + 12;
+ } else {
+ return hour;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'রাত';
+ } else if (hour < 10) {
+ return 'সকাল';
+ } else if (hour < 17) {
+ return 'দুপুর';
+ } else if (hour < 20) {
+ return 'বিকাল';
+ } else {
+ return 'রাত';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return bn;
+
+ })));
+
+
+/***/ }),
+/* 260 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '༡',
+ '2': '༢',
+ '3': '༣',
+ '4': '༤',
+ '5': '༥',
+ '6': '༦',
+ '7': '༧',
+ '8': '༨',
+ '9': '༩',
+ '0': '༠'
+ },
+ numberMap = {
+ '༡': '1',
+ '༢': '2',
+ '༣': '3',
+ '༤': '4',
+ '༥': '5',
+ '༦': '6',
+ '༧': '7',
+ '༨': '8',
+ '༩': '9',
+ '༠': '0'
+ };
+
+ var bo = moment.defineLocale('bo', {
+ months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
+ monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
+ weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
+ weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
+ weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm',
+ LTS : 'A h:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
+ },
+ calendar : {
+ sameDay : '[དི་རིང] LT',
+ nextDay : '[སང་ཉིན] LT',
+ nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
+ lastDay : '[ཁ་སང] LT',
+ lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s ལ་',
+ past : '%s སྔན་ལ',
+ s : 'ལམ་སང',
+ ss : '%d སྐར་ཆ།',
+ m : 'སྐར་མ་གཅིག',
+ mm : '%d སྐར་མ',
+ h : 'ཆུ་ཚོད་གཅིག',
+ hh : '%d ཆུ་ཚོད',
+ d : 'ཉིན་གཅིག',
+ dd : '%d ཉིན་',
+ M : 'ཟླ་བ་གཅིག',
+ MM : '%d ཟླ་བ',
+ y : 'ལོ་གཅིག',
+ yy : '%d ལོ'
+ },
+ preparse: function (string) {
+ return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
+ (meridiem === 'ཉིན་གུང' && hour < 5) ||
+ meridiem === 'དགོང་དག') {
+ return hour + 12;
+ } else {
+ return hour;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'མཚན་མོ';
+ } else if (hour < 10) {
+ return 'ཞོགས་ཀས';
+ } else if (hour < 17) {
+ return 'ཉིན་གུང';
+ } else if (hour < 20) {
+ return 'དགོང་དག';
+ } else {
+ return 'མཚན་མོ';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return bo;
+
+ })));
+
+
+/***/ }),
+/* 261 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function relativeTimeWithMutation(number, withoutSuffix, key) {
+ var format = {
+ 'mm': 'munutenn',
+ 'MM': 'miz',
+ 'dd': 'devezh'
+ };
+ return number + ' ' + mutation(format[key], number);
+ }
+ function specialMutationForYears(number) {
+ switch (lastNumber(number)) {
+ case 1:
+ case 3:
+ case 4:
+ case 5:
+ case 9:
+ return number + ' bloaz';
+ default:
+ return number + ' vloaz';
+ }
+ }
+ function lastNumber(number) {
+ if (number > 9) {
+ return lastNumber(number % 10);
+ }
+ return number;
+ }
+ function mutation(text, number) {
+ if (number === 2) {
+ return softMutation(text);
+ }
+ return text;
+ }
+ function softMutation(text) {
+ var mutationTable = {
+ 'm': 'v',
+ 'b': 'v',
+ 'd': 'z'
+ };
+ if (mutationTable[text.charAt(0)] === undefined) {
+ return text;
+ }
+ return mutationTable[text.charAt(0)] + text.substring(1);
+ }
+
+ var br = moment.defineLocale('br', {
+ months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
+ monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
+ weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
+ weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
+ weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'h[e]mm A',
+ LTS : 'h[e]mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D [a viz] MMMM YYYY',
+ LLL : 'D [a viz] MMMM YYYY h[e]mm A',
+ LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
+ },
+ calendar : {
+ sameDay : '[Hiziv da] LT',
+ nextDay : '[Warc\'hoazh da] LT',
+ nextWeek : 'dddd [da] LT',
+ lastDay : '[Dec\'h da] LT',
+ lastWeek : 'dddd [paset da] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'a-benn %s',
+ past : '%s \'zo',
+ s : 'un nebeud segondennoù',
+ ss : '%d eilenn',
+ m : 'ur vunutenn',
+ mm : relativeTimeWithMutation,
+ h : 'un eur',
+ hh : '%d eur',
+ d : 'un devezh',
+ dd : relativeTimeWithMutation,
+ M : 'ur miz',
+ MM : relativeTimeWithMutation,
+ y : 'ur bloaz',
+ yy : specialMutationForYears
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
+ ordinal : function (number) {
+ var output = (number === 1) ? 'añ' : 'vet';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return br;
+
+ })));
+
+
+/***/ }),
+/* 262 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function translate(number, withoutSuffix, key) {
+ var result = number + ' ';
+ switch (key) {
+ case 'ss':
+ if (number === 1) {
+ result += 'sekunda';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'sekunde';
+ } else {
+ result += 'sekundi';
+ }
+ return result;
+ case 'm':
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
+ case 'mm':
+ if (number === 1) {
+ result += 'minuta';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'minute';
+ } else {
+ result += 'minuta';
+ }
+ return result;
+ case 'h':
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
+ case 'hh':
+ if (number === 1) {
+ result += 'sat';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'sata';
+ } else {
+ result += 'sati';
+ }
+ return result;
+ case 'dd':
+ if (number === 1) {
+ result += 'dan';
+ } else {
+ result += 'dana';
+ }
+ return result;
+ case 'MM':
+ if (number === 1) {
+ result += 'mjesec';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'mjeseca';
+ } else {
+ result += 'mjeseci';
+ }
+ return result;
+ case 'yy':
+ if (number === 1) {
+ result += 'godina';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'godine';
+ } else {
+ result += 'godina';
+ }
+ return result;
+ }
+ }
+
+ var bs = moment.defineLocale('bs', {
+ months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
+ weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[danas u] LT',
+ nextDay : '[sutra u] LT',
+ nextWeek : function () {
+ switch (this.day()) {
+ case 0:
+ return '[u] [nedjelju] [u] LT';
+ case 3:
+ return '[u] [srijedu] [u] LT';
+ case 6:
+ return '[u] [subotu] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[u] dddd [u] LT';
+ }
+ },
+ lastDay : '[jučer u] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ return '[prošlu] dddd [u] LT';
+ case 6:
+ return '[prošle] [subote] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[prošli] dddd [u] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'prije %s',
+ s : 'par sekundi',
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : 'dan',
+ dd : translate,
+ M : 'mjesec',
+ MM : translate,
+ y : 'godinu',
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return bs;
+
+ })));
+
+
+/***/ }),
+/* 263 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ca = moment.defineLocale('ca', {
+ months : {
+ standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
+ format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
+ isFormat: /D[oD]?(\s)+MMMM/
+ },
+ monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
+ weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
+ weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM [de] YYYY',
+ ll : 'D MMM YYYY',
+ LLL : 'D MMMM [de] YYYY [a les] H:mm',
+ lll : 'D MMM YYYY, H:mm',
+ LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
+ llll : 'ddd D MMM YYYY, H:mm'
+ },
+ calendar : {
+ sameDay : function () {
+ return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
+ },
+ nextDay : function () {
+ return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
+ },
+ nextWeek : function () {
+ return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
+ },
+ lastDay : function () {
+ return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
+ },
+ lastWeek : function () {
+ return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'd\'aquí %s',
+ past : 'fa %s',
+ s : 'uns segons',
+ ss : '%d segons',
+ m : 'un minut',
+ mm : '%d minuts',
+ h : 'una hora',
+ hh : '%d hores',
+ d : 'un dia',
+ dd : '%d dies',
+ M : 'un mes',
+ MM : '%d mesos',
+ y : 'un any',
+ yy : '%d anys'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
+ ordinal : function (number, period) {
+ var output = (number === 1) ? 'r' :
+ (number === 2) ? 'n' :
+ (number === 3) ? 'r' :
+ (number === 4) ? 't' : 'è';
+ if (period === 'w' || period === 'W') {
+ output = 'a';
+ }
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return ca;
+
+ })));
+
+
+/***/ }),
+/* 264 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
+ monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
+ function plural(n) {
+ return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
+ }
+ function translate(number, withoutSuffix, key, isFuture) {
+ var result = number + ' ';
+ switch (key) {
+ case 's': // a few seconds / in a few seconds / a few seconds ago
+ return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'sekundy' : 'sekund');
+ } else {
+ return result + 'sekundami';
+ }
+ break;
+ case 'm': // a minute / in a minute / a minute ago
+ return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'minuty' : 'minut');
+ } else {
+ return result + 'minutami';
+ }
+ break;
+ case 'h': // an hour / in an hour / an hour ago
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'hodiny' : 'hodin');
+ } else {
+ return result + 'hodinami';
+ }
+ break;
+ case 'd': // a day / in a day / a day ago
+ return (withoutSuffix || isFuture) ? 'den' : 'dnem';
+ case 'dd': // 9 days / in 9 days / 9 days ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'dny' : 'dní');
+ } else {
+ return result + 'dny';
+ }
+ break;
+ case 'M': // a month / in a month / a month ago
+ return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
+ case 'MM': // 9 months / in 9 months / 9 months ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'měsíce' : 'měsíců');
+ } else {
+ return result + 'měsíci';
+ }
+ break;
+ case 'y': // a year / in a year / a year ago
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
+ case 'yy': // 9 years / in 9 years / 9 years ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'roky' : 'let');
+ } else {
+ return result + 'lety';
+ }
+ break;
+ }
+ }
+
+ var cs = moment.defineLocale('cs', {
+ months : months,
+ monthsShort : monthsShort,
+ monthsParse : (function (months, monthsShort) {
+ var i, _monthsParse = [];
+ for (i = 0; i < 12; i++) {
+ // use custom parser to solve problem with July (červenec)
+ _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
+ }
+ return _monthsParse;
+ }(months, monthsShort)),
+ shortMonthsParse : (function (monthsShort) {
+ var i, _shortMonthsParse = [];
+ for (i = 0; i < 12; i++) {
+ _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
+ }
+ return _shortMonthsParse;
+ }(monthsShort)),
+ longMonthsParse : (function (months) {
+ var i, _longMonthsParse = [];
+ for (i = 0; i < 12; i++) {
+ _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
+ }
+ return _longMonthsParse;
+ }(months)),
+ weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
+ weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
+ weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
+ longDateFormat : {
+ LT: 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd D. MMMM YYYY H:mm',
+ l : 'D. M. YYYY'
+ },
+ calendar : {
+ sameDay: '[dnes v] LT',
+ nextDay: '[zítra v] LT',
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[v neděli v] LT';
+ case 1:
+ case 2:
+ return '[v] dddd [v] LT';
+ case 3:
+ return '[ve středu v] LT';
+ case 4:
+ return '[ve čtvrtek v] LT';
+ case 5:
+ return '[v pátek v] LT';
+ case 6:
+ return '[v sobotu v] LT';
+ }
+ },
+ lastDay: '[včera v] LT',
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[minulou neděli v] LT';
+ case 1:
+ case 2:
+ return '[minulé] dddd [v] LT';
+ case 3:
+ return '[minulou středu v] LT';
+ case 4:
+ case 5:
+ return '[minulý] dddd [v] LT';
+ case 6:
+ return '[minulou sobotu v] LT';
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'před %s',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return cs;
+
+ })));
+
+
+/***/ }),
+/* 265 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var cv = moment.defineLocale('cv', {
+ months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
+ monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
+ weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
+ weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
+ weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD-MM-YYYY',
+ LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
+ LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
+ LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
+ },
+ calendar : {
+ sameDay: '[Паян] LT [сехетре]',
+ nextDay: '[Ыран] LT [сехетре]',
+ lastDay: '[Ӗнер] LT [сехетре]',
+ nextWeek: '[Ҫитес] dddd LT [сехетре]',
+ lastWeek: '[Иртнӗ] dddd LT [сехетре]',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : function (output) {
+ var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
+ return output + affix;
+ },
+ past : '%s каялла',
+ s : 'пӗр-ик ҫеккунт',
+ ss : '%d ҫеккунт',
+ m : 'пӗр минут',
+ mm : '%d минут',
+ h : 'пӗр сехет',
+ hh : '%d сехет',
+ d : 'пӗр кун',
+ dd : '%d кун',
+ M : 'пӗр уйӑх',
+ MM : '%d уйӑх',
+ y : 'пӗр ҫул',
+ yy : '%d ҫул'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
+ ordinal : '%d-мӗш',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return cv;
+
+ })));
+
+
+/***/ }),
+/* 266 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var cy = moment.defineLocale('cy', {
+ months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
+ monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
+ weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
+ weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
+ weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
+ weekdaysParseExact : true,
+ // time formats are the same as en-gb
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar: {
+ sameDay: '[Heddiw am] LT',
+ nextDay: '[Yfory am] LT',
+ nextWeek: 'dddd [am] LT',
+ lastDay: '[Ddoe am] LT',
+ lastWeek: 'dddd [diwethaf am] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: 'mewn %s',
+ past: '%s yn ôl',
+ s: 'ychydig eiliadau',
+ ss: '%d eiliad',
+ m: 'munud',
+ mm: '%d munud',
+ h: 'awr',
+ hh: '%d awr',
+ d: 'diwrnod',
+ dd: '%d diwrnod',
+ M: 'mis',
+ MM: '%d mis',
+ y: 'blwyddyn',
+ yy: '%d flynedd'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
+ // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
+ ordinal: function (number) {
+ var b = number,
+ output = '',
+ lookup = [
+ '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
+ 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
+ ];
+ if (b > 20) {
+ if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
+ output = 'fed'; // not 30ain, 70ain or 90ain
+ } else {
+ output = 'ain';
+ }
+ } else if (b > 0) {
+ output = lookup[b];
+ }
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return cy;
+
+ })));
+
+
+/***/ }),
+/* 267 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var da = moment.defineLocale('da', {
+ months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
+ weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
+ weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
+ weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY HH:mm',
+ LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
+ },
+ calendar : {
+ sameDay : '[i dag kl.] LT',
+ nextDay : '[i morgen kl.] LT',
+ nextWeek : 'på dddd [kl.] LT',
+ lastDay : '[i går kl.] LT',
+ lastWeek : '[i] dddd[s kl.] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'om %s',
+ past : '%s siden',
+ s : 'få sekunder',
+ ss : '%d sekunder',
+ m : 'et minut',
+ mm : '%d minutter',
+ h : 'en time',
+ hh : '%d timer',
+ d : 'en dag',
+ dd : '%d dage',
+ M : 'en måned',
+ MM : '%d måneder',
+ y : 'et år',
+ yy : '%d år'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return da;
+
+ })));
+
+
+/***/ }),
+/* 268 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 'm': ['eine Minute', 'einer Minute'],
+ 'h': ['eine Stunde', 'einer Stunde'],
+ 'd': ['ein Tag', 'einem Tag'],
+ 'dd': [number + ' Tage', number + ' Tagen'],
+ 'M': ['ein Monat', 'einem Monat'],
+ 'MM': [number + ' Monate', number + ' Monaten'],
+ 'y': ['ein Jahr', 'einem Jahr'],
+ 'yy': [number + ' Jahre', number + ' Jahren']
+ };
+ return withoutSuffix ? format[key][0] : format[key][1];
+ }
+
+ var de = moment.defineLocale('de', {
+ months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
+ monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
+ weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
+ weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY HH:mm',
+ LLLL : 'dddd, D. MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[heute um] LT [Uhr]',
+ sameElse: 'L',
+ nextDay: '[morgen um] LT [Uhr]',
+ nextWeek: 'dddd [um] LT [Uhr]',
+ lastDay: '[gestern um] LT [Uhr]',
+ lastWeek: '[letzten] dddd [um] LT [Uhr]'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : 'vor %s',
+ s : 'ein paar Sekunden',
+ ss : '%d Sekunden',
+ m : processRelativeTime,
+ mm : '%d Minuten',
+ h : processRelativeTime,
+ hh : '%d Stunden',
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return de;
+
+ })));
+
+
+/***/ }),
+/* 269 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 'm': ['eine Minute', 'einer Minute'],
+ 'h': ['eine Stunde', 'einer Stunde'],
+ 'd': ['ein Tag', 'einem Tag'],
+ 'dd': [number + ' Tage', number + ' Tagen'],
+ 'M': ['ein Monat', 'einem Monat'],
+ 'MM': [number + ' Monate', number + ' Monaten'],
+ 'y': ['ein Jahr', 'einem Jahr'],
+ 'yy': [number + ' Jahre', number + ' Jahren']
+ };
+ return withoutSuffix ? format[key][0] : format[key][1];
+ }
+
+ var deAt = moment.defineLocale('de-at', {
+ months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
+ monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
+ weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
+ weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY HH:mm',
+ LLLL : 'dddd, D. MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[heute um] LT [Uhr]',
+ sameElse: 'L',
+ nextDay: '[morgen um] LT [Uhr]',
+ nextWeek: 'dddd [um] LT [Uhr]',
+ lastDay: '[gestern um] LT [Uhr]',
+ lastWeek: '[letzten] dddd [um] LT [Uhr]'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : 'vor %s',
+ s : 'ein paar Sekunden',
+ ss : '%d Sekunden',
+ m : processRelativeTime,
+ mm : '%d Minuten',
+ h : processRelativeTime,
+ hh : '%d Stunden',
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return deAt;
+
+ })));
+
+
+/***/ }),
+/* 270 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 'm': ['eine Minute', 'einer Minute'],
+ 'h': ['eine Stunde', 'einer Stunde'],
+ 'd': ['ein Tag', 'einem Tag'],
+ 'dd': [number + ' Tage', number + ' Tagen'],
+ 'M': ['ein Monat', 'einem Monat'],
+ 'MM': [number + ' Monate', number + ' Monaten'],
+ 'y': ['ein Jahr', 'einem Jahr'],
+ 'yy': [number + ' Jahre', number + ' Jahren']
+ };
+ return withoutSuffix ? format[key][0] : format[key][1];
+ }
+
+ var deCh = moment.defineLocale('de-ch', {
+ months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
+ monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
+ weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+ weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY HH:mm',
+ LLLL : 'dddd, D. MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[heute um] LT [Uhr]',
+ sameElse: 'L',
+ nextDay: '[morgen um] LT [Uhr]',
+ nextWeek: 'dddd [um] LT [Uhr]',
+ lastDay: '[gestern um] LT [Uhr]',
+ lastWeek: '[letzten] dddd [um] LT [Uhr]'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : 'vor %s',
+ s : 'ein paar Sekunden',
+ ss : '%d Sekunden',
+ m : processRelativeTime,
+ mm : '%d Minuten',
+ h : processRelativeTime,
+ hh : '%d Stunden',
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return deCh;
+
+ })));
+
+
+/***/ }),
+/* 271 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = [
+ 'ޖެނުއަރީ',
+ 'ފެބްރުއަރީ',
+ 'މާރިޗު',
+ 'އޭޕްރީލު',
+ 'މޭ',
+ 'ޖޫން',
+ 'ޖުލައި',
+ 'އޯގަސްޓު',
+ 'ސެޕްޓެމްބަރު',
+ 'އޮކްޓޯބަރު',
+ 'ނޮވެމްބަރު',
+ 'ޑިސެމްބަރު'
+ ], weekdays = [
+ 'އާދިއްތަ',
+ 'ހޯމަ',
+ 'އަންގާރަ',
+ 'ބުދަ',
+ 'ބުރާސްފަތި',
+ 'ހުކުރު',
+ 'ހޮނިހިރު'
+ ];
+
+ var dv = moment.defineLocale('dv', {
+ months : months,
+ monthsShort : months,
+ weekdays : weekdays,
+ weekdaysShort : weekdays,
+ weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
+ longDateFormat : {
+
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'D/M/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /މކ|މފ/,
+ isPM : function (input) {
+ return 'މފ' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'މކ';
+ } else {
+ return 'މފ';
+ }
+ },
+ calendar : {
+ sameDay : '[މިއަދު] LT',
+ nextDay : '[މާދަމާ] LT',
+ nextWeek : 'dddd LT',
+ lastDay : '[އިއްޔެ] LT',
+ lastWeek : '[ފާއިތުވި] dddd LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'ތެރޭގައި %s',
+ past : 'ކުރިން %s',
+ s : 'ސިކުންތުކޮޅެއް',
+ ss : 'd% ސިކުންތު',
+ m : 'މިނިޓެއް',
+ mm : 'މިނިޓު %d',
+ h : 'ގަޑިއިރެއް',
+ hh : 'ގަޑިއިރު %d',
+ d : 'ދުވަހެއް',
+ dd : 'ދުވަސް %d',
+ M : 'މަހެއް',
+ MM : 'މަސް %d',
+ y : 'އަހަރެއް',
+ yy : 'އަހަރު %d'
+ },
+ preparse: function (string) {
+ return string.replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/,/g, '،');
+ },
+ week : {
+ dow : 7, // Sunday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return dv;
+
+ })));
+
+
+/***/ }),
+/* 272 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+ function isFunction(input) {
+ return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
+ }
+
+
+ var el = moment.defineLocale('el', {
+ monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
+ monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
+ months : function (momentToFormat, format) {
+ if (!momentToFormat) {
+ return this._monthsNominativeEl;
+ } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
+ return this._monthsGenitiveEl[momentToFormat.month()];
+ } else {
+ return this._monthsNominativeEl[momentToFormat.month()];
+ }
+ },
+ monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
+ weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
+ weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
+ weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
+ meridiem : function (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'μμ' : 'ΜΜ';
+ } else {
+ return isLower ? 'πμ' : 'ΠΜ';
+ }
+ },
+ isPM : function (input) {
+ return ((input + '').toLowerCase()[0] === 'μ');
+ },
+ meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendarEl : {
+ sameDay : '[Σήμερα {}] LT',
+ nextDay : '[Αύριο {}] LT',
+ nextWeek : 'dddd [{}] LT',
+ lastDay : '[Χθες {}] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 6:
+ return '[το προηγούμενο] dddd [{}] LT';
+ default:
+ return '[την προηγούμενη] dddd [{}] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ calendar : function (key, mom) {
+ var output = this._calendarEl[key],
+ hours = mom && mom.hours();
+ if (isFunction(output)) {
+ output = output.apply(mom);
+ }
+ return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
+ },
+ relativeTime : {
+ future : 'σε %s',
+ past : '%s πριν',
+ s : 'λίγα δευτερόλεπτα',
+ ss : '%d δευτερόλεπτα',
+ m : 'ένα λεπτό',
+ mm : '%d λεπτά',
+ h : 'μία ώρα',
+ hh : '%d ώρες',
+ d : 'μία μέρα',
+ dd : '%d μέρες',
+ M : 'ένας μήνας',
+ MM : '%d μήνες',
+ y : 'ένας χρόνος',
+ yy : '%d χρόνια'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}η/,
+ ordinal: '%dη',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4st is the first week of the year.
+ }
+ });
+
+ return el;
+
+ })));
+
+
+/***/ }),
+/* 273 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enAu = moment.defineLocale('en-au', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return enAu;
+
+ })));
+
+
+/***/ }),
+/* 274 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enCa = moment.defineLocale('en-ca', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'YYYY-MM-DD',
+ LL : 'MMMM D, YYYY',
+ LLL : 'MMMM D, YYYY h:mm A',
+ LLLL : 'dddd, MMMM D, YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ }
+ });
+
+ return enCa;
+
+ })));
+
+
+/***/ }),
+/* 275 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enGb = moment.defineLocale('en-gb', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return enGb;
+
+ })));
+
+
+/***/ }),
+/* 276 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enIe = moment.defineLocale('en-ie', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD-MM-YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return enIe;
+
+ })));
+
+
+/***/ }),
+/* 277 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enIl = moment.defineLocale('en-il', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ }
+ });
+
+ return enIl;
+
+ })));
+
+
+/***/ }),
+/* 278 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var enNz = moment.defineLocale('en-nz', {
+ months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ ss : '%d seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return enNz;
+
+ })));
+
+
+/***/ }),
+/* 279 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var eo = moment.defineLocale('eo', {
+ months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
+ weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
+ weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
+ weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'D[-a de] MMMM, YYYY',
+ LLL : 'D[-a de] MMMM, YYYY HH:mm',
+ LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
+ },
+ meridiemParse: /[ap]\.t\.m/i,
+ isPM: function (input) {
+ return input.charAt(0).toLowerCase() === 'p';
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'p.t.m.' : 'P.T.M.';
+ } else {
+ return isLower ? 'a.t.m.' : 'A.T.M.';
+ }
+ },
+ calendar : {
+ sameDay : '[Hodiaŭ je] LT',
+ nextDay : '[Morgaŭ je] LT',
+ nextWeek : 'dddd [je] LT',
+ lastDay : '[Hieraŭ je] LT',
+ lastWeek : '[pasinta] dddd [je] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'post %s',
+ past : 'antaŭ %s',
+ s : 'sekundoj',
+ ss : '%d sekundoj',
+ m : 'minuto',
+ mm : '%d minutoj',
+ h : 'horo',
+ hh : '%d horoj',
+ d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
+ dd : '%d tagoj',
+ M : 'monato',
+ MM : '%d monatoj',
+ y : 'jaro',
+ yy : '%d jaroj'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}a/,
+ ordinal : '%da',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return eo;
+
+ })));
+
+
+/***/ }),
+/* 280 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
+
+ var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
+ var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+ var es = moment.defineLocale('es', {
+ months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortDot;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShort[m.month()];
+ } else {
+ return monthsShortDot[m.month()];
+ }
+ },
+ monthsRegex : monthsRegex,
+ monthsShortRegex : monthsRegex,
+ monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+ monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+ monthsParse : monthsParse,
+ longMonthsParse : monthsParse,
+ shortMonthsParse : monthsParse,
+ weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+ weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+ weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D [de] MMMM [de] YYYY',
+ LLL : 'D [de] MMMM [de] YYYY H:mm',
+ LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
+ },
+ calendar : {
+ sameDay : function () {
+ return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextDay : function () {
+ return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextWeek : function () {
+ return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastDay : function () {
+ return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastWeek : function () {
+ return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'en %s',
+ past : 'hace %s',
+ s : 'unos segundos',
+ ss : '%d segundos',
+ m : 'un minuto',
+ mm : '%d minutos',
+ h : 'una hora',
+ hh : '%d horas',
+ d : 'un día',
+ dd : '%d días',
+ M : 'un mes',
+ MM : '%d meses',
+ y : 'un año',
+ yy : '%d años'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal : '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return es;
+
+ })));
+
+
+/***/ }),
+/* 281 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
+
+ var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
+ var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
+
+ var esDo = moment.defineLocale('es-do', {
+ months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortDot;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShort[m.month()];
+ } else {
+ return monthsShortDot[m.month()];
+ }
+ },
+ monthsRegex: monthsRegex,
+ monthsShortRegex: monthsRegex,
+ monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
+ monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
+ monthsParse: monthsParse,
+ longMonthsParse: monthsParse,
+ shortMonthsParse: monthsParse,
+ weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+ weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+ weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D [de] MMMM [de] YYYY',
+ LLL : 'D [de] MMMM [de] YYYY h:mm A',
+ LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : function () {
+ return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextDay : function () {
+ return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextWeek : function () {
+ return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastDay : function () {
+ return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastWeek : function () {
+ return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'en %s',
+ past : 'hace %s',
+ s : 'unos segundos',
+ ss : '%d segundos',
+ m : 'un minuto',
+ mm : '%d minutos',
+ h : 'una hora',
+ hh : '%d horas',
+ d : 'un día',
+ dd : '%d días',
+ M : 'un mes',
+ MM : '%d meses',
+ y : 'un año',
+ yy : '%d años'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal : '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return esDo;
+
+ })));
+
+
+/***/ }),
+/* 282 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
+ monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
+
+ var esUs = moment.defineLocale('es-us', {
+ months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortDot;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShort[m.month()];
+ } else {
+ return monthsShortDot[m.month()];
+ }
+ },
+ monthsParseExact : true,
+ weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
+ weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
+ weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'MM/DD/YYYY',
+ LL : 'MMMM [de] D [de] YYYY',
+ LLL : 'MMMM [de] D [de] YYYY h:mm A',
+ LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : function () {
+ return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextDay : function () {
+ return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ nextWeek : function () {
+ return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastDay : function () {
+ return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ lastWeek : function () {
+ return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'en %s',
+ past : 'hace %s',
+ s : 'unos segundos',
+ ss : '%d segundos',
+ m : 'un minuto',
+ mm : '%d minutos',
+ h : 'una hora',
+ hh : '%d horas',
+ d : 'un día',
+ dd : '%d días',
+ M : 'un mes',
+ MM : '%d meses',
+ y : 'un año',
+ yy : '%d años'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal : '%dº',
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return esUs;
+
+ })));
+
+
+/***/ }),
+/* 283 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
+ 'ss': [number + 'sekundi', number + 'sekundit'],
+ 'm' : ['ühe minuti', 'üks minut'],
+ 'mm': [number + ' minuti', number + ' minutit'],
+ 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
+ 'hh': [number + ' tunni', number + ' tundi'],
+ 'd' : ['ühe päeva', 'üks päev'],
+ 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
+ 'MM': [number + ' kuu', number + ' kuud'],
+ 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
+ 'yy': [number + ' aasta', number + ' aastat']
+ };
+ if (withoutSuffix) {
+ return format[key][2] ? format[key][2] : format[key][1];
+ }
+ return isFuture ? format[key][0] : format[key][1];
+ }
+
+ var et = moment.defineLocale('et', {
+ months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
+ monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
+ weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
+ weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
+ weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[Täna,] LT',
+ nextDay : '[Homme,] LT',
+ nextWeek : '[Järgmine] dddd LT',
+ lastDay : '[Eile,] LT',
+ lastWeek : '[Eelmine] dddd LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s pärast',
+ past : '%s tagasi',
+ s : processRelativeTime,
+ ss : processRelativeTime,
+ m : processRelativeTime,
+ mm : processRelativeTime,
+ h : processRelativeTime,
+ hh : processRelativeTime,
+ d : processRelativeTime,
+ dd : '%d päeva',
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return et;
+
+ })));
+
+
+/***/ }),
+/* 284 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var eu = moment.defineLocale('eu', {
+ months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
+ monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
+ weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
+ weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'YYYY[ko] MMMM[ren] D[a]',
+ LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
+ LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
+ l : 'YYYY-M-D',
+ ll : 'YYYY[ko] MMM D[a]',
+ lll : 'YYYY[ko] MMM D[a] HH:mm',
+ llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
+ },
+ calendar : {
+ sameDay : '[gaur] LT[etan]',
+ nextDay : '[bihar] LT[etan]',
+ nextWeek : 'dddd LT[etan]',
+ lastDay : '[atzo] LT[etan]',
+ lastWeek : '[aurreko] dddd LT[etan]',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s barru',
+ past : 'duela %s',
+ s : 'segundo batzuk',
+ ss : '%d segundo',
+ m : 'minutu bat',
+ mm : '%d minutu',
+ h : 'ordu bat',
+ hh : '%d ordu',
+ d : 'egun bat',
+ dd : '%d egun',
+ M : 'hilabete bat',
+ MM : '%d hilabete',
+ y : 'urte bat',
+ yy : '%d urte'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return eu;
+
+ })));
+
+
+/***/ }),
+/* 285 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '۱',
+ '2': '۲',
+ '3': '۳',
+ '4': '۴',
+ '5': '۵',
+ '6': '۶',
+ '7': '۷',
+ '8': '۸',
+ '9': '۹',
+ '0': '۰'
+ }, numberMap = {
+ '۱': '1',
+ '۲': '2',
+ '۳': '3',
+ '۴': '4',
+ '۵': '5',
+ '۶': '6',
+ '۷': '7',
+ '۸': '8',
+ '۹': '9',
+ '۰': '0'
+ };
+
+ var fa = moment.defineLocale('fa', {
+ months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
+ monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
+ weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
+ weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
+ weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /قبل از ظهر|بعد از ظهر/,
+ isPM: function (input) {
+ return /بعد از ظهر/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'قبل از ظهر';
+ } else {
+ return 'بعد از ظهر';
+ }
+ },
+ calendar : {
+ sameDay : '[امروز ساعت] LT',
+ nextDay : '[فردا ساعت] LT',
+ nextWeek : 'dddd [ساعت] LT',
+ lastDay : '[دیروز ساعت] LT',
+ lastWeek : 'dddd [پیش] [ساعت] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'در %s',
+ past : '%s پیش',
+ s : 'چند ثانیه',
+ ss : 'ثانیه d%',
+ m : 'یک دقیقه',
+ mm : '%d دقیقه',
+ h : 'یک ساعت',
+ hh : '%d ساعت',
+ d : 'یک روز',
+ dd : '%d روز',
+ M : 'یک ماه',
+ MM : '%d ماه',
+ y : 'یک سال',
+ yy : '%d سال'
+ },
+ preparse: function (string) {
+ return string.replace(/[۰-۹]/g, function (match) {
+ return numberMap[match];
+ }).replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ }).replace(/,/g, '،');
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}م/,
+ ordinal : '%dم',
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return fa;
+
+ })));
+
+
+/***/ }),
+/* 286 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
+ numbersFuture = [
+ 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
+ numbersPast[7], numbersPast[8], numbersPast[9]
+ ];
+ function translate(number, withoutSuffix, key, isFuture) {
+ var result = '';
+ switch (key) {
+ case 's':
+ return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
+ case 'ss':
+ return isFuture ? 'sekunnin' : 'sekuntia';
+ case 'm':
+ return isFuture ? 'minuutin' : 'minuutti';
+ case 'mm':
+ result = isFuture ? 'minuutin' : 'minuuttia';
+ break;
+ case 'h':
+ return isFuture ? 'tunnin' : 'tunti';
+ case 'hh':
+ result = isFuture ? 'tunnin' : 'tuntia';
+ break;
+ case 'd':
+ return isFuture ? 'päivän' : 'päivä';
+ case 'dd':
+ result = isFuture ? 'päivän' : 'päivää';
+ break;
+ case 'M':
+ return isFuture ? 'kuukauden' : 'kuukausi';
+ case 'MM':
+ result = isFuture ? 'kuukauden' : 'kuukautta';
+ break;
+ case 'y':
+ return isFuture ? 'vuoden' : 'vuosi';
+ case 'yy':
+ result = isFuture ? 'vuoden' : 'vuotta';
+ break;
+ }
+ result = verbalNumber(number, isFuture) + ' ' + result;
+ return result;
+ }
+ function verbalNumber(number, isFuture) {
+ return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
+ }
+
+ var fi = moment.defineLocale('fi', {
+ months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
+ monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
+ weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
+ weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
+ weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD.MM.YYYY',
+ LL : 'Do MMMM[ta] YYYY',
+ LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
+ LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
+ l : 'D.M.YYYY',
+ ll : 'Do MMM YYYY',
+ lll : 'Do MMM YYYY, [klo] HH.mm',
+ llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
+ },
+ calendar : {
+ sameDay : '[tänään] [klo] LT',
+ nextDay : '[huomenna] [klo] LT',
+ nextWeek : 'dddd [klo] LT',
+ lastDay : '[eilen] [klo] LT',
+ lastWeek : '[viime] dddd[na] [klo] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s päästä',
+ past : '%s sitten',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return fi;
+
+ })));
+
+
+/***/ }),
+/* 287 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var fo = moment.defineLocale('fo', {
+ months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
+ weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
+ weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
+ weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D. MMMM, YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Í dag kl.] LT',
+ nextDay : '[Í morgin kl.] LT',
+ nextWeek : 'dddd [kl.] LT',
+ lastDay : '[Í gjár kl.] LT',
+ lastWeek : '[síðstu] dddd [kl] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'um %s',
+ past : '%s síðani',
+ s : 'fá sekund',
+ ss : '%d sekundir',
+ m : 'ein minutt',
+ mm : '%d minuttir',
+ h : 'ein tími',
+ hh : '%d tímar',
+ d : 'ein dagur',
+ dd : '%d dagar',
+ M : 'ein mánaði',
+ MM : '%d mánaðir',
+ y : 'eitt ár',
+ yy : '%d ár'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return fo;
+
+ })));
+
+
+/***/ }),
+/* 288 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var fr = moment.defineLocale('fr', {
+ months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
+ monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+ weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+ weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Aujourd’hui à] LT',
+ nextDay : '[Demain à] LT',
+ nextWeek : 'dddd [à] LT',
+ lastDay : '[Hier à] LT',
+ lastWeek : 'dddd [dernier à] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dans %s',
+ past : 'il y a %s',
+ s : 'quelques secondes',
+ ss : '%d secondes',
+ m : 'une minute',
+ mm : '%d minutes',
+ h : 'une heure',
+ hh : '%d heures',
+ d : 'un jour',
+ dd : '%d jours',
+ M : 'un mois',
+ MM : '%d mois',
+ y : 'un an',
+ yy : '%d ans'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ // TODO: Return 'e' when day of month > 1. Move this case inside
+ // block for masculine words below.
+ // See https://github.com/moment/moment/issues/3375
+ case 'D':
+ return number + (number === 1 ? 'er' : '');
+
+ // Words with masculine grammatical gender: mois, trimestre, jour
+ default:
+ case 'M':
+ case 'Q':
+ case 'DDD':
+ case 'd':
+ return number + (number === 1 ? 'er' : 'e');
+
+ // Words with feminine grammatical gender: semaine
+ case 'w':
+ case 'W':
+ return number + (number === 1 ? 're' : 'e');
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return fr;
+
+ })));
+
+
+/***/ }),
+/* 289 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var frCa = moment.defineLocale('fr-ca', {
+ months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
+ monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+ weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+ weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Aujourd’hui à] LT',
+ nextDay : '[Demain à] LT',
+ nextWeek : 'dddd [à] LT',
+ lastDay : '[Hier à] LT',
+ lastWeek : 'dddd [dernier à] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dans %s',
+ past : 'il y a %s',
+ s : 'quelques secondes',
+ ss : '%d secondes',
+ m : 'une minute',
+ mm : '%d minutes',
+ h : 'une heure',
+ hh : '%d heures',
+ d : 'un jour',
+ dd : '%d jours',
+ M : 'un mois',
+ MM : '%d mois',
+ y : 'un an',
+ yy : '%d ans'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ // Words with masculine grammatical gender: mois, trimestre, jour
+ default:
+ case 'M':
+ case 'Q':
+ case 'D':
+ case 'DDD':
+ case 'd':
+ return number + (number === 1 ? 'er' : 'e');
+
+ // Words with feminine grammatical gender: semaine
+ case 'w':
+ case 'W':
+ return number + (number === 1 ? 're' : 'e');
+ }
+ }
+ });
+
+ return frCa;
+
+ })));
+
+
+/***/ }),
+/* 290 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var frCh = moment.defineLocale('fr-ch', {
+ months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
+ monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
+ weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
+ weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Aujourd’hui à] LT',
+ nextDay : '[Demain à] LT',
+ nextWeek : 'dddd [à] LT',
+ lastDay : '[Hier à] LT',
+ lastWeek : 'dddd [dernier à] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dans %s',
+ past : 'il y a %s',
+ s : 'quelques secondes',
+ ss : '%d secondes',
+ m : 'une minute',
+ mm : '%d minutes',
+ h : 'une heure',
+ hh : '%d heures',
+ d : 'un jour',
+ dd : '%d jours',
+ M : 'un mois',
+ MM : '%d mois',
+ y : 'un an',
+ yy : '%d ans'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ // Words with masculine grammatical gender: mois, trimestre, jour
+ default:
+ case 'M':
+ case 'Q':
+ case 'D':
+ case 'DDD':
+ case 'd':
+ return number + (number === 1 ? 'er' : 'e');
+
+ // Words with feminine grammatical gender: semaine
+ case 'w':
+ case 'W':
+ return number + (number === 1 ? 're' : 'e');
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return frCh;
+
+ })));
+
+
+/***/ }),
+/* 291 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
+
+ var fy = moment.defineLocale('fy', {
+ months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortWithDots;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShortWithoutDots[m.month()];
+ } else {
+ return monthsShortWithDots[m.month()];
+ }
+ },
+ monthsParseExact : true,
+ weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
+ weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
+ weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD-MM-YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[hjoed om] LT',
+ nextDay: '[moarn om] LT',
+ nextWeek: 'dddd [om] LT',
+ lastDay: '[juster om] LT',
+ lastWeek: '[ôfrûne] dddd [om] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'oer %s',
+ past : '%s lyn',
+ s : 'in pear sekonden',
+ ss : '%d sekonden',
+ m : 'ien minút',
+ mm : '%d minuten',
+ h : 'ien oere',
+ hh : '%d oeren',
+ d : 'ien dei',
+ dd : '%d dagen',
+ M : 'ien moanne',
+ MM : '%d moannen',
+ y : 'ien jier',
+ yy : '%d jierren'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+ ordinal : function (number) {
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return fy;
+
+ })));
+
+
+/***/ }),
+/* 292 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = [
+ 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
+ ];
+
+ var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
+
+ var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
+
+ var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
+
+ var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
+
+ var gd = moment.defineLocale('gd', {
+ months : months,
+ monthsShort : monthsShort,
+ monthsParseExact : true,
+ weekdays : weekdays,
+ weekdaysShort : weekdaysShort,
+ weekdaysMin : weekdaysMin,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[An-diugh aig] LT',
+ nextDay : '[A-màireach aig] LT',
+ nextWeek : 'dddd [aig] LT',
+ lastDay : '[An-dè aig] LT',
+ lastWeek : 'dddd [seo chaidh] [aig] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'ann an %s',
+ past : 'bho chionn %s',
+ s : 'beagan diogan',
+ ss : '%d diogan',
+ m : 'mionaid',
+ mm : '%d mionaidean',
+ h : 'uair',
+ hh : '%d uairean',
+ d : 'latha',
+ dd : '%d latha',
+ M : 'mìos',
+ MM : '%d mìosan',
+ y : 'bliadhna',
+ yy : '%d bliadhna'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
+ ordinal : function (number) {
+ var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return gd;
+
+ })));
+
+
+/***/ }),
+/* 293 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var gl = moment.defineLocale('gl', {
+ months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
+ monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
+ weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
+ weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D [de] MMMM [de] YYYY',
+ LLL : 'D [de] MMMM [de] YYYY H:mm',
+ LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
+ },
+ calendar : {
+ sameDay : function () {
+ return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
+ },
+ nextDay : function () {
+ return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
+ },
+ nextWeek : function () {
+ return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
+ },
+ lastDay : function () {
+ return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
+ },
+ lastWeek : function () {
+ return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : function (str) {
+ if (str.indexOf('un') === 0) {
+ return 'n' + str;
+ }
+ return 'en ' + str;
+ },
+ past : 'hai %s',
+ s : 'uns segundos',
+ ss : '%d segundos',
+ m : 'un minuto',
+ mm : '%d minutos',
+ h : 'unha hora',
+ hh : '%d horas',
+ d : 'un día',
+ dd : '%d días',
+ M : 'un mes',
+ MM : '%d meses',
+ y : 'un ano',
+ yy : '%d anos'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal : '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return gl;
+
+ })));
+
+
+/***/ }),
+/* 294 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 's': ['thodde secondanim', 'thodde second'],
+ 'ss': [number + ' secondanim', number + ' second'],
+ 'm': ['eka mintan', 'ek minute'],
+ 'mm': [number + ' mintanim', number + ' mintam'],
+ 'h': ['eka horan', 'ek hor'],
+ 'hh': [number + ' horanim', number + ' horam'],
+ 'd': ['eka disan', 'ek dis'],
+ 'dd': [number + ' disanim', number + ' dis'],
+ 'M': ['eka mhoinean', 'ek mhoino'],
+ 'MM': [number + ' mhoineanim', number + ' mhoine'],
+ 'y': ['eka vorsan', 'ek voros'],
+ 'yy': [number + ' vorsanim', number + ' vorsam']
+ };
+ return withoutSuffix ? format[key][0] : format[key][1];
+ }
+
+ var gomLatn = moment.defineLocale('gom-latn', {
+ months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
+ monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
+ weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
+ weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'A h:mm [vazta]',
+ LTS : 'A h:mm:ss [vazta]',
+ L : 'DD-MM-YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY A h:mm [vazta]',
+ LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
+ llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
+ },
+ calendar : {
+ sameDay: '[Aiz] LT',
+ nextDay: '[Faleam] LT',
+ nextWeek: '[Ieta to] dddd[,] LT',
+ lastDay: '[Kal] LT',
+ lastWeek: '[Fatlo] dddd[,] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : '%s',
+ past : '%s adim',
+ s : processRelativeTime,
+ ss : processRelativeTime,
+ m : processRelativeTime,
+ mm : processRelativeTime,
+ h : processRelativeTime,
+ hh : processRelativeTime,
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}(er)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ // the ordinal 'er' only applies to day of the month
+ case 'D':
+ return number + 'er';
+ default:
+ case 'M':
+ case 'Q':
+ case 'DDD':
+ case 'd':
+ case 'w':
+ case 'W':
+ return number;
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ },
+ meridiemParse: /rati|sokalli|donparam|sanje/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'rati') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'sokalli') {
+ return hour;
+ } else if (meridiem === 'donparam') {
+ return hour > 12 ? hour : hour + 12;
+ } else if (meridiem === 'sanje') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'rati';
+ } else if (hour < 12) {
+ return 'sokalli';
+ } else if (hour < 16) {
+ return 'donparam';
+ } else if (hour < 20) {
+ return 'sanje';
+ } else {
+ return 'rati';
+ }
+ }
+ });
+
+ return gomLatn;
+
+ })));
+
+
+/***/ }),
+/* 295 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '૧',
+ '2': '૨',
+ '3': '૩',
+ '4': '૪',
+ '5': '૫',
+ '6': '૬',
+ '7': '૭',
+ '8': '૮',
+ '9': '૯',
+ '0': '૦'
+ },
+ numberMap = {
+ '૧': '1',
+ '૨': '2',
+ '૩': '3',
+ '૪': '4',
+ '૫': '5',
+ '૬': '6',
+ '૭': '7',
+ '૮': '8',
+ '૯': '9',
+ '૦': '0'
+ };
+
+ var gu = moment.defineLocale('gu', {
+ months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
+ monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
+ monthsParseExact: true,
+ weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
+ weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
+ weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
+ longDateFormat: {
+ LT: 'A h:mm વાગ્યે',
+ LTS: 'A h:mm:ss વાગ્યે',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
+ LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
+ },
+ calendar: {
+ sameDay: '[આજ] LT',
+ nextDay: '[કાલે] LT',
+ nextWeek: 'dddd, LT',
+ lastDay: '[ગઇકાલે] LT',
+ lastWeek: '[પાછલા] dddd, LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: '%s મા',
+ past: '%s પેહલા',
+ s: 'અમુક પળો',
+ ss: '%d સેકંડ',
+ m: 'એક મિનિટ',
+ mm: '%d મિનિટ',
+ h: 'એક કલાક',
+ hh: '%d કલાક',
+ d: 'એક દિવસ',
+ dd: '%d દિવસ',
+ M: 'એક મહિનો',
+ MM: '%d મહિનો',
+ y: 'એક વર્ષ',
+ yy: '%d વર્ષ'
+ },
+ preparse: function (string) {
+ return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
+ meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'રાત') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'સવાર') {
+ return hour;
+ } else if (meridiem === 'બપોર') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'સાંજ') {
+ return hour + 12;
+ }
+ },
+ meridiem: function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'રાત';
+ } else if (hour < 10) {
+ return 'સવાર';
+ } else if (hour < 17) {
+ return 'બપોર';
+ } else if (hour < 20) {
+ return 'સાંજ';
+ } else {
+ return 'રાત';
+ }
+ },
+ week: {
+ dow: 0, // Sunday is the first day of the week.
+ doy: 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return gu;
+
+ })));
+
+
+/***/ }),
+/* 296 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var he = moment.defineLocale('he', {
+ months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
+ monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
+ weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
+ weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
+ weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D [ב]MMMM YYYY',
+ LLL : 'D [ב]MMMM YYYY HH:mm',
+ LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
+ l : 'D/M/YYYY',
+ ll : 'D MMM YYYY',
+ lll : 'D MMM YYYY HH:mm',
+ llll : 'ddd, D MMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[היום ב־]LT',
+ nextDay : '[מחר ב־]LT',
+ nextWeek : 'dddd [בשעה] LT',
+ lastDay : '[אתמול ב־]LT',
+ lastWeek : '[ביום] dddd [האחרון בשעה] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'בעוד %s',
+ past : 'לפני %s',
+ s : 'מספר שניות',
+ ss : '%d שניות',
+ m : 'דקה',
+ mm : '%d דקות',
+ h : 'שעה',
+ hh : function (number) {
+ if (number === 2) {
+ return 'שעתיים';
+ }
+ return number + ' שעות';
+ },
+ d : 'יום',
+ dd : function (number) {
+ if (number === 2) {
+ return 'יומיים';
+ }
+ return number + ' ימים';
+ },
+ M : 'חודש',
+ MM : function (number) {
+ if (number === 2) {
+ return 'חודשיים';
+ }
+ return number + ' חודשים';
+ },
+ y : 'שנה',
+ yy : function (number) {
+ if (number === 2) {
+ return 'שנתיים';
+ } else if (number % 10 === 0 && number !== 10) {
+ return number + ' שנה';
+ }
+ return number + ' שנים';
+ }
+ },
+ meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
+ isPM : function (input) {
+ return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 5) {
+ return 'לפנות בוקר';
+ } else if (hour < 10) {
+ return 'בבוקר';
+ } else if (hour < 12) {
+ return isLower ? 'לפנה"צ' : 'לפני הצהריים';
+ } else if (hour < 18) {
+ return isLower ? 'אחה"צ' : 'אחרי הצהריים';
+ } else {
+ return 'בערב';
+ }
+ }
+ });
+
+ return he;
+
+ })));
+
+
+/***/ }),
+/* 297 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '१',
+ '2': '२',
+ '3': '३',
+ '4': '४',
+ '5': '५',
+ '6': '६',
+ '7': '७',
+ '8': '८',
+ '9': '९',
+ '0': '०'
+ },
+ numberMap = {
+ '१': '1',
+ '२': '2',
+ '३': '3',
+ '४': '4',
+ '५': '5',
+ '६': '6',
+ '७': '7',
+ '८': '8',
+ '९': '9',
+ '०': '0'
+ };
+
+ var hi = moment.defineLocale('hi', {
+ months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
+ monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
+ weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
+ weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm बजे',
+ LTS : 'A h:mm:ss बजे',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm बजे',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
+ },
+ calendar : {
+ sameDay : '[आज] LT',
+ nextDay : '[कल] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[कल] LT',
+ lastWeek : '[पिछले] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s में',
+ past : '%s पहले',
+ s : 'कुछ ही क्षण',
+ ss : '%d सेकंड',
+ m : 'एक मिनट',
+ mm : '%d मिनट',
+ h : 'एक घंटा',
+ hh : '%d घंटे',
+ d : 'एक दिन',
+ dd : '%d दिन',
+ M : 'एक महीने',
+ MM : '%d महीने',
+ y : 'एक वर्ष',
+ yy : '%d वर्ष'
+ },
+ preparse: function (string) {
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ // Hindi notation for meridiems are quite fuzzy in practice. While there exists
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
+ meridiemParse: /रात|सुबह|दोपहर|शाम/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'रात') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'सुबह') {
+ return hour;
+ } else if (meridiem === 'दोपहर') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'शाम') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'रात';
+ } else if (hour < 10) {
+ return 'सुबह';
+ } else if (hour < 17) {
+ return 'दोपहर';
+ } else if (hour < 20) {
+ return 'शाम';
+ } else {
+ return 'रात';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return hi;
+
+ })));
+
+
+/***/ }),
+/* 298 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function translate(number, withoutSuffix, key) {
+ var result = number + ' ';
+ switch (key) {
+ case 'ss':
+ if (number === 1) {
+ result += 'sekunda';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'sekunde';
+ } else {
+ result += 'sekundi';
+ }
+ return result;
+ case 'm':
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
+ case 'mm':
+ if (number === 1) {
+ result += 'minuta';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'minute';
+ } else {
+ result += 'minuta';
+ }
+ return result;
+ case 'h':
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
+ case 'hh':
+ if (number === 1) {
+ result += 'sat';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'sata';
+ } else {
+ result += 'sati';
+ }
+ return result;
+ case 'dd':
+ if (number === 1) {
+ result += 'dan';
+ } else {
+ result += 'dana';
+ }
+ return result;
+ case 'MM':
+ if (number === 1) {
+ result += 'mjesec';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'mjeseca';
+ } else {
+ result += 'mjeseci';
+ }
+ return result;
+ case 'yy':
+ if (number === 1) {
+ result += 'godina';
+ } else if (number === 2 || number === 3 || number === 4) {
+ result += 'godine';
+ } else {
+ result += 'godina';
+ }
+ return result;
+ }
+ }
+
+ var hr = moment.defineLocale('hr', {
+ months : {
+ format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
+ standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
+ },
+ monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
+ weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[danas u] LT',
+ nextDay : '[sutra u] LT',
+ nextWeek : function () {
+ switch (this.day()) {
+ case 0:
+ return '[u] [nedjelju] [u] LT';
+ case 3:
+ return '[u] [srijedu] [u] LT';
+ case 6:
+ return '[u] [subotu] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[u] dddd [u] LT';
+ }
+ },
+ lastDay : '[jučer u] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ return '[prošlu] dddd [u] LT';
+ case 6:
+ return '[prošle] [subote] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[prošli] dddd [u] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'prije %s',
+ s : 'par sekundi',
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : 'dan',
+ dd : translate,
+ M : 'mjesec',
+ MM : translate,
+ y : 'godinu',
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return hr;
+
+ })));
+
+
+/***/ }),
+/* 299 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
+ function translate(number, withoutSuffix, key, isFuture) {
+ var num = number;
+ switch (key) {
+ case 's':
+ return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
+ case 'ss':
+ return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
+ case 'm':
+ return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
+ case 'mm':
+ return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
+ case 'h':
+ return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
+ case 'hh':
+ return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
+ case 'd':
+ return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
+ case 'dd':
+ return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
+ case 'M':
+ return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
+ case 'MM':
+ return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
+ case 'y':
+ return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
+ case 'yy':
+ return num + (isFuture || withoutSuffix ? ' év' : ' éve');
+ }
+ return '';
+ }
+ function week(isFuture) {
+ return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
+ }
+
+ var hu = moment.defineLocale('hu', {
+ months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
+ monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
+ weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
+ weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
+ weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'YYYY.MM.DD.',
+ LL : 'YYYY. MMMM D.',
+ LLL : 'YYYY. MMMM D. H:mm',
+ LLLL : 'YYYY. MMMM D., dddd H:mm'
+ },
+ meridiemParse: /de|du/i,
+ isPM: function (input) {
+ return input.charAt(1).toLowerCase() === 'u';
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 12) {
+ return isLower === true ? 'de' : 'DE';
+ } else {
+ return isLower === true ? 'du' : 'DU';
+ }
+ },
+ calendar : {
+ sameDay : '[ma] LT[-kor]',
+ nextDay : '[holnap] LT[-kor]',
+ nextWeek : function () {
+ return week.call(this, true);
+ },
+ lastDay : '[tegnap] LT[-kor]',
+ lastWeek : function () {
+ return week.call(this, false);
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s múlva',
+ past : '%s',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return hu;
+
+ })));
+
+
+/***/ }),
+/* 300 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var hyAm = moment.defineLocale('hy-am', {
+ months : {
+ format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
+ standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
+ },
+ monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
+ weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
+ weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
+ weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY թ.',
+ LLL : 'D MMMM YYYY թ., HH:mm',
+ LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
+ },
+ calendar : {
+ sameDay: '[այսօր] LT',
+ nextDay: '[վաղը] LT',
+ lastDay: '[երեկ] LT',
+ nextWeek: function () {
+ return 'dddd [օրը ժամը] LT';
+ },
+ lastWeek: function () {
+ return '[անցած] dddd [օրը ժամը] LT';
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : '%s հետո',
+ past : '%s առաջ',
+ s : 'մի քանի վայրկյան',
+ ss : '%d վայրկյան',
+ m : 'րոպե',
+ mm : '%d րոպե',
+ h : 'ժամ',
+ hh : '%d ժամ',
+ d : 'օր',
+ dd : '%d օր',
+ M : 'ամիս',
+ MM : '%d ամիս',
+ y : 'տարի',
+ yy : '%d տարի'
+ },
+ meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
+ isPM: function (input) {
+ return /^(ցերեկվա|երեկոյան)$/.test(input);
+ },
+ meridiem : function (hour) {
+ if (hour < 4) {
+ return 'գիշերվա';
+ } else if (hour < 12) {
+ return 'առավոտվա';
+ } else if (hour < 17) {
+ return 'ցերեկվա';
+ } else {
+ return 'երեկոյան';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'DDD':
+ case 'w':
+ case 'W':
+ case 'DDDo':
+ if (number === 1) {
+ return number + '-ին';
+ }
+ return number + '-րդ';
+ default:
+ return number;
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return hyAm;
+
+ })));
+
+
+/***/ }),
+/* 301 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var id = moment.defineLocale('id', {
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
+ weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
+ weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
+ },
+ meridiemParse: /pagi|siang|sore|malam/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'pagi') {
+ return hour;
+ } else if (meridiem === 'siang') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'sore' || meridiem === 'malam') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 11) {
+ return 'pagi';
+ } else if (hours < 15) {
+ return 'siang';
+ } else if (hours < 19) {
+ return 'sore';
+ } else {
+ return 'malam';
+ }
+ },
+ calendar : {
+ sameDay : '[Hari ini pukul] LT',
+ nextDay : '[Besok pukul] LT',
+ nextWeek : 'dddd [pukul] LT',
+ lastDay : '[Kemarin pukul] LT',
+ lastWeek : 'dddd [lalu pukul] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dalam %s',
+ past : '%s yang lalu',
+ s : 'beberapa detik',
+ ss : '%d detik',
+ m : 'semenit',
+ mm : '%d menit',
+ h : 'sejam',
+ hh : '%d jam',
+ d : 'sehari',
+ dd : '%d hari',
+ M : 'sebulan',
+ MM : '%d bulan',
+ y : 'setahun',
+ yy : '%d tahun'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return id;
+
+ })));
+
+
+/***/ }),
+/* 302 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function plural(n) {
+ if (n % 100 === 11) {
+ return true;
+ } else if (n % 10 === 1) {
+ return false;
+ }
+ return true;
+ }
+ function translate(number, withoutSuffix, key, isFuture) {
+ var result = number + ' ';
+ switch (key) {
+ case 's':
+ return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
+ case 'ss':
+ if (plural(number)) {
+ return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
+ }
+ return result + 'sekúnda';
+ case 'm':
+ return withoutSuffix ? 'mínúta' : 'mínútu';
+ case 'mm':
+ if (plural(number)) {
+ return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
+ } else if (withoutSuffix) {
+ return result + 'mínúta';
+ }
+ return result + 'mínútu';
+ case 'hh':
+ if (plural(number)) {
+ return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
+ }
+ return result + 'klukkustund';
+ case 'd':
+ if (withoutSuffix) {
+ return 'dagur';
+ }
+ return isFuture ? 'dag' : 'degi';
+ case 'dd':
+ if (plural(number)) {
+ if (withoutSuffix) {
+ return result + 'dagar';
+ }
+ return result + (isFuture ? 'daga' : 'dögum');
+ } else if (withoutSuffix) {
+ return result + 'dagur';
+ }
+ return result + (isFuture ? 'dag' : 'degi');
+ case 'M':
+ if (withoutSuffix) {
+ return 'mánuður';
+ }
+ return isFuture ? 'mánuð' : 'mánuði';
+ case 'MM':
+ if (plural(number)) {
+ if (withoutSuffix) {
+ return result + 'mánuðir';
+ }
+ return result + (isFuture ? 'mánuði' : 'mánuðum');
+ } else if (withoutSuffix) {
+ return result + 'mánuður';
+ }
+ return result + (isFuture ? 'mánuð' : 'mánuði');
+ case 'y':
+ return withoutSuffix || isFuture ? 'ár' : 'ári';
+ case 'yy':
+ if (plural(number)) {
+ return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
+ }
+ return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
+ }
+ }
+
+ var is = moment.defineLocale('is', {
+ months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
+ weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
+ weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
+ weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
+ LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
+ },
+ calendar : {
+ sameDay : '[í dag kl.] LT',
+ nextDay : '[á morgun kl.] LT',
+ nextWeek : 'dddd [kl.] LT',
+ lastDay : '[í gær kl.] LT',
+ lastWeek : '[síðasta] dddd [kl.] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'eftir %s',
+ past : 'fyrir %s síðan',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : 'klukkustund',
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return is;
+
+ })));
+
+
+/***/ }),
+/* 303 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var it = moment.defineLocale('it', {
+ months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
+ monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
+ weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
+ weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
+ weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Oggi alle] LT',
+ nextDay: '[Domani alle] LT',
+ nextWeek: 'dddd [alle] LT',
+ lastDay: '[Ieri alle] LT',
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[la scorsa] dddd [alle] LT';
+ default:
+ return '[lo scorso] dddd [alle] LT';
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : function (s) {
+ return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
+ },
+ past : '%s fa',
+ s : 'alcuni secondi',
+ ss : '%d secondi',
+ m : 'un minuto',
+ mm : '%d minuti',
+ h : 'un\'ora',
+ hh : '%d ore',
+ d : 'un giorno',
+ dd : '%d giorni',
+ M : 'un mese',
+ MM : '%d mesi',
+ y : 'un anno',
+ yy : '%d anni'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal: '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return it;
+
+ })));
+
+
+/***/ }),
+/* 304 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ja = moment.defineLocale('ja', {
+ months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+ weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
+ weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
+ weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY/MM/DD',
+ LL : 'YYYY年M月D日',
+ LLL : 'YYYY年M月D日 HH:mm',
+ LLLL : 'YYYY年M月D日 dddd HH:mm',
+ l : 'YYYY/MM/DD',
+ ll : 'YYYY年M月D日',
+ lll : 'YYYY年M月D日 HH:mm',
+ llll : 'YYYY年M月D日(ddd) HH:mm'
+ },
+ meridiemParse: /午前|午後/i,
+ isPM : function (input) {
+ return input === '午後';
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return '午前';
+ } else {
+ return '午後';
+ }
+ },
+ calendar : {
+ sameDay : '[今日] LT',
+ nextDay : '[明日] LT',
+ nextWeek : function (now) {
+ if (now.week() < this.week()) {
+ return '[来週]dddd LT';
+ } else {
+ return 'dddd LT';
+ }
+ },
+ lastDay : '[昨日] LT',
+ lastWeek : function (now) {
+ if (this.week() < now.week()) {
+ return '[先週]dddd LT';
+ } else {
+ return 'dddd LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}日/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'DDD':
+ return number + '日';
+ default:
+ return number;
+ }
+ },
+ relativeTime : {
+ future : '%s後',
+ past : '%s前',
+ s : '数秒',
+ ss : '%d秒',
+ m : '1分',
+ mm : '%d分',
+ h : '1時間',
+ hh : '%d時間',
+ d : '1日',
+ dd : '%d日',
+ M : '1ヶ月',
+ MM : '%dヶ月',
+ y : '1年',
+ yy : '%d年'
+ }
+ });
+
+ return ja;
+
+ })));
+
+
+/***/ }),
+/* 305 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var jv = moment.defineLocale('jv', {
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
+ weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
+ weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
+ },
+ meridiemParse: /enjing|siyang|sonten|ndalu/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'enjing') {
+ return hour;
+ } else if (meridiem === 'siyang') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 11) {
+ return 'enjing';
+ } else if (hours < 15) {
+ return 'siyang';
+ } else if (hours < 19) {
+ return 'sonten';
+ } else {
+ return 'ndalu';
+ }
+ },
+ calendar : {
+ sameDay : '[Dinten puniko pukul] LT',
+ nextDay : '[Mbenjang pukul] LT',
+ nextWeek : 'dddd [pukul] LT',
+ lastDay : '[Kala wingi pukul] LT',
+ lastWeek : 'dddd [kepengker pukul] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'wonten ing %s',
+ past : '%s ingkang kepengker',
+ s : 'sawetawis detik',
+ ss : '%d detik',
+ m : 'setunggal menit',
+ mm : '%d menit',
+ h : 'setunggal jam',
+ hh : '%d jam',
+ d : 'sedinten',
+ dd : '%d dinten',
+ M : 'sewulan',
+ MM : '%d wulan',
+ y : 'setaun',
+ yy : '%d taun'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return jv;
+
+ })));
+
+
+/***/ }),
+/* 306 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ka = moment.defineLocale('ka', {
+ months : {
+ standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
+ format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
+ },
+ monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
+ weekdays : {
+ standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
+ format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
+ isFormat: /(წინა|შემდეგ)/
+ },
+ weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
+ weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[დღეს] LT[-ზე]',
+ nextDay : '[ხვალ] LT[-ზე]',
+ lastDay : '[გუშინ] LT[-ზე]',
+ nextWeek : '[შემდეგ] dddd LT[-ზე]',
+ lastWeek : '[წინა] dddd LT-ზე',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : function (s) {
+ return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
+ s.replace(/ი$/, 'ში') :
+ s + 'ში';
+ },
+ past : function (s) {
+ if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
+ return s.replace(/(ი|ე)$/, 'ის წინ');
+ }
+ if ((/წელი/).test(s)) {
+ return s.replace(/წელი$/, 'წლის წინ');
+ }
+ },
+ s : 'რამდენიმე წამი',
+ ss : '%d წამი',
+ m : 'წუთი',
+ mm : '%d წუთი',
+ h : 'საათი',
+ hh : '%d საათი',
+ d : 'დღე',
+ dd : '%d დღე',
+ M : 'თვე',
+ MM : '%d თვე',
+ y : 'წელი',
+ yy : '%d წელი'
+ },
+ dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
+ ordinal : function (number) {
+ if (number === 0) {
+ return number;
+ }
+ if (number === 1) {
+ return number + '-ლი';
+ }
+ if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
+ return 'მე-' + number;
+ }
+ return number + '-ე';
+ },
+ week : {
+ dow : 1,
+ doy : 7
+ }
+ });
+
+ return ka;
+
+ })));
+
+
+/***/ }),
+/* 307 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var suffixes = {
+ 0: '-ші',
+ 1: '-ші',
+ 2: '-ші',
+ 3: '-ші',
+ 4: '-ші',
+ 5: '-ші',
+ 6: '-шы',
+ 7: '-ші',
+ 8: '-ші',
+ 9: '-шы',
+ 10: '-шы',
+ 20: '-шы',
+ 30: '-шы',
+ 40: '-шы',
+ 50: '-ші',
+ 60: '-шы',
+ 70: '-ші',
+ 80: '-ші',
+ 90: '-шы',
+ 100: '-ші'
+ };
+
+ var kk = moment.defineLocale('kk', {
+ months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
+ monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
+ weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
+ weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
+ weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Бүгін сағат] LT',
+ nextDay : '[Ертең сағат] LT',
+ nextWeek : 'dddd [сағат] LT',
+ lastDay : '[Кеше сағат] LT',
+ lastWeek : '[Өткен аптаның] dddd [сағат] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s ішінде',
+ past : '%s бұрын',
+ s : 'бірнеше секунд',
+ ss : '%d секунд',
+ m : 'бір минут',
+ mm : '%d минут',
+ h : 'бір сағат',
+ hh : '%d сағат',
+ d : 'бір күн',
+ dd : '%d күн',
+ M : 'бір ай',
+ MM : '%d ай',
+ y : 'бір жыл',
+ yy : '%d жыл'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
+ ordinal : function (number) {
+ var a = number % 10,
+ b = number >= 100 ? 100 : null;
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return kk;
+
+ })));
+
+
+/***/ }),
+/* 308 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '១',
+ '2': '២',
+ '3': '៣',
+ '4': '៤',
+ '5': '៥',
+ '6': '៦',
+ '7': '៧',
+ '8': '៨',
+ '9': '៩',
+ '0': '០'
+ }, numberMap = {
+ '១': '1',
+ '២': '2',
+ '៣': '3',
+ '៤': '4',
+ '៥': '5',
+ '៦': '6',
+ '៧': '7',
+ '៨': '8',
+ '៩': '9',
+ '០': '0'
+ };
+
+ var km = moment.defineLocale('km', {
+ months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
+ '_'
+ ),
+ monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
+ '_'
+ ),
+ weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
+ weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
+ weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
+ weekdaysParseExact: true,
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd, D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /ព្រឹក|ល្ងាច/,
+ isPM: function (input) {
+ return input === 'ល្ងាច';
+ },
+ meridiem: function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ព្រឹក';
+ } else {
+ return 'ល្ងាច';
+ }
+ },
+ calendar: {
+ sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
+ nextDay: '[ស្អែក ម៉ោង] LT',
+ nextWeek: 'dddd [ម៉ោង] LT',
+ lastDay: '[ម្សិលមិញ ម៉ោង] LT',
+ lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: '%sទៀត',
+ past: '%sមុន',
+ s: 'ប៉ុន្មានវិនាទី',
+ ss: '%d វិនាទី',
+ m: 'មួយនាទី',
+ mm: '%d នាទី',
+ h: 'មួយម៉ោង',
+ hh: '%d ម៉ោង',
+ d: 'មួយថ្ងៃ',
+ dd: '%d ថ្ងៃ',
+ M: 'មួយខែ',
+ MM: '%d ខែ',
+ y: 'មួយឆ្នាំ',
+ yy: '%d ឆ្នាំ'
+ },
+ dayOfMonthOrdinalParse : /ទី\d{1,2}/,
+ ordinal : 'ទី%d',
+ preparse: function (string) {
+ return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ week: {
+ dow: 1, // Monday is the first day of the week.
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return km;
+
+ })));
+
+
+/***/ }),
+/* 309 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '೧',
+ '2': '೨',
+ '3': '೩',
+ '4': '೪',
+ '5': '೫',
+ '6': '೬',
+ '7': '೭',
+ '8': '೮',
+ '9': '೯',
+ '0': '೦'
+ },
+ numberMap = {
+ '೧': '1',
+ '೨': '2',
+ '೩': '3',
+ '೪': '4',
+ '೫': '5',
+ '೬': '6',
+ '೭': '7',
+ '೮': '8',
+ '೯': '9',
+ '೦': '0'
+ };
+
+ var kn = moment.defineLocale('kn', {
+ months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
+ monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
+ weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
+ weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm',
+ LTS : 'A h:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
+ },
+ calendar : {
+ sameDay : '[ಇಂದು] LT',
+ nextDay : '[ನಾಳೆ] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[ನಿನ್ನೆ] LT',
+ lastWeek : '[ಕೊನೆಯ] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s ನಂತರ',
+ past : '%s ಹಿಂದೆ',
+ s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
+ ss : '%d ಸೆಕೆಂಡುಗಳು',
+ m : 'ಒಂದು ನಿಮಿಷ',
+ mm : '%d ನಿಮಿಷ',
+ h : 'ಒಂದು ಗಂಟೆ',
+ hh : '%d ಗಂಟೆ',
+ d : 'ಒಂದು ದಿನ',
+ dd : '%d ದಿನ',
+ M : 'ಒಂದು ತಿಂಗಳು',
+ MM : '%d ತಿಂಗಳು',
+ y : 'ಒಂದು ವರ್ಷ',
+ yy : '%d ವರ್ಷ'
+ },
+ preparse: function (string) {
+ return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'ರಾತ್ರಿ') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
+ return hour;
+ } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'ಸಂಜೆ') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'ರಾತ್ರಿ';
+ } else if (hour < 10) {
+ return 'ಬೆಳಿಗ್ಗೆ';
+ } else if (hour < 17) {
+ return 'ಮಧ್ಯಾಹ್ನ';
+ } else if (hour < 20) {
+ return 'ಸಂಜೆ';
+ } else {
+ return 'ರಾತ್ರಿ';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
+ ordinal : function (number) {
+ return number + 'ನೇ';
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return kn;
+
+ })));
+
+
+/***/ }),
+/* 310 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ko = moment.defineLocale('ko', {
+ months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
+ monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
+ weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
+ weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
+ weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm',
+ LTS : 'A h:mm:ss',
+ L : 'YYYY.MM.DD.',
+ LL : 'YYYY년 MMMM D일',
+ LLL : 'YYYY년 MMMM D일 A h:mm',
+ LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
+ l : 'YYYY.MM.DD.',
+ ll : 'YYYY년 MMMM D일',
+ lll : 'YYYY년 MMMM D일 A h:mm',
+ llll : 'YYYY년 MMMM D일 dddd A h:mm'
+ },
+ calendar : {
+ sameDay : '오늘 LT',
+ nextDay : '내일 LT',
+ nextWeek : 'dddd LT',
+ lastDay : '어제 LT',
+ lastWeek : '지난주 dddd LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s 후',
+ past : '%s 전',
+ s : '몇 초',
+ ss : '%d초',
+ m : '1분',
+ mm : '%d분',
+ h : '한 시간',
+ hh : '%d시간',
+ d : '하루',
+ dd : '%d일',
+ M : '한 달',
+ MM : '%d달',
+ y : '일 년',
+ yy : '%d년'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'DDD':
+ return number + '일';
+ case 'M':
+ return number + '월';
+ case 'w':
+ case 'W':
+ return number + '주';
+ default:
+ return number;
+ }
+ },
+ meridiemParse : /오전|오후/,
+ isPM : function (token) {
+ return token === '오후';
+ },
+ meridiem : function (hour, minute, isUpper) {
+ return hour < 12 ? '오전' : '오후';
+ }
+ });
+
+ return ko;
+
+ })));
+
+
+/***/ }),
+/* 311 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var suffixes = {
+ 0: '-чү',
+ 1: '-чи',
+ 2: '-чи',
+ 3: '-чү',
+ 4: '-чү',
+ 5: '-чи',
+ 6: '-чы',
+ 7: '-чи',
+ 8: '-чи',
+ 9: '-чу',
+ 10: '-чу',
+ 20: '-чы',
+ 30: '-чу',
+ 40: '-чы',
+ 50: '-чү',
+ 60: '-чы',
+ 70: '-чи',
+ 80: '-чи',
+ 90: '-чу',
+ 100: '-чү'
+ };
+
+ var ky = moment.defineLocale('ky', {
+ months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
+ monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
+ weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
+ weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
+ weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Бүгүн саат] LT',
+ nextDay : '[Эртең саат] LT',
+ nextWeek : 'dddd [саат] LT',
+ lastDay : '[Кече саат] LT',
+ lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s ичинде',
+ past : '%s мурун',
+ s : 'бирнече секунд',
+ ss : '%d секунд',
+ m : 'бир мүнөт',
+ mm : '%d мүнөт',
+ h : 'бир саат',
+ hh : '%d саат',
+ d : 'бир күн',
+ dd : '%d күн',
+ M : 'бир ай',
+ MM : '%d ай',
+ y : 'бир жыл',
+ yy : '%d жыл'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
+ ordinal : function (number) {
+ var a = number % 10,
+ b = number >= 100 ? 100 : null;
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ky;
+
+ })));
+
+
+/***/ }),
+/* 312 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 'm': ['eng Minutt', 'enger Minutt'],
+ 'h': ['eng Stonn', 'enger Stonn'],
+ 'd': ['een Dag', 'engem Dag'],
+ 'M': ['ee Mount', 'engem Mount'],
+ 'y': ['ee Joer', 'engem Joer']
+ };
+ return withoutSuffix ? format[key][0] : format[key][1];
+ }
+ function processFutureTime(string) {
+ var number = string.substr(0, string.indexOf(' '));
+ if (eifelerRegelAppliesToNumber(number)) {
+ return 'a ' + string;
+ }
+ return 'an ' + string;
+ }
+ function processPastTime(string) {
+ var number = string.substr(0, string.indexOf(' '));
+ if (eifelerRegelAppliesToNumber(number)) {
+ return 'viru ' + string;
+ }
+ return 'virun ' + string;
+ }
+ /**
+ * Returns true if the word before the given number loses the '-n' ending.
+ * e.g. 'an 10 Deeg' but 'a 5 Deeg'
+ *
+ * @param number {integer}
+ * @returns {boolean}
+ */
+ function eifelerRegelAppliesToNumber(number) {
+ number = parseInt(number, 10);
+ if (isNaN(number)) {
+ return false;
+ }
+ if (number < 0) {
+ // Negative Number --> always true
+ return true;
+ } else if (number < 10) {
+ // Only 1 digit
+ if (4 <= number && number <= 7) {
+ return true;
+ }
+ return false;
+ } else if (number < 100) {
+ // 2 digits
+ var lastDigit = number % 10, firstDigit = number / 10;
+ if (lastDigit === 0) {
+ return eifelerRegelAppliesToNumber(firstDigit);
+ }
+ return eifelerRegelAppliesToNumber(lastDigit);
+ } else if (number < 10000) {
+ // 3 or 4 digits --> recursively check first digit
+ while (number >= 10) {
+ number = number / 10;
+ }
+ return eifelerRegelAppliesToNumber(number);
+ } else {
+ // Anything larger than 4 digits: recursively check first n-3 digits
+ number = number / 1000;
+ return eifelerRegelAppliesToNumber(number);
+ }
+ }
+
+ var lb = moment.defineLocale('lb', {
+ months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
+ monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
+ monthsParseExact : true,
+ weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
+ weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
+ weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat: {
+ LT: 'H:mm [Auer]',
+ LTS: 'H:mm:ss [Auer]',
+ L: 'DD.MM.YYYY',
+ LL: 'D. MMMM YYYY',
+ LLL: 'D. MMMM YYYY H:mm [Auer]',
+ LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
+ },
+ calendar: {
+ sameDay: '[Haut um] LT',
+ sameElse: 'L',
+ nextDay: '[Muer um] LT',
+ nextWeek: 'dddd [um] LT',
+ lastDay: '[Gëschter um] LT',
+ lastWeek: function () {
+ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
+ switch (this.day()) {
+ case 2:
+ case 4:
+ return '[Leschten] dddd [um] LT';
+ default:
+ return '[Leschte] dddd [um] LT';
+ }
+ }
+ },
+ relativeTime : {
+ future : processFutureTime,
+ past : processPastTime,
+ s : 'e puer Sekonnen',
+ ss : '%d Sekonnen',
+ m : processRelativeTime,
+ mm : '%d Minutten',
+ h : processRelativeTime,
+ hh : '%d Stonnen',
+ d : processRelativeTime,
+ dd : '%d Deeg',
+ M : processRelativeTime,
+ MM : '%d Méint',
+ y : processRelativeTime,
+ yy : '%d Joer'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal: '%d.',
+ week: {
+ dow: 1, // Monday is the first day of the week.
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return lb;
+
+ })));
+
+
+/***/ }),
+/* 313 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var lo = moment.defineLocale('lo', {
+ months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
+ monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
+ weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
+ weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
+ weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
+ isPM: function (input) {
+ return input === 'ຕອນແລງ';
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ຕອນເຊົ້າ';
+ } else {
+ return 'ຕອນແລງ';
+ }
+ },
+ calendar : {
+ sameDay : '[ມື້ນີ້ເວລາ] LT',
+ nextDay : '[ມື້ອື່ນເວລາ] LT',
+ nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
+ lastDay : '[ມື້ວານນີ້ເວລາ] LT',
+ lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'ອີກ %s',
+ past : '%sຜ່ານມາ',
+ s : 'ບໍ່ເທົ່າໃດວິນາທີ',
+ ss : '%d ວິນາທີ' ,
+ m : '1 ນາທີ',
+ mm : '%d ນາທີ',
+ h : '1 ຊົ່ວໂມງ',
+ hh : '%d ຊົ່ວໂມງ',
+ d : '1 ມື້',
+ dd : '%d ມື້',
+ M : '1 ເດືອນ',
+ MM : '%d ເດືອນ',
+ y : '1 ປີ',
+ yy : '%d ປີ'
+ },
+ dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
+ ordinal : function (number) {
+ return 'ທີ່' + number;
+ }
+ });
+
+ return lo;
+
+ })));
+
+
+/***/ }),
+/* 314 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var units = {
+ 'ss' : 'sekundė_sekundžių_sekundes',
+ 'm' : 'minutė_minutės_minutę',
+ 'mm': 'minutės_minučių_minutes',
+ 'h' : 'valanda_valandos_valandą',
+ 'hh': 'valandos_valandų_valandas',
+ 'd' : 'diena_dienos_dieną',
+ 'dd': 'dienos_dienų_dienas',
+ 'M' : 'mėnuo_mėnesio_mėnesį',
+ 'MM': 'mėnesiai_mėnesių_mėnesius',
+ 'y' : 'metai_metų_metus',
+ 'yy': 'metai_metų_metus'
+ };
+ function translateSeconds(number, withoutSuffix, key, isFuture) {
+ if (withoutSuffix) {
+ return 'kelios sekundės';
+ } else {
+ return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
+ }
+ }
+ function translateSingular(number, withoutSuffix, key, isFuture) {
+ return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
+ }
+ function special(number) {
+ return number % 10 === 0 || (number > 10 && number < 20);
+ }
+ function forms(key) {
+ return units[key].split('_');
+ }
+ function translate(number, withoutSuffix, key, isFuture) {
+ var result = number + ' ';
+ if (number === 1) {
+ return result + translateSingular(number, withoutSuffix, key[0], isFuture);
+ } else if (withoutSuffix) {
+ return result + (special(number) ? forms(key)[1] : forms(key)[0]);
+ } else {
+ if (isFuture) {
+ return result + forms(key)[1];
+ } else {
+ return result + (special(number) ? forms(key)[1] : forms(key)[2]);
+ }
+ }
+ }
+ var lt = moment.defineLocale('lt', {
+ months : {
+ format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
+ standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
+ },
+ monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
+ weekdays : {
+ format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
+ standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
+ isFormat: /dddd HH:mm/
+ },
+ weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
+ weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'YYYY [m.] MMMM D [d.]',
+ LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
+ LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
+ l : 'YYYY-MM-DD',
+ ll : 'YYYY [m.] MMMM D [d.]',
+ lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
+ llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
+ },
+ calendar : {
+ sameDay : '[Šiandien] LT',
+ nextDay : '[Rytoj] LT',
+ nextWeek : 'dddd LT',
+ lastDay : '[Vakar] LT',
+ lastWeek : '[Praėjusį] dddd LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'po %s',
+ past : 'prieš %s',
+ s : translateSeconds,
+ ss : translate,
+ m : translateSingular,
+ mm : translate,
+ h : translateSingular,
+ hh : translate,
+ d : translateSingular,
+ dd : translate,
+ M : translateSingular,
+ MM : translate,
+ y : translateSingular,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-oji/,
+ ordinal : function (number) {
+ return number + '-oji';
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return lt;
+
+ })));
+
+
+/***/ }),
+/* 315 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var units = {
+ 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
+ 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
+ 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
+ 'h': 'stundas_stundām_stunda_stundas'.split('_'),
+ 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
+ 'd': 'dienas_dienām_diena_dienas'.split('_'),
+ 'dd': 'dienas_dienām_diena_dienas'.split('_'),
+ 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
+ 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
+ 'y': 'gada_gadiem_gads_gadi'.split('_'),
+ 'yy': 'gada_gadiem_gads_gadi'.split('_')
+ };
+ /**
+ * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
+ */
+ function format(forms, number, withoutSuffix) {
+ if (withoutSuffix) {
+ // E.g. "21 minūte", "3 minūtes".
+ return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
+ } else {
+ // E.g. "21 minūtes" as in "pēc 21 minūtes".
+ // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
+ return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
+ }
+ }
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
+ return number + ' ' + format(units[key], number, withoutSuffix);
+ }
+ function relativeTimeWithSingular(number, withoutSuffix, key) {
+ return format(units[key], number, withoutSuffix);
+ }
+ function relativeSeconds(number, withoutSuffix) {
+ return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
+ }
+
+ var lv = moment.defineLocale('lv', {
+ months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
+ weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
+ weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
+ weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY.',
+ LL : 'YYYY. [gada] D. MMMM',
+ LLL : 'YYYY. [gada] D. MMMM, HH:mm',
+ LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
+ },
+ calendar : {
+ sameDay : '[Šodien pulksten] LT',
+ nextDay : '[Rīt pulksten] LT',
+ nextWeek : 'dddd [pulksten] LT',
+ lastDay : '[Vakar pulksten] LT',
+ lastWeek : '[Pagājušā] dddd [pulksten] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'pēc %s',
+ past : 'pirms %s',
+ s : relativeSeconds,
+ ss : relativeTimeWithPlural,
+ m : relativeTimeWithSingular,
+ mm : relativeTimeWithPlural,
+ h : relativeTimeWithSingular,
+ hh : relativeTimeWithPlural,
+ d : relativeTimeWithSingular,
+ dd : relativeTimeWithPlural,
+ M : relativeTimeWithSingular,
+ MM : relativeTimeWithPlural,
+ y : relativeTimeWithSingular,
+ yy : relativeTimeWithPlural
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return lv;
+
+ })));
+
+
+/***/ }),
+/* 316 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var translator = {
+ words: { //Different grammatical cases
+ ss: ['sekund', 'sekunda', 'sekundi'],
+ m: ['jedan minut', 'jednog minuta'],
+ mm: ['minut', 'minuta', 'minuta'],
+ h: ['jedan sat', 'jednog sata'],
+ hh: ['sat', 'sata', 'sati'],
+ dd: ['dan', 'dana', 'dana'],
+ MM: ['mjesec', 'mjeseca', 'mjeseci'],
+ yy: ['godina', 'godine', 'godina']
+ },
+ correctGrammaticalCase: function (number, wordKey) {
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
+ },
+ translate: function (number, withoutSuffix, key) {
+ var wordKey = translator.words[key];
+ if (key.length === 1) {
+ return withoutSuffix ? wordKey[0] : wordKey[1];
+ } else {
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
+ }
+ }
+ };
+
+ var me = moment.defineLocale('me', {
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
+ monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
+ monthsParseExact : true,
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat: {
+ LT: 'H:mm',
+ LTS : 'H:mm:ss',
+ L: 'DD.MM.YYYY',
+ LL: 'D. MMMM YYYY',
+ LLL: 'D. MMMM YYYY H:mm',
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar: {
+ sameDay: '[danas u] LT',
+ nextDay: '[sjutra u] LT',
+
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[u] [nedjelju] [u] LT';
+ case 3:
+ return '[u] [srijedu] [u] LT';
+ case 6:
+ return '[u] [subotu] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[u] dddd [u] LT';
+ }
+ },
+ lastDay : '[juče u] LT',
+ lastWeek : function () {
+ var lastWeekDays = [
+ '[prošle] [nedjelje] [u] LT',
+ '[prošlog] [ponedjeljka] [u] LT',
+ '[prošlog] [utorka] [u] LT',
+ '[prošle] [srijede] [u] LT',
+ '[prošlog] [četvrtka] [u] LT',
+ '[prošlog] [petka] [u] LT',
+ '[prošle] [subote] [u] LT'
+ ];
+ return lastWeekDays[this.day()];
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'prije %s',
+ s : 'nekoliko sekundi',
+ ss : translator.translate,
+ m : translator.translate,
+ mm : translator.translate,
+ h : translator.translate,
+ hh : translator.translate,
+ d : 'dan',
+ dd : translator.translate,
+ M : 'mjesec',
+ MM : translator.translate,
+ y : 'godinu',
+ yy : translator.translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return me;
+
+ })));
+
+
+/***/ }),
+/* 317 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var mi = moment.defineLocale('mi', {
+ months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
+ monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
+ monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+ monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+ monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
+ monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
+ weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
+ weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
+ weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY [i] HH:mm',
+ LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
+ },
+ calendar: {
+ sameDay: '[i teie mahana, i] LT',
+ nextDay: '[apopo i] LT',
+ nextWeek: 'dddd [i] LT',
+ lastDay: '[inanahi i] LT',
+ lastWeek: 'dddd [whakamutunga i] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: 'i roto i %s',
+ past: '%s i mua',
+ s: 'te hēkona ruarua',
+ ss: '%d hēkona',
+ m: 'he meneti',
+ mm: '%d meneti',
+ h: 'te haora',
+ hh: '%d haora',
+ d: 'he ra',
+ dd: '%d ra',
+ M: 'he marama',
+ MM: '%d marama',
+ y: 'he tau',
+ yy: '%d tau'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
+ ordinal: '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return mi;
+
+ })));
+
+
+/***/ }),
+/* 318 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var mk = moment.defineLocale('mk', {
+ months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
+ monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
+ weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
+ weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
+ weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'D.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY H:mm',
+ LLLL : 'dddd, D MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[Денес во] LT',
+ nextDay : '[Утре во] LT',
+ nextWeek : '[Во] dddd [во] LT',
+ lastDay : '[Вчера во] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ case 6:
+ return '[Изминатата] dddd [во] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[Изминатиот] dddd [во] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'после %s',
+ past : 'пред %s',
+ s : 'неколку секунди',
+ ss : '%d секунди',
+ m : 'минута',
+ mm : '%d минути',
+ h : 'час',
+ hh : '%d часа',
+ d : 'ден',
+ dd : '%d дена',
+ M : 'месец',
+ MM : '%d месеци',
+ y : 'година',
+ yy : '%d години'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
+ ordinal : function (number) {
+ var lastDigit = number % 10,
+ last2Digits = number % 100;
+ if (number === 0) {
+ return number + '-ев';
+ } else if (last2Digits === 0) {
+ return number + '-ен';
+ } else if (last2Digits > 10 && last2Digits < 20) {
+ return number + '-ти';
+ } else if (lastDigit === 1) {
+ return number + '-ви';
+ } else if (lastDigit === 2) {
+ return number + '-ри';
+ } else if (lastDigit === 7 || lastDigit === 8) {
+ return number + '-ми';
+ } else {
+ return number + '-ти';
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return mk;
+
+ })));
+
+
+/***/ }),
+/* 319 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ml = moment.defineLocale('ml', {
+ months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
+ monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
+ weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
+ weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm -നു',
+ LTS : 'A h:mm:ss -നു',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm -നു',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
+ },
+ calendar : {
+ sameDay : '[ഇന്ന്] LT',
+ nextDay : '[നാളെ] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[ഇന്നലെ] LT',
+ lastWeek : '[കഴിഞ്ഞ] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s കഴിഞ്ഞ്',
+ past : '%s മുൻപ്',
+ s : 'അൽപ നിമിഷങ്ങൾ',
+ ss : '%d സെക്കൻഡ്',
+ m : 'ഒരു മിനിറ്റ്',
+ mm : '%d മിനിറ്റ്',
+ h : 'ഒരു മണിക്കൂർ',
+ hh : '%d മണിക്കൂർ',
+ d : 'ഒരു ദിവസം',
+ dd : '%d ദിവസം',
+ M : 'ഒരു മാസം',
+ MM : '%d മാസം',
+ y : 'ഒരു വർഷം',
+ yy : '%d വർഷം'
+ },
+ meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if ((meridiem === 'രാത്രി' && hour >= 4) ||
+ meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
+ meridiem === 'വൈകുന്നേരം') {
+ return hour + 12;
+ } else {
+ return hour;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'രാത്രി';
+ } else if (hour < 12) {
+ return 'രാവിലെ';
+ } else if (hour < 17) {
+ return 'ഉച്ച കഴിഞ്ഞ്';
+ } else if (hour < 20) {
+ return 'വൈകുന്നേരം';
+ } else {
+ return 'രാത്രി';
+ }
+ }
+ });
+
+ return ml;
+
+ })));
+
+
+/***/ }),
+/* 320 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function translate(number, withoutSuffix, key, isFuture) {
+ switch (key) {
+ case 's':
+ return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
+ case 'ss':
+ return number + (withoutSuffix ? ' секунд' : ' секундын');
+ case 'm':
+ case 'mm':
+ return number + (withoutSuffix ? ' минут' : ' минутын');
+ case 'h':
+ case 'hh':
+ return number + (withoutSuffix ? ' цаг' : ' цагийн');
+ case 'd':
+ case 'dd':
+ return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
+ case 'M':
+ case 'MM':
+ return number + (withoutSuffix ? ' сар' : ' сарын');
+ case 'y':
+ case 'yy':
+ return number + (withoutSuffix ? ' жил' : ' жилийн');
+ default:
+ return number;
+ }
+ }
+
+ var mn = moment.defineLocale('mn', {
+ months : 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
+ monthsShort : '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
+ weekdaysShort : 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
+ weekdaysMin : 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'YYYY оны MMMMын D',
+ LLL : 'YYYY оны MMMMын D HH:mm',
+ LLLL : 'dddd, YYYY оны MMMMын D HH:mm'
+ },
+ meridiemParse: /ҮӨ|ҮХ/i,
+ isPM : function (input) {
+ return input === 'ҮХ';
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ҮӨ';
+ } else {
+ return 'ҮХ';
+ }
+ },
+ calendar : {
+ sameDay : '[Өнөөдөр] LT',
+ nextDay : '[Маргааш] LT',
+ nextWeek : '[Ирэх] dddd LT',
+ lastDay : '[Өчигдөр] LT',
+ lastWeek : '[Өнгөрсөн] dddd LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s дараа',
+ past : '%s өмнө',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'DDD':
+ return number + ' өдөр';
+ default:
+ return number;
+ }
+ }
+ });
+
+ return mn;
+
+ })));
+
+
+/***/ }),
+/* 321 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '१',
+ '2': '२',
+ '3': '३',
+ '4': '४',
+ '5': '५',
+ '6': '६',
+ '7': '७',
+ '8': '८',
+ '9': '९',
+ '0': '०'
+ },
+ numberMap = {
+ '१': '1',
+ '२': '2',
+ '३': '3',
+ '४': '4',
+ '५': '5',
+ '६': '6',
+ '७': '7',
+ '८': '8',
+ '९': '9',
+ '०': '0'
+ };
+
+ function relativeTimeMr(number, withoutSuffix, string, isFuture)
+ {
+ var output = '';
+ if (withoutSuffix) {
+ switch (string) {
+ case 's': output = 'काही सेकंद'; break;
+ case 'ss': output = '%d सेकंद'; break;
+ case 'm': output = 'एक मिनिट'; break;
+ case 'mm': output = '%d मिनिटे'; break;
+ case 'h': output = 'एक तास'; break;
+ case 'hh': output = '%d तास'; break;
+ case 'd': output = 'एक दिवस'; break;
+ case 'dd': output = '%d दिवस'; break;
+ case 'M': output = 'एक महिना'; break;
+ case 'MM': output = '%d महिने'; break;
+ case 'y': output = 'एक वर्ष'; break;
+ case 'yy': output = '%d वर्षे'; break;
+ }
+ }
+ else {
+ switch (string) {
+ case 's': output = 'काही सेकंदां'; break;
+ case 'ss': output = '%d सेकंदां'; break;
+ case 'm': output = 'एका मिनिटा'; break;
+ case 'mm': output = '%d मिनिटां'; break;
+ case 'h': output = 'एका तासा'; break;
+ case 'hh': output = '%d तासां'; break;
+ case 'd': output = 'एका दिवसा'; break;
+ case 'dd': output = '%d दिवसां'; break;
+ case 'M': output = 'एका महिन्या'; break;
+ case 'MM': output = '%d महिन्यां'; break;
+ case 'y': output = 'एका वर्षा'; break;
+ case 'yy': output = '%d वर्षां'; break;
+ }
+ }
+ return output.replace(/%d/i, number);
+ }
+
+ var mr = moment.defineLocale('mr', {
+ months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
+ monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
+ weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
+ weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm वाजता',
+ LTS : 'A h:mm:ss वाजता',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm वाजता',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
+ },
+ calendar : {
+ sameDay : '[आज] LT',
+ nextDay : '[उद्या] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[काल] LT',
+ lastWeek: '[मागील] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future: '%sमध्ये',
+ past: '%sपूर्वी',
+ s: relativeTimeMr,
+ ss: relativeTimeMr,
+ m: relativeTimeMr,
+ mm: relativeTimeMr,
+ h: relativeTimeMr,
+ hh: relativeTimeMr,
+ d: relativeTimeMr,
+ dd: relativeTimeMr,
+ M: relativeTimeMr,
+ MM: relativeTimeMr,
+ y: relativeTimeMr,
+ yy: relativeTimeMr
+ },
+ preparse: function (string) {
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'रात्री') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'सकाळी') {
+ return hour;
+ } else if (meridiem === 'दुपारी') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'सायंकाळी') {
+ return hour + 12;
+ }
+ },
+ meridiem: function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'रात्री';
+ } else if (hour < 10) {
+ return 'सकाळी';
+ } else if (hour < 17) {
+ return 'दुपारी';
+ } else if (hour < 20) {
+ return 'सायंकाळी';
+ } else {
+ return 'रात्री';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return mr;
+
+ })));
+
+
+/***/ }),
+/* 322 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ms = moment.defineLocale('ms', {
+ months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
+ monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
+ weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
+ weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
+ weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
+ },
+ meridiemParse: /pagi|tengahari|petang|malam/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'pagi') {
+ return hour;
+ } else if (meridiem === 'tengahari') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'petang' || meridiem === 'malam') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 11) {
+ return 'pagi';
+ } else if (hours < 15) {
+ return 'tengahari';
+ } else if (hours < 19) {
+ return 'petang';
+ } else {
+ return 'malam';
+ }
+ },
+ calendar : {
+ sameDay : '[Hari ini pukul] LT',
+ nextDay : '[Esok pukul] LT',
+ nextWeek : 'dddd [pukul] LT',
+ lastDay : '[Kelmarin pukul] LT',
+ lastWeek : 'dddd [lepas pukul] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dalam %s',
+ past : '%s yang lepas',
+ s : 'beberapa saat',
+ ss : '%d saat',
+ m : 'seminit',
+ mm : '%d minit',
+ h : 'sejam',
+ hh : '%d jam',
+ d : 'sehari',
+ dd : '%d hari',
+ M : 'sebulan',
+ MM : '%d bulan',
+ y : 'setahun',
+ yy : '%d tahun'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ms;
+
+ })));
+
+
+/***/ }),
+/* 323 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var msMy = moment.defineLocale('ms-my', {
+ months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
+ monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
+ weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
+ weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
+ weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
+ },
+ meridiemParse: /pagi|tengahari|petang|malam/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'pagi') {
+ return hour;
+ } else if (meridiem === 'tengahari') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'petang' || meridiem === 'malam') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 11) {
+ return 'pagi';
+ } else if (hours < 15) {
+ return 'tengahari';
+ } else if (hours < 19) {
+ return 'petang';
+ } else {
+ return 'malam';
+ }
+ },
+ calendar : {
+ sameDay : '[Hari ini pukul] LT',
+ nextDay : '[Esok pukul] LT',
+ nextWeek : 'dddd [pukul] LT',
+ lastDay : '[Kelmarin pukul] LT',
+ lastWeek : 'dddd [lepas pukul] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'dalam %s',
+ past : '%s yang lepas',
+ s : 'beberapa saat',
+ ss : '%d saat',
+ m : 'seminit',
+ mm : '%d minit',
+ h : 'sejam',
+ hh : '%d jam',
+ d : 'sehari',
+ dd : '%d hari',
+ M : 'sebulan',
+ MM : '%d bulan',
+ y : 'setahun',
+ yy : '%d tahun'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return msMy;
+
+ })));
+
+
+/***/ }),
+/* 324 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var mt = moment.defineLocale('mt', {
+ months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
+ monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
+ weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
+ weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
+ weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Illum fil-]LT',
+ nextDay : '[Għada fil-]LT',
+ nextWeek : 'dddd [fil-]LT',
+ lastDay : '[Il-bieraħ fil-]LT',
+ lastWeek : 'dddd [li għadda] [fil-]LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'f’ %s',
+ past : '%s ilu',
+ s : 'ftit sekondi',
+ ss : '%d sekondi',
+ m : 'minuta',
+ mm : '%d minuti',
+ h : 'siegħa',
+ hh : '%d siegħat',
+ d : 'ġurnata',
+ dd : '%d ġranet',
+ M : 'xahar',
+ MM : '%d xhur',
+ y : 'sena',
+ yy : '%d sni'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
+ ordinal: '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return mt;
+
+ })));
+
+
+/***/ }),
+/* 325 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '၁',
+ '2': '၂',
+ '3': '၃',
+ '4': '၄',
+ '5': '၅',
+ '6': '၆',
+ '7': '၇',
+ '8': '၈',
+ '9': '၉',
+ '0': '၀'
+ }, numberMap = {
+ '၁': '1',
+ '၂': '2',
+ '၃': '3',
+ '၄': '4',
+ '၅': '5',
+ '၆': '6',
+ '၇': '7',
+ '၈': '8',
+ '၉': '9',
+ '၀': '0'
+ };
+
+ var my = moment.defineLocale('my', {
+ months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
+ monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
+ weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
+ weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
+ weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
+
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY HH:mm',
+ LLLL: 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar: {
+ sameDay: '[ယနေ.] LT [မှာ]',
+ nextDay: '[မနက်ဖြန်] LT [မှာ]',
+ nextWeek: 'dddd LT [မှာ]',
+ lastDay: '[မနေ.က] LT [မှာ]',
+ lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: 'လာမည့် %s မှာ',
+ past: 'လွန်ခဲ့သော %s က',
+ s: 'စက္ကန်.အနည်းငယ်',
+ ss : '%d စက္ကန့်',
+ m: 'တစ်မိနစ်',
+ mm: '%d မိနစ်',
+ h: 'တစ်နာရီ',
+ hh: '%d နာရီ',
+ d: 'တစ်ရက်',
+ dd: '%d ရက်',
+ M: 'တစ်လ',
+ MM: '%d လ',
+ y: 'တစ်နှစ်',
+ yy: '%d နှစ်'
+ },
+ preparse: function (string) {
+ return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ week: {
+ dow: 1, // Monday is the first day of the week.
+ doy: 4 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return my;
+
+ })));
+
+
+/***/ }),
+/* 326 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var nb = moment.defineLocale('nb', {
+ months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
+ monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
+ weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
+ weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY [kl.] HH:mm',
+ LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
+ },
+ calendar : {
+ sameDay: '[i dag kl.] LT',
+ nextDay: '[i morgen kl.] LT',
+ nextWeek: 'dddd [kl.] LT',
+ lastDay: '[i går kl.] LT',
+ lastWeek: '[forrige] dddd [kl.] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'om %s',
+ past : '%s siden',
+ s : 'noen sekunder',
+ ss : '%d sekunder',
+ m : 'ett minutt',
+ mm : '%d minutter',
+ h : 'en time',
+ hh : '%d timer',
+ d : 'en dag',
+ dd : '%d dager',
+ M : 'en måned',
+ MM : '%d måneder',
+ y : 'ett år',
+ yy : '%d år'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return nb;
+
+ })));
+
+
+/***/ }),
+/* 327 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '१',
+ '2': '२',
+ '3': '३',
+ '4': '४',
+ '5': '५',
+ '6': '६',
+ '7': '७',
+ '8': '८',
+ '9': '९',
+ '0': '०'
+ },
+ numberMap = {
+ '१': '1',
+ '२': '2',
+ '३': '3',
+ '४': '4',
+ '५': '5',
+ '६': '6',
+ '७': '7',
+ '८': '8',
+ '९': '9',
+ '०': '0'
+ };
+
+ var ne = moment.defineLocale('ne', {
+ months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
+ monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
+ weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
+ weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'Aको h:mm बजे',
+ LTS : 'Aको h:mm:ss बजे',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, Aको h:mm बजे',
+ LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
+ },
+ preparse: function (string) {
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'राति') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'बिहान') {
+ return hour;
+ } else if (meridiem === 'दिउँसो') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'साँझ') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 3) {
+ return 'राति';
+ } else if (hour < 12) {
+ return 'बिहान';
+ } else if (hour < 16) {
+ return 'दिउँसो';
+ } else if (hour < 20) {
+ return 'साँझ';
+ } else {
+ return 'राति';
+ }
+ },
+ calendar : {
+ sameDay : '[आज] LT',
+ nextDay : '[भोलि] LT',
+ nextWeek : '[आउँदो] dddd[,] LT',
+ lastDay : '[हिजो] LT',
+ lastWeek : '[गएको] dddd[,] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%sमा',
+ past : '%s अगाडि',
+ s : 'केही क्षण',
+ ss : '%d सेकेण्ड',
+ m : 'एक मिनेट',
+ mm : '%d मिनेट',
+ h : 'एक घण्टा',
+ hh : '%d घण्टा',
+ d : 'एक दिन',
+ dd : '%d दिन',
+ M : 'एक महिना',
+ MM : '%d महिना',
+ y : 'एक बर्ष',
+ yy : '%d बर्ष'
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ne;
+
+ })));
+
+
+/***/ }),
+/* 328 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
+
+ var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
+ var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
+
+ var nl = moment.defineLocale('nl', {
+ months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortWithDots;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShortWithoutDots[m.month()];
+ } else {
+ return monthsShortWithDots[m.month()];
+ }
+ },
+
+ monthsRegex: monthsRegex,
+ monthsShortRegex: monthsRegex,
+ monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
+
+ monthsParse : monthsParse,
+ longMonthsParse : monthsParse,
+ shortMonthsParse : monthsParse,
+
+ weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
+ weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
+ weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD-MM-YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[vandaag om] LT',
+ nextDay: '[morgen om] LT',
+ nextWeek: 'dddd [om] LT',
+ lastDay: '[gisteren om] LT',
+ lastWeek: '[afgelopen] dddd [om] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'over %s',
+ past : '%s geleden',
+ s : 'een paar seconden',
+ ss : '%d seconden',
+ m : 'één minuut',
+ mm : '%d minuten',
+ h : 'één uur',
+ hh : '%d uur',
+ d : 'één dag',
+ dd : '%d dagen',
+ M : 'één maand',
+ MM : '%d maanden',
+ y : 'één jaar',
+ yy : '%d jaar'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+ ordinal : function (number) {
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return nl;
+
+ })));
+
+
+/***/ }),
+/* 329 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
+
+ var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
+ var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
+
+ var nlBe = moment.defineLocale('nl-be', {
+ months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
+ monthsShort : function (m, format) {
+ if (!m) {
+ return monthsShortWithDots;
+ } else if (/-MMM-/.test(format)) {
+ return monthsShortWithoutDots[m.month()];
+ } else {
+ return monthsShortWithDots[m.month()];
+ }
+ },
+
+ monthsRegex: monthsRegex,
+ monthsShortRegex: monthsRegex,
+ monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
+
+ monthsParse : monthsParse,
+ longMonthsParse : monthsParse,
+ shortMonthsParse : monthsParse,
+
+ weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
+ weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
+ weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[vandaag om] LT',
+ nextDay: '[morgen om] LT',
+ nextWeek: 'dddd [om] LT',
+ lastDay: '[gisteren om] LT',
+ lastWeek: '[afgelopen] dddd [om] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'over %s',
+ past : '%s geleden',
+ s : 'een paar seconden',
+ ss : '%d seconden',
+ m : 'één minuut',
+ mm : '%d minuten',
+ h : 'één uur',
+ hh : '%d uur',
+ d : 'één dag',
+ dd : '%d dagen',
+ M : 'één maand',
+ MM : '%d maanden',
+ y : 'één jaar',
+ yy : '%d jaar'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
+ ordinal : function (number) {
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return nlBe;
+
+ })));
+
+
+/***/ }),
+/* 330 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var nn = moment.defineLocale('nn', {
+ months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
+ weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
+ weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
+ weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
+ LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
+ },
+ calendar : {
+ sameDay: '[I dag klokka] LT',
+ nextDay: '[I morgon klokka] LT',
+ nextWeek: 'dddd [klokka] LT',
+ lastDay: '[I går klokka] LT',
+ lastWeek: '[Føregåande] dddd [klokka] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'om %s',
+ past : '%s sidan',
+ s : 'nokre sekund',
+ ss : '%d sekund',
+ m : 'eit minutt',
+ mm : '%d minutt',
+ h : 'ein time',
+ hh : '%d timar',
+ d : 'ein dag',
+ dd : '%d dagar',
+ M : 'ein månad',
+ MM : '%d månader',
+ y : 'eit år',
+ yy : '%d år'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return nn;
+
+ })));
+
+
+/***/ }),
+/* 331 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '੧',
+ '2': '੨',
+ '3': '੩',
+ '4': '੪',
+ '5': '੫',
+ '6': '੬',
+ '7': '੭',
+ '8': '੮',
+ '9': '੯',
+ '0': '੦'
+ },
+ numberMap = {
+ '੧': '1',
+ '੨': '2',
+ '੩': '3',
+ '੪': '4',
+ '੫': '5',
+ '੬': '6',
+ '੭': '7',
+ '੮': '8',
+ '੯': '9',
+ '੦': '0'
+ };
+
+ var paIn = moment.defineLocale('pa-in', {
+ // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
+ months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
+ monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
+ weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
+ weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
+ weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm ਵਜੇ',
+ LTS : 'A h:mm:ss ਵਜੇ',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
+ },
+ calendar : {
+ sameDay : '[ਅਜ] LT',
+ nextDay : '[ਕਲ] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[ਕਲ] LT',
+ lastWeek : '[ਪਿਛਲੇ] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s ਵਿੱਚ',
+ past : '%s ਪਿਛਲੇ',
+ s : 'ਕੁਝ ਸਕਿੰਟ',
+ ss : '%d ਸਕਿੰਟ',
+ m : 'ਇਕ ਮਿੰਟ',
+ mm : '%d ਮਿੰਟ',
+ h : 'ਇੱਕ ਘੰਟਾ',
+ hh : '%d ਘੰਟੇ',
+ d : 'ਇੱਕ ਦਿਨ',
+ dd : '%d ਦਿਨ',
+ M : 'ਇੱਕ ਮਹੀਨਾ',
+ MM : '%d ਮਹੀਨੇ',
+ y : 'ਇੱਕ ਸਾਲ',
+ yy : '%d ਸਾਲ'
+ },
+ preparse: function (string) {
+ return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
+ meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'ਰਾਤ') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'ਸਵੇਰ') {
+ return hour;
+ } else if (meridiem === 'ਦੁਪਹਿਰ') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'ਸ਼ਾਮ') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'ਰਾਤ';
+ } else if (hour < 10) {
+ return 'ਸਵੇਰ';
+ } else if (hour < 17) {
+ return 'ਦੁਪਹਿਰ';
+ } else if (hour < 20) {
+ return 'ਸ਼ਾਮ';
+ } else {
+ return 'ਰਾਤ';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return paIn;
+
+ })));
+
+
+/***/ }),
+/* 332 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
+ monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
+ function plural(n) {
+ return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
+ }
+ function translate(number, withoutSuffix, key) {
+ var result = number + ' ';
+ switch (key) {
+ case 'ss':
+ return result + (plural(number) ? 'sekundy' : 'sekund');
+ case 'm':
+ return withoutSuffix ? 'minuta' : 'minutę';
+ case 'mm':
+ return result + (plural(number) ? 'minuty' : 'minut');
+ case 'h':
+ return withoutSuffix ? 'godzina' : 'godzinę';
+ case 'hh':
+ return result + (plural(number) ? 'godziny' : 'godzin');
+ case 'MM':
+ return result + (plural(number) ? 'miesiące' : 'miesięcy');
+ case 'yy':
+ return result + (plural(number) ? 'lata' : 'lat');
+ }
+ }
+
+ var pl = moment.defineLocale('pl', {
+ months : function (momentToFormat, format) {
+ if (!momentToFormat) {
+ return monthsNominative;
+ } else if (format === '') {
+ // Hack: if format empty we know this is used to generate
+ // RegExp by moment. Give then back both valid forms of months
+ // in RegExp ready format.
+ return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
+ } else if (/D MMMM/.test(format)) {
+ return monthsSubjective[momentToFormat.month()];
+ } else {
+ return monthsNominative[momentToFormat.month()];
+ }
+ },
+ monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
+ weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
+ weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
+ weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Dziś o] LT',
+ nextDay: '[Jutro o] LT',
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[W niedzielę o] LT';
+
+ case 2:
+ return '[We wtorek o] LT';
+
+ case 3:
+ return '[W środę o] LT';
+
+ case 6:
+ return '[W sobotę o] LT';
+
+ default:
+ return '[W] dddd [o] LT';
+ }
+ },
+ lastDay: '[Wczoraj o] LT',
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[W zeszłą niedzielę o] LT';
+ case 3:
+ return '[W zeszłą środę o] LT';
+ case 6:
+ return '[W zeszłą sobotę o] LT';
+ default:
+ return '[W zeszły] dddd [o] LT';
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : '%s temu',
+ s : 'kilka sekund',
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : '1 dzień',
+ dd : '%d dni',
+ M : 'miesiąc',
+ MM : translate,
+ y : 'rok',
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return pl;
+
+ })));
+
+
+/***/ }),
+/* 333 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var pt = moment.defineLocale('pt', {
+ months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
+ monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
+ weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
+ weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D [de] MMMM [de] YYYY',
+ LLL : 'D [de] MMMM [de] YYYY HH:mm',
+ LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Hoje às] LT',
+ nextDay: '[Amanhã às] LT',
+ nextWeek: 'dddd [às] LT',
+ lastDay: '[Ontem às] LT',
+ lastWeek: function () {
+ return (this.day() === 0 || this.day() === 6) ?
+ '[Último] dddd [às] LT' : // Saturday + Sunday
+ '[Última] dddd [às] LT'; // Monday - Friday
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'em %s',
+ past : 'há %s',
+ s : 'segundos',
+ ss : '%d segundos',
+ m : 'um minuto',
+ mm : '%d minutos',
+ h : 'uma hora',
+ hh : '%d horas',
+ d : 'um dia',
+ dd : '%d dias',
+ M : 'um mês',
+ MM : '%d meses',
+ y : 'um ano',
+ yy : '%d anos'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
+ ordinal : '%dº',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return pt;
+
+ })));
+
+
+/***/ }),
+/* 334 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ptBr = moment.defineLocale('pt-br', {
+ months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
+ monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
+ weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
+ weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D [de] MMMM [de] YYYY',
+ LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
+ LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
+ },
+ calendar : {
+ sameDay: '[Hoje às] LT',
+ nextDay: '[Amanhã às] LT',
+ nextWeek: 'dddd [às] LT',
+ lastDay: '[Ontem às] LT',
+ lastWeek: function () {
+ return (this.day() === 0 || this.day() === 6) ?
+ '[Último] dddd [às] LT' : // Saturday + Sunday
+ '[Última] dddd [às] LT'; // Monday - Friday
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'em %s',
+ past : 'há %s',
+ s : 'poucos segundos',
+ ss : '%d segundos',
+ m : 'um minuto',
+ mm : '%d minutos',
+ h : 'uma hora',
+ hh : '%d horas',
+ d : 'um dia',
+ dd : '%d dias',
+ M : 'um mês',
+ MM : '%d meses',
+ y : 'um ano',
+ yy : '%d anos'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
+ ordinal : '%dº'
+ });
+
+ return ptBr;
+
+ })));
+
+
+/***/ }),
+/* 335 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
+ var format = {
+ 'ss': 'secunde',
+ 'mm': 'minute',
+ 'hh': 'ore',
+ 'dd': 'zile',
+ 'MM': 'luni',
+ 'yy': 'ani'
+ },
+ separator = ' ';
+ if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
+ separator = ' de ';
+ }
+ return number + separator + format[key];
+ }
+
+ var ro = moment.defineLocale('ro', {
+ months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
+ monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
+ weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
+ weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY H:mm',
+ LLLL : 'dddd, D MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay: '[azi la] LT',
+ nextDay: '[mâine la] LT',
+ nextWeek: 'dddd [la] LT',
+ lastDay: '[ieri la] LT',
+ lastWeek: '[fosta] dddd [la] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'peste %s',
+ past : '%s în urmă',
+ s : 'câteva secunde',
+ ss : relativeTimeWithPlural,
+ m : 'un minut',
+ mm : relativeTimeWithPlural,
+ h : 'o oră',
+ hh : relativeTimeWithPlural,
+ d : 'o zi',
+ dd : relativeTimeWithPlural,
+ M : 'o lună',
+ MM : relativeTimeWithPlural,
+ y : 'un an',
+ yy : relativeTimeWithPlural
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ro;
+
+ })));
+
+
+/***/ }),
+/* 336 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function plural(word, num) {
+ var forms = word.split('_');
+ return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
+ }
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
+ var format = {
+ 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
+ 'hh': 'час_часа_часов',
+ 'dd': 'день_дня_дней',
+ 'MM': 'месяц_месяца_месяцев',
+ 'yy': 'год_года_лет'
+ };
+ if (key === 'm') {
+ return withoutSuffix ? 'минута' : 'минуту';
+ }
+ else {
+ return number + ' ' + plural(format[key], +number);
+ }
+ }
+ var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
+
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
+ var ru = moment.defineLocale('ru', {
+ months : {
+ format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
+ standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
+ },
+ monthsShort : {
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
+ format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
+ standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
+ },
+ weekdays : {
+ standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
+ format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
+ isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
+ },
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
+ monthsParse : monthsParse,
+ longMonthsParse : monthsParse,
+ shortMonthsParse : monthsParse,
+
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
+ monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
+
+ // копия предыдущего
+ monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
+
+ // полные названия с падежами
+ monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
+
+ // Выражение, которое соотвествует только сокращённым формам
+ monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY г.',
+ LLL : 'D MMMM YYYY г., H:mm',
+ LLLL : 'dddd, D MMMM YYYY г., H:mm'
+ },
+ calendar : {
+ sameDay: '[Сегодня в] LT',
+ nextDay: '[Завтра в] LT',
+ lastDay: '[Вчера в] LT',
+ nextWeek: function (now) {
+ if (now.week() !== this.week()) {
+ switch (this.day()) {
+ case 0:
+ return '[В следующее] dddd [в] LT';
+ case 1:
+ case 2:
+ case 4:
+ return '[В следующий] dddd [в] LT';
+ case 3:
+ case 5:
+ case 6:
+ return '[В следующую] dddd [в] LT';
+ }
+ } else {
+ if (this.day() === 2) {
+ return '[Во] dddd [в] LT';
+ } else {
+ return '[В] dddd [в] LT';
+ }
+ }
+ },
+ lastWeek: function (now) {
+ if (now.week() !== this.week()) {
+ switch (this.day()) {
+ case 0:
+ return '[В прошлое] dddd [в] LT';
+ case 1:
+ case 2:
+ case 4:
+ return '[В прошлый] dddd [в] LT';
+ case 3:
+ case 5:
+ case 6:
+ return '[В прошлую] dddd [в] LT';
+ }
+ } else {
+ if (this.day() === 2) {
+ return '[Во] dddd [в] LT';
+ } else {
+ return '[В] dddd [в] LT';
+ }
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'через %s',
+ past : '%s назад',
+ s : 'несколько секунд',
+ ss : relativeTimeWithPlural,
+ m : relativeTimeWithPlural,
+ mm : relativeTimeWithPlural,
+ h : 'час',
+ hh : relativeTimeWithPlural,
+ d : 'день',
+ dd : relativeTimeWithPlural,
+ M : 'месяц',
+ MM : relativeTimeWithPlural,
+ y : 'год',
+ yy : relativeTimeWithPlural
+ },
+ meridiemParse: /ночи|утра|дня|вечера/i,
+ isPM : function (input) {
+ return /^(дня|вечера)$/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'ночи';
+ } else if (hour < 12) {
+ return 'утра';
+ } else if (hour < 17) {
+ return 'дня';
+ } else {
+ return 'вечера';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'M':
+ case 'd':
+ case 'DDD':
+ return number + '-й';
+ case 'D':
+ return number + '-го';
+ case 'w':
+ case 'W':
+ return number + '-я';
+ default:
+ return number;
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return ru;
+
+ })));
+
+
+/***/ }),
+/* 337 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = [
+ 'جنوري',
+ 'فيبروري',
+ 'مارچ',
+ 'اپريل',
+ 'مئي',
+ 'جون',
+ 'جولاءِ',
+ 'آگسٽ',
+ 'سيپٽمبر',
+ 'آڪٽوبر',
+ 'نومبر',
+ 'ڊسمبر'
+ ];
+ var days = [
+ 'آچر',
+ 'سومر',
+ 'اڱارو',
+ 'اربع',
+ 'خميس',
+ 'جمع',
+ 'ڇنڇر'
+ ];
+
+ var sd = moment.defineLocale('sd', {
+ months : months,
+ monthsShort : months,
+ weekdays : days,
+ weekdaysShort : days,
+ weekdaysMin : days,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd، D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /صبح|شام/,
+ isPM : function (input) {
+ return 'شام' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'صبح';
+ }
+ return 'شام';
+ },
+ calendar : {
+ sameDay : '[اڄ] LT',
+ nextDay : '[سڀاڻي] LT',
+ nextWeek : 'dddd [اڳين هفتي تي] LT',
+ lastDay : '[ڪالهه] LT',
+ lastWeek : '[گزريل هفتي] dddd [تي] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s پوء',
+ past : '%s اڳ',
+ s : 'چند سيڪنڊ',
+ ss : '%d سيڪنڊ',
+ m : 'هڪ منٽ',
+ mm : '%d منٽ',
+ h : 'هڪ ڪلاڪ',
+ hh : '%d ڪلاڪ',
+ d : 'هڪ ڏينهن',
+ dd : '%d ڏينهن',
+ M : 'هڪ مهينو',
+ MM : '%d مهينا',
+ y : 'هڪ سال',
+ yy : '%d سال'
+ },
+ preparse: function (string) {
+ return string.replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/,/g, '،');
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return sd;
+
+ })));
+
+
+/***/ }),
+/* 338 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var se = moment.defineLocale('se', {
+ months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
+ monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
+ weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
+ weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
+ weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'MMMM D. [b.] YYYY',
+ LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
+ LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
+ },
+ calendar : {
+ sameDay: '[otne ti] LT',
+ nextDay: '[ihttin ti] LT',
+ nextWeek: 'dddd [ti] LT',
+ lastDay: '[ikte ti] LT',
+ lastWeek: '[ovddit] dddd [ti] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : '%s geažes',
+ past : 'maŋit %s',
+ s : 'moadde sekunddat',
+ ss: '%d sekunddat',
+ m : 'okta minuhta',
+ mm : '%d minuhtat',
+ h : 'okta diimmu',
+ hh : '%d diimmut',
+ d : 'okta beaivi',
+ dd : '%d beaivvit',
+ M : 'okta mánnu',
+ MM : '%d mánut',
+ y : 'okta jahki',
+ yy : '%d jagit'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return se;
+
+ })));
+
+
+/***/ }),
+/* 339 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ /*jshint -W100*/
+ var si = moment.defineLocale('si', {
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'a h:mm',
+ LTS : 'a h:mm:ss',
+ L : 'YYYY/MM/DD',
+ LL : 'YYYY MMMM D',
+ LLL : 'YYYY MMMM D, a h:mm',
+ LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
+ },
+ calendar : {
+ sameDay : '[අද] LT[ට]',
+ nextDay : '[හෙට] LT[ට]',
+ nextWeek : 'dddd LT[ට]',
+ lastDay : '[ඊයේ] LT[ට]',
+ lastWeek : '[පසුගිය] dddd LT[ට]',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%sකින්',
+ past : '%sකට පෙර',
+ s : 'තත්පර කිහිපය',
+ ss : 'තත්පර %d',
+ m : 'මිනිත්තුව',
+ mm : 'මිනිත්තු %d',
+ h : 'පැය',
+ hh : 'පැය %d',
+ d : 'දිනය',
+ dd : 'දින %d',
+ M : 'මාසය',
+ MM : 'මාස %d',
+ y : 'වසර',
+ yy : 'වසර %d'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
+ ordinal : function (number) {
+ return number + ' වැනි';
+ },
+ meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
+ isPM : function (input) {
+ return input === 'ප.ව.' || input === 'පස් වරු';
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'ප.ව.' : 'පස් වරු';
+ } else {
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
+ }
+ }
+ });
+
+ return si;
+
+ })));
+
+
+/***/ }),
+/* 340 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
+ monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
+ function plural(n) {
+ return (n > 1) && (n < 5);
+ }
+ function translate(number, withoutSuffix, key, isFuture) {
+ var result = number + ' ';
+ switch (key) {
+ case 's': // a few seconds / in a few seconds / a few seconds ago
+ return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'sekundy' : 'sekúnd');
+ } else {
+ return result + 'sekundami';
+ }
+ break;
+ case 'm': // a minute / in a minute / a minute ago
+ return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'minúty' : 'minút');
+ } else {
+ return result + 'minútami';
+ }
+ break;
+ case 'h': // an hour / in an hour / an hour ago
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'hodiny' : 'hodín');
+ } else {
+ return result + 'hodinami';
+ }
+ break;
+ case 'd': // a day / in a day / a day ago
+ return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
+ case 'dd': // 9 days / in 9 days / 9 days ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'dni' : 'dní');
+ } else {
+ return result + 'dňami';
+ }
+ break;
+ case 'M': // a month / in a month / a month ago
+ return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
+ case 'MM': // 9 months / in 9 months / 9 months ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'mesiace' : 'mesiacov');
+ } else {
+ return result + 'mesiacmi';
+ }
+ break;
+ case 'y': // a year / in a year / a year ago
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
+ case 'yy': // 9 years / in 9 years / 9 years ago
+ if (withoutSuffix || isFuture) {
+ return result + (plural(number) ? 'roky' : 'rokov');
+ } else {
+ return result + 'rokmi';
+ }
+ break;
+ }
+ }
+
+ var sk = moment.defineLocale('sk', {
+ months : months,
+ monthsShort : monthsShort,
+ weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
+ weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
+ weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
+ longDateFormat : {
+ LT: 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd D. MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay: '[dnes o] LT',
+ nextDay: '[zajtra o] LT',
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[v nedeľu o] LT';
+ case 1:
+ case 2:
+ return '[v] dddd [o] LT';
+ case 3:
+ return '[v stredu o] LT';
+ case 4:
+ return '[vo štvrtok o] LT';
+ case 5:
+ return '[v piatok o] LT';
+ case 6:
+ return '[v sobotu o] LT';
+ }
+ },
+ lastDay: '[včera o] LT',
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[minulú nedeľu o] LT';
+ case 1:
+ case 2:
+ return '[minulý] dddd [o] LT';
+ case 3:
+ return '[minulú stredu o] LT';
+ case 4:
+ case 5:
+ return '[minulý] dddd [o] LT';
+ case 6:
+ return '[minulú sobotu o] LT';
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'pred %s',
+ s : translate,
+ ss : translate,
+ m : translate,
+ mm : translate,
+ h : translate,
+ hh : translate,
+ d : translate,
+ dd : translate,
+ M : translate,
+ MM : translate,
+ y : translate,
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return sk;
+
+ })));
+
+
+/***/ }),
+/* 341 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var result = number + ' ';
+ switch (key) {
+ case 's':
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
+ case 'ss':
+ if (number === 1) {
+ result += withoutSuffix ? 'sekundo' : 'sekundi';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
+ } else if (number < 5) {
+ result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
+ } else {
+ result += withoutSuffix || isFuture ? 'sekund' : 'sekund';
+ }
+ return result;
+ case 'm':
+ return withoutSuffix ? 'ena minuta' : 'eno minuto';
+ case 'mm':
+ if (number === 1) {
+ result += withoutSuffix ? 'minuta' : 'minuto';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
+ } else if (number < 5) {
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
+ } else {
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
+ }
+ return result;
+ case 'h':
+ return withoutSuffix ? 'ena ura' : 'eno uro';
+ case 'hh':
+ if (number === 1) {
+ result += withoutSuffix ? 'ura' : 'uro';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
+ } else if (number < 5) {
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
+ } else {
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
+ }
+ return result;
+ case 'd':
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
+ case 'dd':
+ if (number === 1) {
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
+ } else {
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
+ }
+ return result;
+ case 'M':
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
+ case 'MM':
+ if (number === 1) {
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
+ } else if (number < 5) {
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
+ } else {
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
+ }
+ return result;
+ case 'y':
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
+ case 'yy':
+ if (number === 1) {
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
+ } else if (number === 2) {
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
+ } else if (number < 5) {
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
+ } else {
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
+ }
+ return result;
+ }
+ }
+
+ var sl = moment.defineLocale('sl', {
+ months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
+ weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
+ weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM YYYY',
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar : {
+ sameDay : '[danes ob] LT',
+ nextDay : '[jutri ob] LT',
+
+ nextWeek : function () {
+ switch (this.day()) {
+ case 0:
+ return '[v] [nedeljo] [ob] LT';
+ case 3:
+ return '[v] [sredo] [ob] LT';
+ case 6:
+ return '[v] [soboto] [ob] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[v] dddd [ob] LT';
+ }
+ },
+ lastDay : '[včeraj ob] LT',
+ lastWeek : function () {
+ switch (this.day()) {
+ case 0:
+ return '[prejšnjo] [nedeljo] [ob] LT';
+ case 3:
+ return '[prejšnjo] [sredo] [ob] LT';
+ case 6:
+ return '[prejšnjo] [soboto] [ob] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[prejšnji] dddd [ob] LT';
+ }
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'čez %s',
+ past : 'pred %s',
+ s : processRelativeTime,
+ ss : processRelativeTime,
+ m : processRelativeTime,
+ mm : processRelativeTime,
+ h : processRelativeTime,
+ hh : processRelativeTime,
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return sl;
+
+ })));
+
+
+/***/ }),
+/* 342 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var sq = moment.defineLocale('sq', {
+ months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
+ monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
+ weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
+ weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
+ weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
+ weekdaysParseExact : true,
+ meridiemParse: /PD|MD/,
+ isPM: function (input) {
+ return input.charAt(0) === 'M';
+ },
+ meridiem : function (hours, minutes, isLower) {
+ return hours < 12 ? 'PD' : 'MD';
+ },
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Sot në] LT',
+ nextDay : '[Nesër në] LT',
+ nextWeek : 'dddd [në] LT',
+ lastDay : '[Dje në] LT',
+ lastWeek : 'dddd [e kaluar në] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'në %s',
+ past : '%s më parë',
+ s : 'disa sekonda',
+ ss : '%d sekonda',
+ m : 'një minutë',
+ mm : '%d minuta',
+ h : 'një orë',
+ hh : '%d orë',
+ d : 'një ditë',
+ dd : '%d ditë',
+ M : 'një muaj',
+ MM : '%d muaj',
+ y : 'një vit',
+ yy : '%d vite'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return sq;
+
+ })));
+
+
+/***/ }),
+/* 343 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var translator = {
+ words: { //Different grammatical cases
+ ss: ['sekunda', 'sekunde', 'sekundi'],
+ m: ['jedan minut', 'jedne minute'],
+ mm: ['minut', 'minute', 'minuta'],
+ h: ['jedan sat', 'jednog sata'],
+ hh: ['sat', 'sata', 'sati'],
+ dd: ['dan', 'dana', 'dana'],
+ MM: ['mesec', 'meseca', 'meseci'],
+ yy: ['godina', 'godine', 'godina']
+ },
+ correctGrammaticalCase: function (number, wordKey) {
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
+ },
+ translate: function (number, withoutSuffix, key) {
+ var wordKey = translator.words[key];
+ if (key.length === 1) {
+ return withoutSuffix ? wordKey[0] : wordKey[1];
+ } else {
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
+ }
+ }
+ };
+
+ var sr = moment.defineLocale('sr', {
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
+ monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
+ monthsParseExact: true,
+ weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
+ weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat: {
+ LT: 'H:mm',
+ LTS : 'H:mm:ss',
+ L: 'DD.MM.YYYY',
+ LL: 'D. MMMM YYYY',
+ LLL: 'D. MMMM YYYY H:mm',
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar: {
+ sameDay: '[danas u] LT',
+ nextDay: '[sutra u] LT',
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[u] [nedelju] [u] LT';
+ case 3:
+ return '[u] [sredu] [u] LT';
+ case 6:
+ return '[u] [subotu] [u] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[u] dddd [u] LT';
+ }
+ },
+ lastDay : '[juče u] LT',
+ lastWeek : function () {
+ var lastWeekDays = [
+ '[prošle] [nedelje] [u] LT',
+ '[prošlog] [ponedeljka] [u] LT',
+ '[prošlog] [utorka] [u] LT',
+ '[prošle] [srede] [u] LT',
+ '[prošlog] [četvrtka] [u] LT',
+ '[prošlog] [petka] [u] LT',
+ '[prošle] [subote] [u] LT'
+ ];
+ return lastWeekDays[this.day()];
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'za %s',
+ past : 'pre %s',
+ s : 'nekoliko sekundi',
+ ss : translator.translate,
+ m : translator.translate,
+ mm : translator.translate,
+ h : translator.translate,
+ hh : translator.translate,
+ d : 'dan',
+ dd : translator.translate,
+ M : 'mesec',
+ MM : translator.translate,
+ y : 'godinu',
+ yy : translator.translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return sr;
+
+ })));
+
+
+/***/ }),
+/* 344 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var translator = {
+ words: { //Different grammatical cases
+ ss: ['секунда', 'секунде', 'секунди'],
+ m: ['један минут', 'једне минуте'],
+ mm: ['минут', 'минуте', 'минута'],
+ h: ['један сат', 'једног сата'],
+ hh: ['сат', 'сата', 'сати'],
+ dd: ['дан', 'дана', 'дана'],
+ MM: ['месец', 'месеца', 'месеци'],
+ yy: ['година', 'године', 'година']
+ },
+ correctGrammaticalCase: function (number, wordKey) {
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
+ },
+ translate: function (number, withoutSuffix, key) {
+ var wordKey = translator.words[key];
+ if (key.length === 1) {
+ return withoutSuffix ? wordKey[0] : wordKey[1];
+ } else {
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
+ }
+ }
+ };
+
+ var srCyrl = moment.defineLocale('sr-cyrl', {
+ months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
+ monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
+ monthsParseExact: true,
+ weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
+ weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
+ weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat: {
+ LT: 'H:mm',
+ LTS : 'H:mm:ss',
+ L: 'DD.MM.YYYY',
+ LL: 'D. MMMM YYYY',
+ LLL: 'D. MMMM YYYY H:mm',
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
+ },
+ calendar: {
+ sameDay: '[данас у] LT',
+ nextDay: '[сутра у] LT',
+ nextWeek: function () {
+ switch (this.day()) {
+ case 0:
+ return '[у] [недељу] [у] LT';
+ case 3:
+ return '[у] [среду] [у] LT';
+ case 6:
+ return '[у] [суботу] [у] LT';
+ case 1:
+ case 2:
+ case 4:
+ case 5:
+ return '[у] dddd [у] LT';
+ }
+ },
+ lastDay : '[јуче у] LT',
+ lastWeek : function () {
+ var lastWeekDays = [
+ '[прошле] [недеље] [у] LT',
+ '[прошлог] [понедељка] [у] LT',
+ '[прошлог] [уторка] [у] LT',
+ '[прошле] [среде] [у] LT',
+ '[прошлог] [четвртка] [у] LT',
+ '[прошлог] [петка] [у] LT',
+ '[прошле] [суботе] [у] LT'
+ ];
+ return lastWeekDays[this.day()];
+ },
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'за %s',
+ past : 'пре %s',
+ s : 'неколико секунди',
+ ss : translator.translate,
+ m : translator.translate,
+ mm : translator.translate,
+ h : translator.translate,
+ hh : translator.translate,
+ d : 'дан',
+ dd : translator.translate,
+ M : 'месец',
+ MM : translator.translate,
+ y : 'годину',
+ yy : translator.translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return srCyrl;
+
+ })));
+
+
+/***/ }),
+/* 345 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ss = moment.defineLocale('ss', {
+ months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
+ monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
+ weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
+ weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
+ weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[Namuhla nga] LT',
+ nextDay : '[Kusasa nga] LT',
+ nextWeek : 'dddd [nga] LT',
+ lastDay : '[Itolo nga] LT',
+ lastWeek : 'dddd [leliphelile] [nga] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'nga %s',
+ past : 'wenteka nga %s',
+ s : 'emizuzwana lomcane',
+ ss : '%d mzuzwana',
+ m : 'umzuzu',
+ mm : '%d emizuzu',
+ h : 'lihora',
+ hh : '%d emahora',
+ d : 'lilanga',
+ dd : '%d emalanga',
+ M : 'inyanga',
+ MM : '%d tinyanga',
+ y : 'umnyaka',
+ yy : '%d iminyaka'
+ },
+ meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 11) {
+ return 'ekuseni';
+ } else if (hours < 15) {
+ return 'emini';
+ } else if (hours < 19) {
+ return 'entsambama';
+ } else {
+ return 'ebusuku';
+ }
+ },
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'ekuseni') {
+ return hour;
+ } else if (meridiem === 'emini') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
+ if (hour === 0) {
+ return 0;
+ }
+ return hour + 12;
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}/,
+ ordinal : '%d',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return ss;
+
+ })));
+
+
+/***/ }),
+/* 346 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var sv = moment.defineLocale('sv', {
+ months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
+ weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
+ weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
+ weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY-MM-DD',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY [kl.] HH:mm',
+ LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
+ lll : 'D MMM YYYY HH:mm',
+ llll : 'ddd D MMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Idag] LT',
+ nextDay: '[Imorgon] LT',
+ lastDay: '[Igår] LT',
+ nextWeek: '[På] dddd LT',
+ lastWeek: '[I] dddd[s] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'om %s',
+ past : 'för %s sedan',
+ s : 'några sekunder',
+ ss : '%d sekunder',
+ m : 'en minut',
+ mm : '%d minuter',
+ h : 'en timme',
+ hh : '%d timmar',
+ d : 'en dag',
+ dd : '%d dagar',
+ M : 'en månad',
+ MM : '%d månader',
+ y : 'ett år',
+ yy : '%d år'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'e' :
+ (b === 1) ? 'a' :
+ (b === 2) ? 'a' :
+ (b === 3) ? 'e' : 'e';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return sv;
+
+ })));
+
+
+/***/ }),
+/* 347 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var sw = moment.defineLocale('sw', {
+ months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
+ monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
+ weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
+ weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
+ weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[leo saa] LT',
+ nextDay : '[kesho saa] LT',
+ nextWeek : '[wiki ijayo] dddd [saat] LT',
+ lastDay : '[jana] LT',
+ lastWeek : '[wiki iliyopita] dddd [saat] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s baadaye',
+ past : 'tokea %s',
+ s : 'hivi punde',
+ ss : 'sekunde %d',
+ m : 'dakika moja',
+ mm : 'dakika %d',
+ h : 'saa limoja',
+ hh : 'masaa %d',
+ d : 'siku moja',
+ dd : 'masiku %d',
+ M : 'mwezi mmoja',
+ MM : 'miezi %d',
+ y : 'mwaka mmoja',
+ yy : 'miaka %d'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return sw;
+
+ })));
+
+
+/***/ }),
+/* 348 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var symbolMap = {
+ '1': '௧',
+ '2': '௨',
+ '3': '௩',
+ '4': '௪',
+ '5': '௫',
+ '6': '௬',
+ '7': '௭',
+ '8': '௮',
+ '9': '௯',
+ '0': '௦'
+ }, numberMap = {
+ '௧': '1',
+ '௨': '2',
+ '௩': '3',
+ '௪': '4',
+ '௫': '5',
+ '௬': '6',
+ '௭': '7',
+ '௮': '8',
+ '௯': '9',
+ '௦': '0'
+ };
+
+ var ta = moment.defineLocale('ta', {
+ months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
+ monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
+ weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
+ weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
+ weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, HH:mm',
+ LLLL : 'dddd, D MMMM YYYY, HH:mm'
+ },
+ calendar : {
+ sameDay : '[இன்று] LT',
+ nextDay : '[நாளை] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[நேற்று] LT',
+ lastWeek : '[கடந்த வாரம்] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s இல்',
+ past : '%s முன்',
+ s : 'ஒரு சில விநாடிகள்',
+ ss : '%d விநாடிகள்',
+ m : 'ஒரு நிமிடம்',
+ mm : '%d நிமிடங்கள்',
+ h : 'ஒரு மணி நேரம்',
+ hh : '%d மணி நேரம்',
+ d : 'ஒரு நாள்',
+ dd : '%d நாட்கள்',
+ M : 'ஒரு மாதம்',
+ MM : '%d மாதங்கள்',
+ y : 'ஒரு வருடம்',
+ yy : '%d ஆண்டுகள்'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}வது/,
+ ordinal : function (number) {
+ return number + 'வது';
+ },
+ preparse: function (string) {
+ return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
+ return numberMap[match];
+ });
+ },
+ postformat: function (string) {
+ return string.replace(/\d/g, function (match) {
+ return symbolMap[match];
+ });
+ },
+ // refer http://ta.wikipedia.org/s/1er1
+ meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 2) {
+ return ' யாமம்';
+ } else if (hour < 6) {
+ return ' வைகறை'; // வைகறை
+ } else if (hour < 10) {
+ return ' காலை'; // காலை
+ } else if (hour < 14) {
+ return ' நண்பகல்'; // நண்பகல்
+ } else if (hour < 18) {
+ return ' எற்பாடு'; // எற்பாடு
+ } else if (hour < 22) {
+ return ' மாலை'; // மாலை
+ } else {
+ return ' யாமம்';
+ }
+ },
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'யாமம்') {
+ return hour < 2 ? hour : hour + 12;
+ } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
+ return hour;
+ } else if (meridiem === 'நண்பகல்') {
+ return hour >= 10 ? hour : hour + 12;
+ } else {
+ return hour + 12;
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ta;
+
+ })));
+
+
+/***/ }),
+/* 349 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var te = moment.defineLocale('te', {
+ months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
+ monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
+ weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
+ weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
+ longDateFormat : {
+ LT : 'A h:mm',
+ LTS : 'A h:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY, A h:mm',
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
+ },
+ calendar : {
+ sameDay : '[నేడు] LT',
+ nextDay : '[రేపు] LT',
+ nextWeek : 'dddd, LT',
+ lastDay : '[నిన్న] LT',
+ lastWeek : '[గత] dddd, LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s లో',
+ past : '%s క్రితం',
+ s : 'కొన్ని క్షణాలు',
+ ss : '%d సెకన్లు',
+ m : 'ఒక నిమిషం',
+ mm : '%d నిమిషాలు',
+ h : 'ఒక గంట',
+ hh : '%d గంటలు',
+ d : 'ఒక రోజు',
+ dd : '%d రోజులు',
+ M : 'ఒక నెల',
+ MM : '%d నెలలు',
+ y : 'ఒక సంవత్సరం',
+ yy : '%d సంవత్సరాలు'
+ },
+ dayOfMonthOrdinalParse : /\d{1,2}వ/,
+ ordinal : '%dవ',
+ meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'రాత్రి') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'ఉదయం') {
+ return hour;
+ } else if (meridiem === 'మధ్యాహ్నం') {
+ return hour >= 10 ? hour : hour + 12;
+ } else if (meridiem === 'సాయంత్రం') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'రాత్రి';
+ } else if (hour < 10) {
+ return 'ఉదయం';
+ } else if (hour < 17) {
+ return 'మధ్యాహ్నం';
+ } else if (hour < 20) {
+ return 'సాయంత్రం';
+ } else {
+ return 'రాత్రి';
+ }
+ },
+ week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return te;
+
+ })));
+
+
+/***/ }),
+/* 350 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var tet = moment.defineLocale('tet', {
+ months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
+ monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
+ weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
+ weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
+ weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Ohin iha] LT',
+ nextDay: '[Aban iha] LT',
+ nextWeek: 'dddd [iha] LT',
+ lastDay: '[Horiseik iha] LT',
+ lastWeek: 'dddd [semana kotuk] [iha] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'iha %s',
+ past : '%s liuba',
+ s : 'minutu balun',
+ ss : 'minutu %d',
+ m : 'minutu ida',
+ mm : 'minutu %d',
+ h : 'oras ida',
+ hh : 'oras %d',
+ d : 'loron ida',
+ dd : 'loron %d',
+ M : 'fulan ida',
+ MM : 'fulan %d',
+ y : 'tinan ida',
+ yy : 'tinan %d'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return tet;
+
+ })));
+
+
+/***/ }),
+/* 351 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var suffixes = {
+ 0: '-ум',
+ 1: '-ум',
+ 2: '-юм',
+ 3: '-юм',
+ 4: '-ум',
+ 5: '-ум',
+ 6: '-ум',
+ 7: '-ум',
+ 8: '-ум',
+ 9: '-ум',
+ 10: '-ум',
+ 12: '-ум',
+ 13: '-ум',
+ 20: '-ум',
+ 30: '-юм',
+ 40: '-ум',
+ 50: '-ум',
+ 60: '-ум',
+ 70: '-ум',
+ 80: '-ум',
+ 90: '-ум',
+ 100: '-ум'
+ };
+
+ var tg = moment.defineLocale('tg', {
+ months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
+ monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
+ weekdays : 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
+ weekdaysShort : 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
+ weekdaysMin : 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[Имрӯз соати] LT',
+ nextDay : '[Пагоҳ соати] LT',
+ lastDay : '[Дирӯз соати] LT',
+ nextWeek : 'dddd[и] [ҳафтаи оянда соати] LT',
+ lastWeek : 'dddd[и] [ҳафтаи гузашта соати] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'баъди %s',
+ past : '%s пеш',
+ s : 'якчанд сония',
+ m : 'як дақиқа',
+ mm : '%d дақиқа',
+ h : 'як соат',
+ hh : '%d соат',
+ d : 'як рӯз',
+ dd : '%d рӯз',
+ M : 'як моҳ',
+ MM : '%d моҳ',
+ y : 'як сол',
+ yy : '%d сол'
+ },
+ meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === 'шаб') {
+ return hour < 4 ? hour : hour + 12;
+ } else if (meridiem === 'субҳ') {
+ return hour;
+ } else if (meridiem === 'рӯз') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === 'бегоҳ') {
+ return hour + 12;
+ }
+ },
+ meridiem: function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'шаб';
+ } else if (hour < 11) {
+ return 'субҳ';
+ } else if (hour < 16) {
+ return 'рӯз';
+ } else if (hour < 19) {
+ return 'бегоҳ';
+ } else {
+ return 'шаб';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
+ ordinal: function (number) {
+ var a = number % 10,
+ b = number >= 100 ? 100 : null;
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1th is the first week of the year.
+ }
+ });
+
+ return tg;
+
+ })));
+
+
+/***/ }),
+/* 352 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var th = moment.defineLocale('th', {
+ months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
+ monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
+ monthsParseExact: true,
+ weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
+ weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
+ weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'H:mm',
+ LTS : 'H:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY เวลา H:mm',
+ LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
+ },
+ meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
+ isPM: function (input) {
+ return input === 'หลังเที่ยง';
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'ก่อนเที่ยง';
+ } else {
+ return 'หลังเที่ยง';
+ }
+ },
+ calendar : {
+ sameDay : '[วันนี้ เวลา] LT',
+ nextDay : '[พรุ่งนี้ เวลา] LT',
+ nextWeek : 'dddd[หน้า เวลา] LT',
+ lastDay : '[เมื่อวานนี้ เวลา] LT',
+ lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'อีก %s',
+ past : '%sที่แล้ว',
+ s : 'ไม่กี่วินาที',
+ ss : '%d วินาที',
+ m : '1 นาที',
+ mm : '%d นาที',
+ h : '1 ชั่วโมง',
+ hh : '%d ชั่วโมง',
+ d : '1 วัน',
+ dd : '%d วัน',
+ M : '1 เดือน',
+ MM : '%d เดือน',
+ y : '1 ปี',
+ yy : '%d ปี'
+ }
+ });
+
+ return th;
+
+ })));
+
+
+/***/ }),
+/* 353 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var tlPh = moment.defineLocale('tl-ph', {
+ months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
+ monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
+ weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
+ weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
+ weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'MM/D/YYYY',
+ LL : 'MMMM D, YYYY',
+ LLL : 'MMMM D, YYYY HH:mm',
+ LLLL : 'dddd, MMMM DD, YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: 'LT [ngayong araw]',
+ nextDay: '[Bukas ng] LT',
+ nextWeek: 'LT [sa susunod na] dddd',
+ lastDay: 'LT [kahapon]',
+ lastWeek: 'LT [noong nakaraang] dddd',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'sa loob ng %s',
+ past : '%s ang nakalipas',
+ s : 'ilang segundo',
+ ss : '%d segundo',
+ m : 'isang minuto',
+ mm : '%d minuto',
+ h : 'isang oras',
+ hh : '%d oras',
+ d : 'isang araw',
+ dd : '%d araw',
+ M : 'isang buwan',
+ MM : '%d buwan',
+ y : 'isang taon',
+ yy : '%d taon'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}/,
+ ordinal : function (number) {
+ return number;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return tlPh;
+
+ })));
+
+
+/***/ }),
+/* 354 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
+
+ function translateFuture(output) {
+ var time = output;
+ time = (output.indexOf('jaj') !== -1) ?
+ time.slice(0, -3) + 'leS' :
+ (output.indexOf('jar') !== -1) ?
+ time.slice(0, -3) + 'waQ' :
+ (output.indexOf('DIS') !== -1) ?
+ time.slice(0, -3) + 'nem' :
+ time + ' pIq';
+ return time;
+ }
+
+ function translatePast(output) {
+ var time = output;
+ time = (output.indexOf('jaj') !== -1) ?
+ time.slice(0, -3) + 'Hu’' :
+ (output.indexOf('jar') !== -1) ?
+ time.slice(0, -3) + 'wen' :
+ (output.indexOf('DIS') !== -1) ?
+ time.slice(0, -3) + 'ben' :
+ time + ' ret';
+ return time;
+ }
+
+ function translate(number, withoutSuffix, string, isFuture) {
+ var numberNoun = numberAsNoun(number);
+ switch (string) {
+ case 'ss':
+ return numberNoun + ' lup';
+ case 'mm':
+ return numberNoun + ' tup';
+ case 'hh':
+ return numberNoun + ' rep';
+ case 'dd':
+ return numberNoun + ' jaj';
+ case 'MM':
+ return numberNoun + ' jar';
+ case 'yy':
+ return numberNoun + ' DIS';
+ }
+ }
+
+ function numberAsNoun(number) {
+ var hundred = Math.floor((number % 1000) / 100),
+ ten = Math.floor((number % 100) / 10),
+ one = number % 10,
+ word = '';
+ if (hundred > 0) {
+ word += numbersNouns[hundred] + 'vatlh';
+ }
+ if (ten > 0) {
+ word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
+ }
+ if (one > 0) {
+ word += ((word !== '') ? ' ' : '') + numbersNouns[one];
+ }
+ return (word === '') ? 'pagh' : word;
+ }
+
+ var tlh = moment.defineLocale('tlh', {
+ months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
+ monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
+ weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
+ weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[DaHjaj] LT',
+ nextDay: '[wa’leS] LT',
+ nextWeek: 'LLL',
+ lastDay: '[wa’Hu’] LT',
+ lastWeek: 'LLL',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : translateFuture,
+ past : translatePast,
+ s : 'puS lup',
+ ss : translate,
+ m : 'wa’ tup',
+ mm : translate,
+ h : 'wa’ rep',
+ hh : translate,
+ d : 'wa’ jaj',
+ dd : translate,
+ M : 'wa’ jar',
+ MM : translate,
+ y : 'wa’ DIS',
+ yy : translate
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return tlh;
+
+ })));
+
+
+/***/ }),
+/* 355 */
+/***/ (function(module, exports, __webpack_require__) {
+
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+ var suffixes = {
+ 1: '\'inci',
+ 5: '\'inci',
+ 8: '\'inci',
+ 70: '\'inci',
+ 80: '\'inci',
+ 2: '\'nci',
+ 7: '\'nci',
+ 20: '\'nci',
+ 50: '\'nci',
+ 3: '\'üncü',
+ 4: '\'üncü',
+ 100: '\'üncü',
+ 6: '\'ncı',
+ 9: '\'uncu',
+ 10: '\'uncu',
+ 30: '\'uncu',
+ 60: '\'ıncı',
+ 90: '\'ıncı'
+ };
+
+ var tr = moment.defineLocale('tr', {
+ months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
+ monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
+ weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
+ weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
+ weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[bugün saat] LT',
+ nextDay : '[yarın saat] LT',
+ nextWeek : '[gelecek] dddd [saat] LT',
+ lastDay : '[dün] LT',
+ lastWeek : '[geçen] dddd [saat] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s sonra',
+ past : '%s önce',
+ s : 'birkaç saniye',
+ ss : '%d saniye',
+ m : 'bir dakika',
+ mm : '%d dakika',
+ h : 'bir saat',
+ hh : '%d saat',
+ d : 'bir gün',
+ dd : '%d gün',
+ M : 'bir ay',
+ MM : '%d ay',
+ y : 'bir yıl',
+ yy : '%d yıl'
+ },
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'Do':
+ case 'DD':
+ return number;
+ default:
+ if (number === 0) { // special case for zero
+ return number + '\'ıncı';
+ }
+ var a = number % 10,
+ b = number % 100 - a,
+ c = number >= 100 ? 100 : null;
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return tr;
+
+ })));
+
+
+/***/ }),
+/* 356 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
+ // This is currently too difficult (maybe even impossible) to add.
+ var tzl = moment.defineLocale('tzl', {
+ months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
+ monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
+ weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
+ weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
+ weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
+ longDateFormat : {
+ LT : 'HH.mm',
+ LTS : 'HH.mm.ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D. MMMM [dallas] YYYY',
+ LLL : 'D. MMMM [dallas] YYYY HH.mm',
+ LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
+ },
+ meridiemParse: /d\'o|d\'a/i,
+ isPM : function (input) {
+ return 'd\'o' === input.toLowerCase();
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'd\'o' : 'D\'O';
+ } else {
+ return isLower ? 'd\'a' : 'D\'A';
+ }
+ },
+ calendar : {
+ sameDay : '[oxhi à] LT',
+ nextDay : '[demà à] LT',
+ nextWeek : 'dddd [à] LT',
+ lastDay : '[ieiri à] LT',
+ lastWeek : '[sür el] dddd [lasteu à] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'osprei %s',
+ past : 'ja%s',
+ s : processRelativeTime,
+ ss : processRelativeTime,
+ m : processRelativeTime,
+ mm : processRelativeTime,
+ h : processRelativeTime,
+ hh : processRelativeTime,
+ d : processRelativeTime,
+ dd : processRelativeTime,
+ M : processRelativeTime,
+ MM : processRelativeTime,
+ y : processRelativeTime,
+ yy : processRelativeTime
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
+ ordinal : '%d.',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
+ var format = {
+ 's': ['viensas secunds', '\'iensas secunds'],
+ 'ss': [number + ' secunds', '' + number + ' secunds'],
+ 'm': ['\'n míut', '\'iens míut'],
+ 'mm': [number + ' míuts', '' + number + ' míuts'],
+ 'h': ['\'n þora', '\'iensa þora'],
+ 'hh': [number + ' þoras', '' + number + ' þoras'],
+ 'd': ['\'n ziua', '\'iensa ziua'],
+ 'dd': [number + ' ziuas', '' + number + ' ziuas'],
+ 'M': ['\'n mes', '\'iens mes'],
+ 'MM': [number + ' mesen', '' + number + ' mesen'],
+ 'y': ['\'n ar', '\'iens ar'],
+ 'yy': [number + ' ars', '' + number + ' ars']
+ };
+ return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
+ }
+
+ return tzl;
+
+ })));
+
+
+/***/ }),
+/* 357 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var tzm = moment.defineLocale('tzm', {
+ months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
+ monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
+ weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+ weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+ weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
+ nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
+ nextWeek: 'dddd [ⴴ] LT',
+ lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
+ lastWeek: 'dddd [ⴴ] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
+ past : 'ⵢⴰⵏ %s',
+ s : 'ⵉⵎⵉⴽ',
+ ss : '%d ⵉⵎⵉⴽ',
+ m : 'ⵎⵉⵏⵓⴺ',
+ mm : '%d ⵎⵉⵏⵓⴺ',
+ h : 'ⵙⴰⵄⴰ',
+ hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
+ d : 'ⴰⵙⵙ',
+ dd : '%d oⵙⵙⴰⵏ',
+ M : 'ⴰⵢoⵓⵔ',
+ MM : '%d ⵉⵢⵢⵉⵔⵏ',
+ y : 'ⴰⵙⴳⴰⵙ',
+ yy : '%d ⵉⵙⴳⴰⵙⵏ'
+ },
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return tzm;
+
+ })));
+
+
+/***/ }),
+/* 358 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var tzmLatn = moment.defineLocale('tzm-latn', {
+ months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
+ monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
+ weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+ weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+ weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[asdkh g] LT',
+ nextDay: '[aska g] LT',
+ nextWeek: 'dddd [g] LT',
+ lastDay: '[assant g] LT',
+ lastWeek: 'dddd [g] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'dadkh s yan %s',
+ past : 'yan %s',
+ s : 'imik',
+ ss : '%d imik',
+ m : 'minuḍ',
+ mm : '%d minuḍ',
+ h : 'saɛa',
+ hh : '%d tassaɛin',
+ d : 'ass',
+ dd : '%d ossan',
+ M : 'ayowr',
+ MM : '%d iyyirn',
+ y : 'asgas',
+ yy : '%d isgasn'
+ },
+ week : {
+ dow : 6, // Saturday is the first day of the week.
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return tzmLatn;
+
+ })));
+
+
+/***/ }),
+/* 359 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js language configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var ugCn = moment.defineLocale('ug-cn', {
+ months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
+ '_'
+ ),
+ monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
+ '_'
+ ),
+ weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
+ '_'
+ ),
+ weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
+ weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
+ longDateFormat: {
+ LT: 'HH:mm',
+ LTS: 'HH:mm:ss',
+ L: 'YYYY-MM-DD',
+ LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
+ LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
+ LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
+ },
+ meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (
+ meridiem === 'يېرىم كېچە' ||
+ meridiem === 'سەھەر' ||
+ meridiem === 'چۈشتىن بۇرۇن'
+ ) {
+ return hour;
+ } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
+ return hour + 12;
+ } else {
+ return hour >= 11 ? hour : hour + 12;
+ }
+ },
+ meridiem: function (hour, minute, isLower) {
+ var hm = hour * 100 + minute;
+ if (hm < 600) {
+ return 'يېرىم كېچە';
+ } else if (hm < 900) {
+ return 'سەھەر';
+ } else if (hm < 1130) {
+ return 'چۈشتىن بۇرۇن';
+ } else if (hm < 1230) {
+ return 'چۈش';
+ } else if (hm < 1800) {
+ return 'چۈشتىن كېيىن';
+ } else {
+ return 'كەچ';
+ }
+ },
+ calendar: {
+ sameDay: '[بۈگۈن سائەت] LT',
+ nextDay: '[ئەتە سائەت] LT',
+ nextWeek: '[كېلەركى] dddd [سائەت] LT',
+ lastDay: '[تۆنۈگۈن] LT',
+ lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: '%s كېيىن',
+ past: '%s بۇرۇن',
+ s: 'نەچچە سېكونت',
+ ss: '%d سېكونت',
+ m: 'بىر مىنۇت',
+ mm: '%d مىنۇت',
+ h: 'بىر سائەت',
+ hh: '%d سائەت',
+ d: 'بىر كۈن',
+ dd: '%d كۈن',
+ M: 'بىر ئاي',
+ MM: '%d ئاي',
+ y: 'بىر يىل',
+ yy: '%d يىل'
+ },
+
+ dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'DDD':
+ return number + '-كۈنى';
+ case 'w':
+ case 'W':
+ return number + '-ھەپتە';
+ default:
+ return number;
+ }
+ },
+ preparse: function (string) {
+ return string.replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/,/g, '،');
+ },
+ week: {
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
+ dow: 1, // Monday is the first day of the week.
+ doy: 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return ugCn;
+
+ })));
+
+
+/***/ }),
+/* 360 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ function plural(word, num) {
+ var forms = word.split('_');
+ return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
+ }
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
+ var format = {
+ 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
+ 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
+ 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
+ 'dd': 'день_дні_днів',
+ 'MM': 'місяць_місяці_місяців',
+ 'yy': 'рік_роки_років'
+ };
+ if (key === 'm') {
+ return withoutSuffix ? 'хвилина' : 'хвилину';
+ }
+ else if (key === 'h') {
+ return withoutSuffix ? 'година' : 'годину';
+ }
+ else {
+ return number + ' ' + plural(format[key], +number);
+ }
+ }
+ function weekdaysCaseReplace(m, format) {
+ var weekdays = {
+ 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
+ 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
+ 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
+ };
+
+ if (!m) {
+ return weekdays['nominative'];
+ }
+
+ var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
+ 'accusative' :
+ ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
+ 'genitive' :
+ 'nominative');
+ return weekdays[nounCase][m.day()];
+ }
+ function processHoursFunction(str) {
+ return function () {
+ return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
+ };
+ }
+
+ var uk = moment.defineLocale('uk', {
+ months : {
+ 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
+ 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
+ },
+ monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
+ weekdays : weekdaysCaseReplace,
+ weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD.MM.YYYY',
+ LL : 'D MMMM YYYY р.',
+ LLL : 'D MMMM YYYY р., HH:mm',
+ LLLL : 'dddd, D MMMM YYYY р., HH:mm'
+ },
+ calendar : {
+ sameDay: processHoursFunction('[Сьогодні '),
+ nextDay: processHoursFunction('[Завтра '),
+ lastDay: processHoursFunction('[Вчора '),
+ nextWeek: processHoursFunction('[У] dddd ['),
+ lastWeek: function () {
+ switch (this.day()) {
+ case 0:
+ case 3:
+ case 5:
+ case 6:
+ return processHoursFunction('[Минулої] dddd [').call(this);
+ case 1:
+ case 2:
+ case 4:
+ return processHoursFunction('[Минулого] dddd [').call(this);
+ }
+ },
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : 'за %s',
+ past : '%s тому',
+ s : 'декілька секунд',
+ ss : relativeTimeWithPlural,
+ m : relativeTimeWithPlural,
+ mm : relativeTimeWithPlural,
+ h : 'годину',
+ hh : relativeTimeWithPlural,
+ d : 'день',
+ dd : relativeTimeWithPlural,
+ M : 'місяць',
+ MM : relativeTimeWithPlural,
+ y : 'рік',
+ yy : relativeTimeWithPlural
+ },
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
+ meridiemParse: /ночі|ранку|дня|вечора/,
+ isPM: function (input) {
+ return /^(дня|вечора)$/.test(input);
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 4) {
+ return 'ночі';
+ } else if (hour < 12) {
+ return 'ранку';
+ } else if (hour < 17) {
+ return 'дня';
+ } else {
+ return 'вечора';
+ }
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
+ ordinal: function (number, period) {
+ switch (period) {
+ case 'M':
+ case 'd':
+ case 'DDD':
+ case 'w':
+ case 'W':
+ return number + '-й';
+ case 'D':
+ return number + '-го';
+ default:
+ return number;
+ }
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return uk;
+
+ })));
+
+
+/***/ }),
+/* 361 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var months = [
+ 'جنوری',
+ 'فروری',
+ 'مارچ',
+ 'اپریل',
+ 'مئی',
+ 'جون',
+ 'جولائی',
+ 'اگست',
+ 'ستمبر',
+ 'اکتوبر',
+ 'نومبر',
+ 'دسمبر'
+ ];
+ var days = [
+ 'اتوار',
+ 'پیر',
+ 'منگل',
+ 'بدھ',
+ 'جمعرات',
+ 'جمعہ',
+ 'ہفتہ'
+ ];
+
+ var ur = moment.defineLocale('ur', {
+ months : months,
+ monthsShort : months,
+ weekdays : days,
+ weekdaysShort : days,
+ weekdaysMin : days,
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd، D MMMM YYYY HH:mm'
+ },
+ meridiemParse: /صبح|شام/,
+ isPM : function (input) {
+ return 'شام' === input;
+ },
+ meridiem : function (hour, minute, isLower) {
+ if (hour < 12) {
+ return 'صبح';
+ }
+ return 'شام';
+ },
+ calendar : {
+ sameDay : '[آج بوقت] LT',
+ nextDay : '[کل بوقت] LT',
+ nextWeek : 'dddd [بوقت] LT',
+ lastDay : '[گذشتہ روز بوقت] LT',
+ lastWeek : '[گذشتہ] dddd [بوقت] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : '%s بعد',
+ past : '%s قبل',
+ s : 'چند سیکنڈ',
+ ss : '%d سیکنڈ',
+ m : 'ایک منٹ',
+ mm : '%d منٹ',
+ h : 'ایک گھنٹہ',
+ hh : '%d گھنٹے',
+ d : 'ایک دن',
+ dd : '%d دن',
+ M : 'ایک ماہ',
+ MM : '%d ماہ',
+ y : 'ایک سال',
+ yy : '%d سال'
+ },
+ preparse: function (string) {
+ return string.replace(/،/g, ',');
+ },
+ postformat: function (string) {
+ return string.replace(/,/g, '،');
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return ur;
+
+ })));
+
+
+/***/ }),
+/* 362 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var uz = moment.defineLocale('uz', {
+ months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
+ monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
+ weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
+ weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
+ weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'D MMMM YYYY, dddd HH:mm'
+ },
+ calendar : {
+ sameDay : '[Бугун соат] LT [да]',
+ nextDay : '[Эртага] LT [да]',
+ nextWeek : 'dddd [куни соат] LT [да]',
+ lastDay : '[Кеча соат] LT [да]',
+ lastWeek : '[Утган] dddd [куни соат] LT [да]',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'Якин %s ичида',
+ past : 'Бир неча %s олдин',
+ s : 'фурсат',
+ ss : '%d фурсат',
+ m : 'бир дакика',
+ mm : '%d дакика',
+ h : 'бир соат',
+ hh : '%d соат',
+ d : 'бир кун',
+ dd : '%d кун',
+ M : 'бир ой',
+ MM : '%d ой',
+ y : 'бир йил',
+ yy : '%d йил'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return uz;
+
+ })));
+
+
+/***/ }),
+/* 363 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var uzLatn = moment.defineLocale('uz-latn', {
+ months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
+ monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
+ weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
+ weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
+ weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'D MMMM YYYY, dddd HH:mm'
+ },
+ calendar : {
+ sameDay : '[Bugun soat] LT [da]',
+ nextDay : '[Ertaga] LT [da]',
+ nextWeek : 'dddd [kuni soat] LT [da]',
+ lastDay : '[Kecha soat] LT [da]',
+ lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'Yaqin %s ichida',
+ past : 'Bir necha %s oldin',
+ s : 'soniya',
+ ss : '%d soniya',
+ m : 'bir daqiqa',
+ mm : '%d daqiqa',
+ h : 'bir soat',
+ hh : '%d soat',
+ d : 'bir kun',
+ dd : '%d kun',
+ M : 'bir oy',
+ MM : '%d oy',
+ y : 'bir yil',
+ yy : '%d yil'
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
+ }
+ });
+
+ return uzLatn;
+
+ })));
+
+
+/***/ }),
+/* 364 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var vi = moment.defineLocale('vi', {
+ months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
+ monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
+ weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
+ weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
+ weekdaysParseExact : true,
+ meridiemParse: /sa|ch/i,
+ isPM : function (input) {
+ return /^ch$/i.test(input);
+ },
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 12) {
+ return isLower ? 'sa' : 'SA';
+ } else {
+ return isLower ? 'ch' : 'CH';
+ }
+ },
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM [năm] YYYY',
+ LLL : 'D MMMM [năm] YYYY HH:mm',
+ LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
+ l : 'DD/M/YYYY',
+ ll : 'D MMM YYYY',
+ lll : 'D MMM YYYY HH:mm',
+ llll : 'ddd, D MMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay: '[Hôm nay lúc] LT',
+ nextDay: '[Ngày mai lúc] LT',
+ nextWeek: 'dddd [tuần tới lúc] LT',
+ lastDay: '[Hôm qua lúc] LT',
+ lastWeek: 'dddd [tuần rồi lúc] LT',
+ sameElse: 'L'
+ },
+ relativeTime : {
+ future : '%s tới',
+ past : '%s trước',
+ s : 'vài giây',
+ ss : '%d giây' ,
+ m : 'một phút',
+ mm : '%d phút',
+ h : 'một giờ',
+ hh : '%d giờ',
+ d : 'một ngày',
+ dd : '%d ngày',
+ M : 'một tháng',
+ MM : '%d tháng',
+ y : 'một năm',
+ yy : '%d năm'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}/,
+ ordinal : function (number) {
+ return number;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return vi;
+
+ })));
+
+
+/***/ }),
+/* 365 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var xPseudo = moment.defineLocale('x-pseudo', {
+ months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
+ monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
+ monthsParseExact : true,
+ weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
+ weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
+ weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
+ weekdaysParseExact : true,
+ longDateFormat : {
+ LT : 'HH:mm',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
+ },
+ calendar : {
+ sameDay : '[T~ódá~ý át] LT',
+ nextDay : '[T~ómó~rró~w át] LT',
+ nextWeek : 'dddd [át] LT',
+ lastDay : '[Ý~ést~érdá~ý át] LT',
+ lastWeek : '[L~ást] dddd [át] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'í~ñ %s',
+ past : '%s á~gó',
+ s : 'á ~féw ~sécó~ñds',
+ ss : '%d s~écóñ~ds',
+ m : 'á ~míñ~úté',
+ mm : '%d m~íñú~tés',
+ h : 'á~ñ hó~úr',
+ hh : '%d h~óúrs',
+ d : 'á ~dáý',
+ dd : '%d d~áýs',
+ M : 'á ~móñ~th',
+ MM : '%d m~óñt~hs',
+ y : 'á ~ýéár',
+ yy : '%d ý~éárs'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ },
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return xPseudo;
+
+ })));
+
+
+/***/ }),
+/* 366 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var yo = moment.defineLocale('yo', {
+ months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
+ monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
+ weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
+ weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
+ weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
+ longDateFormat : {
+ LT : 'h:mm A',
+ LTS : 'h:mm:ss A',
+ L : 'DD/MM/YYYY',
+ LL : 'D MMMM YYYY',
+ LLL : 'D MMMM YYYY h:mm A',
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
+ },
+ calendar : {
+ sameDay : '[Ònì ni] LT',
+ nextDay : '[Ọ̀la ni] LT',
+ nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
+ lastDay : '[Àna ni] LT',
+ lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
+ sameElse : 'L'
+ },
+ relativeTime : {
+ future : 'ní %s',
+ past : '%s kọjá',
+ s : 'ìsẹjú aayá die',
+ ss :'aayá %d',
+ m : 'ìsẹjú kan',
+ mm : 'ìsẹjú %d',
+ h : 'wákati kan',
+ hh : 'wákati %d',
+ d : 'ọjọ́ kan',
+ dd : 'ọjọ́ %d',
+ M : 'osù kan',
+ MM : 'osù %d',
+ y : 'ọdún kan',
+ yy : 'ọdún %d'
+ },
+ dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
+ ordinal : 'ọjọ́ %d',
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return yo;
+
+ })));
+
+
+/***/ }),
+/* 367 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var zhCn = moment.defineLocale('zh-cn', {
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+ weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY/MM/DD',
+ LL : 'YYYY年M月D日',
+ LLL : 'YYYY年M月D日Ah点mm分',
+ LLLL : 'YYYY年M月D日ddddAh点mm分',
+ l : 'YYYY/M/D',
+ ll : 'YYYY年M月D日',
+ lll : 'YYYY年M月D日 HH:mm',
+ llll : 'YYYY年M月D日dddd HH:mm'
+ },
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+ meridiemHour: function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === '凌晨' || meridiem === '早上' ||
+ meridiem === '上午') {
+ return hour;
+ } else if (meridiem === '下午' || meridiem === '晚上') {
+ return hour + 12;
+ } else {
+ // '中午'
+ return hour >= 11 ? hour : hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ var hm = hour * 100 + minute;
+ if (hm < 600) {
+ return '凌晨';
+ } else if (hm < 900) {
+ return '早上';
+ } else if (hm < 1130) {
+ return '上午';
+ } else if (hm < 1230) {
+ return '中午';
+ } else if (hm < 1800) {
+ return '下午';
+ } else {
+ return '晚上';
+ }
+ },
+ calendar : {
+ sameDay : '[今天]LT',
+ nextDay : '[明天]LT',
+ nextWeek : '[下]ddddLT',
+ lastDay : '[昨天]LT',
+ lastWeek : '[上]ddddLT',
+ sameElse : 'L'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd':
+ case 'D':
+ case 'DDD':
+ return number + '日';
+ case 'M':
+ return number + '月';
+ case 'w':
+ case 'W':
+ return number + '周';
+ default:
+ return number;
+ }
+ },
+ relativeTime : {
+ future : '%s内',
+ past : '%s前',
+ s : '几秒',
+ ss : '%d 秒',
+ m : '1 分钟',
+ mm : '%d 分钟',
+ h : '1 小时',
+ hh : '%d 小时',
+ d : '1 天',
+ dd : '%d 天',
+ M : '1 个月',
+ MM : '%d 个月',
+ y : '1 年',
+ yy : '%d 年'
+ },
+ week : {
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+
+ return zhCn;
+
+ })));
+
+
+/***/ }),
+/* 368 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var zhHk = moment.defineLocale('zh-hk', {
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+ weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY/MM/DD',
+ LL : 'YYYY年M月D日',
+ LLL : 'YYYY年M月D日 HH:mm',
+ LLLL : 'YYYY年M月D日dddd HH:mm',
+ l : 'YYYY/M/D',
+ ll : 'YYYY年M月D日',
+ lll : 'YYYY年M月D日 HH:mm',
+ llll : 'YYYY年M月D日dddd HH:mm'
+ },
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+ return hour;
+ } else if (meridiem === '中午') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === '下午' || meridiem === '晚上') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ var hm = hour * 100 + minute;
+ if (hm < 600) {
+ return '凌晨';
+ } else if (hm < 900) {
+ return '早上';
+ } else if (hm < 1130) {
+ return '上午';
+ } else if (hm < 1230) {
+ return '中午';
+ } else if (hm < 1800) {
+ return '下午';
+ } else {
+ return '晚上';
+ }
+ },
+ calendar : {
+ sameDay : '[今天]LT',
+ nextDay : '[明天]LT',
+ nextWeek : '[下]ddddLT',
+ lastDay : '[昨天]LT',
+ lastWeek : '[上]ddddLT',
+ sameElse : 'L'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd' :
+ case 'D' :
+ case 'DDD' :
+ return number + '日';
+ case 'M' :
+ return number + '月';
+ case 'w' :
+ case 'W' :
+ return number + '週';
+ default :
+ return number;
+ }
+ },
+ relativeTime : {
+ future : '%s內',
+ past : '%s前',
+ s : '幾秒',
+ ss : '%d 秒',
+ m : '1 分鐘',
+ mm : '%d 分鐘',
+ h : '1 小時',
+ hh : '%d 小時',
+ d : '1 天',
+ dd : '%d 天',
+ M : '1 個月',
+ MM : '%d 個月',
+ y : '1 年',
+ yy : '%d 年'
+ }
+ });
+
+ return zhHk;
+
+ })));
+
+
+/***/ }),
+/* 369 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ //! moment.js locale configuration
+
+ ;(function (global, factory) {
+ true ? factory(__webpack_require__(245)) :
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
+ factory(global.moment)
+ }(this, (function (moment) { 'use strict';
+
+
+ var zhTw = moment.defineLocale('zh-tw', {
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
+ weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
+ longDateFormat : {
+ LT : 'HH:mm',
+ LTS : 'HH:mm:ss',
+ L : 'YYYY/MM/DD',
+ LL : 'YYYY年M月D日',
+ LLL : 'YYYY年M月D日 HH:mm',
+ LLLL : 'YYYY年M月D日dddd HH:mm',
+ l : 'YYYY/M/D',
+ ll : 'YYYY年M月D日',
+ lll : 'YYYY年M月D日 HH:mm',
+ llll : 'YYYY年M月D日dddd HH:mm'
+ },
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
+ meridiemHour : function (hour, meridiem) {
+ if (hour === 12) {
+ hour = 0;
+ }
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
+ return hour;
+ } else if (meridiem === '中午') {
+ return hour >= 11 ? hour : hour + 12;
+ } else if (meridiem === '下午' || meridiem === '晚上') {
+ return hour + 12;
+ }
+ },
+ meridiem : function (hour, minute, isLower) {
+ var hm = hour * 100 + minute;
+ if (hm < 600) {
+ return '凌晨';
+ } else if (hm < 900) {
+ return '早上';
+ } else if (hm < 1130) {
+ return '上午';
+ } else if (hm < 1230) {
+ return '中午';
+ } else if (hm < 1800) {
+ return '下午';
+ } else {
+ return '晚上';
+ }
+ },
+ calendar : {
+ sameDay : '[今天] LT',
+ nextDay : '[明天] LT',
+ nextWeek : '[下]dddd LT',
+ lastDay : '[昨天] LT',
+ lastWeek : '[上]dddd LT',
+ sameElse : 'L'
+ },
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
+ ordinal : function (number, period) {
+ switch (period) {
+ case 'd' :
+ case 'D' :
+ case 'DDD' :
+ return number + '日';
+ case 'M' :
+ return number + '月';
+ case 'w' :
+ case 'W' :
+ return number + '週';
+ default :
+ return number;
+ }
+ },
+ relativeTime : {
+ future : '%s內',
+ past : '%s前',
+ s : '幾秒',
+ ss : '%d 秒',
+ m : '1 分鐘',
+ mm : '%d 分鐘',
+ h : '1 小時',
+ hh : '%d 小時',
+ d : '1 天',
+ dd : '%d 天',
+ M : '1 個月',
+ MM : '%d 個月',
+ y : '1 年',
+ yy : '%d 年'
+ }
+ });
+
+ return zhTw;
+
+ })));
+
+
+/***/ }),
+/* 370 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _DateConstants = __webpack_require__(244);
+
+ var _DateConstants2 = _interopRequireDefault(_DateConstants);
+
+ var _util = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function isSameDay(one, two) {
+ return one && two && one.isSame(two, 'day');
+ }
+
+ function beforeCurrentMonthYear(current, today) {
+ if (current.year() < today.year()) {
+ return 1;
+ }
+ return current.year() === today.year() && current.month() < today.month();
+ }
+
+ function afterCurrentMonthYear(current, today) {
+ if (current.year() > today.year()) {
+ return 1;
+ }
+ return current.year() === today.year() && current.month() > today.month();
+ }
+
+ function getIdFromDate(date) {
+ return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();
+ }
+
+ var DateTBody = (0, _createReactClass2['default'])({
+ displayName: 'DateTBody',
+
+ propTypes: {
+ contentRender: _propTypes2['default'].func,
+ dateRender: _propTypes2['default'].func,
+ disabledDate: _propTypes2['default'].func,
+ prefixCls: _propTypes2['default'].string,
+ selectedValue: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].arrayOf(_propTypes2['default'].object)]),
+ value: _propTypes2['default'].object,
+ hoverValue: _propTypes2['default'].any,
+ showWeekNumber: _propTypes2['default'].bool
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ hoverValue: []
+ };
+ },
+ render: function render() {
+ var props = this.props;
+ var contentRender = props.contentRender,
+ prefixCls = props.prefixCls,
+ selectedValue = props.selectedValue,
+ value = props.value,
+ showWeekNumber = props.showWeekNumber,
+ dateRender = props.dateRender,
+ disabledDate = props.disabledDate,
+ hoverValue = props.hoverValue;
+
+ var iIndex = void 0;
+ var jIndex = void 0;
+ var current = void 0;
+ var dateTable = [];
+ var today = (0, _util.getTodayTime)(value);
+ var cellClass = prefixCls + '-cell';
+ var weekNumberCellClass = prefixCls + '-week-number-cell';
+ var dateClass = prefixCls + '-date';
+ var todayClass = prefixCls + '-today';
+ var selectedClass = prefixCls + '-selected-day';
+ var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation
+ var inRangeClass = prefixCls + '-in-range-cell';
+ var lastMonthDayClass = prefixCls + '-last-month-cell';
+ var nextMonthDayClass = prefixCls + '-next-month-btn-day';
+ var disabledClass = prefixCls + '-disabled-cell';
+ var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';
+ var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';
+ var month1 = value.clone();
+ month1.date(1);
+ var day = month1.day();
+ var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;
+ // calculate last month
+ var lastMonth1 = month1.clone();
+ lastMonth1.add(0 - lastMonthDiffDay, 'days');
+ var passed = 0;
+ for (iIndex = 0; iIndex < _DateConstants2['default'].DATE_ROW_COUNT; iIndex++) {
+ for (jIndex = 0; jIndex < _DateConstants2['default'].DATE_COL_COUNT; jIndex++) {
+ current = lastMonth1;
+ if (passed) {
+ current = current.clone();
+ current.add(passed, 'days');
+ }
+ dateTable.push(current);
+ passed++;
+ }
+ }
+ var tableHtml = [];
+ passed = 0;
+
+ for (iIndex = 0; iIndex < _DateConstants2['default'].DATE_ROW_COUNT; iIndex++) {
+ var _cx;
+
+ var isCurrentWeek = void 0;
+ var weekNumberCell = void 0;
+ var isActiveWeek = false;
+ var dateCells = [];
+ if (showWeekNumber) {
+ weekNumberCell = _react2['default'].createElement(
+ 'td',
+ {
+ key: dateTable[passed].week(),
+ role: 'gridcell',
+ className: weekNumberCellClass
+ },
+ dateTable[passed].week()
+ );
+ }
+ for (jIndex = 0; jIndex < _DateConstants2['default'].DATE_COL_COUNT; jIndex++) {
+ var next = null;
+ var last = null;
+ current = dateTable[passed];
+ if (jIndex < _DateConstants2['default'].DATE_COL_COUNT - 1) {
+ next = dateTable[passed + 1];
+ }
+ if (jIndex > 0) {
+ last = dateTable[passed - 1];
+ }
+ var cls = cellClass;
+ var disabled = false;
+ var selected = false;
+
+ if (isSameDay(current, today)) {
+ cls += ' ' + todayClass;
+ isCurrentWeek = true;
+ }
+
+ var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);
+ var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);
+
+ if (selectedValue && Array.isArray(selectedValue)) {
+ var rangeValue = hoverValue.length ? hoverValue : selectedValue;
+ if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {
+ var startValue = rangeValue[0];
+ var endValue = rangeValue[1];
+ if (startValue) {
+ if (isSameDay(current, startValue)) {
+ selected = true;
+ isActiveWeek = true;
+ }
+ }
+ if (startValue && endValue) {
+ if (isSameDay(current, endValue)) {
+ selected = true;
+ isActiveWeek = true;
+ } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {
+ cls += ' ' + inRangeClass;
+ }
+ }
+ }
+ } else if (isSameDay(current, value)) {
+ // keyboard change value, highlight works
+ selected = true;
+ isActiveWeek = true;
+ }
+
+ if (isSameDay(current, selectedValue)) {
+ cls += ' ' + selectedDateClass;
+ }
+
+ if (isBeforeCurrentMonthYear) {
+ cls += ' ' + lastMonthDayClass;
+ }
+ if (isAfterCurrentMonthYear) {
+ cls += ' ' + nextMonthDayClass;
+ }
+
+ if (disabledDate) {
+ if (disabledDate(current, value)) {
+ disabled = true;
+
+ if (!last || !disabledDate(last, value)) {
+ cls += ' ' + firstDisableClass;
+ }
+
+ if (!next || !disabledDate(next, value)) {
+ cls += ' ' + lastDisableClass;
+ }
+ }
+ }
+
+ if (selected) {
+ cls += ' ' + selectedClass;
+ }
+
+ if (disabled) {
+ cls += ' ' + disabledClass;
+ }
+
+ var dateHtml = void 0;
+ if (dateRender) {
+ dateHtml = dateRender(current, value);
+ } else {
+ var content = contentRender ? contentRender(current, value) : current.date();
+ dateHtml = _react2['default'].createElement(
+ 'div',
+ {
+ key: getIdFromDate(current),
+ className: dateClass,
+ 'aria-selected': selected,
+ 'aria-disabled': disabled
+ },
+ content
+ );
+ }
+
+ dateCells.push(_react2['default'].createElement(
+ 'td',
+ {
+ key: passed,
+ onClick: disabled ? undefined : props.onSelect.bind(null, current),
+ onMouseEnter: disabled ? undefined : props.onDayHover && props.onDayHover.bind(null, current) || undefined,
+ role: 'gridcell',
+ title: (0, _util.getTitleString)(current), className: cls
+ },
+ dateHtml
+ ));
+
+ passed++;
+ }
+
+ tableHtml.push(_react2['default'].createElement(
+ 'tr',
+ {
+ key: iIndex,
+ role: 'row',
+ className: (0, _classnames2['default'])((_cx = {}, (0, _defineProperty3['default'])(_cx, prefixCls + '-current-week', isCurrentWeek), (0, _defineProperty3['default'])(_cx, prefixCls + '-active-week', isActiveWeek), _cx))
+ },
+ weekNumberCell,
+ dateCells
+ ));
+ }
+ return _react2['default'].createElement(
+ 'tbody',
+ { className: prefixCls + '-tbody' },
+ tableHtml
+ );
+ }
+ });
+
+ exports['default'] = DateTBody;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 371 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _defineProperty = __webpack_require__(199);
+
+ 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;
+ };
+
+/***/ }),
+/* 372 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ exports.getTodayTime = getTodayTime;
+ exports.getTitleString = getTitleString;
+ exports.getTodayTimeStr = getTodayTimeStr;
+ exports.getMonthName = getMonthName;
+ exports.syncTime = syncTime;
+ exports.getTimeConfig = getTimeConfig;
+ exports.isTimeValidByConfig = isTimeValidByConfig;
+ exports.isTimeValid = isTimeValid;
+ exports.isAllowedDate = isAllowedDate;
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var defaultDisabledTime = {
+ disabledHours: function disabledHours() {
+ return [];
+ },
+ disabledMinutes: function disabledMinutes() {
+ return [];
+ },
+ disabledSeconds: function disabledSeconds() {
+ return [];
+ }
+ };
+
+ function getTodayTime(value) {
+ var today = (0, _moment2['default'])();
+ today.locale(value.locale()).utcOffset(value.utcOffset());
+ return today;
+ }
+
+ function getTitleString(value) {
+ return value.format('L');
+ }
+
+ function getTodayTimeStr(value) {
+ var today = getTodayTime(value);
+ return getTitleString(today);
+ }
+
+ function getMonthName(month) {
+ var locale = month.locale();
+ var localeData = month.localeData();
+ return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
+ }
+
+ function syncTime(from, to) {
+ if (!_moment2['default'].isMoment(from) || !_moment2['default'].isMoment(to)) return;
+ to.hour(from.hour());
+ to.minute(from.minute());
+ to.second(from.second());
+ }
+
+ function getTimeConfig(value, disabledTime) {
+ var disabledTimeConfig = disabledTime ? disabledTime(value) : {};
+ disabledTimeConfig = (0, _extends3['default'])({}, defaultDisabledTime, disabledTimeConfig);
+ return disabledTimeConfig;
+ }
+
+ function isTimeValidByConfig(value, disabledTimeConfig) {
+ var invalidTime = false;
+ if (value) {
+ var hour = value.hour();
+ var minutes = value.minute();
+ var seconds = value.second();
+ var disabledHours = disabledTimeConfig.disabledHours();
+ if (disabledHours.indexOf(hour) === -1) {
+ var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);
+ if (disabledMinutes.indexOf(minutes) === -1) {
+ var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);
+ invalidTime = disabledSeconds.indexOf(seconds) !== -1;
+ } else {
+ invalidTime = true;
+ }
+ } else {
+ invalidTime = true;
+ }
+ }
+ return !invalidTime;
+ }
+
+ function isTimeValid(value, disabledTime) {
+ var disabledTimeConfig = getTimeConfig(value, disabledTime);
+ return isTimeValidByConfig(value, disabledTimeConfig);
+ }
+
+ function isAllowedDate(value, disabledDate, disabledTime) {
+ if (disabledDate) {
+ if (disabledDate(value)) {
+ return false;
+ }
+ }
+ if (disabledTime) {
+ if (!isTimeValid(value, disabledTime)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+/***/ }),
+/* 373 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _MonthPanel = __webpack_require__(374);
+
+ var _MonthPanel2 = _interopRequireDefault(_MonthPanel);
+
+ var _YearPanel = __webpack_require__(375);
+
+ var _YearPanel2 = _interopRequireDefault(_YearPanel);
+
+ var _mapSelf = __webpack_require__(378);
+
+ var _mapSelf2 = _interopRequireDefault(_mapSelf);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function goMonth(direction) {
+ var next = this.props.value.clone();
+ next.add(direction, 'months');
+ this.props.onValueChange(next);
+ }
+
+ function goYear(direction) {
+ var next = this.props.value.clone();
+ next.add(direction, 'years');
+ this.props.onValueChange(next);
+ }
+
+ function showIf(condition, el) {
+ return condition ? el : null;
+ }
+
+ var CalendarHeader = (0, _createReactClass2['default'])({
+ displayName: 'CalendarHeader',
+
+ propTypes: {
+ prefixCls: _propTypes2['default'].string,
+ value: _propTypes2['default'].object,
+ onValueChange: _propTypes2['default'].func,
+ showTimePicker: _propTypes2['default'].bool,
+ showMonthPanel: _propTypes2['default'].bool,
+ showYearPanel: _propTypes2['default'].bool,
+ onPanelChange: _propTypes2['default'].func,
+ locale: _propTypes2['default'].object,
+ enablePrev: _propTypes2['default'].any,
+ enableNext: _propTypes2['default'].any,
+ disabledMonth: _propTypes2['default'].func
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ enableNext: 1,
+ enablePrev: 1,
+ onPanelChange: function onPanelChange() {},
+ onValueChange: function onValueChange() {}
+ };
+ },
+ getInitialState: function getInitialState() {
+ this.nextMonth = goMonth.bind(this, 1);
+ this.previousMonth = goMonth.bind(this, -1);
+ this.nextYear = goYear.bind(this, 1);
+ this.previousYear = goYear.bind(this, -1);
+ var _props = this.props,
+ showMonthPanel = _props.showMonthPanel,
+ showYearPanel = _props.showYearPanel;
+
+ return { showMonthPanel: showMonthPanel, showYearPanel: showYearPanel };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps() {
+ var props = this.props;
+ if ('showMonthpanel' in props) {
+ this.setState({ showMonthPanel: props.showMonthPanel });
+ }
+ if ('showYearpanel' in props) {
+ this.setState({ showYearPanel: props.showYearPanel });
+ }
+ },
+ onSelect: function onSelect(value) {
+ this.triggerPanelChange({
+ showMonthPanel: 0,
+ showYearPanel: 0
+ });
+ this.props.onValueChange(value);
+ },
+ triggerPanelChange: function triggerPanelChange(panelStatus) {
+ if (!('showMonthPanel' in this.props)) {
+ this.setState({ showMonthPanel: panelStatus.showMonthPanel });
+ }
+ if (!('showYearPanel' in this.props)) {
+ this.setState({ showYearPanel: panelStatus.showYearPanel });
+ }
+ this.props.onPanelChange(panelStatus);
+ },
+ monthYearElement: function monthYearElement(showTimePicker) {
+ var props = this.props;
+ var prefixCls = props.prefixCls;
+ var locale = props.locale;
+ var value = props.value;
+ var localeData = value.localeData();
+ var monthBeforeYear = locale.monthBeforeYear;
+ var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
+ var year = _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-year-select',
+ role: 'button',
+ onClick: showTimePicker ? null : this.showYearPanel,
+ title: locale.yearSelect
+ },
+ value.format(locale.yearFormat)
+ );
+ var month = _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-month-select',
+ role: 'button',
+ onClick: showTimePicker ? null : this.showMonthPanel,
+ title: locale.monthSelect
+ },
+ localeData.monthsShort(value)
+ );
+ var day = void 0;
+ if (showTimePicker) {
+ day = _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-day-select',
+ role: 'button'
+ },
+ value.format(locale.dayFormat)
+ );
+ }
+ var my = [];
+ if (monthBeforeYear) {
+ my = [month, day, year];
+ } else {
+ my = [year, month, day];
+ }
+ return _react2['default'].createElement(
+ 'span',
+ { className: selectClassName },
+ (0, _mapSelf2['default'])(my)
+ );
+ },
+ showMonthPanel: function showMonthPanel() {
+ this.triggerPanelChange({
+ showMonthPanel: 1,
+ showYearPanel: 0
+ });
+ },
+ showYearPanel: function showYearPanel() {
+ this.triggerPanelChange({
+ showMonthPanel: 0,
+ showYearPanel: 1
+ });
+ },
+ render: function render() {
+ var props = this.props,
+ state = this.state;
+ var prefixCls = props.prefixCls,
+ locale = props.locale,
+ value = props.value,
+ showTimePicker = props.showTimePicker,
+ enableNext = props.enableNext,
+ enablePrev = props.enablePrev,
+ disabledMonth = props.disabledMonth;
+
+
+ var panel = null;
+ if (state.showMonthPanel) {
+ panel = _react2['default'].createElement(_MonthPanel2['default'], {
+ locale: locale,
+ defaultValue: value,
+ rootPrefixCls: prefixCls,
+ onSelect: this.onSelect,
+ disabledDate: disabledMonth
+ });
+ } else if (state.showYearPanel) {
+ panel = _react2['default'].createElement(_YearPanel2['default'], {
+ locale: locale,
+ defaultValue: value,
+ rootPrefixCls: prefixCls,
+ onSelect: this.onSelect
+ });
+ }
+
+ return _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-header' },
+ _react2['default'].createElement(
+ 'div',
+ { style: { position: 'relative' } },
+ showIf(enablePrev && !showTimePicker, _react2['default'].createElement('a', {
+ className: prefixCls + '-prev-year-btn',
+ role: 'button',
+ onClick: this.previousYear,
+ title: locale.previousYear
+ })),
+ showIf(enablePrev && !showTimePicker, _react2['default'].createElement('a', {
+ className: prefixCls + '-prev-month-btn',
+ role: 'button',
+ onClick: this.previousMonth,
+ title: locale.previousMonth
+ })),
+ this.monthYearElement(showTimePicker),
+ showIf(enableNext && !showTimePicker, _react2['default'].createElement('a', {
+ className: prefixCls + '-next-month-btn',
+ onClick: this.nextMonth,
+ title: locale.nextMonth
+ })),
+ showIf(enableNext && !showTimePicker, _react2['default'].createElement('a', {
+ className: prefixCls + '-next-year-btn',
+ onClick: this.nextYear,
+ title: locale.nextYear
+ }))
+ ),
+ panel
+ );
+ }
+ });
+
+ exports['default'] = CalendarHeader;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 374 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _YearPanel = __webpack_require__(375);
+
+ var _YearPanel2 = _interopRequireDefault(_YearPanel);
+
+ var _MonthTable = __webpack_require__(377);
+
+ var _MonthTable2 = _interopRequireDefault(_MonthTable);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function goYear(direction) {
+ var next = this.state.value.clone();
+ next.add(direction, 'year');
+ this.setAndChangeValue(next);
+ }
+
+ function noop() {}
+
+ var MonthPanel = (0, _createReactClass2['default'])({
+ displayName: 'MonthPanel',
+
+ propTypes: {
+ onChange: _propTypes2['default'].func,
+ disabledDate: _propTypes2['default'].func,
+ onSelect: _propTypes2['default'].func
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ onChange: noop,
+ onSelect: noop
+ };
+ },
+ getInitialState: function getInitialState() {
+ var props = this.props;
+ // bind methods
+ this.nextYear = goYear.bind(this, 1);
+ this.previousYear = goYear.bind(this, -1);
+ this.prefixCls = props.rootPrefixCls + '-month-panel';
+ return {
+ value: props.value || props.defaultValue
+ };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
+ if ('value' in nextProps) {
+ this.setState({
+ value: nextProps.value
+ });
+ }
+ },
+ onYearPanelSelect: function onYearPanelSelect(current) {
+ this.setState({
+ showYearPanel: 0
+ });
+ this.setAndChangeValue(current);
+ },
+ setAndChangeValue: function setAndChangeValue(value) {
+ this.setValue(value);
+ this.props.onChange(value);
+ },
+ setAndSelectValue: function setAndSelectValue(value) {
+ this.setValue(value);
+ this.props.onSelect(value);
+ },
+ setValue: function setValue(value) {
+ if (!('value' in this.props)) {
+ this.setState({
+ value: value
+ });
+ }
+ },
+ showYearPanel: function showYearPanel() {
+ this.setState({
+ showYearPanel: 1
+ });
+ },
+ render: function render() {
+ var props = this.props;
+ var value = this.state.value;
+ var cellRender = props.cellRender;
+ var contentRender = props.contentRender;
+ var locale = props.locale;
+ var year = value.year();
+ var prefixCls = this.prefixCls;
+ var yearPanel = void 0;
+ if (this.state.showYearPanel) {
+ yearPanel = _react2['default'].createElement(_YearPanel2['default'], {
+ locale: locale,
+ value: value,
+ rootPrefixCls: props.rootPrefixCls,
+ onSelect: this.onYearPanelSelect
+ });
+ }
+ return _react2['default'].createElement(
+ 'div',
+ { className: prefixCls, style: props.style },
+ _react2['default'].createElement(
+ 'div',
+ null,
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-header' },
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-prev-year-btn',
+ role: 'button',
+ onClick: this.previousYear,
+ title: locale.previousYear
+ }),
+ _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-year-select',
+ role: 'button',
+ onClick: this.showYearPanel,
+ title: locale.yearSelect
+ },
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-year-select-content' },
+ year
+ ),
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-year-select-arrow' },
+ 'x'
+ )
+ ),
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-next-year-btn',
+ role: 'button',
+ onClick: this.nextYear,
+ title: locale.nextYear
+ })
+ ),
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-body' },
+ _react2['default'].createElement(_MonthTable2['default'], {
+ disabledDate: props.disabledDate,
+ onSelect: this.setAndSelectValue,
+ locale: locale,
+ value: value,
+ cellRender: cellRender,
+ contentRender: contentRender,
+ prefixCls: prefixCls
+ })
+ )
+ ),
+ yearPanel
+ );
+ }
+ });
+
+ exports['default'] = MonthPanel;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 375 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _DecadePanel = __webpack_require__(376);
+
+ var _DecadePanel2 = _interopRequireDefault(_DecadePanel);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var ROW = 4;
+ var COL = 3;
+
+ function goYear(direction) {
+ var value = this.state.value.clone();
+ value.add(direction, 'year');
+ this.setState({
+ value: value
+ });
+ }
+
+ function chooseYear(year) {
+ var value = this.state.value.clone();
+ value.year(year);
+ value.month(this.state.value.month());
+ this.props.onSelect(value);
+ }
+
+ var YearPanel = function (_React$Component) {
+ (0, _inherits3['default'])(YearPanel, _React$Component);
+
+ function YearPanel(props) {
+ (0, _classCallCheck3['default'])(this, YearPanel);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (YearPanel.__proto__ || Object.getPrototypeOf(YearPanel)).call(this, props));
+
+ _this.prefixCls = props.rootPrefixCls + '-year-panel';
+ _this.state = {
+ value: props.value || props.defaultValue
+ };
+ _this.nextDecade = goYear.bind(_this, 10);
+ _this.previousDecade = goYear.bind(_this, -10);
+ ['showDecadePanel', 'onDecadePanelSelect'].forEach(function (method) {
+ _this[method] = _this[method].bind(_this);
+ });
+ return _this;
+ }
+
+ (0, _createClass3['default'])(YearPanel, [{
+ key: 'onDecadePanelSelect',
+ value: function onDecadePanelSelect(current) {
+ this.setState({
+ value: current,
+ showDecadePanel: 0
+ });
+ }
+ }, {
+ key: 'years',
+ value: function years() {
+ var value = this.state.value;
+ var currentYear = value.year();
+ var startYear = parseInt(currentYear / 10, 10) * 10;
+ var previousYear = startYear - 1;
+ var years = [];
+ var index = 0;
+ for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
+ years[rowIndex] = [];
+ for (var colIndex = 0; colIndex < COL; colIndex++) {
+ var year = previousYear + index;
+ var content = String(year);
+ years[rowIndex][colIndex] = {
+ content: content,
+ year: year,
+ title: content
+ };
+ index++;
+ }
+ }
+ return years;
+ }
+ }, {
+ key: 'showDecadePanel',
+ value: function showDecadePanel() {
+ this.setState({
+ showDecadePanel: 1
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var props = this.props;
+ var value = this.state.value;
+ var locale = props.locale;
+ var years = this.years();
+ var currentYear = value.year();
+ var startYear = parseInt(currentYear / 10, 10) * 10;
+ var endYear = startYear + 9;
+ var prefixCls = this.prefixCls;
+
+ var yeasEls = years.map(function (row, index) {
+ var tds = row.map(function (yearData) {
+ var _classNameMap;
+
+ var classNameMap = (_classNameMap = {}, (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-cell', 1), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);
+ var clickHandler = void 0;
+ if (yearData.year < startYear) {
+ clickHandler = _this2.previousDecade;
+ } else if (yearData.year > endYear) {
+ clickHandler = _this2.nextDecade;
+ } else {
+ clickHandler = chooseYear.bind(_this2, yearData.year);
+ }
+ return _react2['default'].createElement(
+ 'td',
+ {
+ role: 'gridcell',
+ title: yearData.title,
+ key: yearData.content,
+ onClick: clickHandler,
+ className: (0, _classnames2['default'])(classNameMap)
+ },
+ _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-year'
+ },
+ yearData.content
+ )
+ );
+ });
+ return _react2['default'].createElement(
+ 'tr',
+ { key: index, role: 'row' },
+ tds
+ );
+ });
+
+ var decadePanel = void 0;
+ if (this.state.showDecadePanel) {
+ decadePanel = _react2['default'].createElement(_DecadePanel2['default'], {
+ locale: locale,
+ value: value,
+ rootPrefixCls: props.rootPrefixCls,
+ onSelect: this.onDecadePanelSelect
+ });
+ }
+
+ return _react2['default'].createElement(
+ 'div',
+ { className: this.prefixCls },
+ _react2['default'].createElement(
+ 'div',
+ null,
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-header' },
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-prev-decade-btn',
+ role: 'button',
+ onClick: this.previousDecade,
+ title: locale.previousDecade
+ }),
+ _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-decade-select',
+ role: 'button',
+ onClick: this.showDecadePanel,
+ title: locale.decadeSelect
+ },
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-decade-select-content' },
+ startYear,
+ '-',
+ endYear
+ ),
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-decade-select-arrow' },
+ 'x'
+ )
+ ),
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-next-decade-btn',
+ role: 'button',
+ onClick: this.nextDecade,
+ title: locale.nextDecade
+ })
+ ),
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-body' },
+ _react2['default'].createElement(
+ 'table',
+ { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },
+ _react2['default'].createElement(
+ 'tbody',
+ { className: prefixCls + '-tbody' },
+ yeasEls
+ )
+ )
+ )
+ ),
+ decadePanel
+ );
+ }
+ }]);
+ return YearPanel;
+ }(_react2['default'].Component);
+
+ exports['default'] = YearPanel;
+
+
+ YearPanel.propTypes = {
+ rootPrefixCls: _propTypes2['default'].string,
+ value: _propTypes2['default'].object,
+ defaultValue: _propTypes2['default'].object
+ };
+
+ YearPanel.defaultProps = {
+ onSelect: function onSelect() {}
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 376 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var ROW = 4;
+ var COL = 3;
+
+
+ function goYear(direction) {
+ var next = this.state.value.clone();
+ next.add(direction, 'years');
+ this.setState({
+ value: next
+ });
+ }
+
+ function chooseDecade(year, event) {
+ var next = this.state.value.clone();
+ next.year(year);
+ next.month(this.state.value.month());
+ this.props.onSelect(next);
+ event.preventDefault();
+ }
+
+ var DecadePanel = function (_React$Component) {
+ (0, _inherits3['default'])(DecadePanel, _React$Component);
+
+ function DecadePanel(props) {
+ (0, _classCallCheck3['default'])(this, DecadePanel);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (DecadePanel.__proto__ || Object.getPrototypeOf(DecadePanel)).call(this, props));
+
+ _this.state = {
+ value: props.value || props.defaultValue
+ };
+
+ // bind methods
+ _this.prefixCls = props.rootPrefixCls + '-decade-panel';
+ _this.nextCentury = goYear.bind(_this, 100);
+ _this.previousCentury = goYear.bind(_this, -100);
+ return _this;
+ }
+
+ (0, _createClass3['default'])(DecadePanel, [{
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var value = this.state.value;
+ var locale = this.props.locale;
+ var currentYear = value.year();
+ var startYear = parseInt(currentYear / 100, 10) * 100;
+ var preYear = startYear - 10;
+ var endYear = startYear + 99;
+ var decades = [];
+ var index = 0;
+ var prefixCls = this.prefixCls;
+
+ for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
+ decades[rowIndex] = [];
+ for (var colIndex = 0; colIndex < COL; colIndex++) {
+ var startDecade = preYear + index * 10;
+ var endDecade = preYear + index * 10 + 9;
+ decades[rowIndex][colIndex] = {
+ startDecade: startDecade,
+ endDecade: endDecade
+ };
+ index++;
+ }
+ }
+
+ var decadesEls = decades.map(function (row, decadeIndex) {
+ var tds = row.map(function (decadeData) {
+ var _classNameMap;
+
+ var dStartDecade = decadeData.startDecade;
+ var dEndDecade = decadeData.endDecade;
+ var isLast = dStartDecade < startYear;
+ var isNext = dEndDecade > endYear;
+ var classNameMap = (_classNameMap = {}, (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-cell', 1), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-last-century-cell', isLast), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);
+ var content = dStartDecade + '-' + dEndDecade;
+ var clickHandler = void 0;
+ if (isLast) {
+ clickHandler = _this2.previousCentury;
+ } else if (isNext) {
+ clickHandler = _this2.nextCentury;
+ } else {
+ clickHandler = chooseDecade.bind(_this2, dStartDecade);
+ }
+ return _react2['default'].createElement(
+ 'td',
+ {
+ key: dStartDecade,
+ onClick: clickHandler,
+ role: 'gridcell',
+ className: (0, _classnames2['default'])(classNameMap)
+ },
+ _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-decade'
+ },
+ content
+ )
+ );
+ });
+ return _react2['default'].createElement(
+ 'tr',
+ { key: decadeIndex, role: 'row' },
+ tds
+ );
+ });
+
+ return _react2['default'].createElement(
+ 'div',
+ { className: this.prefixCls },
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-header' },
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-prev-century-btn',
+ role: 'button',
+ onClick: this.previousCentury,
+ title: locale.previousCentury
+ }),
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-century' },
+ startYear,
+ '-',
+ endYear
+ ),
+ _react2['default'].createElement('a', {
+ className: prefixCls + '-next-century-btn',
+ role: 'button',
+ onClick: this.nextCentury,
+ title: locale.nextCentury
+ })
+ ),
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-body' },
+ _react2['default'].createElement(
+ 'table',
+ { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },
+ _react2['default'].createElement(
+ 'tbody',
+ { className: prefixCls + '-tbody' },
+ decadesEls
+ )
+ )
+ )
+ );
+ }
+ }]);
+ return DecadePanel;
+ }(_react2['default'].Component);
+
+ exports['default'] = DecadePanel;
+
+
+ DecadePanel.propTypes = {
+ locale: _propTypes2['default'].object,
+ value: _propTypes2['default'].object,
+ defaultValue: _propTypes2['default'].object,
+ rootPrefixCls: _propTypes2['default'].string
+ };
+
+ DecadePanel.defaultProps = {
+ onSelect: function onSelect() {}
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 377 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _index = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var ROW = 4;
+ var COL = 3;
+
+ function chooseMonth(month) {
+ var next = this.state.value.clone();
+ next.month(month);
+ this.setAndSelectValue(next);
+ }
+
+ function noop() {}
+
+ var MonthTable = function (_Component) {
+ (0, _inherits3['default'])(MonthTable, _Component);
+
+ function MonthTable(props) {
+ (0, _classCallCheck3['default'])(this, MonthTable);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (MonthTable.__proto__ || Object.getPrototypeOf(MonthTable)).call(this, props));
+
+ _this.state = {
+ value: props.value
+ };
+ return _this;
+ }
+
+ (0, _createClass3['default'])(MonthTable, [{
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(nextProps) {
+ if ('value' in nextProps) {
+ this.setState({
+ value: nextProps.value
+ });
+ }
+ }
+ }, {
+ key: 'setAndSelectValue',
+ value: function setAndSelectValue(value) {
+ this.setState({
+ value: value
+ });
+ this.props.onSelect(value);
+ }
+ }, {
+ key: 'months',
+ value: function months() {
+ var value = this.state.value;
+ var current = value.clone();
+ var months = [];
+ var index = 0;
+ for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
+ months[rowIndex] = [];
+ for (var colIndex = 0; colIndex < COL; colIndex++) {
+ current.month(index);
+ var content = (0, _index.getMonthName)(current);
+ months[rowIndex][colIndex] = {
+ value: index,
+ content: content,
+ title: content
+ };
+ index++;
+ }
+ }
+ return months;
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var props = this.props;
+ var value = this.state.value;
+ var today = (0, _index.getTodayTime)(value);
+ var months = this.months();
+ var currentMonth = value.month();
+ var prefixCls = props.prefixCls,
+ locale = props.locale,
+ contentRender = props.contentRender,
+ cellRender = props.cellRender;
+
+ var monthsEls = months.map(function (month, index) {
+ var tds = month.map(function (monthData) {
+ var _classNameMap;
+
+ var disabled = false;
+ if (props.disabledDate) {
+ var testValue = value.clone();
+ testValue.month(monthData.value);
+ disabled = props.disabledDate(testValue);
+ }
+ var classNameMap = (_classNameMap = {}, (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-cell', 1), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-cell-disabled', disabled), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);
+ var cellEl = void 0;
+ if (cellRender) {
+ var currentValue = value.clone();
+ currentValue.month(monthData.value);
+ cellEl = cellRender(currentValue, locale);
+ } else {
+ var content = void 0;
+ if (contentRender) {
+ var _currentValue = value.clone();
+ _currentValue.month(monthData.value);
+ content = contentRender(_currentValue, locale);
+ } else {
+ content = monthData.content;
+ }
+ cellEl = _react2['default'].createElement(
+ 'a',
+ { className: prefixCls + '-month' },
+ content
+ );
+ }
+ return _react2['default'].createElement(
+ 'td',
+ {
+ role: 'gridcell',
+ key: monthData.value,
+ onClick: disabled ? null : chooseMonth.bind(_this2, monthData.value),
+ title: monthData.title,
+ className: (0, _classnames2['default'])(classNameMap)
+ },
+ cellEl
+ );
+ });
+ return _react2['default'].createElement(
+ 'tr',
+ { key: index, role: 'row' },
+ tds
+ );
+ });
+
+ return _react2['default'].createElement(
+ 'table',
+ { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },
+ _react2['default'].createElement(
+ 'tbody',
+ { className: prefixCls + '-tbody' },
+ monthsEls
+ )
+ );
+ }
+ }]);
+ return MonthTable;
+ }(_react.Component);
+
+ MonthTable.defaultProps = {
+ onSelect: noop
+ };
+ MonthTable.propTypes = {
+ onSelect: _propTypes2['default'].func,
+ cellRender: _propTypes2['default'].func,
+ prefixCls: _propTypes2['default'].string,
+ value: _propTypes2['default'].object
+ };
+ exports['default'] = MonthTable;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 378 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = mapSelf;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function mirror(o) {
+ return o;
+ }
+
+ function mapSelf(children) {
+ // return ReactFragment
+ return _react2['default'].Children.map(children, mirror);
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 379 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _mapSelf = __webpack_require__(378);
+
+ var _mapSelf2 = _interopRequireDefault(_mapSelf);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _TodayButton = __webpack_require__(380);
+
+ var _TodayButton2 = _interopRequireDefault(_TodayButton);
+
+ var _OkButton = __webpack_require__(381);
+
+ var _OkButton2 = _interopRequireDefault(_OkButton);
+
+ var _TimePickerButton = __webpack_require__(382);
+
+ var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var CalendarFooter = (0, _createReactClass2['default'])({
+ displayName: 'CalendarFooter',
+
+ propTypes: {
+ prefixCls: _propTypes2['default'].string,
+ showDateInput: _propTypes2['default'].bool,
+ disabledTime: _propTypes2['default'].any,
+ timePicker: _propTypes2['default'].element,
+ selectedValue: _propTypes2['default'].any,
+ showOk: _propTypes2['default'].bool,
+ onSelect: _propTypes2['default'].func,
+ value: _propTypes2['default'].object,
+ renderFooter: _propTypes2['default'].func,
+ defaultValue: _propTypes2['default'].object
+ },
+
+ onSelect: function onSelect(value) {
+ this.props.onSelect(value);
+ },
+ getRootDOMNode: function getRootDOMNode() {
+ return _reactDom2['default'].findDOMNode(this);
+ },
+ render: function render() {
+ var props = this.props;
+ var value = props.value,
+ prefixCls = props.prefixCls,
+ showOk = props.showOk,
+ timePicker = props.timePicker,
+ renderFooter = props.renderFooter;
+
+ var footerEl = null;
+ var extraFooter = renderFooter();
+ if (props.showToday || timePicker || extraFooter) {
+ var _cx;
+
+ var nowEl = void 0;
+ if (props.showToday) {
+ nowEl = _react2['default'].createElement(_TodayButton2['default'], (0, _extends3['default'])({}, props, { value: value }));
+ }
+ var okBtn = void 0;
+ if (showOk === true || showOk !== false && !!props.timePicker) {
+ okBtn = _react2['default'].createElement(_OkButton2['default'], props);
+ }
+ var timePickerBtn = void 0;
+ if (!!props.timePicker) {
+ timePickerBtn = _react2['default'].createElement(_TimePickerButton2['default'], props);
+ }
+
+ var footerBtn = void 0;
+ if (nowEl || timePickerBtn || okBtn) {
+ footerBtn = _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-footer-btn' },
+ (0, _mapSelf2['default'])([nowEl, timePickerBtn, okBtn])
+ );
+ }
+ var cls = (0, _classnames2['default'])((_cx = {}, (0, _defineProperty3['default'])(_cx, prefixCls + '-footer', true), (0, _defineProperty3['default'])(_cx, prefixCls + '-footer-show-ok', okBtn), _cx));
+ footerEl = _react2['default'].createElement(
+ 'div',
+ { className: cls },
+ extraFooter,
+ footerBtn
+ );
+ }
+ return footerEl;
+ }
+ });
+
+ exports['default'] = CalendarFooter;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 380 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = TodayButton;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _util = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function TodayButton(_ref) {
+ var prefixCls = _ref.prefixCls,
+ locale = _ref.locale,
+ value = _ref.value,
+ timePicker = _ref.timePicker,
+ disabled = _ref.disabled,
+ disabledDate = _ref.disabledDate,
+ onToday = _ref.onToday,
+ text = _ref.text;
+
+ var localeNow = (!text && timePicker ? locale.now : text) || locale.today;
+ var disabledToday = disabledDate && !(0, _util.isAllowedDate)((0, _util.getTodayTime)(value), disabledDate);
+ var isDisabled = disabledToday || disabled;
+ var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';
+ return _react2['default'].createElement(
+ 'a',
+ {
+ className: prefixCls + '-today-btn ' + disabledTodayClass,
+ role: 'button',
+ onClick: isDisabled ? null : onToday,
+ title: (0, _util.getTodayTimeStr)(value)
+ },
+ localeNow
+ );
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 381 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = OkButton;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function OkButton(_ref) {
+ var prefixCls = _ref.prefixCls,
+ locale = _ref.locale,
+ okDisabled = _ref.okDisabled,
+ onOk = _ref.onOk;
+
+ var className = prefixCls + "-ok-btn";
+ if (okDisabled) {
+ className += " " + prefixCls + "-ok-btn-disabled";
+ }
+ return _react2["default"].createElement(
+ "a",
+ {
+ className: className,
+ role: "button",
+ onClick: okDisabled ? null : onOk
+ },
+ locale.ok
+ );
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 382 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ exports['default'] = TimePickerButton;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames2 = __webpack_require__(3);
+
+ var _classnames3 = _interopRequireDefault(_classnames2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function TimePickerButton(_ref) {
+ var _classnames;
+
+ var prefixCls = _ref.prefixCls,
+ locale = _ref.locale,
+ showTimePicker = _ref.showTimePicker,
+ onOpenTimePicker = _ref.onOpenTimePicker,
+ onCloseTimePicker = _ref.onCloseTimePicker,
+ timePickerDisabled = _ref.timePickerDisabled;
+
+ var className = (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-time-picker-btn', true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-time-picker-btn-disabled', timePickerDisabled), _classnames));
+ var onClick = null;
+ if (!timePickerDisabled) {
+ onClick = showTimePicker ? onCloseTimePicker : onOpenTimePicker;
+ }
+ return _react2['default'].createElement(
+ 'a',
+ {
+ className: className,
+ role: 'button',
+ onClick: onClick
+ },
+ showTimePicker ? locale.dateSelect : locale.timeSelect
+ );
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 383 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ var _index = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function getNow() {
+ return (0, _moment2['default'])();
+ }
+
+ function getNowByCurrentStateValue(value) {
+ var ret = void 0;
+ if (value) {
+ ret = (0, _index.getTodayTime)(value);
+ } else {
+ ret = getNow();
+ }
+ return ret;
+ }
+
+ var CalendarMixin = {
+ propTypes: {
+ value: _propTypes2['default'].object,
+ defaultValue: _propTypes2['default'].object,
+ onKeyDown: _propTypes2['default'].func
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ onKeyDown: noop
+ };
+ },
+ getInitialState: function getInitialState() {
+ var props = this.props;
+ var value = props.value || props.defaultValue || getNow();
+ return {
+ value: value,
+ selectedValue: props.selectedValue || props.defaultSelectedValue
+ };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
+ var value = nextProps.value;
+ var selectedValue = nextProps.selectedValue;
+
+ if ('value' in nextProps) {
+ value = value || nextProps.defaultValue || getNowByCurrentStateValue(this.state.value);
+ this.setState({
+ value: value
+ });
+ }
+ if ('selectedValue' in nextProps) {
+ this.setState({
+ selectedValue: selectedValue
+ });
+ }
+ },
+ onSelect: function onSelect(value, cause) {
+ if (value) {
+ this.setValue(value);
+ }
+ this.setSelectedValue(value, cause);
+ },
+ renderRoot: function renderRoot(newProps) {
+ var _className;
+
+ var props = this.props;
+ var prefixCls = props.prefixCls;
+
+ var className = (_className = {}, (0, _defineProperty3['default'])(_className, prefixCls, 1), (0, _defineProperty3['default'])(_className, prefixCls + '-hidden', !props.visible), (0, _defineProperty3['default'])(_className, props.className, !!props.className), (0, _defineProperty3['default'])(_className, newProps.className, !!newProps.className), _className);
+
+ return _react2['default'].createElement(
+ 'div',
+ {
+ ref: 'root',
+ className: '' + (0, _classnames2['default'])(className),
+ style: this.props.style,
+ tabIndex: '0',
+ onKeyDown: this.onKeyDown
+ },
+ newProps.children
+ );
+ },
+ setSelectedValue: function setSelectedValue(selectedValue, cause) {
+ // if (this.isAllowedDate(selectedValue)) {
+ if (!('selectedValue' in this.props)) {
+ this.setState({
+ selectedValue: selectedValue
+ });
+ }
+ this.props.onSelect(selectedValue, cause);
+ // }
+ },
+ setValue: function setValue(value) {
+ var originalValue = this.state.value;
+ if (!('value' in this.props)) {
+ this.setState({
+ value: value
+ });
+ }
+ if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {
+ this.props.onChange(value);
+ }
+ },
+ isAllowedDate: function isAllowedDate(value) {
+ var disabledDate = this.props.disabledDate;
+ var disabledTime = this.props.disabledTime;
+ return (0, _index.isAllowedDate)(value, disabledDate, disabledTime);
+ }
+ };
+
+ exports['default'] = CalendarMixin;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 384 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _en_US = __webpack_require__(385);
+
+ var _en_US2 = _interopRequireDefault(_en_US);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ exports['default'] = {
+ propTypes: {
+ className: _propTypes2['default'].string,
+ locale: _propTypes2['default'].object,
+ style: _propTypes2['default'].object,
+ visible: _propTypes2['default'].bool,
+ onSelect: _propTypes2['default'].func,
+ prefixCls: _propTypes2['default'].string,
+ onChange: _propTypes2['default'].func,
+ onOk: _propTypes2['default'].func
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ locale: _en_US2['default'],
+ style: {},
+ visible: true,
+ prefixCls: 'rc-calendar',
+ className: '',
+ onSelect: noop,
+ onChange: noop,
+ onClear: noop,
+ renderFooter: function renderFooter() {
+ return null;
+ },
+ renderSidebar: function renderSidebar() {
+ return null;
+ }
+ };
+ },
+ shouldComponentUpdate: function shouldComponentUpdate(nextProps) {
+ return this.props.visible || nextProps.visible;
+ },
+ getFormat: function getFormat() {
+ var format = this.props.format;
+ var _props = this.props,
+ locale = _props.locale,
+ timePicker = _props.timePicker;
+
+ if (!format) {
+ if (timePicker) {
+ format = locale.dateTimeFormat;
+ } else {
+ format = locale.dateFormat;
+ }
+ }
+ return format;
+ },
+ focus: function focus() {
+ if (this.refs.root) {
+ this.refs.root.focus();
+ }
+ }
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 385 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = {
+ today: 'Today',
+ now: 'Now',
+ backToToday: 'Back to today',
+ ok: 'Ok',
+ clear: 'Clear',
+ month: 'Month',
+ year: 'Year',
+ timeSelect: 'Select time',
+ dateSelect: 'Select date',
+ monthSelect: 'Choose a month',
+ yearSelect: 'Choose a year',
+ decadeSelect: 'Choose a decade',
+ yearFormat: 'YYYY',
+ dateFormat: 'M/D/YYYY',
+ dayFormat: 'D',
+ dateTimeFormat: 'M/D/YYYY HH:mm:ss',
+ monthBeforeYear: true,
+ previousMonth: 'Previous month (PageUp)',
+ nextMonth: 'Next month (PageDown)',
+ previousYear: 'Last year (Control + left)',
+ nextYear: 'Next year (Control + right)',
+ previousDecade: 'Last decade',
+ nextDecade: 'Next decade',
+ previousCentury: 'Last century',
+ nextCentury: 'Next century'
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 386 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var DateInput = (0, _createReactClass2['default'])({
+ displayName: 'DateInput',
+
+ propTypes: {
+ prefixCls: _propTypes2['default'].string,
+ timePicker: _propTypes2['default'].object,
+ value: _propTypes2['default'].object,
+ disabledTime: _propTypes2['default'].any,
+ format: _propTypes2['default'].string,
+ locale: _propTypes2['default'].object,
+ disabledDate: _propTypes2['default'].func,
+ onChange: _propTypes2['default'].func,
+ onClear: _propTypes2['default'].func,
+ placeholder: _propTypes2['default'].string,
+ onSelect: _propTypes2['default'].func,
+ selectedValue: _propTypes2['default'].object
+ },
+
+ getInitialState: function getInitialState() {
+ var selectedValue = this.props.selectedValue;
+ return {
+ str: selectedValue && selectedValue.format(this.props.format) || '',
+ invalid: false
+ };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
+ // when popup show, click body will call this, bug!
+ var selectedValue = nextProps.selectedValue;
+ this.setState({
+ str: selectedValue && selectedValue.format(nextProps.format) || '',
+ invalid: false
+ });
+ },
+ onInputChange: function onInputChange(event) {
+ var str = event.target.value;
+ this.setState({
+ str: str
+ });
+ var value = void 0;
+ var _props = this.props,
+ disabledDate = _props.disabledDate,
+ format = _props.format,
+ onChange = _props.onChange;
+
+ if (str) {
+ var parsed = (0, _moment2['default'])(str, format, true);
+ if (!parsed.isValid()) {
+ this.setState({
+ invalid: true
+ });
+ return;
+ }
+ value = this.props.value.clone();
+ value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
+
+ if (value && (!disabledDate || !disabledDate(value))) {
+ var originalValue = this.props.selectedValue;
+ if (originalValue && value) {
+ if (!originalValue.isSame(value)) {
+ onChange(value);
+ }
+ } else if (originalValue !== value) {
+ onChange(value);
+ }
+ } else {
+ this.setState({
+ invalid: true
+ });
+ return;
+ }
+ } else {
+ onChange(null);
+ }
+ this.setState({
+ invalid: false
+ });
+ },
+ onClear: function onClear() {
+ this.setState({
+ str: ''
+ });
+ this.props.onClear(null);
+ },
+ getRootDOMNode: function getRootDOMNode() {
+ return _reactDom2['default'].findDOMNode(this);
+ },
+ focus: function focus() {
+ this.refs.dateInput.focus();
+ },
+ render: function render() {
+ var props = this.props;
+ var _state = this.state,
+ invalid = _state.invalid,
+ str = _state.str;
+ var locale = props.locale,
+ prefixCls = props.prefixCls,
+ placeholder = props.placeholder;
+
+ var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
+ return _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-input-wrap' },
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-date-input-wrap' },
+ _react2['default'].createElement('input', {
+ ref: 'dateInput',
+ className: prefixCls + '-input ' + invalidClass,
+ value: str,
+ disabled: props.disabled,
+ placeholder: placeholder,
+ onChange: this.onInputChange
+ })
+ ),
+ props.showClear ? _react2['default'].createElement('a', {
+ className: prefixCls + '-clear-btn',
+ role: 'button',
+ title: locale.clear,
+ onClick: this.onClear
+ }) : null
+ );
+ }
+ });
+
+ exports['default'] = DateInput;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 387 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _createChainedFunction = __webpack_require__(388);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ var _KeyCode = __webpack_require__(195);
+
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
+
+ var _placements = __webpack_require__(389);
+
+ var _placements2 = _interopRequireDefault(_placements);
+
+ var _rcTrigger = __webpack_require__(390);
+
+ var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function refFn(field, component) {
+ this[field] = component;
+ }
+
+ var Picker = (0, _createReactClass2['default'])({
+ displayName: 'Picker',
+
+ propTypes: {
+ animation: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].string]),
+ disabled: _propTypes2['default'].bool,
+ transitionName: _propTypes2['default'].string,
+ onChange: _propTypes2['default'].func,
+ onOpenChange: _propTypes2['default'].func,
+ children: _propTypes2['default'].func,
+ getCalendarContainer: _propTypes2['default'].func,
+ calendar: _propTypes2['default'].element,
+ style: _propTypes2['default'].object,
+ open: _propTypes2['default'].bool,
+ defaultOpen: _propTypes2['default'].bool,
+ prefixCls: _propTypes2['default'].string,
+ placement: _propTypes2['default'].any,
+ value: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].array]),
+ defaultValue: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].array]),
+ align: _propTypes2['default'].object
+ },
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ prefixCls: 'rc-calendar-picker',
+ style: {},
+ align: {},
+ placement: 'bottomLeft',
+ defaultOpen: false,
+ onChange: noop,
+ onOpenChange: noop
+ };
+ },
+ getInitialState: function getInitialState() {
+ var props = this.props;
+ var open = void 0;
+ if ('open' in props) {
+ open = props.open;
+ } else {
+ open = props.defaultOpen;
+ }
+ var value = props.value || props.defaultValue;
+ this.saveCalendarRef = refFn.bind(this, 'calendarInstance');
+ return {
+ open: open,
+ value: value
+ };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
+ var value = nextProps.value,
+ open = nextProps.open;
+
+ if ('value' in nextProps) {
+ this.setState({
+ value: value
+ });
+ }
+ if (open !== undefined) {
+ this.setState({
+ open: open
+ });
+ }
+ },
+ componentDidUpdate: function componentDidUpdate(_, prevState) {
+ if (!prevState.open && this.state.open) {
+ // setTimeout is for making sure saveCalendarRef happen before focusCalendar
+ this.focusTimeout = setTimeout(this.focusCalendar, 0, this);
+ }
+ },
+ componentWillUnmount: function componentWillUnmount() {
+ clearTimeout(this.focusTimeout);
+ },
+ onCalendarKeyDown: function onCalendarKeyDown(event) {
+ if (event.keyCode === _KeyCode2['default'].ESC) {
+ event.stopPropagation();
+ this.close(this.focus);
+ }
+ },
+ onCalendarSelect: function onCalendarSelect(value) {
+ var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ var props = this.props;
+ if (!('value' in props)) {
+ this.setState({
+ value: value
+ });
+ }
+ if (cause.source === 'keyboard' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
+ this.close(this.focus);
+ }
+ props.onChange(value);
+ },
+ onKeyDown: function onKeyDown(event) {
+ if (event.keyCode === _KeyCode2['default'].DOWN && !this.state.open) {
+ this.open();
+ event.preventDefault();
+ }
+ },
+ onCalendarOk: function onCalendarOk() {
+ this.close(this.focus);
+ },
+ onCalendarClear: function onCalendarClear() {
+ this.close(this.focus);
+ },
+ onVisibleChange: function onVisibleChange(open) {
+ this.setOpen(open);
+ },
+ getCalendarElement: function getCalendarElement() {
+ var props = this.props;
+ var state = this.state;
+ var calendarProps = props.calendar.props;
+ var value = state.value;
+
+ var defaultValue = value;
+ var extraProps = {
+ ref: this.saveCalendarRef,
+ defaultValue: defaultValue || calendarProps.defaultValue,
+ selectedValue: value,
+ onKeyDown: this.onCalendarKeyDown,
+ onOk: (0, _createChainedFunction2['default'])(calendarProps.onOk, this.onCalendarOk),
+ onSelect: (0, _createChainedFunction2['default'])(calendarProps.onSelect, this.onCalendarSelect),
+ onClear: (0, _createChainedFunction2['default'])(calendarProps.onClear, this.onCalendarClear)
+ };
+
+ return _react2['default'].cloneElement(props.calendar, extraProps);
+ },
+ setOpen: function setOpen(open, callback) {
+ var onOpenChange = this.props.onOpenChange;
+
+ if (this.state.open !== open) {
+ if (!('open' in this.props)) {
+ this.setState({
+ open: open
+ }, callback);
+ }
+ onOpenChange(open);
+ }
+ },
+ open: function open(callback) {
+ this.setOpen(true, callback);
+ },
+ close: function close(callback) {
+ this.setOpen(false, callback);
+ },
+ focus: function focus() {
+ if (!this.state.open) {
+ _reactDom2['default'].findDOMNode(this).focus();
+ }
+ },
+ focusCalendar: function focusCalendar() {
+ if (this.state.open && this.calendarInstance !== null) {
+ this.calendarInstance.focus();
+ }
+ },
+ render: function render() {
+ var props = this.props;
+ var prefixCls = props.prefixCls,
+ placement = props.placement,
+ style = props.style,
+ getCalendarContainer = props.getCalendarContainer,
+ align = props.align,
+ animation = props.animation,
+ disabled = props.disabled,
+ transitionName = props.transitionName,
+ children = props.children;
+
+ var state = this.state;
+ return _react2['default'].createElement(
+ _rcTrigger2['default'],
+ {
+ popup: this.getCalendarElement(),
+ popupAlign: align,
+ builtinPlacements: _placements2['default'],
+ popupPlacement: placement,
+ action: disabled && !state.open ? [] : ['click'],
+ destroyPopupOnHide: true,
+ getPopupContainer: getCalendarContainer,
+ popupStyle: style,
+ popupAnimation: animation,
+ popupTransitionName: transitionName,
+ popupVisible: state.open,
+ onPopupVisibleChange: this.onVisibleChange,
+ prefixCls: prefixCls
+ },
+ _react2['default'].cloneElement(children(state, props), { onKeyDown: this.onKeyDown })
+ );
+ }
+ });
+
+ exports['default'] = Picker;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 388 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = createChainedFunction;
+ /**
+ * Safe chained function
+ *
+ * Will only create a new function if needed,
+ * otherwise will pass back existing functions or null.
+ *
+ * @returns {function|null}
+ */
+ function createChainedFunction() {
+ var args = [].slice.call(arguments, 0);
+ if (args.length === 1) {
+ return args[0];
+ }
+
+ return function chainedFunction() {
+ for (var i = 0; i < args.length; i++) {
+ if (args[i] && args[i].apply) {
+ args[i].apply(this, arguments);
+ }
+ }
+ };
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 389 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var autoAdjustOverflow = {
+ adjustX: 1,
+ adjustY: 1
+ };
+
+ var targetOffset = [0, 0];
+
+ var placements = {
+ bottomLeft: {
+ points: ['tl', 'tl'],
+ overflow: autoAdjustOverflow,
+ offset: [0, -3],
+ targetOffset: targetOffset
+ },
+ bottomRight: {
+ points: ['tr', 'tr'],
+ overflow: autoAdjustOverflow,
+ offset: [0, -3],
+ targetOffset: targetOffset
+ },
+ topRight: {
+ points: ['br', 'br'],
+ overflow: autoAdjustOverflow,
+ offset: [0, 3],
+ targetOffset: targetOffset
+ },
+ topLeft: {
+ points: ['bl', 'bl'],
+ overflow: autoAdjustOverflow,
+ offset: [0, 3],
+ targetOffset: targetOffset
+ }
+ };
+
+ exports['default'] = placements;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 390 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _contains = __webpack_require__(391);
+
+ var _contains2 = _interopRequireDefault(_contains);
+
+ var _addEventListener = __webpack_require__(392);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ var _Popup = __webpack_require__(393);
+
+ var _Popup2 = _interopRequireDefault(_Popup);
+
+ var _utils = __webpack_require__(406);
+
+ var _getContainerRenderMixin = __webpack_require__(407);
+
+ var _getContainerRenderMixin2 = _interopRequireDefault(_getContainerRenderMixin);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function returnEmptyString() {
+ return '';
+ }
+
+ function returnDocument() {
+ return window.document;
+ }
+
+ var isMobile = typeof navigator !== 'undefined' && !!navigator.userAgent.match(/(Android|iPhone|iPad|iPod|iOS|UCWEB)/i);
+
+ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];
+
+ var Trigger = (0, _createReactClass2['default'])({
+ displayName: 'Trigger',
+ propTypes: {
+ children: _propTypes2['default'].any,
+ action: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].arrayOf(_propTypes2['default'].string)]),
+ showAction: _propTypes2['default'].any,
+ hideAction: _propTypes2['default'].any,
+ getPopupClassNameFromAlign: _propTypes2['default'].any,
+ onPopupVisibleChange: _propTypes2['default'].func,
+ afterPopupVisibleChange: _propTypes2['default'].func,
+ popup: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func]).isRequired,
+ popupStyle: _propTypes2['default'].object,
+ prefixCls: _propTypes2['default'].string,
+ popupClassName: _propTypes2['default'].string,
+ popupPlacement: _propTypes2['default'].string,
+ builtinPlacements: _propTypes2['default'].object,
+ popupTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
+ popupAnimation: _propTypes2['default'].any,
+ mouseEnterDelay: _propTypes2['default'].number,
+ mouseLeaveDelay: _propTypes2['default'].number,
+ zIndex: _propTypes2['default'].number,
+ focusDelay: _propTypes2['default'].number,
+ blurDelay: _propTypes2['default'].number,
+ getPopupContainer: _propTypes2['default'].func,
+ getDocument: _propTypes2['default'].func,
+ destroyPopupOnHide: _propTypes2['default'].bool,
+ mask: _propTypes2['default'].bool,
+ maskClosable: _propTypes2['default'].bool,
+ onPopupAlign: _propTypes2['default'].func,
+ popupAlign: _propTypes2['default'].object,
+ popupVisible: _propTypes2['default'].bool,
+ maskTransitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
+ maskAnimation: _propTypes2['default'].string
+ },
+
+ mixins: [(0, _getContainerRenderMixin2['default'])({
+ autoMount: false,
+
+ isVisible: function isVisible(instance) {
+ return instance.state.popupVisible;
+ },
+ getContainer: function getContainer(instance) {
+ var props = instance.props;
+
+ var popupContainer = document.createElement('div');
+ // Make sure default popup container will never cause scrollbar appearing
+ // https://github.com/react-component/trigger/issues/41
+ popupContainer.style.position = 'absolute';
+ popupContainer.style.top = '0';
+ popupContainer.style.left = '0';
+ popupContainer.style.width = '100%';
+ var mountNode = props.getPopupContainer ? props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : props.getDocument().body;
+ mountNode.appendChild(popupContainer);
+ return popupContainer;
+ }
+ })],
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ prefixCls: 'rc-trigger-popup',
+ getPopupClassNameFromAlign: returnEmptyString,
+ getDocument: returnDocument,
+ onPopupVisibleChange: noop,
+ afterPopupVisibleChange: noop,
+ onPopupAlign: noop,
+ popupClassName: '',
+ mouseEnterDelay: 0,
+ mouseLeaveDelay: 0.1,
+ focusDelay: 0,
+ blurDelay: 0.15,
+ popupStyle: {},
+ destroyPopupOnHide: false,
+ popupAlign: {},
+ defaultPopupVisible: false,
+ mask: false,
+ maskClosable: true,
+ action: [],
+ showAction: [],
+ hideAction: []
+ };
+ },
+ getInitialState: function getInitialState() {
+ var props = this.props;
+ var popupVisible = void 0;
+ if ('popupVisible' in props) {
+ popupVisible = !!props.popupVisible;
+ } else {
+ popupVisible = !!props.defaultPopupVisible;
+ }
+ return {
+ popupVisible: popupVisible
+ };
+ },
+ componentWillMount: function componentWillMount() {
+ var _this = this;
+
+ ALL_HANDLERS.forEach(function (h) {
+ _this['fire' + h] = function (e) {
+ _this.fireEvents(h, e);
+ };
+ });
+ },
+ componentDidMount: function componentDidMount() {
+ this.componentDidUpdate({}, {
+ popupVisible: this.state.popupVisible
+ });
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(_ref) {
+ var popupVisible = _ref.popupVisible;
+
+ if (popupVisible !== undefined) {
+ this.setState({
+ popupVisible: popupVisible
+ });
+ }
+ },
+ componentDidUpdate: function componentDidUpdate(_, prevState) {
+ var props = this.props;
+ var state = this.state;
+ this.renderComponent(null, function () {
+ if (prevState.popupVisible !== state.popupVisible) {
+ props.afterPopupVisibleChange(state.popupVisible);
+ }
+ });
+
+ // We must listen to `mousedown`, edge case:
+ // https://github.com/ant-design/ant-design/issues/5804
+ // https://github.com/react-component/calendar/issues/250
+ // https://github.com/react-component/trigger/issues/50
+ if (state.popupVisible) {
+ var currentDocument = void 0;
+ if (!this.clickOutsideHandler && this.isClickToHide()) {
+ currentDocument = props.getDocument();
+ this.clickOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'mousedown', this.onDocumentClick);
+ }
+ // always hide on mobile
+ // `isMobile` fix: mask clicked will cause below element events triggered
+ // https://github.com/ant-design/ant-design-mobile/issues/1909
+ // https://github.com/ant-design/ant-design-mobile/issues/1928
+ if (!this.touchOutsideHandler && isMobile) {
+ currentDocument = currentDocument || props.getDocument();
+ this.touchOutsideHandler = (0, _addEventListener2['default'])(currentDocument, 'click', this.onDocumentClick);
+ }
+ return;
+ }
+
+ this.clearOutsideHandler();
+ },
+ componentWillUnmount: function componentWillUnmount() {
+ this.clearDelayTimer();
+ this.clearOutsideHandler();
+ },
+ onMouseEnter: function onMouseEnter(e) {
+ this.fireEvents('onMouseEnter', e);
+ this.delaySetPopupVisible(true, this.props.mouseEnterDelay);
+ },
+ onMouseLeave: function onMouseLeave(e) {
+ this.fireEvents('onMouseLeave', e);
+ this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);
+ },
+ onPopupMouseEnter: function onPopupMouseEnter() {
+ this.clearDelayTimer();
+ },
+ onPopupMouseLeave: function onPopupMouseLeave(e) {
+ // https://github.com/react-component/trigger/pull/13
+ // react bug?
+ if (e.relatedTarget && !e.relatedTarget.setTimeout && this._component && this._component.getPopupDomNode && (0, _contains2['default'])(this._component.getPopupDomNode(), e.relatedTarget)) {
+ return;
+ }
+ this.delaySetPopupVisible(false, this.props.mouseLeaveDelay);
+ },
+ onFocus: function onFocus(e) {
+ this.fireEvents('onFocus', e);
+ // incase focusin and focusout
+ this.clearDelayTimer();
+ if (this.isFocusToShow()) {
+ this.focusTime = Date.now();
+ this.delaySetPopupVisible(true, this.props.focusDelay);
+ }
+ },
+ onMouseDown: function onMouseDown(e) {
+ this.fireEvents('onMouseDown', e);
+ this.preClickTime = Date.now();
+ },
+ onTouchStart: function onTouchStart(e) {
+ this.fireEvents('onTouchStart', e);
+ this.preTouchTime = Date.now();
+ },
+ onBlur: function onBlur(e) {
+ this.fireEvents('onBlur', e);
+ this.clearDelayTimer();
+ if (this.isBlurToHide()) {
+ this.delaySetPopupVisible(false, this.props.blurDelay);
+ }
+ },
+ onClick: function onClick(event) {
+ this.fireEvents('onClick', event);
+ // focus will trigger click
+ if (this.focusTime) {
+ var preTime = void 0;
+ if (this.preClickTime && this.preTouchTime) {
+ preTime = Math.min(this.preClickTime, this.preTouchTime);
+ } else if (this.preClickTime) {
+ preTime = this.preClickTime;
+ } else if (this.preTouchTime) {
+ preTime = this.preTouchTime;
+ }
+ if (Math.abs(preTime - this.focusTime) < 20) {
+ return;
+ }
+ this.focusTime = 0;
+ }
+ this.preClickTime = 0;
+ this.preTouchTime = 0;
+ event.preventDefault();
+ var nextVisible = !this.state.popupVisible;
+ if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
+ this.setPopupVisible(!this.state.popupVisible);
+ }
+ },
+ onDocumentClick: function onDocumentClick(event) {
+ if (this.props.mask && !this.props.maskClosable) {
+ return;
+ }
+ var target = event.target;
+ var root = (0, _reactDom.findDOMNode)(this);
+ var popupNode = this.getPopupDomNode();
+ if (!(0, _contains2['default'])(root, target) && !(0, _contains2['default'])(popupNode, target)) {
+ this.close();
+ }
+ },
+ getPopupDomNode: function getPopupDomNode() {
+ // for test
+ if (this._component && this._component.getPopupDomNode) {
+ return this._component.getPopupDomNode();
+ }
+ return null;
+ },
+ getRootDomNode: function getRootDomNode() {
+ return (0, _reactDom.findDOMNode)(this);
+ },
+ getPopupClassNameFromAlign: function getPopupClassNameFromAlign(align) {
+ var className = [];
+ var props = this.props;
+ var popupPlacement = props.popupPlacement,
+ builtinPlacements = props.builtinPlacements,
+ prefixCls = props.prefixCls;
+
+ if (popupPlacement && builtinPlacements) {
+ className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, prefixCls, align));
+ }
+ if (props.getPopupClassNameFromAlign) {
+ className.push(props.getPopupClassNameFromAlign(align));
+ }
+ return className.join(' ');
+ },
+ getPopupAlign: function getPopupAlign() {
+ var props = this.props;
+ var popupPlacement = props.popupPlacement,
+ popupAlign = props.popupAlign,
+ builtinPlacements = props.builtinPlacements;
+
+ if (popupPlacement && builtinPlacements) {
+ return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign);
+ }
+ return popupAlign;
+ },
+ getComponent: function getComponent() {
+ var props = this.props,
+ state = this.state;
+
+ var mouseProps = {};
+ if (this.isMouseEnterToShow()) {
+ mouseProps.onMouseEnter = this.onPopupMouseEnter;
+ }
+ if (this.isMouseLeaveToHide()) {
+ mouseProps.onMouseLeave = this.onPopupMouseLeave;
+ }
+ return _react2['default'].createElement(
+ _Popup2['default'],
+ (0, _extends3['default'])({
+ prefixCls: props.prefixCls,
+ destroyPopupOnHide: props.destroyPopupOnHide,
+ visible: state.popupVisible,
+ className: props.popupClassName,
+ action: props.action,
+ align: this.getPopupAlign(),
+ onAlign: props.onPopupAlign,
+ animation: props.popupAnimation,
+ getClassNameFromAlign: this.getPopupClassNameFromAlign
+ }, mouseProps, {
+ getRootDomNode: this.getRootDomNode,
+ style: props.popupStyle,
+ mask: props.mask,
+ zIndex: props.zIndex,
+ transitionName: props.popupTransitionName,
+ maskAnimation: props.maskAnimation,
+ maskTransitionName: props.maskTransitionName
+ }),
+ typeof props.popup === 'function' ? props.popup() : props.popup
+ );
+ },
+ setPopupVisible: function setPopupVisible(popupVisible) {
+ this.clearDelayTimer();
+ if (this.state.popupVisible !== popupVisible) {
+ if (!('popupVisible' in this.props)) {
+ this.setState({
+ popupVisible: popupVisible
+ });
+ }
+ this.props.onPopupVisibleChange(popupVisible);
+ }
+ },
+ delaySetPopupVisible: function delaySetPopupVisible(visible, delayS) {
+ var _this2 = this;
+
+ var delay = delayS * 1000;
+ this.clearDelayTimer();
+ if (delay) {
+ this.delayTimer = setTimeout(function () {
+ _this2.setPopupVisible(visible);
+ _this2.clearDelayTimer();
+ }, delay);
+ } else {
+ this.setPopupVisible(visible);
+ }
+ },
+ clearDelayTimer: function clearDelayTimer() {
+ if (this.delayTimer) {
+ clearTimeout(this.delayTimer);
+ this.delayTimer = null;
+ }
+ },
+ clearOutsideHandler: function clearOutsideHandler() {
+ if (this.clickOutsideHandler) {
+ this.clickOutsideHandler.remove();
+ this.clickOutsideHandler = null;
+ }
+
+ if (this.touchOutsideHandler) {
+ this.touchOutsideHandler.remove();
+ this.touchOutsideHandler = null;
+ }
+ },
+ createTwoChains: function createTwoChains(event) {
+ var childPros = this.props.children.props;
+ var props = this.props;
+ if (childPros[event] && props[event]) {
+ return this['fire' + event];
+ }
+ return childPros[event] || props[event];
+ },
+ isClickToShow: function isClickToShow() {
+ var _props = this.props,
+ action = _props.action,
+ showAction = _props.showAction;
+
+ return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
+ },
+ isClickToHide: function isClickToHide() {
+ var _props2 = this.props,
+ action = _props2.action,
+ hideAction = _props2.hideAction;
+
+ return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
+ },
+ isMouseEnterToShow: function isMouseEnterToShow() {
+ var _props3 = this.props,
+ action = _props3.action,
+ showAction = _props3.showAction;
+
+ return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
+ },
+ isMouseLeaveToHide: function isMouseLeaveToHide() {
+ var _props4 = this.props,
+ action = _props4.action,
+ hideAction = _props4.hideAction;
+
+ return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
+ },
+ isFocusToShow: function isFocusToShow() {
+ var _props5 = this.props,
+ action = _props5.action,
+ showAction = _props5.showAction;
+
+ return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
+ },
+ isBlurToHide: function isBlurToHide() {
+ var _props6 = this.props,
+ action = _props6.action,
+ hideAction = _props6.hideAction;
+
+ return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
+ },
+ forcePopupAlign: function forcePopupAlign() {
+ if (this.state.popupVisible && this._component && this._component.alignInstance) {
+ this._component.alignInstance.forceAlign();
+ }
+ },
+ fireEvents: function fireEvents(type, e) {
+ var childCallback = this.props.children.props[type];
+ if (childCallback) {
+ childCallback(e);
+ }
+ var callback = this.props[type];
+ if (callback) {
+ callback(e);
+ }
+ },
+ close: function close() {
+ this.setPopupVisible(false);
+ },
+ render: function render() {
+ var props = this.props;
+ var children = props.children;
+ var child = _react2['default'].Children.only(children);
+ var newChildProps = {};
+ if (this.isClickToHide() || this.isClickToShow()) {
+ newChildProps.onClick = this.onClick;
+ newChildProps.onMouseDown = this.onMouseDown;
+ newChildProps.onTouchStart = this.onTouchStart;
+ } else {
+ newChildProps.onClick = this.createTwoChains('onClick');
+ newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
+ newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
+ }
+ if (this.isMouseEnterToShow()) {
+ newChildProps.onMouseEnter = this.onMouseEnter;
+ } else {
+ newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
+ }
+ if (this.isMouseLeaveToHide()) {
+ newChildProps.onMouseLeave = this.onMouseLeave;
+ } else {
+ newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
+ }
+ if (this.isFocusToShow() || this.isBlurToHide()) {
+ newChildProps.onFocus = this.onFocus;
+ newChildProps.onBlur = this.onBlur;
+ } else {
+ newChildProps.onFocus = this.createTwoChains('onFocus');
+ newChildProps.onBlur = this.createTwoChains('onBlur');
+ }
+
+ return _react2['default'].cloneElement(child, newChildProps);
+ }
+ });
+
+ exports['default'] = Trigger;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 391 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = contains;
+ function contains(root, n) {
+ var node = n;
+ while (node) {
+ if (node === root) {
+ return true;
+ }
+ node = node.parentNode;
+ }
+
+ return false;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 392 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = addEventListenerWrap;
+
+ var _addDomEventListener = __webpack_require__(40);
+
+ var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function addEventListenerWrap(target, eventType, cb) {
+ /* eslint camelcase: 2 */
+ var callback = _reactDom2['default'].unstable_batchedUpdates ? function run(e) {
+ _reactDom2['default'].unstable_batchedUpdates(cb, e);
+ } : cb;
+ return (0, _addDomEventListener2['default'])(target, eventType, callback);
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 393 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _rcAlign = __webpack_require__(394);
+
+ var _rcAlign2 = _interopRequireDefault(_rcAlign);
+
+ var _rcAnimate = __webpack_require__(397);
+
+ var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
+
+ var _PopupInner = __webpack_require__(403);
+
+ var _PopupInner2 = _interopRequireDefault(_PopupInner);
+
+ var _LazyRenderBox = __webpack_require__(404);
+
+ var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
+
+ var _utils = __webpack_require__(406);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var Popup = function (_Component) {
+ (0, _inherits3['default'])(Popup, _Component);
+
+ function Popup(props) {
+ (0, _classCallCheck3['default'])(this, Popup);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (Popup.__proto__ || Object.getPrototypeOf(Popup)).call(this, props));
+
+ _initialiseProps.call(_this);
+
+ _this.savePopupRef = _utils.saveRef.bind(_this, 'popupInstance');
+ _this.saveAlignRef = _utils.saveRef.bind(_this, 'alignInstance');
+ return _this;
+ }
+
+ (0, _createClass3['default'])(Popup, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ this.rootNode = this.getPopupDomNode();
+ }
+ }, {
+ key: 'getPopupDomNode',
+ value: function getPopupDomNode() {
+ return _reactDom2['default'].findDOMNode(this.popupInstance);
+ }
+ }, {
+ key: 'getMaskTransitionName',
+ value: function getMaskTransitionName() {
+ var props = this.props;
+ var transitionName = props.maskTransitionName;
+ var animation = props.maskAnimation;
+ if (!transitionName && animation) {
+ transitionName = props.prefixCls + '-' + animation;
+ }
+ return transitionName;
+ }
+ }, {
+ key: 'getTransitionName',
+ value: function getTransitionName() {
+ var props = this.props;
+ var transitionName = props.transitionName;
+ if (!transitionName && props.animation) {
+ transitionName = props.prefixCls + '-' + props.animation;
+ }
+ return transitionName;
+ }
+ }, {
+ key: 'getClassName',
+ value: function getClassName(currentAlignClassName) {
+ return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName;
+ }
+ }, {
+ key: 'getPopupElement',
+ value: function getPopupElement() {
+ var savePopupRef = this.savePopupRef,
+ props = this.props;
+ var align = props.align,
+ style = props.style,
+ visible = props.visible,
+ prefixCls = props.prefixCls,
+ destroyPopupOnHide = props.destroyPopupOnHide;
+
+ var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align));
+ var hiddenClassName = prefixCls + '-hidden';
+ if (!visible) {
+ this.currentAlignClassName = null;
+ }
+ var newStyle = (0, _extends3['default'])({}, style, this.getZIndexStyle());
+ var popupInnerProps = {
+ className: className,
+ prefixCls: prefixCls,
+ ref: savePopupRef,
+ onMouseEnter: props.onMouseEnter,
+ onMouseLeave: props.onMouseLeave,
+ style: newStyle
+ };
+ if (destroyPopupOnHide) {
+ return _react2['default'].createElement(
+ _rcAnimate2['default'],
+ {
+ component: '',
+ exclusive: true,
+ transitionAppear: true,
+ transitionName: this.getTransitionName()
+ },
+ visible ? _react2['default'].createElement(
+ _rcAlign2['default'],
+ {
+ target: this.getTarget,
+ key: 'popup',
+ ref: this.saveAlignRef,
+ monitorWindowResize: true,
+ align: align,
+ onAlign: this.onAlign
+ },
+ _react2['default'].createElement(
+ _PopupInner2['default'],
+ (0, _extends3['default'])({
+ visible: true
+ }, popupInnerProps),
+ props.children
+ )
+ ) : null
+ );
+ }
+ return _react2['default'].createElement(
+ _rcAnimate2['default'],
+ {
+ component: '',
+ exclusive: true,
+ transitionAppear: true,
+ transitionName: this.getTransitionName(),
+ showProp: 'xVisible'
+ },
+ _react2['default'].createElement(
+ _rcAlign2['default'],
+ {
+ target: this.getTarget,
+ key: 'popup',
+ ref: this.saveAlignRef,
+ monitorWindowResize: true,
+ xVisible: visible,
+ childrenProps: { visible: 'xVisible' },
+ disabled: !visible,
+ align: align,
+ onAlign: this.onAlign
+ },
+ _react2['default'].createElement(
+ _PopupInner2['default'],
+ (0, _extends3['default'])({
+ hiddenClassName: hiddenClassName
+ }, popupInnerProps),
+ props.children
+ )
+ )
+ );
+ }
+ }, {
+ key: 'getZIndexStyle',
+ value: function getZIndexStyle() {
+ var style = {};
+ var props = this.props;
+ if (props.zIndex !== undefined) {
+ style.zIndex = props.zIndex;
+ }
+ return style;
+ }
+ }, {
+ key: 'getMaskElement',
+ value: function getMaskElement() {
+ var props = this.props;
+ var maskElement = void 0;
+ if (props.mask) {
+ var maskTransition = this.getMaskTransitionName();
+ maskElement = _react2['default'].createElement(_LazyRenderBox2['default'], {
+ style: this.getZIndexStyle(),
+ key: 'mask',
+ className: props.prefixCls + '-mask',
+ hiddenClassName: props.prefixCls + '-mask-hidden',
+ visible: props.visible
+ });
+ if (maskTransition) {
+ maskElement = _react2['default'].createElement(
+ _rcAnimate2['default'],
+ {
+ key: 'mask',
+ showProp: 'visible',
+ transitionAppear: true,
+ component: '',
+ transitionName: maskTransition
+ },
+ maskElement
+ );
+ }
+ }
+ return maskElement;
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ return _react2['default'].createElement(
+ 'div',
+ null,
+ this.getMaskElement(),
+ this.getPopupElement()
+ );
+ }
+ }]);
+ return Popup;
+ }(_react.Component);
+
+ Popup.propTypes = {
+ visible: _propTypes2['default'].bool,
+ style: _propTypes2['default'].object,
+ getClassNameFromAlign: _propTypes2['default'].func,
+ onAlign: _propTypes2['default'].func,
+ getRootDomNode: _propTypes2['default'].func,
+ onMouseEnter: _propTypes2['default'].func,
+ align: _propTypes2['default'].any,
+ destroyPopupOnHide: _propTypes2['default'].bool,
+ className: _propTypes2['default'].string,
+ prefixCls: _propTypes2['default'].string,
+ onMouseLeave: _propTypes2['default'].func
+ };
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this2 = this;
+
+ this.onAlign = function (popupDomNode, align) {
+ var props = _this2.props;
+ var currentAlignClassName = props.getClassNameFromAlign(align);
+ // FIX: https://github.com/react-component/trigger/issues/56
+ // FIX: https://github.com/react-component/tooltip/issues/79
+ if (_this2.currentAlignClassName !== currentAlignClassName) {
+ _this2.currentAlignClassName = currentAlignClassName;
+ popupDomNode.className = _this2.getClassName(currentAlignClassName);
+ }
+ props.onAlign(popupDomNode, align);
+ };
+
+ this.getTarget = function () {
+ return _this2.props.getRootDomNode();
+ };
+ };
+
+ exports['default'] = Popup;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 394 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ exports.__esModule = true;
+
+ var _Align = __webpack_require__(395);
+
+ var _Align2 = _interopRequireDefault(_Align);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ exports['default'] = _Align2['default']; // export this package's api
+
+ module.exports = exports['default'];
+
+/***/ }),
+/* 395 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ exports.__esModule = true;
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _domAlign = __webpack_require__(50);
+
+ var _domAlign2 = _interopRequireDefault(_domAlign);
+
+ var _addEventListener = __webpack_require__(392);
+
+ var _addEventListener2 = _interopRequireDefault(_addEventListener);
+
+ var _shallowequal = __webpack_require__(71);
+
+ var _shallowequal2 = _interopRequireDefault(_shallowequal);
+
+ var _isWindow = __webpack_require__(396);
+
+ var _isWindow2 = _interopRequireDefault(_isWindow);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function buffer(fn, ms) {
+ var timer = void 0;
+
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+
+ function bufferFn() {
+ clear();
+ timer = setTimeout(fn, ms);
+ }
+
+ bufferFn.clear = clear;
+
+ return bufferFn;
+ }
+
+ var Align = function (_Component) {
+ (0, _inherits3['default'])(Align, _Component);
+
+ function Align() {
+ var _temp, _this, _ret;
+
+ (0, _classCallCheck3['default'])(this, Align);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.forceAlign = function () {
+ var props = _this.props;
+ if (!props.disabled) {
+ var source = _reactDom2['default'].findDOMNode(_this);
+ props.onAlign(source, (0, _domAlign2['default'])(source, props.target(), props.align));
+ }
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
+ }
+
+ Align.prototype.componentDidMount = function componentDidMount() {
+ var props = this.props;
+ // if parent ref not attached .... use document.getElementById
+ this.forceAlign();
+ if (!props.disabled && props.monitorWindowResize) {
+ this.startMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
+ var reAlign = false;
+ var props = this.props;
+
+ if (!props.disabled) {
+ if (prevProps.disabled || !(0, _shallowequal2['default'])(prevProps.align, props.align)) {
+ reAlign = true;
+ } else {
+ var lastTarget = prevProps.target();
+ var currentTarget = props.target();
+ if ((0, _isWindow2['default'])(lastTarget) && (0, _isWindow2['default'])(currentTarget)) {
+ reAlign = false;
+ } else if (lastTarget !== currentTarget) {
+ reAlign = true;
+ }
+ }
+ }
+
+ if (reAlign) {
+ this.forceAlign();
+ }
+
+ if (props.monitorWindowResize && !props.disabled) {
+ this.startMonitorWindowResize();
+ } else {
+ this.stopMonitorWindowResize();
+ }
+ };
+
+ Align.prototype.componentWillUnmount = function componentWillUnmount() {
+ this.stopMonitorWindowResize();
+ };
+
+ Align.prototype.startMonitorWindowResize = function startMonitorWindowResize() {
+ if (!this.resizeHandler) {
+ this.bufferMonitor = buffer(this.forceAlign, this.props.monitorBufferTime);
+ this.resizeHandler = (0, _addEventListener2['default'])(window, 'resize', this.bufferMonitor);
+ }
+ };
+
+ Align.prototype.stopMonitorWindowResize = function stopMonitorWindowResize() {
+ if (this.resizeHandler) {
+ this.bufferMonitor.clear();
+ this.resizeHandler.remove();
+ this.resizeHandler = null;
+ }
+ };
+
+ Align.prototype.render = function render() {
+ var _props = this.props,
+ childrenProps = _props.childrenProps,
+ children = _props.children;
+
+ var child = _react2['default'].Children.only(children);
+ if (childrenProps) {
+ var newProps = {};
+ for (var prop in childrenProps) {
+ if (childrenProps.hasOwnProperty(prop)) {
+ newProps[prop] = this.props[childrenProps[prop]];
+ }
+ }
+ return _react2['default'].cloneElement(child, newProps);
+ }
+ return child;
+ };
+
+ return Align;
+ }(_react.Component);
+
+ Align.propTypes = {
+ childrenProps: _propTypes2['default'].object,
+ align: _propTypes2['default'].object.isRequired,
+ target: _propTypes2['default'].func,
+ onAlign: _propTypes2['default'].func,
+ monitorBufferTime: _propTypes2['default'].number,
+ monitorWindowResize: _propTypes2['default'].bool,
+ disabled: _propTypes2['default'].bool,
+ children: _propTypes2['default'].any
+ };
+ Align.defaultProps = {
+ target: function target() {
+ return window;
+ },
+ onAlign: function onAlign() {},
+ monitorBufferTime: 50,
+ monitorWindowResize: false,
+ disabled: false
+ };
+ exports['default'] = Align;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 396 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ exports.__esModule = true;
+ exports["default"] = isWindow;
+ function isWindow(obj) {
+ /* eslint no-eq-null: 0 */
+ /* eslint eqeqeq: 0 */
+ return obj != null && obj == obj.window;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 397 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _ChildrenUtils = __webpack_require__(398);
+
+ var _AnimateChild = __webpack_require__(399);
+
+ var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
+
+ var _util = __webpack_require__(402);
+
+ var _util2 = _interopRequireDefault(_util);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var defaultKey = 'rc_animate_' + Date.now();
+
+
+ function getChildrenFromProps(props) {
+ var children = props.children;
+ if (_react2['default'].isValidElement(children)) {
+ if (!children.key) {
+ return _react2['default'].cloneElement(children, {
+ key: defaultKey
+ });
+ }
+ }
+ return children;
+ }
+
+ function noop() {}
+
+ var Animate = function (_React$Component) {
+ (0, _inherits3['default'])(Animate, _React$Component);
+
+ // eslint-disable-line
+
+ function Animate(props) {
+ (0, _classCallCheck3['default'])(this, Animate);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props));
+
+ _initialiseProps.call(_this);
+
+ _this.currentlyAnimatingKeys = {};
+ _this.keysToEnter = [];
+ _this.keysToLeave = [];
+
+ _this.state = {
+ children: (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props))
+ };
+
+ _this.childrenRefs = {};
+ return _this;
+ }
+
+ (0, _createClass3['default'])(Animate, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ var showProp = this.props.showProp;
+ var children = this.state.children;
+ if (showProp) {
+ children = children.filter(function (child) {
+ return !!child.props[showProp];
+ });
+ }
+ children.forEach(function (child) {
+ if (child) {
+ _this2.performAppear(child.key);
+ }
+ });
+ }
+ }, {
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(nextProps) {
+ var _this3 = this;
+
+ this.nextProps = nextProps;
+ var nextChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(nextProps));
+ var props = this.props;
+ // exclusive needs immediate response
+ if (props.exclusive) {
+ Object.keys(this.currentlyAnimatingKeys).forEach(function (key) {
+ _this3.stop(key);
+ });
+ }
+ var showProp = props.showProp;
+ var currentlyAnimatingKeys = this.currentlyAnimatingKeys;
+ // last props children if exclusive
+ var currentChildren = props.exclusive ? (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props)) : this.state.children;
+ // in case destroy in showProp mode
+ var newChildren = [];
+ if (showProp) {
+ currentChildren.forEach(function (currentChild) {
+ var nextChild = currentChild && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, currentChild.key);
+ var newChild = void 0;
+ if ((!nextChild || !nextChild.props[showProp]) && currentChild.props[showProp]) {
+ newChild = _react2['default'].cloneElement(nextChild || currentChild, (0, _defineProperty3['default'])({}, showProp, true));
+ } else {
+ newChild = nextChild;
+ }
+ if (newChild) {
+ newChildren.push(newChild);
+ }
+ });
+ nextChildren.forEach(function (nextChild) {
+ if (!nextChild || !(0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, nextChild.key)) {
+ newChildren.push(nextChild);
+ }
+ });
+ } else {
+ newChildren = (0, _ChildrenUtils.mergeChildren)(currentChildren, nextChildren);
+ }
+
+ // need render to avoid update
+ this.setState({
+ children: newChildren
+ });
+
+ nextChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasPrev = child && (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ if (showProp) {
+ var showInNext = child.props[showProp];
+ if (hasPrev) {
+ var showInNow = (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
+ if (!showInNow && showInNext) {
+ _this3.keysToEnter.push(key);
+ }
+ } else if (showInNext) {
+ _this3.keysToEnter.push(key);
+ }
+ } else if (!hasPrev) {
+ _this3.keysToEnter.push(key);
+ }
+ });
+
+ currentChildren.forEach(function (child) {
+ var key = child && child.key;
+ if (child && currentlyAnimatingKeys[key]) {
+ return;
+ }
+ var hasNext = child && (0, _ChildrenUtils.findChildInChildrenByKey)(nextChildren, key);
+ if (showProp) {
+ var showInNow = child.props[showProp];
+ if (hasNext) {
+ var showInNext = (0, _ChildrenUtils.findShownChildInChildrenByKey)(nextChildren, key, showProp);
+ if (!showInNext && showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (showInNow) {
+ _this3.keysToLeave.push(key);
+ }
+ } else if (!hasNext) {
+ _this3.keysToLeave.push(key);
+ }
+ });
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate() {
+ var keysToEnter = this.keysToEnter;
+ this.keysToEnter = [];
+ keysToEnter.forEach(this.performEnter);
+ var keysToLeave = this.keysToLeave;
+ this.keysToLeave = [];
+ keysToLeave.forEach(this.performLeave);
+ }
+ }, {
+ key: 'isValidChildByKey',
+ value: function isValidChildByKey(currentChildren, key) {
+ var showProp = this.props.showProp;
+ if (showProp) {
+ return (0, _ChildrenUtils.findShownChildInChildrenByKey)(currentChildren, key, showProp);
+ }
+ return (0, _ChildrenUtils.findChildInChildrenByKey)(currentChildren, key);
+ }
+ }, {
+ key: 'stop',
+ value: function stop(key) {
+ delete this.currentlyAnimatingKeys[key];
+ var component = this.childrenRefs[key];
+ if (component) {
+ component.stop();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this4 = this;
+
+ var props = this.props;
+ this.nextProps = props;
+ var stateChildren = this.state.children;
+ var children = null;
+ if (stateChildren) {
+ children = stateChildren.map(function (child) {
+ if (child === null || child === undefined) {
+ return child;
+ }
+ if (!child.key) {
+ throw new Error('must set key for children');
+ }
+ return _react2['default'].createElement(
+ _AnimateChild2['default'],
+ {
+ key: child.key,
+ ref: function ref(node) {
+ return _this4.childrenRefs[child.key] = node;
+ },
+ animation: props.animation,
+ transitionName: props.transitionName,
+ transitionEnter: props.transitionEnter,
+ transitionAppear: props.transitionAppear,
+ transitionLeave: props.transitionLeave
+ },
+ child
+ );
+ });
+ }
+ var Component = props.component;
+ if (Component) {
+ var passedProps = props;
+ if (typeof Component === 'string') {
+ passedProps = (0, _extends3['default'])({
+ className: props.className,
+ style: props.style
+ }, props.componentProps);
+ }
+ return _react2['default'].createElement(
+ Component,
+ passedProps,
+ children
+ );
+ }
+ return children[0] || null;
+ }
+ }]);
+ return Animate;
+ }(_react2['default'].Component);
+
+ Animate.isAnimate = true;
+ Animate.propTypes = {
+ component: _propTypes2['default'].any,
+ componentProps: _propTypes2['default'].object,
+ animation: _propTypes2['default'].object,
+ transitionName: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].object]),
+ transitionEnter: _propTypes2['default'].bool,
+ transitionAppear: _propTypes2['default'].bool,
+ exclusive: _propTypes2['default'].bool,
+ transitionLeave: _propTypes2['default'].bool,
+ onEnd: _propTypes2['default'].func,
+ onEnter: _propTypes2['default'].func,
+ onLeave: _propTypes2['default'].func,
+ onAppear: _propTypes2['default'].func,
+ showProp: _propTypes2['default'].string
+ };
+ Animate.defaultProps = {
+ animation: {},
+ component: 'span',
+ componentProps: {},
+ transitionEnter: true,
+ transitionLeave: true,
+ transitionAppear: false,
+ onEnd: noop,
+ onEnter: noop,
+ onLeave: noop,
+ onAppear: noop
+ };
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this5 = this;
+
+ this.performEnter = function (key) {
+ // may already remove by exclusive
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillEnter(_this5.handleDoneAdding.bind(_this5, key, 'enter'));
+ }
+ };
+
+ this.performAppear = function (key) {
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillAppear(_this5.handleDoneAdding.bind(_this5, key, 'appear'));
+ }
+ };
+
+ this.handleDoneAdding = function (key, type) {
+ var props = _this5.props;
+ delete _this5.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== _this5.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ if (!_this5.isValidChildByKey(currentChildren, key)) {
+ // exclusive will not need this
+ _this5.performLeave(key);
+ } else {
+ if (type === 'appear') {
+ if (_util2['default'].allowAppearCallback(props)) {
+ props.onAppear(key);
+ props.onEnd(key, true);
+ }
+ } else {
+ if (_util2['default'].allowEnterCallback(props)) {
+ props.onEnter(key);
+ props.onEnd(key, true);
+ }
+ }
+ }
+ };
+
+ this.performLeave = function (key) {
+ // may already remove by exclusive
+ if (_this5.childrenRefs[key]) {
+ _this5.currentlyAnimatingKeys[key] = true;
+ _this5.childrenRefs[key].componentWillLeave(_this5.handleDoneLeaving.bind(_this5, key));
+ }
+ };
+
+ this.handleDoneLeaving = function (key) {
+ var props = _this5.props;
+ delete _this5.currentlyAnimatingKeys[key];
+ // if update on exclusive mode, skip check
+ if (props.exclusive && props !== _this5.nextProps) {
+ return;
+ }
+ var currentChildren = (0, _ChildrenUtils.toArrayChildren)(getChildrenFromProps(props));
+ // in case state change is too fast
+ if (_this5.isValidChildByKey(currentChildren, key)) {
+ _this5.performEnter(key);
+ } else {
+ var end = function end() {
+ if (_util2['default'].allowLeaveCallback(props)) {
+ props.onLeave(key);
+ props.onEnd(key, false);
+ }
+ };
+ if (!(0, _ChildrenUtils.isSameChildren)(_this5.state.children, currentChildren, props.showProp)) {
+ _this5.setState({
+ children: currentChildren
+ }, end);
+ } else {
+ end();
+ }
+ }
+ };
+ };
+
+ exports['default'] = Animate;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 398 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.toArrayChildren = toArrayChildren;
+ exports.findChildInChildrenByKey = findChildInChildrenByKey;
+ exports.findShownChildInChildrenByKey = findShownChildInChildrenByKey;
+ exports.findHiddenChildInChildrenByKey = findHiddenChildInChildrenByKey;
+ exports.isSameChildren = isSameChildren;
+ exports.mergeChildren = mergeChildren;
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function toArrayChildren(children) {
+ var ret = [];
+ _react2['default'].Children.forEach(children, function (child) {
+ ret.push(child);
+ });
+ return ret;
+ }
+
+ function findChildInChildrenByKey(children, key) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (ret) {
+ return;
+ }
+ if (child && child.key === key) {
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findShownChildInChildrenByKey(children, key, showProp) {
+ var ret = null;
+ if (children) {
+ children.forEach(function (child) {
+ if (child && child.key === key && child.props[showProp]) {
+ if (ret) {
+ throw new Error('two child with same key for children');
+ }
+ ret = child;
+ }
+ });
+ }
+ return ret;
+ }
+
+ function findHiddenChildInChildrenByKey(children, key, showProp) {
+ var found = 0;
+ if (children) {
+ children.forEach(function (child) {
+ if (found) {
+ return;
+ }
+ found = child && child.key === key && !child.props[showProp];
+ });
+ }
+ return found;
+ }
+
+ function isSameChildren(c1, c2, showProp) {
+ var same = c1.length === c2.length;
+ if (same) {
+ c1.forEach(function (child, index) {
+ var child2 = c2[index];
+ if (child && child2) {
+ if (child && !child2 || !child && child2) {
+ same = false;
+ } else if (child.key !== child2.key) {
+ same = false;
+ } else if (showProp && child.props[showProp] !== child2.props[showProp]) {
+ same = false;
+ }
+ }
+ });
+ }
+ return same;
+ }
+
+ function mergeChildren(prev, next) {
+ var ret = [];
+
+ // For each key of `next`, the list of keys to insert before that key in
+ // the combined list
+ var nextChildrenPending = {};
+ var pendingChildren = [];
+ prev.forEach(function (child) {
+ if (child && findChildInChildrenByKey(next, child.key)) {
+ if (pendingChildren.length) {
+ nextChildrenPending[child.key] = pendingChildren;
+ pendingChildren = [];
+ }
+ } else {
+ pendingChildren.push(child);
+ }
+ });
+
+ next.forEach(function (child) {
+ if (child && nextChildrenPending.hasOwnProperty(child.key)) {
+ ret = ret.concat(nextChildrenPending[child.key]);
+ }
+ ret.push(child);
+ });
+
+ ret = ret.concat(pendingChildren);
+
+ return ret;
+ }
+
+/***/ }),
+/* 399 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _typeof2 = __webpack_require__(202);
+
+ var _typeof3 = _interopRequireDefault(_typeof2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _cssAnimation = __webpack_require__(400);
+
+ var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
+
+ var _util = __webpack_require__(402);
+
+ var _util2 = _interopRequireDefault(_util);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var transitionMap = {
+ enter: 'transitionEnter',
+ appear: 'transitionAppear',
+ leave: 'transitionLeave'
+ };
+
+ var AnimateChild = function (_React$Component) {
+ (0, _inherits3['default'])(AnimateChild, _React$Component);
+
+ function AnimateChild() {
+ (0, _classCallCheck3['default'])(this, AnimateChild);
+ return (0, _possibleConstructorReturn3['default'])(this, (AnimateChild.__proto__ || Object.getPrototypeOf(AnimateChild)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(AnimateChild, [{
+ key: 'componentWillUnmount',
+ value: function componentWillUnmount() {
+ this.stop();
+ }
+ }, {
+ key: 'componentWillEnter',
+ value: function componentWillEnter(done) {
+ if (_util2['default'].isEnterSupported(this.props)) {
+ this.transition('enter', done);
+ } else {
+ done();
+ }
+ }
+ }, {
+ key: 'componentWillAppear',
+ value: function componentWillAppear(done) {
+ if (_util2['default'].isAppearSupported(this.props)) {
+ this.transition('appear', done);
+ } else {
+ done();
+ }
+ }
+ }, {
+ key: 'componentWillLeave',
+ value: function componentWillLeave(done) {
+ if (_util2['default'].isLeaveSupported(this.props)) {
+ this.transition('leave', done);
+ } else {
+ // always sync, do not interupt with react component life cycle
+ // update hidden -> animate hidden ->
+ // didUpdate -> animate leave -> unmount (if animate is none)
+ done();
+ }
+ }
+ }, {
+ key: 'transition',
+ value: function transition(animationType, finishCallback) {
+ var _this2 = this;
+
+ var node = _reactDom2['default'].findDOMNode(this);
+ var props = this.props;
+ var transitionName = props.transitionName;
+ var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object';
+ this.stop();
+ var end = function end() {
+ _this2.stopper = null;
+ finishCallback();
+ };
+ if ((_cssAnimation.isCssAnimationSupported || !props.animation[animationType]) && transitionName && props[transitionMap[animationType]]) {
+ var name = nameIsObj ? transitionName[animationType] : transitionName + '-' + animationType;
+ var activeName = name + '-active';
+ if (nameIsObj && transitionName[animationType + 'Active']) {
+ activeName = transitionName[animationType + 'Active'];
+ }
+ this.stopper = (0, _cssAnimation2['default'])(node, {
+ name: name,
+ active: activeName
+ }, end);
+ } else {
+ this.stopper = props.animation[animationType](node, end);
+ }
+ }
+ }, {
+ key: 'stop',
+ value: function stop() {
+ var stopper = this.stopper;
+ if (stopper) {
+ this.stopper = null;
+ stopper.stop();
+ }
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ return this.props.children;
+ }
+ }]);
+ return AnimateChild;
+ }(_react2['default'].Component);
+
+ AnimateChild.propTypes = {
+ children: _propTypes2['default'].any
+ };
+ exports['default'] = AnimateChild;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 400 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.isCssAnimationSupported = undefined;
+
+ var _typeof2 = __webpack_require__(202);
+
+ var _typeof3 = _interopRequireDefault(_typeof2);
+
+ var _Event = __webpack_require__(401);
+
+ var _Event2 = _interopRequireDefault(_Event);
+
+ var _componentClasses = __webpack_require__(46);
+
+ var _componentClasses2 = _interopRequireDefault(_componentClasses);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var isCssAnimationSupported = _Event2['default'].endEvents.length !== 0;
+ var capitalPrefixes = ['Webkit', 'Moz', 'O',
+ // ms is special .... !
+ 'ms'];
+ var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
+
+ function getStyleProperty(node, name) {
+ // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
+ var style = window.getComputedStyle(node, null);
+ var ret = '';
+ for (var i = 0; i < prefixes.length; i++) {
+ ret = style.getPropertyValue(prefixes[i] + name);
+ if (ret) {
+ break;
+ }
+ }
+ return ret;
+ }
+
+ function fixBrowserByTimeout(node) {
+ if (isCssAnimationSupported) {
+ var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;
+ var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;
+ var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;
+ var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;
+ var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
+ // sometimes, browser bug
+ node.rcEndAnimTimeout = setTimeout(function () {
+ node.rcEndAnimTimeout = null;
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+ }, time * 1000 + 200);
+ }
+ }
+
+ function clearBrowserBugTimeout(node) {
+ if (node.rcEndAnimTimeout) {
+ clearTimeout(node.rcEndAnimTimeout);
+ node.rcEndAnimTimeout = null;
+ }
+ }
+
+ var cssAnimation = function cssAnimation(node, transitionName, endCallback) {
+ var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : (0, _typeof3['default'])(transitionName)) === 'object';
+ var className = nameIsObj ? transitionName.name : transitionName;
+ var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';
+ var end = endCallback;
+ var start = void 0;
+ var active = void 0;
+ var nodeClasses = (0, _componentClasses2['default'])(node);
+
+ if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {
+ end = endCallback.end;
+ start = endCallback.start;
+ active = endCallback.active;
+ }
+
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+
+ node.rcEndListener = function (e) {
+ if (e && e.target !== node) {
+ return;
+ }
+
+ if (node.rcAnimTimeout) {
+ clearTimeout(node.rcAnimTimeout);
+ node.rcAnimTimeout = null;
+ }
+
+ clearBrowserBugTimeout(node);
+
+ nodeClasses.remove(className);
+ nodeClasses.remove(activeClassName);
+
+ _Event2['default'].removeEndEventListener(node, node.rcEndListener);
+ node.rcEndListener = null;
+
+ // Usually this optional end is used for informing an owner of
+ // a leave animation and telling it to remove the child.
+ if (end) {
+ end();
+ }
+ };
+
+ _Event2['default'].addEndEventListener(node, node.rcEndListener);
+
+ if (start) {
+ start();
+ }
+ nodeClasses.add(className);
+
+ node.rcAnimTimeout = setTimeout(function () {
+ node.rcAnimTimeout = null;
+ nodeClasses.add(activeClassName);
+ if (active) {
+ setTimeout(active, 0);
+ }
+ fixBrowserByTimeout(node);
+ // 30ms for firefox
+ }, 30);
+
+ return {
+ stop: function stop() {
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+ }
+ };
+ };
+
+ cssAnimation.style = function (node, style, callback) {
+ if (node.rcEndListener) {
+ node.rcEndListener();
+ }
+
+ node.rcEndListener = function (e) {
+ if (e && e.target !== node) {
+ return;
+ }
+
+ if (node.rcAnimTimeout) {
+ clearTimeout(node.rcAnimTimeout);
+ node.rcAnimTimeout = null;
+ }
+
+ clearBrowserBugTimeout(node);
+
+ _Event2['default'].removeEndEventListener(node, node.rcEndListener);
+ node.rcEndListener = null;
+
+ // Usually this optional callback is used for informing an owner of
+ // a leave animation and telling it to remove the child.
+ if (callback) {
+ callback();
+ }
+ };
+
+ _Event2['default'].addEndEventListener(node, node.rcEndListener);
+
+ node.rcAnimTimeout = setTimeout(function () {
+ for (var s in style) {
+ if (style.hasOwnProperty(s)) {
+ node.style[s] = style[s];
+ }
+ }
+ node.rcAnimTimeout = null;
+ fixBrowserByTimeout(node);
+ }, 0);
+ };
+
+ cssAnimation.setTransition = function (node, p, value) {
+ var property = p;
+ var v = value;
+ if (value === undefined) {
+ v = property;
+ property = '';
+ }
+ property = property || '';
+ capitalPrefixes.forEach(function (prefix) {
+ node.style[prefix + 'Transition' + property] = v;
+ });
+ };
+
+ cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
+
+ exports.isCssAnimationSupported = isCssAnimationSupported;
+ exports['default'] = cssAnimation;
+
+/***/ }),
+/* 401 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var EVENT_NAME_MAP = {
+ transitionend: {
+ transition: 'transitionend',
+ WebkitTransition: 'webkitTransitionEnd',
+ MozTransition: 'mozTransitionEnd',
+ OTransition: 'oTransitionEnd',
+ msTransition: 'MSTransitionEnd'
+ },
+
+ animationend: {
+ animation: 'animationend',
+ WebkitAnimation: 'webkitAnimationEnd',
+ MozAnimation: 'mozAnimationEnd',
+ OAnimation: 'oAnimationEnd',
+ msAnimation: 'MSAnimationEnd'
+ }
+ };
+
+ var endEvents = [];
+
+ function detectEvents() {
+ var testEl = document.createElement('div');
+ var style = testEl.style;
+
+ if (!('AnimationEvent' in window)) {
+ delete EVENT_NAME_MAP.animationend.animation;
+ }
+
+ if (!('TransitionEvent' in window)) {
+ delete EVENT_NAME_MAP.transitionend.transition;
+ }
+
+ for (var baseEventName in EVENT_NAME_MAP) {
+ if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
+ var baseEvents = EVENT_NAME_MAP[baseEventName];
+ for (var styleName in baseEvents) {
+ if (styleName in style) {
+ endEvents.push(baseEvents[styleName]);
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ if (typeof window !== 'undefined' && typeof document !== 'undefined') {
+ detectEvents();
+ }
+
+ function addEventListener(node, eventName, eventListener) {
+ node.addEventListener(eventName, eventListener, false);
+ }
+
+ function removeEventListener(node, eventName, eventListener) {
+ node.removeEventListener(eventName, eventListener, false);
+ }
+
+ var TransitionEvents = {
+ addEndEventListener: function addEndEventListener(node, eventListener) {
+ if (endEvents.length === 0) {
+ window.setTimeout(eventListener, 0);
+ return;
+ }
+ endEvents.forEach(function (endEvent) {
+ addEventListener(node, endEvent, eventListener);
+ });
+ },
+
+
+ endEvents: endEvents,
+
+ removeEndEventListener: function removeEndEventListener(node, eventListener) {
+ if (endEvents.length === 0) {
+ return;
+ }
+ endEvents.forEach(function (endEvent) {
+ removeEventListener(node, endEvent, eventListener);
+ });
+ }
+ };
+
+ exports['default'] = TransitionEvents;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 402 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var util = {
+ isAppearSupported: function isAppearSupported(props) {
+ return props.transitionName && props.transitionAppear || props.animation.appear;
+ },
+ isEnterSupported: function isEnterSupported(props) {
+ return props.transitionName && props.transitionEnter || props.animation.enter;
+ },
+ isLeaveSupported: function isLeaveSupported(props) {
+ return props.transitionName && props.transitionLeave || props.animation.leave;
+ },
+ allowAppearCallback: function allowAppearCallback(props) {
+ return props.transitionAppear || props.animation.appear;
+ },
+ allowEnterCallback: function allowEnterCallback(props) {
+ return props.transitionEnter || props.animation.enter;
+ },
+ allowLeaveCallback: function allowLeaveCallback(props) {
+ return props.transitionLeave || props.animation.leave;
+ }
+ };
+ exports["default"] = util;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 403 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _LazyRenderBox = __webpack_require__(404);
+
+ var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var PopupInner = function (_Component) {
+ (0, _inherits3['default'])(PopupInner, _Component);
+
+ function PopupInner() {
+ (0, _classCallCheck3['default'])(this, PopupInner);
+ return (0, _possibleConstructorReturn3['default'])(this, (PopupInner.__proto__ || Object.getPrototypeOf(PopupInner)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(PopupInner, [{
+ key: 'render',
+ value: function render() {
+ var props = this.props;
+ var className = props.className;
+ if (!props.visible) {
+ className += ' ' + props.hiddenClassName;
+ }
+ return _react2['default'].createElement(
+ 'div',
+ {
+ className: className,
+ onMouseEnter: props.onMouseEnter,
+ onMouseLeave: props.onMouseLeave,
+ style: props.style
+ },
+ _react2['default'].createElement(
+ _LazyRenderBox2['default'],
+ { className: props.prefixCls + '-content', visible: props.visible },
+ props.children
+ )
+ );
+ }
+ }]);
+ return PopupInner;
+ }(_react.Component);
+
+ PopupInner.propTypes = {
+ hiddenClassName: _propTypes2['default'].string,
+ className: _propTypes2['default'].string,
+ prefixCls: _propTypes2['default'].string,
+ onMouseEnter: _propTypes2['default'].func,
+ onMouseLeave: _propTypes2['default'].func,
+ children: _propTypes2['default'].any
+ };
+ exports['default'] = PopupInner;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 404 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _objectWithoutProperties2 = __webpack_require__(405);
+
+ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var LazyRenderBox = function (_Component) {
+ (0, _inherits3['default'])(LazyRenderBox, _Component);
+
+ function LazyRenderBox() {
+ (0, _classCallCheck3['default'])(this, LazyRenderBox);
+ return (0, _possibleConstructorReturn3['default'])(this, (LazyRenderBox.__proto__ || Object.getPrototypeOf(LazyRenderBox)).apply(this, arguments));
+ }
+
+ (0, _createClass3['default'])(LazyRenderBox, [{
+ key: 'shouldComponentUpdate',
+ value: function shouldComponentUpdate(nextProps) {
+ return nextProps.hiddenClassName || nextProps.visible;
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _props = this.props,
+ hiddenClassName = _props.hiddenClassName,
+ visible = _props.visible,
+ props = (0, _objectWithoutProperties3['default'])(_props, ['hiddenClassName', 'visible']);
+
+
+ if (hiddenClassName || _react2['default'].Children.count(props.children) > 1) {
+ if (!visible && hiddenClassName) {
+ props.className += ' ' + hiddenClassName;
+ }
+ return _react2['default'].createElement('div', props);
+ }
+
+ return _react2['default'].Children.only(props.children);
+ }
+ }]);
+ return LazyRenderBox;
+ }(_react.Component);
+
+ LazyRenderBox.propTypes = {
+ children: _propTypes2['default'].any,
+ className: _propTypes2['default'].string,
+ visible: _propTypes2['default'].bool,
+ hiddenClassName: _propTypes2['default'].string
+ };
+ exports['default'] = LazyRenderBox;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 405 */
+/***/ (function(module, exports) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ exports.default = function (obj, keys) {
+ var target = {};
+
+ for (var i in obj) {
+ if (keys.indexOf(i) >= 0) continue;
+ if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
+ target[i] = obj[i];
+ }
+
+ return target;
+ };
+
+/***/ }),
+/* 406 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ exports.getAlignFromPlacement = getAlignFromPlacement;
+ exports.getPopupClassNameFromAlign = getPopupClassNameFromAlign;
+ exports.saveRef = saveRef;
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function isPointsEq(a1, a2) {
+ return a1[0] === a2[0] && a1[1] === a2[1];
+ }
+
+ function getAlignFromPlacement(builtinPlacements, placementStr, align) {
+ var baseAlign = builtinPlacements[placementStr] || {};
+ return (0, _extends3['default'])({}, baseAlign, align);
+ }
+
+ function getPopupClassNameFromAlign(builtinPlacements, prefixCls, align) {
+ var points = align.points;
+ for (var placement in builtinPlacements) {
+ if (builtinPlacements.hasOwnProperty(placement)) {
+ if (isPointsEq(builtinPlacements[placement].points, points)) {
+ return prefixCls + '-placement-' + placement;
+ }
+ }
+ }
+ return '';
+ }
+
+ function saveRef(name, component) {
+ this[name] = component;
+ }
+
+/***/ }),
+/* 407 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ exports['default'] = getContainerRenderMixin;
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function defaultGetContainer() {
+ var container = document.createElement('div');
+ document.body.appendChild(container);
+ return container;
+ }
+
+ function getContainerRenderMixin(config) {
+ var _config$autoMount = config.autoMount,
+ autoMount = _config$autoMount === undefined ? true : _config$autoMount,
+ _config$autoDestroy = config.autoDestroy,
+ autoDestroy = _config$autoDestroy === undefined ? true : _config$autoDestroy,
+ isVisible = config.isVisible,
+ isForceRender = config.isForceRender,
+ getComponent = config.getComponent,
+ _config$getContainer = config.getContainer,
+ getContainer = _config$getContainer === undefined ? defaultGetContainer : _config$getContainer;
+
+
+ var mixin = void 0;
+
+ function _renderComponent(instance, componentArg, ready) {
+ if (!isVisible || instance._component || isVisible(instance) || isForceRender && isForceRender(instance)) {
+ if (!instance._container) {
+ instance._container = getContainer(instance);
+ }
+ var component = void 0;
+ if (instance.getComponent) {
+ component = instance.getComponent(componentArg);
+ } else {
+ component = getComponent(instance, componentArg);
+ }
+ _reactDom2['default'].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() {
+ instance._component = this;
+ if (ready) {
+ ready.call(this);
+ }
+ });
+ }
+ }
+
+ if (autoMount) {
+ mixin = (0, _extends3['default'])({}, mixin, {
+ componentDidMount: function componentDidMount() {
+ _renderComponent(this);
+ },
+ componentDidUpdate: function componentDidUpdate() {
+ _renderComponent(this);
+ }
+ });
+ }
+
+ if (!autoMount || !autoDestroy) {
+ mixin = (0, _extends3['default'])({}, mixin, {
+ renderComponent: function renderComponent(componentArg, ready) {
+ _renderComponent(this, componentArg, ready);
+ }
+ });
+ }
+
+ function _removeContainer(instance) {
+ if (instance._container) {
+ var container = instance._container;
+ _reactDom2['default'].unmountComponentAtNode(container);
+ container.parentNode.removeChild(container);
+ instance._container = null;
+ }
+ }
+
+ if (autoDestroy) {
+ mixin = (0, _extends3['default'])({}, mixin, {
+ componentWillUnmount: function componentWillUnmount() {
+ _removeContainer(this);
+ }
+ });
+ } else {
+ mixin = (0, _extends3['default'])({}, mixin, {
+ removeContainer: function removeContainer() {
+ _removeContainer(this);
+ }
+ });
+ }
+
+ return mixin;
+ }
+ module.exports = exports['default'];
+
+/***/ }),
+/* 408 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _Header = __webpack_require__(409);
+
+ var _Header2 = _interopRequireDefault(_Header);
+
+ var _Combobox = __webpack_require__(410);
+
+ var _Combobox2 = _interopRequireDefault(_Combobox);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function generateOptions(length, disabledOptions, hideDisabledOptions) {
+ var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
+
+ var arr = [];
+ for (var value = 0; value < length; value += step) {
+ if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {
+ arr.push(value);
+ }
+ }
+ return arr;
+ }
+
+ var Panel = function (_Component) {
+ (0, _inherits3['default'])(Panel, _Component);
+
+ function Panel(props) {
+ (0, _classCallCheck3['default'])(this, Panel);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (Panel.__proto__ || Object.getPrototypeOf(Panel)).call(this, props));
+
+ _this.onChange = function (newValue) {
+ _this.setState({ value: newValue });
+ _this.props.onChange(newValue);
+ };
+
+ _this.onCurrentSelectPanelChange = function (currentSelectPanel) {
+ _this.setState({ currentSelectPanel: currentSelectPanel });
+ };
+
+ _this.disabledHours = function () {
+ var _this$props = _this.props,
+ use12Hours = _this$props.use12Hours,
+ disabledHours = _this$props.disabledHours;
+
+ var disabledOptions = disabledHours();
+ if (use12Hours && Array.isArray(disabledOptions)) {
+ if (_this.isAM()) {
+ disabledOptions = disabledOptions.filter(function (h) {
+ return h < 12;
+ }).map(function (h) {
+ return h === 0 ? 12 : h;
+ });
+ } else {
+ disabledOptions = disabledOptions.map(function (h) {
+ return h === 12 ? 12 : h - 12;
+ });
+ }
+ }
+ return disabledOptions;
+ };
+
+ _this.state = {
+ value: props.value,
+ selectionRange: []
+ };
+ return _this;
+ }
+
+ (0, _createClass3['default'])(Panel, [{
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(nextProps) {
+ var value = nextProps.value;
+ if (value) {
+ this.setState({
+ value: value
+ });
+ }
+ }
+ }, {
+ key: 'close',
+
+
+ // https://github.com/ant-design/ant-design/issues/5829
+ value: function close() {
+ this.props.onEsc();
+ }
+ }, {
+ key: 'isAM',
+ value: function isAM() {
+ var value = this.state.value || this.props.defaultOpenValue;
+ return value.hour() >= 0 && value.hour() < 12;
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _classNames;
+
+ var _props = this.props,
+ prefixCls = _props.prefixCls,
+ className = _props.className,
+ placeholder = _props.placeholder,
+ disabledMinutes = _props.disabledMinutes,
+ disabledSeconds = _props.disabledSeconds,
+ hideDisabledOptions = _props.hideDisabledOptions,
+ allowEmpty = _props.allowEmpty,
+ showHour = _props.showHour,
+ showMinute = _props.showMinute,
+ showSecond = _props.showSecond,
+ format = _props.format,
+ defaultOpenValue = _props.defaultOpenValue,
+ clearText = _props.clearText,
+ onEsc = _props.onEsc,
+ addon = _props.addon,
+ use12Hours = _props.use12Hours,
+ onClear = _props.onClear,
+ focusOnOpen = _props.focusOnOpen,
+ onKeyDown = _props.onKeyDown,
+ hourStep = _props.hourStep,
+ minuteStep = _props.minuteStep,
+ secondStep = _props.secondStep,
+ inputReadOnly = _props.inputReadOnly;
+ var _state = this.state,
+ value = _state.value,
+ currentSelectPanel = _state.currentSelectPanel;
+
+ var disabledHourOptions = this.disabledHours();
+ var disabledMinuteOptions = disabledMinutes(value ? value.hour() : null);
+ var disabledSecondOptions = disabledSeconds(value ? value.hour() : null, value ? value.minute() : null);
+ var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);
+ var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);
+ var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);
+
+ return _react2['default'].createElement(
+ 'div',
+ { 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,
+ defaultOpenValue: defaultOpenValue,
+ value: value,
+ currentSelectPanel: currentSelectPanel,
+ onEsc: onEsc,
+ format: format,
+ placeholder: placeholder,
+ hourOptions: hourOptions,
+ minuteOptions: minuteOptions,
+ secondOptions: secondOptions,
+ disabledHours: this.disabledHours,
+ disabledMinutes: disabledMinutes,
+ disabledSeconds: disabledSeconds,
+ onChange: this.onChange,
+ onClear: onClear,
+ allowEmpty: allowEmpty,
+ focusOnOpen: focusOnOpen,
+ onKeyDown: onKeyDown,
+ inputReadOnly: inputReadOnly
+ }),
+ _react2['default'].createElement(_Combobox2['default'], {
+ prefixCls: prefixCls,
+ value: value,
+ defaultOpenValue: defaultOpenValue,
+ format: format,
+ onChange: this.onChange,
+ showHour: showHour,
+ showMinute: showMinute,
+ showSecond: showSecond,
+ hourOptions: hourOptions,
+ minuteOptions: minuteOptions,
+ secondOptions: secondOptions,
+ disabledHours: this.disabledHours,
+ disabledMinutes: disabledMinutes,
+ disabledSeconds: disabledSeconds,
+ onCurrentSelectPanelChange: this.onCurrentSelectPanelChange,
+ use12Hours: use12Hours,
+ isAM: this.isAM()
+ }),
+ addon(this)
+ );
+ }
+ }]);
+ return Panel;
+ }(_react.Component);
+
+ Panel.propTypes = {
+ clearText: _propTypes2['default'].string,
+ prefixCls: _propTypes2['default'].string,
+ className: _propTypes2['default'].string,
+ defaultOpenValue: _propTypes2['default'].object,
+ value: _propTypes2['default'].object,
+ placeholder: _propTypes2['default'].string,
+ format: _propTypes2['default'].string,
+ inputReadOnly: _propTypes2['default'].bool,
+ disabledHours: _propTypes2['default'].func,
+ disabledMinutes: _propTypes2['default'].func,
+ disabledSeconds: _propTypes2['default'].func,
+ hideDisabledOptions: _propTypes2['default'].bool,
+ onChange: _propTypes2['default'].func,
+ onEsc: _propTypes2['default'].func,
+ allowEmpty: _propTypes2['default'].bool,
+ showHour: _propTypes2['default'].bool,
+ showMinute: _propTypes2['default'].bool,
+ showSecond: _propTypes2['default'].bool,
+ onClear: _propTypes2['default'].func,
+ use12Hours: _propTypes2['default'].bool,
+ hourStep: _propTypes2['default'].number,
+ minuteStep: _propTypes2['default'].number,
+ secondStep: _propTypes2['default'].number,
+ addon: _propTypes2['default'].func,
+ focusOnOpen: _propTypes2['default'].bool,
+ onKeyDown: _propTypes2['default'].func
+ };
+ Panel.defaultProps = {
+ prefixCls: 'rc-time-picker-panel',
+ onChange: noop,
+ onClear: noop,
+ disabledHours: noop,
+ disabledMinutes: noop,
+ disabledSeconds: noop,
+ defaultOpenValue: (0, _moment2['default'])(),
+ use12Hours: false,
+ addon: noop,
+ onKeyDown: noop,
+ inputReadOnly: false
+ };
+ exports['default'] = Panel;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 409 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var Header = function (_Component) {
+ (0, _inherits3['default'])(Header, _Component);
+
+ function Header(props) {
+ (0, _classCallCheck3['default'])(this, Header);
+
+ var _this = (0, _possibleConstructorReturn3['default'])(this, (Header.__proto__ || Object.getPrototypeOf(Header)).call(this, props));
+
+ _initialiseProps.call(_this);
+
+ var value = props.value,
+ format = props.format;
+
+ _this.state = {
+ str: value && value.format(format) || '',
+ invalid: false
+ };
+ return _this;
+ }
+
+ (0, _createClass3['default'])(Header, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ if (this.props.focusOnOpen) {
+ // Wait one frame for the panel to be positioned before focusing
+ var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
+ requestAnimationFrame(function () {
+ _this2.refs.input.focus();
+ _this2.refs.input.select();
+ });
+ }
+ }
+ }, {
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(nextProps) {
+ var value = nextProps.value,
+ format = nextProps.format;
+
+ this.setState({
+ str: value && value.format(format) || '',
+ invalid: false
+ });
+ }
+ }, {
+ key: 'getClearButton',
+ value: function getClearButton() {
+ var _props = this.props,
+ prefixCls = _props.prefixCls,
+ allowEmpty = _props.allowEmpty;
+
+ if (!allowEmpty) {
+ return null;
+ }
+ return _react2['default'].createElement('a', {
+ className: prefixCls + '-clear-btn',
+ role: 'button',
+ title: this.props.clearText,
+ onMouseDown: this.onClear
+ });
+ }
+ }, {
+ key: 'getProtoValue',
+ value: function getProtoValue() {
+ return this.props.value || this.props.defaultOpenValue;
+ }
+ }, {
+ key: 'getInput',
+ value: function getInput() {
+ var _props2 = this.props,
+ prefixCls = _props2.prefixCls,
+ placeholder = _props2.placeholder,
+ inputReadOnly = _props2.inputReadOnly;
+ var _state = this.state,
+ invalid = _state.invalid,
+ 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,
+ readOnly: !!inputReadOnly
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var prefixCls = this.props.prefixCls;
+
+ return _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-input-wrap' },
+ this.getInput(),
+ this.getClearButton()
+ );
+ }
+ }]);
+ return Header;
+ }(_react.Component);
+
+ Header.propTypes = {
+ format: _propTypes2['default'].string,
+ prefixCls: _propTypes2['default'].string,
+ disabledDate: _propTypes2['default'].func,
+ placeholder: _propTypes2['default'].string,
+ clearText: _propTypes2['default'].string,
+ value: _propTypes2['default'].object,
+ inputReadOnly: _propTypes2['default'].bool,
+ hourOptions: _propTypes2['default'].array,
+ minuteOptions: _propTypes2['default'].array,
+ secondOptions: _propTypes2['default'].array,
+ disabledHours: _propTypes2['default'].func,
+ disabledMinutes: _propTypes2['default'].func,
+ disabledSeconds: _propTypes2['default'].func,
+ onChange: _propTypes2['default'].func,
+ onClear: _propTypes2['default'].func,
+ onEsc: _propTypes2['default'].func,
+ allowEmpty: _propTypes2['default'].bool,
+ defaultOpenValue: _propTypes2['default'].object,
+ currentSelectPanel: _propTypes2['default'].string,
+ focusOnOpen: _propTypes2['default'].bool,
+ onKeyDown: _propTypes2['default'].func
+ };
+ Header.defaultProps = {
+ inputReadOnly: false
+ };
+
+ var _initialiseProps = function _initialiseProps() {
+ var _this3 = this;
+
+ this.onInputChange = function (event) {
+ var str = event.target.value;
+ _this3.setState({
+ str: str
+ });
+ var _props3 = _this3.props,
+ format = _props3.format,
+ hourOptions = _props3.hourOptions,
+ minuteOptions = _props3.minuteOptions,
+ secondOptions = _props3.secondOptions,
+ disabledHours = _props3.disabledHours,
+ disabledMinutes = _props3.disabledMinutes,
+ disabledSeconds = _props3.disabledSeconds,
+ onChange = _props3.onChange,
+ allowEmpty = _props3.allowEmpty;
+
+
+ if (str) {
+ var originalValue = _this3.props.value;
+ var value = _this3.getProtoValue().clone();
+ var parsed = (0, _moment2['default'])(str, format, true);
+ if (!parsed.isValid()) {
+ _this3.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) {
+ _this3.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) {
+ _this3.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 {
+ _this3.setState({
+ invalid: true
+ });
+ return;
+ }
+
+ _this3.setState({
+ invalid: false
+ });
+ };
+
+ this.onKeyDown = function (e) {
+ var _props4 = _this3.props,
+ onEsc = _props4.onEsc,
+ onKeyDown = _props4.onKeyDown;
+
+ if (e.keyCode === 27) {
+ onEsc();
+ }
+
+ onKeyDown(e);
+ };
+
+ this.onClear = function () {
+ _this3.setState({ str: '' });
+ _this3.props.onClear();
+ };
+ };
+
+ exports['default'] = Header;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 410 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _Select = __webpack_require__(411);
+
+ 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 = function (_Component) {
+ (0, _inherits3['default'])(Combobox, _Component);
+
+ function Combobox() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ (0, _classCallCheck3['default'])(this, Combobox);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Combobox.__proto__ || Object.getPrototypeOf(Combobox)).call.apply(_ref, [this].concat(args))), _this), _this.onItemChange = function (type, itemValue) {
+ var _this$props = _this.props,
+ onChange = _this$props.onChange,
+ defaultOpenValue = _this$props.defaultOpenValue,
+ use12Hours = _this$props.use12Hours;
+
+ var value = (_this.props.value || defaultOpenValue).clone();
+
+ if (type === 'hour') {
+ if (use12Hours) {
+ if (_this.props.isAM) {
+ value.hour(+itemValue % 12);
+ } else {
+ value.hour(+itemValue % 12 + 12);
+ }
+ } else {
+ value.hour(+itemValue);
+ }
+ } else if (type === 'minute') {
+ value.minute(+itemValue);
+ } else if (type === 'ampm') {
+ var ampm = itemValue.toUpperCase();
+ if (use12Hours) {
+ if (ampm === 'PM' && value.hour() < 12) {
+ value.hour(value.hour() % 12 + 12);
+ }
+
+ if (ampm === 'AM') {
+ if (value.hour() >= 12) {
+ value.hour(value.hour() - 12);
+ }
+ }
+ }
+ } else {
+ value.second(+itemValue);
+ }
+ onChange(value);
+ }, _this.onEnterSelectPanel = function (range) {
+ _this.props.onCurrentSelectPanelChange(range);
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
+ }
+
+ (0, _createClass3['default'])(Combobox, [{
+ key: 'getHourSelect',
+ value: function getHourSelect(hour) {
+ var _props = this.props,
+ prefixCls = _props.prefixCls,
+ hourOptions = _props.hourOptions,
+ disabledHours = _props.disabledHours,
+ showHour = _props.showHour,
+ use12Hours = _props.use12Hours;
+
+ if (!showHour) {
+ return null;
+ }
+ var disabledOptions = disabledHours();
+ var hourOptionsAdj = void 0;
+ var hourAdj = void 0;
+ if (use12Hours) {
+ hourOptionsAdj = [12].concat(hourOptions.filter(function (h) {
+ return h < 12 && h > 0;
+ }));
+ hourAdj = hour % 12 || 12;
+ } else {
+ hourOptionsAdj = hourOptions;
+ hourAdj = hour;
+ }
+
+ return _react2['default'].createElement(_Select2['default'], {
+ prefixCls: prefixCls,
+ options: hourOptionsAdj.map(function (option) {
+ return formatOption(option, disabledOptions);
+ }),
+ selectedIndex: hourOptionsAdj.indexOf(hourAdj),
+ type: 'hour',
+ onSelect: this.onItemChange,
+ onMouseEnter: this.onEnterSelectPanel.bind(this, 'hour')
+ });
+ }
+ }, {
+ key: 'getMinuteSelect',
+ value: function getMinuteSelect(minute) {
+ var _props2 = this.props,
+ prefixCls = _props2.prefixCls,
+ minuteOptions = _props2.minuteOptions,
+ disabledMinutes = _props2.disabledMinutes,
+ defaultOpenValue = _props2.defaultOpenValue,
+ showMinute = _props2.showMinute;
+
+ if (!showMinute) {
+ return null;
+ }
+ var value = this.props.value || defaultOpenValue;
+ var disabledOptions = disabledMinutes(value.hour());
+
+ return _react2['default'].createElement(_Select2['default'], {
+ prefixCls: prefixCls,
+ options: minuteOptions.map(function (option) {
+ return formatOption(option, disabledOptions);
+ }),
+ selectedIndex: minuteOptions.indexOf(minute),
+ type: 'minute',
+ onSelect: this.onItemChange,
+ onMouseEnter: this.onEnterSelectPanel.bind(this, 'minute')
+ });
+ }
+ }, {
+ key: 'getSecondSelect',
+ value: function getSecondSelect(second) {
+ var _props3 = this.props,
+ prefixCls = _props3.prefixCls,
+ secondOptions = _props3.secondOptions,
+ disabledSeconds = _props3.disabledSeconds,
+ showSecond = _props3.showSecond,
+ defaultOpenValue = _props3.defaultOpenValue;
+
+ if (!showSecond) {
+ return null;
+ }
+ var value = this.props.value || defaultOpenValue;
+ var disabledOptions = disabledSeconds(value.hour(), value.minute());
+
+ return _react2['default'].createElement(_Select2['default'], {
+ prefixCls: prefixCls,
+ options: secondOptions.map(function (option) {
+ return formatOption(option, disabledOptions);
+ }),
+ selectedIndex: secondOptions.indexOf(second),
+ type: 'second',
+ onSelect: this.onItemChange,
+ onMouseEnter: this.onEnterSelectPanel.bind(this, 'second')
+ });
+ }
+ }, {
+ key: 'getAMPMSelect',
+ value: function getAMPMSelect() {
+ var _props4 = this.props,
+ prefixCls = _props4.prefixCls,
+ use12Hours = _props4.use12Hours,
+ format = _props4.format;
+
+ if (!use12Hours) {
+ return null;
+ }
+
+ var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM
+ .map(function (c) {
+ return format.match(/\sA/) ? c.toUpperCase() : c;
+ }).map(function (c) {
+ return { value: c };
+ });
+
+ var selected = this.props.isAM ? 0 : 1;
+
+ return _react2['default'].createElement(_Select2['default'], {
+ prefixCls: prefixCls,
+ options: AMPMOptions,
+ selectedIndex: selected,
+ type: 'ampm',
+ onSelect: this.onItemChange,
+ onMouseEnter: this.onEnterSelectPanel.bind(this, 'ampm')
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _props5 = this.props,
+ prefixCls = _props5.prefixCls,
+ defaultOpenValue = _props5.defaultOpenValue;
+
+ var value = this.props.value || defaultOpenValue;
+ return _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-combobox' },
+ this.getHourSelect(value.hour()),
+ this.getMinuteSelect(value.minute()),
+ this.getSecondSelect(value.second()),
+ this.getAMPMSelect(value.hour())
+ );
+ }
+ }]);
+ return Combobox;
+ }(_react.Component);
+
+ Combobox.propTypes = {
+ format: _propTypes2['default'].string,
+ defaultOpenValue: _propTypes2['default'].object,
+ prefixCls: _propTypes2['default'].string,
+ value: _propTypes2['default'].object,
+ onChange: _propTypes2['default'].func,
+ showHour: _propTypes2['default'].bool,
+ showMinute: _propTypes2['default'].bool,
+ showSecond: _propTypes2['default'].bool,
+ hourOptions: _propTypes2['default'].array,
+ minuteOptions: _propTypes2['default'].array,
+ secondOptions: _propTypes2['default'].array,
+ disabledHours: _propTypes2['default'].func,
+ disabledMinutes: _propTypes2['default'].func,
+ disabledSeconds: _propTypes2['default'].func,
+ onCurrentSelectPanelChange: _propTypes2['default'].func,
+ use12Hours: _propTypes2['default'].bool,
+ isAM: _propTypes2['default'].bool
+ };
+ exports['default'] = Combobox;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 411 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _classCallCheck2 = __webpack_require__(197);
+
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+ var _createClass2 = __webpack_require__(198);
+
+ var _createClass3 = _interopRequireDefault(_createClass2);
+
+ var _possibleConstructorReturn2 = __webpack_require__(201);
+
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+ var _inherits2 = __webpack_require__(236);
+
+ var _inherits3 = _interopRequireDefault(_inherits2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _classnames3 = __webpack_require__(3);
+
+ var _classnames4 = _interopRequireDefault(_classnames3);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var scrollTo = function scrollTo(element, to, duration) {
+ var requestAnimationFrame = window.requestAnimationFrame || function requestAnimationFrameTimeout() {
+ return setTimeout(arguments[0], 10);
+ };
+ // jump to target if duration zero
+ if (duration <= 0) {
+ element.scrollTop = to;
+ return;
+ }
+ var difference = to - element.scrollTop;
+ var perTick = difference / duration * 10;
+
+ requestAnimationFrame(function () {
+ element.scrollTop = element.scrollTop + perTick;
+ if (element.scrollTop === to) return;
+ scrollTo(element, to, duration - 10);
+ });
+ };
+
+ var Select = function (_Component) {
+ (0, _inherits3['default'])(Select, _Component);
+
+ function Select() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ (0, _classCallCheck3['default'])(this, Select);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, (_ref = Select.__proto__ || Object.getPrototypeOf(Select)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ active: false
+ }, _this.onSelect = function (value) {
+ var _this$props = _this.props,
+ onSelect = _this$props.onSelect,
+ type = _this$props.type;
+
+ onSelect(type, value);
+ }, _this.handleMouseEnter = function (e) {
+ _this.setState({ active: true });
+ _this.props.onMouseEnter(e);
+ }, _this.handleMouseLeave = function () {
+ _this.setState({ active: false });
+ }, _this.saveList = function (node) {
+ _this.list = node;
+ }, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
+ }
+
+ (0, _createClass3['default'])(Select, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ // jump to selected option
+ this.scrollToSelected(0);
+ }
+ }, {
+ key: 'componentDidUpdate',
+ value: function componentDidUpdate(prevProps) {
+ // smooth scroll to selected option
+ if (prevProps.selectedIndex !== this.props.selectedIndex) {
+ this.scrollToSelected(120);
+ }
+ }
+ }, {
+ key: 'getOptions',
+ value: function getOptions() {
+ var _this2 = this;
+
+ var _props = this.props,
+ options = _props.options,
+ selectedIndex = _props.selectedIndex,
+ prefixCls = _props.prefixCls;
+
+ return options.map(function (item, index) {
+ var _classnames;
+
+ var cls = (0, _classnames4['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-select-option-selected', selectedIndex === index), (0, _defineProperty3['default'])(_classnames, prefixCls + '-select-option-disabled', item.disabled), _classnames));
+ var onclick = null;
+ if (!item.disabled) {
+ onclick = _this2.onSelect.bind(_this2, item.value);
+ }
+ return _react2['default'].createElement(
+ 'li',
+ {
+ className: cls,
+ key: index,
+ onClick: onclick,
+ disabled: item.disabled
+ },
+ item.value
+ );
+ });
+ }
+ }, {
+ key: 'scrollToSelected',
+ value: function scrollToSelected(duration) {
+ // move to selected item
+ var select = _reactDom2['default'].findDOMNode(this);
+ var list = _reactDom2['default'].findDOMNode(this.list);
+ if (!list) {
+ return;
+ }
+ var index = this.props.selectedIndex;
+ if (index < 0) {
+ index = 0;
+ }
+ var topOption = list.children[index];
+ var to = topOption.offsetTop;
+ scrollTo(select, to, duration);
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _classnames2;
+
+ if (this.props.options.length === 0) {
+ return null;
+ }
+
+ var prefixCls = this.props.prefixCls;
+
+ var cls = (0, _classnames4['default'])((_classnames2 = {}, (0, _defineProperty3['default'])(_classnames2, prefixCls + '-select', 1), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-select-active', this.state.active), _classnames2));
+
+ return _react2['default'].createElement(
+ 'div',
+ {
+ className: cls,
+ onMouseEnter: this.handleMouseEnter,
+ onMouseLeave: this.handleMouseLeave
+ },
+ _react2['default'].createElement(
+ 'ul',
+ { ref: this.saveList },
+ this.getOptions()
+ )
+ );
+ }
+ }]);
+ return Select;
+ }(_react.Component);
+
+ Select.propTypes = {
+ prefixCls: _propTypes2['default'].string,
+ options: _propTypes2['default'].array,
+ selectedIndex: _propTypes2['default'].number,
+ type: _propTypes2['default'].string,
+ onSelect: _propTypes2['default'].func,
+ onMouseEnter: _propTypes2['default'].func
+ };
+ exports['default'] = Select;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 412 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _MonthCalendar = __webpack_require__(413);
+
+ var _MonthCalendar2 = _interopRequireDefault(_MonthCalendar);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _Picker = __webpack_require__(387);
+
+ var _Picker2 = _interopRequireDefault(_Picker);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ * Created by chief on 17/4/6.
+ */
+
+ var MonthPicker = function (_Component) {
+ _inherits(MonthPicker, _Component);
+
+ function MonthPicker(props, context) {
+ _classCallCheck(this, MonthPicker);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.onChange = function (value) {
+ _this.setState({
+ value: value
+ });
+ };
+
+ _this.onOpenChange = function (open) {
+ _this.setState({
+ open: open
+ });
+ };
+
+ _this.onTypeChange = function (type) {
+ _this.setState({
+ type: type
+ });
+ };
+
+ _this.state = {
+ type: "month",
+ value: props.value || props.defaultValue,
+ open: false
+ };
+ return _this;
+ }
+
+ MonthPicker.prototype.render = function render() {
+ var _this2 = this;
+
+ var state = this.state;
+
+ var props = this.props;
+
+ var monthCalendar = _react2["default"].createElement(_MonthCalendar2["default"], props);
+
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _Picker2["default"],
+ {
+ onOpenChange: this.onOpenChange,
+ animation: "slide-up",
+ calendar: monthCalendar,
+ open: this.state.open,
+ value: state.value,
+ onChange: this.onChange
+ },
+ function (_ref) {
+ var value = _ref.value;
+
+ return _react2["default"].createElement(_beeFormControl2["default"], {
+ placeholder: _this2.props.placeholder,
+ className: _this2.props.className,
+ value: value && value.format(props.format) || ""
+ });
+ }
+ )
+ );
+ };
+
+ return MonthPicker;
+ }(_react.Component);
+
+ exports["default"] = MonthPicker;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 413 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _KeyCode = __webpack_require__(195);
+
+ var _KeyCode2 = _interopRequireDefault(_KeyCode);
+
+ var _MonthPanel = __webpack_require__(374);
+
+ var _MonthPanel2 = _interopRequireDefault(_MonthPanel);
+
+ var _CalendarMixin = __webpack_require__(383);
+
+ var _CalendarMixin2 = _interopRequireDefault(_CalendarMixin);
+
+ var _CommonMixin = __webpack_require__(384);
+
+ var _CommonMixin2 = _interopRequireDefault(_CommonMixin);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var MonthCalendar = (0, _createReactClass2['default'])({
+ displayName: 'MonthCalendar',
+
+ propTypes: {
+ monthCellRender: _propTypes2['default'].func,
+ dateCellRender: _propTypes2['default'].func
+ },
+ mixins: [_CommonMixin2['default'], _CalendarMixin2['default']],
+
+ onKeyDown: function onKeyDown(event) {
+ var keyCode = event.keyCode;
+ var ctrlKey = event.ctrlKey || event.metaKey;
+ var stateValue = this.state.value;
+ var disabledDate = this.props.disabledDate;
+
+ var value = stateValue;
+ switch (keyCode) {
+ case _KeyCode2['default'].DOWN:
+ value = stateValue.clone();
+ value.add(3, 'months');
+ break;
+ case _KeyCode2['default'].UP:
+ value = stateValue.clone();
+ value.add(-3, 'months');
+ break;
+ case _KeyCode2['default'].LEFT:
+ value = stateValue.clone();
+ if (ctrlKey) {
+ value.add(-1, 'years');
+ } else {
+ value.add(-1, 'months');
+ }
+ break;
+ case _KeyCode2['default'].RIGHT:
+ value = stateValue.clone();
+ if (ctrlKey) {
+ value.add(1, 'years');
+ } else {
+ value.add(1, 'months');
+ }
+ break;
+ case _KeyCode2['default'].ENTER:
+ if (!disabledDate || !disabledDate(stateValue)) {
+ this.onSelect(stateValue);
+ }
+ event.preventDefault();
+ return 1;
+ default:
+ return undefined;
+ }
+ if (value !== stateValue) {
+ this.setValue(value);
+ event.preventDefault();
+ return 1;
+ }
+ },
+ render: function render() {
+ var props = this.props;
+ var children = _react2['default'].createElement(_MonthPanel2['default'], {
+ locale: props.locale,
+ disabledDate: props.disabledDate,
+ style: { position: 'relative' },
+ value: this.state.value,
+ cellRender: props.monthCellRender,
+ contentRender: props.monthCellContentRender,
+ rootPrefixCls: props.prefixCls,
+ onChange: this.setValue,
+ onSelect: this.onSelect
+ });
+ return this.renderRoot({
+ children: children
+ });
+ }
+ });
+
+ exports['default'] = MonthCalendar;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 414 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _RangeCalendar = __webpack_require__(415);
+
+ var _RangeCalendar2 = _interopRequireDefault(_RangeCalendar);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _Picker = __webpack_require__(387);
+
+ var _Picker2 = _interopRequireDefault(_Picker);
+
+ var _zh_CN = __webpack_require__(434);
+
+ var _zh_CN2 = _interopRequireDefault(_zh_CN);
+
+ var _en_US = __webpack_require__(385);
+
+ var _en_US2 = _interopRequireDefault(_en_US);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ __webpack_require__(367);
+
+ __webpack_require__(275);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ * Created by chief on 17/4/6.
+ */
+
+
+ function format(v) {
+ return v ? v.format(formatStr) : '';
+ }
+ var formatStr = 'YYYY-MM-DD';
+
+ var fullFormat = "YYYY-MM-DD";
+
+ var cn = location.search.indexOf("cn") !== -1;
+
+ var now = (0, _moment2["default"])();
+
+ function isValidRange(v) {
+ return v && v[0] && v[1];
+ }
+
+ if (cn) {
+ now.locale("zh-cn").utcOffset(8);
+ } else {
+ now.locale("en-gb").utcOffset(0);
+ }
+
+ var Picker = function (_Component) {
+ _inherits(Picker, _Component);
+
+ function Picker(props, context) {
+ _classCallCheck(this, Picker);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.onChange = function (value) {
+ //console.log('onChange', value);
+ _this.setState({ value: value });
+ };
+
+ _this.onHoverChange = function (hoverValue) {
+ _this.setState({ hoverValue: hoverValue });
+ };
+
+ _this.remove = function (e) {
+ console.log(e);
+ _this.setState({ value: '' });
+ };
+
+ _this.state = {
+ hoverValue: [],
+ value: props.defaultValue || []
+ };
+ return _this;
+ }
+
+ Picker.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
+ this.setState({
+ value: nextProps.defaultValue || []
+ });
+ };
+
+ Picker.prototype.render = function render() {
+ var _this2 = this;
+
+ var props = this.props;
+ var showValue = props.showValue,
+ value = props.value;
+
+ var calendar = _react2["default"].createElement(_RangeCalendar2["default"], _extends({}, props, {
+ hoverValue: this.state.hoverValue,
+ onHoverChange: this.onHoverChange,
+ showWeekNumber: false,
+ format: formatStr,
+ dateInputPlaceholder: ['start', 'end'],
+ defaultValue: [now, now.clone().add(1, 'months')],
+ locale: cn ? _zh_CN2["default"] : _en_US2["default"],
+ onChange: props.onChange,
+ disabledDate: props.disabledDate
+ }));
+
+ return _react2["default"].createElement(
+ _Picker2["default"],
+ _extends({}, props, {
+ value: this.state.value,
+ onChange: this.onChange,
+ animation: "slide-up",
+ calendar: calendar
+ }),
+ function (_ref) {
+ var value = _ref.value;
+
+ return _react2["default"].createElement(
+ "div",
+ { className: 'calendar-picker u-input-group simple' },
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ placeholder: _this2.props.placeholder ? _this2.props.placeholder : 'start ~ end',
+ value: isValidRange(value) && format(value[0]) + " ~ " + format(value[1]) || ''
+ })
+ );
+ }
+ );
+ };
+
+ return Picker;
+ }(_react.Component);
+
+ exports["default"] = Picker;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 415 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _defineProperty2 = __webpack_require__(371);
+
+ var _defineProperty3 = _interopRequireDefault(_defineProperty2);
+
+ var _toConsumableArray2 = __webpack_require__(416);
+
+ var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
+
+ var _slicedToArray2 = __webpack_require__(426);
+
+ var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ var _classnames2 = __webpack_require__(3);
+
+ var _classnames3 = _interopRequireDefault(_classnames2);
+
+ var _CalendarPart = __webpack_require__(433);
+
+ var _CalendarPart2 = _interopRequireDefault(_CalendarPart);
+
+ var _TodayButton = __webpack_require__(380);
+
+ var _TodayButton2 = _interopRequireDefault(_TodayButton);
+
+ var _OkButton = __webpack_require__(381);
+
+ var _OkButton2 = _interopRequireDefault(_OkButton);
+
+ var _TimePickerButton = __webpack_require__(382);
+
+ var _TimePickerButton2 = _interopRequireDefault(_TimePickerButton);
+
+ var _CommonMixin = __webpack_require__(384);
+
+ var _CommonMixin2 = _interopRequireDefault(_CommonMixin);
+
+ var _util = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function noop() {}
+
+ function isEmptyArray(arr) {
+ return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) {
+ return !i;
+ }));
+ }
+
+ function getValueFromSelectedValue(selectedValue) {
+ var _selectedValue = (0, _slicedToArray3['default'])(selectedValue, 2),
+ start = _selectedValue[0],
+ end = _selectedValue[1];
+
+ var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end;
+ return [start, newEnd];
+ }
+
+ function normalizeAnchor(props, init) {
+ var selectedValue = props.selectedValue || init && props.defaultSelectedValue;
+ var value = props.value || init && props.defaultValue;
+ var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue);
+ return !isEmptyArray(normalizedValue) ? normalizedValue : init && [(0, _moment2['default'])(), (0, _moment2['default'])().add(1, 'months')];
+ }
+
+ function generateOptions(length) {
+ var arr = [];
+ for (var value = 0; value < length; value++) {
+ arr.push(value);
+ }
+ return arr;
+ }
+
+ function onInputSelect(direction, value) {
+ if (!value) {
+ return;
+ }
+ var originalValue = this.state.selectedValue;
+ var selectedValue = originalValue.concat();
+ var index = direction === 'left' ? 0 : 1;
+ selectedValue[index] = value;
+ if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {
+ selectedValue[1 - index] = this.state.showTimePicker ? selectedValue[index] : undefined;
+ }
+ this.fireSelectValueChange(selectedValue);
+ }
+
+ var RangeCalendar = (0, _createReactClass2['default'])({
+ displayName: 'RangeCalendar',
+
+ propTypes: {
+ prefixCls: _propTypes2['default'].string,
+ dateInputPlaceholder: _propTypes2['default'].any,
+ defaultValue: _propTypes2['default'].any,
+ value: _propTypes2['default'].any,
+ hoverValue: _propTypes2['default'].any,
+ timePicker: _propTypes2['default'].any,
+ showOk: _propTypes2['default'].bool,
+ showToday: _propTypes2['default'].bool,
+ defaultSelectedValue: _propTypes2['default'].array,
+ selectedValue: _propTypes2['default'].array,
+ onOk: _propTypes2['default'].func,
+ showClear: _propTypes2['default'].bool,
+ locale: _propTypes2['default'].object,
+ onChange: _propTypes2['default'].func,
+ onSelect: _propTypes2['default'].func,
+ onValueChange: _propTypes2['default'].func,
+ onHoverChange: _propTypes2['default'].func,
+ format: _propTypes2['default'].oneOfType([_propTypes2['default'].object, _propTypes2['default'].string]),
+ onClear: _propTypes2['default'].func,
+ type: _propTypes2['default'].any,
+ disabledDate: _propTypes2['default'].func,
+ disabledTime: _propTypes2['default'].func
+ },
+
+ mixins: [_CommonMixin2['default']],
+
+ getDefaultProps: function getDefaultProps() {
+ return {
+ type: 'both',
+ defaultSelectedValue: [],
+ onValueChange: noop,
+ onHoverChange: noop,
+ disabledTime: noop,
+ showToday: true
+ };
+ },
+ getInitialState: function getInitialState() {
+ var props = this.props;
+ var selectedValue = props.selectedValue || props.defaultSelectedValue;
+ var value = normalizeAnchor(props, 1);
+ return {
+ selectedValue: selectedValue,
+ prevSelectedValue: selectedValue,
+ firstSelectedValue: null,
+ hoverValue: props.hoverValue || [],
+ value: value,
+ showTimePicker: false,
+ isStartMonthYearPanelShow: false,
+ isEndMonthYearPanelShow: false
+ };
+ },
+ componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
+ var newState = {};
+ if ('value' in nextProps) {
+ if (nextProps.value) {
+ newState.value = nextProps.value;
+ } else {
+ newState.value = normalizeAnchor(nextProps, 0);
+ }
+ this.setState(newState);
+ }
+ if ('hoverValue' in nextProps) {
+ this.setState({ hoverValue: nextProps.hoverValue });
+ }
+ if ('selectedValue' in nextProps) {
+ newState.selectedValue = nextProps.selectedValue;
+ newState.prevSelectedValue = nextProps.selectedValue;
+ this.setState(newState);
+ }
+ },
+ onDatePanelEnter: function onDatePanelEnter() {
+ if (this.hasSelectedValue()) {
+ this.fireHoverValueChange(this.state.selectedValue.concat());
+ }
+ },
+ onDatePanelLeave: function onDatePanelLeave() {
+ if (this.hasSelectedValue()) {
+ this.fireHoverValueChange([]);
+ }
+ },
+ onSelect: function onSelect(value) {
+ var type = this.props.type;
+ var _state = this.state,
+ selectedValue = _state.selectedValue,
+ prevSelectedValue = _state.prevSelectedValue,
+ firstSelectedValue = _state.firstSelectedValue;
+
+ var nextSelectedValue = void 0;
+ if (type === 'both') {
+ if (!firstSelectedValue) {
+ (0, _util.syncTime)(prevSelectedValue[0], value);
+ nextSelectedValue = [value];
+ } else if (this.compare(firstSelectedValue, value) < 0) {
+ (0, _util.syncTime)(prevSelectedValue[1], value);
+ nextSelectedValue = [firstSelectedValue, value];
+ } else {
+ (0, _util.syncTime)(prevSelectedValue[0], value);
+ (0, _util.syncTime)(prevSelectedValue[1], firstSelectedValue);
+ nextSelectedValue = [value, firstSelectedValue];
+ }
+ } else if (type === 'start') {
+ (0, _util.syncTime)(prevSelectedValue[0], value);
+ var endValue = selectedValue[1];
+ nextSelectedValue = endValue && this.compare(endValue, value) > 0 ? [value, endValue] : [value];
+ } else {
+ // type === 'end'
+ var startValue = selectedValue[0];
+ if (startValue && this.compare(startValue, value) <= 0) {
+ (0, _util.syncTime)(prevSelectedValue[1], value);
+ nextSelectedValue = [startValue, value];
+ } else {
+ (0, _util.syncTime)(prevSelectedValue[0], value);
+ nextSelectedValue = [value];
+ }
+ }
+
+ this.fireSelectValueChange(nextSelectedValue);
+ },
+ onDayHover: function onDayHover(value) {
+ var hoverValue = [];
+ var _state2 = this.state,
+ selectedValue = _state2.selectedValue,
+ firstSelectedValue = _state2.firstSelectedValue;
+ var type = this.props.type;
+
+ if (type === 'start' && selectedValue[1]) {
+ hoverValue = this.compare(value, selectedValue[1]) < 0 ? [value, selectedValue[1]] : [value];
+ } else if (type === 'end' && selectedValue[0]) {
+ hoverValue = this.compare(value, selectedValue[0]) > 0 ? [selectedValue[0], value] : [];
+ } else {
+ if (!firstSelectedValue) {
+ return;
+ }
+ hoverValue = this.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value];
+ }
+ this.fireHoverValueChange(hoverValue);
+ },
+ onToday: function onToday() {
+ var startValue = (0, _util.getTodayTime)(this.state.value[0]);
+ var endValue = startValue.clone().add(1, 'months');
+ this.setState({ value: [startValue, endValue] });
+ },
+ onOpenTimePicker: function onOpenTimePicker() {
+ this.setState({
+ showTimePicker: true
+ });
+ },
+ onCloseTimePicker: function onCloseTimePicker() {
+ this.setState({
+ showTimePicker: false
+ });
+ },
+ onOk: function onOk() {
+ var selectedValue = this.state.selectedValue;
+
+ if (this.isAllowedDateAndTime(selectedValue)) {
+ this.props.onOk(this.state.selectedValue);
+ }
+ },
+ onStartInputSelect: function onStartInputSelect() {
+ for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) {
+ oargs[_key] = arguments[_key];
+ }
+
+ var args = ['left'].concat(oargs);
+ return onInputSelect.apply(this, args);
+ },
+ onEndInputSelect: function onEndInputSelect() {
+ for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
+ oargs[_key2] = arguments[_key2];
+ }
+
+ var args = ['right'].concat(oargs);
+ return onInputSelect.apply(this, args);
+ },
+ onStartValueChange: function onStartValueChange(leftValue) {
+ var value = [].concat((0, _toConsumableArray3['default'])(this.state.value));
+ value[0] = leftValue;
+ return this.fireValueChange(value);
+ },
+ onEndValueChange: function onEndValueChange(rightValue) {
+ var value = [].concat((0, _toConsumableArray3['default'])(this.state.value));
+ value[1] = rightValue;
+ return this.fireValueChange(value);
+ },
+ onStartPanelChange: function onStartPanelChange(_ref) {
+ var showMonthPanel = _ref.showMonthPanel,
+ showYearPanel = _ref.showYearPanel;
+
+ this.setState({ isStartMonthYearPanelShow: showMonthPanel || showYearPanel });
+ },
+ onEndPanelChange: function onEndPanelChange(_ref2) {
+ var showMonthPanel = _ref2.showMonthPanel,
+ showYearPanel = _ref2.showYearPanel;
+
+ this.setState({ isEndMonthYearPanelShow: showMonthPanel || showYearPanel });
+ },
+ getStartValue: function getStartValue() {
+ var value = this.state.value[0];
+ var selectedValue = this.state.selectedValue;
+ // keep selectedTime when select date
+ if (selectedValue[0] && this.props.timePicker) {
+ value = value.clone();
+ (0, _util.syncTime)(selectedValue[0], value);
+ }
+ if (this.state.showTimePicker && selectedValue[0]) {
+ return selectedValue[0];
+ }
+ return value;
+ },
+ getEndValue: function getEndValue() {
+ var _state3 = this.state,
+ value = _state3.value,
+ selectedValue = _state3.selectedValue,
+ showTimePicker = _state3.showTimePicker;
+
+ var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month');
+ // keep selectedTime when select date
+ if (selectedValue[1] && this.props.timePicker) {
+ (0, _util.syncTime)(selectedValue[1], endValue);
+ }
+ if (showTimePicker) {
+ return selectedValue[1] ? selectedValue[1] : this.getStartValue();
+ }
+ return endValue;
+ },
+
+ // get disabled hours for second picker
+ getEndDisableTime: function getEndDisableTime() {
+ var _state4 = this.state,
+ selectedValue = _state4.selectedValue,
+ value = _state4.value;
+
+ var startValue = selectedValue && selectedValue[0] || value[0].clone();
+ // if startTime and endTime is same day..
+ // the second time picker will not able to pick time before first time picker
+ if (!selectedValue[1] || startValue.isSame(selectedValue[1], 'day')) {
+ var hours = startValue.hour();
+ var minutes = startValue.minute();
+ var second = startValue.second();
+ var _disabledHours = generateOptions(hours);
+ var _disabledMinutes = generateOptions(minutes);
+ var _disabledSeconds = generateOptions(second);
+ return {
+ disabledHours: function disabledHours() {
+ return _disabledHours;
+ },
+ disabledMinutes: function disabledMinutes(hour) {
+ if (hour === hours) {
+ return _disabledMinutes;
+ }
+ return [];
+ },
+ disabledSeconds: function disabledSeconds(hour, minute) {
+ if (hour === hours && minute === minutes) {
+ return _disabledSeconds;
+ }
+ return [];
+ }
+ };
+ }
+ return null;
+ },
+ isAllowedDateAndTime: function isAllowedDateAndTime(selectedValue) {
+ return (0, _util.isAllowedDate)(selectedValue[0], this.props.disabledDate, this.disabledStartTime) && (0, _util.isAllowedDate)(selectedValue[1], this.props.disabledDate, this.disabledEndTime);
+ },
+ hasSelectedValue: function hasSelectedValue() {
+ var selectedValue = this.state.selectedValue;
+
+ return !!selectedValue[1] && !!selectedValue[0];
+ },
+ compare: function compare(v1, v2) {
+ if (this.props.timePicker) {
+ return v1.diff(v2);
+ }
+ return v1.diff(v2, 'days');
+ },
+ fireSelectValueChange: function fireSelectValueChange(selectedValue, direct) {
+ var timePicker = this.props.timePicker;
+ var prevSelectedValue = this.state.prevSelectedValue;
+
+ if (timePicker && timePicker.props.defaultValue) {
+ var timePickerDefaultValue = timePicker.props.defaultValue;
+ if (!prevSelectedValue[0] && selectedValue[0]) {
+ (0, _util.syncTime)(timePickerDefaultValue[0], selectedValue[0]);
+ }
+ if (!prevSelectedValue[1] && selectedValue[1]) {
+ (0, _util.syncTime)(timePickerDefaultValue[1], selectedValue[1]);
+ }
+ }
+
+ if (!('selectedValue' in this.props)) {
+ this.setState({
+ selectedValue: selectedValue
+ });
+ }
+
+ // 尚未选择过时间,直接输入的话
+ if (!this.state.selectedValue[0] || !this.state.selectedValue[1]) {
+ var startValue = selectedValue[0] || (0, _moment2['default'])();
+ var endValue = selectedValue[1] || startValue.clone().add(1, 'months');
+ this.setState({
+ selectedValue: selectedValue,
+ value: getValueFromSelectedValue([startValue, endValue])
+ });
+ }
+
+ if (selectedValue[0] && !selectedValue[1]) {
+ this.setState({ firstSelectedValue: selectedValue[0] });
+ this.fireHoverValueChange(selectedValue.concat());
+ }
+ this.props.onChange(selectedValue);
+ if (direct || selectedValue[0] && selectedValue[1]) {
+ this.setState({
+ prevSelectedValue: selectedValue,
+ firstSelectedValue: null
+ });
+ this.fireHoverValueChange([]);
+ this.props.onSelect(selectedValue);
+ }
+ },
+ fireValueChange: function fireValueChange(value) {
+ var props = this.props;
+ if (!('value' in props)) {
+ this.setState({
+ value: value
+ });
+ }
+ props.onValueChange(value);
+ },
+ fireHoverValueChange: function fireHoverValueChange(hoverValue) {
+ var props = this.props;
+ if (!('hoverValue' in props)) {
+ this.setState({ hoverValue: hoverValue });
+ }
+ props.onHoverChange(hoverValue);
+ },
+ clear: function clear() {
+ this.fireSelectValueChange([], true);
+ this.props.onClear();
+ },
+ disabledStartTime: function disabledStartTime(time) {
+ return this.props.disabledTime(time, 'start');
+ },
+ disabledEndTime: function disabledEndTime(time) {
+ return this.props.disabledTime(time, 'end');
+ },
+ disabledStartMonth: function disabledStartMonth(month) {
+ var value = this.state.value;
+
+ return month.isSameOrAfter(value[1], 'month');
+ },
+ disabledEndMonth: function disabledEndMonth(month) {
+ var value = this.state.value;
+
+ return month.isSameOrBefore(value[0], 'month');
+ },
+ render: function render() {
+ var _className, _classnames;
+
+ var props = this.props;
+ var state = this.state;
+ var showTimePicker = state.showTimePicker,
+ isStartMonthYearPanelShow = state.isStartMonthYearPanelShow,
+ isEndMonthYearPanelShow = state.isEndMonthYearPanelShow;
+ var prefixCls = props.prefixCls,
+ dateInputPlaceholder = props.dateInputPlaceholder,
+ timePicker = props.timePicker,
+ showOk = props.showOk,
+ locale = props.locale,
+ showClear = props.showClear,
+ showToday = props.showToday,
+ type = props.type;
+ var hoverValue = state.hoverValue,
+ selectedValue = state.selectedValue;
+
+ var className = (_className = {}, (0, _defineProperty3['default'])(_className, props.className, !!props.className), (0, _defineProperty3['default'])(_className, prefixCls, 1), (0, _defineProperty3['default'])(_className, prefixCls + '-hidden', !props.visible), (0, _defineProperty3['default'])(_className, prefixCls + '-range', 1), (0, _defineProperty3['default'])(_className, prefixCls + '-show-time-picker', showTimePicker), (0, _defineProperty3['default'])(_className, prefixCls + '-week-number', props.showWeekNumber), _className);
+ var classes = (0, _classnames3['default'])(className);
+ var newProps = {
+ selectedValue: state.selectedValue,
+ onSelect: this.onSelect,
+ onDayHover: type === 'start' && selectedValue[1] || type === 'end' && selectedValue[0] || !!hoverValue.length ? this.onDayHover : undefined
+ };
+
+ var placeholder1 = void 0;
+ var placeholder2 = void 0;
+
+ if (dateInputPlaceholder) {
+ if (Array.isArray(dateInputPlaceholder)) {
+ var _dateInputPlaceholder = (0, _slicedToArray3['default'])(dateInputPlaceholder, 2);
+
+ placeholder1 = _dateInputPlaceholder[0];
+ placeholder2 = _dateInputPlaceholder[1];
+ } else {
+ placeholder1 = placeholder2 = dateInputPlaceholder;
+ }
+ }
+ var showOkButton = showOk === true || showOk !== false && !!timePicker;
+ var cls = (0, _classnames3['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-footer', true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-range-bottom', true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-footer-show-ok', showOkButton), _classnames));
+
+ var startValue = this.getStartValue();
+ var endValue = this.getEndValue();
+ var todayTime = (0, _util.getTodayTime)(startValue);
+ var thisMonth = todayTime.month();
+ var thisYear = todayTime.year();
+ var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth;
+ var nextMonthOfStart = startValue.clone().add(1, 'months');
+ var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month();
+ return _react2['default'].createElement(
+ 'div',
+ {
+ ref: 'root',
+ className: classes,
+ style: props.style,
+ tabIndex: '0'
+ },
+ props.renderSidebar(),
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-panel' },
+ showClear && selectedValue[0] && selectedValue[1] ? _react2['default'].createElement('a', {
+ className: prefixCls + '-clear-btn',
+ role: 'button',
+ title: locale.clear,
+ onClick: this.clear
+ }) : null,
+ _react2['default'].createElement(
+ 'div',
+ {
+ className: prefixCls + '-date-panel',
+ onMouseLeave: type !== 'both' ? this.onDatePanelLeave : undefined,
+ onMouseEnter: type !== 'both' ? this.onDatePanelEnter : undefined
+ },
+ _react2['default'].createElement(_CalendarPart2['default'], (0, _extends3['default'])({}, props, newProps, {
+ hoverValue: hoverValue,
+ direction: 'left',
+ disabledTime: this.disabledStartTime,
+ disabledMonth: this.disabledStartMonth,
+ format: this.getFormat(),
+ value: startValue,
+ placeholder: placeholder1,
+ onInputSelect: this.onStartInputSelect,
+ onValueChange: this.onStartValueChange,
+ onPanelChange: this.onStartPanelChange,
+ timePicker: timePicker,
+ showTimePicker: showTimePicker,
+ enablePrev: true,
+ enableNext: !isClosestMonths || isEndMonthYearPanelShow
+ })),
+ _react2['default'].createElement(
+ 'span',
+ { className: prefixCls + '-range-middle' },
+ '~'
+ ),
+ _react2['default'].createElement(_CalendarPart2['default'], (0, _extends3['default'])({}, props, newProps, {
+ hoverValue: hoverValue,
+ direction: 'right',
+ format: this.getFormat(),
+ timePickerDisabledTime: this.getEndDisableTime(),
+ placeholder: placeholder2,
+ value: endValue,
+ onInputSelect: this.onEndInputSelect,
+ onValueChange: this.onEndValueChange,
+ onPanelChange: this.onEndPanelChange,
+ timePicker: timePicker,
+ showTimePicker: showTimePicker,
+ disabledTime: this.disabledEndTime,
+ disabledMonth: this.disabledEndMonth,
+ enablePrev: !isClosestMonths || isStartMonthYearPanelShow,
+ enableNext: true
+ }))
+ ),
+ _react2['default'].createElement(
+ 'div',
+ { className: cls },
+ props.renderFooter(),
+ showToday || props.timePicker || showOkButton ? _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-footer-btn' },
+ showToday ? _react2['default'].createElement(_TodayButton2['default'], (0, _extends3['default'])({}, props, {
+ disabled: isTodayInView,
+ value: state.value[0],
+ onToday: this.onToday,
+ text: locale.backToToday
+ })) : null,
+ props.timePicker ? _react2['default'].createElement(_TimePickerButton2['default'], (0, _extends3['default'])({}, props, {
+ showTimePicker: showTimePicker,
+ onOpenTimePicker: this.onOpenTimePicker,
+ onCloseTimePicker: this.onCloseTimePicker,
+ timePickerDisabled: !this.hasSelectedValue() || hoverValue.length
+ })) : null,
+ showOkButton ? _react2['default'].createElement(_OkButton2['default'], (0, _extends3['default'])({}, props, {
+ onOk: this.onOk,
+ okDisabled: !this.isAllowedDateAndTime(selectedValue) || !this.hasSelectedValue() || hoverValue.length
+ })) : null
+ ) : null
+ )
+ )
+ );
+ }
+ });
+
+ exports['default'] = RangeCalendar;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 416 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _from = __webpack_require__(417);
+
+ var _from2 = _interopRequireDefault(_from);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function (arr) {
+ if (Array.isArray(arr)) {
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
+ arr2[i] = arr[i];
+ }
+
+ return arr2;
+ } else {
+ return (0, _from2.default)(arr);
+ }
+ };
+
+/***/ }),
+/* 417 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(418), __esModule: true };
+
+/***/ }),
+/* 418 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(205);
+ __webpack_require__(419);
+ module.exports = __webpack_require__(179).Array.from;
+
+/***/ }),
+/* 419 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+ var ctx = __webpack_require__(180)
+ , $export = __webpack_require__(177)
+ , toObject = __webpack_require__(184)
+ , call = __webpack_require__(420)
+ , isArrayIter = __webpack_require__(421)
+ , toLength = __webpack_require__(422)
+ , getIterFn = __webpack_require__(423);
+ $export($export.S + $export.F * !__webpack_require__(425)(function(iter){ Array.from(iter); }), 'Array', {
+ // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
+ from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
+ var O = toObject(arrayLike)
+ , C = typeof this == 'function' ? this : Array
+ , $$ = arguments
+ , $$len = $$.length
+ , mapfn = $$len > 1 ? $$[1] : undefined
+ , mapping = mapfn !== undefined
+ , index = 0
+ , iterFn = getIterFn(O)
+ , length, result, step, iterator;
+ if(mapping)mapfn = ctx(mapfn, $$len > 2 ? $$[2] : undefined, 2);
+ // if object isn't iterable or it's array with default iterator - use simple case
+ if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){
+ for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){
+ result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value;
+ }
+ } else {
+ length = toLength(O.length);
+ for(result = new C(length); length > index; index++){
+ result[index] = mapping ? mapfn(O[index], index) : O[index];
+ }
+ }
+ result.length = index;
+ return result;
+ }
+ });
+
+
+/***/ }),
+/* 420 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // call something on iterator step with safe closing on error
+ var anObject = __webpack_require__(233);
+ module.exports = function(iterator, fn, value, entries){
+ try {
+ return entries ? fn(anObject(value)[0], value[1]) : fn(value);
+ // 7.4.6 IteratorClose(iterator, completion)
+ } catch(e){
+ var ret = iterator['return'];
+ if(ret !== undefined)anObject(ret.call(iterator));
+ throw e;
+ }
+ };
+
+/***/ }),
+/* 421 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // check on default Array iterator
+ var Iterators = __webpack_require__(215)
+ , ITERATOR = __webpack_require__(218)('iterator')
+ , ArrayProto = Array.prototype;
+
+ module.exports = function(it){
+ return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
+ };
+
+/***/ }),
+/* 422 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // 7.1.15 ToLength
+ var toInteger = __webpack_require__(207)
+ , min = Math.min;
+ module.exports = function(it){
+ return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
+ };
+
+/***/ }),
+/* 423 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var classof = __webpack_require__(424)
+ , ITERATOR = __webpack_require__(218)('iterator')
+ , Iterators = __webpack_require__(215);
+ module.exports = __webpack_require__(179).getIteratorMethod = function(it){
+ if(it != undefined)return it[ITERATOR]
+ || it['@@iterator']
+ || Iterators[classof(it)];
+ };
+
+/***/ }),
+/* 424 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ // getting tag from 19.1.3.6 Object.prototype.toString()
+ var cof = __webpack_require__(187)
+ , TAG = __webpack_require__(218)('toStringTag')
+ // ES3 wrong here
+ , ARG = cof(function(){ return arguments; }()) == 'Arguments';
+
+ module.exports = function(it){
+ var O, T, B;
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
+ // @@toStringTag case
+ : typeof (T = (O = Object(it))[TAG]) == 'string' ? T
+ // builtinTag case
+ : ARG ? cof(O)
+ // ES3 arguments fallback
+ : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
+ };
+
+/***/ }),
+/* 425 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var ITERATOR = __webpack_require__(218)('iterator')
+ , SAFE_CLOSING = false;
+
+ try {
+ var riter = [7][ITERATOR]();
+ riter['return'] = function(){ SAFE_CLOSING = true; };
+ Array.from(riter, function(){ throw 2; });
+ } catch(e){ /* empty */ }
+
+ module.exports = function(exec, skipClosing){
+ if(!skipClosing && !SAFE_CLOSING)return false;
+ var safe = false;
+ try {
+ var arr = [7]
+ , iter = arr[ITERATOR]();
+ iter.next = function(){ return {done: safe = true}; };
+ arr[ITERATOR] = function(){ return iter; };
+ exec(arr);
+ } catch(e){ /* empty */ }
+ return safe;
+ };
+
+/***/ }),
+/* 426 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ exports.__esModule = true;
+
+ var _isIterable2 = __webpack_require__(427);
+
+ var _isIterable3 = _interopRequireDefault(_isIterable2);
+
+ var _getIterator2 = __webpack_require__(430);
+
+ var _getIterator3 = _interopRequireDefault(_getIterator2);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ exports.default = function () {
+ function sliceIterator(arr, i) {
+ var _arr = [];
+ var _n = true;
+ var _d = false;
+ var _e = undefined;
+
+ try {
+ for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
+ _arr.push(_s.value);
+
+ if (i && _arr.length === i) break;
+ }
+ } catch (err) {
+ _d = true;
+ _e = err;
+ } finally {
+ try {
+ if (!_n && _i["return"]) _i["return"]();
+ } finally {
+ if (_d) throw _e;
+ }
+ }
+
+ return _arr;
+ }
+
+ return function (arr, i) {
+ if (Array.isArray(arr)) {
+ return arr;
+ } else if ((0, _isIterable3.default)(Object(arr))) {
+ return sliceIterator(arr, i);
+ } else {
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
+ }
+ };
+ }();
+
+/***/ }),
+/* 427 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(428), __esModule: true };
+
+/***/ }),
+/* 428 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(221);
+ __webpack_require__(205);
+ module.exports = __webpack_require__(429);
+
+/***/ }),
+/* 429 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var classof = __webpack_require__(424)
+ , ITERATOR = __webpack_require__(218)('iterator')
+ , Iterators = __webpack_require__(215);
+ module.exports = __webpack_require__(179).isIterable = function(it){
+ var O = Object(it);
+ return O[ITERATOR] !== undefined
+ || '@@iterator' in O
+ || Iterators.hasOwnProperty(classof(O));
+ };
+
+/***/ }),
+/* 430 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ module.exports = { "default": __webpack_require__(431), __esModule: true };
+
+/***/ }),
+/* 431 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ __webpack_require__(221);
+ __webpack_require__(205);
+ module.exports = __webpack_require__(432);
+
+/***/ }),
+/* 432 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ var anObject = __webpack_require__(233)
+ , get = __webpack_require__(423);
+ module.exports = __webpack_require__(179).getIterator = function(it){
+ var iterFn = get(it);
+ if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');
+ return anObject(iterFn.call(it));
+ };
+
+/***/ }),
+/* 433 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends2 = __webpack_require__(173);
+
+ var _extends3 = _interopRequireDefault(_extends2);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _createReactClass = __webpack_require__(189);
+
+ var _createReactClass2 = _interopRequireDefault(_createReactClass);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _CalendarHeader = __webpack_require__(373);
+
+ var _CalendarHeader2 = _interopRequireDefault(_CalendarHeader);
+
+ var _DateTable = __webpack_require__(196);
+
+ var _DateTable2 = _interopRequireDefault(_DateTable);
+
+ var _DateInput = __webpack_require__(386);
+
+ var _DateInput2 = _interopRequireDefault(_DateInput);
+
+ var _index = __webpack_require__(372);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ var CalendarPart = (0, _createReactClass2['default'])({
+ displayName: 'CalendarPart',
+
+ propTypes: {
+ prefixCls: _propTypes2['default'].string,
+ value: _propTypes2['default'].any,
+ hoverValue: _propTypes2['default'].any,
+ selectedValue: _propTypes2['default'].any,
+ direction: _propTypes2['default'].any,
+ locale: _propTypes2['default'].any,
+ showTimePicker: _propTypes2['default'].bool,
+ format: _propTypes2['default'].any,
+ placeholder: _propTypes2['default'].any,
+ disabledDate: _propTypes2['default'].any,
+ timePicker: _propTypes2['default'].any,
+ disabledTime: _propTypes2['default'].any,
+ onInputSelect: _propTypes2['default'].func,
+ timePickerDisabledTime: _propTypes2['default'].object,
+ enableNext: _propTypes2['default'].any,
+ enablePrev: _propTypes2['default'].any
+ },
+ render: function render() {
+ var props = this.props;
+ var prefixCls = props.prefixCls,
+ value = props.value,
+ hoverValue = props.hoverValue,
+ selectedValue = props.selectedValue,
+ direction = props.direction,
+ locale = props.locale,
+ format = props.format,
+ placeholder = props.placeholder,
+ disabledDate = props.disabledDate,
+ timePicker = props.timePicker,
+ disabledTime = props.disabledTime,
+ timePickerDisabledTime = props.timePickerDisabledTime,
+ showTimePicker = props.showTimePicker,
+ onInputSelect = props.onInputSelect,
+ enablePrev = props.enablePrev,
+ enableNext = props.enableNext;
+
+ var shouldShowTimePicker = showTimePicker && timePicker;
+ var disabledTimeConfig = shouldShowTimePicker && disabledTime ? (0, _index.getTimeConfig)(selectedValue, disabledTime) : null;
+ var rangeClassName = prefixCls + '-range';
+ var newProps = {
+ locale: locale,
+ value: value,
+ prefixCls: prefixCls,
+ showTimePicker: showTimePicker
+ };
+ var index = direction === 'left' ? 0 : 1;
+ var timePickerEle = shouldShowTimePicker && _react2['default'].cloneElement(timePicker, (0, _extends3['default'])({
+ showHour: true,
+ showMinute: true,
+ showSecond: true
+ }, timePicker.props, disabledTimeConfig, timePickerDisabledTime, {
+ onChange: onInputSelect,
+ defaultOpenValue: value,
+ value: selectedValue[index]
+ }));
+ return _react2['default'].createElement(
+ 'div',
+ { className: rangeClassName + '-part ' + rangeClassName + '-' + direction },
+ _react2['default'].createElement(_DateInput2['default'], {
+ format: format,
+ locale: locale,
+ prefixCls: prefixCls,
+ timePicker: timePicker,
+ disabledDate: disabledDate,
+ placeholder: placeholder,
+ disabledTime: disabledTime,
+ value: value,
+ showClear: false,
+ selectedValue: selectedValue[index],
+ onChange: onInputSelect
+ }),
+ _react2['default'].createElement(
+ 'div',
+ { style: { outline: 'none' } },
+ _react2['default'].createElement(_CalendarHeader2['default'], (0, _extends3['default'])({}, newProps, {
+ enableNext: enableNext,
+ enablePrev: enablePrev,
+ onValueChange: props.onValueChange,
+ onPanelChange: props.onPanelChange,
+ disabledMonth: props.disabledMonth
+ })),
+ showTimePicker ? _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-time-picker' },
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-time-picker-panel' },
+ timePickerEle
+ )
+ ) : null,
+ _react2['default'].createElement(
+ 'div',
+ { className: prefixCls + '-body' },
+ _react2['default'].createElement(_DateTable2['default'], (0, _extends3['default'])({}, newProps, {
+ hoverValue: hoverValue,
+ selectedValue: selectedValue,
+ dateRender: props.dateRender,
+ onSelect: props.onSelect,
+ onDayHover: props.onDayHover,
+ disabledDate: disabledDate,
+ showWeekNumber: props.showWeekNumber
+ }))
+ )
+ )
+ );
+ }
+ });
+
+ exports['default'] = CalendarPart;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 434 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports['default'] = {
+ today: '今天',
+ now: '此刻',
+ backToToday: '返回今天',
+ ok: '确定',
+ timeSelect: '选择时间',
+ dateSelect: '选择日期',
+ clear: '清除',
+ month: '月',
+ year: '年',
+ previousMonth: '上个月 (翻页上键)',
+ nextMonth: '下个月 (翻页下键)',
+ monthSelect: '选择月份',
+ yearSelect: '选择年份',
+ decadeSelect: '选择年代',
+ yearFormat: 'YYYY年',
+ dayFormat: 'D日',
+ dateFormat: 'YYYY年M月D日',
+ dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
+ previousYear: '上一年 (Control键加左方向键)',
+ nextYear: '下一年 (Control键加右方向键)',
+ previousDecade: '上一年代',
+ nextDecade: '下一年代',
+ previousCentury: '上一世纪',
+ nextCentury: '下一世纪'
+ };
+ module.exports = exports['default'];
+
+/***/ }),
+/* 435 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _rcCalendar = __webpack_require__(171);
+
+ var _rcCalendar2 = _interopRequireDefault(_rcCalendar);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _Picker = __webpack_require__(387);
+
+ var _Picker2 = _interopRequireDefault(_Picker);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _zh_CN = __webpack_require__(434);
+
+ var _zh_CN2 = _interopRequireDefault(_zh_CN);
+
+ var _en_US = __webpack_require__(385);
+
+ var _en_US2 = _interopRequireDefault(_en_US);
+
+ var _moment = __webpack_require__(245);
+
+ var _moment2 = _interopRequireDefault(_moment);
+
+ __webpack_require__(367);
+
+ __webpack_require__(275);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ * Created by chief on 17/4/6.
+ */
+
+ var cn = location.search.indexOf("cn") !== -1;
+
+ var now = (0, _moment2["default"])();
+ if (cn) {
+ now.locale("zh-cn").utcOffset(8);
+ } else {
+ now.locale("en-gb").utcOffset(0);
+ }
+
+ var format = "YYYY-Wo";
+
+ var style = "\n.week-calendar {\n width: 386px;\n}\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-date {\n background: #ebfaff;\n}\n\n.week-calendar .rc-calendar-tbody > tr:hover\n.rc-calendar-selected-day .rc-calendar-date {\n background: #3fc7fa;\n}\n\n.week-calendar .week-calendar-sidebar {\n position:absolute;\n top:0;\n left:0;\n bottom:0;\n width:100px;\n border-right: 1px solid #ccc;\n}\n.week-calendar .rc-calendar-panel {\n margin-left: 100px;\n}\n";
+
+ var WeekPicker = function (_Component) {
+ _inherits(WeekPicker, _Component);
+
+ function WeekPicker(props, context) {
+ _classCallCheck(this, WeekPicker);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.onChange = function (value) {
+ _this.setState({
+ value: value
+ });
+ };
+
+ _this.onOpenChange = function (open) {
+ _this.setState({
+ open: open
+ });
+ };
+
+ _this.dateRender = function (current) {
+ var selectedValue = _this.state.value;
+ if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) {
+ return _react2["default"].createElement(
+ "div",
+ { className: "rc-calendar-selected-day" },
+ _react2["default"].createElement(
+ "div",
+ { className: "rc-calendar-date" },
+ current.date()
+ )
+ );
+ }
+ return _react2["default"].createElement(
+ "div",
+ { className: "rc-calendar-date" },
+ current.date()
+ );
+ };
+
+ _this.lastWeek = function () {
+ var value = _this.state.value || now;
+ value.add(-1, "weeks");
+ _this.setState({
+ value: value,
+ open: false
+ });
+ };
+
+ _this.renderSidebar = function () {
+ return _react2["default"].createElement(
+ "div",
+ { className: "week-calendar-sidebar", key: "sidebar" },
+ _react2["default"].createElement(
+ "button",
+ {
+ className: "week-calendar-sidebar-button",
+ onClick: _this.lastWeek.bind(_this),
+ style: { margin: 8 }
+ },
+ "\u4E0A\u4E00\u5468"
+ )
+ );
+ };
+
+ _this.onTypeChange = function (type) {
+ _this.setState({
+ type: type
+ });
+ };
+
+ _this.state = {
+ value: props.value || props.defaultValue,
+ open: false
+ };
+ return _this;
+ }
+
+ WeekPicker.prototype.render = function render() {
+ var _this2 = this;
+
+ var state = this.state;
+ var calendar = _react2["default"].createElement(_rcCalendar2["default"], {
+ className: "week-calendar",
+ showWeekNumber: true,
+ renderSidebar: this.renderSidebar,
+ dateRender: this.dateRender,
+ locale: cn ? _zh_CN2["default"] : _en_US2["default"],
+ format: format,
+ dateInputPlaceholder: this.props.placeholder,
+ defaultValue: now,
+ showDateInput: true
+ });
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement("style", { dangerouslySetInnerHTML: { __html: style } }),
+ _react2["default"].createElement(
+ _Picker2["default"],
+ {
+ onOpenChange: this.onOpenChange,
+ open: this.state.open,
+ animation: "slide-up",
+ calendar: calendar,
+ value: state.value,
+ onChange: this.onChange
+ },
+ function (_ref) {
+ var value = _ref.value;
+
+ return _react2["default"].createElement(_beeFormControl2["default"], {
+ placeholder: _this2.props.placeholder,
+ disabled: state.disabled,
+ readOnly: true,
+ tabIndex: "-1",
+ className: _this2.props.className,
+ value: value && value.format(format) || ""
+ });
+ }
+ )
+ );
+ };
+
+ return WeekPicker;
+ }(_react.Component);
+
+ exports["default"] = WeekPicker;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 436 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeSelect = __webpack_require__(123);
+
+ var _beeSelect2 = _interopRequireDefault(_beeSelect);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ dataSource: _propTypes2["default"].array
+ };
+
+ var SelectRender = function (_Component) {
+ _inherits(SelectRender, _Component);
+
+ function SelectRender() {
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, SelectRender);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
+ value: _this.props.value,
+ editable: false
+ }, _this.handleChange = function (e) {
+ var value = e;
+ if (_this.props.onChange) {
+ _this.props.onChange(value);
+ }
+ _this.setState({ value: value });
+ setTimeout(function () {
+ _this.setState({ editable: false });
+ }, 0);
+ }, _this.check = function () {
+ _this.setState({ editable: false });
+ if (_this.props.onChange) {
+ _this.props.onChange(_this.state.value);
+ }
+ }, _this.edit = function () {
+ _this.setState({ editable: true });
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ SelectRender.prototype.render = function render() {
+ var _state = this.state,
+ value = _state.value,
+ editable = _state.editable;
+ var _props = this.props,
+ isclickTrigger = _props.isclickTrigger,
+ dataSource = _props.dataSource;
+
+ var cellContent = "";
+ if (editable) {
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(
+ _beeSelect2["default"],
+ _extends({}, this.props, {
+ value: this.state.value,
+ onChange: this.handleChange
+ }),
+ this.props.children
+ ),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(
+ _beeSelect2["default"],
+ _extends({}, this.props, {
+ value: this.state.value,
+ onChange: this.handleChange
+ }),
+ this.props.children
+ ),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ );
+ } else {
+ if (dataSource && dataSource.length > 0) {
+ for (var index = 0; index < dataSource.length; index++) {
+ var element = dataSource[index];
+ if (element.value === value) {
+ value = element.key;
+ break;
+ }
+ }
+ }
+ cellContent = isclickTrigger ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper", onClick: this.edit },
+ value || " "
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper" },
+ value || " ",
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-pencil",
+ className: "editable-cell-icon",
+ onClick: this.edit
+ })
+ );
+ }
+ return _react2["default"].createElement(
+ "div",
+ { className: "editable-cell" },
+ cellContent
+ );
+ };
+
+ return SelectRender;
+ }(_react.Component);
+
+ exports["default"] = SelectRender;
+
+ SelectRender.propTypes = propTypes;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 437 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 表格行/列合并
+ * @description 表头只支持列合并,使用 column 里的 colSpan 进行设置。表格支持行/列合并,使用 render 里的单元格属性 colSpan 或者 rowSpan 设值为 0 时,设置的表格不会渲染。
+ *
+ */
+
+ var renderContent = function renderContent(value, row, index) {
+ var obj = {
+ children: value,
+ props: {}
+ };
+ if (index === 4) {
+ obj.props.colSpan = 0;
+ }
+ return obj;
+ };
+
+ var columns = [{
+ title: 'Name',
+ key: "name",
+ dataIndex: 'name',
+ render: function render(text, row, index) {
+ if (index < 4) {
+ return _react2["default"].createElement(
+ "a",
+ { href: "#" },
+ text
+ );
+ }
+ return {
+ children: _react2["default"].createElement(
+ "a",
+ { href: "#" },
+ text
+ ),
+ props: {
+ colSpan: 5
+ }
+ };
+ }
+ }, {
+ title: 'Age',
+ key: "Age",
+ dataIndex: 'age',
+ render: renderContent
+ }, {
+ title: 'Home phone',
+ colSpan: 2,
+ key: "tel",
+ dataIndex: 'tel',
+ render: function render(value, row, index) {
+ var obj = {
+ children: value,
+ props: {}
+ };
+ if (index === 2) {
+ obj.props.rowSpan = 2;
+ }
+ if (index === 3) {
+ obj.props.rowSpan = 0;
+ }
+ if (index === 4) {
+ obj.props.colSpan = 0;
+ }
+ return obj;
+ }
+ }, {
+ title: 'Phone',
+ colSpan: 0,
+ key: "phone",
+ dataIndex: 'phone',
+ render: renderContent
+ }, {
+ title: 'Address',
+ key: "address",
+ dataIndex: 'address',
+ render: renderContent
+ }];
+
+ var data = [{
+ key: '1',
+ name: 'John Brown',
+ age: 32,
+ tel: '0571-22098909',
+ phone: 18889898989,
+ address: 'New York No. 1 Lake Park'
+ }, {
+ key: '2',
+ name: 'Jim Green',
+ tel: '0571-22098333',
+ phone: 18889898888,
+ age: 42,
+ address: 'London No. 1 Lake Park'
+ }, {
+ key: '3',
+ name: 'Joe Black',
+ age: 32,
+ tel: '0575-22098909',
+ phone: 18900010002,
+ address: 'Sidney No. 1 Lake Park'
+ }, {
+ key: '4',
+ name: 'Jim Red',
+ age: 18,
+ tel: '0575-22098909',
+ phone: 18900010002,
+ address: 'London No. 2 Lake Park'
+ }, {
+ key: '5',
+ name: 'Jake White',
+ age: 18,
+ tel: '0575-22098909',
+ phone: 18900010002,
+ address: 'Dublin No. 2 Lake Park'
+ }];
+
+ var Demo15 = function (_Component) {
+ _inherits(Demo15, _Component);
+
+ function Demo15() {
+ _classCallCheck(this, Demo15);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo15.prototype.render = function render() {
+ return _react2["default"].createElement(_src2["default"], { columns: columns, data: data });
+ };
+
+ return Demo15;
+ }(_react.Component);
+
+ exports["default"] = Demo15;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 438 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _multiSelect = __webpack_require__(92);
+
+ var _multiSelect2 = _interopRequireDefault(_multiSelect);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 嵌套子表格
+ * @description 通过expandedRowRender参数来实现子表格
+ *
+ */
+
+ var columns16 = [{ title: "用户名", dataIndex: "a", key: "a", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, { title: "年龄", dataIndex: "c", key: "c", width: 200 }, {
+ title: "操作",
+ dataIndex: "d",
+ key: "d",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(
+ "a",
+ {
+ href: "#",
+ onClick: function onClick() {
+ alert("这是第" + index + "列,内容为:" + text);
+ }
+ },
+ "\u4E00\u4E9B\u64CD\u4F5C"
+ );
+ }
+ }];
+
+ var data16 = [{ a: "令狐冲", b: "男", c: 41, d: "操作", key: "1" }, { a: "杨过", b: "男", c: 67, d: "操作", key: "2" }, { a: "郭靖", b: "男", c: 25, d: "操作", key: "3" }];
+
+ // let Table1 = multiSelect(Table)
+
+ var Demo16 = function (_Component) {
+ _inherits(Demo16, _Component);
+
+ function Demo16(props) {
+ _classCallCheck(this, Demo16);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.expandedRowRender = function (record, index, indent) {
+ return _react2["default"].createElement(_src2["default"], {
+ columns: columns16,
+ data: _this.state.data_obj[record.key],
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u8FD9\u662F\u4E00\u4E2A\u6807\u9898"
+ );
+ },
+ footer: function footer(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u8868\u5C3E: \u6211\u662F\u5C0F\u5C3E\u5DF4"
+ );
+ }
+ });
+ };
+
+ _this.getData = function (expanded, record) {
+ //当点击展开的时候才去请求数据
+ var new_obj = _extends({}, _this.state.data_obj);
+ if (expanded) {
+ if (record.key === '1') {
+ new_obj[record.key] = [{ a: "令狐冲", b: "男", c: 41, d: "操作", key: "1" }, { a: "杨过", b: "男", c: 67, d: "操作", key: "2" }];
+ _this.setState({
+ data_obj: new_obj
+ });
+ } else {
+ new_obj[record.key] = [{ a: "令狐冲", b: "男", c: 41, d: "操作", key: "1" }];
+ _this.setState({
+ data_obj: new_obj
+ });
+ }
+ }
+ };
+
+ _this.haveExpandIcon = function (record, index) {
+ //控制是否显示行展开icon,该参数只有在和expandedRowRender同时使用才生效
+ if (index == 0) {
+ return true;
+ }
+ return false;
+ };
+
+ _this.state = {
+ data_obj: {}
+ };
+ return _this;
+ }
+
+ Demo16.prototype.render = function render() {
+ return _react2["default"].createElement(_src2["default"], {
+ columns: columns16,
+ data: data16,
+ onExpand: this.getData,
+ expandedRowRender: this.expandedRowRender,
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u8FD9\u662F\u4E00\u4E2A\u6807\u9898"
+ );
+ },
+ footer: function footer(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u8868\u5C3E: \u6211\u662F\u5C0F\u5C3E\u5DF4"
+ );
+ }
+ });
+ };
+
+ return Demo16;
+ }(_react.Component);
+
+ exports["default"] = Demo16;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 439 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title loading属性指定表格是否加载中
+ * @description loading可以传boolean或者obj对象,obj为bee-loading组件的参数类型
+ *
+ */
+
+ var columns17 = [{ title: "用户名", dataIndex: "a", key: "a", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, { title: "年龄", dataIndex: "c", key: "c", width: 200 }, {
+ title: "操作",
+ dataIndex: "d",
+ key: "d",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(
+ "a",
+ {
+ href: "#",
+ onClick: function onClick() {
+ alert('这是第' + index + '列,内容为:' + text);
+ }
+ },
+ "\u4E00\u4E9B\u64CD\u4F5C"
+ );
+ }
+ }];
+
+ var data17 = [{ a: "令狐冲", b: "男", c: 41, d: "操作", key: "1" }, { a: "杨过", b: "男", c: 67, d: "操作", key: "2" }, { a: "郭靖", b: "男", c: 25, d: "操作", key: "3" }];
+
+ var Demo17 = function (_Component) {
+ _inherits(Demo17, _Component);
+
+ function Demo17(props) {
+ _classCallCheck(this, Demo17);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.changeLoading = function () {
+ _this.setState({
+ loading: !_this.state.loading
+ });
+ };
+
+ _this.state = {
+ loading: true
+ };
+ return _this;
+ }
+
+ Demo17.prototype.render = function render() {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ {
+ className: "editable-add-btn",
+ type: "ghost",
+ onClick: this.changeLoading
+ },
+ "\u5207\u6362loading"
+ ),
+ _react2["default"].createElement(_src2["default"], {
+ columns: columns17,
+ data: data17,
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u8FD9\u662F\u4E00\u4E2A\u6807\u9898"
+ );
+ },
+ footer: function footer(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u8868\u5C3E: \u6211\u662F\u5C0F\u5C3E\u5DF4"
+ );
+ }
+ // loading={this.state.loading}或者是boolean
+ , loading: { show: this.state.loading, loadingType: "line" }
+ })
+ );
+ };
+
+ return Demo17;
+ }(_react.Component);
+
+ exports["default"] = Demo17;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 440 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeAnimate = __webpack_require__(96);
+
+ var _beeAnimate2 = _interopRequireDefault(_beeAnimate);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ var _beePopconfirm = __webpack_require__(441);
+
+ var _beePopconfirm2 = _interopRequireDefault(_beePopconfirm);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 增删改表格
+ * @description 这是带有增删改功能的表格(此编辑功能未使用render组件)
+ *
+ */
+
+ var EditableCell = function (_React$Component) {
+ _inherits(EditableCell, _React$Component);
+
+ function EditableCell() {
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, EditableCell);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
+ value: _this.props.value,
+ editable: false
+ }, _this.handleChange = function (e) {
+ var value = e.target.value;
+ _this.setState({ value: value });
+ }, _this.check = function () {
+ _this.setState({ editable: false });
+ if (_this.props.onChange) {
+ _this.props.onChange(_this.state.value);
+ }
+ }, _this.edit = function () {
+ _this.setState({ editable: true });
+ }, _this.handleKeydown = function (event) {
+ if (event.keyCode == 13) {
+ _this.check();
+ }
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ EditableCell.prototype.render = function render() {
+ var _state = this.state,
+ value = _state.value,
+ editable = _state.editable;
+
+ return _react2["default"].createElement(
+ "div",
+ { className: "editable-cell" },
+ editable ? _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-input-wrapper" },
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ value: value,
+ onChange: this.handleChange,
+ onKeyDown: this.handleKeydown
+ }),
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-correct",
+ className: "editable-cell-icon-check",
+ onClick: this.check
+ })
+ ) : _react2["default"].createElement(
+ "div",
+ { className: "editable-cell-text-wrapper" },
+ value || " ",
+ _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-pencil",
+ className: "editable-cell-icon",
+ onClick: this.edit
+ })
+ )
+ );
+ };
+
+ return EditableCell;
+ }(_react2["default"].Component);
+
+ var Demo2 = function (_React$Component2) {
+ _inherits(Demo2, _React$Component2);
+
+ function Demo2(props) {
+ _classCallCheck(this, Demo2);
+
+ var _this2 = _possibleConstructorReturn(this, _React$Component2.call(this, props));
+
+ _this2.onCellChange = function (index, key) {
+ return function (value) {
+ var dataSource = [].concat(_toConsumableArray(_this2.state.dataSource));
+ dataSource[index][key] = value;
+ _this2.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this2.onDelete = function (index) {
+ return function () {
+ var dataSource = [].concat(_toConsumableArray(_this2.state.dataSource));
+ dataSource.splice(index, 1);
+ _this2.setState({ dataSource: dataSource });
+ };
+ };
+
+ _this2.handleAdd = function () {
+ var _this2$state = _this2.state,
+ count = _this2$state.count,
+ dataSource = _this2$state.dataSource;
+
+ var newData = {
+ key: count,
+ name: "\u51E4\u59D0 " + count,
+ age: 32,
+ address: "100 100 100"
+ };
+ _this2.setState({
+ dataSource: [].concat(_toConsumableArray(dataSource), [newData]),
+ count: count + 1
+ });
+ };
+
+ _this2.getBodyWrapper = function (body) {
+ return _react2["default"].createElement(
+ _beeAnimate2["default"],
+ {
+ transitionName: "move",
+ component: "tbody",
+ className: body.props.className
+ },
+ body.props.children
+ );
+ };
+
+ _this2.columns = [{
+ title: "姓名",
+ dataIndex: "name",
+ key: "name",
+ width: "30%",
+ render: function render(text, record, index) {
+ return _react2["default"].createElement(EditableCell, {
+ value: text,
+ onChange: _this2.onCellChange(index, "name")
+ });
+ }
+ }, {
+ title: "年龄",
+ dataIndex: "age",
+ key: "age"
+ }, {
+ title: "你懂的",
+ dataIndex: "address",
+ key: "address"
+ }, {
+ title: "操作",
+ dataIndex: "operation",
+ key: "operation",
+ render: function render(text, record, index) {
+ return _this2.state.dataSource.length > 1 ? _react2["default"].createElement(
+ _beePopconfirm2["default"],
+ { content: "\u786E\u8BA4\u5220\u9664?", id: "aa", onClose: _this2.onDelete(index) },
+ _react2["default"].createElement(_beeIcon2["default"], { type: "uf-del" })
+ ) : null;
+ }
+ }];
+
+ _this2.state = {
+ dataSource: [{
+ key: "0",
+ name: "沉鱼",
+ age: "18",
+ address: "96, 77, 89"
+ }, {
+ key: "1",
+ name: "落雁",
+ age: "16",
+ address: "90, 70, 80"
+ }, {
+ key: "2",
+ name: "闭月",
+ age: "17",
+ address: "80, 60, 80"
+ }, {
+ key: "3",
+ name: "羞花",
+ age: "20",
+ address: "120, 60, 90"
+ }],
+ count: 4
+ };
+ return _this2;
+ }
+
+ Demo2.prototype.render = function render() {
+ var dataSource = this.state.dataSource;
+
+ var columns = this.columns;
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ {
+ className: "editable-add-btn",
+ type: "ghost",
+ onClick: this.handleAdd
+ },
+ "\u6DFB\u52A0"
+ ),
+ _react2["default"].createElement(_src2["default"], {
+ data: dataSource,
+ columns: columns,
+ getBodyWrapper: this.getBodyWrapper
+ })
+ );
+ };
+
+ return Demo2;
+ }(_react2["default"].Component);
+
+ exports["default"] = Demo2;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 441 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Popconfirm = __webpack_require__(442);
+
+ var _Popconfirm2 = _interopRequireDefault(_Popconfirm);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Popconfirm2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 442 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _reactDom = __webpack_require__(12);
+
+ var _reactDom2 = _interopRequireDefault(_reactDom);
+
+ var _createChainedFunction = __webpack_require__(36);
+
+ var _createChainedFunction2 = _interopRequireDefault(_createChainedFunction);
+
+ var _splitComponent = __webpack_require__(35);
+
+ var _splitComponent2 = _interopRequireDefault(_splitComponent);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _Overlay = __webpack_require__(105);
+
+ var _Overlay2 = _interopRequireDefault(_Overlay);
+
+ var _Portal = __webpack_require__(80);
+
+ var _Portal2 = _interopRequireDefault(_Portal);
+
+ var _Confirm = __webpack_require__(443);
+
+ var _Confirm2 = _interopRequireDefault(_Confirm);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var isReact16 = _reactDom2["default"].createPortal !== undefined;
+
+ var propTypes = _extends({}, _Overlay2["default"].propTypes, {
+
+ // FIXME: This should be `defaultShow`.
+ /**
+ * 覆盖的初始可见性状态。对于更细微的可见性控制,请考虑直接使用覆盖组件。
+ */
+ defaultOverlayShown: _propTypes2["default"].bool,
+
+ /**
+ * 要覆盖在目标旁边的元素或文本。
+ */
+ content: _propTypes2["default"].node.isRequired,
+
+ /**
+ * @private
+ */
+ onClick: _propTypes2["default"].func,
+ onClose: _propTypes2["default"].func,
+ onCancel: _propTypes2["default"].func,
+
+ // Overridden props from ``.
+ /**
+ * @private
+ */
+ target: _propTypes2["default"].oneOf([null]),
+ /**
+ * @private
+ */
+ onHide: _propTypes2["default"].oneOf([null]),
+ /**
+ * @private
+ */
+ show: _propTypes2["default"].oneOf([null])
+ });
+
+ var defaultProps = {
+ defaultOverlayShown: false
+ };
+
+ var Popconfirm = function (_Component) {
+ _inherits(Popconfirm, _Component);
+
+ function Popconfirm(props, context) {
+ _classCallCheck(this, Popconfirm);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props, context));
+
+ _this.handleToggle = _this.handleToggle.bind(_this);
+ _this.handleHide = _this.handleHide.bind(_this);
+ _this.makeOverlay = _this.makeOverlay.bind(_this);
+ _this.handleClose = _this.handleClose.bind(_this);
+ _this.handleCancel = _this.handleCancel.bind(_this);
+
+ _this._mountNode = null;
+
+ _this.state = {
+ show: props.defaultOverlayShown
+ };
+ return _this;
+ }
+
+ Popconfirm.prototype.componentDidMount = function componentDidMount() {
+ this._mountNode = document.createElement('div');
+ !isReact16 && this.renderOverlay();
+ };
+
+ Popconfirm.prototype.componentDidUpdate = function componentDidUpdate() {
+ !isReact16 && this.renderOverlay();
+ };
+
+ Popconfirm.prototype.componentWillUnmount = function componentWillUnmount() {
+ !isReact16 && _reactDom2["default"].unmountComponentAtNode(this._mountNode);
+ this._mountNode = null;
+ };
+
+ Popconfirm.prototype.handleToggle = function handleToggle() {
+
+ if (!this.state.show) {
+ this.show();
+ }
+ };
+
+ Popconfirm.prototype.handleClose = function handleClose() {
+ var onClose = this.props.onClose;
+
+ this.hide();
+ onClose && onClose();
+ };
+
+ Popconfirm.prototype.handleCancel = function handleCancel() {
+ var onCancel = this.props.onCancel;
+
+ this.hide();
+ onCancel && onCancel();
+ };
+
+ Popconfirm.prototype.handleHide = function handleHide() {
+ this.hide();
+ };
+
+ Popconfirm.prototype.show = function show() {
+ this.setState({ show: true });
+ };
+
+ Popconfirm.prototype.hide = function hide() {
+ this.setState({ show: false });
+ };
+
+ Popconfirm.prototype.makeOverlay = function makeOverlay(overlay, props) {
+ return _react2["default"].createElement(
+ _Overlay2["default"],
+ _extends({}, props, {
+ show: this.state.show,
+ onHide: this.handleHide,
+ target: this
+ }),
+ overlay
+ );
+ };
+
+ Popconfirm.prototype.renderOverlay = function renderOverlay() {
+ _reactDom2["default"].unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode);
+ };
+
+ Popconfirm.prototype.render = function render() {
+ var _props = this.props,
+ content = _props.content,
+ children = _props.children,
+ onClick = _props.onClick,
+ props = _objectWithoutProperties(_props, ['content', 'children', 'onClick']);
+
+ delete props.defaultOverlayShown;
+
+ var _splitComponentProps = (0, _splitComponent2["default"])(props, _Overlay2["default"]),
+ _splitComponentProps2 = _slicedToArray(_splitComponentProps, 2),
+ overlayProps = _splitComponentProps2[0],
+ confirmProps = _splitComponentProps2[1];
+
+ var child = _react2["default"].Children.only(children);
+ var childProps = child.props;
+
+ var overlay = _react2["default"].createElement(
+ _Confirm2["default"],
+ _extends({}, confirmProps, {
+ onClose: this.handleClose,
+ onCancel: this.handleCancel,
+ placement: props.placement }),
+ content
+ );
+
+ var triggerProps = {
+ 'aria-describedby': overlay.props.id
+ };
+
+ // FIXME: 这里用于传递这个组件上的处理程序的逻辑是不一致的。我们不应该通过任何这些道具。
+
+ triggerProps.onClick = (0, _createChainedFunction2["default"])(childProps.onClick, onClick);
+
+ triggerProps.onClick = (0, _createChainedFunction2["default"])(triggerProps.onClick, this.handleToggle);
+
+ this._overlay = this.makeOverlay(overlay, overlayProps);
+
+ if (!isReact16) {
+ return (0, _react.cloneElement)(child, triggerProps);
+ }
+ triggerProps.key = 'overlay';
+
+ var portal = _react2["default"].createElement(
+ _Portal2["default"],
+ {
+ key: 'portal',
+ container: props.container },
+ this._overlay
+ );
+
+ return [(0, _react.cloneElement)(child, triggerProps), portal];
+ };
+
+ return Popconfirm;
+ }(_react.Component);
+
+ Popconfirm.propTypes = propTypes;
+ Popconfirm.defaultProps = defaultProps;
+
+ exports["default"] = Popconfirm;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 443 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _i18n = __webpack_require__(444);
+
+ var _i18n2 = _interopRequireDefault(_i18n);
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ var _tool = __webpack_require__(445);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ 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; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+
+ /**
+ * Sets the direction the Popover is positioned towards.
+ */
+ placement: _propTypes2["default"].oneOf(['top', 'right', 'bottom', 'left']),
+
+ /**
+ * The "top" position value for the Popover.
+ */
+ positionTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+ /**
+ * The "left" position value for the Popover.
+ */
+ positionLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+
+ /**
+ * The "top" position value for the Popover arrow.
+ */
+ arrowOffsetTop: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+ /**
+ * The "left" position value for the Popover arrow.
+ */
+ arrowOffsetLeft: _propTypes2["default"].oneOfType([_propTypes2["default"].number, _propTypes2["default"].string]),
+
+ /**
+ * Title content
+ */
+ title: _propTypes2["default"].node,
+ onClose: _propTypes2["default"].func,
+ onCancel: _propTypes2["default"].func,
+ color: _propTypes2["default"].oneOf(['dark'])
+ };
+
+ var defaultProps = {
+ placement: 'right',
+ clsPrefix: 'u-popconfirm',
+ locale: {}
+ };
+
+ var Confirm = function (_React$Component) {
+ _inherits(Confirm, _React$Component);
+
+ function Confirm(props) {
+ _classCallCheck(this, Confirm);
+
+ return _possibleConstructorReturn(this, _React$Component.call(this, props));
+ }
+
+ Confirm.prototype.render = function render() {
+ var _classes;
+
+ var _props = this.props,
+ placement = _props.placement,
+ positionTop = _props.positionTop,
+ positionLeft = _props.positionLeft,
+ arrowOffsetTop = _props.arrowOffsetTop,
+ arrowOffsetLeft = _props.arrowOffsetLeft,
+ clsPrefix = _props.clsPrefix,
+ trigger = _props.trigger,
+ title = _props.title,
+ className = _props.className,
+ style = _props.style,
+ children = _props.children,
+ locale = _props.locale,
+ onClose = _props.onClose,
+ color = _props.color,
+ onCancel = _props.onCancel,
+ props = _objectWithoutProperties(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', 'arrowOffsetLeft', 'clsPrefix', 'trigger', 'title', 'className', 'style', 'children', 'locale', 'onClose', 'color', 'onCancel']);
+
+ var local = (0, _tool.getComponentLocale)(this.props, this.context, 'Popconfirm', function () {
+ return _i18n2["default"];
+ });
+
+ //const [bsProps, elementProps] = splitBsProps(props);
+
+ var classes = (_classes = {}, _defineProperty(_classes, '' + clsPrefix, true), _defineProperty(_classes, placement, true), _defineProperty(_classes, clsPrefix + '-' + color, color), _classes);
+
+ var outerStyle = _extends({
+ display: 'block',
+ top: positionTop,
+ left: positionLeft
+ }, style);
+
+ var arrowStyle = {
+ top: arrowOffsetTop,
+ left: arrowOffsetLeft
+ };
+
+ return _react2["default"].createElement(
+ 'div',
+ _extends({}, props, {
+ role: 'tooltip',
+ className: (0, _classnames2["default"])(className, classes),
+ style: outerStyle
+ }),
+ _react2["default"].createElement('div', { className: 'arrow', style: arrowStyle }),
+ _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(clsPrefix + '-content') },
+ children
+ ),
+ _react2["default"].createElement(
+ 'div',
+ { className: (0, _classnames2["default"])(clsPrefix + '-confirm') },
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ { onClick: onCancel, size: 'sm', style: { minWidth: 50 },
+ shape: 'border' },
+ local['cancel']
+ ),
+ _react2["default"].createElement(
+ _beeButton2["default"],
+ { onClick: onClose, size: 'sm', style: { minWidth: 50 }, colors: 'primary' },
+ local['ok']
+ )
+ )
+ );
+ };
+
+ return Confirm;
+ }(_react2["default"].Component);
+
+ Confirm.propTypes = propTypes;
+ Confirm.defaultProps = defaultProps;
+ Confirm.contextTypes = {
+ beeLocale: _propTypes2["default"].object
+ };
+
+ exports["default"] = Confirm;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 444 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ module.exports = {
+ 'lang': 'zh-cn',
+ 'ok': '确定',
+ 'cancel': '取消',
+
+ 'en-us': {
+ 'ok': 'ok',
+ 'cancel': 'cancel'
+ }
+ };
+
+/***/ }),
+/* 445 */
+/***/ (function(module, exports) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ exports.getComponentLocale = getComponentLocale;
+ exports.getLocaleCode = getLocaleCode;
+ function getComponentLocale(props, context, componentName, getDefaultLocale) {
+ var locale = {};
+ if (context && context.beeLocale && context.beeLocale[componentName]) {
+ locale = context.beeLocale[componentName];
+ } else {
+ var defaultLocale = getDefaultLocale();
+
+ locale = defaultLocale["default"] || defaultLocale;
+ }
+
+ var result = _extends({}, locale, props.locale);
+ result.lang = _extends({}, locale.lang, props.locale.lang);
+ return result;
+ }
+
+ function getLocaleCode(context) {
+ var localeCode = context.beeLocale && context.beeLocale.lang;
+ // Had use LocaleProvide but didn't set locale
+ if (context.beeLocale && context.beeLocale.exist && !localeCode) {
+ return 'zh-cn';
+ }
+ return localeCode;
+ }
+
+/***/ }),
+/* 446 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _beeButton = __webpack_require__(62);
+
+ var _beeButton2 = _interopRequireDefault(_beeButton);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 表头分组
+ * @description columns[n] 可以内嵌 children,以渲染分组表头。
+ *
+ */
+
+ var ColumnGroup = _src2["default"].ColumnGroup,
+ Column = _src2["default"].Column;
+
+
+ var columns = [{
+ title: "Name",
+ dataIndex: "name",
+ key: "name",
+ width: 100,
+ fixed: "left"
+ }, {
+ title: "Other",
+ children: [{
+ title: "Age",
+ dataIndex: "age",
+ key: "age",
+ width: 200
+ }, {
+ title: "Address",
+ children: [{
+ title: "Street",
+ dataIndex: "street",
+ key: "street",
+ width: 200
+ }, {
+ title: "Block",
+ children: [{
+ title: "Building",
+ dataIndex: "building",
+ key: "building",
+ width: 100
+ }, {
+ title: "Door No.",
+ dataIndex: "number",
+ key: "number",
+ width: 100
+ }]
+ }]
+ }]
+ }, {
+ title: "Company",
+ children: [{
+ title: "Company Address",
+ dataIndex: "companyAddress",
+ key: "companyAddress"
+ }, {
+ title: "Company Name",
+ dataIndex: "companyName",
+ key: "companyName"
+ }]
+ }, {
+ title: "Gender",
+ dataIndex: "gender",
+ key: "gender",
+ width: 60,
+ fixed: "right"
+ }];
+
+ var data = [];
+ for (var i = 0; i < 20; i++) {
+ data.push({
+ key: i,
+ name: "John Brown",
+ age: i + 1,
+ street: "Lake Park",
+ building: "C",
+ number: 2035,
+ companyAddress: "Lake Street 42",
+ companyName: "SoftLake Co",
+ gender: "M"
+ });
+ }
+
+ var Demo3 = function (_Component) {
+ _inherits(Demo3, _Component);
+
+ function Demo3() {
+ _classCallCheck(this, Demo3);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo3.prototype.render = function render() {
+ return _react2["default"].createElement(_src2["default"], {
+ columns: columns,
+ data: data,
+ bordered: true,
+ scroll: { x: "130%", y: 240 }
+ });
+ };
+
+ return Demo3;
+ }(_react.Component);
+
+ exports["default"] = Demo3;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 447 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 树形数据展示
+ * @description 通过在data中配置children数据,来自动生成树形数据
+ *
+ */
+
+ var columns4 = [{
+ title: "Name",
+ dataIndex: "name",
+ key: "name",
+ width: "40%"
+ }, {
+ title: "Age",
+ dataIndex: "age",
+ key: "age",
+ width: "30%"
+ }, {
+ title: "Address",
+ dataIndex: "address",
+ key: "address"
+ }];
+
+ var data4 = [{
+ key: 1,
+ name: "John Brown sr.",
+ age: 60,
+ address: "New York No. 1 Lake Park",
+ children: [{
+ key: 11,
+ name: "John Brown",
+ age: 42,
+ address: "New York No. 2 Lake Park"
+ }, {
+ key: 12,
+ name: "John Brown jr.",
+ age: 30,
+ address: "New York No. 3 Lake Park",
+ children: [{
+ key: 121,
+ name: "Jimmy Brown",
+ age: 16,
+ address: "New York No. 3 Lake Park"
+ }]
+ }, {
+ key: 13,
+ name: "Jim Green sr.",
+ age: 72,
+ address: "London No. 1 Lake Park",
+ children: [{
+ key: 131,
+ name: "Jim Green",
+ age: 42,
+ address: "London No. 2 Lake Park",
+ children: [{
+ key: 1311,
+ name: "Jim Green jr.",
+ age: 25,
+ address: "London No. 3 Lake Park"
+ }, {
+ key: 1312,
+ name: "Jimmy Green sr.",
+ age: 18,
+ address: "London No. 4 Lake Park"
+ }]
+ }]
+ }]
+ }, {
+ key: 2,
+ name: "Joe Black",
+ age: 32,
+ address: "Sidney No. 1 Lake Park"
+ }];
+
+ var Demo4 = function (_Component) {
+ _inherits(Demo4, _Component);
+
+ function Demo4() {
+ _classCallCheck(this, Demo4);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo4.prototype.render = function render() {
+ return _react2['default'].createElement(_src2['default'], { columns: columns4, data: data4 });
+ };
+
+ return Demo4;
+ }(_react.Component);
+
+ exports['default'] = Demo4;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 448 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 固定列
+ * @description 固定列到表格的某侧
+ *
+ */
+
+ var columns5 = [{
+ title: "Full Name",
+ width: 100,
+ dataIndex: "name",
+ key: "name",
+ fixed: "left"
+ }, { title: "Age", width: 100, dataIndex: "age", key: "age", fixed: "left" }, { title: "Column 1", dataIndex: "address", key: "1" }, { title: "Column 2", dataIndex: "address", key: "2" }, { title: "Column 3", dataIndex: "address", key: "3" }, { title: "Column 4", dataIndex: "address", key: "4" }, { title: "Column 5", dataIndex: "address", key: "5" }, { title: "Column 6", dataIndex: "address", key: "6" }, { title: "Column 7", dataIndex: "address", key: "7" }, { title: "Column 8", dataIndex: "address", key: "8" }];
+
+ var data5 = [{
+ key: "1",
+ name: "John Brown",
+ age: 32,
+ address: "New York Park"
+ }, {
+ key: "2",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "3",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "4",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }];
+
+ var Demo5 = function (_Component) {
+ _inherits(Demo5, _Component);
+
+ function Demo5() {
+ _classCallCheck(this, Demo5);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo5.prototype.render = function render() {
+ return _react2['default'].createElement(_src2['default'], { columns: columns5, data: data5, scroll: { x: "130%", y: 140 } });
+ };
+
+ return Demo5;
+ }(_react.Component);
+
+ exports['default'] = Demo5;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 449 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 固定表头
+ * @description 方便一页内展示大量数据。需要指定 column 的 width 属性,否则列头和内容可能不对齐。(还可以设置scroll来支持横向或纵向滚动)
+ *
+ */
+
+ var columns6 = [{
+ title: "Full Name",
+ width: 100,
+ dataIndex: "name",
+ key: "name"
+ }, { title: "Age", width: 100, dataIndex: "age", key: "age" }, { title: "Address", dataIndex: "address", key: "1" }];
+
+ var data6 = [{
+ key: "1",
+ name: "John Brown",
+ age: 32,
+ address: "New York Park"
+ }, {
+ key: "2",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "3",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "4",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "11",
+ name: "John Brown",
+ age: 32,
+ address: "New York Park"
+ }, {
+ key: "12",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "13",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }, {
+ key: "14",
+ name: "Jim Green",
+ age: 40,
+ address: "London Park"
+ }];
+
+ var Demo6 = function (_Component) {
+ _inherits(Demo6, _Component);
+
+ function Demo6() {
+ _classCallCheck(this, Demo6);
+
+ return _possibleConstructorReturn(this, _Component.apply(this, arguments));
+ }
+
+ Demo6.prototype.render = function render() {
+ return _react2['default'].createElement(_src2['default'], { columns: columns6, data: data6, scroll: { y: 150 } });
+ };
+
+ return Demo6;
+ }(_react.Component);
+
+ exports['default'] = Demo6;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 450 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 主子表
+ * @description 主表点击子表联动
+ *
+ */
+
+ var columns7 = [{ title: "班级", dataIndex: "a", key: "a" }, { title: "人数", dataIndex: "b", key: "b" }, { title: "班主任", dataIndex: "c", key: "c" }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d"
+ }];
+
+ var data7 = [{ a: "02级一班", b: "2", c: "欧阳锋", d: "大侠", key: "1" }, { a: "03级二班", b: "3", c: "归海一刀", d: "大侠", key: "2" }, { a: "05级三班", b: "1", c: "一拳超人", d: "愣头青", key: "3" }];
+
+ var columns7_1 = [{ title: "姓名", dataIndex: "a", key: "a" }, { title: "班级", dataIndex: "b", key: "b" }, { title: "系别", dataIndex: "c", key: "c" }];
+
+ var Demo7 = function (_Component) {
+ _inherits(Demo7, _Component);
+
+ function Demo7(props) {
+ _classCallCheck(this, Demo7);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.rowclick = function (record, index) {
+ if (record.a === "02级一班") {
+ _this.setState({
+ children_data: [{ a: "郭靖", b: "02级一班", c: "文学系", key: "1" }, { a: "黄蓉", b: "02级一班", c: "文学系", key: "2" }]
+ });
+ } else if (record.a === "03级二班") {
+ _this.setState({
+ children_data: [{ a: "杨过", b: "03级二班", c: "外语系", key: "1" }, { a: "小龙女", b: "03级二班", c: "外语系", key: "2" }, { a: "傻姑", b: "03级二班", c: "外语系", key: "3" }]
+ });
+ } else if (record.a === "05级三班") {
+ _this.setState({
+ children_data: [{ a: "金圣叹", b: "05级三班", c: "美术系", key: "1" }]
+ });
+ }
+ };
+
+ _this.state = {
+ children_data: []
+ };
+ return _this;
+ }
+
+ Demo7.prototype.render = function render() {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(_src2["default"], {
+ columns: columns7,
+ data: data7,
+ onRowClick: this.rowclick,
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u6211\u662F\u4E3B\u8868"
+ );
+ }
+ }),
+ _react2["default"].createElement(_src2["default"], {
+ style: { marginTop: 40 },
+ columns: columns7_1,
+ data: this.state.children_data,
+ title: function title(currentData) {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ "\u6807\u9898: \u6211\u662F\u5B50\u8868"
+ );
+ }
+ })
+ );
+ };
+
+ return Demo7;
+ }(_react.Component);
+
+ exports["default"] = Demo7;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 451 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beePagination = __webpack_require__(452);
+
+ var _beePagination2 = _interopRequireDefault(_beePagination);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 表格+分页
+ * @description 点击分页联动表格
+ *
+ *import {Table} from 'tinper-bee';
+ */
+
+ var columns8 = [{ title: "姓名", dataIndex: "a", key: "a", width: 100 }, { id: "123", title: "性别", dataIndex: "b", key: "b", width: 100 }, { title: "年龄", dataIndex: "c", key: "c", width: 200 }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d"
+ }];
+
+ var pageData = {
+ 1: [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }],
+ 2: [{ a: "芙蓉姐姐", b: "女", c: 23, d: "大侠", key: "1" }, { a: "芙蓉妹妹", b: "女", c: 23, d: "内行", key: "2" }]
+ };
+
+ var Demo8 = function (_Component) {
+ _inherits(Demo8, _Component);
+
+ function Demo8(props) {
+ _classCallCheck(this, Demo8);
+
+ var _this = _possibleConstructorReturn(this, _Component.call(this, props));
+
+ _this.state = {
+ data: pageData[1],
+ activePage: 1
+ };
+ return _this;
+ }
+
+ Demo8.prototype.handleSelect = function handleSelect(eventKey) {
+ this.setState({
+ data: pageData[eventKey],
+ activePage: eventKey
+ });
+ };
+
+ Demo8.prototype.render = function render() {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(_src2["default"], { columns: columns8, data: this.state.data }),
+ _react2["default"].createElement(_beePagination2["default"], {
+ first: true,
+ last: true,
+ prev: true,
+ next: true,
+ boundaryLinks: true,
+ items: 2,
+ maxButtons: 5,
+ activePage: this.state.activePage,
+ onSelect: this.handleSelect.bind(this)
+ })
+ );
+ };
+
+ return Demo8;
+ }(_react.Component);
+
+ exports["default"] = Demo8;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 452 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _Pagination = __webpack_require__(453);
+
+ var _Pagination2 = _interopRequireDefault(_Pagination);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ exports["default"] = _Pagination2["default"];
+ module.exports = exports['default'];
+
+/***/ }),
+/* 453 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _PaginationButton = __webpack_require__(454);
+
+ var _PaginationButton2 = _interopRequireDefault(_PaginationButton);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ /**
+ * 当前激活状态页
+ */
+ activePage: _propTypes2["default"].number,
+ /**
+ * 总页数
+ */
+ items: _propTypes2["default"].number,
+ /**
+ * 显示按钮从1到maxButton的按钮数
+ */
+ maxButtons: _propTypes2["default"].number,
+
+ /**
+ * 当为true,不管切换到多少页都显示第一页和最后一页的按钮
+ */
+ boundaryLinks: _propTypes2["default"].bool,
+
+ /**
+ * 当为true,显示省略号,否则
+ *
+ */
+ ellipsis: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].node]),
+
+ /**
+ * 当为true,显示点击到第一页的按钮
+ */
+ first: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].node]),
+
+ /**
+ * 当为true,显示点击到最后一页的按钮
+ */
+ last: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].node]),
+
+ /**
+ * 当为true,显示前一页按钮
+ */
+ prev: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].node]),
+
+ /**
+ * 当为true,显示下一页按钮
+ */
+ next: _propTypes2["default"].oneOfType([_propTypes2["default"].bool, _propTypes2["default"].node]),
+
+ /**
+ * 暴露给用户的切换页的方法
+ */
+ onSelect: _propTypes2["default"].func,
+
+ /**
+ * You can use a custom element for the buttons
+ */
+ buttonComponentClass: _propTypes2["default"].oneOfType([_propTypes2["default"].element, _propTypes2["default"].string])
+ };
+
+ var defaultProps = {
+ activePage: 1,
+ items: 1,
+ maxButtons: 0,
+ first: false,
+ last: false,
+ prev: false,
+ next: false,
+ ellipsis: true,
+ boundaryLinks: false,
+ clsPrefix: "u-pagination",
+ gap: false,
+ noBorder: false
+ };
+
+ var Pagination = function (_React$Component) {
+ _inherits(Pagination, _React$Component);
+
+ function Pagination() {
+ _classCallCheck(this, Pagination);
+
+ return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
+ }
+
+ Pagination.prototype.renderPageButtons = function renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps) {
+ var pageButtons = [];
+
+ var startPage = void 0;
+ var endPage = void 0;
+ var hasHiddenPagesAfter = void 0;
+
+ if (maxButtons) {
+ //根据max很当前activepage计算出应隐藏activeButton之前的页数
+ var hiddenPagesBefore = activePage - parseInt(maxButtons / 2, 10);
+ startPage = hiddenPagesBefore > 2 ? hiddenPagesBefore : 1;
+ //计算出是否存在隐藏activeButton之后的页数
+ hasHiddenPagesAfter = startPage + maxButtons < items + 1;
+
+ if (!hasHiddenPagesAfter) {
+ endPage = items;
+ startPage = items - maxButtons + 1;
+ if (startPage < 1) {
+ startPage = 1;
+ }
+ } else {
+ endPage = startPage + maxButtons - 1;
+ }
+ } else {
+ startPage = 1;
+ endPage = items;
+ }
+ //将所有的button循环渲染出来
+ for (var pagenumber = startPage; pagenumber <= endPage; pagenumber++) {
+ pageButtons.push(_react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ key: pagenumber,
+ eventKey: pagenumber,
+ active: pagenumber === activePage
+ }),
+ pagenumber
+ ));
+ }
+ //如果boundaryLinks和eclipsis且startPage!=1 需要加上before More Button
+ if (boundaryLinks && ellipsis && startPage !== 1) {
+ pageButtons.unshift(_react2["default"].createElement(
+ _PaginationButton2["default"],
+ {
+ key: "ellipsisFirst",
+ disabled: true,
+ componentClass: buttonProps.componentClass
+ },
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "More" },
+ ellipsis === true ? "\u2026" : ellipsis
+ )
+ ));
+ //加上最小边界 Button
+ pageButtons.unshift(_react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, { key: 1, eventKey: 1, active: false }),
+ "1"
+ ));
+ }
+ //如果maxButtons和eclipsis且hasHiddenPagesAfter 需加上after More Button
+ if (maxButtons && hasHiddenPagesAfter && ellipsis) {
+ pageButtons.push(_react2["default"].createElement(
+ _PaginationButton2["default"],
+ {
+ key: "ellipsis",
+ disabled: true,
+ componentClass: buttonProps.componentClass
+ },
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "More" },
+ ellipsis === true ? "\u2026" : ellipsis
+ )
+ ));
+ //如果最后一个页数按钮不等于总页数 且 边界为true 需加上最大边界按钮
+ if (boundaryLinks && endPage !== items) {
+ pageButtons.push(_react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ key: items,
+ eventKey: items,
+ active: false
+ }),
+ items
+ ));
+ }
+ }
+
+ return pageButtons;
+ };
+
+ Pagination.prototype.render = function render() {
+ var _props = this.props,
+ activePage = _props.activePage,
+ items = _props.items,
+ maxButtons = _props.maxButtons,
+ boundaryLinks = _props.boundaryLinks,
+ ellipsis = _props.ellipsis,
+ first = _props.first,
+ last = _props.last,
+ prev = _props.prev,
+ next = _props.next,
+ onSelect = _props.onSelect,
+ buttonComponentClass = _props.buttonComponentClass,
+ noBorder = _props.noBorder,
+ className = _props.className,
+ clsPrefix = _props.clsPrefix,
+ size = _props.size,
+ gap = _props.gap,
+ others = _objectWithoutProperties(_props, ["activePage", "items", "maxButtons", "boundaryLinks", "ellipsis", "first", "last", "prev", "next", "onSelect", "buttonComponentClass", "noBorder", "className", "clsPrefix", "size", "gap"]);
+
+ var classes = {};
+ if (noBorder) {
+ classes[clsPrefix + "-no-border"] = true;
+ }
+ if (size) {
+ classes[clsPrefix + "-" + size] = true;
+ }
+ if (gap) {
+ classes[clsPrefix + "-gap"] = true;
+ }
+ var classNames = (0, _classnames2["default"])(clsPrefix, classes);
+
+ /**
+ * 页按钮属性
+ * onSelect:暴露在外层交互动作,也是与父组件Pagination的交流接口
+ * componentClass: 用户定义的按钮dom元素类型
+ */
+ var buttonProps = {
+ onSelect: onSelect,
+ componentClass: buttonComponentClass
+ };
+
+ return _react2["default"].createElement(
+ "ul",
+ _extends({}, others, { className: (0, _classnames2["default"])(className, classNames) }),
+ first && _react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ eventKey: 1,
+ disabled: activePage === 1
+ }),
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "First" },
+ first === true ? "\xAB" : first
+ )
+ ),
+ prev && _react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ eventKey: activePage - 1,
+ disabled: activePage === 1
+ }),
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "Previous" },
+ prev === true ? "\u2039" : prev
+ )
+ ),
+ this.renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps),
+ next && _react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ eventKey: activePage + 1,
+ disabled: activePage >= items
+ }),
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "Next" },
+ next === true ? "\u203A" : next
+ )
+ ),
+ last && _react2["default"].createElement(
+ _PaginationButton2["default"],
+ _extends({}, buttonProps, {
+ eventKey: items,
+ disabled: activePage >= items
+ }),
+ _react2["default"].createElement(
+ "span",
+ { "aria-label": "Last" },
+ last === true ? "\xBB" : last
+ )
+ )
+ );
+ };
+
+ return Pagination;
+ }(_react2["default"].Component);
+
+ Pagination.propTypes = propTypes;
+ Pagination.defaultProps = defaultProps;
+
+ exports["default"] = Pagination;
+ module.exports = exports["default"];
+
+/***/ }),
+/* 454 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ 'use strict';
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+ var _classnames = __webpack_require__(3);
+
+ var _classnames2 = _interopRequireDefault(_classnames);
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _propTypes = __webpack_require__(5);
+
+ var _propTypes2 = _interopRequireDefault(_propTypes);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
+
+ var propTypes = {
+ className: _propTypes2["default"].string,
+ eventKey: _propTypes2["default"].any,
+ onSelect: _propTypes2["default"].func,
+ disabled: _propTypes2["default"].bool,
+ active: _propTypes2["default"].bool,
+ onClick: _propTypes2["default"].func
+ };
+
+ var defaultProps = {
+ componentClass: 'a',
+ active: false,
+ disabled: false
+ };
+
+ var PaginationButton = function (_React$Component) {
+ _inherits(PaginationButton, _React$Component);
+
+ function PaginationButton(props, context) {
+ _classCallCheck(this, PaginationButton);
+
+ var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
+
+ _this.handleClick = _this.handleClick.bind(_this);
+ return _this;
+ }
+
+ PaginationButton.prototype.handleClick = function handleClick(event) {
+ var _props = this.props,
+ disabled = _props.disabled,
+ onSelect = _props.onSelect,
+ eventKey = _props.eventKey;
+
+
+ if (disabled) {
+ return;
+ }
+
+ if (onSelect) {
+ onSelect(eventKey, event);
+ }
+ };
+
+ PaginationButton.prototype.render = function render() {
+ var _props2 = this.props,
+ Component = _props2.componentClass,
+ active = _props2.active,
+ disabled = _props2.disabled,
+ onClick = _props2.onClick,
+ eventKey = _props2.eventKey,
+ className = _props2.className,
+ style = _props2.style,
+ props = _objectWithoutProperties(_props2, ['componentClass', 'active', 'disabled', 'onClick', 'eventKey', 'className', 'style']);
+
+ delete props.onSelect;
+
+ return _react2["default"].createElement(
+ 'li',
+ {
+ className: (0, _classnames2["default"])(className, { active: active, disabled: disabled }),
+ style: style
+ },
+ _react2["default"].createElement(Component, _extends({}, props, {
+ disabled: disabled,
+ onClick: this.handleClick
+ }))
+ );
+ };
+
+ return PaginationButton;
+ }(_react2["default"].Component);
+
+ PaginationButton.propTypes = propTypes;
+ PaginationButton.defaultProps = defaultProps;
+
+ exports["default"] = PaginationButton;
+ module.exports = exports['default'];
+
+/***/ }),
+/* 455 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+
+ var _react = __webpack_require__(4);
+
+ var _react2 = _interopRequireDefault(_react);
+
+ var _src = __webpack_require__(65);
+
+ var _src2 = _interopRequireDefault(_src);
+
+ var _beeIcon = __webpack_require__(86);
+
+ var _beeIcon2 = _interopRequireDefault(_beeIcon);
+
+ var _beeInputGroup = __webpack_require__(161);
+
+ var _beeInputGroup2 = _interopRequireDefault(_beeInputGroup);
+
+ var _beeFormControl = __webpack_require__(121);
+
+ var _beeFormControl2 = _interopRequireDefault(_beeFormControl);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
+
+ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
+
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
+ *
+ * @title 表格+搜索
+ * @description 搜索刷新表格数据
+ *
+ *
+ * import {Table} from 'tinper-bee';
+ */
+
+ var Search = function (_Component) {
+ _inherits(Search, _Component);
+
+ function Search() {
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, Search);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
+ searchValue: "",
+ empty: false
+ }, _this.handleSearch = function () {
+ var onSearch = _this.props.onSearch;
+
+ _this.setState({
+ empty: true
+ });
+ onSearch && onSearch(_this.state.searchValue);
+ }, _this.handleKeyDown = function (e) {
+ if (e.keyCode === 13) {
+ _this.handleSearch();
+ }
+ }, _this.handleChange = function (e) {
+ _this.setState({
+ searchValue: e.target.value
+ });
+ }, _this.emptySearch = function () {
+ var onEmpty = _this.props.onEmpty;
+
+ _this.setState({
+ searchValue: "",
+ empty: false
+ });
+ onEmpty && onEmpty();
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ /**
+ * 搜索
+ */
+
+
+ /**
+ * 捕获回车
+ * @param e
+ */
+
+
+ /**
+ * 输入框改变
+ * @param e
+ */
+
+
+ /**
+ * 清空输入框
+ */
+
+
+ Search.prototype.render = function render() {
+ return _react2["default"].createElement(
+ _beeInputGroup2["default"],
+ { simple: true, className: "search-component" },
+ _react2["default"].createElement(_beeFormControl2["default"], {
+ onChange: this.handleChange,
+ value: this.state.searchValue,
+ onKeyDown: this.handleKeyDown,
+ placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D",
+ type: "text"
+ }),
+ this.state.empty ? _react2["default"].createElement(_beeIcon2["default"], {
+ type: "uf-close-c",
+ onClick: this.emptySearch,
+ className: "empty-search"
+ }) : null,
+ _react2["default"].createElement(
+ _beeInputGroup2["default"].Button,
+ { onClick: this.handleSearch, shape: "border" },
+ _react2["default"].createElement(_beeIcon2["default"], { type: "uf-search" })
+ )
+ );
+ };
+
+ return Search;
+ }(_react.Component);
+
+ var columns9 = [{
+ title: "姓名",
+ dataIndex: "a",
+ key: "a",
+ width: 100
+ }, {
+ title: "性别",
+ dataIndex: "b",
+ key: "b",
+ width: 100
+ }, {
+ title: "年龄",
+ dataIndex: "c",
+ key: "c",
+ width: 200
+ }, {
+ title: "武功级别",
+ dataIndex: "d",
+ key: "d"
+ }];
+
+ var userData = [{ a: "杨过", b: "男", c: 30, d: "内行", key: "2" }, { a: "令狐冲", b: "男", c: 41, d: "大侠", key: "1" }, { a: "郭靖", b: "男", c: 25, d: "大侠", key: "3" }];
+
+ var Demo9 = function (_Component2) {
+ _inherits(Demo9, _Component2);
+
+ function Demo9(props) {
+ _classCallCheck(this, Demo9);
+
+ var _this2 = _possibleConstructorReturn(this, _Component2.call(this, props));
+
+ _this2.handleSearch = function (value) {
+ if (value === "") {
+ return _this2.setState({
+ data: userData
+ });
+ }
+ var regExp = new RegExp(value, "ig");
+ var data = userData.filter(function (item) {
+ return regExp.test(item.a);
+ });
+ _this2.setState({
+ data: data
+ });
+ };
+
+ _this2.handleEmpty = function () {
+ _this2.setState({
+ data: userData
+ });
+ };
+
+ _this2.state = {
+ data: userData
+ };
+ return _this2;
+ }
+
+ Demo9.prototype.render = function render() {
+ return _react2["default"].createElement(
+ "div",
+ null,
+ _react2["default"].createElement(
+ "div",
+ { className: "clearfix" },
+ _react2["default"].createElement(Search, { onSearch: this.handleSearch, onEmpty: this.handleEmpty })
+ ),
+ _react2["default"].createElement(_src2["default"], { columns: columns9, data: this.state.data })
+ );
+ };
+
+ return Demo9;
+ }(_react.Component);
+
+ exports["default"] = Demo9;
+ module.exports = exports["default"];
+
/***/ })
/******/ ]);
//# sourceMappingURL=demo.js.map
\ No newline at end of file
diff --git a/dist/demo.js.map b/dist/demo.js.map
index 8345311..3ac7466 100644
--- a/dist/demo.js.map
+++ b/dist/demo.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap 647c0709d023518b5d15","webpack:///./demo/index.js","webpack:///./~/_bee-layout@1.2.7@bee-layout/build/index.js","webpack:///./~/_bee-layout@1.2.7@bee-layout/build/Col.js","webpack:///./~/_classnames@2.2.5@classnames/index.js","webpack:///external \"React\"","webpack:///external \"PropTypes\"","webpack:///./~/_bee-layout@1.2.7@bee-layout/build/Row.js","webpack:///./~/_bee-layout@1.2.7@bee-layout/build/Layout.js","webpack:///./~/_bee-panel@1.0.0@bee-panel/build/index.js","webpack:///./~/_bee-panel@1.0.0@bee-panel/build/Panel.js","webpack:///./~/_bee-transition@1.0.0@bee-transition/build/index.js","webpack:///./~/_bee-transition@1.0.0@bee-transition/build/Transition.js","webpack:///external \"ReactDOM\"","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/transition/properties.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/util/inDOM.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/events/on.js","webpack:///./~/_bee-transition@1.0.0@bee-transition/build/Collapse.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/style/index.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/util/camelizeStyle.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/util/camelize.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/util/hyphenateStyle.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/util/hyphenate.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/style/getComputedStyle.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/style/removeStyle.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/transition/isTransform.js","webpack:///./~/_bee-transition@1.0.0@bee-transition/build/util/capitalize.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/index.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/all.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/utils/createChainableTypeChecker.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/componentOrElement.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/deprecated.js","webpack:///./~/_warning@3.0.0@warning/browser.js","webpack:///./~/_process@0.11.10@process/browser.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/elementType.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/isRequiredForA11y.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/splitComponent.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/createChainedFunction.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/keyCode.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/contains.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/addEventListener.js","webpack:///./~/_add-dom-event-listener@1.0.2@add-dom-event-listener/lib/index.js","webpack:///./~/_add-dom-event-listener@1.0.2@add-dom-event-listener/lib/EventObject.js","webpack:///./~/_add-dom-event-listener@1.0.2@add-dom-event-listener/lib/EventBaseObject.js","webpack:///./~/_object-assign@4.1.1@object-assign/index.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/cssAnimation.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/Event.js","webpack:///./~/_component-classes@1.2.6@component-classes/index.js","webpack:///./~/_component-indexof@0.0.3@component-indexof/index.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/toArray.js","webpack:///./~/_tinper-bee-core@0.4.1@tinper-bee-core/lib/Align.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/index.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/utils.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/propertyUtils.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/getOffsetParent.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/getVisibleRectForElement.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/isAncestorFixed.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/adjustForViewport.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/getRegion.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/getElFuturePos.js","webpack:///./~/_dom-align@1.6.7@dom-align/lib/getAlignOffset.js","webpack:///./~/_bee-transition@1.0.0@bee-transition/build/Fade.js","webpack:///./~/_bee-panel@1.0.0@bee-panel/build/PanelGroup.js","webpack:///./~/_bee-button@1.0.6@bee-button/build/index.js","webpack:///./~/_bee-button@1.0.6@bee-button/build/Button.js","webpack:///./demo/demolist/Demo13.js","webpack:///./src/index.js","webpack:///./src/Table.js","webpack:///./src/TableRow.js","webpack:///./src/TableCell.js","webpack:///./~/_object-path@0.11.4@object-path/index.js","webpack:///./src/ExpandIcon.js","webpack:///./~/_shallowequal@1.0.2@shallowequal/index.js","webpack:///./src/TableHeader.js","webpack:///./src/utils.js","webpack:///./src/ColumnManager.js","webpack:///./src/Column.js","webpack:///./src/ColumnGroup.js","webpack:///./src/createStore.js","webpack:///./~/_bee-loading@1.0.3@bee-loading/build/index.js","webpack:///./~/_bee-loading@1.0.3@bee-loading/build/Loading.js","webpack:///./~/_bee-overlay@1.0.8@bee-overlay/build/Portal.js","webpack:///./~/_bee-overlay@1.0.8@bee-overlay/build/utils/ownerDocument.js","webpack:///./~/_dom-helpers@3.3.1@dom-helpers/ownerDocument.js","webpack:///./~/_bee-overlay@1.0.8@bee-overlay/build/utils/getContainer.js","webpack:///./~/_bee-checkbox@1.0.5@bee-checkbox/build/index.js","webpack:///./~/_bee-checkbox@1.0.5@bee-checkbox/build/Checkbox.js","webpack:///./src/lib/multiSelect.js","webpack:///./src/lib/sort.js","webpack:///./~/_bee-icon@1.0.4@bee-icon/build/index.js","webpack:///./~/_bee-icon@1.0.4@bee-icon/build/Icon.js","webpack:///./src/lib/sum.js"],"names":["CARET","CARETUP","Demo13","require","DemoArray","Demo","props","state","open","handleClick","bind","setState","render","title","example","code","desc","scss_code","caret","text","header","padding","DemoGroup","map","child","index","document","getElementById","columns13","dataIndex","key","width","sumCol","sorter","a","b","c","data13","d","data13_1","ComplexTable","getSelectedDataFunc","console","log","data","selectDisabled","record","selectedRow","onClick","onClick1","multiObj","type","marginLeft","Table","Column","ColumnGroup","module","exports","propTypes","array","expandIconAsCell","bool","defaultExpandAllRows","expandedRowKeys","defaultExpandedRowKeys","useFixedHeader","columns","clsPrefix","string","bodyStyle","object","style","rowKey","oneOfType","func","rowClassName","expandedRowClassName","childrenColumnName","onExpand","onExpandedRowsChange","indentSize","number","onRowClick","onRowDoubleClick","expandIconColumnIndex","showHeader","footer","emptyText","scroll","rowRef","getBodyWrapper","children","node","defaultProps","body","rows","columnManager","store","currentHoverKey","i","length","row","push","getRowKey","concat","scrollPosition","fixedColumnsHeadRowsHeight","fixedColumnsBodyRowsHeight","onExpanded","onRowDestroy","getExpandedRows","getHeader","getHeaderRows","getExpandedRow","getRowsByData","getRows","getColGroup","getLeftFixedTable","getRightFixedTable","getTable","getTitle","getFooter","getEmptyText","getHeaderRowStyle","syncFixedTableRowHeight","resetScrollY","findExpandedRow","isRowExpanded","detectScrollTarget","handleBodyScroll","handleRowHover","componentDidMount","isAnyColumnsFixed","resizeEvent","window","componentWillReceiveProps","nextProps","reset","componentDidUpdate","componentWillUnmount","remove","expanded","e","preventDefault","stopPropagation","info","expandedRows","rowIndex","forEach","r","splice","undefined","fixed","unshift","className","rowSpan","trStyle","currentRow","column","cell","colSpan","filter","content","visible","colCount","leftLeafColumns","rightLeafColumns","leafColumns","indent","expandedRowRender","expandRowByClick","rst","isHiddenExpandIcon","needIndentSpaced","some","childrenColumn","expandedRowContent","haveExpandIcon","onHoverProps","onHover","height","subVisible","cols","minWidth","leftColumns","rightColumns","options","footerScroll","headStyle","tableClassName","x","overflowX","y","maxHeight","overflowY","scrollbarWidth","marginBottom","paddingBottom","renderTable","hasHead","hasBody","tableStyle","tableLayout","tableBody","headTable","BodyTable","refName","headerHeight","headRows","refs","querySelectorAll","bodyTable","bodyRows","call","getBoundingClientRect","scrollLeft","scrollTarget","currentTarget","target","fixedColumnsBodyLeft","fixedColumnsBodyRight","lastScrollLeft","scrollTop","isHover","bordered","isTableScroll","loading","show","isAnyColumnsLeftFixed","groupedColumns","isAnyColumnsRightFixed","onDestroy","hoverKey","any","expandable","isRequired","TableRow","hovered","onMouseEnter","onMouseLeave","unsubscribe","subscribe","getState","event","cells","expandIcon","isColumnHaveExpandIcon","display","TableCell","isInvalidRenderCellText","isValidElement","Object","prototype","toString","onCellClick","get","tdProps","indentText","paddingLeft","ExpandIcon","shouldComponentUpdate","expandClassName","rowStyle","TableHeader","cellProps","measureScrollbar","debounce","warningOnce","scrollbarMeasure","position","top","overflow","scrollDiv","createElement","scrollProp","hasOwnProperty","appendChild","offsetWidth","clientWidth","removeChild","wait","immediate","timeout","debounceFunc","context","args","arguments","persist","later","apply","callNow","clearTimeout","setTimeout","warned","condition","format","ColumnManager","elements","_cached","normalize","_cache","_leafColumns","_groupColumns","parentColumn","grouped","setRowSpan","newColumn","Children","isColumnElement","element","name","fn","oneOf","createStore","initialState","listeners","partial","listener","indexOf","multiSelect","Array","val","checkedAll","checkedObj","selIds","initCheckedObj","obj","renderColumnsMultiSelect","checkedArray","keys","select_column","indeterminate_bool","defaultColumns","onAllCheckChange","onCheckboxChange","table_ref","selIds_","selIds_length","selid","self","listData","id","param","allFlag","sort","toggleSortOrder","order","sortOrder","oldData","ascend_sort","descend_sort","renderColumnsDropdown","prefixCls","originColumn","sortButton","isAscend","isDescend","sum","columns2","currentFooter","data_2","columns_sum","sumCol_index","isArray","isNaN","showSum","item","Component"],"mappings":"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,4DAA4D,6DAA6D,wCAAwC,EAAE,EAAE,YAAY;;AAEhU,+CAA8C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,oBAAoB,EAAE,eAAe;;AAE1N,kDAAiD,0CAA0C,0DAA0D,EAAE;;AAEvJ,kDAAiD,aAAa,uFAAuF,EAAE,uFAAuF;;AAE9O,2CAA0C,+DAA+D,qGAAqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA,EAAC;;AAED;AACA;;AAEA;AACA,qC;;;;;;ACnKA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC;;;;;;;AC/CD,wB;;;;;;ACAA,4B;;;;;;ACAA;;AAEA;AACA;AACA,EAAC;;AAED,oDAAmD,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AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA,UAAS,kDAAkD;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA,iBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS,iDAAiD;AAC1D;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wDAAuD,kBAAkB;;AAEzE;AACA;;AAEA;AACA,MAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,yCAAwC;;AAExC;AACA;AACA,kBAAiB;AACjB;AACA;AACA,QAAO;AACP;AACA;AACA,UAAS,2GAA2G;AACpH;AACA;AACA,+FAA8F,2HAA2H;AACzN;AACA;AACA,UAAS,uDAAuD;AAChE;AACA;AACA;AACA;;AAEA;AACA,EAAC;;AAED;AACA;;AAEA;AACA,qC;;;;;;AChSA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA,kC;;;;;;ACvBA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA,oDAAmD,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,2BAA2B,EAAE,EAAE,EAAE,eAAe;;AAE9P;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F,oCAAmC,iDAAiD,gBAAgB,iBAAiB,OAAO,mBAAmB,4DAA4D,6DAA6D,wCAAwC,EAAE,EAAE,YAAY;;AAEhU,+CAA8C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,oBAAoB,EAAE,eAAe;;AAE1N,kDAAiD,0CAA0C,0DAA0D,EAAE;;AAEvJ,kDAAiD,aAAa,uFAAuF,EAAE,uFAAuF;;AAE9O,2CAA0C,+DAA+D,qGAAqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,oBAAmB;;AAEnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP,wBAAuB,oBAAoB;AAC3C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,wBAAuB,mBAAmB;AAC1C;;AAEA;AACA,8BAA6B,kBAAkB;AAC/C;AACA,UAAS;AACT,QAAO;AACP,MAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,wBAAuB,kBAAkB;AACzC;;AAEA;AACA,8BAA6B,iBAAiB;AAC9C;AACA,UAAS;AACT,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;;AAEA;AACA,8DAA6D;AAC7D;AACA,MAAK;AACL;;AAEA;AACA,EAAC;;AAED;;AAEA;;AAEA,iC;;;;;;ACnVA,2B;;;;;;ACAA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,kBAAiB,oBAAoB;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,WAAU;AACV,E;;;;;;AC7GA;;AAEA;AACA;AACA,EAAC;AACD;AACA,qC;;;;;;ACNA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;;AAEA;AACA;AACA,OAAM;AACN;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA,qC;;;;;;AC9BA;;AAEA;AACA;AACA,EAAC;;AAED,oDAAmD,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,2BAA2B,EAAE,EAAE,EAAE,eAAe;;AAE9P;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F,oCAAmC,iDAAiD,gBAAgB,iBAAiB,OAAO,mBAAmB,4DAA4D,6DAA6D,wCAAwC,EAAE,EAAE,YAAY;;AAEhU,+CAA8C,iBAAiB,qBAAqB,oCAAoC,6DAA6D,oBAAoB,EAAE,eAAe;;AAE1N,kDAAiD,0CAA0C,0DAA0D,EAAE;;AAEvJ,kDAAiD,aAAa,uFAAuF,EAAE,uFAAuF;;AAE9O,2CAA0C,+DAA+D,qGAAqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAoB;AACpB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,yBAAwB;AACxB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iFAAgF;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA,EAAC;;AAED;AACA;;AAEA;AACA,qC;;;;;;AC3PA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL,kBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL,oEAAmE;AACnE;AACA,IAAG;;AAEH;AACA,0DAAyD;AACzD;;AAEA,2BAA0B;AAC1B;AACA,qC;;;;;;AC7DA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACrBA;;AAEA;AACA;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,qC;;;;;;ACbA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F,wBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qC;;;;;;ACtBA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;AACA;AACA;AACA,qC;;;;;;ACZA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qC;;;;;;ACtDA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,qC;;;;;;ACTA;;AAEA;AACA;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA,qC;;;;;;ACXA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,qC;;;;;;ACTA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACzEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA,wEAAuE,aAAa;AACpF;AACA;;AAEA;AACA,uEAAsE,eAAe;AACrF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA,E;;;;;;ACtCA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,E;;;;;;ACvCA;;AAEA;;AAEA,qGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H;;AAE1Q;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,uE;;;;;;AC/BA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,uFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yC;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,sBAAqB,WAAW;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;;;;;;;AC3DA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAqC;;AAErC;AACA;AACA;;AAEA,4BAA2B;AAC3B;AACA;AACA;AACA,6BAA4B,UAAU;;;;;;;ACvLtC;;AAEA;;AAEA,qGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H;;AAE1Q;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,0E;;;;;;AC/BA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA,E;;;;;;ACnBA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kBAAiB,iBAAiB;AAClC;AACA,IAAG;AACH;;AAEA;AACA;AACA,aAAY,SAAS;AACrB,aAAY,eAAe;AAC3B,aAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA,E;;;;;;ACrCA;;AAEA;AACA;AACA,mEAAkE,aAAa;AAC/E;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,yEAAwE,eAAe;AACvF;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,yC;;;;;;AC7BA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0B;;;;;;ACvgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,E;;;;;;ACdA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,E;;;;;;ACrBA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACnCA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,EAAC;AACD;AACA;AACA,EAAC;AACD;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAmC,cAAc;AACjD;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sDAAqD;AACrD;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,EAAC;;AAED;AACA,qC;;;;;;ACpRA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA,qC;;;;;;AC3DA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,iCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH,mCAAkC;AAClC;AACA;AACA;;AAEA;AACA,GAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAgB,sBAAsB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;ACzFA;;AAEA;;AAEA,qGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H;;AAE1Q;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;;AAEA,gC;;;;;;AC1LA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;;AAGH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA,oC;;;;;;ACpFA;AACA;AACA;;AAEA;AACA;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,aAAY;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,cAAc;AACzB,aAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;;AAEA;AACA;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,aAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9LA;AACA;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA;AACA,G;;;;;;ACNA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,E;;;;;;ACjBA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F,kDAAiD,0CAA0C,0DAA0D,EAAE;;AAEvJ,kDAAiD,aAAa,uFAAuF,EAAE,uFAAuF;;AAE9O,2CAA0C,+DAA+D,qGAAqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH,iCAAgC;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,yB;;;;;;AC9LA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qC;;;;;;ACzOA;;AAEA;AACA;AACA,EAAC;;AAED,qGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H;;AAE1Q;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,kBAAkB;AAC/B;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA,UAAS,OAAO;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mEAAkE,cAAc;AAChF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,wCAAuC;AACvC,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;;AAEA,uEAAsE,eAAe;AACrF;AACA;;AAEA,oBAAmB,iBAAiB;AACpC;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;;AAEA;AACA,qC;;;;;;AChkBA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,E;;;;;;AC7GA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC,4BAA2B,cAAc,mBAAmB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qC;;;;;;ACvDA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qC;;;;;;ACxGA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;AC7BA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,qC;;;;;;ACtDA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qC;;;;;;ACnCA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qC;;;;;;ACxBA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;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AqG,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,UAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA,EAAC;;AAED;AACA;;AAEA;AACA,qC;;;;;;;;;;;;AC5JA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;;;;;;;gfAbA;;;;;;;AAeA,KAAMC,YAAY,CAChB;AACEf,UAAO,IADT;AAEEgB,cAAW,GAFb;AAGEC,QAAK,GAHP;AAIEC,UAAO;AAJT,EADgB,EAOhB;AACElB,UAAO,IADT;AAEEgB,cAAW,GAFb;AAGEC,QAAK,GAHP;AAIEC,UAAO;AAJT,EAPgB,EAahB;AACElB,UAAO,IADT;AAEEgB,cAAW,GAFb;AAGEC,QAAK,GAHP;AAIEC,UAAO,GAJT;AAKEC,WAAQ,IALV;AAMEC,WAAQ,gBAACC,CAAD,EAAIC,CAAJ;AAAA,YAAUD,EAAEE,CAAF,GAAMD,EAAEC,CAAlB;AAAA;AANV,EAbgB,EAqBhB;AACEvB,UAAO,MADT;AAEEgB,cAAW,GAFb;AAGEC,QAAK,GAHP;AAIEC,UAAO;AAJT,EArBgB,CAAlB;;AA6BA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E,kBAAS,KAAKjJ;AAJhB;AAMGwP,iBANH;AAOGZ,iBAPH;AAQGlO;AARH,MADF;AAYD,I;;;;;AACF;;AAEDqO,WAAU9L,SAAV,GAAsBA,SAAtB;;sBAEe8L,S;;;;;;;AClFf;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,QAAO,IAAI;AACX;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA,sBAAqB,iBAAiB;AACtC;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,0CAAyC,SAAS;AAClD;AACA;AACA;AACA;;AAEA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,EAAE,yEAAyE,eAAe,yEAAyE,EAAE,EAAE,uHAAuH;;AAE5e;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,EAAC;;AAED;;AAEA;AACA;;AAEA;AACA,qC;;;;;;AC1MA;;AAEA;AACA;AACA,EAAC;;AAED;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F,qC;;;;;;ACpBA;;AAEA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,qC;;;;;;ACTA;;AAEA;AACA;AACA,EAAC;AACD;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA;AACA,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACvBA;;AAEA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;AACA,qC;;;;;;ACbA;;AAEA;AACA;AAC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","file":"demo.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 647c0709d023518b5d15","\nimport { Con, Row, Col } from 'bee-layout';\nimport { Panel } from 'bee-panel';\nimport Button from 'bee-button';\nimport React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\n\n\nconst CARET = ;\n\nconst CARETUP = ;\n\n\nvar Demo13 = require(\"./demolist/Demo13\");var DemoArray = [{\"example\":,\"title\":\" 列排序、全选功能、合计\",\"code\":\"/**\\n *\\n * @title 列排序、全选功能、合计\\n * @description 列排序、全选功能、合计(通过使用的封装好的功能方法实现复杂功能,简单易用!)\\n *\\n */\\n\\nimport React, { Component } from \\\"react\\\";\\nimport { Table, Button, Checkbox } from 'tinper-bee';\\nimport multiSelect from \\\"tinper-bee/lib/multiSelect.js\\\";;\\nimport sort from \\\"tinper-bee/lib/sort.js\\\";;\\nimport sum from \\\"tinper-bee/lib/sum.js\\\";;\\n\\nconst columns13 = [\\n {\\n title: \\\"名字\\\",\\n dataIndex: \\\"a\\\",\\n key: \\\"a\\\",\\n width: 200\\n },\\n {\\n title: \\\"性别\\\",\\n dataIndex: \\\"b\\\",\\n key: \\\"b\\\",\\n width: 200\\n },\\n {\\n title: \\\"年龄\\\",\\n dataIndex: \\\"c\\\",\\n key: \\\"c\\\",\\n width: 200,\\n sumCol: true,\\n sorter: (a, b) => a.c - b.c\\n },\\n {\\n title: \\\"武功级别\\\",\\n dataIndex: \\\"d\\\",\\n key: \\\"d\\\",\\n width: 200\\n }\\n];\\n\\nconst data13 = [\\n { a: \\\"杨过\\\", b: \\\"男\\\", c: 30, d: \\\"内行\\\", key: \\\"2\\\" },\\n { a: \\\"令狐冲\\\", b: \\\"男\\\", c: 41, d: \\\"大侠\\\", key: \\\"1\\\" },\\n { a: \\\"郭靖\\\", b: \\\"男\\\", c: 25, d: \\\"大侠\\\", key: \\\"3\\\" }\\n];\\nconst data13_1 = [\\n { a: \\\"杨过\\\", b: \\\"男\\\", c: 30, d: \\\"内行\\\", key: \\\"2\\\" },\\n { a: \\\"杨过\\\", b: \\\"男\\\", c: 30, d: \\\"内行\\\", key: \\\"22\\\" },\\n { a: \\\"杨过\\\", b: \\\"男\\\", c: 30, d: \\\"内行\\\", key: \\\"222\\\" },\\n { a: \\\"令狐冲\\\", b: \\\"男\\\", c: 41, d: \\\"大侠\\\", key: \\\"1\\\" },\\n { a: \\\"郭靖\\\", b: \\\"男\\\", c: 25, d: \\\"大侠\\\", key: \\\"3\\\" }\\n];\\n//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常\\nlet ComplexTable = multiSelect(sum(sort(Table)));\\n\\nclass Demo13 extends Component {\\n constructor(props) {\\n super(props);\\n this.state = {\\n data13: data13,\\n selectedRow: this.selectedRow,\\n selectDisabled: this.selectDisabled\\n };\\n }\\n getSelectedDataFunc = data => {\\n console.log(data)\\n this.setState({\\n data13:data\\n })\\n };\\n selectDisabled = (record, index) => {\\n console.log(record);\\n if (index === 1) {\\n return true;\\n }\\n return false;\\n };\\n selectedRow = (record, index) => {\\n // console.log(record);\\n // if (index === 0) {\\n return true;\\n // }\\n // return false;\\n };\\n onClick = () => {\\n this.setState({\\n selectedRow: function() {}\\n });\\n };\\n onClick1 = () => {\\n this.setState({\\n selectDisabled: (record, index) => {\\n console.log(record);\\n if (index === 2) {\\n return true;\\n }\\n return false;\\n }\\n });\\n };\\n render() {\\n let multiObj = {\\n type: \\\"checkbox\\\"\\n };\\n return (\\n