would be a good example\n // in this case the role on should be \"none\" to\n // remove the implied listitem role.\n // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html\n attrs.role = 'none';\n } // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner\n\n\n var mouseEvent = {\n onClick: props.disabled ? null : this.onClick,\n onMouseLeave: props.disabled ? null : this.onMouseLeave,\n onMouseEnter: props.disabled ? null : this.onMouseEnter\n };\n\n var style = _objectSpread({}, props.style);\n\n if (props.mode === 'inline') {\n style.paddingLeft = props.inlineIndent * props.level;\n }\n\n menuAllProps.forEach(function (key) {\n return delete props[key];\n });\n var icon = this.props.itemIcon;\n\n if (typeof this.props.itemIcon === 'function') {\n // TODO: This is a bug which should fixed after TS refactor\n icon = React.createElement(this.props.itemIcon, this.props);\n }\n\n return React.createElement(\"li\", Object.assign({}, props, attrs, mouseEvent, {\n style: style,\n ref: this.saveNode\n }), props.children, icon);\n }\n }]);\n\n return MenuItem;\n}(React.Component);\nMenuItem.isMenuItem = true;\nMenuItem.defaultProps = {\n onSelect: noop,\n onMouseEnter: noop,\n onMouseLeave: noop,\n manualRef: noop\n};\nvar connected = connect(function (_ref, _ref2) {\n var activeKey = _ref.activeKey,\n selectedKeys = _ref.selectedKeys;\n var eventKey = _ref2.eventKey,\n subMenuKey = _ref2.subMenuKey;\n return {\n active: activeKey[subMenuKey] === eventKey,\n isSelected: selectedKeys.indexOf(eventKey) !== -1\n };\n})(MenuItem);\nexport default connected;","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport * as React from 'react';\nimport { menuAllProps } from './util';\n\nvar MenuItemGroup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(MenuItemGroup, _React$Component);\n\n function MenuItemGroup() {\n var _this;\n\n _classCallCheck(this, MenuItemGroup);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(MenuItemGroup).apply(this, arguments));\n\n _this.renderInnerMenuItem = function (item) {\n var _this$props = _this.props,\n renderMenuItem = _this$props.renderMenuItem,\n index = _this$props.index;\n return renderMenuItem(item, index, _this.props.subMenuKey);\n };\n\n return _this;\n }\n\n _createClass(MenuItemGroup, [{\n key: \"render\",\n value: function render() {\n var props = _extends({}, this.props);\n\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n rootPrefixCls = props.rootPrefixCls;\n var titleClassName = \"\".concat(rootPrefixCls, \"-item-group-title\");\n var listClassName = \"\".concat(rootPrefixCls, \"-item-group-list\");\n var title = props.title,\n children = props.children;\n menuAllProps.forEach(function (key) {\n return delete props[key];\n }); // Set onClick to null, to ignore propagated onClick event\n\n delete props.onClick;\n return React.createElement(\"li\", Object.assign({}, props, {\n className: \"\".concat(className, \" \").concat(rootPrefixCls, \"-item-group\")\n }), React.createElement(\"div\", {\n className: titleClassName,\n title: typeof title === 'string' ? title : undefined\n }, title), React.createElement(\"ul\", {\n className: listClassName\n }, React.Children.map(children, this.renderInnerMenuItem)));\n }\n }]);\n\n return MenuItemGroup;\n}(React.Component);\n\nMenuItemGroup.isMenuItemGroup = true;\nMenuItemGroup.defaultProps = {\n disabled: true\n};\nexport default MenuItemGroup;","import * as React from 'react';\n\nvar Divider = function Divider(_ref) {\n var className = _ref.className,\n rootPrefixCls = _ref.rootPrefixCls,\n style = _ref.style;\n return React.createElement(\"li\", {\n className: \"\".concat(className, \" \").concat(rootPrefixCls, \"-item-divider\"),\n style: style\n });\n};\n\nDivider.defaultProps = {\n // To fix keyboard UX.\n disabled: true,\n className: '',\n style: {}\n};\nexport default Divider;","import Menu from './Menu';\nimport SubMenu from './SubMenu';\nimport MenuItem from './MenuItem';\nimport MenuItemGroup from './MenuItemGroup';\nimport Divider from './Divider';\nexport { SubMenu, MenuItem as Item, MenuItem, MenuItemGroup, MenuItemGroup as ItemGroup, Divider };\nexport default Menu;","import React from 'react';\nimport { isFragment } from 'react-is';\nexport default function toArray(children) {\n var ret = [];\n React.Children.forEach(children, function (child) {\n if (child === undefined || child === null) {\n return;\n }\n\n if (Array.isArray(child)) {\n ret = ret.concat(toArray(child));\n } else if (isFragment(child) && child.props) {\n ret = ret.concat(toArray(child.props.children));\n } else {\n ret.push(child);\n }\n });\n return ret;\n}","import React from 'react';\nexport function toTitle(title) {\n if (typeof title === 'string') {\n return title;\n }\n\n return '';\n}\nexport function getValuePropValue(child) {\n if (!child) {\n return null;\n }\n\n var props = child.props;\n\n if ('value' in props) {\n return props.value;\n }\n\n if (child.key) {\n return child.key;\n }\n\n if (child.type && child.type.isSelectOptGroup && props.label) {\n return props.label;\n }\n\n throw new Error(\"Need at least a key or a value or a label (only for OptGroup) for \".concat(child));\n}\nexport function getPropValue(child, prop) {\n if (prop === 'value') {\n return getValuePropValue(child);\n }\n\n return child.props[prop];\n}\nexport function isMultiple(props) {\n return props.multiple;\n}\nexport function isCombobox(props) {\n return props.combobox;\n}\nexport function isMultipleOrTags(props) {\n return props.multiple || props.tags;\n}\nexport function isMultipleOrTagsOrCombobox(props) {\n return isMultipleOrTags(props) || isCombobox(props);\n}\nexport function isSingleMode(props) {\n return !isMultipleOrTagsOrCombobox(props);\n}\nexport function toArray(value) {\n var ret = value;\n\n if (value === undefined) {\n ret = [];\n } else if (!Array.isArray(value)) {\n ret = [value];\n }\n\n return ret;\n}\nexport function getMapKey(value) {\n return \"\".concat(typeof value, \"-\").concat(value);\n}\nexport function preventDefaultEvent(e) {\n e.preventDefault();\n}\nexport function findIndexInValueBySingleValue(value, singleValue) {\n var index = -1;\n\n if (value) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === singleValue) {\n index = i;\n break;\n }\n }\n }\n\n return index;\n}\nexport function getLabelFromPropsValue(value, key) {\n var label;\n value = toArray(value);\n\n if (value) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < value.length; i++) {\n if (value[i].key === key) {\n label = value[i].label;\n break;\n }\n }\n }\n\n return label;\n}\nexport function getSelectKeys(menuItems, value) {\n if (value === null || value === undefined) {\n return [];\n }\n\n var selectedKeys = [];\n React.Children.forEach(menuItems, function (item) {\n var type = item.type;\n\n if (type.isMenuItemGroup) {\n selectedKeys = selectedKeys.concat(getSelectKeys(item.props.children, value));\n } else {\n var itemValue = getValuePropValue(item);\n var itemKey = item.key;\n\n if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey) {\n selectedKeys.push(itemKey);\n }\n }\n });\n return selectedKeys;\n}\nexport var UNSELECTABLE_STYLE = {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n};\nexport var UNSELECTABLE_ATTRIBUTE = {\n unselectable: 'on'\n};\nexport function findFirstMenuItem(children) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n\n if (child.type.isMenuItemGroup) {\n var found = findFirstMenuItem(child.props.children);\n\n if (found) {\n return found;\n }\n } else if (!child.props.disabled) {\n return child;\n }\n }\n\n return null;\n}\nexport function includesSeparators(str, separators) {\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < separators.length; ++i) {\n if (str.lastIndexOf(separators[i]) > 0) {\n return true;\n }\n }\n\n return false;\n}\nexport function splitBySeparators(str, separators) {\n var reg = new RegExp(\"[\".concat(separators.join(), \"]\"));\n return str.split(reg).filter(function (token) {\n return token;\n });\n}\nexport function defaultFilterFn(input, child) {\n if (child.props.disabled) {\n return false;\n }\n\n var value = toArray(getPropValue(child, this.props.optionFilterProp)).join('');\n return value.toLowerCase().indexOf(input.toLowerCase()) > -1;\n}\nexport function validateOptionValue(value, props) {\n if (isSingleMode(props) || isMultiple(props)) {\n return;\n }\n\n if (typeof value !== 'string') {\n throw new Error(\"Invalid `value` of type `\".concat(typeof value, \"` supplied to Option, \") + \"expected `string` when `tags/combobox` is `true`.\");\n }\n}\nexport function saveRef(instance, name) {\n return function (node) {\n instance[name] = node;\n };\n}\nexport function generateUUID() {\n if (process.env.NODE_ENV === 'test') {\n return 'test-uuid';\n }\n\n var d = new Date().getTime();\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n // tslint:disable-next-line:no-bitwise\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16); // tslint:disable-next-line:no-bitwise\n\n return (c === 'x' ? r : r & 0x7 | 0x8).toString(16);\n });\n return uuid;\n}","function _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport scrollIntoView from 'dom-scroll-into-view';\nimport * as PropTypes from 'prop-types';\nimport raf from 'raf';\nimport Menu from 'rc-menu';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport * as React from 'react';\nimport { findDOMNode } from 'react-dom';\nimport { getSelectKeys, preventDefaultEvent, saveRef } from './util';\n\nvar DropdownMenu =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(DropdownMenu, _React$Component);\n\n function DropdownMenu(props) {\n var _this;\n\n _classCallCheck(this, DropdownMenu);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(DropdownMenu).call(this, props));\n _this.rafInstance = null;\n _this.lastVisible = false;\n\n _this.scrollActiveItemToView = function () {\n // scroll into view\n var itemComponent = findDOMNode(_this.firstActiveItem);\n var _this$props = _this.props,\n visible = _this$props.visible,\n firstActiveValue = _this$props.firstActiveValue;\n var value = _this.props.value;\n\n if (!itemComponent || !visible) {\n return;\n }\n\n var scrollIntoViewOpts = {\n onlyScrollIfNeeded: true\n };\n\n if ((!value || value.length === 0) && firstActiveValue) {\n scrollIntoViewOpts.alignWithTop = true;\n } // Delay to scroll since current frame item position is not ready when pre view is by filter\n // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462\n\n\n _this.rafInstance = raf(function () {\n scrollIntoView(itemComponent, findDOMNode(_this.menuRef), scrollIntoViewOpts);\n });\n };\n\n _this.renderMenu = function () {\n var _this$props2 = _this.props,\n menuItems = _this$props2.menuItems,\n menuItemSelectedIcon = _this$props2.menuItemSelectedIcon,\n defaultActiveFirstOption = _this$props2.defaultActiveFirstOption,\n prefixCls = _this$props2.prefixCls,\n multiple = _this$props2.multiple,\n onMenuSelect = _this$props2.onMenuSelect,\n inputValue = _this$props2.inputValue,\n backfillValue = _this$props2.backfillValue,\n onMenuDeselect = _this$props2.onMenuDeselect,\n visible = _this$props2.visible;\n var firstActiveValue = _this.props.firstActiveValue;\n\n if (menuItems && menuItems.length) {\n var menuProps = {};\n\n if (multiple) {\n menuProps.onDeselect = onMenuDeselect;\n menuProps.onSelect = onMenuSelect;\n } else {\n menuProps.onClick = onMenuSelect;\n }\n\n var value = _this.props.value;\n var selectedKeys = getSelectKeys(menuItems, value);\n var activeKeyProps = {};\n var defaultActiveFirst = defaultActiveFirstOption;\n var clonedMenuItems = menuItems;\n\n if (selectedKeys.length || firstActiveValue) {\n if (visible && !_this.lastVisible) {\n activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;\n } else if (!visible) {\n // Do not trigger auto active since we already have selectedKeys\n if (selectedKeys[0]) {\n defaultActiveFirst = false;\n }\n\n activeKeyProps.activeKey = undefined;\n }\n\n var foundFirst = false; // set firstActiveItem via cloning menus\n // for scroll into view\n\n var clone = function clone(item) {\n var key = item.key;\n\n if (!foundFirst && selectedKeys.indexOf(key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {\n foundFirst = true;\n return React.cloneElement(item, {\n ref: function ref(_ref) {\n _this.firstActiveItem = _ref;\n }\n });\n }\n\n return item;\n };\n\n clonedMenuItems = menuItems.map(function (item) {\n if (item.type.isMenuItemGroup) {\n var children = toArray(item.props.children).map(clone);\n return React.cloneElement(item, {}, children);\n }\n\n return clone(item);\n });\n } else {\n // Clear firstActiveItem when dropdown menu items was empty\n // Avoid `Unable to find node on an unmounted component`\n // https://github.com/ant-design/ant-design/issues/10774\n _this.firstActiveItem = null;\n } // clear activeKey when inputValue change\n\n\n var lastValue = value && value[value.length - 1];\n\n if (inputValue !== _this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {\n activeKeyProps.activeKey = '';\n }\n\n return React.createElement(Menu, _extends({\n ref: _this.saveMenuRef,\n style: _this.props.dropdownMenuStyle,\n defaultActiveFirst: defaultActiveFirst,\n role: \"listbox\",\n itemIcon: multiple ? menuItemSelectedIcon : null\n }, activeKeyProps, {\n multiple: multiple\n }, menuProps, {\n selectedKeys: selectedKeys,\n prefixCls: \"\".concat(prefixCls, \"-menu\")\n }), clonedMenuItems);\n }\n\n return null;\n };\n\n _this.lastInputValue = props.inputValue;\n _this.saveMenuRef = saveRef(_assertThisInitialized(_this), 'menuRef');\n return _this;\n }\n\n _createClass(DropdownMenu, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.scrollActiveItemToView();\n this.lastVisible = this.props.visible;\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n if (!nextProps.visible) {\n this.lastVisible = false;\n } // freeze when hide\n\n\n return this.props.visible && !nextProps.visible || nextProps.visible || nextProps.inputValue !== this.props.inputValue;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var props = this.props;\n\n if (!prevProps.visible && props.visible) {\n this.scrollActiveItemToView();\n }\n\n this.lastVisible = props.visible;\n this.lastInputValue = props.inputValue;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.rafInstance) {\n raf.cancel(this.rafInstance);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var renderMenu = this.renderMenu();\n return renderMenu ? React.createElement(\"div\", {\n style: {\n overflow: 'auto',\n transform: 'translateZ(0)'\n },\n id: this.props.ariaId,\n onFocus: this.props.onPopupFocus,\n onMouseDown: preventDefaultEvent,\n onScroll: this.props.onPopupScroll\n }, renderMenu) : null;\n }\n }]);\n\n return DropdownMenu;\n}(React.Component);\n\nexport { DropdownMenu as default };\nDropdownMenu.displayName = 'DropdownMenu';\nDropdownMenu.propTypes = {\n ariaId: PropTypes.string,\n defaultActiveFirstOption: PropTypes.bool,\n value: PropTypes.any,\n dropdownMenuStyle: PropTypes.object,\n multiple: PropTypes.bool,\n onPopupFocus: PropTypes.func,\n onPopupScroll: PropTypes.func,\n onMenuDeSelect: PropTypes.func,\n onMenuSelect: PropTypes.func,\n prefixCls: PropTypes.string,\n menuItems: PropTypes.any,\n inputValue: PropTypes.string,\n visible: PropTypes.bool,\n firstActiveValue: PropTypes.string,\n menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node])\n};","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; }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport classnames from 'classnames';\nimport * as PropTypes from 'prop-types';\nimport raf from 'raf';\nimport Trigger from 'rc-trigger';\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport DropdownMenu from './DropdownMenu';\nimport { isSingleMode, saveRef } from './util';\nTrigger.displayName = 'Trigger';\nvar BUILT_IN_PLACEMENTS = {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: 0,\n adjustY: 1\n }\n }\n};\n\nvar SelectTrigger =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(SelectTrigger, _React$Component);\n\n function SelectTrigger(props) {\n var _this;\n\n _classCallCheck(this, SelectTrigger);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(SelectTrigger).call(this, props));\n _this.dropdownMenuRef = null;\n _this.rafInstance = null;\n\n _this.setDropdownWidth = function () {\n _this.cancelRafInstance();\n\n _this.rafInstance = raf(function () {\n var dom = ReactDOM.findDOMNode(_assertThisInitialized(_this));\n var width = dom.offsetWidth;\n\n if (width !== _this.state.dropdownWidth) {\n _this.setState({\n dropdownWidth: width\n });\n }\n });\n };\n\n _this.cancelRafInstance = function () {\n if (_this.rafInstance) {\n raf.cancel(_this.rafInstance);\n }\n };\n\n _this.getInnerMenu = function () {\n return _this.dropdownMenuRef && _this.dropdownMenuRef.menuRef;\n };\n\n _this.getPopupDOMNode = function () {\n return _this.triggerRef.getPopupDomNode();\n };\n\n _this.getDropdownElement = function (newProps) {\n var props = _this.props;\n var dropdownRender = props.dropdownRender,\n ariaId = props.ariaId;\n var menuNode = React.createElement(DropdownMenu, _extends({\n ref: _this.saveDropdownMenuRef\n }, newProps, {\n ariaId: ariaId,\n prefixCls: _this.getDropdownPrefixCls(),\n onMenuSelect: props.onMenuSelect,\n onMenuDeselect: props.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n value: props.value,\n backfillValue: props.backfillValue,\n firstActiveValue: props.firstActiveValue,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n menuItemSelectedIcon: props.menuItemSelectedIcon\n }));\n\n if (dropdownRender) {\n return dropdownRender(menuNode, props);\n }\n\n return null;\n };\n\n _this.getDropdownTransitionName = function () {\n var props = _this.props;\n var transitionName = props.transitionName;\n\n if (!transitionName && props.animation) {\n transitionName = \"\".concat(_this.getDropdownPrefixCls(), \"-\").concat(props.animation);\n }\n\n return transitionName;\n };\n\n _this.getDropdownPrefixCls = function () {\n return \"\".concat(_this.props.prefixCls, \"-dropdown\");\n };\n\n _this.saveDropdownMenuRef = saveRef(_assertThisInitialized(_this), 'dropdownMenuRef');\n _this.saveTriggerRef = saveRef(_assertThisInitialized(_this), 'triggerRef');\n _this.state = {\n dropdownWidth: 0\n };\n return _this;\n }\n\n _createClass(SelectTrigger, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.setDropdownWidth();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.setDropdownWidth();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.cancelRafInstance();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _popupClassName;\n\n var _a = this.props,\n onPopupFocus = _a.onPopupFocus,\n empty = _a.empty,\n props = __rest(_a, [\"onPopupFocus\", \"empty\"]);\n\n var multiple = props.multiple,\n visible = props.visible,\n inputValue = props.inputValue,\n dropdownAlign = props.dropdownAlign,\n disabled = props.disabled,\n showSearch = props.showSearch,\n dropdownClassName = props.dropdownClassName,\n dropdownStyle = props.dropdownStyle,\n dropdownMatchSelectWidth = props.dropdownMatchSelectWidth;\n var dropdownPrefixCls = this.getDropdownPrefixCls();\n var popupClassName = (_popupClassName = {}, _defineProperty(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty(_popupClassName, \"\".concat(dropdownPrefixCls, \"--\").concat(multiple ? 'multiple' : 'single'), 1), _defineProperty(_popupClassName, \"\".concat(dropdownPrefixCls, \"--empty\"), empty), _popupClassName);\n var popupElement = this.getDropdownElement({\n menuItems: props.options,\n onPopupFocus: onPopupFocus,\n multiple: multiple,\n inputValue: inputValue,\n visible: visible\n });\n var hideAction;\n\n if (disabled) {\n hideAction = [];\n } else if (isSingleMode(props) && !showSearch) {\n hideAction = ['click'];\n } else {\n hideAction = ['blur'];\n }\n\n var popupStyle = _extends({}, dropdownStyle);\n\n var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';\n\n if (this.state.dropdownWidth) {\n popupStyle[widthProp] = \"\".concat(this.state.dropdownWidth, \"px\");\n }\n\n return React.createElement(Trigger, _extends({}, props, {\n showAction: disabled ? [] : this.props.showAction,\n hideAction: hideAction,\n ref: this.saveTriggerRef,\n popupPlacement: \"bottomLeft\",\n builtinPlacements: BUILT_IN_PLACEMENTS,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: this.getDropdownTransitionName(),\n onPopupVisibleChange: props.onDropdownVisibleChange,\n popup: popupElement,\n popupAlign: dropdownAlign,\n popupVisible: visible,\n getPopupContainer: props.getPopupContainer,\n popupClassName: classnames(popupClassName),\n popupStyle: popupStyle\n }), props.children);\n }\n }]);\n\n return SelectTrigger;\n}(React.Component);\n\nexport { SelectTrigger as default };\nSelectTrigger.defaultProps = {\n dropdownRender: function dropdownRender(menu) {\n return menu;\n }\n};\nSelectTrigger.propTypes = {\n onPopupFocus: PropTypes.func,\n onPopupScroll: PropTypes.func,\n dropdownMatchSelectWidth: PropTypes.bool,\n dropdownAlign: PropTypes.object,\n visible: PropTypes.bool,\n disabled: PropTypes.bool,\n showSearch: PropTypes.bool,\n dropdownClassName: PropTypes.string,\n multiple: PropTypes.bool,\n inputValue: PropTypes.string,\n filterOption: PropTypes.any,\n options: PropTypes.any,\n prefixCls: PropTypes.string,\n popupClassName: PropTypes.string,\n children: PropTypes.any,\n showAction: PropTypes.arrayOf(PropTypes.string),\n menuItemSelectedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n dropdownRender: PropTypes.func,\n ariaId: PropTypes.string\n};\nSelectTrigger.displayName = 'SelectTrigger';","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; }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport classnames from 'classnames';\nimport classes from 'component-classes';\nimport Animate from 'rc-animate';\nimport { Item as MenuItem, ItemGroup as MenuItemGroup } from 'rc-menu';\nimport childrenToArray from \"rc-util/es/Children/toArray\";\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { polyfill } from 'react-lifecycles-compat';\nimport warning from 'warning';\nimport Option from './Option'; // Where el is the DOM element you'd like to test for visibility\n\nfunction isHidden(node) {\n return !node || node.offsetParent === null;\n}\n\nimport SelectPropTypes from './PropTypes';\nimport SelectTrigger from './SelectTrigger';\nimport { defaultFilterFn, findFirstMenuItem, findIndexInValueBySingleValue, generateUUID, getLabelFromPropsValue, getMapKey, getPropValue, getValuePropValue, includesSeparators, isCombobox, isMultipleOrTags, isMultipleOrTagsOrCombobox, isSingleMode, preventDefaultEvent, saveRef, splitBySeparators, toArray, toTitle, UNSELECTABLE_ATTRIBUTE, UNSELECTABLE_STYLE, validateOptionValue } from './util';\nvar SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY';\n\nvar noop = function noop() {\n return null;\n};\n\nfunction chaining() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < fns.length; i++) {\n if (fns[i] && typeof fns[i] === 'function') {\n fns[i].apply(chaining, args);\n }\n }\n };\n}\n\nvar Select =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Select, _React$Component);\n\n function Select(props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, props));\n _this.inputRef = null;\n _this.inputMirrorRef = null;\n _this.topCtrlRef = null;\n _this.selectTriggerRef = null;\n _this.rootRef = null;\n _this.selectionRef = null;\n _this.dropdownContainer = null;\n _this.blurTimer = null;\n _this.focusTimer = null;\n _this.comboboxTimer = null; // tslint:disable-next-line:variable-name\n\n _this._focused = false; // tslint:disable-next-line:variable-name\n\n _this._mouseDown = false; // tslint:disable-next-line:variable-name\n\n _this._options = []; // tslint:disable-next-line:variable-name\n\n _this._empty = false;\n\n _this.onInputChange = function (event) {\n var tokenSeparators = _this.props.tokenSeparators;\n var val = event.target.value;\n\n if (isMultipleOrTags(_this.props) && tokenSeparators.length && includesSeparators(val, tokenSeparators)) {\n var nextValue = _this.getValueByInput(val);\n\n if (nextValue !== undefined) {\n _this.fireChange(nextValue);\n }\n\n _this.setOpenState(false, {\n needFocus: true\n });\n\n _this.setInputValue('', false);\n\n return;\n }\n\n _this.setInputValue(val);\n\n _this.setState({\n open: true\n });\n\n if (isCombobox(_this.props)) {\n _this.fireChange([val]);\n }\n };\n\n _this.onDropdownVisibleChange = function (open) {\n if (open && !_this._focused) {\n _this.clearBlurTime();\n\n _this.timeoutFocus();\n\n _this._focused = true;\n\n _this.updateFocusClassName();\n }\n\n _this.setOpenState(open);\n }; // combobox ignore\n\n\n _this.onKeyDown = function (event) {\n var open = _this.state.open;\n var disabled = _this.props.disabled;\n\n if (disabled) {\n return;\n }\n\n var keyCode = event.keyCode;\n\n if (open && !_this.getInputDOMNode()) {\n _this.onInputKeyDown(event);\n } else if (keyCode === KeyCode.ENTER || keyCode === KeyCode.DOWN) {\n if (!open) {\n _this.setOpenState(true);\n }\n\n event.preventDefault();\n } else if (keyCode === KeyCode.SPACE) {\n // Not block space if popup is shown\n if (!open) {\n _this.setOpenState(true);\n\n event.preventDefault();\n }\n }\n };\n\n _this.onInputKeyDown = function (event) {\n var _this$props = _this.props,\n disabled = _this$props.disabled,\n combobox = _this$props.combobox,\n defaultActiveFirstOption = _this$props.defaultActiveFirstOption;\n\n if (disabled) {\n return;\n }\n\n var state = _this.state;\n\n var isRealOpen = _this.getRealOpenState(state); // magic code\n\n\n var keyCode = event.keyCode;\n\n if (isMultipleOrTags(_this.props) && !event.target.value && keyCode === KeyCode.BACKSPACE) {\n event.preventDefault();\n var value = state.value;\n\n if (value.length) {\n _this.removeSelected(value[value.length - 1]);\n }\n\n return;\n }\n\n if (keyCode === KeyCode.DOWN) {\n if (!state.open) {\n _this.openIfHasChildren();\n\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n } else if (keyCode === KeyCode.ENTER && state.open) {\n // Aviod trigger form submit when select item\n // https://github.com/ant-design/ant-design/issues/10861\n // https://github.com/ant-design/ant-design/issues/14544\n if (isRealOpen || !combobox) {\n event.preventDefault();\n } // Hard close popup to avoid lock of non option in combobox mode\n\n\n if (isRealOpen && combobox && defaultActiveFirstOption === false) {\n _this.comboboxTimer = setTimeout(function () {\n _this.setOpenState(false);\n });\n }\n } else if (keyCode === KeyCode.ESC) {\n if (state.open) {\n _this.setOpenState(false);\n\n event.preventDefault();\n event.stopPropagation();\n }\n\n return;\n }\n\n if (isRealOpen && _this.selectTriggerRef) {\n var menu = _this.selectTriggerRef.getInnerMenu();\n\n if (menu && menu.onKeyDown(event, _this.handleBackfill)) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n };\n\n _this.onMenuSelect = function (_ref) {\n var item = _ref.item;\n\n if (!item) {\n return;\n }\n\n var value = _this.state.value;\n var props = _this.props;\n var selectedValue = getValuePropValue(item);\n var lastValue = value[value.length - 1];\n var skipTrigger = false;\n\n if (isMultipleOrTags(props)) {\n if (findIndexInValueBySingleValue(value, selectedValue) !== -1) {\n skipTrigger = true;\n } else {\n value = value.concat([selectedValue]);\n }\n } else {\n if (!isCombobox(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== _this.state.backfillValue) {\n _this.setOpenState(false, {\n needFocus: true,\n fireSearch: false\n });\n\n skipTrigger = true;\n } else {\n value = [selectedValue];\n\n _this.setOpenState(false, {\n needFocus: true,\n fireSearch: false\n });\n }\n }\n\n if (!skipTrigger) {\n _this.fireChange(value);\n }\n\n _this.fireSelect(selectedValue);\n\n if (!skipTrigger) {\n var inputValue = isCombobox(props) ? getPropValue(item, props.optionLabelProp) : '';\n\n if (props.autoClearSearchValue) {\n _this.setInputValue(inputValue, false);\n }\n }\n };\n\n _this.onMenuDeselect = function (_ref2) {\n var item = _ref2.item,\n domEvent = _ref2.domEvent;\n\n if (domEvent.type === 'keydown' && domEvent.keyCode === KeyCode.ENTER) {\n var menuItemDomNode = ReactDOM.findDOMNode(item); // https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796\n\n if (!isHidden(menuItemDomNode)) {\n _this.removeSelected(getValuePropValue(item));\n }\n\n return;\n }\n\n if (domEvent.type === 'click') {\n _this.removeSelected(getValuePropValue(item));\n }\n\n var props = _this.props;\n\n if (props.autoClearSearchValue) {\n _this.setInputValue('');\n }\n };\n\n _this.onArrowClick = function (e) {\n e.stopPropagation();\n e.preventDefault();\n\n if (!_this.props.disabled) {\n _this.setOpenState(!_this.state.open, {\n needFocus: !_this.state.open\n });\n }\n };\n\n _this.onPlaceholderClick = function () {\n if (_this.getInputDOMNode && _this.getInputDOMNode()) {\n _this.getInputDOMNode().focus();\n }\n };\n\n _this.onOuterFocus = function (e) {\n if (_this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n _this.clearBlurTime(); // In IE11, onOuterFocus will be trigger twice when focus input\n // First one: e.target is div\n // Second one: e.target is input\n // other browser only trigger second one\n // https://github.com/ant-design/ant-design/issues/15942\n // Here we ignore the first one when e.target is div\n\n\n var inputNode = _this.getInputDOMNode();\n\n if (inputNode && e.target === _this.rootRef) {\n return;\n }\n\n if (!isMultipleOrTagsOrCombobox(_this.props) && e.target === inputNode) {\n return;\n }\n\n if (_this._focused) {\n return;\n }\n\n _this._focused = true;\n\n _this.updateFocusClassName(); // only effect multiple or tag mode\n\n\n if (!isMultipleOrTags(_this.props) || !_this._mouseDown) {\n _this.timeoutFocus();\n }\n };\n\n _this.onPopupFocus = function () {\n // fix ie scrollbar, focus element again\n _this.maybeFocus(true, true);\n };\n\n _this.onOuterBlur = function (e) {\n if (_this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n _this.blurTimer = window.setTimeout(function () {\n _this._focused = false;\n\n _this.updateFocusClassName();\n\n var props = _this.props;\n var value = _this.state.value;\n var inputValue = _this.state.inputValue;\n\n if (isSingleMode(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {\n var options = _this._options || [];\n\n if (options.length) {\n var firstOption = findFirstMenuItem(options);\n\n if (firstOption) {\n value = [getValuePropValue(firstOption)];\n\n _this.fireChange(value);\n }\n }\n } else if (isMultipleOrTags(props) && inputValue) {\n if (_this._mouseDown) {\n // need update dropmenu when not blur\n _this.setInputValue('');\n } else {\n // why not use setState?\n // https://github.com/ant-design/ant-design/issues/14262\n _this.state.inputValue = '';\n\n if (_this.getInputDOMNode && _this.getInputDOMNode()) {\n _this.getInputDOMNode().value = '';\n }\n }\n\n var tmpValue = _this.getValueByInput(inputValue);\n\n if (tmpValue !== undefined) {\n value = tmpValue;\n\n _this.fireChange(value);\n }\n } // if click the rest space of Select in multiple mode\n\n\n if (isMultipleOrTags(props) && _this._mouseDown) {\n _this.maybeFocus(true, true);\n\n _this._mouseDown = false;\n return;\n }\n\n _this.setOpenState(false);\n\n if (props.onBlur) {\n props.onBlur(_this.getVLForOnChange(value));\n }\n }, 10);\n };\n\n _this.onClearSelection = function (event) {\n var props = _this.props;\n var state = _this.state;\n\n if (props.disabled) {\n return;\n }\n\n var inputValue = state.inputValue;\n var value = state.value;\n event.stopPropagation();\n\n if (inputValue || value.length) {\n if (value.length) {\n _this.fireChange([]);\n }\n\n _this.setOpenState(false, {\n needFocus: true\n });\n\n if (inputValue) {\n _this.setInputValue('');\n }\n }\n };\n\n _this.onChoiceAnimationLeave = function () {\n _this.forcePopupAlign();\n };\n\n _this.getOptionInfoBySingleValue = function (value, optionsInfo) {\n var info;\n optionsInfo = optionsInfo || _this.state.optionsInfo;\n\n if (optionsInfo[getMapKey(value)]) {\n info = optionsInfo[getMapKey(value)];\n }\n\n if (info) {\n return info;\n }\n\n var defaultLabel = value;\n\n if (_this.props.labelInValue) {\n var valueLabel = getLabelFromPropsValue(_this.props.value, value);\n var defaultValueLabel = getLabelFromPropsValue(_this.props.defaultValue, value);\n\n if (valueLabel !== undefined) {\n defaultLabel = valueLabel;\n } else if (defaultValueLabel !== undefined) {\n defaultLabel = defaultValueLabel;\n }\n }\n\n var defaultInfo = {\n option: React.createElement(Option, {\n value: value,\n key: value\n }, value),\n value: value,\n label: defaultLabel\n };\n return defaultInfo;\n };\n\n _this.getOptionBySingleValue = function (value) {\n var _this$getOptionInfoBy = _this.getOptionInfoBySingleValue(value),\n option = _this$getOptionInfoBy.option;\n\n return option;\n };\n\n _this.getOptionsBySingleValue = function (values) {\n return values.map(function (value) {\n return _this.getOptionBySingleValue(value);\n });\n };\n\n _this.getValueByLabel = function (label) {\n if (label === undefined) {\n return null;\n }\n\n var value = null;\n Object.keys(_this.state.optionsInfo).forEach(function (key) {\n var info = _this.state.optionsInfo[key];\n var disabled = info.disabled;\n\n if (disabled) {\n return;\n }\n\n var oldLable = toArray(info.label);\n\n if (oldLable && oldLable.join('') === label) {\n value = info.value;\n }\n });\n return value;\n };\n\n _this.getVLBySingleValue = function (value) {\n if (_this.props.labelInValue) {\n return {\n key: value,\n label: _this.getLabelBySingleValue(value)\n };\n }\n\n return value;\n };\n\n _this.getVLForOnChange = function (vlsS) {\n var vls = vlsS;\n\n if (vls !== undefined) {\n if (!_this.props.labelInValue) {\n vls = vls.map(function (v) {\n return v;\n });\n } else {\n vls = vls.map(function (vl) {\n return {\n key: vl,\n label: _this.getLabelBySingleValue(vl)\n };\n });\n }\n\n return isMultipleOrTags(_this.props) ? vls : vls[0];\n }\n\n return vls;\n };\n\n _this.getLabelBySingleValue = function (value, optionsInfo) {\n var _this$getOptionInfoBy2 = _this.getOptionInfoBySingleValue(value, optionsInfo),\n label = _this$getOptionInfoBy2.label;\n\n return label;\n };\n\n _this.getDropdownContainer = function () {\n if (!_this.dropdownContainer) {\n _this.dropdownContainer = document.createElement('div');\n document.body.appendChild(_this.dropdownContainer);\n }\n\n return _this.dropdownContainer;\n };\n\n _this.getPlaceholderElement = function () {\n var props = _this.props;\n var state = _this.state;\n var hidden = false;\n\n if (state.inputValue) {\n hidden = true;\n }\n\n var value = state.value;\n\n if (value.length) {\n hidden = true;\n }\n\n if (isCombobox(props) && value.length === 1 && state.value && !state.value[0]) {\n hidden = false;\n }\n\n var placeholder = props.placeholder;\n\n if (placeholder) {\n return React.createElement(\"div\", _extends({\n onMouseDown: preventDefaultEvent,\n style: _extends({\n display: hidden ? 'none' : 'block'\n }, UNSELECTABLE_STYLE)\n }, UNSELECTABLE_ATTRIBUTE, {\n onClick: _this.onPlaceholderClick,\n className: \"\".concat(props.prefixCls, \"-selection__placeholder\")\n }), placeholder);\n }\n\n return null;\n };\n\n _this.getInputElement = function () {\n var props = _this.props;\n var defaultInput = React.createElement(\"input\", {\n id: props.id,\n autoComplete: \"off\"\n }); // tslint:disable-next-line:typedef-whitespace\n\n var inputElement = props.getInputElement ? props.getInputElement() : defaultInput;\n var inputCls = classnames(inputElement.props.className, _defineProperty({}, \"\".concat(props.prefixCls, \"-search__field\"), true)); // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159\n // Add space to the end of the inputValue as the width measurement tolerance\n\n return React.createElement(\"div\", {\n className: \"\".concat(props.prefixCls, \"-search__field__wrap\")\n }, React.cloneElement(inputElement, {\n ref: _this.saveInputRef,\n onChange: _this.onInputChange,\n onKeyDown: chaining(_this.onInputKeyDown, inputElement.props.onKeyDown, _this.props.onInputKeyDown),\n value: _this.state.inputValue,\n disabled: props.disabled,\n className: inputCls\n }), React.createElement(\"span\", {\n ref: _this.saveInputMirrorRef,\n className: \"\".concat(props.prefixCls, \"-search__field__mirror\")\n }, _this.state.inputValue, \"\\xA0\"));\n };\n\n _this.getInputDOMNode = function () {\n return _this.topCtrlRef ? _this.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : _this.inputRef;\n };\n\n _this.getInputMirrorDOMNode = function () {\n return _this.inputMirrorRef;\n };\n\n _this.getPopupDOMNode = function () {\n if (_this.selectTriggerRef) {\n return _this.selectTriggerRef.getPopupDOMNode();\n }\n };\n\n _this.getPopupMenuComponent = function () {\n if (_this.selectTriggerRef) {\n return _this.selectTriggerRef.getInnerMenu();\n }\n };\n\n _this.setOpenState = function (open) {\n var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var needFocus = config.needFocus,\n fireSearch = config.fireSearch;\n var props = _this.props;\n var state = _this.state;\n\n if (state.open === open) {\n _this.maybeFocus(open, !!needFocus);\n\n return;\n }\n\n if (_this.props.onDropdownVisibleChange) {\n _this.props.onDropdownVisibleChange(open);\n }\n\n var nextState = {\n open: open,\n backfillValue: ''\n }; // clear search input value when open is false in singleMode.\n // https://github.com/ant-design/ant-design/issues/16572\n\n if (!open && isSingleMode(props) && props.showSearch) {\n _this.setInputValue('', fireSearch);\n }\n\n if (!open) {\n _this.maybeFocus(open, !!needFocus);\n }\n\n _this.setState(_extends({\n open: open\n }, nextState), function () {\n if (open) {\n _this.maybeFocus(open, !!needFocus);\n }\n });\n };\n\n _this.setInputValue = function (inputValue) {\n var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var onSearch = _this.props.onSearch;\n\n if (inputValue !== _this.state.inputValue) {\n _this.setState(function (prevState) {\n // Additional check if `inputValue` changed in latest state.\n if (fireSearch && inputValue !== prevState.inputValue && onSearch) {\n onSearch(inputValue);\n }\n\n return {\n inputValue: inputValue\n };\n }, _this.forcePopupAlign);\n }\n };\n\n _this.getValueByInput = function (str) {\n var _this$props2 = _this.props,\n multiple = _this$props2.multiple,\n tokenSeparators = _this$props2.tokenSeparators;\n var nextValue = _this.state.value;\n var hasNewValue = false;\n splitBySeparators(str, tokenSeparators).forEach(function (label) {\n var selectedValue = [label];\n\n if (multiple) {\n var value = _this.getValueByLabel(label);\n\n if (value && findIndexInValueBySingleValue(nextValue, value) === -1) {\n nextValue = nextValue.concat(value);\n hasNewValue = true;\n\n _this.fireSelect(value);\n }\n } else if (findIndexInValueBySingleValue(nextValue, label) === -1) {\n nextValue = nextValue.concat(selectedValue);\n hasNewValue = true;\n\n _this.fireSelect(label);\n }\n });\n return hasNewValue ? nextValue : undefined;\n };\n\n _this.getRealOpenState = function (state) {\n // tslint:disable-next-line:variable-name\n var _open = _this.props.open;\n\n if (typeof _open === 'boolean') {\n return _open;\n }\n\n var open = (state || _this.state).open;\n var options = _this._options || [];\n\n if (isMultipleOrTagsOrCombobox(_this.props) || !_this.props.showSearch) {\n if (open && !options.length) {\n open = false;\n }\n }\n\n return open;\n };\n\n _this.markMouseDown = function () {\n _this._mouseDown = true;\n };\n\n _this.markMouseLeave = function () {\n _this._mouseDown = false;\n };\n\n _this.handleBackfill = function (item) {\n if (!_this.props.backfill || !(isSingleMode(_this.props) || isCombobox(_this.props))) {\n return;\n }\n\n var key = getValuePropValue(item);\n\n if (isCombobox(_this.props)) {\n _this.setInputValue(key, false);\n }\n\n _this.setState({\n value: [key],\n backfillValue: key\n });\n };\n\n _this.filterOption = function (input, child) {\n var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultFilterFn;\n var value = _this.state.value;\n var lastValue = value[value.length - 1];\n\n if (!input || lastValue && lastValue === _this.state.backfillValue) {\n return true;\n }\n\n var filterFn = _this.props.filterOption;\n\n if ('filterOption' in _this.props) {\n if (filterFn === true) {\n filterFn = defaultFilter.bind(_assertThisInitialized(_this));\n }\n } else {\n filterFn = defaultFilter.bind(_assertThisInitialized(_this));\n }\n\n if (!filterFn) {\n return true;\n } else if (typeof filterFn === 'function') {\n return filterFn.call(_assertThisInitialized(_this), input, child);\n } else if (child.props.disabled) {\n return false;\n }\n\n return true;\n };\n\n _this.timeoutFocus = function () {\n var onFocus = _this.props.onFocus;\n\n if (_this.focusTimer) {\n _this.clearFocusTime();\n }\n\n _this.focusTimer = window.setTimeout(function () {\n if (onFocus) {\n onFocus();\n }\n }, 10);\n };\n\n _this.clearFocusTime = function () {\n if (_this.focusTimer) {\n clearTimeout(_this.focusTimer);\n _this.focusTimer = null;\n }\n };\n\n _this.clearBlurTime = function () {\n if (_this.blurTimer) {\n clearTimeout(_this.blurTimer);\n _this.blurTimer = null;\n }\n };\n\n _this.clearComboboxTime = function () {\n if (_this.comboboxTimer) {\n clearTimeout(_this.comboboxTimer);\n _this.comboboxTimer = null;\n }\n };\n\n _this.updateFocusClassName = function () {\n var rootRef = _this.rootRef;\n var props = _this.props; // avoid setState and its side effect\n\n if (_this._focused) {\n classes(rootRef).add(\"\".concat(props.prefixCls, \"-focused\"));\n } else {\n classes(rootRef).remove(\"\".concat(props.prefixCls, \"-focused\"));\n }\n };\n\n _this.maybeFocus = function (open, needFocus) {\n if (needFocus || open) {\n var input = _this.getInputDOMNode();\n\n var _document = document,\n activeElement = _document.activeElement;\n\n if (input && (open || isMultipleOrTagsOrCombobox(_this.props))) {\n if (activeElement !== input) {\n input.focus();\n _this._focused = true;\n }\n } else if (activeElement !== _this.selectionRef && _this.selectionRef) {\n _this.selectionRef.focus();\n\n _this._focused = true;\n }\n }\n };\n\n _this.removeSelected = function (selectedKey, e) {\n var props = _this.props;\n\n if (props.disabled || _this.isChildDisabled(selectedKey)) {\n return;\n } // Do not trigger Trigger popup\n\n\n if (e && e.stopPropagation) {\n e.stopPropagation();\n }\n\n var oldValue = _this.state.value;\n var value = oldValue.filter(function (singleValue) {\n return singleValue !== selectedKey;\n });\n var canMultiple = isMultipleOrTags(props);\n\n if (canMultiple) {\n var event = selectedKey;\n\n if (props.labelInValue) {\n event = {\n key: selectedKey,\n label: _this.getLabelBySingleValue(selectedKey)\n };\n }\n\n if (props.onDeselect) {\n props.onDeselect(event, _this.getOptionBySingleValue(selectedKey));\n }\n }\n\n _this.fireChange(value);\n };\n\n _this.openIfHasChildren = function () {\n var props = _this.props;\n\n if (React.Children.count(props.children) || isSingleMode(props)) {\n _this.setOpenState(true);\n }\n };\n\n _this.fireSelect = function (value) {\n if (_this.props.onSelect) {\n _this.props.onSelect(_this.getVLBySingleValue(value), _this.getOptionBySingleValue(value));\n }\n };\n\n _this.fireChange = function (value) {\n var props = _this.props;\n\n if (!('value' in props)) {\n _this.setState({\n value: value\n }, _this.forcePopupAlign);\n }\n\n var vls = _this.getVLForOnChange(value);\n\n var options = _this.getOptionsBySingleValue(value);\n\n if (props.onChange) {\n props.onChange(vls, isMultipleOrTags(_this.props) ? options : options[0]);\n }\n };\n\n _this.isChildDisabled = function (key) {\n return childrenToArray(_this.props.children).some(function (child) {\n var childValue = getValuePropValue(child);\n return childValue === key && child.props && child.props.disabled;\n });\n };\n\n _this.forcePopupAlign = function () {\n if (!_this.state.open) {\n return;\n }\n\n if (_this.selectTriggerRef && _this.selectTriggerRef.triggerRef) {\n _this.selectTriggerRef.triggerRef.forcePopupAlign();\n }\n };\n\n _this.renderFilterOptions = function () {\n var inputValue = _this.state.inputValue;\n var _this$props3 = _this.props,\n children = _this$props3.children,\n tags = _this$props3.tags,\n notFoundContent = _this$props3.notFoundContent;\n var menuItems = [];\n var childrenKeys = [];\n var empty = false;\n\n var options = _this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);\n\n if (tags) {\n // tags value must be string\n var value = _this.state.value;\n value = value.filter(function (singleValue) {\n return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);\n }); // sort by length\n\n value.sort(function (val1, val2) {\n return val1.length - val2.length;\n });\n value.forEach(function (singleValue) {\n var key = singleValue;\n var menuItem = React.createElement(MenuItem, {\n style: UNSELECTABLE_STYLE,\n role: \"option\",\n attribute: UNSELECTABLE_ATTRIBUTE,\n value: key,\n key: key\n }, key);\n options.push(menuItem);\n menuItems.push(menuItem);\n }); // ref: https://github.com/ant-design/ant-design/issues/14090\n\n if (inputValue && menuItems.every(function (option) {\n return getValuePropValue(option) !== inputValue;\n })) {\n options.unshift(React.createElement(MenuItem, {\n style: UNSELECTABLE_STYLE,\n role: \"option\",\n attribute: UNSELECTABLE_ATTRIBUTE,\n value: inputValue,\n key: inputValue\n }, inputValue));\n }\n }\n\n if (!options.length && notFoundContent) {\n empty = true;\n options = [React.createElement(MenuItem, {\n style: UNSELECTABLE_STYLE,\n attribute: UNSELECTABLE_ATTRIBUTE,\n disabled: true,\n role: \"option\",\n value: \"NOT_FOUND\",\n key: \"NOT_FOUND\"\n }, notFoundContent)];\n }\n\n return {\n empty: empty,\n options: options\n };\n };\n\n _this.renderFilterOptionsFromChildren = function (children, childrenKeys, menuItems) {\n var sel = [];\n var props = _this.props;\n var inputValue = _this.state.inputValue;\n var tags = props.tags;\n React.Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n\n var type = child.type;\n\n if (type.isSelectOptGroup) {\n var label = child.props.label;\n var key = child.key;\n\n if (!key && typeof label === 'string') {\n key = label;\n } else if (!label && key) {\n label = key;\n } // Match option group label\n\n\n if (inputValue && _this.filterOption(inputValue, child)) {\n var innerItems = childrenToArray(child.props.children).map(function (subChild) {\n var childValueSub = getValuePropValue(subChild) || subChild.key;\n return React.createElement(MenuItem, _extends({\n key: childValueSub,\n value: childValueSub\n }, subChild.props));\n });\n sel.push(React.createElement(MenuItemGroup, {\n key: key,\n title: label\n }, innerItems)); // Not match\n } else {\n var _innerItems = _this.renderFilterOptionsFromChildren(child.props.children, childrenKeys, menuItems);\n\n if (_innerItems.length) {\n sel.push(React.createElement(MenuItemGroup, {\n key: key,\n title: label\n }, _innerItems));\n }\n }\n\n return;\n }\n\n warning(type.isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + \"instead of `\".concat(type.name || type.displayName || child.type, \"`.\"));\n var childValue = getValuePropValue(child);\n validateOptionValue(childValue, _this.props);\n\n if (_this.filterOption(inputValue, child)) {\n var menuItem = React.createElement(MenuItem, _extends({\n style: UNSELECTABLE_STYLE,\n attribute: UNSELECTABLE_ATTRIBUTE,\n value: childValue,\n key: childValue,\n role: \"option\"\n }, child.props));\n sel.push(menuItem);\n menuItems.push(menuItem);\n }\n\n if (tags) {\n childrenKeys.push(childValue);\n }\n });\n return sel;\n };\n\n _this.renderTopControlNode = function () {\n var _this$state = _this.state,\n open = _this$state.open,\n inputValue = _this$state.inputValue;\n var value = _this.state.value;\n var props = _this.props;\n var choiceTransitionName = props.choiceTransitionName,\n prefixCls = props.prefixCls,\n maxTagTextLength = props.maxTagTextLength,\n maxTagCount = props.maxTagCount,\n showSearch = props.showSearch,\n removeIcon = props.removeIcon;\n var maxTagPlaceholder = props.maxTagPlaceholder;\n var className = \"\".concat(prefixCls, \"-selection__rendered\"); // search input is inside topControlNode in single, multiple & combobox. 2016/04/13\n\n var innerNode = null;\n\n if (isSingleMode(props)) {\n var selectedValue = null;\n\n if (value.length) {\n var showSelectedValue = false;\n var opacity = 1;\n\n if (!showSearch) {\n showSelectedValue = true;\n } else if (open) {\n showSelectedValue = !inputValue;\n\n if (showSelectedValue) {\n opacity = 0.4;\n }\n } else {\n showSelectedValue = true;\n }\n\n var singleValue = value[0];\n\n var _this$getOptionInfoBy3 = _this.getOptionInfoBySingleValue(singleValue),\n label = _this$getOptionInfoBy3.label,\n title = _this$getOptionInfoBy3.title;\n\n selectedValue = React.createElement(\"div\", {\n key: \"value\",\n className: \"\".concat(prefixCls, \"-selection-selected-value\"),\n title: toTitle(title || label),\n style: {\n display: showSelectedValue ? 'block' : 'none',\n opacity: opacity\n }\n }, label);\n }\n\n if (!showSearch) {\n innerNode = [selectedValue];\n } else {\n innerNode = [selectedValue, React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\"),\n key: \"input\",\n style: {\n display: open ? 'block' : 'none'\n }\n }, _this.getInputElement())];\n }\n } else {\n var selectedValueNodes = [];\n var limitedCountValue = value;\n var maxTagPlaceholderEl;\n\n if (maxTagCount !== undefined && value.length > maxTagCount) {\n limitedCountValue = limitedCountValue.slice(0, maxTagCount);\n\n var omittedValues = _this.getVLForOnChange(value.slice(maxTagCount, value.length));\n\n var content = \"+ \".concat(value.length - maxTagCount, \" ...\");\n\n if (maxTagPlaceholder) {\n content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n }\n\n maxTagPlaceholderEl = React.createElement(\"li\", _extends({\n style: UNSELECTABLE_STYLE\n }, UNSELECTABLE_ATTRIBUTE, {\n role: \"presentation\",\n onMouseDown: preventDefaultEvent,\n className: \"\".concat(prefixCls, \"-selection__choice \").concat(prefixCls, \"-selection__choice__disabled\"),\n key: \"maxTagPlaceholder\",\n title: toTitle(content)\n }), React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content));\n }\n\n if (isMultipleOrTags(props)) {\n selectedValueNodes = limitedCountValue.map(function (singleValue) {\n var info = _this.getOptionInfoBySingleValue(singleValue);\n\n var content = info.label;\n var title = info.title || content;\n\n if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {\n content = \"\".concat(content.slice(0, maxTagTextLength), \"...\");\n }\n\n var disabled = _this.isChildDisabled(singleValue);\n\n var choiceClassName = disabled ? \"\".concat(prefixCls, \"-selection__choice \").concat(prefixCls, \"-selection__choice__disabled\") : \"\".concat(prefixCls, \"-selection__choice\");\n return React.createElement(\"li\", _extends({\n style: UNSELECTABLE_STYLE\n }, UNSELECTABLE_ATTRIBUTE, {\n onMouseDown: preventDefaultEvent,\n className: choiceClassName,\n role: \"presentation\",\n key: singleValue || SELECT_EMPTY_VALUE_KEY,\n title: toTitle(title)\n }), React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-selection__choice__content\")\n }, content), disabled ? null : React.createElement(\"span\", {\n onClick: function onClick(event) {\n _this.removeSelected(singleValue, event);\n },\n className: \"\".concat(prefixCls, \"-selection__choice__remove\")\n }, removeIcon || React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-selection__choice__remove-icon\")\n }, \"\\xD7\")));\n });\n }\n\n if (maxTagPlaceholderEl) {\n selectedValueNodes.push(maxTagPlaceholderEl);\n }\n\n selectedValueNodes.push(React.createElement(\"li\", {\n className: \"\".concat(prefixCls, \"-search \").concat(prefixCls, \"-search--inline\"),\n key: \"__input\"\n }, _this.getInputElement()));\n\n if (isMultipleOrTags(props) && choiceTransitionName) {\n innerNode = React.createElement(Animate, {\n onLeave: _this.onChoiceAnimationLeave,\n component: \"ul\",\n transitionName: choiceTransitionName\n }, selectedValueNodes);\n } else {\n innerNode = React.createElement(\"ul\", null, selectedValueNodes);\n }\n }\n\n return React.createElement(\"div\", {\n className: className,\n ref: _this.saveTopCtrlRef\n }, _this.getPlaceholderElement(), innerNode);\n };\n\n var optionsInfo = Select.getOptionsInfoFromProps(props);\n\n if (props.tags && typeof props.filterOption !== 'function') {\n var isDisabledExist = Object.keys(optionsInfo).some(function (key) {\n return optionsInfo[key].disabled;\n });\n warning(!isDisabledExist, 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');\n }\n\n _this.state = {\n value: Select.getValueFromProps(props, true),\n inputValue: props.combobox ? Select.getInputValueForCombobox(props, optionsInfo, true) : '',\n open: props.defaultOpen,\n optionsInfo: optionsInfo,\n backfillValue: '',\n // a flag for aviod redundant getOptionsInfoFromProps call\n skipBuildOptionsInfo: true,\n ariaId: ''\n };\n _this.saveInputRef = saveRef(_assertThisInitialized(_this), 'inputRef');\n _this.saveInputMirrorRef = saveRef(_assertThisInitialized(_this), 'inputMirrorRef');\n _this.saveTopCtrlRef = saveRef(_assertThisInitialized(_this), 'topCtrlRef');\n _this.saveSelectTriggerRef = saveRef(_assertThisInitialized(_this), 'selectTriggerRef');\n _this.saveRootRef = saveRef(_assertThisInitialized(_this), 'rootRef');\n _this.saveSelectionRef = saveRef(_assertThisInitialized(_this), 'selectionRef');\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n // when defaultOpen is true, we should auto focus search input\n // https://github.com/ant-design/ant-design/issues/14254\n if (this.props.autoFocus || this.state.open) {\n this.focus();\n }\n\n this.setState({\n ariaId: generateUUID()\n });\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (isMultipleOrTags(this.props)) {\n var inputNode = this.getInputDOMNode();\n var mirrorNode = this.getInputMirrorDOMNode();\n\n if (inputNode && inputNode.value && mirrorNode) {\n inputNode.style.width = '';\n inputNode.style.width = \"\".concat(mirrorNode.clientWidth, \"px\");\n } else if (inputNode) {\n inputNode.style.width = '';\n }\n }\n\n this.forcePopupAlign();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.clearFocusTime();\n this.clearBlurTime();\n this.clearComboboxTime();\n\n if (this.dropdownContainer) {\n ReactDOM.unmountComponentAtNode(this.dropdownContainer);\n document.body.removeChild(this.dropdownContainer);\n this.dropdownContainer = null;\n }\n }\n }, {\n key: \"focus\",\n value: function focus() {\n if (isSingleMode(this.props) && this.selectionRef) {\n this.selectionRef.focus();\n } else if (this.getInputDOMNode()) {\n this.getInputDOMNode().focus();\n }\n }\n }, {\n key: \"blur\",\n value: function blur() {\n if (isSingleMode(this.props) && this.selectionRef) {\n this.selectionRef.blur();\n } else if (this.getInputDOMNode()) {\n this.getInputDOMNode().blur();\n }\n }\n }, {\n key: \"renderArrow\",\n value: function renderArrow(multiple) {\n // showArrow : Set to true if not multiple by default but keep set value.\n var _this$props4 = this.props,\n _this$props4$showArro = _this$props4.showArrow,\n showArrow = _this$props4$showArro === void 0 ? !multiple : _this$props4$showArro,\n loading = _this$props4.loading,\n inputIcon = _this$props4.inputIcon,\n prefixCls = _this$props4.prefixCls;\n\n if (!showArrow && !loading) {\n return null;\n } // if loading have loading icon\n\n\n var defaultIcon = loading ? React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-arrow-loading\")\n }) : React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-arrow-icon\")\n });\n return React.createElement(\"span\", _extends({\n key: \"arrow\",\n className: \"\".concat(prefixCls, \"-arrow\"),\n style: UNSELECTABLE_STYLE\n }, UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onArrowClick\n }), inputIcon || defaultIcon);\n }\n }, {\n key: \"renderClear\",\n value: function renderClear() {\n var _this$props5 = this.props,\n prefixCls = _this$props5.prefixCls,\n allowClear = _this$props5.allowClear,\n clearIcon = _this$props5.clearIcon;\n var inputValue = this.state.inputValue;\n var value = this.state.value;\n var clear = React.createElement(\"span\", _extends({\n key: \"clear\",\n className: \"\".concat(prefixCls, \"-selection__clear\"),\n onMouseDown: preventDefaultEvent,\n style: UNSELECTABLE_STYLE\n }, UNSELECTABLE_ATTRIBUTE, {\n onClick: this.onClearSelection\n }), clearIcon || React.createElement(\"i\", {\n className: \"\".concat(prefixCls, \"-selection__clear-icon\")\n }, \"\\xD7\"));\n\n if (!allowClear) {\n return null;\n }\n\n if (isCombobox(this.props)) {\n if (inputValue) {\n return clear;\n }\n\n return null;\n }\n\n if (inputValue || value.length) {\n return clear;\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _rootCls;\n\n var props = this.props;\n var multiple = isMultipleOrTags(props); // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case)\n\n var _props$showArrow = props.showArrow,\n showArrow = _props$showArrow === void 0 ? true : _props$showArrow;\n var state = this.state;\n var className = props.className,\n disabled = props.disabled,\n prefixCls = props.prefixCls,\n loading = props.loading;\n var ctrlNode = this.renderTopControlNode();\n var _this$state2 = this.state,\n open = _this$state2.open,\n ariaId = _this$state2.ariaId;\n\n if (open) {\n var filterOptions = this.renderFilterOptions();\n this._empty = filterOptions.empty;\n this._options = filterOptions.options;\n }\n\n var realOpen = this.getRealOpenState();\n var empty = this._empty;\n var options = this._options || [];\n var dataOrAriaAttributeProps = {};\n Object.keys(props).forEach(function (key) {\n if (Object.prototype.hasOwnProperty.call(props, key) && (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) {\n dataOrAriaAttributeProps[key] = props[key];\n }\n }); // for (const key in props) {\n // if (\n // Object.prototype.hasOwnProperty.call(props, key) &&\n // (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')\n // ) {\n // dataOrAriaAttributeProps[key] = props[key];\n // }\n // }\n\n var extraSelectionProps = _extends({}, dataOrAriaAttributeProps);\n\n if (!isMultipleOrTagsOrCombobox(props)) {\n extraSelectionProps = _extends(_extends({}, extraSelectionProps), {\n onKeyDown: this.onKeyDown,\n tabIndex: props.disabled ? -1 : props.tabIndex\n });\n }\n\n var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, 1), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-open\"), open), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-focused\"), open || !!this._focused), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-combobox\"), isCombobox(props)), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-enabled\"), !disabled), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-allow-clear\"), !!props.allowClear), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-no-arrow\"), !showArrow), _defineProperty(_rootCls, \"\".concat(prefixCls, \"-loading\"), !!loading), _rootCls);\n return React.createElement(SelectTrigger, {\n onPopupFocus: this.onPopupFocus,\n onMouseEnter: this.props.onMouseEnter,\n onMouseLeave: this.props.onMouseLeave,\n dropdownAlign: props.dropdownAlign,\n dropdownClassName: props.dropdownClassName,\n dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,\n defaultActiveFirstOption: props.defaultActiveFirstOption,\n dropdownMenuStyle: props.dropdownMenuStyle,\n transitionName: props.transitionName,\n animation: props.animation,\n prefixCls: props.prefixCls,\n dropdownStyle: props.dropdownStyle,\n combobox: props.combobox,\n showSearch: props.showSearch,\n options: options,\n empty: empty,\n multiple: multiple,\n disabled: disabled,\n visible: realOpen,\n inputValue: state.inputValue,\n value: state.value,\n backfillValue: state.backfillValue,\n firstActiveValue: props.firstActiveValue,\n onDropdownVisibleChange: this.onDropdownVisibleChange,\n getPopupContainer: props.getPopupContainer,\n onMenuSelect: this.onMenuSelect,\n onMenuDeselect: this.onMenuDeselect,\n onPopupScroll: props.onPopupScroll,\n showAction: props.showAction,\n ref: this.saveSelectTriggerRef,\n menuItemSelectedIcon: props.menuItemSelectedIcon,\n dropdownRender: props.dropdownRender,\n ariaId: ariaId\n }, React.createElement(\"div\", {\n id: props.id,\n style: props.style,\n ref: this.saveRootRef,\n onBlur: this.onOuterBlur,\n onFocus: this.onOuterFocus,\n className: classnames(rootCls),\n onMouseDown: this.markMouseDown,\n onMouseUp: this.markMouseLeave,\n onMouseOut: this.markMouseLeave\n }, React.createElement(\"div\", _extends({\n ref: this.saveSelectionRef,\n key: \"selection\",\n className: \"\".concat(prefixCls, \"-selection\\n \").concat(prefixCls, \"-selection--\").concat(multiple ? 'multiple' : 'single'),\n role: \"combobox\",\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"true\",\n \"aria-controls\": ariaId,\n \"aria-expanded\": realOpen\n }, extraSelectionProps), ctrlNode, this.renderClear(), this.renderArrow(!!multiple))));\n }\n }]);\n\n return Select;\n}(React.Component);\n\nSelect.propTypes = SelectPropTypes;\nSelect.defaultProps = {\n prefixCls: 'rc-select',\n defaultOpen: false,\n labelInValue: false,\n defaultActiveFirstOption: true,\n showSearch: true,\n allowClear: false,\n placeholder: '',\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onSelect: noop,\n onSearch: noop,\n onDeselect: noop,\n onInputKeyDown: noop,\n dropdownMatchSelectWidth: true,\n dropdownStyle: {},\n dropdownMenuStyle: {},\n optionFilterProp: 'value',\n optionLabelProp: 'value',\n notFoundContent: 'Not Found',\n backfill: false,\n showAction: ['click'],\n tokenSeparators: [],\n autoClearSearchValue: true,\n tabIndex: 0,\n dropdownRender: function dropdownRender(menu) {\n return menu;\n }\n};\n\nSelect.getDerivedStateFromProps = function (nextProps, prevState) {\n var optionsInfo = prevState.skipBuildOptionsInfo ? prevState.optionsInfo : Select.getOptionsInfoFromProps(nextProps, prevState);\n var newState = {\n optionsInfo: optionsInfo,\n skipBuildOptionsInfo: false\n };\n\n if ('open' in nextProps) {\n newState.open = nextProps.open;\n }\n\n if (nextProps.disabled && prevState.open) {\n newState.open = false;\n }\n\n if ('value' in nextProps) {\n var value = Select.getValueFromProps(nextProps);\n newState.value = value;\n\n if (nextProps.combobox) {\n newState.inputValue = Select.getInputValueForCombobox(nextProps, optionsInfo);\n }\n }\n\n return newState;\n};\n\nSelect.getOptionsFromChildren = function (children) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n React.Children.forEach(children, function (child) {\n if (!child) {\n return;\n }\n\n var type = child.type;\n\n if (type.isSelectOptGroup) {\n Select.getOptionsFromChildren(child.props.children, options);\n } else {\n options.push(child);\n }\n });\n return options;\n};\n\nSelect.getInputValueForCombobox = function (props, optionsInfo, useDefaultValue) {\n var value = [];\n\n if ('value' in props && !useDefaultValue) {\n value = toArray(props.value);\n }\n\n if ('defaultValue' in props && useDefaultValue) {\n value = toArray(props.defaultValue);\n }\n\n if (value.length) {\n value = value[0];\n } else {\n return '';\n }\n\n var label = value;\n\n if (props.labelInValue) {\n label = value.label;\n } else if (optionsInfo[getMapKey(value)]) {\n label = optionsInfo[getMapKey(value)].label;\n }\n\n if (label === undefined) {\n label = '';\n }\n\n return label;\n};\n\nSelect.getLabelFromOption = function (props, option) {\n return getPropValue(option, props.optionLabelProp);\n};\n\nSelect.getOptionsInfoFromProps = function (props, preState) {\n var options = Select.getOptionsFromChildren(props.children);\n var optionsInfo = {};\n options.forEach(function (option) {\n var singleValue = getValuePropValue(option);\n optionsInfo[getMapKey(singleValue)] = {\n option: option,\n value: singleValue,\n label: Select.getLabelFromOption(props, option),\n title: option.props.title,\n disabled: option.props.disabled\n };\n });\n\n if (preState) {\n // keep option info in pre state value.\n var oldOptionsInfo = preState.optionsInfo;\n var value = preState.value;\n\n if (value) {\n value.forEach(function (v) {\n var key = getMapKey(v);\n\n if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {\n optionsInfo[key] = oldOptionsInfo[key];\n }\n });\n }\n }\n\n return optionsInfo;\n};\n\nSelect.getValueFromProps = function (props, useDefaultValue) {\n var value = [];\n\n if ('value' in props && !useDefaultValue) {\n value = toArray(props.value);\n }\n\n if ('defaultValue' in props && useDefaultValue) {\n value = toArray(props.defaultValue);\n }\n\n if (props.labelInValue) {\n value = value.map(function (v) {\n return v.key;\n });\n }\n\n return value;\n};\n\nSelect.displayName = 'Select';\npolyfill(Select);\nexport default Select;","import OptGroup from './OptGroup';\nimport Option from './Option';\nimport SelectPropTypes from './PropTypes';\nimport Select from './Select';\nSelect.Option = Option;\nSelect.OptGroup = OptGroup;\nexport { Option, OptGroup, SelectPropTypes };\nexport default Select;","var autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar targetOffset = [0, 0];\n\nexport var placements = {\n left: {\n points: ['cr', 'cl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n },\n right: {\n points: ['cl', 'cr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n top: {\n points: ['bc', 'tc'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n bottom: {\n points: ['tc', 'bc'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n topLeft: {\n points: ['bl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n leftTop: {\n points: ['tr', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n },\n topRight: {\n points: ['br', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n rightTop: {\n points: ['tl', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n bottomRight: {\n points: ['tr', 'br'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n rightBottom: {\n points: ['bl', 'br'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n bottomLeft: {\n points: ['tl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n leftBottom: {\n points: ['br', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n }\n};\n\nexport default placements;","import _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nvar Content = function (_React$Component) {\n _inherits(Content, _React$Component);\n\n function Content() {\n _classCallCheck(this, Content);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n Content.prototype.componentDidUpdate = function componentDidUpdate() {\n var trigger = this.props.trigger;\n\n if (trigger) {\n trigger.forcePopupAlign();\n }\n };\n\n Content.prototype.render = function render() {\n var _props = this.props,\n overlay = _props.overlay,\n prefixCls = _props.prefixCls,\n id = _props.id;\n\n return React.createElement(\n 'div',\n { className: prefixCls + '-inner', id: id, role: 'tooltip' },\n typeof overlay === 'function' ? overlay() : overlay\n );\n };\n\n return Content;\n}(React.Component);\n\nContent.propTypes = {\n prefixCls: PropTypes.string,\n overlay: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,\n id: PropTypes.string,\n trigger: PropTypes.any\n};\nexport default Content;","import _extends from 'babel-runtime/helpers/extends';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Trigger from 'rc-trigger';\nimport { placements } from './placements';\nimport Content from './Content';\n\nvar Tooltip = function (_Component) {\n _inherits(Tooltip, _Component);\n\n function Tooltip() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Tooltip);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.getPopupElement = function () {\n var _this$props = _this.props,\n arrowContent = _this$props.arrowContent,\n overlay = _this$props.overlay,\n prefixCls = _this$props.prefixCls,\n id = _this$props.id;\n\n return [React.createElement(\n 'div',\n { className: prefixCls + '-arrow', key: 'arrow' },\n arrowContent\n ), React.createElement(Content, {\n key: 'content',\n trigger: _this.trigger,\n prefixCls: prefixCls,\n id: id,\n overlay: overlay\n })];\n }, _this.saveTrigger = function (node) {\n _this.trigger = node;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Tooltip.prototype.getPopupDomNode = function getPopupDomNode() {\n return this.trigger.getPopupDomNode();\n };\n\n Tooltip.prototype.render = function render() {\n var _props = this.props,\n overlayClassName = _props.overlayClassName,\n trigger = _props.trigger,\n mouseEnterDelay = _props.mouseEnterDelay,\n mouseLeaveDelay = _props.mouseLeaveDelay,\n overlayStyle = _props.overlayStyle,\n prefixCls = _props.prefixCls,\n children = _props.children,\n onVisibleChange = _props.onVisibleChange,\n afterVisibleChange = _props.afterVisibleChange,\n transitionName = _props.transitionName,\n animation = _props.animation,\n placement = _props.placement,\n align = _props.align,\n destroyTooltipOnHide = _props.destroyTooltipOnHide,\n defaultVisible = _props.defaultVisible,\n getTooltipContainer = _props.getTooltipContainer,\n restProps = _objectWithoutProperties(_props, ['overlayClassName', 'trigger', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'prefixCls', 'children', 'onVisibleChange', 'afterVisibleChange', 'transitionName', 'animation', 'placement', 'align', 'destroyTooltipOnHide', 'defaultVisible', 'getTooltipContainer']);\n\n var extraProps = _extends({}, restProps);\n if ('visible' in this.props) {\n extraProps.popupVisible = this.props.visible;\n }\n return React.createElement(\n Trigger,\n _extends({\n popupClassName: overlayClassName,\n ref: this.saveTrigger,\n prefixCls: prefixCls,\n popup: this.getPopupElement,\n action: trigger,\n builtinPlacements: placements,\n popupPlacement: placement,\n popupAlign: align,\n getPopupContainer: getTooltipContainer,\n onPopupVisibleChange: onVisibleChange,\n afterPopupVisibleChange: afterVisibleChange,\n popupTransitionName: transitionName,\n popupAnimation: animation,\n defaultPopupVisible: defaultVisible,\n destroyPopupOnHide: destroyTooltipOnHide,\n mouseLeaveDelay: mouseLeaveDelay,\n popupStyle: overlayStyle,\n mouseEnterDelay: mouseEnterDelay\n }, extraProps),\n children\n );\n };\n\n return Tooltip;\n}(Component);\n\nTooltip.propTypes = {\n trigger: PropTypes.any,\n children: PropTypes.any,\n defaultVisible: PropTypes.bool,\n visible: PropTypes.bool,\n placement: PropTypes.string,\n transitionName: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n animation: PropTypes.any,\n onVisibleChange: PropTypes.func,\n afterVisibleChange: PropTypes.func,\n overlay: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,\n overlayStyle: PropTypes.object,\n overlayClassName: PropTypes.string,\n prefixCls: PropTypes.string,\n mouseEnterDelay: PropTypes.number,\n mouseLeaveDelay: PropTypes.number,\n getTooltipContainer: PropTypes.func,\n destroyTooltipOnHide: PropTypes.bool,\n align: PropTypes.object,\n arrowContent: PropTypes.any,\n id: PropTypes.string\n};\nTooltip.defaultProps = {\n prefixCls: 'rc-tooltip',\n mouseEnterDelay: 0,\n destroyTooltipOnHide: false,\n mouseLeaveDelay: 0.1,\n align: {},\n placement: 'right',\n trigger: ['hover'],\n arrowContent: null\n};\n\n\nexport default Tooltip;","import Tooltip from './Tooltip';\n\nexport default Tooltip;","'use strict';\n\nexports.__esModule = true;\nvar autoAdjustOverflow = {\n adjustX: 1,\n adjustY: 1\n};\n\nvar targetOffset = [0, 0];\n\nvar placements = exports.placements = {\n left: {\n points: ['cr', 'cl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n },\n right: {\n points: ['cl', 'cr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n top: {\n points: ['bc', 'tc'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n bottom: {\n points: ['tc', 'bc'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n topLeft: {\n points: ['bl', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n leftTop: {\n points: ['tr', 'tl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n },\n topRight: {\n points: ['br', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [0, -4],\n targetOffset: targetOffset\n },\n rightTop: {\n points: ['tl', 'tr'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n bottomRight: {\n points: ['tr', 'br'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n rightBottom: {\n points: ['bl', 'br'],\n overflow: autoAdjustOverflow,\n offset: [4, 0],\n targetOffset: targetOffset\n },\n bottomLeft: {\n points: ['tl', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [0, 4],\n targetOffset: targetOffset\n },\n leftBottom: {\n points: ['br', 'bl'],\n overflow: autoAdjustOverflow,\n offset: [-4, 0],\n targetOffset: targetOffset\n }\n};\n\nexports['default'] = placements;","export default function contains(root, n) {\n var node = n;\n\n while (node) {\n if (node === root) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n}","import addDOMEventListener from 'add-dom-event-listener';\nimport ReactDOM from 'react-dom';\nexport default function addEventListenerWrap(target, eventType, cb, option) {\n /* eslint camelcase: 2 */\n var callback = ReactDOM.unstable_batchedUpdates ? function run(e) {\n ReactDOM.unstable_batchedUpdates(cb, e);\n } : cb;\n return addDOMEventListener(target, eventType, callback, option);\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\n\nvar ContainerRender = /*#__PURE__*/function (_React$Component) {\n _inherits(ContainerRender, _React$Component);\n\n var _super = _createSuper(ContainerRender);\n\n function ContainerRender() {\n var _this;\n\n _classCallCheck(this, ContainerRender);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _this.removeContainer = function () {\n if (_this.container) {\n ReactDOM.unmountComponentAtNode(_this.container);\n\n _this.container.parentNode.removeChild(_this.container);\n\n _this.container = null;\n }\n };\n\n _this.renderComponent = function (props, ready) {\n var _this$props = _this.props,\n visible = _this$props.visible,\n getComponent = _this$props.getComponent,\n forceRender = _this$props.forceRender,\n getContainer = _this$props.getContainer,\n parent = _this$props.parent;\n\n if (visible || parent._component || forceRender) {\n if (!_this.container) {\n _this.container = getContainer();\n }\n\n ReactDOM.unstable_renderSubtreeIntoContainer(parent, getComponent(props), _this.container, function callback() {\n if (ready) {\n ready.call(this);\n }\n });\n }\n };\n\n return _this;\n }\n\n _createClass(ContainerRender, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.props.autoMount) {\n this.renderComponent();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.autoDestroy) {\n this.removeContainer();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children({\n renderComponent: this.renderComponent,\n removeContainer: this.removeContainer\n });\n }\n }]);\n\n return ContainerRender;\n}(React.Component);\n\nContainerRender.propTypes = {\n autoMount: PropTypes.bool,\n autoDestroy: PropTypes.bool,\n visible: PropTypes.bool,\n forceRender: PropTypes.bool,\n parent: PropTypes.any,\n getComponent: PropTypes.func.isRequired,\n getContainer: PropTypes.func.isRequired,\n children: PropTypes.func.isRequired\n};\nContainerRender.defaultProps = {\n autoMount: true,\n autoDestroy: true,\n forceRender: false\n};\nexport { ContainerRender as default };","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\n\nvar Portal = /*#__PURE__*/function (_React$Component) {\n _inherits(Portal, _React$Component);\n\n var _super = _createSuper(Portal);\n\n function Portal() {\n _classCallCheck(this, Portal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Portal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.createContainer();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var didUpdate = this.props.didUpdate;\n\n if (didUpdate) {\n didUpdate(prevProps);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.removeContainer();\n }\n }, {\n key: \"createContainer\",\n value: function createContainer() {\n this._container = this.props.getContainer();\n this.forceUpdate();\n }\n }, {\n key: \"removeContainer\",\n value: function removeContainer() {\n if (this._container) {\n this._container.parentNode.removeChild(this._container);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this._container) {\n return ReactDOM.createPortal(this.props.children, this._container);\n }\n\n return null;\n }\n }]);\n\n return Portal;\n}(React.Component);\n\nPortal.propTypes = {\n getContainer: PropTypes.func.isRequired,\n children: PropTypes.node.isRequired,\n didUpdate: PropTypes.func\n};\nexport { Portal as default };","import _extends from 'babel-runtime/helpers/extends';\nfunction isPointsEq(a1, a2, isAlignPoint) {\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\n\nexport function getAlignFromPlacement(builtinPlacements, placementStr, align) {\n var baseAlign = builtinPlacements[placementStr] || {};\n return _extends({}, baseAlign, align);\n}\n\nexport function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n for (var placement in builtinPlacements) {\n if (builtinPlacements.hasOwnProperty(placement)) {\n if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {\n return prefixCls + '-placement-' + placement;\n }\n }\n }\n return '';\n}\n\nexport function saveRef(name, component) {\n this[name] = component;\n}","let vendorPrefix;\n\nconst jsCssMap = {\n Webkit: '-webkit-',\n Moz: '-moz-',\n // IE did it wrong again ...\n ms: '-ms-',\n O: '-o-',\n};\n\nfunction getVendorPrefix() {\n if (vendorPrefix !== undefined) {\n return vendorPrefix;\n }\n vendorPrefix = '';\n const style = document.createElement('p').style;\n const testProp = 'Transform';\n for (const key in jsCssMap) {\n if (key + testProp in style) {\n vendorPrefix = key;\n }\n }\n return vendorPrefix;\n}\n\nfunction getTransitionName() {\n return getVendorPrefix()\n ? `${getVendorPrefix()}TransitionProperty`\n : 'transitionProperty';\n}\n\nexport function getTransformName() {\n return getVendorPrefix() ? `${getVendorPrefix()}Transform` : 'transform';\n}\n\nexport function setTransitionProperty(node, value) {\n const name = getTransitionName();\n if (name) {\n node.style[name] = value;\n if (name !== 'transitionProperty') {\n node.style.transitionProperty = value;\n }\n }\n}\n\nfunction setTransform(node, value) {\n const name = getTransformName();\n if (name) {\n node.style[name] = value;\n if (name !== 'transform') {\n node.style.transform = value;\n }\n }\n}\n\nexport function getTransitionProperty(node) {\n return node.style.transitionProperty || node.style[getTransitionName()];\n}\n\nexport function getTransformXY(node) {\n const style = window.getComputedStyle(node, null);\n const transform =\n style.getPropertyValue('transform') ||\n style.getPropertyValue(getTransformName());\n if (transform && transform !== 'none') {\n const matrix = transform.replace(/[^0-9\\-.,]/g, '').split(',');\n return {\n x: parseFloat(matrix[12] || matrix[4], 0),\n y: parseFloat(matrix[13] || matrix[5], 0),\n };\n }\n return {\n x: 0,\n y: 0,\n };\n}\n\nconst matrix2d = /matrix\\((.*)\\)/;\nconst matrix3d = /matrix3d\\((.*)\\)/;\n\nexport function setTransformXY(node, xy) {\n const style = window.getComputedStyle(node, null);\n const transform =\n style.getPropertyValue('transform') ||\n style.getPropertyValue(getTransformName());\n if (transform && transform !== 'none') {\n let arr;\n let match2d = transform.match(matrix2d);\n if (match2d) {\n match2d = match2d[1];\n arr = match2d.split(',').map(item => {\n return parseFloat(item, 10);\n });\n arr[4] = xy.x;\n arr[5] = xy.y;\n setTransform(node, `matrix(${arr.join(',')})`);\n } else {\n const match3d = transform.match(matrix3d)[1];\n arr = match3d.split(',').map(item => {\n return parseFloat(item, 10);\n });\n arr[12] = xy.x;\n arr[13] = xy.y;\n setTransform(node, `matrix3d(${arr.join(',')})`);\n }\n } else {\n setTransform(\n node,\n `translateX(${xy.x}px) translateY(${xy.y}px) translateZ(0)`,\n );\n }\n}\n","import {\n setTransitionProperty,\n getTransitionProperty,\n getTransformXY,\n setTransformXY,\n getTransformName,\n} from './propertyUtils';\n\nconst RE_NUM = /[\\-+]?(?:\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/.source;\n\nlet getComputedStyleX;\n\n// https://stackoverflow.com/a/3485654/3040605\nfunction forceRelayout(elem) {\n const originalStyle = elem.style.display;\n elem.style.display = 'none';\n elem.offsetHeight; // eslint-disable-line\n elem.style.display = originalStyle;\n}\n\nfunction css(el, name, v) {\n let value = v;\n if (typeof name === 'object') {\n for (const i in name) {\n if (name.hasOwnProperty(i)) {\n css(el, i, name[i]);\n }\n }\n return undefined;\n }\n if (typeof value !== 'undefined') {\n if (typeof value === 'number') {\n value = `${value}px`;\n }\n el.style[name] = value;\n return undefined;\n }\n return getComputedStyleX(el, name);\n}\n\nfunction getClientPosition(elem) {\n let box;\n let x;\n let y;\n const doc = elem.ownerDocument;\n const body = doc.body;\n const docElem = doc && doc.documentElement;\n // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式\n box = elem.getBoundingClientRect();\n\n // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop\n // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确\n // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin\n\n x = Math.floor(box.left);\n y = Math.floor(box.top);\n\n // In IE, most of the time, 2 extra pixels are added to the top and left\n // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and\n // IE6 standards mode, this border can be overridden by setting the\n // document element's border to zero -- thus, we cannot rely on the\n // offset always being 2 pixels.\n\n // In quirks mode, the offset can be determined by querying the body's\n // clientLeft/clientTop, but in standards mode, it is found by querying\n // the document element's clientLeft/clientTop. Since we already called\n // getClientBoundingRect we have already forced a reflow, so it is not\n // too expensive just to query them all.\n\n // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的\n // 窗口边框标准是设 documentElement ,quirks 时设置 body\n // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去\n // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置\n // 标准 ie 下 docElem.clientTop 就是 border-top\n // ie7 html 即窗口边框改变不了。永远为 2\n // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0\n\n x -= docElem.clientLeft || body.clientLeft || 0;\n y -= docElem.clientTop || body.clientTop || 0;\n\n return {\n left: x,\n top: y,\n };\n}\n\nfunction getScroll(w, top) {\n let ret = w[`page${top ? 'Y' : 'X'}Offset`];\n const method = `scroll${top ? 'Top' : 'Left'}`;\n if (typeof ret !== 'number') {\n const d = w.document;\n // ie6,7,8 standard mode\n ret = d.documentElement[method];\n if (typeof ret !== 'number') {\n // quirks mode\n ret = d.body[method];\n }\n }\n return ret;\n}\n\nfunction getScrollLeft(w) {\n return getScroll(w);\n}\n\nfunction getScrollTop(w) {\n return getScroll(w, true);\n}\n\nfunction getOffset(el) {\n const pos = getClientPosition(el);\n const doc = el.ownerDocument;\n const w = doc.defaultView || doc.parentWindow;\n pos.left += getScrollLeft(w);\n pos.top += getScrollTop(w);\n return pos;\n}\n\n/**\n * A crude way of determining if an object is a window\n * @member util\n */\nfunction isWindow(obj) {\n // must use == for ie8\n /* eslint eqeqeq:0 */\n return obj !== null && obj !== undefined && obj == obj.window;\n}\n\nfunction getDocument(node) {\n if (isWindow(node)) {\n return node.document;\n }\n if (node.nodeType === 9) {\n return node;\n }\n return node.ownerDocument;\n}\n\nfunction _getComputedStyle(elem, name, cs) {\n let computedStyle = cs;\n let val = '';\n const d = getDocument(elem);\n computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);\n\n // https://github.com/kissyteam/kissy/issues/61\n if (computedStyle) {\n val = computedStyle.getPropertyValue(name) || computedStyle[name];\n }\n\n return val;\n}\n\nconst _RE_NUM_NO_PX = new RegExp(`^(${RE_NUM})(?!px)[a-z%]+$`, 'i');\nconst RE_POS = /^(top|right|bottom|left)$/;\nconst CURRENT_STYLE = 'currentStyle';\nconst RUNTIME_STYLE = 'runtimeStyle';\nconst LEFT = 'left';\nconst PX = 'px';\n\nfunction _getComputedStyleIE(elem, name) {\n // currentStyle maybe null\n // http://msdn.microsoft.com/en-us/library/ms535231.aspx\n let ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];\n\n // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值\n // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19\n // 在 ie 下不对,需要直接用 offset 方式\n // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了\n\n // From the awesome hack by Dean Edwards\n // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n // If we're not dealing with a regular pixel number\n // but a number that has a weird ending, we need to convert it to pixels\n // exclude left right for relativity\n if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {\n // Remember the original values\n const style = elem.style;\n const left = style[LEFT];\n const rsLeft = elem[RUNTIME_STYLE][LEFT];\n\n // prevent flashing of content\n elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];\n\n // Put in the new values to get a computed value out\n style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;\n ret = style.pixelLeft + PX;\n\n // Revert the changed values\n style[LEFT] = left;\n\n elem[RUNTIME_STYLE][LEFT] = rsLeft;\n }\n return ret === '' ? 'auto' : ret;\n}\n\nif (typeof window !== 'undefined') {\n getComputedStyleX = window.getComputedStyle\n ? _getComputedStyle\n : _getComputedStyleIE;\n}\n\nfunction getOffsetDirection(dir, option) {\n if (dir === 'left') {\n return option.useCssRight ? 'right' : dir;\n }\n return option.useCssBottom ? 'bottom' : dir;\n}\n\nfunction oppositeOffsetDirection(dir) {\n if (dir === 'left') {\n return 'right';\n } else if (dir === 'right') {\n return 'left';\n } else if (dir === 'top') {\n return 'bottom';\n } else if (dir === 'bottom') {\n return 'top';\n }\n}\n\n// 设置 elem 相对 elem.ownerDocument 的坐标\nfunction setLeftTop(elem, offset, option) {\n // set position first, in-case top/left are set even on static elem\n if (css(elem, 'position') === 'static') {\n elem.style.position = 'relative';\n }\n let presetH = -999;\n let presetV = -999;\n const horizontalProperty = getOffsetDirection('left', option);\n const verticalProperty = getOffsetDirection('top', option);\n const oppositeHorizontalProperty = oppositeOffsetDirection(\n horizontalProperty,\n );\n const oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);\n\n if (horizontalProperty !== 'left') {\n presetH = 999;\n }\n\n if (verticalProperty !== 'top') {\n presetV = 999;\n }\n let originalTransition = '';\n const originalOffset = getOffset(elem);\n if ('left' in offset || 'top' in offset) {\n originalTransition = getTransitionProperty(elem) || '';\n setTransitionProperty(elem, 'none');\n }\n if ('left' in offset) {\n elem.style[oppositeHorizontalProperty] = '';\n elem.style[horizontalProperty] = `${presetH}px`;\n }\n if ('top' in offset) {\n elem.style[oppositeVerticalProperty] = '';\n elem.style[verticalProperty] = `${presetV}px`;\n }\n // force relayout\n forceRelayout(elem);\n const old = getOffset(elem);\n const originalStyle = {};\n for (const key in offset) {\n if (offset.hasOwnProperty(key)) {\n const dir = getOffsetDirection(key, option);\n const preset = key === 'left' ? presetH : presetV;\n const off = originalOffset[key] - old[key];\n if (dir === key) {\n originalStyle[dir] = preset + off;\n } else {\n originalStyle[dir] = preset - off;\n }\n }\n }\n css(elem, originalStyle);\n // force relayout\n forceRelayout(elem);\n if ('left' in offset || 'top' in offset) {\n setTransitionProperty(elem, originalTransition);\n }\n const ret = {};\n for (const key in offset) {\n if (offset.hasOwnProperty(key)) {\n const dir = getOffsetDirection(key, option);\n const off = offset[key] - originalOffset[key];\n if (key === dir) {\n ret[dir] = originalStyle[dir] + off;\n } else {\n ret[dir] = originalStyle[dir] - off;\n }\n }\n }\n css(elem, ret);\n}\n\nfunction setTransform(elem, offset) {\n const originalOffset = getOffset(elem);\n const originalXY = getTransformXY(elem);\n const resultXY = { x: originalXY.x, y: originalXY.y };\n if ('left' in offset) {\n resultXY.x = originalXY.x + offset.left - originalOffset.left;\n }\n if ('top' in offset) {\n resultXY.y = originalXY.y + offset.top - originalOffset.top;\n }\n setTransformXY(elem, resultXY);\n}\n\nfunction setOffset(elem, offset, option) {\n if (option.ignoreShake) {\n const oriOffset = getOffset(elem);\n\n const oLeft = oriOffset.left.toFixed(0);\n const oTop = oriOffset.top.toFixed(0);\n const tLeft = offset.left.toFixed(0);\n const tTop = offset.top.toFixed(0);\n\n if (oLeft === tLeft && oTop === tTop) {\n return;\n }\n }\n\n if (option.useCssRight || option.useCssBottom) {\n setLeftTop(elem, offset, option);\n } else if (\n option.useCssTransform &&\n getTransformName() in document.body.style\n ) {\n setTransform(elem, offset, option);\n } else {\n setLeftTop(elem, offset, option);\n }\n}\n\nfunction each(arr, fn) {\n for (let i = 0; i < arr.length; i++) {\n fn(arr[i]);\n }\n}\n\nfunction isBorderBoxFn(elem) {\n return getComputedStyleX(elem, 'boxSizing') === 'border-box';\n}\n\nconst BOX_MODELS = ['margin', 'border', 'padding'];\nconst CONTENT_INDEX = -1;\nconst PADDING_INDEX = 2;\nconst BORDER_INDEX = 1;\nconst MARGIN_INDEX = 0;\n\nfunction swap(elem, options, callback) {\n const old = {};\n const style = elem.style;\n let name;\n\n // Remember the old values, and insert the new ones\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n old[name] = style[name];\n style[name] = options[name];\n }\n }\n\n callback.call(elem);\n\n // Revert the old values\n for (name in options) {\n if (options.hasOwnProperty(name)) {\n style[name] = old[name];\n }\n }\n}\n\nfunction getPBMWidth(elem, props, which) {\n let value = 0;\n let prop;\n let j;\n let i;\n for (j = 0; j < props.length; j++) {\n prop = props[j];\n if (prop) {\n for (i = 0; i < which.length; i++) {\n let cssProp;\n if (prop === 'border') {\n cssProp = `${prop}${which[i]}Width`;\n } else {\n cssProp = prop + which[i];\n }\n value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;\n }\n }\n }\n return value;\n}\n\nconst domUtils = {\n getParent(element) {\n let parent = element;\n do {\n if (parent.nodeType === 11 && parent.host) {\n parent = parent.host;\n } else {\n parent = parent.parentNode;\n }\n } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);\n return parent;\n },\n};\n\neach(['Width', 'Height'], name => {\n domUtils[`doc${name}`] = refWin => {\n const d = refWin.document;\n return Math.max(\n // firefox chrome documentElement.scrollHeight< body.scrollHeight\n // ie standard mode : documentElement.scrollHeight> body.scrollHeight\n d.documentElement[`scroll${name}`],\n // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?\n d.body[`scroll${name}`],\n domUtils[`viewport${name}`](d),\n );\n };\n\n domUtils[`viewport${name}`] = win => {\n // pc browser includes scrollbar in window.innerWidth\n const prop = `client${name}`;\n const doc = win.document;\n const body = doc.body;\n const documentElement = doc.documentElement;\n const documentElementProp = documentElement[prop];\n // 标准模式取 documentElement\n // backcompat 取 body\n return (\n (doc.compatMode === 'CSS1Compat' && documentElementProp) ||\n (body && body[prop]) ||\n documentElementProp\n );\n };\n});\n\n/*\n 得到元素的大小信息\n @param elem\n @param name\n @param {String} [extra] 'padding' : (css width) + padding\n 'border' : (css width) + padding + border\n 'margin' : (css width) + padding + border + margin\n */\nfunction getWH(elem, name, ex) {\n let extra = ex;\n if (isWindow(elem)) {\n return name === 'width'\n ? domUtils.viewportWidth(elem)\n : domUtils.viewportHeight(elem);\n } else if (elem.nodeType === 9) {\n return name === 'width'\n ? domUtils.docWidth(elem)\n : domUtils.docHeight(elem);\n }\n const which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n let borderBoxValue =\n name === 'width'\n ? Math.floor(elem.getBoundingClientRect().width)\n : Math.floor(elem.getBoundingClientRect().height);\n const isBorderBox = isBorderBoxFn(elem);\n let cssBoxValue = 0;\n if (\n borderBoxValue === null ||\n borderBoxValue === undefined ||\n borderBoxValue <= 0\n ) {\n borderBoxValue = undefined;\n // Fall back to computed then un computed css if necessary\n cssBoxValue = getComputedStyleX(elem, name);\n if (\n cssBoxValue === null ||\n cssBoxValue === undefined ||\n Number(cssBoxValue) < 0\n ) {\n cssBoxValue = elem.style[name] || 0;\n }\n // Normalize '', auto, and prepare for extra\n cssBoxValue = Math.floor(parseFloat(cssBoxValue)) || 0;\n }\n if (extra === undefined) {\n extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;\n }\n const borderBoxValueOrIsBorderBox =\n borderBoxValue !== undefined || isBorderBox;\n const val = borderBoxValue || cssBoxValue;\n if (extra === CONTENT_INDEX) {\n if (borderBoxValueOrIsBorderBox) {\n return val - getPBMWidth(elem, ['border', 'padding'], which);\n }\n return cssBoxValue;\n } else if (borderBoxValueOrIsBorderBox) {\n if (extra === BORDER_INDEX) {\n return val;\n }\n return (\n val +\n (extra === PADDING_INDEX\n ? -getPBMWidth(elem, ['border'], which)\n : getPBMWidth(elem, ['margin'], which))\n );\n }\n return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);\n}\n\nconst cssShow = {\n position: 'absolute',\n visibility: 'hidden',\n display: 'block',\n};\n\n// fix #119 : https://github.com/kissyteam/kissy/issues/119\nfunction getWHIgnoreDisplay(...args) {\n let val;\n const elem = args[0];\n // in case elem is window\n // elem.offsetWidth === undefined\n if (elem.offsetWidth !== 0) {\n val = getWH.apply(undefined, args);\n } else {\n swap(elem, cssShow, () => {\n val = getWH.apply(undefined, args);\n });\n }\n return val;\n}\n\neach(['width', 'height'], name => {\n const first = name.charAt(0).toUpperCase() + name.slice(1);\n domUtils[`outer${first}`] = (el, includeMargin) => {\n return (\n el &&\n getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX)\n );\n };\n const which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n\n domUtils[name] = (elem, v) => {\n let val = v;\n if (val !== undefined) {\n if (elem) {\n const isBorderBox = isBorderBoxFn(elem);\n if (isBorderBox) {\n val += getPBMWidth(elem, ['padding', 'border'], which);\n }\n return css(elem, name, val);\n }\n return undefined;\n }\n return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);\n };\n});\n\nfunction mix(to, from) {\n for (const i in from) {\n if (from.hasOwnProperty(i)) {\n to[i] = from[i];\n }\n }\n return to;\n}\n\nconst utils = {\n getWindow(node) {\n if (node && node.document && node.setTimeout) {\n return node;\n }\n const doc = node.ownerDocument || node;\n return doc.defaultView || doc.parentWindow;\n },\n getDocument,\n offset(el, value, option) {\n if (typeof value !== 'undefined') {\n setOffset(el, value, option || {});\n } else {\n return getOffset(el);\n }\n },\n isWindow,\n each,\n css,\n clone(obj) {\n let i;\n const ret = {};\n for (i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret[i] = obj[i];\n }\n }\n const overflow = obj.overflow;\n if (overflow) {\n for (i in obj) {\n if (obj.hasOwnProperty(i)) {\n ret.overflow[i] = obj.overflow[i];\n }\n }\n }\n return ret;\n },\n mix,\n getWindowScrollLeft(w) {\n return getScrollLeft(w);\n },\n getWindowScrollTop(w) {\n return getScrollTop(w);\n },\n merge(...args) {\n const ret = {};\n for (let i = 0; i < args.length; i++) {\n utils.mix(ret, args[i]);\n }\n return ret;\n },\n viewportWidth: 0,\n viewportHeight: 0,\n};\n\nmix(utils, domUtils);\n\nexport default utils;\n","import utils from './utils';\n\n/**\n * 得到会导致元素显示不全的祖先元素\n */\nconst { getParent } = utils;\n\nfunction getOffsetParent(element) {\n if (utils.isWindow(element) || element.nodeType === 9) {\n return null;\n }\n // ie 这个也不是完全可行\n /*\n
\n
\n 元素 6 高 100px 宽 50px \n
\n
\n */\n // element.offsetParent does the right thing in ie7 and below. Return parent with layout!\n // In other browsers it only includes elements with position absolute, relative or\n // fixed, not elements with overflow set to auto or scroll.\n // if (UA.ie && ieMode < 8) {\n // return element.offsetParent;\n // }\n // 统一的 offsetParent 方法\n const doc = utils.getDocument(element);\n const body = doc.body;\n let parent;\n let positionStyle = utils.css(element, 'position');\n const skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';\n\n if (!skipStatic) {\n return element.nodeName.toLowerCase() === 'html'\n ? null\n : getParent(element);\n }\n\n for (\n parent = getParent(element);\n parent && parent !== body && parent.nodeType !== 9;\n parent = getParent(parent)\n ) {\n positionStyle = utils.css(parent, 'position');\n if (positionStyle !== 'static') {\n return parent;\n }\n }\n return null;\n}\n\nexport default getOffsetParent;\n","import utils from './utils';\n\nconst { getParent } = utils;\n\nexport default function isAncestorFixed(element) {\n if (utils.isWindow(element) || element.nodeType === 9) {\n return false;\n }\n\n const doc = utils.getDocument(element);\n const body = doc.body;\n let parent = null;\n for (\n parent = getParent(element);\n // 修复元素位于 document.documentElement 下导致崩溃问题\n parent && parent !== body && parent !== doc;\n parent = getParent(parent)\n ) {\n const positionStyle = utils.css(parent, 'position');\n if (positionStyle === 'fixed') {\n return true;\n }\n }\n return false;\n}\n","import utils from './utils';\nimport getOffsetParent from './getOffsetParent';\nimport isAncestorFixed from './isAncestorFixed';\n\n/**\n * 获得元素的显示部分的区域\n */\nfunction getVisibleRectForElement(element, alwaysByViewport) {\n const visibleRect = {\n left: 0,\n right: Infinity,\n top: 0,\n bottom: Infinity,\n };\n let el = getOffsetParent(element);\n const doc = utils.getDocument(element);\n const win = doc.defaultView || doc.parentWindow;\n const body = doc.body;\n const documentElement = doc.documentElement;\n\n // Determine the size of the visible rect by climbing the dom accounting for\n // all scrollable containers.\n while (el) {\n // clientWidth is zero for inline block elements in ie.\n if (\n (navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) &&\n // body may have overflow set on it, yet we still get the entire\n // viewport. In some browsers, el.offsetParent may be\n // document.documentElement, so check for that too.\n (el !== body &&\n el !== documentElement &&\n utils.css(el, 'overflow') !== 'visible')\n ) {\n const pos = utils.offset(el);\n // add border\n pos.left += el.clientLeft;\n pos.top += el.clientTop;\n visibleRect.top = Math.max(visibleRect.top, pos.top);\n visibleRect.right = Math.min(\n visibleRect.right,\n // consider area without scrollBar\n pos.left + el.clientWidth,\n );\n visibleRect.bottom = Math.min(\n visibleRect.bottom,\n pos.top + el.clientHeight,\n );\n visibleRect.left = Math.max(visibleRect.left, pos.left);\n } else if (el === body || el === documentElement) {\n break;\n }\n el = getOffsetParent(el);\n }\n\n // Set element position to fixed\n // make sure absolute element itself don't affect it's visible area\n // https://github.com/ant-design/ant-design/issues/7601\n let originalPosition = null;\n if (!utils.isWindow(element) && element.nodeType !== 9) {\n originalPosition = element.style.position;\n const position = utils.css(element, 'position');\n if (position === 'absolute') {\n element.style.position = 'fixed';\n }\n }\n\n const scrollX = utils.getWindowScrollLeft(win);\n const scrollY = utils.getWindowScrollTop(win);\n const viewportWidth = utils.viewportWidth(win);\n const viewportHeight = utils.viewportHeight(win);\n let documentWidth = documentElement.scrollWidth;\n let documentHeight = documentElement.scrollHeight;\n\n // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.\n // We should cut this ourself.\n const bodyStyle = window.getComputedStyle(body);\n if (bodyStyle.overflowX === 'hidden') {\n documentWidth = win.innerWidth;\n }\n if (bodyStyle.overflowY === 'hidden') {\n documentHeight = win.innerHeight;\n }\n\n // Reset element position after calculate the visible area\n if (element.style) {\n element.style.position = originalPosition;\n }\n\n if (alwaysByViewport || isAncestorFixed(element)) {\n // Clip by viewport's size.\n visibleRect.left = Math.max(visibleRect.left, scrollX);\n visibleRect.top = Math.max(visibleRect.top, scrollY);\n visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);\n visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);\n } else {\n // Clip by document's size.\n const maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);\n visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);\n\n const maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);\n visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);\n }\n\n return visibleRect.top >= 0 &&\n visibleRect.left >= 0 &&\n visibleRect.bottom > visibleRect.top &&\n visibleRect.right > visibleRect.left\n ? visibleRect\n : null;\n}\n\nexport default getVisibleRectForElement;\n","import utils from './utils';\n\nfunction getRegion(node) {\n let offset;\n let w;\n let h;\n if (!utils.isWindow(node) && node.nodeType !== 9) {\n offset = utils.offset(node);\n w = utils.outerWidth(node);\n h = utils.outerHeight(node);\n } else {\n const win = utils.getWindow(node);\n offset = {\n left: utils.getWindowScrollLeft(win),\n top: utils.getWindowScrollTop(win),\n };\n w = utils.viewportWidth(win);\n h = utils.viewportHeight(win);\n }\n offset.width = w;\n offset.height = h;\n return offset;\n}\n\nexport default getRegion;\n","/**\n * 获取 node 上的 align 对齐点 相对于页面的坐标\n */\n\nfunction getAlignOffset(region, align) {\n const V = align.charAt(0);\n const H = align.charAt(1);\n const w = region.width;\n const h = region.height;\n\n let x = region.left;\n let y = region.top;\n\n if (V === 'c') {\n y += h / 2;\n } else if (V === 'b') {\n y += h;\n }\n\n if (H === 'c') {\n x += w / 2;\n } else if (H === 'r') {\n x += w;\n }\n\n return {\n left: x,\n top: y,\n };\n}\n\nexport default getAlignOffset;\n","import getAlignOffset from './getAlignOffset';\n\nfunction getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {\n const p1 = getAlignOffset(refNodeRegion, points[1]);\n const p2 = getAlignOffset(elRegion, points[0]);\n const diff = [p2.left - p1.left, p2.top - p1.top];\n\n return {\n left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),\n top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1]),\n };\n}\n\nexport default getElFuturePos;\n","/**\n * align dom node flexibly\n * @author yiminghe@gmail.com\n */\n\nimport utils from '../utils';\nimport getVisibleRectForElement from '../getVisibleRectForElement';\nimport adjustForViewport from '../adjustForViewport';\nimport getRegion from '../getRegion';\nimport getElFuturePos from '../getElFuturePos';\n\n// http://yiminghe.iteye.com/blog/1124720\n\nfunction isFailX(elFuturePos, elRegion, visibleRect) {\n return (\n elFuturePos.left < visibleRect.left ||\n elFuturePos.left + elRegion.width > visibleRect.right\n );\n}\n\nfunction isFailY(elFuturePos, elRegion, visibleRect) {\n return (\n elFuturePos.top < visibleRect.top ||\n elFuturePos.top + elRegion.height > visibleRect.bottom\n );\n}\n\nfunction isCompleteFailX(elFuturePos, elRegion, visibleRect) {\n return (\n elFuturePos.left > visibleRect.right ||\n elFuturePos.left + elRegion.width < visibleRect.left\n );\n}\n\nfunction isCompleteFailY(elFuturePos, elRegion, visibleRect) {\n return (\n elFuturePos.top > visibleRect.bottom ||\n elFuturePos.top + elRegion.height < visibleRect.top\n );\n}\n\nfunction flip(points, reg, map) {\n const ret = [];\n utils.each(points, p => {\n ret.push(\n p.replace(reg, m => {\n return map[m];\n }),\n );\n });\n return ret;\n}\n\nfunction flipOffset(offset, index) {\n offset[index] = -offset[index];\n return offset;\n}\n\nfunction convertOffset(str, offsetLen) {\n let n;\n if (/%$/.test(str)) {\n n = (parseInt(str.substring(0, str.length - 1), 10) / 100) * offsetLen;\n } else {\n n = parseInt(str, 10);\n }\n return n || 0;\n}\n\nfunction normalizeOffset(offset, el) {\n offset[0] = convertOffset(offset[0], el.width);\n offset[1] = convertOffset(offset[1], el.height);\n}\n\n/**\n * @param el\n * @param tgtRegion 参照节点所占的区域: { left, top, width, height }\n * @param align\n */\nfunction doAlign(el, tgtRegion, align, isTgtRegionVisible) {\n let points = align.points;\n let offset = align.offset || [0, 0];\n let targetOffset = align.targetOffset || [0, 0];\n let overflow = align.overflow;\n const source = align.source || el;\n offset = [].concat(offset);\n targetOffset = [].concat(targetOffset);\n overflow = overflow || {};\n const newOverflowCfg = {};\n let fail = 0;\n const alwaysByViewport = !!(overflow && overflow.alwaysByViewport);\n // 当前节点可以被放置的显示区域\n const visibleRect = getVisibleRectForElement(source, alwaysByViewport);\n // 当前节点所占的区域, left/top/width/height\n const elRegion = getRegion(source);\n // 将 offset 转换成数值,支持百分比\n normalizeOffset(offset, elRegion);\n normalizeOffset(targetOffset, tgtRegion);\n // 当前节点将要被放置的位置\n let elFuturePos = getElFuturePos(\n elRegion,\n tgtRegion,\n points,\n offset,\n targetOffset,\n );\n // 当前节点将要所处的区域\n let newElRegion = utils.merge(elRegion, elFuturePos);\n\n // 如果可视区域不能完全放置当前节点时允许调整\n if (\n visibleRect &&\n (overflow.adjustX || overflow.adjustY) &&\n isTgtRegionVisible\n ) {\n if (overflow.adjustX) {\n // 如果横向不能放下\n if (isFailX(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n const newPoints = flip(points, /[lr]/gi, {\n l: 'r',\n r: 'l',\n });\n // 偏移量也反下\n const newOffset = flipOffset(offset, 0);\n const newTargetOffset = flipOffset(targetOffset, 0);\n const newElFuturePos = getElFuturePos(\n elRegion,\n tgtRegion,\n newPoints,\n newOffset,\n newTargetOffset,\n );\n\n if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = newPoints;\n offset = newOffset;\n targetOffset = newTargetOffset;\n }\n }\n }\n\n if (overflow.adjustY) {\n // 如果纵向不能放下\n if (isFailY(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n const newPoints = flip(points, /[tb]/gi, {\n t: 'b',\n b: 't',\n });\n // 偏移量也反下\n const newOffset = flipOffset(offset, 1);\n const newTargetOffset = flipOffset(targetOffset, 1);\n const newElFuturePos = getElFuturePos(\n elRegion,\n tgtRegion,\n newPoints,\n newOffset,\n newTargetOffset,\n );\n\n if (!isCompleteFailY(newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = newPoints;\n offset = newOffset;\n targetOffset = newTargetOffset;\n }\n }\n }\n\n // 如果失败,重新计算当前节点将要被放置的位置\n if (fail) {\n elFuturePos = getElFuturePos(\n elRegion,\n tgtRegion,\n points,\n offset,\n targetOffset,\n );\n utils.mix(newElRegion, elFuturePos);\n }\n const isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);\n const isStillFailY = isFailY(elFuturePos, elRegion, visibleRect);\n // 检查反下后的位置是否可以放下了,如果仍然放不下:\n // 1. 复原修改过的定位参数\n if (isStillFailX || isStillFailY) {\n let newPoints = points;\n\n // 重置对应部分的翻转逻辑\n if (isStillFailX) {\n newPoints = flip(points, /[lr]/gi, {\n l: 'r',\n r: 'l',\n });\n }\n if (isStillFailY) {\n newPoints = flip(points, /[tb]/gi, {\n t: 'b',\n b: 't',\n });\n }\n\n points = newPoints;\n\n offset = align.offset || [0, 0];\n targetOffset = align.targetOffset || [0, 0];\n }\n // 2. 只有指定了可以调整当前方向才调整\n newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;\n newOverflowCfg.adjustY = overflow.adjustY && isStillFailY;\n\n // 确实要调整,甚至可能会调整高度宽度\n if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {\n newElRegion = adjustForViewport(\n elFuturePos,\n elRegion,\n visibleRect,\n newOverflowCfg,\n );\n }\n }\n\n // need judge to in case set fixed with in css on height auto element\n if (newElRegion.width !== elRegion.width) {\n utils.css(\n source,\n 'width',\n utils.width(source) + newElRegion.width - elRegion.width,\n );\n }\n\n if (newElRegion.height !== elRegion.height) {\n utils.css(\n source,\n 'height',\n utils.height(source) + newElRegion.height - elRegion.height,\n );\n }\n\n // https://github.com/kissyteam/kissy/issues/190\n // 相对于屏幕位置没变,而 left/top 变了\n // 例如
\n utils.offset(\n source,\n {\n left: newElRegion.left,\n top: newElRegion.top,\n },\n {\n useCssRight: align.useCssRight,\n useCssBottom: align.useCssBottom,\n useCssTransform: align.useCssTransform,\n ignoreShake: align.ignoreShake,\n },\n );\n\n return {\n points,\n offset,\n targetOffset,\n overflow: newOverflowCfg,\n };\n}\n\nexport default doAlign;\n/**\n * 2012-04-26 yiminghe@gmail.com\n * - 优化智能对齐算法\n * - 慎用 resizeXX\n *\n * 2011-07-13 yiminghe@gmail.com note:\n * - 增加智能对齐,以及大小调整选项\n **/\n","import utils from './utils';\n\nfunction adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {\n const pos = utils.clone(elFuturePos);\n const size = {\n width: elRegion.width,\n height: elRegion.height,\n };\n\n if (overflow.adjustX && pos.left < visibleRect.left) {\n pos.left = visibleRect.left;\n }\n\n // Left edge inside and right edge outside viewport, try to resize it.\n if (\n overflow.resizeWidth &&\n pos.left >= visibleRect.left &&\n pos.left + size.width > visibleRect.right\n ) {\n size.width -= pos.left + size.width - visibleRect.right;\n }\n\n // Right edge outside viewport, try to move it.\n if (overflow.adjustX && pos.left + size.width > visibleRect.right) {\n // 保证左边界和可视区域左边界对齐\n pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);\n }\n\n // Top edge outside viewport, try to move it.\n if (overflow.adjustY && pos.top < visibleRect.top) {\n pos.top = visibleRect.top;\n }\n\n // Top edge inside and bottom edge outside viewport, try to resize it.\n if (\n overflow.resizeHeight &&\n pos.top >= visibleRect.top &&\n pos.top + size.height > visibleRect.bottom\n ) {\n size.height -= pos.top + size.height - visibleRect.bottom;\n }\n\n // Bottom edge outside viewport, try to move it.\n if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {\n // 保证上边界和可视区域上边界对齐\n pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);\n }\n\n return utils.mix(pos, size);\n}\n\nexport default adjustForViewport;\n","import doAlign from './align';\nimport getOffsetParent from '../getOffsetParent';\nimport getVisibleRectForElement from '../getVisibleRectForElement';\nimport getRegion from '../getRegion';\n\nfunction isOutOfVisibleRect(target, alwaysByViewport) {\n const visibleRect = getVisibleRectForElement(target, alwaysByViewport);\n const targetRegion = getRegion(target);\n\n return (\n !visibleRect ||\n targetRegion.left + targetRegion.width <= visibleRect.left ||\n targetRegion.top + targetRegion.height <= visibleRect.top ||\n targetRegion.left >= visibleRect.right ||\n targetRegion.top >= visibleRect.bottom\n );\n}\n\nfunction alignElement(el, refNode, align) {\n const target = align.target || refNode;\n const refNodeRegion = getRegion(target);\n\n const isTargetNotOutOfVisible = !isOutOfVisibleRect(\n target,\n align.overflow && align.overflow.alwaysByViewport,\n );\n\n return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);\n}\n\nalignElement.__getOffsetParent = getOffsetParent;\n\nalignElement.__getVisibleRectForElement = getVisibleRectForElement;\n\nexport default alignElement;\n","import contains from 'rc-util/es/Dom/contains';\n\nexport function buffer(fn, ms) {\n var timer = void 0;\n\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n function bufferFn() {\n clear();\n timer = setTimeout(fn, ms);\n }\n\n bufferFn.clear = clear;\n\n return bufferFn;\n}\n\nexport function isSamePoint(prev, next) {\n if (prev === next) return true;\n if (!prev || !next) return false;\n\n if ('pageX' in next && 'pageY' in next) {\n return prev.pageX === next.pageX && prev.pageY === next.pageY;\n }\n\n if ('clientX' in next && 'clientY' in next) {\n return prev.clientX === next.clientX && prev.clientY === next.clientY;\n }\n\n return false;\n}\n\nexport function isWindow(obj) {\n return obj && typeof obj === 'object' && obj.window === obj;\n}\n\nexport function isSimilarValue(val1, val2) {\n var int1 = Math.floor(val1);\n var int2 = Math.floor(val2);\n return Math.abs(int1 - int2) <= 1;\n}\n\nexport function restoreFocus(activeElement, container) {\n // Focus back if is in the container\n if (activeElement !== document.activeElement && contains(container, activeElement)) {\n activeElement.focus();\n }\n}","import _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport { alignElement, alignPoint } from 'dom-align';\nimport addEventListener from 'rc-util/es/Dom/addEventListener';\n\nimport { isWindow, buffer, isSamePoint, isSimilarValue, restoreFocus } from './util';\n\nfunction getElement(func) {\n if (typeof func !== 'function' || !func) return null;\n return func();\n}\n\nfunction getPoint(point) {\n if (typeof point !== 'object' || !point) return null;\n return point;\n}\n\nvar Align = function (_Component) {\n _inherits(Align, _Component);\n\n function Align() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Align);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Align.__proto__ || Object.getPrototypeOf(Align)).call.apply(_ref, [this].concat(args))), _this), _this.forceAlign = function () {\n var _this$props = _this.props,\n disabled = _this$props.disabled,\n target = _this$props.target,\n align = _this$props.align,\n onAlign = _this$props.onAlign;\n\n if (!disabled && target) {\n var source = ReactDOM.findDOMNode(_this);\n\n var result = void 0;\n var element = getElement(target);\n var point = getPoint(target);\n\n // IE lose focus after element realign\n // We should record activeElement and restore later\n var activeElement = document.activeElement;\n\n if (element) {\n result = alignElement(source, element, align);\n } else if (point) {\n result = alignPoint(source, point, align);\n }\n\n restoreFocus(activeElement, source);\n\n if (onAlign) {\n onAlign(source, result);\n }\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Align, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var props = this.props;\n // if parent ref not attached .... use document.getElementById\n this.forceAlign();\n if (!props.disabled && props.monitorWindowResize) {\n this.startMonitorWindowResize();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n var reAlign = false;\n var props = this.props;\n\n if (!props.disabled) {\n var source = ReactDOM.findDOMNode(this);\n var sourceRect = source ? source.getBoundingClientRect() : null;\n\n if (prevProps.disabled) {\n reAlign = true;\n } else {\n var lastElement = getElement(prevProps.target);\n var currentElement = getElement(props.target);\n var lastPoint = getPoint(prevProps.target);\n var currentPoint = getPoint(props.target);\n\n if (isWindow(lastElement) && isWindow(currentElement)) {\n // Skip if is window\n reAlign = false;\n } else if (lastElement !== currentElement || // Element change\n lastElement && !currentElement && currentPoint || // Change from element to point\n lastPoint && currentPoint && currentElement || // Change from point to element\n currentPoint && !isSamePoint(lastPoint, currentPoint)) {\n reAlign = true;\n }\n\n // If source element size changed\n var preRect = this.sourceRect || {};\n if (!reAlign && source && (!isSimilarValue(preRect.width, sourceRect.width) || !isSimilarValue(preRect.height, sourceRect.height))) {\n reAlign = true;\n }\n }\n\n this.sourceRect = sourceRect;\n }\n\n if (reAlign) {\n this.forceAlign();\n }\n\n if (props.monitorWindowResize && !props.disabled) {\n this.startMonitorWindowResize();\n } else {\n this.stopMonitorWindowResize();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.stopMonitorWindowResize();\n }\n }, {\n key: 'startMonitorWindowResize',\n value: function startMonitorWindowResize() {\n if (!this.resizeHandler) {\n this.bufferMonitor = buffer(this.forceAlign, this.props.monitorBufferTime);\n this.resizeHandler = addEventListener(window, 'resize', this.bufferMonitor);\n }\n }\n }, {\n key: 'stopMonitorWindowResize',\n value: function stopMonitorWindowResize() {\n if (this.resizeHandler) {\n this.bufferMonitor.clear();\n this.resizeHandler.remove();\n this.resizeHandler = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n childrenProps = _props.childrenProps,\n children = _props.children;\n\n var child = React.Children.only(children);\n if (childrenProps) {\n var newProps = {};\n var propList = Object.keys(childrenProps);\n propList.forEach(function (prop) {\n newProps[prop] = _this2.props[childrenProps[prop]];\n });\n\n return React.cloneElement(child, newProps);\n }\n return child;\n }\n }]);\n\n return Align;\n}(Component);\n\nAlign.propTypes = {\n childrenProps: PropTypes.object,\n align: PropTypes.object.isRequired,\n target: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n clientX: PropTypes.number,\n clientY: PropTypes.number,\n pageX: PropTypes.number,\n pageY: PropTypes.number\n })]),\n onAlign: PropTypes.func,\n monitorBufferTime: PropTypes.number,\n monitorWindowResize: PropTypes.bool,\n disabled: PropTypes.bool,\n children: PropTypes.any\n};\nAlign.defaultProps = {\n target: function target() {\n return window;\n },\n monitorBufferTime: 50,\n monitorWindowResize: false,\n disabled: false\n};\n\n\nexport default Align;","import utils from '../utils';\nimport doAlign from './align';\n\n/**\n * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.\n * If client position provided, will internal convert to page position.\n */\n\nfunction alignPoint(el, tgtPoint, align) {\n let pageX;\n let pageY;\n\n const doc = utils.getDocument(el);\n const win = doc.defaultView || doc.parentWindow;\n\n const scrollX = utils.getWindowScrollLeft(win);\n const scrollY = utils.getWindowScrollTop(win);\n const viewportWidth = utils.viewportWidth(win);\n const viewportHeight = utils.viewportHeight(win);\n\n if ('pageX' in tgtPoint) {\n pageX = tgtPoint.pageX;\n } else {\n pageX = scrollX + tgtPoint.clientX;\n }\n\n if ('pageY' in tgtPoint) {\n pageY = tgtPoint.pageY;\n } else {\n pageY = scrollY + tgtPoint.clientY;\n }\n\n const tgtRegion = {\n left: pageX,\n top: pageY,\n width: 0,\n height: 0,\n };\n\n const pointInView =\n pageX >= 0 &&\n pageX <= scrollX + viewportWidth &&\n (pageY >= 0 && pageY <= scrollY + viewportHeight);\n\n // Provide default target point\n const points = [align.points[0], 'cc'];\n\n return doAlign(el, tgtRegion, { ...align, points }, pointInView);\n}\n\nexport default alignPoint;\n","// export this package's api\nimport Align from './Align';\n\nexport default Align;","import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nvar LazyRenderBox = function (_Component) {\n _inherits(LazyRenderBox, _Component);\n\n function LazyRenderBox() {\n _classCallCheck(this, LazyRenderBox);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return nextProps.hiddenClassName || nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _props = this.props,\n hiddenClassName = _props.hiddenClassName,\n visible = _props.visible,\n props = _objectWithoutProperties(_props, ['hiddenClassName', 'visible']);\n\n if (hiddenClassName || React.Children.count(props.children) > 1) {\n if (!visible && hiddenClassName) {\n props.className += ' ' + hiddenClassName;\n }\n return React.createElement('div', props);\n }\n\n return React.Children.only(props.children);\n };\n\n return LazyRenderBox;\n}(Component);\n\nLazyRenderBox.propTypes = {\n children: PropTypes.any,\n className: PropTypes.string,\n visible: PropTypes.bool,\n hiddenClassName: PropTypes.string\n};\n\n\nexport default LazyRenderBox;","import _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport LazyRenderBox from './LazyRenderBox';\n\nvar PopupInner = function (_Component) {\n _inherits(PopupInner, _Component);\n\n function PopupInner() {\n _classCallCheck(this, PopupInner);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n PopupInner.prototype.render = function render() {\n var props = this.props;\n var className = props.className;\n if (!props.visible) {\n className += ' ' + props.hiddenClassName;\n }\n return React.createElement(\n 'div',\n {\n className: className,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n onMouseDown: props.onMouseDown,\n onTouchStart: props.onTouchStart,\n style: props.style\n },\n React.createElement(\n LazyRenderBox,\n { className: props.prefixCls + '-content', visible: props.visible },\n props.children\n )\n );\n };\n\n return PopupInner;\n}(Component);\n\nPopupInner.propTypes = {\n hiddenClassName: PropTypes.string,\n className: PropTypes.string,\n prefixCls: PropTypes.string,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onMouseDown: PropTypes.func,\n onTouchStart: PropTypes.func,\n children: PropTypes.any\n};\n\n\nexport default PopupInner;","import _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport Align from 'rc-align';\nimport Animate from 'rc-animate';\nimport PopupInner from './PopupInner';\nimport LazyRenderBox from './LazyRenderBox';\nimport { saveRef } from './utils';\n\nvar Popup = function (_Component) {\n _inherits(Popup, _Component);\n\n function Popup(props) {\n _classCallCheck(this, Popup);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n // Used for stretch\n stretchChecked: false,\n targetWidth: undefined,\n targetHeight: undefined\n };\n\n _this.savePopupRef = saveRef.bind(_this, 'popupInstance');\n _this.saveAlignRef = saveRef.bind(_this, 'alignInstance');\n return _this;\n }\n\n Popup.prototype.componentDidMount = function componentDidMount() {\n this.rootNode = this.getPopupDomNode();\n this.setStretchSize();\n };\n\n Popup.prototype.componentDidUpdate = function componentDidUpdate() {\n this.setStretchSize();\n };\n\n // Record size if stretch needed\n\n\n Popup.prototype.getPopupDomNode = function getPopupDomNode() {\n return ReactDOM.findDOMNode(this.popupInstance);\n };\n\n // `target` on `rc-align` can accept as a function to get the bind element or a point.\n // ref: https://www.npmjs.com/package/rc-align\n\n\n Popup.prototype.getMaskTransitionName = function getMaskTransitionName() {\n var props = this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getTransitionName = function getTransitionName() {\n var props = this.props;\n var transitionName = props.transitionName;\n if (!transitionName && props.animation) {\n transitionName = props.prefixCls + '-' + props.animation;\n }\n return transitionName;\n };\n\n Popup.prototype.getClassName = function getClassName(currentAlignClassName) {\n return this.props.prefixCls + ' ' + this.props.className + ' ' + currentAlignClassName;\n };\n\n Popup.prototype.getPopupElement = function getPopupElement() {\n var _this2 = this;\n\n var savePopupRef = this.savePopupRef;\n var _state = this.state,\n stretchChecked = _state.stretchChecked,\n targetHeight = _state.targetHeight,\n targetWidth = _state.targetWidth;\n var _props = this.props,\n align = _props.align,\n visible = _props.visible,\n prefixCls = _props.prefixCls,\n style = _props.style,\n getClassNameFromAlign = _props.getClassNameFromAlign,\n destroyPopupOnHide = _props.destroyPopupOnHide,\n stretch = _props.stretch,\n children = _props.children,\n onMouseEnter = _props.onMouseEnter,\n onMouseLeave = _props.onMouseLeave,\n onMouseDown = _props.onMouseDown,\n onTouchStart = _props.onTouchStart;\n\n var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));\n var hiddenClassName = prefixCls + '-hidden';\n\n if (!visible) {\n this.currentAlignClassName = null;\n }\n\n var sizeStyle = {};\n if (stretch) {\n // Stretch with target\n if (stretch.indexOf('height') !== -1) {\n sizeStyle.height = targetHeight;\n } else if (stretch.indexOf('minHeight') !== -1) {\n sizeStyle.minHeight = targetHeight;\n }\n if (stretch.indexOf('width') !== -1) {\n sizeStyle.width = targetWidth;\n } else if (stretch.indexOf('minWidth') !== -1) {\n sizeStyle.minWidth = targetWidth;\n }\n\n // Delay force align to makes ui smooth\n if (!stretchChecked) {\n sizeStyle.visibility = 'hidden';\n setTimeout(function () {\n if (_this2.alignInstance) {\n _this2.alignInstance.forceAlign();\n }\n }, 0);\n }\n }\n\n var newStyle = _extends({}, sizeStyle, style, this.getZIndexStyle());\n\n var popupInnerProps = {\n className: className,\n prefixCls: prefixCls,\n ref: savePopupRef,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onMouseDown: onMouseDown,\n onTouchStart: onTouchStart,\n style: newStyle\n };\n if (destroyPopupOnHide) {\n return React.createElement(\n Animate,\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName()\n },\n visible ? React.createElement(\n Align,\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n align: align,\n onAlign: this.onAlign\n },\n React.createElement(\n PopupInner,\n _extends({\n visible: true\n }, popupInnerProps),\n children\n )\n ) : null\n );\n }\n\n return React.createElement(\n Animate,\n {\n component: '',\n exclusive: true,\n transitionAppear: true,\n transitionName: this.getTransitionName(),\n showProp: 'xVisible'\n },\n React.createElement(\n Align,\n {\n target: this.getAlignTarget(),\n key: 'popup',\n ref: this.saveAlignRef,\n monitorWindowResize: true,\n xVisible: visible,\n childrenProps: { visible: 'xVisible' },\n disabled: !visible,\n align: align,\n onAlign: this.onAlign\n },\n React.createElement(\n PopupInner,\n _extends({\n hiddenClassName: hiddenClassName\n }, popupInnerProps),\n children\n )\n )\n );\n };\n\n Popup.prototype.getZIndexStyle = function getZIndexStyle() {\n var style = {};\n var props = this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n\n Popup.prototype.getMaskElement = function getMaskElement() {\n var props = this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = this.getMaskTransitionName();\n maskElement = React.createElement(LazyRenderBox, {\n style: this.getZIndexStyle(),\n key: 'mask',\n className: props.prefixCls + '-mask',\n hiddenClassName: props.prefixCls + '-mask-hidden',\n visible: props.visible\n });\n if (maskTransition) {\n maskElement = React.createElement(\n Animate,\n {\n key: 'mask',\n showProp: 'visible',\n transitionAppear: true,\n component: '',\n transitionName: maskTransition\n },\n maskElement\n );\n }\n }\n return maskElement;\n };\n\n Popup.prototype.render = function render() {\n return React.createElement(\n 'div',\n null,\n this.getMaskElement(),\n this.getPopupElement()\n );\n };\n\n return Popup;\n}(Component);\n\nPopup.propTypes = {\n visible: PropTypes.bool,\n style: PropTypes.object,\n getClassNameFromAlign: PropTypes.func,\n onAlign: PropTypes.func,\n getRootDomNode: PropTypes.func,\n align: PropTypes.any,\n destroyPopupOnHide: PropTypes.bool,\n className: PropTypes.string,\n prefixCls: PropTypes.string,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onMouseDown: PropTypes.func,\n onTouchStart: PropTypes.func,\n stretch: PropTypes.string,\n children: PropTypes.node,\n point: PropTypes.shape({\n pageX: PropTypes.number,\n pageY: PropTypes.number\n })\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onAlign = function (popupDomNode, align) {\n var props = _this3.props;\n var currentAlignClassName = props.getClassNameFromAlign(align);\n // FIX: https://github.com/react-component/trigger/issues/56\n // FIX: https://github.com/react-component/tooltip/issues/79\n if (_this3.currentAlignClassName !== currentAlignClassName) {\n _this3.currentAlignClassName = currentAlignClassName;\n popupDomNode.className = _this3.getClassName(currentAlignClassName);\n }\n props.onAlign(popupDomNode, align);\n };\n\n this.setStretchSize = function () {\n var _props2 = _this3.props,\n stretch = _props2.stretch,\n getRootDomNode = _props2.getRootDomNode,\n visible = _props2.visible;\n var _state2 = _this3.state,\n stretchChecked = _state2.stretchChecked,\n targetHeight = _state2.targetHeight,\n targetWidth = _state2.targetWidth;\n\n\n if (!stretch || !visible) {\n if (stretchChecked) {\n _this3.setState({ stretchChecked: false });\n }\n return;\n }\n\n var $ele = getRootDomNode();\n if (!$ele) return;\n\n var height = $ele.offsetHeight;\n var width = $ele.offsetWidth;\n\n if (targetHeight !== height || targetWidth !== width || !stretchChecked) {\n _this3.setState({\n stretchChecked: true,\n targetHeight: height,\n targetWidth: width\n });\n }\n };\n\n this.getTargetElement = function () {\n return _this3.props.getRootDomNode();\n };\n\n this.getAlignTarget = function () {\n var point = _this3.props.point;\n\n if (point) {\n return point;\n }\n return _this3.getTargetElement;\n };\n};\n\nexport default Popup;","import _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { findDOMNode, createPortal } from 'react-dom';\nimport { polyfill } from 'react-lifecycles-compat';\nimport contains from 'rc-util/es/Dom/contains';\nimport addEventListener from 'rc-util/es/Dom/addEventListener';\nimport ContainerRender from 'rc-util/es/ContainerRender';\nimport Portal from 'rc-util/es/Portal';\nimport classNames from 'classnames';\n\nimport { getAlignFromPlacement, getAlignPopupClassName } from './utils';\nimport Popup from './Popup';\n\nfunction noop() {}\n\nfunction returnEmptyString() {\n return '';\n}\n\nfunction returnDocument() {\n return window.document;\n}\n\nvar ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];\n\nvar IS_REACT_16 = !!createPortal;\n\nvar contextTypes = {\n rcTrigger: PropTypes.shape({\n onPopupMouseDown: PropTypes.func\n })\n};\n\nvar Trigger = function (_React$Component) {\n _inherits(Trigger, _React$Component);\n\n function Trigger(props) {\n _classCallCheck(this, Trigger);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _initialiseProps.call(_this);\n\n var popupVisible = void 0;\n if ('popupVisible' in props) {\n popupVisible = !!props.popupVisible;\n } else {\n popupVisible = !!props.defaultPopupVisible;\n }\n\n _this.state = {\n prevPopupVisible: popupVisible,\n popupVisible: popupVisible\n };\n\n ALL_HANDLERS.forEach(function (h) {\n _this['fire' + h] = function (e) {\n _this.fireEvents(h, e);\n };\n });\n return _this;\n }\n\n Trigger.prototype.getChildContext = function getChildContext() {\n return {\n rcTrigger: {\n onPopupMouseDown: this.onPopupMouseDown\n }\n };\n };\n\n Trigger.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({}, {\n popupVisible: this.state.popupVisible\n });\n };\n\n Trigger.prototype.componentDidUpdate = function componentDidUpdate(_, prevState) {\n var props = this.props;\n var state = this.state;\n var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {\n if (prevState.popupVisible !== state.popupVisible) {\n props.afterPopupVisibleChange(state.popupVisible);\n }\n };\n if (!IS_REACT_16) {\n this.renderComponent(null, triggerAfterPopupVisibleChange);\n }\n\n // We must listen to `mousedown` or `touchstart`, edge case:\n // https://github.com/ant-design/ant-design/issues/5804\n // https://github.com/react-component/calendar/issues/250\n // https://github.com/react-component/trigger/issues/50\n if (state.popupVisible) {\n var currentDocument = void 0;\n if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {\n currentDocument = props.getDocument();\n this.clickOutsideHandler = addEventListener(currentDocument, 'mousedown', this.onDocumentClick);\n }\n // always hide on mobile\n if (!this.touchOutsideHandler) {\n currentDocument = currentDocument || props.getDocument();\n this.touchOutsideHandler = addEventListener(currentDocument, 'touchstart', this.onDocumentClick);\n }\n // close popup when trigger type contains 'onContextMenu' and document is scrolling.\n if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {\n currentDocument = currentDocument || props.getDocument();\n this.contextMenuOutsideHandler1 = addEventListener(currentDocument, 'scroll', this.onContextMenuClose);\n }\n // close popup when trigger type contains 'onContextMenu' and window is blur.\n if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {\n this.contextMenuOutsideHandler2 = addEventListener(window, 'blur', this.onContextMenuClose);\n }\n return;\n }\n\n this.clearOutsideHandler();\n };\n\n Trigger.prototype.componentWillUnmount = function componentWillUnmount() {\n this.clearDelayTimer();\n this.clearOutsideHandler();\n clearTimeout(this.mouseDownTimeout);\n };\n\n Trigger.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var popupVisible = _ref.popupVisible;\n\n var newState = {};\n\n if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {\n newState.popupVisible = popupVisible;\n newState.prevPopupVisible = prevState.popupVisible;\n }\n\n return newState;\n };\n\n Trigger.prototype.getPopupDomNode = function getPopupDomNode() {\n // for test\n if (this._component && this._component.getPopupDomNode) {\n return this._component.getPopupDomNode();\n }\n return null;\n };\n\n Trigger.prototype.getPopupAlign = function getPopupAlign() {\n var props = this.props;\n var popupPlacement = props.popupPlacement,\n popupAlign = props.popupAlign,\n builtinPlacements = props.builtinPlacements;\n\n if (popupPlacement && builtinPlacements) {\n return getAlignFromPlacement(builtinPlacements, popupPlacement, popupAlign);\n }\n return popupAlign;\n };\n\n /**\n * @param popupVisible Show or not the popup element\n * @param event SyntheticEvent, used for `pointAlign`\n */\n Trigger.prototype.setPopupVisible = function setPopupVisible(popupVisible, event) {\n var alignPoint = this.props.alignPoint;\n var prevPopupVisible = this.state.popupVisible;\n\n\n this.clearDelayTimer();\n\n if (prevPopupVisible !== popupVisible) {\n if (!('popupVisible' in this.props)) {\n this.setState({ popupVisible: popupVisible, prevPopupVisible: prevPopupVisible });\n }\n this.props.onPopupVisibleChange(popupVisible);\n }\n\n // Always record the point position since mouseEnterDelay will delay the show\n if (alignPoint && event) {\n this.setPoint(event);\n }\n };\n\n Trigger.prototype.delaySetPopupVisible = function delaySetPopupVisible(visible, delayS, event) {\n var _this2 = this;\n\n var delay = delayS * 1000;\n this.clearDelayTimer();\n if (delay) {\n var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;\n this.delayTimer = setTimeout(function () {\n _this2.setPopupVisible(visible, point);\n _this2.clearDelayTimer();\n }, delay);\n } else {\n this.setPopupVisible(visible, event);\n }\n };\n\n Trigger.prototype.clearDelayTimer = function clearDelayTimer() {\n if (this.delayTimer) {\n clearTimeout(this.delayTimer);\n this.delayTimer = null;\n }\n };\n\n Trigger.prototype.clearOutsideHandler = function clearOutsideHandler() {\n if (this.clickOutsideHandler) {\n this.clickOutsideHandler.remove();\n this.clickOutsideHandler = null;\n }\n\n if (this.contextMenuOutsideHandler1) {\n this.contextMenuOutsideHandler1.remove();\n this.contextMenuOutsideHandler1 = null;\n }\n\n if (this.contextMenuOutsideHandler2) {\n this.contextMenuOutsideHandler2.remove();\n this.contextMenuOutsideHandler2 = null;\n }\n\n if (this.touchOutsideHandler) {\n this.touchOutsideHandler.remove();\n this.touchOutsideHandler = null;\n }\n };\n\n Trigger.prototype.createTwoChains = function createTwoChains(event) {\n var childPros = this.props.children.props;\n var props = this.props;\n if (childPros[event] && props[event]) {\n return this['fire' + event];\n }\n return childPros[event] || props[event];\n };\n\n Trigger.prototype.isClickToShow = function isClickToShow() {\n var _props = this.props,\n action = _props.action,\n showAction = _props.showAction;\n\n return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isContextMenuToShow = function isContextMenuToShow() {\n var _props2 = this.props,\n action = _props2.action,\n showAction = _props2.showAction;\n\n return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;\n };\n\n Trigger.prototype.isClickToHide = function isClickToHide() {\n var _props3 = this.props,\n action = _props3.action,\n hideAction = _props3.hideAction;\n\n return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;\n };\n\n Trigger.prototype.isMouseEnterToShow = function isMouseEnterToShow() {\n var _props4 = this.props,\n action = _props4.action,\n showAction = _props4.showAction;\n\n return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;\n };\n\n Trigger.prototype.isMouseLeaveToHide = function isMouseLeaveToHide() {\n var _props5 = this.props,\n action = _props5.action,\n hideAction = _props5.hideAction;\n\n return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;\n };\n\n Trigger.prototype.isFocusToShow = function isFocusToShow() {\n var _props6 = this.props,\n action = _props6.action,\n showAction = _props6.showAction;\n\n return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;\n };\n\n Trigger.prototype.isBlurToHide = function isBlurToHide() {\n var _props7 = this.props,\n action = _props7.action,\n hideAction = _props7.hideAction;\n\n return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;\n };\n\n Trigger.prototype.forcePopupAlign = function forcePopupAlign() {\n if (this.state.popupVisible && this._component && this._component.alignInstance) {\n this._component.alignInstance.forceAlign();\n }\n };\n\n Trigger.prototype.fireEvents = function fireEvents(type, e) {\n var childCallback = this.props.children.props[type];\n if (childCallback) {\n childCallback(e);\n }\n var callback = this.props[type];\n if (callback) {\n callback(e);\n }\n };\n\n Trigger.prototype.close = function close() {\n this.setPopupVisible(false);\n };\n\n Trigger.prototype.render = function render() {\n var _this3 = this;\n\n var popupVisible = this.state.popupVisible;\n var _props8 = this.props,\n children = _props8.children,\n forceRender = _props8.forceRender,\n alignPoint = _props8.alignPoint,\n className = _props8.className;\n\n var child = React.Children.only(children);\n var newChildProps = { key: 'trigger' };\n\n if (this.isContextMenuToShow()) {\n newChildProps.onContextMenu = this.onContextMenu;\n } else {\n newChildProps.onContextMenu = this.createTwoChains('onContextMenu');\n }\n\n if (this.isClickToHide() || this.isClickToShow()) {\n newChildProps.onClick = this.onClick;\n newChildProps.onMouseDown = this.onMouseDown;\n newChildProps.onTouchStart = this.onTouchStart;\n } else {\n newChildProps.onClick = this.createTwoChains('onClick');\n newChildProps.onMouseDown = this.createTwoChains('onMouseDown');\n newChildProps.onTouchStart = this.createTwoChains('onTouchStart');\n }\n if (this.isMouseEnterToShow()) {\n newChildProps.onMouseEnter = this.onMouseEnter;\n if (alignPoint) {\n newChildProps.onMouseMove = this.onMouseMove;\n }\n } else {\n newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');\n }\n if (this.isMouseLeaveToHide()) {\n newChildProps.onMouseLeave = this.onMouseLeave;\n } else {\n newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');\n }\n if (this.isFocusToShow() || this.isBlurToHide()) {\n newChildProps.onFocus = this.onFocus;\n newChildProps.onBlur = this.onBlur;\n } else {\n newChildProps.onFocus = this.createTwoChains('onFocus');\n newChildProps.onBlur = this.createTwoChains('onBlur');\n }\n\n var childrenClassName = classNames(child && child.props && child.props.className, className);\n if (childrenClassName) {\n newChildProps.className = childrenClassName;\n }\n var trigger = React.cloneElement(child, newChildProps);\n\n if (!IS_REACT_16) {\n return React.createElement(\n ContainerRender,\n {\n parent: this,\n visible: popupVisible,\n autoMount: false,\n forceRender: forceRender,\n getComponent: this.getComponent,\n getContainer: this.getContainer\n },\n function (_ref2) {\n var renderComponent = _ref2.renderComponent;\n\n _this3.renderComponent = renderComponent;\n return trigger;\n }\n );\n }\n\n var portal = void 0;\n // prevent unmounting after it's rendered\n if (popupVisible || this._component || forceRender) {\n portal = React.createElement(\n Portal,\n { key: 'portal', getContainer: this.getContainer, didUpdate: this.handlePortalUpdate },\n this.getComponent()\n );\n }\n\n return [trigger, portal];\n };\n\n return Trigger;\n}(React.Component);\n\nTrigger.propTypes = {\n children: PropTypes.any,\n action: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n showAction: PropTypes.any,\n hideAction: PropTypes.any,\n getPopupClassNameFromAlign: PropTypes.any,\n onPopupVisibleChange: PropTypes.func,\n afterPopupVisibleChange: PropTypes.func,\n popup: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,\n popupStyle: PropTypes.object,\n prefixCls: PropTypes.string,\n popupClassName: PropTypes.string,\n className: PropTypes.string,\n popupPlacement: PropTypes.string,\n builtinPlacements: PropTypes.object,\n popupTransitionName: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n popupAnimation: PropTypes.any,\n mouseEnterDelay: PropTypes.number,\n mouseLeaveDelay: PropTypes.number,\n zIndex: PropTypes.number,\n focusDelay: PropTypes.number,\n blurDelay: PropTypes.number,\n getPopupContainer: PropTypes.func,\n getDocument: PropTypes.func,\n forceRender: PropTypes.bool,\n destroyPopupOnHide: PropTypes.bool,\n mask: PropTypes.bool,\n maskClosable: PropTypes.bool,\n onPopupAlign: PropTypes.func,\n popupAlign: PropTypes.object,\n popupVisible: PropTypes.bool,\n defaultPopupVisible: PropTypes.bool,\n maskTransitionName: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n maskAnimation: PropTypes.string,\n stretch: PropTypes.string,\n alignPoint: PropTypes.bool // Maybe we can support user pass position in the future\n};\nTrigger.contextTypes = contextTypes;\nTrigger.childContextTypes = contextTypes;\nTrigger.defaultProps = {\n prefixCls: 'rc-trigger-popup',\n getPopupClassNameFromAlign: returnEmptyString,\n getDocument: returnDocument,\n onPopupVisibleChange: noop,\n afterPopupVisibleChange: noop,\n onPopupAlign: noop,\n popupClassName: '',\n mouseEnterDelay: 0,\n mouseLeaveDelay: 0.1,\n focusDelay: 0,\n blurDelay: 0.15,\n popupStyle: {},\n destroyPopupOnHide: false,\n popupAlign: {},\n defaultPopupVisible: false,\n mask: false,\n maskClosable: true,\n action: [],\n showAction: [],\n hideAction: []\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onMouseEnter = function (e) {\n var mouseEnterDelay = _this4.props.mouseEnterDelay;\n\n _this4.fireEvents('onMouseEnter', e);\n _this4.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);\n };\n\n this.onMouseMove = function (e) {\n _this4.fireEvents('onMouseMove', e);\n _this4.setPoint(e);\n };\n\n this.onMouseLeave = function (e) {\n _this4.fireEvents('onMouseLeave', e);\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onPopupMouseEnter = function () {\n _this4.clearDelayTimer();\n };\n\n this.onPopupMouseLeave = function (e) {\n // https://github.com/react-component/trigger/pull/13\n // react bug?\n if (e.relatedTarget && !e.relatedTarget.setTimeout && _this4._component && _this4._component.getPopupDomNode && contains(_this4._component.getPopupDomNode(), e.relatedTarget)) {\n return;\n }\n _this4.delaySetPopupVisible(false, _this4.props.mouseLeaveDelay);\n };\n\n this.onFocus = function (e) {\n _this4.fireEvents('onFocus', e);\n // incase focusin and focusout\n _this4.clearDelayTimer();\n if (_this4.isFocusToShow()) {\n _this4.focusTime = Date.now();\n _this4.delaySetPopupVisible(true, _this4.props.focusDelay);\n }\n };\n\n this.onMouseDown = function (e) {\n _this4.fireEvents('onMouseDown', e);\n _this4.preClickTime = Date.now();\n };\n\n this.onTouchStart = function (e) {\n _this4.fireEvents('onTouchStart', e);\n _this4.preTouchTime = Date.now();\n };\n\n this.onBlur = function (e) {\n _this4.fireEvents('onBlur', e);\n _this4.clearDelayTimer();\n if (_this4.isBlurToHide()) {\n _this4.delaySetPopupVisible(false, _this4.props.blurDelay);\n }\n };\n\n this.onContextMenu = function (e) {\n e.preventDefault();\n _this4.fireEvents('onContextMenu', e);\n _this4.setPopupVisible(true, e);\n };\n\n this.onContextMenuClose = function () {\n if (_this4.isContextMenuToShow()) {\n _this4.close();\n }\n };\n\n this.onClick = function (event) {\n _this4.fireEvents('onClick', event);\n // focus will trigger click\n if (_this4.focusTime) {\n var preTime = void 0;\n if (_this4.preClickTime && _this4.preTouchTime) {\n preTime = Math.min(_this4.preClickTime, _this4.preTouchTime);\n } else if (_this4.preClickTime) {\n preTime = _this4.preClickTime;\n } else if (_this4.preTouchTime) {\n preTime = _this4.preTouchTime;\n }\n if (Math.abs(preTime - _this4.focusTime) < 20) {\n return;\n }\n _this4.focusTime = 0;\n }\n _this4.preClickTime = 0;\n _this4.preTouchTime = 0;\n\n // Only prevent default when all the action is click.\n // https://github.com/ant-design/ant-design/issues/17043\n // https://github.com/ant-design/ant-design/issues/17291\n if (_this4.isClickToShow() && (_this4.isClickToHide() || _this4.isBlurToHide()) && event && event.preventDefault) {\n event.preventDefault();\n }\n var nextVisible = !_this4.state.popupVisible;\n if (_this4.isClickToHide() && !nextVisible || nextVisible && _this4.isClickToShow()) {\n _this4.setPopupVisible(!_this4.state.popupVisible, event);\n }\n };\n\n this.onPopupMouseDown = function () {\n var _context$rcTrigger = _this4.context.rcTrigger,\n rcTrigger = _context$rcTrigger === undefined ? {} : _context$rcTrigger;\n\n _this4.hasPopupMouseDown = true;\n\n clearTimeout(_this4.mouseDownTimeout);\n _this4.mouseDownTimeout = setTimeout(function () {\n _this4.hasPopupMouseDown = false;\n }, 0);\n\n if (rcTrigger.onPopupMouseDown) {\n rcTrigger.onPopupMouseDown.apply(rcTrigger, arguments);\n }\n };\n\n this.onDocumentClick = function (event) {\n if (_this4.props.mask && !_this4.props.maskClosable) {\n return;\n }\n\n var target = event.target;\n var root = findDOMNode(_this4);\n if (!contains(root, target) && !_this4.hasPopupMouseDown) {\n _this4.close();\n }\n };\n\n this.getRootDomNode = function () {\n return findDOMNode(_this4);\n };\n\n this.getPopupClassNameFromAlign = function (align) {\n var className = [];\n var _props9 = _this4.props,\n popupPlacement = _props9.popupPlacement,\n builtinPlacements = _props9.builtinPlacements,\n prefixCls = _props9.prefixCls,\n alignPoint = _props9.alignPoint,\n getPopupClassNameFromAlign = _props9.getPopupClassNameFromAlign;\n\n if (popupPlacement && builtinPlacements) {\n className.push(getAlignPopupClassName(builtinPlacements, prefixCls, align, alignPoint));\n }\n if (getPopupClassNameFromAlign) {\n className.push(getPopupClassNameFromAlign(align));\n }\n return className.join(' ');\n };\n\n this.getComponent = function () {\n var _props10 = _this4.props,\n prefixCls = _props10.prefixCls,\n destroyPopupOnHide = _props10.destroyPopupOnHide,\n popupClassName = _props10.popupClassName,\n action = _props10.action,\n onPopupAlign = _props10.onPopupAlign,\n popupAnimation = _props10.popupAnimation,\n popupTransitionName = _props10.popupTransitionName,\n popupStyle = _props10.popupStyle,\n mask = _props10.mask,\n maskAnimation = _props10.maskAnimation,\n maskTransitionName = _props10.maskTransitionName,\n zIndex = _props10.zIndex,\n popup = _props10.popup,\n stretch = _props10.stretch,\n alignPoint = _props10.alignPoint;\n var _state = _this4.state,\n popupVisible = _state.popupVisible,\n point = _state.point;\n\n\n var align = _this4.getPopupAlign();\n\n var mouseProps = {};\n if (_this4.isMouseEnterToShow()) {\n mouseProps.onMouseEnter = _this4.onPopupMouseEnter;\n }\n if (_this4.isMouseLeaveToHide()) {\n mouseProps.onMouseLeave = _this4.onPopupMouseLeave;\n }\n\n mouseProps.onMouseDown = _this4.onPopupMouseDown;\n mouseProps.onTouchStart = _this4.onPopupMouseDown;\n\n return React.createElement(\n Popup,\n _extends({\n prefixCls: prefixCls,\n destroyPopupOnHide: destroyPopupOnHide,\n visible: popupVisible,\n point: alignPoint && point,\n className: popupClassName,\n action: action,\n align: align,\n onAlign: onPopupAlign,\n animation: popupAnimation,\n getClassNameFromAlign: _this4.getPopupClassNameFromAlign\n }, mouseProps, {\n stretch: stretch,\n getRootDomNode: _this4.getRootDomNode,\n style: popupStyle,\n mask: mask,\n zIndex: zIndex,\n transitionName: popupTransitionName,\n maskAnimation: maskAnimation,\n maskTransitionName: maskTransitionName,\n ref: _this4.savePopup\n }),\n typeof popup === 'function' ? popup() : popup\n );\n };\n\n this.getContainer = function () {\n var props = _this4.props;\n\n var popupContainer = document.createElement('div');\n // Make sure default popup container will never cause scrollbar appearing\n // https://github.com/react-component/trigger/issues/41\n popupContainer.style.position = 'absolute';\n popupContainer.style.top = '0';\n popupContainer.style.left = '0';\n popupContainer.style.width = '100%';\n var mountNode = props.getPopupContainer ? props.getPopupContainer(findDOMNode(_this4)) : props.getDocument().body;\n mountNode.appendChild(popupContainer);\n return popupContainer;\n };\n\n this.setPoint = function (point) {\n var alignPoint = _this4.props.alignPoint;\n\n if (!alignPoint || !point) return;\n\n _this4.setState({\n point: {\n pageX: point.pageX,\n pageY: point.pageY\n }\n });\n };\n\n this.handlePortalUpdate = function () {\n if (_this4.state.prevPopupVisible !== _this4.state.popupVisible) {\n _this4.props.afterPopupVisibleChange(_this4.state.popupVisible);\n }\n };\n\n this.savePopup = function (node) {\n _this4._component = node;\n };\n};\n\npolyfill(Trigger);\n\nexport default Trigger;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.warning = warning;\nexports.note = note;\nexports.resetWarned = resetWarned;\nexports.call = call;\nexports.warningOnce = warningOnce;\nexports.noteOnce = noteOnce;\nexports.default = void 0;\n\n/* eslint-disable no-console */\nvar warned = {};\n\nfunction warning(valid, message) {\n // Support uglify\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n console.error(\"Warning: \".concat(message));\n }\n}\n\nfunction note(valid, message) {\n // Support uglify\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n console.warn(\"Note: \".concat(message));\n }\n}\n\nfunction resetWarned() {\n warned = {};\n}\n\nfunction call(method, valid, message) {\n if (!valid && !warned[message]) {\n method(false, message);\n warned[message] = true;\n }\n}\n\nfunction warningOnce(valid, message) {\n call(warning, valid, message);\n}\n\nfunction noteOnce(valid, message) {\n call(note, valid, message);\n}\n\nvar _default = warningOnce;\n/* eslint-enable */\n\nexports.default = _default;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar AddMore = (_temp = _class = function (_Component) {\n _inherits(AddMore, _Component);\n\n function AddMore(props) {\n _classCallCheck(this, AddMore);\n\n return _possibleConstructorReturn(this, (AddMore.__proto__ || Object.getPrototypeOf(AddMore)).call(this, props));\n }\n\n _createClass(AddMore, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n number = _props.number,\n left = _props.left,\n width = _props.width,\n top = _props.top,\n clickAction = _props.clickAction,\n headerItem = _props.headerItem,\n schedulerData = _props.schedulerData;\n var config = schedulerData.config;\n\n var content = '+' + number + 'more';\n\n return _react2.default.createElement(\n 'a',\n { className: 'timeline-event', style: { left: left, width: width, top: top }, onClick: function onClick() {\n clickAction(headerItem);\n } },\n _react2.default.createElement(\n 'div',\n { style: { height: config.eventItemHeight, color: '#999', textAlign: 'center' } },\n content\n )\n );\n }\n }]);\n\n return AddMore;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n number: _propTypes.PropTypes.number.isRequired,\n left: _propTypes.PropTypes.number.isRequired,\n width: _propTypes.PropTypes.number.isRequired,\n top: _propTypes.PropTypes.number.isRequired,\n clickAction: _propTypes.PropTypes.func.isRequired,\n headerItem: _propTypes.PropTypes.object.isRequired\n}, _temp);\nexports.default = AddMore;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _col = require('antd/lib/col');\n\nvar _col2 = _interopRequireDefault(_col);\n\nvar _row = require('antd/lib/row');\n\nvar _row2 = _interopRequireDefault(_row);\n\nvar _icon = require('antd/lib/icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nrequire('antd/lib/grid/style/index.css');\n\nvar _EventItem = require('./EventItem');\n\nvar _EventItem2 = _interopRequireDefault(_EventItem);\n\nvar _DnDSource = require('./DnDSource');\n\nvar _DnDSource2 = _interopRequireDefault(_DnDSource);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar AddMorePopover = (_temp = _class = function (_Component) {\n _inherits(AddMorePopover, _Component);\n\n function AddMorePopover(props) {\n _classCallCheck(this, AddMorePopover);\n\n var _this = _possibleConstructorReturn(this, (AddMorePopover.__proto__ || Object.getPrototypeOf(AddMorePopover)).call(this, props));\n\n _this.state = {\n dndSource: new _DnDSource2.default(function (props) {\n return props.eventItem;\n }, _EventItem2.default)\n };\n return _this;\n }\n\n _createClass(AddMorePopover, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n headerItem = _props.headerItem,\n left = _props.left,\n top = _props.top,\n height = _props.height,\n closeAction = _props.closeAction,\n schedulerData = _props.schedulerData;\n var config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n var time = headerItem.time,\n start = headerItem.start,\n end = headerItem.end,\n events = headerItem.events;\n\n var header = localeMoment(time).format(config.addMorePopoverHeaderFormat);\n var durationStart = localeMoment(start);\n var durationEnd = localeMoment(end);\n var eventList = [];\n var i = 0;\n var DnDEventItem = this.state.dndSource.getDragSource();\n events.forEach(function (evt) {\n if (evt !== undefined) {\n i++;\n var eventStart = localeMoment(evt.eventItem.start);\n var eventEnd = localeMoment(evt.eventItem.end);\n var isStart = eventStart >= durationStart;\n var isEnd = eventEnd < durationEnd;\n var eventItemLeft = 10;\n var eventItemWidth = 138;\n var eventItemTop = 12 + i * config.eventItemLineHeight;\n var eventItem = _react2.default.createElement(DnDEventItem, _extends({}, _this2.props, {\n key: evt.eventItem.id,\n eventItem: evt.eventItem,\n leftIndex: 0,\n isInPopover: true,\n isStart: isStart,\n isEnd: isEnd,\n rightIndex: 1,\n left: eventItemLeft,\n width: eventItemWidth,\n top: eventItemTop\n }));\n eventList.push(eventItem);\n }\n });\n\n return _react2.default.createElement(\n 'div',\n { className: 'add-more-popover-overlay', style: { left: left, top: top, height: height, width: '170px' } },\n _react2.default.createElement(\n _row2.default,\n { type: 'flex', justify: 'space-between', align: 'middle' },\n _react2.default.createElement(\n _col2.default,\n { span: '22' },\n _react2.default.createElement(\n 'span',\n { className: 'base-text' },\n header\n )\n ),\n _react2.default.createElement(\n _col2.default,\n { span: '2' },\n _react2.default.createElement(\n 'span',\n { onClick: function onClick() {\n closeAction(undefined);\n } },\n _react2.default.createElement(_icon2.default, { type: 'cross' })\n )\n )\n ),\n eventList\n );\n }\n }]);\n\n return AddMorePopover;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n headerItem: _propTypes.PropTypes.object.isRequired,\n left: _propTypes.PropTypes.number.isRequired,\n top: _propTypes.PropTypes.number.isRequired,\n height: _propTypes.PropTypes.number.isRequired,\n closeAction: _propTypes.PropTypes.func.isRequired,\n subtitleGetter: _propTypes.PropTypes.func,\n moveEvent: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n eventItemTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = AddMorePopover;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _popover = require('antd/lib/popover');\n\nvar _popover2 = _interopRequireDefault(_popover);\n\nrequire('antd/lib/popover/style/index.css');\n\nvar _EventItemPopover = require('./EventItemPopover');\n\nvar _EventItemPopover2 = _interopRequireDefault(_EventItemPopover);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar AgendaEventItem = (_temp = _class = function (_Component) {\n _inherits(AgendaEventItem, _Component);\n\n function AgendaEventItem(props) {\n _classCallCheck(this, AgendaEventItem);\n\n return _possibleConstructorReturn(this, (AgendaEventItem.__proto__ || Object.getPrototypeOf(AgendaEventItem)).call(this, props));\n }\n\n _createClass(AgendaEventItem, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n eventItem = _props.eventItem,\n isStart = _props.isStart,\n isEnd = _props.isEnd,\n eventItemClick = _props.eventItemClick,\n schedulerData = _props.schedulerData,\n eventItemTemplateResolver = _props.eventItemTemplateResolver;\n var config = schedulerData.config;\n\n var roundCls = isStart ? isEnd ? 'round-all' : 'round-head' : isEnd ? 'round-tail' : 'round-none';\n var bgColor = config.defaultEventBgColor;\n if (!!eventItem.bgColor) bgColor = eventItem.bgColor;\n\n var titleText = schedulerData.behaviors.getEventTextFunc(schedulerData, eventItem);\n var content = _react2.default.createElement(_EventItemPopover2.default, _extends({}, this.props, {\n title: eventItem.title,\n startTime: eventItem.start,\n endTime: eventItem.end,\n statusColor: bgColor\n }));\n\n var eventItemTemplate = _react2.default.createElement(\n 'div',\n { className: roundCls + ' event-item', key: eventItem.id,\n style: { height: config.eventItemHeight, maxWidth: config.agendaMaxEventWidth, backgroundColor: bgColor } },\n _react2.default.createElement(\n 'span',\n { style: { marginLeft: '10px', lineHeight: config.eventItemHeight + 'px' } },\n titleText\n )\n );\n if (eventItemTemplateResolver != undefined) eventItemTemplate = eventItemTemplateResolver(schedulerData, eventItem, bgColor, isStart, isEnd, 'event-item', config.eventItemHeight, config.agendaMaxEventWidth);\n\n return config.eventItemPopoverEnabled ? _react2.default.createElement(\n _popover2.default,\n { placement: 'bottomLeft', content: content, trigger: 'hover' },\n _react2.default.createElement(\n 'a',\n { className: 'day-event', onClick: function onClick() {\n if (!!eventItemClick) eventItemClick(schedulerData, eventItem);\n } },\n eventItemTemplate\n )\n ) : _react2.default.createElement(\n 'span',\n null,\n _react2.default.createElement(\n 'a',\n { className: 'day-event', onClick: function onClick() {\n if (!!eventItemClick) eventItemClick(schedulerData, eventItem);\n } },\n eventItemTemplate\n )\n );\n }\n }]);\n\n return AgendaEventItem;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n eventItem: _propTypes.PropTypes.object.isRequired,\n isStart: _propTypes.PropTypes.bool.isRequired,\n isEnd: _propTypes.PropTypes.bool.isRequired,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n eventItemTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = AgendaEventItem;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _AgendaEventItem = require('./AgendaEventItem');\n\nvar _AgendaEventItem2 = _interopRequireDefault(_AgendaEventItem);\n\nvar _index = require('./index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar AgendaResourceEvents = (_temp = _class = function (_Component) {\n _inherits(AgendaResourceEvents, _Component);\n\n function AgendaResourceEvents(props) {\n _classCallCheck(this, AgendaResourceEvents);\n\n return _possibleConstructorReturn(this, (AgendaResourceEvents.__proto__ || Object.getPrototypeOf(AgendaResourceEvents)).call(this, props));\n }\n\n _createClass(AgendaResourceEvents, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n schedulerData = _props.schedulerData,\n resourceEvents = _props.resourceEvents,\n slotClickedFunc = _props.slotClickedFunc,\n slotItemTemplateResolver = _props.slotItemTemplateResolver;\n var startDate = schedulerData.startDate,\n endDate = schedulerData.endDate,\n config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n\n var agendaResourceTableWidth = schedulerData.getResourceTableWidth();\n var width = agendaResourceTableWidth - 2;\n\n var events = [];\n resourceEvents.headerItems.forEach(function (item) {\n var start = localeMoment(startDate).format(_index.DATE_FORMAT),\n end = localeMoment(endDate).add(1, 'days').format(_index.DATE_FORMAT),\n headerStart = localeMoment(item.start).format(_index.DATE_FORMAT),\n headerEnd = localeMoment(item.end).format(_index.DATE_FORMAT);\n\n if (start === headerStart && end === headerEnd) {\n item.events.forEach(function (evt) {\n var durationStart = localeMoment(startDate);\n var durationEnd = localeMoment(endDate).add(1, 'days');\n var eventStart = localeMoment(evt.eventItem.start);\n var eventEnd = localeMoment(evt.eventItem.end);\n var isStart = eventStart >= durationStart;\n var isEnd = eventEnd < durationEnd;\n var eventItem = _react2.default.createElement(_AgendaEventItem2.default, _extends({}, _this2.props, {\n key: evt.eventItem.id,\n eventItem: evt.eventItem,\n isStart: isStart,\n isEnd: isEnd\n }));\n events.push(eventItem);\n });\n }\n });\n\n var a = slotClickedFunc != undefined ? _react2.default.createElement(\n 'a',\n { onClick: function onClick() {\n slotClickedFunc(schedulerData, resourceEvents);\n } },\n resourceEvents.slotName\n ) : _react2.default.createElement(\n 'span',\n null,\n resourceEvents.slotName\n );\n var slotItem = _react2.default.createElement(\n 'div',\n { style: { width: width }, title: resourceEvents.slotName, className: 'overflow-text header2-text' },\n a\n );\n if (!!slotItemTemplateResolver) {\n var temp = slotItemTemplateResolver(schedulerData, resourceEvents, slotClickedFunc, width, \"overflow-text header2-text\");\n if (!!temp) slotItem = temp;\n }\n\n return _react2.default.createElement(\n 'tr',\n { style: { minHeight: config.eventItemLineHeight + 2 } },\n _react2.default.createElement(\n 'td',\n { 'data-resource-id': resourceEvents.slotId },\n slotItem\n ),\n _react2.default.createElement(\n 'td',\n null,\n _react2.default.createElement(\n 'div',\n { className: 'day-event-container' },\n events\n )\n )\n );\n }\n }]);\n\n return AgendaResourceEvents;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n resourceEvents: _propTypes.PropTypes.object.isRequired,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n slotClickedFunc: _propTypes.PropTypes.func,\n slotItemTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = AgendaResourceEvents;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _AgendaResourceEvents = require('./AgendaResourceEvents');\n\nvar _AgendaResourceEvents2 = _interopRequireDefault(_AgendaResourceEvents);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar AgendaView = (_temp = _class = function (_Component) {\n _inherits(AgendaView, _Component);\n\n function AgendaView(props) {\n _classCallCheck(this, AgendaView);\n\n return _possibleConstructorReturn(this, (AgendaView.__proto__ || Object.getPrototypeOf(AgendaView)).call(this, props));\n }\n\n _createClass(AgendaView, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var schedulerData = this.props.schedulerData;\n var config = schedulerData.config;\n var renderData = schedulerData.renderData;\n\n var agendaResourceTableWidth = schedulerData.getResourceTableWidth(),\n tableHeaderHeight = schedulerData.getTableHeaderHeight();\n var resourceEventsList = renderData.map(function (item) {\n return _react2.default.createElement(_AgendaResourceEvents2.default, _extends({}, _this2.props, {\n resourceEvents: item,\n key: item.slotId }));\n });\n var resourceName = schedulerData.isEventPerspective ? config.taskName : config.resourceName;\n var agendaViewHeader = config.agendaViewHeader;\n\n return _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n null,\n _react2.default.createElement(\n 'table',\n { className: 'scheduler-table' },\n _react2.default.createElement(\n 'thead',\n null,\n _react2.default.createElement(\n 'tr',\n { style: { height: tableHeaderHeight } },\n _react2.default.createElement(\n 'th',\n { style: { width: agendaResourceTableWidth }, className: 'header3-text' },\n resourceName\n ),\n _react2.default.createElement(\n 'th',\n { className: 'header3-text' },\n agendaViewHeader\n )\n )\n ),\n _react2.default.createElement(\n 'tbody',\n null,\n resourceEventsList\n )\n )\n )\n );\n }\n }]);\n\n return AgendaView;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n slotClickedFunc: _propTypes.PropTypes.func\n}, _temp);\nexports.default = AgendaView;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar BodyView = (_temp = _class = function (_Component) {\n _inherits(BodyView, _Component);\n\n function BodyView(props) {\n _classCallCheck(this, BodyView);\n\n return _possibleConstructorReturn(this, (BodyView.__proto__ || Object.getPrototypeOf(BodyView)).call(this, props));\n }\n\n _createClass(BodyView, [{\n key: 'render',\n value: function render() {\n var schedulerData = this.props.schedulerData;\n var renderData = schedulerData.renderData,\n headers = schedulerData.headers,\n config = schedulerData.config,\n behaviors = schedulerData.behaviors;\n\n var cellWidth = schedulerData.getContentCellWidth();\n\n var displayRenderData = renderData.filter(function (o) {\n return o.render;\n });\n var tableRows = displayRenderData.map(function (item) {\n var rowCells = headers.map(function (header, index) {\n var key = item.slotId + '_' + header.time;\n var style = index === headers.length - 1 ? {} : { width: cellWidth };\n if (!!header.nonWorkingTime) style = _extends({}, style, { backgroundColor: config.nonWorkingTimeBodyBgColor });\n if (item.groupOnly) style = _extends({}, style, { backgroundColor: config.groupOnlySlotColor });\n if (!!behaviors.getNonAgendaViewBodyCellBgColorFunc) {\n var cellBgColor = behaviors.getNonAgendaViewBodyCellBgColorFunc(schedulerData, item.slotId, header);\n if (!!cellBgColor) style = _extends({}, style, { backgroundColor: cellBgColor });\n }\n return _react2.default.createElement(\n 'td',\n { key: key, style: style },\n _react2.default.createElement('div', null)\n );\n });\n\n return _react2.default.createElement(\n 'tr',\n { key: item.slotId, style: { height: item.rowHeight } },\n rowCells\n );\n });\n\n return _react2.default.createElement(\n 'tbody',\n null,\n tableRows\n );\n }\n }]);\n\n return BodyView;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired\n}, _temp);\nexports.default = BodyView;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar CellUnits = {\n Day: 0,\n Hour: 1\n};\n\nexports.default = CellUnits;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar DemoData = {\n resources: [{\n id: 'r0',\n name: 'Resource0',\n groupOnly: true\n }, {\n id: 'r1',\n name: 'Resource1',\n parentId: 'r0'\n }, {\n id: 'r2',\n name: 'Resource2',\n parentId: 'r3'\n }, {\n id: 'r3',\n name: 'Resource3',\n parentId: 'r1'\n }, {\n id: 'r4',\n name: 'Resource4'\n }, {\n id: 'r5',\n name: 'Resource5'\n }, {\n id: 'r6',\n name: 'Resource6'\n }, {\n id: 'r7',\n name: 'Resource7Resource7Resource7Resource7Resource7'\n }],\n events: [{\n id: 1,\n start: '2017-12-18 09:30:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r1',\n title: 'I am finished',\n bgColor: '#D9D9D9',\n showPopover: false\n }, {\n id: 2,\n start: '2017-12-18 12:30:00',\n end: '2017-12-26 23:30:00',\n resourceId: 'r2',\n title: 'I am not resizable',\n resizable: false\n }, {\n id: 3,\n start: '2017-12-19 12:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r3',\n title: 'I am not movable',\n movable: false\n }, {\n id: 4,\n start: '2017-12-19 14:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r4',\n title: 'I am not start-resizable',\n startResizable: false\n }, {\n id: 5,\n start: '2017-12-19 15:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r5',\n title: 'I am not end-resizable',\n endResizable: false\n }, {\n id: 6,\n start: '2017-12-19 15:35:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r6',\n title: 'I am normal'\n }, {\n id: 7,\n start: '2017-12-19 15:40:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r7',\n title: 'I am exceptional',\n bgColor: '#FA9E95'\n }, {\n id: 8,\n start: '2017-12-19 15:50:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r1',\n title: 'I am locked',\n movable: false,\n resizable: false,\n bgColor: 'red'\n }, {\n id: 9,\n start: '2017-12-19 16:30:00',\n end: '2017-12-27 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 1'\n }, {\n id: 10,\n start: '2017-12-19 17:30:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r1',\n title: 'R1 has recurring tasks every week on Tuesday, Friday',\n rrule: 'FREQ=WEEKLY;DTSTART=20171219T013000Z;BYDAY=TU,FR',\n bgColor: '#f759ab'\n }, {\n id: 11,\n start: '2017-12-19 18:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 3'\n }, {\n id: 12,\n start: '2017-12-20 18:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 4'\n }, {\n id: 13,\n start: '2017-12-21 18:30:00',\n end: '2017-12-24 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 5'\n }, {\n id: 14,\n start: '2017-12-23 18:30:00',\n end: '2017-12-27 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 6'\n }],\n eventsForTaskView: [{\n id: 1,\n start: '2017-12-18 09:30:00',\n end: '2017-12-18 23:30:00',\n resourceId: 'r1',\n title: 'I am finished',\n bgColor: '#D9D9D9',\n groupId: 1,\n groupName: 'Task1'\n }, {\n id: 2,\n start: '2017-12-18 12:30:00',\n end: '2017-12-26 23:30:00',\n resourceId: 'r2',\n title: 'I am not resizable',\n resizable: false,\n groupId: 2,\n groupName: 'Task2'\n }, {\n id: 3,\n start: '2017-12-19 12:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r3',\n title: 'I am not movable',\n movable: false,\n groupId: 3,\n groupName: 'Task3'\n }, {\n id: 7,\n start: '2017-12-19 15:40:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r7',\n title: 'I am exceptional',\n bgColor: '#FA9E95',\n groupId: 4,\n groupName: 'Task4'\n }, {\n id: 4,\n start: '2017-12-20 14:30:00',\n end: '2017-12-21 23:30:00',\n resourceId: 'r4',\n title: 'I am not start-resizable',\n startResizable: false,\n groupId: 1,\n groupName: 'Task1'\n }, {\n id: 5,\n start: '2017-12-21 15:30:00',\n end: '2017-12-22 23:30:00',\n resourceId: 'r5',\n title: 'I am not end-resizable',\n endResizable: false,\n groupId: 3,\n groupName: 'Task3'\n }, {\n id: 9,\n start: '2017-12-21 16:30:00',\n end: '2017-12-21 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks',\n groupId: 4,\n groupName: 'Task4'\n }, {\n id: 6,\n start: '2017-12-22 15:35:00',\n end: '2017-12-23 23:30:00',\n resourceId: 'r6',\n title: 'I am normal',\n groupId: 1,\n groupName: 'Task1'\n }, {\n id: 8,\n start: '2017-12-25 15:50:00',\n end: '2017-12-26 23:30:00',\n resourceId: 'r1',\n title: 'I am locked',\n movable: false,\n resizable: false,\n bgColor: 'red',\n groupId: 1,\n groupName: 'Task1'\n }, {\n id: 10,\n start: '2017-12-26 18:30:00',\n end: '2017-12-26 23:30:00',\n resourceId: 'r2',\n title: 'R2 has many tasks',\n groupId: 4,\n groupName: 'Task4'\n }, {\n id: 11,\n start: '2017-12-27 18:30:00',\n end: '2017-12-27 23:30:00',\n resourceId: 'r14',\n title: 'R4 has many tasks',\n groupId: 4,\n groupName: 'Task4'\n }, {\n id: 12,\n start: '2017-12-28 18:30:00',\n end: '2017-12-28 23:30:00',\n resourceId: 'r6',\n title: 'R6 has many tasks',\n groupId: 3,\n groupName: 'Task3'\n }],\n eventsForCustomEventStyle: [{\n id: 1,\n start: '2017-12-18 09:30:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r1',\n title: 'I am finished',\n bgColor: '#D9D9D9',\n type: 1\n }, {\n id: 2,\n start: '2017-12-18 12:30:00',\n end: '2017-12-26 23:30:00',\n resourceId: 'r2',\n title: 'I am not resizable',\n resizable: false,\n type: 2\n }, {\n id: 3,\n start: '2017-12-19 12:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r3',\n title: 'I am not movable',\n movable: false,\n type: 3\n }, {\n id: 4,\n start: '2017-12-19 14:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r4',\n title: 'I am not start-resizable',\n startResizable: false,\n type: 1\n }, {\n id: 5,\n start: '2017-12-19 15:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r5',\n title: 'I am not end-resizable',\n endResizable: false,\n type: 2\n }, {\n id: 6,\n start: '2017-12-19 15:35:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r6',\n title: 'I am normal',\n type: 3\n }, {\n id: 7,\n start: '2017-12-19 15:40:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r7',\n title: 'I am exceptional',\n bgColor: '#FA9E95',\n type: 1\n }, {\n id: 8,\n start: '2017-12-19 15:50:00',\n end: '2017-12-19 23:30:00',\n resourceId: 'r1',\n title: 'I am locked',\n movable: false,\n resizable: false,\n bgColor: 'red',\n type: 2\n }, {\n id: 9,\n start: '2017-12-19 16:30:00',\n end: '2017-12-27 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 1',\n type: 3\n }, {\n id: 10,\n start: '2017-12-20 18:30:00',\n end: '2017-12-20 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 2',\n type: 1\n }, {\n id: 11,\n start: '2017-12-21 18:30:00',\n end: '2017-12-22 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 3',\n type: 2\n }, {\n id: 12,\n start: '2017-12-23 18:30:00',\n end: '2017-12-27 23:30:00',\n resourceId: 'r1',\n title: 'R1 has many tasks 4',\n type: 3\n }]\n};\n\nexports.default = DemoData;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _reactDnd = require('react-dnd');\n\nvar _Util = require('./Util');\n\nvar _DnDTypes = require('./DnDTypes');\n\nvar _index = require('./index');\n\nfunction _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); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar DnDContext = function DnDContext(sources, DecoratedComponent) {\n var _this = this;\n\n _classCallCheck(this, DnDContext);\n\n this.getDropSpec = function () {\n return {\n drop: function drop(props, monitor, component) {\n var schedulerData = props.schedulerData,\n resourceEvents = props.resourceEvents;\n var cellUnit = schedulerData.cellUnit,\n localeMoment = schedulerData.localeMoment;\n\n var type = monitor.getItemType();\n var pos = (0, _Util.getPos)(component.eventContainer);\n var cellWidth = schedulerData.getContentCellWidth();\n var initialStartTime = null,\n initialEndTime = null;\n if (type === _DnDTypes.DnDTypes.EVENT) {\n var initialPoint = monitor.getInitialClientOffset();\n var initialLeftIndex = Math.floor((initialPoint.x - pos.x) / cellWidth);\n initialStartTime = resourceEvents.headerItems[initialLeftIndex].start;\n initialEndTime = resourceEvents.headerItems[initialLeftIndex].end;\n if (cellUnit !== _index.CellUnits.Hour) initialEndTime = localeMoment(resourceEvents.headerItems[initialLeftIndex].start).hour(23).minute(59).second(59).format(_index.DATETIME_FORMAT);\n }\n var point = monitor.getClientOffset();\n var leftIndex = Math.floor((point.x - pos.x) / cellWidth);\n var startTime = resourceEvents.headerItems[leftIndex].start;\n var endTime = resourceEvents.headerItems[leftIndex].end;\n if (cellUnit !== _index.CellUnits.Hour) endTime = localeMoment(resourceEvents.headerItems[leftIndex].start).hour(23).minute(59).second(59).format(_index.DATETIME_FORMAT);\n\n return {\n slotId: resourceEvents.slotId,\n slotName: resourceEvents.slotName,\n start: startTime,\n end: endTime,\n initialStart: initialStartTime,\n initialEnd: initialEndTime\n };\n },\n\n hover: function hover(props, monitor, component) {\n var schedulerData = props.schedulerData,\n resourceEvents = props.resourceEvents,\n movingEvent = props.movingEvent;\n var cellUnit = schedulerData.cellUnit,\n config = schedulerData.config,\n viewType = schedulerData.viewType,\n localeMoment = schedulerData.localeMoment;\n\n var item = monitor.getItem();\n var type = monitor.getItemType();\n var pos = (0, _Util.getPos)(component.eventContainer);\n var cellWidth = schedulerData.getContentCellWidth();\n var initialStart = null,\n initialEnd = null;\n if (type === _DnDTypes.DnDTypes.EVENT) {\n var initialPoint = monitor.getInitialClientOffset();\n var initialLeftIndex = Math.floor((initialPoint.x - pos.x) / cellWidth);\n initialStart = resourceEvents.headerItems[initialLeftIndex].start;\n initialEnd = resourceEvents.headerItems[initialLeftIndex].end;\n if (cellUnit !== _index.CellUnits.Hour) initialEnd = localeMoment(resourceEvents.headerItems[initialLeftIndex].start).hour(23).minute(59).second(59).format(_index.DATETIME_FORMAT);\n }\n var point = monitor.getClientOffset();\n var leftIndex = Math.floor((point.x - pos.x) / cellWidth);\n var newStart = resourceEvents.headerItems[leftIndex].start;\n var newEnd = resourceEvents.headerItems[leftIndex].end;\n if (cellUnit !== _index.CellUnits.Hour) newEnd = localeMoment(resourceEvents.headerItems[leftIndex].start).hour(23).minute(59).second(59).format(_index.DATETIME_FORMAT);\n var slotId = resourceEvents.slotId,\n slotName = resourceEvents.slotName;\n var action = 'New';\n var isEvent = type === _DnDTypes.DnDTypes.EVENT;\n if (isEvent) {\n var event = item;\n if (config.relativeMove) {\n newStart = localeMoment(event.start).add(localeMoment(newStart).diff(localeMoment(initialStart)), 'ms').format(_index.DATETIME_FORMAT);\n } else {\n if (viewType !== ViewTypes.Day) {\n var tmpMoment = localeMoment(newStart);\n newStart = localeMoment(event.start).year(tmpMoment.year()).month(tmpMoment.month()).date(tmpMoment.date()).format(_index.DATETIME_FORMAT);\n }\n }\n newEnd = localeMoment(newStart).add(localeMoment(event.end).diff(localeMoment(event.start)), 'ms').format(_index.DATETIME_FORMAT);\n\n //if crossResourceMove disabled, slot returns old value\n if (config.crossResourceMove === false) {\n slotId = schedulerData._getEventSlotId(item);\n slotName = undefined;\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot) slotName = slot.name;\n }\n\n action = 'Move';\n }\n\n if (!!movingEvent) {\n movingEvent(schedulerData, slotId, slotName, newStart, newEnd, action, type, item);\n }\n },\n\n canDrop: function canDrop(props, monitor) {\n var schedulerData = props.schedulerData,\n resourceEvents = props.resourceEvents;\n\n var item = monitor.getItem();\n if (schedulerData._isResizing()) return false;\n var config = schedulerData.config;\n\n return config.movable && !resourceEvents.groupOnly && (item.movable == undefined || item.movable !== false);\n }\n };\n };\n\n this.getDropCollect = function (connect, monitor) {\n return {\n connectDropTarget: connect.dropTarget(),\n isOver: monitor.isOver()\n };\n };\n\n this.getDropTarget = function () {\n return (0, _reactDnd.DropTarget)([].concat(_toConsumableArray(_this.sourceMap.keys())), _this.getDropSpec(), _this.getDropCollect)(_this.DecoratedComponent);\n };\n\n this.getDndSource = function () {\n var dndType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _DnDTypes.DnDTypes.EVENT;\n\n return _this.sourceMap.get(dndType);\n };\n\n this.sourceMap = new Map();\n sources.forEach(function (item) {\n _this.sourceMap.set(item.dndType, item);\n });\n this.DecoratedComponent = DecoratedComponent;\n};\n\nexports.default = DnDContext;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _reactDnd = require('react-dnd');\n\nvar _index = require('./index');\n\nvar _DnDTypes = require('./DnDTypes');\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar DnDSource = function DnDSource(resolveDragObjFunc, DecoratedComponent) {\n var _this = this;\n\n var dndType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _DnDTypes.DnDTypes.EVENT;\n\n _classCallCheck(this, DnDSource);\n\n this.getDragSpec = function () {\n return {\n beginDrag: function beginDrag(props, monitor, component) {\n return _this.resolveDragObjFunc(props);\n },\n endDrag: function endDrag(props, monitor, component) {\n if (!monitor.didDrop()) return;\n\n var moveEvent = props.moveEvent,\n newEvent = props.newEvent,\n schedulerData = props.schedulerData;\n var events = schedulerData.events,\n config = schedulerData.config,\n viewType = schedulerData.viewType,\n localeMoment = schedulerData.localeMoment;\n\n var item = monitor.getItem();\n var type = monitor.getItemType();\n var dropResult = monitor.getDropResult();\n var slotId = dropResult.slotId,\n slotName = dropResult.slotName;\n var newStart = dropResult.start,\n newEnd = dropResult.end;\n var initialStart = dropResult.initialStart,\n initialEnd = dropResult.initialEnd;\n var action = 'New';\n\n var isEvent = type === _DnDTypes.DnDTypes.EVENT;\n if (isEvent) {\n var event = item;\n if (config.relativeMove) {\n newStart = localeMoment(event.start).add(localeMoment(newStart).diff(localeMoment(initialStart)), 'ms').format(_index.DATETIME_FORMAT);\n } else {\n if (viewType !== _index.ViewTypes.Day) {\n var tmpMoment = localeMoment(newStart);\n newStart = localeMoment(event.start).year(tmpMoment.year()).month(tmpMoment.month()).date(tmpMoment.date()).format(_index.DATETIME_FORMAT);\n }\n }\n newEnd = localeMoment(newStart).add(localeMoment(event.end).diff(localeMoment(event.start)), 'ms').format(_index.DATETIME_FORMAT);\n\n //if crossResourceMove disabled, slot returns old value\n if (config.crossResourceMove === false) {\n slotId = schedulerData._getEventSlotId(item);\n slotName = undefined;\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot) slotName = slot.name;\n }\n\n action = 'Move';\n }\n\n var hasConflict = false;\n if (config.checkConflict) {\n var start = localeMoment(newStart),\n end = localeMoment(newEnd);\n\n events.forEach(function (e) {\n if (schedulerData._getEventSlotId(e) === slotId && (!isEvent || e.id !== item.id)) {\n var eStart = localeMoment(e.start),\n eEnd = localeMoment(e.end);\n if (start >= eStart && start < eEnd || end > eStart && end <= eEnd || eStart >= start && eStart < end || eEnd > start && eEnd <= end) hasConflict = true;\n }\n });\n }\n\n if (hasConflict) {\n var conflictOccurred = props.conflictOccurred;\n\n if (conflictOccurred != undefined) {\n conflictOccurred(schedulerData, action, item, type, slotId, slotName, newStart, newEnd);\n } else {\n console.log('Conflict occurred, set conflictOccurred func in Scheduler to handle it');\n }\n } else {\n if (isEvent) {\n if (moveEvent !== undefined) {\n moveEvent(schedulerData, item, slotId, slotName, newStart, newEnd);\n }\n } else {\n if (newEvent !== undefined) newEvent(schedulerData, slotId, slotName, newStart, newEnd, type, item);\n }\n }\n },\n\n canDrag: function canDrag(props) {\n var schedulerData = props.schedulerData,\n resourceEvents = props.resourceEvents;\n\n var item = _this.resolveDragObjFunc(props);\n if (schedulerData._isResizing()) return false;\n var config = schedulerData.config;\n\n return config.movable && (resourceEvents == undefined || !resourceEvents.groupOnly) && (item.movable == undefined || item.movable !== false);\n }\n };\n };\n\n this.getDragCollect = function (connect, monitor) {\n return {\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging(),\n connectDragPreview: connect.dragPreview()\n };\n };\n\n this.getDragSource = function () {\n return _this.dragSource;\n };\n\n this.resolveDragObjFunc = resolveDragObjFunc;\n this.DecoratedComponent = DecoratedComponent;\n this.dndType = dndType;\n this.dragSource = (0, _reactDnd.DragSource)(this.dndType, this.getDragSpec(), this.getDragCollect)(this.DecoratedComponent);\n};\n\nexports.default = DnDSource;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar DnDTypes = exports.DnDTypes = {\n EVENT: 'event'\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp, _initialiseProps;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _popover = require('antd/lib/popover');\n\nvar _popover2 = _interopRequireDefault(_popover);\n\nrequire('antd/lib/popover/style/index.css');\n\nvar _EventItemPopover = require('./EventItemPopover');\n\nvar _EventItemPopover2 = _interopRequireDefault(_EventItemPopover);\n\nvar _index = require('./index');\n\nvar _DnDTypes = require('./DnDTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar supportTouch = 'ontouchstart' in window;\n\nvar EventItem = (_temp = _class = function (_Component) {\n _inherits(EventItem, _Component);\n\n function EventItem(props) {\n _classCallCheck(this, EventItem);\n\n var _this = _possibleConstructorReturn(this, (EventItem.__proto__ || Object.getPrototypeOf(EventItem)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var left = props.left,\n top = props.top,\n width = props.width;\n\n _this.state = {\n left: left,\n top: top,\n width: width\n };\n _this.startResizer = null;\n _this.endResizer = null;\n return _this;\n }\n\n _createClass(EventItem, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(np) {\n var left = np.left,\n top = np.top,\n width = np.width;\n\n this.setState({\n left: left,\n top: top,\n width: width\n });\n\n this.subscribeResizeEvent(np);\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.subscribeResizeEvent(this.props);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n eventItem = _props.eventItem,\n isStart = _props.isStart,\n isEnd = _props.isEnd,\n isInPopover = _props.isInPopover,\n eventItemClick = _props.eventItemClick,\n schedulerData = _props.schedulerData,\n isDragging = _props.isDragging,\n connectDragSource = _props.connectDragSource,\n connectDragPreview = _props.connectDragPreview,\n eventItemTemplateResolver = _props.eventItemTemplateResolver;\n var config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n var _state = this.state,\n left = _state.left,\n width = _state.width,\n top = _state.top;\n\n var roundCls = isStart ? isEnd ? 'round-all' : 'round-head' : isEnd ? 'round-tail' : 'round-none';\n var bgColor = config.defaultEventBgColor;\n if (!!eventItem.bgColor) bgColor = eventItem.bgColor;\n\n var titleText = schedulerData.behaviors.getEventTextFunc(schedulerData, eventItem);\n var content = _react2.default.createElement(_EventItemPopover2.default, _extends({}, this.props, {\n eventItem: eventItem,\n title: eventItem.title,\n startTime: eventItem.start,\n endTime: eventItem.end,\n statusColor: bgColor }));\n\n var start = localeMoment(eventItem.start);\n var eventTitle = isInPopover ? start.format('HH:mm') + ' ' + titleText : titleText;\n var startResizeDiv = _react2.default.createElement('div', null);\n if (this.startResizable(this.props)) startResizeDiv = _react2.default.createElement('div', { className: 'event-resizer event-start-resizer', ref: function ref(_ref) {\n return _this2.startResizer = _ref;\n } });\n var endResizeDiv = _react2.default.createElement('div', null);\n if (this.endResizable(this.props)) endResizeDiv = _react2.default.createElement('div', { className: 'event-resizer event-end-resizer', ref: function ref(_ref2) {\n return _this2.endResizer = _ref2;\n } });\n\n var eventItemTemplate = _react2.default.createElement(\n 'div',\n { className: roundCls + ' event-item', key: eventItem.id,\n style: { height: config.eventItemHeight, backgroundColor: bgColor } },\n _react2.default.createElement(\n 'span',\n { style: { marginLeft: '10px', lineHeight: config.eventItemHeight + 'px' } },\n eventTitle\n )\n );\n if (eventItemTemplateResolver != undefined) eventItemTemplate = eventItemTemplateResolver(schedulerData, eventItem, bgColor, isStart, isEnd, 'event-item', config.eventItemHeight, undefined);\n\n var a = _react2.default.createElement(\n 'a',\n { className: 'timeline-event', style: { left: left, width: width, top: top }, onClick: function onClick() {\n if (!!eventItemClick) eventItemClick(schedulerData, eventItem);\n } },\n eventItemTemplate,\n startResizeDiv,\n endResizeDiv\n );\n\n return isDragging ? null : schedulerData._isResizing() || config.eventItemPopoverEnabled == false || eventItem.showPopover == false ? _react2.default.createElement(\n 'div',\n null,\n connectDragPreview(connectDragSource(a))\n ) : _react2.default.createElement(\n _popover2.default,\n { placement: 'bottomLeft', content: content, trigger: 'hover' },\n connectDragPreview(connectDragSource(a))\n );\n }\n }]);\n\n return EventItem;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n eventItem: _propTypes.PropTypes.object.isRequired,\n isStart: _propTypes.PropTypes.bool.isRequired,\n isEnd: _propTypes.PropTypes.bool.isRequired,\n left: _propTypes.PropTypes.number.isRequired,\n width: _propTypes.PropTypes.number.isRequired,\n top: _propTypes.PropTypes.number.isRequired,\n isInPopover: _propTypes.PropTypes.bool.isRequired,\n leftIndex: _propTypes.PropTypes.number.isRequired,\n rightIndex: _propTypes.PropTypes.number.isRequired,\n isDragging: _propTypes.PropTypes.bool.isRequired,\n connectDragSource: _propTypes.PropTypes.func.isRequired,\n connectDragPreview: _propTypes.PropTypes.func.isRequired,\n updateEventStart: _propTypes.PropTypes.func,\n updateEventEnd: _propTypes.PropTypes.func,\n moveEvent: _propTypes.PropTypes.func,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n conflictOccurred: _propTypes.PropTypes.func,\n eventItemTemplateResolver: _propTypes.PropTypes.func\n}, _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.initStartDrag = function (ev) {\n var _props2 = _this3.props,\n schedulerData = _props2.schedulerData,\n eventItem = _props2.eventItem;\n\n var slotId = schedulerData._getEventSlotId(eventItem);\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot && !!slot.groupOnly) return;\n if (schedulerData._isResizing()) return;\n\n ev.stopPropagation();\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n if (ev.buttons !== undefined && ev.buttons !== 1) return;\n clientX = ev.clientX;\n }\n _this3.setState({\n startX: clientX\n });\n schedulerData._startResizing();\n if (supportTouch) {\n _this3.startResizer.addEventListener('touchmove', _this3.doStartDrag, false);\n _this3.startResizer.addEventListener('touchend', _this3.stopStartDrag, false);\n _this3.startResizer.addEventListener('touchcancel', _this3.cancelStartDrag, false);\n } else {\n document.documentElement.addEventListener('mousemove', _this3.doStartDrag, false);\n document.documentElement.addEventListener('mouseup', _this3.stopStartDrag, false);\n }\n document.onselectstart = function () {\n return false;\n };\n document.ondragstart = function () {\n return false;\n };\n };\n\n this.doStartDrag = function (ev) {\n ev.stopPropagation();\n\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n clientX = ev.clientX;\n }\n var _props3 = _this3.props,\n left = _props3.left,\n width = _props3.width,\n leftIndex = _props3.leftIndex,\n rightIndex = _props3.rightIndex,\n schedulerData = _props3.schedulerData;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var offset = leftIndex > 0 ? 5 : 6;\n var minWidth = cellWidth - offset;\n var maxWidth = rightIndex * cellWidth - offset;\n var startX = _this3.state.startX;\n\n var newLeft = left + clientX - startX;\n var newWidth = width + startX - clientX;\n if (newWidth < minWidth) {\n newWidth = minWidth;\n newLeft = (rightIndex - 1) * cellWidth + (rightIndex - 1 > 0 ? 2 : 3);\n } else if (newWidth > maxWidth) {\n newWidth = maxWidth;\n newLeft = 3;\n }\n\n _this3.setState({ left: newLeft, width: newWidth });\n };\n\n this.stopStartDrag = function (ev) {\n ev.stopPropagation();\n if (supportTouch) {\n _this3.startResizer.removeEventListener('touchmove', _this3.doStartDrag, false);\n _this3.startResizer.removeEventListener('touchend', _this3.stopStartDrag, false);\n _this3.startResizer.removeEventListener('touchcancel', _this3.cancelStartDrag, false);\n } else {\n document.documentElement.removeEventListener('mousemove', _this3.doStartDrag, false);\n document.documentElement.removeEventListener('mouseup', _this3.stopStartDrag, false);\n }\n document.onselectstart = null;\n document.ondragstart = null;\n var _props4 = _this3.props,\n width = _props4.width,\n left = _props4.left,\n top = _props4.top,\n leftIndex = _props4.leftIndex,\n rightIndex = _props4.rightIndex,\n schedulerData = _props4.schedulerData,\n eventItem = _props4.eventItem,\n updateEventStart = _props4.updateEventStart,\n conflictOccurred = _props4.conflictOccurred;\n\n schedulerData._stopResizing();\n if (_this3.state.width === width) return;\n\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) {\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n return;\n }\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n clientX = ev.clientX;\n }\n var cellUnit = schedulerData.cellUnit,\n events = schedulerData.events,\n config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var offset = leftIndex > 0 ? 5 : 6;\n var minWidth = cellWidth - offset;\n var maxWidth = rightIndex * cellWidth - offset;\n var startX = _this3.state.startX;\n\n var newWidth = width + startX - clientX;\n var deltaX = clientX - startX;\n var sign = deltaX < 0 ? -1 : deltaX === 0 ? 0 : 1;\n var count = (sign > 0 ? Math.floor(Math.abs(deltaX) / cellWidth) : Math.ceil(Math.abs(deltaX) / cellWidth)) * sign;\n if (newWidth < minWidth) count = rightIndex - leftIndex - 1;else if (newWidth > maxWidth) count = -leftIndex;\n var newStart = localeMoment(eventItem.start).add(cellUnit === _index.CellUnits.Hour ? count * config.minuteStep : count, cellUnit === _index.CellUnits.Hour ? 'minutes' : 'days').format(_index.DATETIME_FORMAT);\n if (count !== 0 && cellUnit !== _index.CellUnits.Hour && config.displayWeekend === false) {\n if (count > 0) {\n var tempCount = 0,\n i = 0;\n while (true) {\n i++;\n var tempStart = localeMoment(eventItem.start).add(i, 'days');\n var dayOfWeek = tempStart.weekday();\n if (dayOfWeek !== 0 && dayOfWeek !== 6) {\n tempCount++;\n if (tempCount === count) {\n newStart = tempStart.format(_index.DATETIME_FORMAT);\n break;\n }\n }\n }\n } else {\n var _tempCount = 0,\n _i = 0;\n while (true) {\n _i--;\n var _tempStart = localeMoment(eventItem.start).add(_i, 'days');\n var _dayOfWeek = _tempStart.weekday();\n if (_dayOfWeek !== 0 && _dayOfWeek !== 6) {\n _tempCount--;\n if (_tempCount === count) {\n newStart = _tempStart.format(_index.DATETIME_FORMAT);\n break;\n }\n }\n }\n }\n }\n\n var hasConflict = false;\n var slotId = schedulerData._getEventSlotId(eventItem);\n var slotName = undefined;\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot) slotName = slot.name;\n if (config.checkConflict) {\n var start = localeMoment(newStart),\n end = localeMoment(eventItem.end);\n\n events.forEach(function (e) {\n if (schedulerData._getEventSlotId(e) === slotId && e.id !== eventItem.id) {\n var eStart = localeMoment(e.start),\n eEnd = localeMoment(e.end);\n if (start >= eStart && start < eEnd || end > eStart && end <= eEnd || eStart >= start && eStart < end || eEnd > start && eEnd <= end) hasConflict = true;\n }\n });\n }\n\n if (hasConflict) {\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n\n if (conflictOccurred != undefined) {\n conflictOccurred(schedulerData, 'StartResize', eventItem, _DnDTypes.DnDTypes.EVENT, slotId, slotName, newStart, eventItem.end);\n } else {\n console.log('Conflict occurred, set conflictOccurred func in Scheduler to handle it');\n }\n _this3.subscribeResizeEvent(_this3.props);\n } else {\n if (updateEventStart != undefined) updateEventStart(schedulerData, eventItem, newStart);\n }\n };\n\n this.cancelStartDrag = function (ev) {\n ev.stopPropagation();\n\n _this3.startResizer.removeEventListener('touchmove', _this3.doStartDrag, false);\n _this3.startResizer.removeEventListener('touchend', _this3.stopStartDrag, false);\n _this3.startResizer.removeEventListener('touchcancel', _this3.cancelStartDrag, false);\n document.onselectstart = null;\n document.ondragstart = null;\n var _props5 = _this3.props,\n schedulerData = _props5.schedulerData,\n left = _props5.left,\n top = _props5.top,\n width = _props5.width;\n\n schedulerData._stopResizing();\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n };\n\n this.initEndDrag = function (ev) {\n var _props6 = _this3.props,\n schedulerData = _props6.schedulerData,\n eventItem = _props6.eventItem;\n\n var slotId = schedulerData._getEventSlotId(eventItem);\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot && !!slot.groupOnly) return;\n if (schedulerData._isResizing()) return;\n\n ev.stopPropagation();\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n if (ev.buttons !== undefined && ev.buttons !== 1) return;\n clientX = ev.clientX;\n }\n _this3.setState({\n endX: clientX\n });\n\n schedulerData._startResizing();\n if (supportTouch) {\n _this3.endResizer.addEventListener('touchmove', _this3.doEndDrag, false);\n _this3.endResizer.addEventListener('touchend', _this3.stopEndDrag, false);\n _this3.endResizer.addEventListener('touchcancel', _this3.cancelEndDrag, false);\n } else {\n document.documentElement.addEventListener('mousemove', _this3.doEndDrag, false);\n document.documentElement.addEventListener('mouseup', _this3.stopEndDrag, false);\n }\n document.onselectstart = function () {\n return false;\n };\n document.ondragstart = function () {\n return false;\n };\n };\n\n this.doEndDrag = function (ev) {\n ev.stopPropagation();\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n clientX = ev.clientX;\n }\n var _props7 = _this3.props,\n width = _props7.width,\n leftIndex = _props7.leftIndex,\n schedulerData = _props7.schedulerData;\n var headers = schedulerData.headers;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var offset = leftIndex > 0 ? 5 : 6;\n var minWidth = cellWidth - offset;\n var maxWidth = (headers.length - leftIndex) * cellWidth - offset;\n var endX = _this3.state.endX;\n\n\n var newWidth = width + clientX - endX;\n if (newWidth < minWidth) newWidth = minWidth;else if (newWidth > maxWidth) newWidth = maxWidth;\n\n _this3.setState({ width: newWidth });\n };\n\n this.stopEndDrag = function (ev) {\n ev.stopPropagation();\n\n if (supportTouch) {\n _this3.endResizer.removeEventListener('touchmove', _this3.doEndDrag, false);\n _this3.endResizer.removeEventListener('touchend', _this3.stopEndDrag, false);\n _this3.endResizer.removeEventListener('touchcancel', _this3.cancelEndDrag, false);\n } else {\n document.documentElement.removeEventListener('mousemove', _this3.doEndDrag, false);\n document.documentElement.removeEventListener('mouseup', _this3.stopEndDrag, false);\n }\n document.onselectstart = null;\n document.ondragstart = null;\n var _props8 = _this3.props,\n width = _props8.width,\n left = _props8.left,\n top = _props8.top,\n leftIndex = _props8.leftIndex,\n rightIndex = _props8.rightIndex,\n schedulerData = _props8.schedulerData,\n eventItem = _props8.eventItem,\n updateEventEnd = _props8.updateEventEnd,\n conflictOccurred = _props8.conflictOccurred;\n\n schedulerData._stopResizing();\n if (_this3.state.width === width) return;\n\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) {\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n return;\n }\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n clientX = ev.clientX;\n }\n var headers = schedulerData.headers,\n cellUnit = schedulerData.cellUnit,\n events = schedulerData.events,\n config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var offset = leftIndex > 0 ? 5 : 6;\n var minWidth = cellWidth - offset;\n var maxWidth = (headers.length - leftIndex) * cellWidth - offset;\n var endX = _this3.state.endX;\n\n\n var newWidth = width + clientX - endX;\n var deltaX = newWidth - width;\n var sign = deltaX < 0 ? -1 : deltaX === 0 ? 0 : 1;\n var count = (sign < 0 ? Math.floor(Math.abs(deltaX) / cellWidth) : Math.ceil(Math.abs(deltaX) / cellWidth)) * sign;\n if (newWidth < minWidth) count = leftIndex - rightIndex + 1;else if (newWidth > maxWidth) count = headers.length - rightIndex;\n var newEnd = localeMoment(eventItem.end).add(cellUnit === _index.CellUnits.Hour ? count * config.minuteStep : count, cellUnit === _index.CellUnits.Hour ? 'minutes' : 'days').format(_index.DATETIME_FORMAT);\n if (count !== 0 && cellUnit !== _index.CellUnits.Hour && config.displayWeekend === false) {\n if (count > 0) {\n var tempCount = 0,\n i = 0;\n while (true) {\n i++;\n var tempEnd = localeMoment(eventItem.end).add(i, 'days');\n var dayOfWeek = tempEnd.weekday();\n if (dayOfWeek !== 0 && dayOfWeek !== 6) {\n tempCount++;\n if (tempCount === count) {\n newEnd = tempEnd.format(_index.DATETIME_FORMAT);\n break;\n }\n }\n }\n } else {\n var _tempCount2 = 0,\n _i2 = 0;\n while (true) {\n _i2--;\n var _tempEnd = localeMoment(eventItem.end).add(_i2, 'days');\n var _dayOfWeek2 = _tempEnd.weekday();\n if (_dayOfWeek2 !== 0 && _dayOfWeek2 !== 6) {\n _tempCount2--;\n if (_tempCount2 === count) {\n newEnd = _tempEnd.format(_index.DATETIME_FORMAT);\n break;\n }\n }\n }\n }\n }\n\n var hasConflict = false;\n var slotId = schedulerData._getEventSlotId(eventItem);\n var slotName = undefined;\n var slot = schedulerData.getSlotById(slotId);\n if (!!slot) slotName = slot.name;\n if (config.checkConflict) {\n var start = localeMoment(eventItem.start),\n end = localeMoment(newEnd);\n\n events.forEach(function (e) {\n if (schedulerData._getEventSlotId(e) === slotId && e.id !== eventItem.id) {\n var eStart = localeMoment(e.start),\n eEnd = localeMoment(e.end);\n if (start >= eStart && start < eEnd || end > eStart && end <= eEnd || eStart >= start && eStart < end || eEnd > start && eEnd <= end) hasConflict = true;\n }\n });\n }\n\n if (hasConflict) {\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n\n if (conflictOccurred != undefined) {\n conflictOccurred(schedulerData, 'EndResize', eventItem, _DnDTypes.DnDTypes.EVENT, slotId, slotName, eventItem.start, newEnd);\n } else {\n console.log('Conflict occurred, set conflictOccurred func in Scheduler to handle it');\n }\n _this3.subscribeResizeEvent(_this3.props);\n } else {\n if (updateEventEnd != undefined) updateEventEnd(schedulerData, eventItem, newEnd);\n }\n };\n\n this.cancelEndDrag = function (ev) {\n ev.stopPropagation();\n\n _this3.endResizer.removeEventListener('touchmove', _this3.doEndDrag, false);\n _this3.endResizer.removeEventListener('touchend', _this3.stopEndDrag, false);\n _this3.endResizer.removeEventListener('touchcancel', _this3.cancelEndDrag, false);\n document.onselectstart = null;\n document.ondragstart = null;\n var _props9 = _this3.props,\n schedulerData = _props9.schedulerData,\n left = _props9.left,\n top = _props9.top,\n width = _props9.width;\n\n schedulerData._stopResizing();\n _this3.setState({\n left: left,\n top: top,\n width: width\n });\n };\n\n this.startResizable = function (props) {\n var eventItem = props.eventItem,\n isInPopover = props.isInPopover,\n schedulerData = props.schedulerData;\n var config = schedulerData.config;\n\n return config.startResizable === true && isInPopover === false && (eventItem.resizable == undefined || eventItem.resizable !== false) && (eventItem.startResizable == undefined || eventItem.startResizable !== false);\n };\n\n this.endResizable = function (props) {\n var eventItem = props.eventItem,\n isInPopover = props.isInPopover,\n schedulerData = props.schedulerData;\n var config = schedulerData.config;\n\n return config.endResizable === true && isInPopover === false && (eventItem.resizable == undefined || eventItem.resizable !== false) && (eventItem.endResizable == undefined || eventItem.endResizable !== false);\n };\n\n this.subscribeResizeEvent = function (props) {\n if (_this3.startResizer != undefined) {\n if (supportTouch) {\n // this.startResizer.removeEventListener('touchstart', this.initStartDrag, false);\n // if (this.startResizable(props))\n // this.startResizer.addEventListener('touchstart', this.initStartDrag, false);\n } else {\n _this3.startResizer.removeEventListener('mousedown', _this3.initStartDrag, false);\n if (_this3.startResizable(props)) _this3.startResizer.addEventListener('mousedown', _this3.initStartDrag, false);\n }\n }\n if (_this3.endResizer != undefined) {\n if (supportTouch) {\n // this.endResizer.removeEventListener('touchstart', this.initEndDrag, false);\n // if (this.endResizable(props))\n // this.endResizer.addEventListener('touchstart', this.initEndDrag, false);\n } else {\n _this3.endResizer.removeEventListener('mousedown', _this3.initEndDrag, false);\n if (_this3.endResizable(props)) _this3.endResizer.addEventListener('mousedown', _this3.initEndDrag, false);\n }\n }\n };\n}, _temp);\nexports.default = EventItem;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _col2 = require('antd/lib/col');\n\nvar _col3 = _interopRequireDefault(_col2);\n\nvar _row = require('antd/lib/row');\n\nvar _row2 = _interopRequireDefault(_row);\n\nrequire('antd/lib/grid/style/index.css');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar EventItemPopover = (_temp = _class = function (_Component) {\n _inherits(EventItemPopover, _Component);\n\n function EventItemPopover(props) {\n _classCallCheck(this, EventItemPopover);\n\n return _possibleConstructorReturn(this, (EventItemPopover.__proto__ || Object.getPrototypeOf(EventItemPopover)).call(this, props));\n }\n\n _createClass(EventItemPopover, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n schedulerData = _props.schedulerData,\n eventItem = _props.eventItem,\n title = _props.title,\n startTime = _props.startTime,\n endTime = _props.endTime,\n statusColor = _props.statusColor,\n subtitleGetter = _props.subtitleGetter,\n viewEventClick = _props.viewEventClick,\n viewEventText = _props.viewEventText,\n viewEvent2Click = _props.viewEvent2Click,\n viewEvent2Text = _props.viewEvent2Text,\n eventItemPopoverTemplateResolver = _props.eventItemPopoverTemplateResolver;\n var localeMoment = schedulerData.localeMoment,\n config = schedulerData.config;\n\n var start = localeMoment(startTime),\n end = localeMoment(endTime);\n\n if (eventItemPopoverTemplateResolver != undefined) {\n return eventItemPopoverTemplateResolver(schedulerData, eventItem, title, start, end, statusColor);\n } else {\n var subtitleRow = _react2.default.createElement('div', null);\n if (subtitleGetter !== undefined) {\n var subtitle = subtitleGetter(schedulerData, eventItem);\n if (subtitle != undefined) {\n subtitleRow = _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle' },\n _react2.default.createElement(\n _col3.default,\n { span: 2 },\n _react2.default.createElement('div', null)\n ),\n _react2.default.createElement(\n _col3.default,\n { span: 22, className: 'overflow-text' },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', title: subtitle },\n subtitle\n )\n )\n );\n }\n }\n\n var opsRow = _react2.default.createElement('div', null);\n if (viewEventText !== undefined && viewEventClick !== undefined && (eventItem.clickable1 == undefined || eventItem.clickable1)) {\n var col = _react2.default.createElement(\n _col3.default,\n { span: 22 },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', style: { color: '#108EE9', cursor: 'pointer' }, onClick: function onClick() {\n viewEventClick(schedulerData, eventItem);\n } },\n viewEventText\n )\n );\n if (viewEvent2Text !== undefined && viewEvent2Click !== undefined && (eventItem.clickable2 == undefined || eventItem.clickable2)) {\n col = _react2.default.createElement(\n _col3.default,\n { span: 22 },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', style: { color: '#108EE9', cursor: 'pointer' }, onClick: function onClick() {\n viewEventClick(schedulerData, eventItem);\n } },\n viewEventText\n ),\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', style: { color: '#108EE9', cursor: 'pointer', marginLeft: '16px' }, onClick: function onClick() {\n viewEvent2Click(schedulerData, eventItem);\n } },\n viewEvent2Text\n )\n );\n };\n opsRow = _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle' },\n _react2.default.createElement(\n _col3.default,\n { span: 2 },\n _react2.default.createElement('div', null)\n ),\n col\n );\n } else if (viewEvent2Text !== undefined && viewEvent2Click !== undefined && (eventItem.clickable2 == undefined || eventItem.clickable2)) {\n var _col = _react2.default.createElement(\n _col3.default,\n { span: 22 },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', style: { color: '#108EE9', cursor: 'pointer' }, onClick: function onClick() {\n viewEvent2Click(schedulerData, eventItem);\n } },\n viewEvent2Text\n )\n );\n opsRow = _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle' },\n _react2.default.createElement(\n _col3.default,\n { span: 2 },\n _react2.default.createElement('div', null)\n ),\n _col\n );\n }\n\n var dateFormat = config.eventItemPopoverDateFormat;\n return _react2.default.createElement(\n 'div',\n { style: { width: '300px' } },\n _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle' },\n _react2.default.createElement(\n _col3.default,\n { span: 2 },\n _react2.default.createElement('div', { className: 'status-dot', style: { backgroundColor: statusColor } })\n ),\n _react2.default.createElement(\n _col3.default,\n { span: 22, className: 'overflow-text' },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', title: title },\n title\n )\n )\n ),\n subtitleRow,\n _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle' },\n _react2.default.createElement(\n _col3.default,\n { span: 2 },\n _react2.default.createElement('div', null)\n ),\n _react2.default.createElement(\n _col3.default,\n { span: 22 },\n _react2.default.createElement(\n 'span',\n { className: 'header1-text' },\n start.format('HH:mm')\n ),\n _react2.default.createElement(\n 'span',\n { className: 'help-text', style: { marginLeft: '8px' } },\n start.format(dateFormat)\n ),\n _react2.default.createElement(\n 'span',\n { className: 'header2-text', style: { marginLeft: '8px' } },\n '-'\n ),\n _react2.default.createElement(\n 'span',\n { className: 'header1-text', style: { marginLeft: '8px' } },\n end.format('HH:mm')\n ),\n _react2.default.createElement(\n 'span',\n { className: 'help-text', style: { marginLeft: '8px' } },\n end.format(dateFormat)\n )\n )\n ),\n opsRow\n );\n }\n }\n }]);\n\n return EventItemPopover;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n eventItem: _propTypes.PropTypes.object.isRequired,\n title: _propTypes.PropTypes.string.isRequired,\n startTime: _propTypes.PropTypes.string.isRequired,\n endTime: _propTypes.PropTypes.string.isRequired,\n statusColor: _propTypes.PropTypes.string.isRequired,\n subtitleGetter: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n eventItemPopoverTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = EventItemPopover;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _index = require('./index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar HeaderView = (_temp = _class = function (_Component) {\n _inherits(HeaderView, _Component);\n\n function HeaderView(props) {\n _classCallCheck(this, HeaderView);\n\n return _possibleConstructorReturn(this, (HeaderView.__proto__ || Object.getPrototypeOf(HeaderView)).call(this, props));\n }\n\n _createClass(HeaderView, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n schedulerData = _props.schedulerData,\n nonAgendaCellHeaderTemplateResolver = _props.nonAgendaCellHeaderTemplateResolver;\n var headers = schedulerData.headers,\n cellUnit = schedulerData.cellUnit,\n config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n\n var headerHeight = schedulerData.getTableHeaderHeight();\n var cellWidth = schedulerData.getContentCellWidth();\n var minuteStepsInHour = schedulerData.getMinuteStepsInHour();\n\n var headerList = [];\n var style = {};\n if (cellUnit === _index.CellUnits.Hour) {\n headers.forEach(function (item, index) {\n if (index % minuteStepsInHour === 0) {\n var datetime = localeMoment(item.time);\n var isCurrentTime = datetime.isSame(new Date(), 'hour');\n\n style = !!item.nonWorkingTime ? { width: cellWidth * minuteStepsInHour, color: config.nonWorkingTimeHeadColor, backgroundColor: config.nonWorkingTimeHeadBgColor } : { width: cellWidth * minuteStepsInHour };\n\n if (index === headers.length - minuteStepsInHour) style = !!item.nonWorkingTime ? { color: config.nonWorkingTimeHeadColor, backgroundColor: config.nonWorkingTimeHeadBgColor } : {};\n\n var pFormattedList = config.nonAgendaDayCellHeaderFormat.split('|').map(function (item) {\n return datetime.format(item);\n });\n var element = void 0;\n\n if (typeof nonAgendaCellHeaderTemplateResolver === 'function') {\n element = nonAgendaCellHeaderTemplateResolver(schedulerData, item, pFormattedList, style);\n } else {\n var pList = pFormattedList.map(function (item, index) {\n return _react2.default.createElement(\n 'div',\n { key: index },\n item\n );\n });\n\n element = _react2.default.createElement(\n 'th',\n { key: item.time, className: 'header3-text', style: style },\n _react2.default.createElement(\n 'div',\n null,\n pList\n )\n );\n }\n\n headerList.push(element);\n }\n });\n } else {\n headerList = headers.map(function (item, index) {\n var datetime = localeMoment(item.time);\n style = !!item.nonWorkingTime ? { width: cellWidth, color: config.nonWorkingTimeHeadColor, backgroundColor: config.nonWorkingTimeHeadBgColor } : { width: cellWidth };\n if (index === headers.length - 1) style = !!item.nonWorkingTime ? { color: config.nonWorkingTimeHeadColor, backgroundColor: config.nonWorkingTimeHeadBgColor } : {};\n\n var pFormattedList = config.nonAgendaOtherCellHeaderFormat.split('|').map(function (item) {\n return datetime.format(item);\n });\n\n if (typeof nonAgendaCellHeaderTemplateResolver === 'function') {\n return nonAgendaCellHeaderTemplateResolver(schedulerData, item, pFormattedList, style);\n }\n\n var pList = pFormattedList.map(function (item, index) {\n return _react2.default.createElement(\n 'div',\n { key: index },\n item\n );\n });\n\n return _react2.default.createElement(\n 'th',\n { key: item.time, className: 'header3-text', style: style },\n _react2.default.createElement(\n 'div',\n null,\n pList\n )\n );\n });\n }\n\n return _react2.default.createElement(\n 'thead',\n null,\n _react2.default.createElement(\n 'tr',\n { style: { height: headerHeight } },\n headerList\n )\n );\n }\n }]);\n\n return HeaderView;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n nonAgendaCellHeaderTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = HeaderView;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _AddMore = require('./AddMore');\n\nvar _AddMore2 = _interopRequireDefault(_AddMore);\n\nvar _Summary = require('./Summary');\n\nvar _Summary2 = _interopRequireDefault(_Summary);\n\nvar _SelectedArea = require('./SelectedArea');\n\nvar _SelectedArea2 = _interopRequireDefault(_SelectedArea);\n\nvar _index = require('./index');\n\nvar _Util = require('./Util');\n\nvar _DnDTypes = require('./DnDTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar supportTouch = 'ontouchstart' in window;\n\nvar ResourceEvents = (_temp = _class = function (_Component) {\n _inherits(ResourceEvents, _Component);\n\n function ResourceEvents(props) {\n _classCallCheck(this, ResourceEvents);\n\n var _this = _possibleConstructorReturn(this, (ResourceEvents.__proto__ || Object.getPrototypeOf(ResourceEvents)).call(this, props));\n\n _this.initDrag = function (ev) {\n var isSelecting = _this.state.isSelecting;\n\n if (isSelecting) return;\n if ((ev.srcElement || ev.target) !== _this.eventContainer) return;\n\n ev.stopPropagation();\n\n var resourceEvents = _this.props.resourceEvents;\n\n if (resourceEvents.groupOnly) return;\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n if (ev.buttons !== undefined && ev.buttons !== 1) return;\n clientX = ev.clientX;\n }\n\n var schedulerData = _this.props.schedulerData;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var pos = (0, _Util.getPos)(_this.eventContainer);\n var startX = clientX - pos.x;\n var leftIndex = Math.floor(startX / cellWidth);\n var left = leftIndex * cellWidth;\n var rightIndex = Math.ceil(startX / cellWidth);\n var width = (rightIndex - leftIndex) * cellWidth;\n\n _this.setState({\n startX: startX,\n left: left,\n leftIndex: leftIndex,\n width: width,\n rightIndex: rightIndex,\n isSelecting: true\n });\n\n if (supportTouch) {\n document.documentElement.addEventListener('touchmove', _this.doDrag, false);\n document.documentElement.addEventListener('touchend', _this.stopDrag, false);\n document.documentElement.addEventListener('touchcancel', _this.cancelDrag, false);\n } else {\n document.documentElement.addEventListener('mousemove', _this.doDrag, false);\n document.documentElement.addEventListener('mouseup', _this.stopDrag, false);\n }\n document.onselectstart = function () {\n return false;\n };\n document.ondragstart = function () {\n return false;\n };\n };\n\n _this.doDrag = function (ev) {\n ev.stopPropagation();\n\n var clientX = 0;\n if (supportTouch) {\n if (ev.changedTouches.length == 0) return;\n var touch = ev.changedTouches[0];\n clientX = touch.pageX;\n } else {\n clientX = ev.clientX;\n }\n var startX = _this.state.startX;\n var schedulerData = _this.props.schedulerData;\n var headers = schedulerData.headers;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var pos = (0, _Util.getPos)(_this.eventContainer);\n var currentX = clientX - pos.x;\n var leftIndex = Math.floor(Math.min(startX, currentX) / cellWidth);\n leftIndex = leftIndex < 0 ? 0 : leftIndex;\n var left = leftIndex * cellWidth;\n var rightIndex = Math.ceil(Math.max(startX, currentX) / cellWidth);\n rightIndex = rightIndex > headers.length ? headers.length : rightIndex;\n var width = (rightIndex - leftIndex) * cellWidth;\n\n _this.setState({\n leftIndex: leftIndex,\n left: left,\n rightIndex: rightIndex,\n width: width,\n isSelecting: true\n });\n };\n\n _this.stopDrag = function (ev) {\n ev.stopPropagation();\n\n var _this$props = _this.props,\n schedulerData = _this$props.schedulerData,\n newEvent = _this$props.newEvent,\n resourceEvents = _this$props.resourceEvents;\n var headers = schedulerData.headers,\n events = schedulerData.events,\n config = schedulerData.config,\n cellUnit = schedulerData.cellUnit,\n localeMoment = schedulerData.localeMoment;\n var _this$state = _this.state,\n leftIndex = _this$state.leftIndex,\n rightIndex = _this$state.rightIndex;\n\n if (supportTouch) {\n document.documentElement.removeEventListener('touchmove', _this.doDrag, false);\n document.documentElement.removeEventListener('touchend', _this.stopDrag, false);\n document.documentElement.removeEventListener('touchcancel', _this.cancelDrag, false);\n } else {\n document.documentElement.removeEventListener('mousemove', _this.doDrag, false);\n document.documentElement.removeEventListener('mouseup', _this.stopDrag, false);\n }\n document.onselectstart = null;\n document.ondragstart = null;\n\n var startTime = headers[leftIndex].time;\n var endTime = resourceEvents.headerItems[rightIndex - 1].end;\n if (cellUnit !== _index.CellUnits.Hour) endTime = localeMoment(resourceEvents.headerItems[rightIndex - 1].start).hour(23).minute(59).second(59).format(_index.DATETIME_FORMAT);\n var slotId = resourceEvents.slotId;\n var slotName = resourceEvents.slotName;\n\n _this.setState({\n startX: 0,\n leftIndex: 0,\n left: 0,\n rightIndex: 0,\n width: 0,\n isSelecting: false\n });\n\n var hasConflict = false;\n if (config.checkConflict) {\n var start = localeMoment(startTime),\n end = localeMoment(endTime);\n\n events.forEach(function (e) {\n if (schedulerData._getEventSlotId(e) === slotId) {\n var eStart = localeMoment(e.start),\n eEnd = localeMoment(e.end);\n if (start >= eStart && start < eEnd || end > eStart && end <= eEnd || eStart >= start && eStart < end || eEnd > start && eEnd <= end) hasConflict = true;\n }\n });\n }\n\n if (hasConflict) {\n var conflictOccurred = _this.props.conflictOccurred;\n\n if (conflictOccurred != undefined) {\n conflictOccurred(schedulerData, 'New', {\n id: undefined,\n start: startTime,\n end: endTime,\n slotId: slotId,\n slotName: slotName,\n title: undefined\n }, _DnDTypes.DnDTypes.EVENT, slotId, slotName, startTime, endTime);\n } else {\n console.log('Conflict occurred, set conflictOccurred func in Scheduler to handle it');\n }\n } else {\n if (newEvent != undefined) newEvent(schedulerData, slotId, slotName, startTime, endTime);\n }\n };\n\n _this.cancelDrag = function (ev) {\n ev.stopPropagation();\n\n var isSelecting = _this.state.isSelecting;\n\n if (isSelecting) {\n document.documentElement.removeEventListener('touchmove', _this.doDrag, false);\n document.documentElement.removeEventListener('touchend', _this.stopDrag, false);\n document.documentElement.removeEventListener('touchcancel', _this.cancelDrag, false);\n document.onselectstart = null;\n document.ondragstart = null;\n _this.setState({\n startX: 0,\n leftIndex: 0,\n left: 0,\n rightIndex: 0,\n width: 0,\n isSelecting: false\n });\n }\n };\n\n _this.onAddMoreClick = function (headerItem) {\n var _this$props2 = _this.props,\n onSetAddMoreState = _this$props2.onSetAddMoreState,\n resourceEvents = _this$props2.resourceEvents,\n schedulerData = _this$props2.schedulerData;\n\n if (!!onSetAddMoreState) {\n var config = schedulerData.config;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var index = resourceEvents.headerItems.indexOf(headerItem);\n if (index !== -1) {\n var left = index * (cellWidth - 1);\n var pos = (0, _Util.getPos)(_this.eventContainer);\n left = left + pos.x;\n var top = pos.y;\n var height = (headerItem.count + 1) * config.eventItemLineHeight + 20;\n\n onSetAddMoreState({\n headerItem: headerItem,\n left: left,\n top: top,\n height: height\n });\n }\n }\n };\n\n _this.eventContainerRef = function (element) {\n _this.eventContainer = element;\n };\n\n _this.state = {\n isSelecting: false,\n left: 0,\n width: 0\n };\n return _this;\n }\n\n _createClass(ResourceEvents, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var schedulerData = this.props.schedulerData;\n var config = schedulerData.config;\n\n if (config.creatable === true) {\n if (supportTouch) {\n // this.eventContainer.addEventListener('touchstart', this.initDrag, false);\n } else {\n this.eventContainer.addEventListener('mousedown', this.initDrag, false);\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(np) {\n if (supportTouch) {\n // this.eventContainer.removeEventListener('touchstart', this.initDrag, false);\n } else {\n this.eventContainer.removeEventListener('mousedown', this.initDrag, false);\n }\n if (np.schedulerData.config.creatable) {\n if (supportTouch) {\n // this.eventContainer.addEventListener('touchstart', this.initDrag, false);\n } else {\n this.eventContainer.addEventListener('mousedown', this.initDrag, false);\n }\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n resourceEvents = _props.resourceEvents,\n schedulerData = _props.schedulerData,\n connectDropTarget = _props.connectDropTarget,\n dndSource = _props.dndSource;\n var cellUnit = schedulerData.cellUnit,\n startDate = schedulerData.startDate,\n endDate = schedulerData.endDate,\n config = schedulerData.config,\n localeMoment = schedulerData.localeMoment;\n var _state = this.state,\n isSelecting = _state.isSelecting,\n left = _state.left,\n width = _state.width;\n\n var cellWidth = schedulerData.getContentCellWidth();\n var cellMaxEvents = schedulerData.getCellMaxEvents();\n var rowWidth = schedulerData.getContentTableWidth();\n var DnDEventItem = dndSource.getDragSource();\n\n var selectedArea = isSelecting ? _react2.default.createElement(_SelectedArea2.default, _extends({}, this.props, { left: left, width: width })) : _react2.default.createElement('div', null);\n\n var eventList = [];\n resourceEvents.headerItems.forEach(function (headerItem, index) {\n\n if (headerItem.count > 0 || headerItem.summary != undefined) {\n\n var isTop = config.summaryPos === _index.SummaryPos.TopRight || config.summaryPos === _index.SummaryPos.Top || config.summaryPos === _index.SummaryPos.TopLeft;\n var marginTop = resourceEvents.hasSummary && isTop ? 1 + config.eventItemLineHeight : 1;\n var renderEventsMaxIndex = headerItem.addMore === 0 ? cellMaxEvents : headerItem.addMoreIndex;\n\n headerItem.events.forEach(function (evt, idx) {\n if (idx < renderEventsMaxIndex && evt !== undefined && evt.render) {\n var durationStart = localeMoment(startDate);\n var durationEnd = localeMoment(endDate).add(1, 'days');\n if (cellUnit === _index.CellUnits.Hour) {\n durationStart = localeMoment(startDate).add(config.dayStartFrom, 'hours');\n durationEnd = localeMoment(endDate).add(config.dayStopTo + 1, 'hours');\n }\n var eventStart = localeMoment(evt.eventItem.start);\n var eventEnd = localeMoment(evt.eventItem.end);\n var isStart = eventStart >= durationStart;\n var isEnd = eventEnd <= durationEnd;\n var _left = index * cellWidth + (index > 0 ? 2 : 3);\n var _width = evt.span * cellWidth - (index > 0 ? 5 : 6) > 0 ? evt.span * cellWidth - (index > 0 ? 5 : 6) : 0;\n var top = marginTop + idx * config.eventItemLineHeight;\n var eventItem = _react2.default.createElement(DnDEventItem, _extends({}, _this2.props, {\n key: evt.eventItem.id,\n eventItem: evt.eventItem,\n isStart: isStart,\n isEnd: isEnd,\n isInPopover: false,\n left: _left,\n width: _width,\n top: top,\n leftIndex: index,\n rightIndex: index + evt.span\n }));\n eventList.push(eventItem);\n }\n });\n\n if (headerItem.addMore > 0) {\n var _left2 = index * cellWidth + (index > 0 ? 2 : 3);\n var _width2 = cellWidth - (index > 0 ? 5 : 6);\n var top = marginTop + headerItem.addMoreIndex * config.eventItemLineHeight;\n var addMoreItem = _react2.default.createElement(_AddMore2.default, _extends({}, _this2.props, {\n key: headerItem.time,\n headerItem: headerItem,\n number: headerItem.addMore,\n left: _left2,\n width: _width2,\n top: top,\n clickAction: _this2.onAddMoreClick\n }));\n eventList.push(addMoreItem);\n }\n\n if (headerItem.summary != undefined) {\n var _top = isTop ? 1 : resourceEvents.rowHeight - config.eventItemLineHeight + 1;\n var _left3 = index * cellWidth + (index > 0 ? 2 : 3);\n var _width3 = cellWidth - (index > 0 ? 5 : 6);\n var key = resourceEvents.slotId + '_' + headerItem.time;\n var summary = _react2.default.createElement(_Summary2.default, { key: key, schedulerData: schedulerData, summary: headerItem.summary, left: _left3, width: _width3, top: _top });\n eventList.push(summary);\n }\n }\n });\n\n return _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n { style: { width: rowWidth } },\n connectDropTarget(_react2.default.createElement(\n 'div',\n { ref: this.eventContainerRef, className: 'event-container', style: { height: resourceEvents.rowHeight } },\n selectedArea,\n eventList\n ))\n )\n );\n }\n }]);\n\n return ResourceEvents;\n}(_react.Component), _class.propTypes = {\n resourceEvents: _propTypes.PropTypes.object.isRequired,\n schedulerData: _propTypes.PropTypes.object.isRequired,\n dndSource: _propTypes.PropTypes.object.isRequired,\n onSetAddMoreState: _propTypes.PropTypes.func,\n updateEventStart: _propTypes.PropTypes.func,\n updateEventEnd: _propTypes.PropTypes.func,\n moveEvent: _propTypes.PropTypes.func,\n movingEvent: _propTypes.PropTypes.func,\n conflictOccurred: _propTypes.PropTypes.func,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n newEvent: _propTypes.PropTypes.func,\n eventItemTemplateResolver: _propTypes.PropTypes.func\n}, _temp);\nexports.default = ResourceEvents;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _icon = require('antd/lib/icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar ResourceView = (_temp = _class = function (_Component) {\n _inherits(ResourceView, _Component);\n\n function ResourceView(props) {\n _classCallCheck(this, ResourceView);\n\n return _possibleConstructorReturn(this, (ResourceView.__proto__ || Object.getPrototypeOf(ResourceView)).call(this, props));\n }\n\n _createClass(ResourceView, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n schedulerData = _props.schedulerData,\n contentScrollbarHeight = _props.contentScrollbarHeight,\n slotClickedFunc = _props.slotClickedFunc,\n slotItemTemplateResolver = _props.slotItemTemplateResolver,\n toggleExpandFunc = _props.toggleExpandFunc;\n var renderData = schedulerData.renderData;\n\n\n var width = schedulerData.getResourceTableWidth() - 2;\n var paddingBottom = contentScrollbarHeight;\n var displayRenderData = renderData.filter(function (o) {\n return o.render;\n });\n var resourceList = displayRenderData.map(function (item) {\n var indents = [];\n for (var i = 0; i < item.indent; i++) {\n indents.push(_react2.default.createElement('span', { key: 'es' + i, className: 'expander-space' }));\n }\n var indent = _react2.default.createElement('span', { key: 'es' + item.indent, className: 'expander-space' });\n if (item.hasChildren) {\n indent = item.expanded ? _react2.default.createElement(_icon2.default, { type: 'minus-square', key: 'es' + item.indent, style: {}, className: '',\n onClick: function onClick() {\n if (!!toggleExpandFunc) toggleExpandFunc(schedulerData, item.slotId);\n } }) : _react2.default.createElement(_icon2.default, { type: 'plus-square', key: 'es' + item.indent, style: {}, className: '',\n onClick: function onClick() {\n if (!!toggleExpandFunc) toggleExpandFunc(schedulerData, item.slotId);\n } });\n }\n indents.push(indent);\n\n var a = slotClickedFunc != undefined ? _react2.default.createElement(\n 'a',\n { className: 'slot-cell', onClick: function onClick() {\n slotClickedFunc(schedulerData, item);\n } },\n indents,\n _react2.default.createElement(\n 'span',\n { className: 'slot-text' },\n item.slotName\n )\n ) : _react2.default.createElement(\n 'span',\n { className: 'slot-cell' },\n indents,\n _react2.default.createElement(\n 'span',\n { className: 'slot-text' },\n item.slotName\n )\n );\n var slotItem = _react2.default.createElement(\n 'div',\n { title: item.slotName, className: 'overflow-text header2-text', style: { textAlign: \"left\" } },\n a\n );\n if (!!slotItemTemplateResolver) {\n var temp = slotItemTemplateResolver(schedulerData, item, slotClickedFunc, width, \"overflow-text header2-text\");\n if (!!temp) slotItem = temp;\n }\n\n var tdStyle = { height: item.rowHeight };\n if (item.groupOnly) {\n tdStyle = _extends({}, tdStyle, {\n backgroundColor: schedulerData.config.groupOnlySlotColor\n });\n }\n\n return _react2.default.createElement(\n 'tr',\n { key: item.slotId },\n _react2.default.createElement(\n 'td',\n { 'data-resource-id': item.slotId, style: tdStyle },\n slotItem\n )\n );\n });\n\n return _react2.default.createElement(\n 'div',\n { style: { paddingBottom: paddingBottom } },\n _react2.default.createElement(\n 'table',\n { className: 'resource-table' },\n _react2.default.createElement(\n 'tbody',\n null,\n resourceList\n )\n )\n );\n }\n }]);\n\n return ResourceView;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n contentScrollbarHeight: _propTypes.PropTypes.number.isRequired,\n slotClickedFunc: _propTypes.PropTypes.func,\n slotItemTemplateResolver: _propTypes.PropTypes.func,\n toggleExpandFunc: _propTypes.PropTypes.func\n}, _temp);\nexports.default = ResourceView;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _rrule = require('rrule');\n\nvar _config = require('./config');\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _behaviors = require('./behaviors');\n\nvar _behaviors2 = _interopRequireDefault(_behaviors);\n\nvar _index = require('./index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar SchedulerData = function () {\n function SchedulerData() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _moment2.default)().format(_index.DATE_FORMAT);\n var viewType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _index.ViewTypes.Week;\n var showAgenda = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isEventPerspective = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var newConfig = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;\n var newBehaviors = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined;\n var localeMoment = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : undefined;\n\n _classCallCheck(this, SchedulerData);\n\n this.resources = [];\n this.events = [];\n this.eventGroups = [];\n this.eventGroupsAutoGenerated = true;\n this.viewType = viewType;\n this.cellUnit = viewType === _index.ViewTypes.Day ? _index.CellUnits.Hour : _index.CellUnits.Day;\n this.showAgenda = showAgenda;\n this.isEventPerspective = isEventPerspective;\n this.resizing = false;\n this.scrollToSpecialMoment = false;\n this.documentWidth = 0;\n\n this.localeMoment = _moment2.default;\n if (!!localeMoment) this.localeMoment = localeMoment;\n this.config = newConfig == undefined ? _config2.default : _extends({}, _config2.default, newConfig);\n this._validateMinuteStep(this.config.minuteStep);\n this.behaviors = newBehaviors == undefined ? _behaviors2.default : _extends({}, _behaviors2.default, newBehaviors);\n this._resolveDate(0, date);\n this._createHeaders();\n this._createRenderData();\n }\n\n _createClass(SchedulerData, [{\n key: 'setLocaleMoment',\n value: function setLocaleMoment(localeMoment) {\n if (!!localeMoment) {\n this.localeMoment = localeMoment;\n this._createHeaders();\n this._createRenderData();\n }\n }\n }, {\n key: 'setResources',\n value: function setResources(resources) {\n this._validateResource(resources);\n this.resources = Array.from(new Set(resources));\n this._createRenderData();\n this.setScrollToSpecialMoment(true);\n }\n }, {\n key: 'setEventGroupsAutoGenerated',\n value: function setEventGroupsAutoGenerated(autoGenerated) {\n this.eventGroupsAutoGenerated = autoGenerated;\n }\n\n //optional\n\n }, {\n key: 'setEventGroups',\n value: function setEventGroups(eventGroups) {\n this._validateEventGroups(eventGroups);\n this.eventGroups = Array.from(new Set(eventGroups));\n this.eventGroupsAutoGenerated = false;\n this._createRenderData();\n this.setScrollToSpecialMoment(true);\n }\n }, {\n key: 'setMinuteStep',\n value: function setMinuteStep(minuteStep) {\n if (this.config.minuteStep !== minuteStep) {\n this._validateMinuteStep(minuteStep);\n this.config.minuteStep = minuteStep;\n this._createHeaders();\n this._createRenderData();\n }\n }\n }, {\n key: 'setBesidesWidth',\n value: function setBesidesWidth(besidesWidth) {\n if (besidesWidth >= 0) {\n this.config.besidesWidth = besidesWidth;\n }\n }\n }, {\n key: 'getMinuteStepsInHour',\n value: function getMinuteStepsInHour() {\n return 60 / this.config.minuteStep;\n }\n }, {\n key: 'addResource',\n value: function addResource(resource) {\n var existedResources = this.resources.filter(function (x) {\n return x.id === resource.id;\n });\n if (existedResources.length === 0) {\n this.resources.push(resource);\n this._createRenderData();\n }\n }\n }, {\n key: 'addEventGroup',\n value: function addEventGroup(eventGroup) {\n var existedEventGroups = this.eventGroups.filter(function (x) {\n return x.id === eventGroup.id;\n });\n if (existedEventGroups.length === 0) {\n this.eventGroups.push(eventGroup);\n this._createRenderData();\n }\n }\n }, {\n key: 'removeEventGroupById',\n value: function removeEventGroupById(eventGroupId) {\n var index = -1;\n this.eventGroups.forEach(function (item, idx) {\n if (item.id === eventGroupId) index = idx;\n });\n if (index !== -1) this.eventGroups.splice(index, 1);\n }\n }, {\n key: 'containsEventGroupId',\n value: function containsEventGroupId(eventGroupId) {\n var index = -1;\n this.eventGroups.forEach(function (item, idx) {\n if (item.id === eventGroupId) index = idx;\n });\n return index !== -1;\n }\n }, {\n key: 'setEvents',\n value: function setEvents(events) {\n this._validateEvents(events);\n this.events = Array.from(events);\n if (this.eventGroupsAutoGenerated) this._generateEventGroups();\n if (this.config.recurringEventsEnabled) this._handleRecurringEvents();\n\n this._createRenderData();\n }\n }, {\n key: 'setScrollToSpecialMoment',\n value: function setScrollToSpecialMoment(scrollToSpecialMoment) {\n if (this.config.scrollToSpecialMomentEnabled) this.scrollToSpecialMoment = scrollToSpecialMoment;\n }\n }, {\n key: 'prev',\n value: function prev() {\n this._resolveDate(-1);\n this.events = [];\n this._createHeaders();\n this._createRenderData();\n }\n }, {\n key: 'next',\n value: function next() {\n this._resolveDate(1);\n this.events = [];\n this._createHeaders();\n this._createRenderData();\n }\n }, {\n key: 'setDate',\n value: function setDate() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _moment2.default)().format(_index.DATE_FORMAT);\n\n this._resolveDate(0, date);\n this.events = [];\n this._createHeaders();\n this._createRenderData();\n }\n }, {\n key: 'setViewType',\n value: function setViewType() {\n var viewType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _index.ViewTypes.Week;\n var showAgenda = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var isEventPerspective = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n this.showAgenda = showAgenda;\n this.isEventPerspective = isEventPerspective;\n this.cellUnit = _index.CellUnits.Day;\n\n if (this.viewType !== viewType) {\n var date = this.startDate;\n\n if (viewType === _index.ViewTypes.Custom || viewType === _index.ViewTypes.Custom1 || viewType === _index.ViewTypes.Custom2) {\n this.viewType = viewType;\n this._resolveDate(0, date);\n } else {\n if (this.viewType < viewType) {\n if (viewType === _index.ViewTypes.Week) {\n this.startDate = this.localeMoment(date).startOf('week').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('week').format(_index.DATE_FORMAT);\n } else if (viewType === _index.ViewTypes.Month) {\n this.startDate = this.localeMoment(date).startOf('month').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('month').format(_index.DATE_FORMAT);\n } else if (viewType === _index.ViewTypes.Quarter) {\n this.startDate = this.localeMoment(date).startOf('quarter').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('quarter').format(_index.DATE_FORMAT);\n } else if (viewType === _index.ViewTypes.Year) {\n this.startDate = this.localeMoment(date).startOf('year').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('year').format(_index.DATE_FORMAT);\n }\n } else {\n var start = this.localeMoment(this.startDate);\n var end = this.localeMoment(this.endDate).add(1, 'days');\n\n if (this.selectDate !== undefined) {\n var selectDate = this.localeMoment(this.selectDate);\n if (selectDate >= start && selectDate < end) {\n date = this.selectDate;\n }\n }\n\n var now = this.localeMoment();\n if (now >= start && now < end) {\n date = now.format(_index.DATE_FORMAT);\n }\n\n if (viewType === _index.ViewTypes.Day) {\n this.startDate = date;\n this.endDate = this.startDate;\n this.cellUnit = _index.CellUnits.Hour;\n } else if (viewType === _index.ViewTypes.Week) {\n this.startDate = this.localeMoment(date).startOf('week').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('week').format(_index.DATE_FORMAT);\n } else if (viewType === _index.ViewTypes.Month) {\n this.startDate = this.localeMoment(date).startOf('month').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('month').format(_index.DATE_FORMAT);\n } else if (viewType === _index.ViewTypes.Quarter) {\n this.startDate = this.localeMoment(date).startOf('quarter').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('quarter').format(_index.DATE_FORMAT);\n }\n }\n\n this.viewType = viewType;\n }\n\n this.events = [];\n this._createHeaders();\n this._createRenderData();\n this.setScrollToSpecialMoment(true);\n }\n }\n }, {\n key: 'setSchedulerMaxHeight',\n value: function setSchedulerMaxHeight(newSchedulerMaxHeight) {\n this.config.schedulerMaxHeight = newSchedulerMaxHeight;\n }\n }, {\n key: 'isSchedulerResponsive',\n value: function isSchedulerResponsive() {\n return !!this.config.schedulerWidth.endsWith && this.config.schedulerWidth.endsWith(\"%\");\n }\n }, {\n key: 'toggleExpandStatus',\n value: function toggleExpandStatus(slotId) {\n var slotEntered = false;\n var slotIndent = -1;\n var isExpanded = false;\n var expandedMap = new Map();\n this.renderData.forEach(function (item) {\n if (slotEntered === false) {\n if (item.slotId === slotId && item.hasChildren) {\n slotEntered = true;\n\n isExpanded = !item.expanded;\n item.expanded = isExpanded;\n slotIndent = item.indent;\n expandedMap.set(item.indent, {\n expanded: item.expanded,\n render: item.render\n });\n }\n } else {\n if (item.indent > slotIndent) {\n var expandStatus = expandedMap.get(item.indent - 1);\n item.render = expandStatus.expanded && expandStatus.render;\n\n if (item.hasChildren) {\n expandedMap.set(item.indent, {\n expanded: item.expanded,\n render: item.render\n });\n }\n } else {\n slotEntered = false;\n }\n }\n });\n }\n }, {\n key: 'isResourceViewResponsive',\n value: function isResourceViewResponsive() {\n var resourceTableWidth = this.getResourceTableConfigWidth();\n return !!resourceTableWidth.endsWith && resourceTableWidth.endsWith(\"%\");\n }\n }, {\n key: 'isContentViewResponsive',\n value: function isContentViewResponsive() {\n var contentCellWidth = this.getContentCellConfigWidth();\n return !!contentCellWidth.endsWith && contentCellWidth.endsWith(\"%\");\n }\n }, {\n key: 'getSchedulerWidth',\n value: function getSchedulerWidth() {\n var baseWidth = this.documentWidth - this.config.besidesWidth > 0 ? this.documentWidth - this.config.besidesWidth : 0;\n return this.isSchedulerResponsive() ? parseInt(baseWidth * Number(this.config.schedulerWidth.slice(0, -1)) / 100) : this.config.schedulerWidth;\n }\n }, {\n key: 'getResourceTableWidth',\n value: function getResourceTableWidth() {\n var resourceTableConfigWidth = this.getResourceTableConfigWidth();\n var schedulerWidth = this.getSchedulerWidth();\n var resourceTableWidth = this.isResourceViewResponsive() ? parseInt(schedulerWidth * Number(resourceTableConfigWidth.slice(0, -1)) / 100) : resourceTableConfigWidth;\n if (this.isSchedulerResponsive() && this.getContentTableWidth() + resourceTableWidth < schedulerWidth) resourceTableWidth = schedulerWidth - this.getContentTableWidth();\n return resourceTableWidth;\n }\n }, {\n key: 'getContentCellWidth',\n value: function getContentCellWidth() {\n var contentCellConfigWidth = this.getContentCellConfigWidth();\n var schedulerWidth = this.getSchedulerWidth();\n return this.isContentViewResponsive() ? parseInt(schedulerWidth * Number(contentCellConfigWidth.slice(0, -1)) / 100) : contentCellConfigWidth;\n }\n }, {\n key: 'getContentTableWidth',\n value: function getContentTableWidth() {\n return this.headers.length * this.getContentCellWidth();\n }\n }, {\n key: 'getScrollToSpecialMoment',\n value: function getScrollToSpecialMoment() {\n if (this.config.scrollToSpecialMomentEnabled) return this.scrollToSpecialMoment;\n return false;\n }\n }, {\n key: 'getSlots',\n value: function getSlots() {\n return this.isEventPerspective ? this.eventGroups : this.resources;\n }\n }, {\n key: 'getSlotById',\n value: function getSlotById(slotId) {\n var slots = this.getSlots();\n var slot = undefined;\n slots.forEach(function (item) {\n if (item.id === slotId) slot = item;\n });\n return slot;\n }\n }, {\n key: 'getResourceById',\n value: function getResourceById(resourceId) {\n var resource = undefined;\n this.resources.forEach(function (item) {\n if (item.id === resourceId) resource = item;\n });\n return resource;\n }\n }, {\n key: 'getTableHeaderHeight',\n value: function getTableHeaderHeight() {\n return this.config.tableHeaderHeight;\n }\n }, {\n key: 'getSchedulerContentDesiredHeight',\n value: function getSchedulerContentDesiredHeight() {\n var height = 0;\n this.renderData.forEach(function (item) {\n if (item.render) height += item.rowHeight;\n });\n return height;\n }\n }, {\n key: 'getCellMaxEvents',\n value: function getCellMaxEvents() {\n return this.viewType === _index.ViewTypes.Week ? this.config.weekMaxEvents : this.viewType === _index.ViewTypes.Day ? this.config.dayMaxEvents : this.viewType === _index.ViewTypes.Month ? this.config.monthMaxEvents : this.viewType === _index.ViewTypes.Year ? this.config.yearMaxEvents : this.viewType === _index.ViewTypes.Quarter ? this.config.quarterMaxEvents : this.config.customMaxEvents;\n }\n }, {\n key: 'getDateLabel',\n value: function getDateLabel() {\n var start = this.localeMoment(this.startDate);\n var end = this.localeMoment(this.endDate);\n var dateLabel = start.format('LL');\n\n if (start != end) dateLabel = start.format('LL') + '-' + end.format('LL');\n\n if (!!this.behaviors.getDateLabelFunc) dateLabel = this.behaviors.getDateLabelFunc(this, this.viewType, this.startDate, this.endDate);\n\n return dateLabel;\n }\n }, {\n key: 'addEvent',\n value: function addEvent(newEvent) {\n this._attachEvent(newEvent);\n if (this.eventGroupsAutoGenerated) this._generateEventGroups();\n this._createRenderData();\n }\n }, {\n key: 'updateEventStart',\n value: function updateEventStart(event, newStart) {\n this._detachEvent(event);\n event.start = newStart;\n this._attachEvent(event);\n this._createRenderData();\n }\n }, {\n key: 'updateEventEnd',\n value: function updateEventEnd(event, newEnd) {\n event.end = newEnd;\n this._createRenderData();\n }\n }, {\n key: 'moveEvent',\n value: function moveEvent(event, newSlotId, newSlotName, newStart, newEnd) {\n this._detachEvent(event);\n if (this.isEventPerspective) {\n event.groupId = newSlotId;\n event.groupName = newSlotName;\n } else event.resourceId = newSlotId;\n event.end = newEnd;\n event.start = newStart;\n this._attachEvent(event);\n this._createRenderData();\n }\n }, {\n key: 'isEventInTimeWindow',\n value: function isEventInTimeWindow(eventStart, eventEnd, windowStart, windowEnd) {\n return eventStart < windowEnd && eventEnd > windowStart;\n }\n }, {\n key: 'removeEvent',\n value: function removeEvent(event) {\n var index = this.events.indexOf(event);\n if (index !== -1) {\n this.events.splice(index, 1);\n this._createRenderData();\n }\n }\n }, {\n key: 'removeEventById',\n value: function removeEventById(eventId) {\n var index = -1;\n this.events.forEach(function (item, idx) {\n if (item.id === eventId) index = idx;\n });\n if (index !== -1) {\n this.events.splice(index, 1);\n this._createRenderData();\n }\n }\n }, {\n key: 'getResourceTableConfigWidth',\n value: function getResourceTableConfigWidth() {\n if (this.showAgenda) return this.config.agendaResourceTableWidth;\n\n return this.viewType === _index.ViewTypes.Week ? this.config.weekResourceTableWidth : this.viewType === _index.ViewTypes.Day ? this.config.dayResourceTableWidth : this.viewType === _index.ViewTypes.Month ? this.config.monthResourceTableWidth : this.viewType === _index.ViewTypes.Year ? this.config.yearResourceTableWidth : this.viewType === _index.ViewTypes.Quarter ? this.config.quarterResourceTableWidth : this.config.customResourceTableWidth;\n }\n }, {\n key: 'getContentCellConfigWidth',\n value: function getContentCellConfigWidth() {\n return this.viewType === _index.ViewTypes.Week ? this.config.weekCellWidth : this.viewType === _index.ViewTypes.Day ? this.config.dayCellWidth : this.viewType === _index.ViewTypes.Month ? this.config.monthCellWidth : this.viewType === _index.ViewTypes.Year ? this.config.yearCellWidth : this.viewType === _index.ViewTypes.Quarter ? this.config.quarterCellWidth : this.config.customCellWidth;\n }\n }, {\n key: '_setDocumentWidth',\n value: function _setDocumentWidth(documentWidth) {\n if (documentWidth >= 0) {\n this.documentWidth = documentWidth;\n }\n }\n }, {\n key: '_detachEvent',\n value: function _detachEvent(event) {\n var index = this.events.indexOf(event);\n if (index !== -1) this.events.splice(index, 1);\n }\n }, {\n key: '_attachEvent',\n value: function _attachEvent(event) {\n var _this = this;\n\n var pos = 0;\n var eventStart = this.localeMoment(event.start);\n this.events.forEach(function (item, index) {\n var start = _this.localeMoment(item.start);\n if (eventStart >= start) pos = index + 1;\n });\n this.events.splice(pos, 0, event);\n }\n }, {\n key: '_handleRecurringEvents',\n value: function _handleRecurringEvents() {\n var _this2 = this;\n\n var recurringEvents = this.events.filter(function (x) {\n return !!x.rrule;\n });\n recurringEvents.forEach(function (item) {\n _this2._detachEvent(item);\n });\n\n recurringEvents.forEach(function (item) {\n var windowStart = _this2.localeMoment(_this2.startDate),\n windowEnd = _this2.localeMoment(_this2.endDate).add(1, 'days'),\n oldStart = _this2.localeMoment(item.start),\n oldEnd = _this2.localeMoment(item.end),\n rule = (0, _rrule.rrulestr)(item.rrule),\n oldDtstart = undefined;\n if (!!rule.origOptions.dtstart) {\n oldDtstart = _this2.localeMoment(rule.origOptions.dtstart);\n }\n rule.origOptions.dtstart = oldStart.toDate();\n if (!rule.origOptions.until || windowEnd < _this2.localeMoment(rule.origOptions.until)) {\n rule.origOptions.until = windowEnd.toDate();\n }\n\n //reload\n rule = (0, _rrule.rrulestr)(rule.toString());\n if (item.exdates || item.exrule) {\n var rruleSet = new _rrule.RRuleSet();\n rruleSet.rrule(rule);\n if (item.exrule) {\n rruleSet.exrule((0, _rrule.rrulestr)(item.exrule));\n }\n if (item.exdates) {\n item.exdates.forEach(function (exdate) {\n rruleSet.exdate(_this2.localeMoment(exdate).toDate());\n });\n }\n rule = rruleSet;\n }\n\n var all = rule.all();\n var newEvents = all.map(function (time, index) {\n return _extends({}, item, {\n recurringEventId: item.id,\n recurringEventStart: item.start,\n recurringEventEnd: item.end,\n id: item.id + '-' + index,\n start: _this2.localeMoment(time).format(_index.DATETIME_FORMAT),\n end: _this2.localeMoment(time).add(oldEnd.diff(oldStart), 'ms').format(_index.DATETIME_FORMAT)\n });\n });\n newEvents.forEach(function (newEvent) {\n var eventStart = _this2.localeMoment(newEvent.start),\n eventEnd = _this2.localeMoment(newEvent.end);\n if (_this2.isEventInTimeWindow(eventStart, eventEnd, windowStart, windowEnd) && (!oldDtstart || eventStart >= oldDtstart)) {\n _this2._attachEvent(newEvent);\n }\n });\n });\n }\n }, {\n key: '_resolveDate',\n value: function _resolveDate(num) {\n var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n if (date != undefined) this.selectDate = this.localeMoment(date).format(_index.DATE_FORMAT);\n\n if (this.viewType === _index.ViewTypes.Week) {\n this.startDate = date != undefined ? this.localeMoment(date).startOf('week').format(_index.DATE_FORMAT) : this.localeMoment(this.startDate).add(num, 'weeks').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('week').format(_index.DATE_FORMAT);\n } else if (this.viewType === _index.ViewTypes.Day) {\n this.startDate = date != undefined ? this.selectDate : this.localeMoment(this.startDate).add(num, 'days').format(_index.DATE_FORMAT);\n this.endDate = this.startDate;\n } else if (this.viewType === _index.ViewTypes.Month) {\n this.startDate = date != undefined ? this.localeMoment(date).startOf('month').format(_index.DATE_FORMAT) : this.localeMoment(this.startDate).add(num, 'months').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('month').format(_index.DATE_FORMAT);\n } else if (this.viewType === _index.ViewTypes.Quarter) {\n this.startDate = date != undefined ? this.localeMoment(date).startOf('quarter').format(_index.DATE_FORMAT) : this.localeMoment(this.startDate).add(num, 'quarters').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('quarter').format(_index.DATE_FORMAT);\n } else if (this.viewType === _index.ViewTypes.Year) {\n this.startDate = date != undefined ? this.localeMoment(date).startOf('year').format(_index.DATE_FORMAT) : this.localeMoment(this.startDate).add(num, 'years').format(_index.DATE_FORMAT);\n this.endDate = this.localeMoment(this.startDate).endOf('year').format(_index.DATE_FORMAT);\n } else if (this.viewType === _index.ViewTypes.Custom || this.viewType === _index.ViewTypes.Custom1 || this.viewType === _index.ViewTypes.Custom2) {\n if (this.behaviors.getCustomDateFunc != undefined) {\n var customDate = this.behaviors.getCustomDateFunc(this, num, date);\n this.startDate = customDate.startDate;\n this.endDate = customDate.endDate;\n if (!!customDate.cellUnit) this.cellUnit = customDate.cellUnit;\n } else {\n throw new Error('This is custom view type, set behaviors.getCustomDateFunc func to resolve the time window(startDate and endDate) yourself');\n }\n }\n }\n }, {\n key: '_createHeaders',\n value: function _createHeaders() {\n var headers = [],\n start = this.localeMoment(this.startDate),\n end = this.localeMoment(this.endDate),\n header = start;\n\n if (this.showAgenda) {\n headers.push({ time: header.format(_index.DATETIME_FORMAT), nonWorkingTime: false });\n } else {\n if (this.cellUnit === _index.CellUnits.Hour) {\n start = start.add(this.config.dayStartFrom, 'hours');\n end = end.add(this.config.dayStopTo, 'hours');\n header = start;\n\n while (header >= start && header <= end) {\n var minuteSteps = this.getMinuteStepsInHour();\n for (var i = 0; i < minuteSteps; i++) {\n var hour = header.hour();\n if (hour >= this.config.dayStartFrom && hour <= this.config.dayStopTo) {\n var time = header.format(_index.DATETIME_FORMAT);\n var nonWorkingTime = this.behaviors.isNonWorkingTimeFunc(this, time);\n headers.push({ time: time, nonWorkingTime: nonWorkingTime });\n }\n\n header = header.add(this.config.minuteStep, 'minutes');\n }\n }\n } else {\n while (header >= start && header <= end) {\n var _time = header.format(_index.DATETIME_FORMAT);\n var dayOfWeek = header.weekday();\n if (this.config.displayWeekend || dayOfWeek !== 0 && dayOfWeek !== 6) {\n var _nonWorkingTime = this.behaviors.isNonWorkingTimeFunc(this, _time);\n headers.push({ time: _time, nonWorkingTime: _nonWorkingTime });\n }\n\n header = header.add(1, 'days');\n }\n }\n }\n\n this.headers = headers;\n }\n }, {\n key: '_createInitHeaderEvents',\n value: function _createInitHeaderEvents(header) {\n var start = this.localeMoment(header.time),\n startValue = start.format(_index.DATETIME_FORMAT);\n var endValue = this.showAgenda ? this.viewType === _index.ViewTypes.Week ? start.add(1, 'weeks').format(_index.DATETIME_FORMAT) : this.viewType === _index.ViewTypes.Day ? start.add(1, 'days').format(_index.DATETIME_FORMAT) : this.viewType === _index.ViewTypes.Month ? start.add(1, 'months').format(_index.DATETIME_FORMAT) : this.viewType === _index.ViewTypes.Year ? start.add(1, 'years').format(_index.DATETIME_FORMAT) : this.viewType === _index.ViewTypes.Quarter ? start.add(1, 'quarters').format(_index.DATETIME_FORMAT) : this.localeMoment(this.endDate).add(1, 'days').format(_index.DATETIME_FORMAT) : this.cellUnit === _index.CellUnits.Hour ? start.add(this.config.minuteStep, 'minutes').format(_index.DATETIME_FORMAT) : start.add(1, 'days').format(_index.DATETIME_FORMAT);\n return {\n time: header.time,\n nonWorkingTime: header.nonWorkingTime,\n start: startValue,\n end: endValue,\n count: 0,\n addMore: 0,\n addMoreIndex: 0,\n events: [,,,]\n };\n }\n }, {\n key: '_createHeaderEvent',\n value: function _createHeaderEvent(render, span, eventItem) {\n return {\n render: render,\n span: span,\n eventItem: eventItem\n };\n }\n }, {\n key: '_getEventSlotId',\n value: function _getEventSlotId(event) {\n return this.isEventPerspective ? this._getEventGroupId(event) : event.resourceId;\n }\n }, {\n key: '_getEventGroupId',\n value: function _getEventGroupId(event) {\n return !!event.groupId ? event.groupId.toString() : event.id.toString();\n }\n }, {\n key: '_getEventGroupName',\n value: function _getEventGroupName(event) {\n return !!event.groupName ? event.groupName : event.title;\n }\n }, {\n key: '_generateEventGroups',\n value: function _generateEventGroups() {\n var _this3 = this;\n\n var eventGroups = [];\n var set = new Set();\n this.events.forEach(function (item) {\n var groupId = _this3._getEventGroupId(item);\n var groupName = _this3._getEventGroupName(item);\n\n if (!set.has(groupId)) {\n eventGroups.push({\n id: groupId,\n name: groupName,\n state: item\n });\n set.add(groupId);\n }\n });\n this.eventGroups = eventGroups;\n }\n }, {\n key: '_createInitRenderData',\n value: function _createInitRenderData(isEventPerspective, eventGroups, resources, headers) {\n var _this4 = this;\n\n var slots = isEventPerspective ? eventGroups : resources;\n var slotTree = [],\n slotMap = new Map();\n slots.forEach(function (slot) {\n var headerEvents = headers.map(function (header) {\n return _this4._createInitHeaderEvents(header);\n });\n\n var slotRenderData = {\n slotId: slot.id,\n slotName: slot.name,\n parentId: slot.parentId,\n groupOnly: slot.groupOnly,\n hasSummary: false,\n rowMaxCount: 0,\n rowHeight: _this4.config.nonAgendaSlotMinHeight !== 0 ? _this4.config.nonAgendaSlotMinHeight : _this4.config.eventItemLineHeight + 2,\n headerItems: headerEvents,\n indent: 0,\n hasChildren: false,\n expanded: true,\n render: true\n };\n var id = slot.id;\n var value = undefined;\n if (slotMap.has(id)) {\n value = slotMap.get(id);\n value.data = slotRenderData;\n } else {\n value = {\n data: slotRenderData,\n children: []\n };\n slotMap.set(id, value);\n }\n\n var parentId = slot.parentId;\n if (!parentId || parentId === id) {\n slotTree.push(value);\n } else {\n var parentValue = undefined;\n if (slotMap.has(parentId)) {\n parentValue = slotMap.get(parentId);\n } else {\n parentValue = {\n data: undefined,\n children: []\n };\n slotMap.set(parentId, parentValue);\n }\n\n parentValue.children.push(value);\n }\n });\n\n var slotStack = [];\n var i = void 0;\n for (i = slotTree.length - 1; i >= 0; i--) {\n slotStack.push(slotTree[i]);\n }\n var initRenderData = [];\n var currentNode = undefined;\n while (slotStack.length > 0) {\n currentNode = slotStack.pop();\n if (currentNode.data.indent > 0) {\n currentNode.data.render = this.config.defaultExpanded;\n }\n if (currentNode.children.length > 0) {\n currentNode.data.hasChildren = true;\n currentNode.data.expanded = this.config.defaultExpanded;\n }\n initRenderData.push(currentNode.data);\n\n for (i = currentNode.children.length - 1; i >= 0; i--) {\n currentNode.children[i].data.indent = currentNode.data.indent + 1;\n slotStack.push(currentNode.children[i]);\n }\n }\n\n return initRenderData;\n }\n }, {\n key: '_getSpan',\n value: function _getSpan(startTime, endTime, headers) {\n if (this.showAgenda) return 1;\n\n var start = this.localeMoment(startTime),\n end = this.localeMoment(endTime),\n span = 0;\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = headers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var header = _step.value;\n\n var spanStart = this.localeMoment(header.time),\n spanEnd = this.cellUnit === _index.CellUnits.Hour ? this.localeMoment(header.time).add(this.config.minuteStep, 'minutes') : this.localeMoment(header.time).add(1, 'days');\n\n if (spanStart < end && spanEnd > start) {\n span++;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return span;\n }\n }, {\n key: '_validateResource',\n value: function _validateResource(resources) {\n if (Object.prototype.toString.call(resources) !== \"[object Array]\") {\n throw new Error('Resources should be Array object');\n }\n\n resources.forEach(function (item, index) {\n if (item == undefined) {\n console.error('Resource undefined: ' + index);\n throw new Error('Resource undefined: ' + index);\n }\n if (item.id == undefined || item.name == undefined) {\n console.error('Resource property missed', index, item);\n throw new Error('Resource property undefined: ' + index);\n }\n });\n }\n }, {\n key: '_validateEventGroups',\n value: function _validateEventGroups(eventGroups) {\n if (Object.prototype.toString.call(eventGroups) !== \"[object Array]\") {\n throw new Error('Event groups should be Array object');\n }\n\n eventGroups.forEach(function (item, index) {\n if (item == undefined) {\n console.error('Event group undefined: ' + index);\n throw new Error('Event group undefined: ' + index);\n }\n if (item.id == undefined || item.name == undefined) {\n console.error('Event group property missed', index, item);\n throw new Error('Event group property undefined: ' + index);\n }\n });\n }\n }, {\n key: '_validateEvents',\n value: function _validateEvents(events) {\n if (Object.prototype.toString.call(events) !== \"[object Array]\") {\n throw new Error('Events should be Array object');\n }\n\n events.forEach(function (e, index) {\n if (e == undefined) {\n console.error('Event undefined: ' + index);\n throw new Error('Event undefined: ' + index);\n }\n if (e.id == undefined || e.resourceId == undefined || e.title == undefined || e.start == undefined || e.end == undefined) {\n console.error('Event property missed', index, e);\n throw new Error('Event property undefined: ' + index);\n }\n });\n }\n }, {\n key: '_validateMinuteStep',\n value: function _validateMinuteStep(minuteStep) {\n if (60 % minuteStep !== 0) {\n console.error('Minute step is not set properly - 60 minutes must be divisible without remainder by this number');\n throw new Error('Minute step is not set properly - 60 minutes must be divisible without remainder by this number');\n }\n }\n }, {\n key: '_compare',\n value: function _compare(event1, event2) {\n var start1 = this.localeMoment(event1.start),\n start2 = this.localeMoment(event2.start);\n if (start1 !== start2) return start1 < start2 ? -1 : 1;\n\n var end1 = this.localeMoment(event1.end),\n end2 = this.localeMoment(event2.end);\n if (end1 !== end2) return end1 < end2 ? -1 : 1;\n\n return event1.id < event2.id ? -1 : 1;\n }\n }, {\n key: '_createRenderData',\n value: function _createRenderData() {\n var _this5 = this;\n\n var initRenderData = this._createInitRenderData(this.isEventPerspective, this.eventGroups, this.resources, this.headers);\n //this.events.sort(this._compare);\n var cellMaxEventsCount = this.getCellMaxEvents();\n var cellMaxEventsCountValue = 30;\n\n this.events.forEach(function (item) {\n var resourceEventsList = initRenderData.filter(function (x) {\n return x.slotId === _this5._getEventSlotId(item);\n });\n if (resourceEventsList.length > 0) {\n var resourceEvents = resourceEventsList[0];\n var span = _this5._getSpan(item.start, item.end, _this5.headers);\n var eventStart = _this5.localeMoment(item.start),\n eventEnd = _this5.localeMoment(item.end);\n var pos = -1;\n\n resourceEvents.headerItems.forEach(function (header, index) {\n var headerStart = _this5.localeMoment(header.start),\n headerEnd = _this5.localeMoment(header.end);\n if (headerEnd > eventStart && headerStart < eventEnd) {\n header.count = header.count + 1;\n if (header.count > resourceEvents.rowMaxCount) {\n resourceEvents.rowMaxCount = header.count;\n var rowsCount = cellMaxEventsCount <= cellMaxEventsCountValue && resourceEvents.rowMaxCount > cellMaxEventsCount ? cellMaxEventsCount : resourceEvents.rowMaxCount;\n var newRowHeight = rowsCount * _this5.config.eventItemLineHeight + (_this5.config.creatable && _this5.config.checkConflict === false ? 20 : 2);\n if (newRowHeight > resourceEvents.rowHeight) resourceEvents.rowHeight = newRowHeight;\n }\n\n if (pos === -1) {\n var tmp = 0;\n while (header.events[tmp] !== undefined) {\n tmp++;\n }pos = tmp;\n }\n var render = headerStart <= eventStart || index === 0;\n if (render === false) {\n var previousHeader = resourceEvents.headerItems[index - 1];\n var previousHeaderStart = _this5.localeMoment(previousHeader.start),\n previousHeaderEnd = _this5.localeMoment(previousHeader.end);\n if (previousHeaderEnd <= eventStart || previousHeaderStart >= eventEnd) render = true;\n }\n header.events[pos] = _this5._createHeaderEvent(render, span, item);\n }\n });\n }\n });\n\n if (cellMaxEventsCount <= cellMaxEventsCountValue || this.behaviors.getSummaryFunc !== undefined) {\n initRenderData.forEach(function (resourceEvents) {\n var hasSummary = false;\n\n resourceEvents.headerItems.forEach(function (headerItem) {\n if (cellMaxEventsCount <= cellMaxEventsCountValue) {\n var renderItemsCount = 0,\n addMoreIndex = 0,\n index = 0;\n while (index < cellMaxEventsCount - 1) {\n if (headerItem.events[index] !== undefined) {\n renderItemsCount++;\n addMoreIndex = index + 1;\n }\n\n index++;\n }\n\n if (headerItem.events[index] !== undefined) {\n if (renderItemsCount + 1 < headerItem.count) {\n headerItem.addMore = headerItem.count - renderItemsCount;\n headerItem.addMoreIndex = addMoreIndex;\n }\n } else {\n if (renderItemsCount < headerItem.count) {\n headerItem.addMore = headerItem.count - renderItemsCount;\n headerItem.addMoreIndex = addMoreIndex;\n }\n }\n }\n\n if (_this5.behaviors.getSummaryFunc !== undefined) {\n var events = [];\n headerItem.events.forEach(function (e) {\n if (!!e && !!e.eventItem) events.push(e.eventItem);\n });\n\n headerItem.summary = _this5.behaviors.getSummaryFunc(_this5, events, resourceEvents.slotId, resourceEvents.slotName, headerItem.start, headerItem.end);\n if (!!headerItem.summary && headerItem.summary.text != undefined) hasSummary = true;\n }\n });\n\n resourceEvents.hasSummary = hasSummary;\n if (hasSummary) {\n var rowsCount = cellMaxEventsCount <= cellMaxEventsCountValue && resourceEvents.rowMaxCount > cellMaxEventsCount ? cellMaxEventsCount : resourceEvents.rowMaxCount;\n var newRowHeight = (rowsCount + 1) * _this5.config.eventItemLineHeight + (_this5.config.creatable && _this5.config.checkConflict === false ? 20 : 2);\n if (newRowHeight > resourceEvents.rowHeight) resourceEvents.rowHeight = newRowHeight;\n }\n });\n }\n\n this.renderData = initRenderData;\n }\n }, {\n key: '_startResizing',\n value: function _startResizing() {\n this.resizing = true;\n }\n }, {\n key: '_stopResizing',\n value: function _stopResizing() {\n this.resizing = false;\n }\n }, {\n key: '_isResizing',\n value: function _isResizing() {\n return this.resizing;\n }\n }]);\n\n return SchedulerData;\n}();\n\nexports.default = SchedulerData;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar SelectedArea = (_temp = _class = function (_Component) {\n _inherits(SelectedArea, _Component);\n\n function SelectedArea(props) {\n _classCallCheck(this, SelectedArea);\n\n return _possibleConstructorReturn(this, (SelectedArea.__proto__ || Object.getPrototypeOf(SelectedArea)).call(this, props));\n }\n\n _createClass(SelectedArea, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n left = _props.left,\n width = _props.width,\n schedulerData = _props.schedulerData;\n var config = schedulerData.config;\n\n\n return _react2.default.createElement('div', { className: 'selected-area', style: { left: left, width: width, top: 0, bottom: 0, backgroundColor: config.selectedAreaColor } });\n }\n }]);\n\n return SelectedArea;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n left: _propTypes.PropTypes.number.isRequired,\n width: _propTypes.PropTypes.number.isRequired\n}, _temp);\nexports.default = SelectedArea;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _index = require('./index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar Summary = (_temp = _class = function (_Component) {\n _inherits(Summary, _Component);\n\n function Summary(props) {\n _classCallCheck(this, Summary);\n\n return _possibleConstructorReturn(this, (Summary.__proto__ || Object.getPrototypeOf(Summary)).call(this, props));\n }\n\n _createClass(Summary, [{\n key: 'render',\n value: function render() {\n var _props = this.props,\n summary = _props.summary,\n left = _props.left,\n width = _props.width,\n top = _props.top,\n schedulerData = _props.schedulerData;\n var config = schedulerData.config;\n\n var color = config.summaryColor;\n if (summary.color != undefined) color = summary.color;\n var textAlign = 'center';\n if (config.summaryPos === _index.SummaryPos.TopRight || config.summaryPos === _index.SummaryPos.BottomRight) textAlign = 'right';else if (config.summaryPos === _index.SummaryPos.TopLeft || config.summaryPos === _index.SummaryPos.BottomLeft) textAlign = 'left';\n var style = { height: config.eventItemHeight, color: color, textAlign: textAlign, marginLeft: '6px', marginRight: '6px' };\n if (summary.fontSize != undefined) style = _extends({}, style, { fontSize: summary.fontSize });\n\n return _react2.default.createElement(\n 'a',\n { className: 'timeline-event header2-text', style: { left: left, width: width, top: top, cursor: 'default' } },\n _react2.default.createElement(\n 'div',\n { style: style },\n summary.text\n )\n );\n }\n }]);\n\n return Summary;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n summary: _propTypes.PropTypes.object.isRequired,\n left: _propTypes.PropTypes.number.isRequired,\n width: _propTypes.PropTypes.number.isRequired,\n top: _propTypes.PropTypes.number.isRequired\n}, _temp);\nexports.default = Summary;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar SummaryPos = {\n Top: 0,\n TopRight: 1,\n TopLeft: 2,\n Bottom: 3,\n BottomRight: 4,\n BottomLeft: 5\n};\n\nexports.default = SummaryPos;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction getPos(element) {\n var x = 0,\n y = 0;\n if (!!element) {\n do {\n x += element.offsetLeft - element.scrollLeft;\n y += element.offsetTop - element.scrollTop;\n } while (element = element.offsetParent);\n }\n return { 'x': x, 'y': y };\n}\n\nexports.getPos = getPos;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar ViewTypes = {\n Day: 0,\n Week: 1,\n Month: 2,\n Quarter: 3,\n Year: 4,\n Custom: 5,\n Custom1: 6,\n Custom2: 7\n};\n\nexports.default = ViewTypes;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNonWorkingTime = exports.getScrollSpecialMoment = exports.getEventText = exports.getDateLabel = exports.getNonAgendaViewBodyCellBgColor = exports.getCustomDate = exports.getSummary = undefined;\n\nvar _index = require('./index');\n\n//getSummary func example\nvar getSummary = exports.getSummary = function getSummary(schedulerData, headerEvents, slotId, slotName, headerStart, headerEnd) {\n return { text: 'Summary', color: 'red', fontSize: '1.2rem' };\n};\n\n//getCustomDate example\nvar getCustomDate = exports.getCustomDate = function getCustomDate(schedulerData, num) {\n var date = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n var viewType = schedulerData.viewType;\n\n var selectDate = schedulerData.startDate;\n if (date != undefined) selectDate = date;\n\n var startDate = num === 0 ? selectDate : schedulerData.localeMoment(selectDate).add(2 * num, 'days').format(_index.DATE_FORMAT),\n endDate = schedulerData.localeMoment(startDate).add(1, 'days').format(_index.DATE_FORMAT),\n cellUnit = _index.CellUnits.Hour;\n if (viewType === _index.ViewTypes.Custom1) {\n var monday = schedulerData.localeMoment(selectDate).startOf('week').format(_index.DATE_FORMAT);\n startDate = num === 0 ? monday : schedulerData.localeMoment(monday).add(2 * num, 'weeks').format(_index.DATE_FORMAT);\n endDate = schedulerData.localeMoment(startDate).add(1, 'weeks').endOf('week').format(_index.DATE_FORMAT);\n cellUnit = _index.CellUnits.Day;\n } else if (viewType === _index.ViewTypes.Custom2) {\n var firstDayOfMonth = schedulerData.localeMoment(selectDate).startOf('month').format(_index.DATE_FORMAT);\n startDate = num === 0 ? firstDayOfMonth : schedulerData.localeMoment(firstDayOfMonth).add(2 * num, 'months').format(_index.DATE_FORMAT);\n endDate = schedulerData.localeMoment(startDate).add(1, 'months').endOf('month').format(_index.DATE_FORMAT);\n cellUnit = _index.CellUnits.Day;\n }\n\n return {\n startDate: startDate,\n endDate: endDate,\n cellUnit: cellUnit\n };\n};\n\n//getNonAgendaViewBodyCellBgColor example\nvar getNonAgendaViewBodyCellBgColor = exports.getNonAgendaViewBodyCellBgColor = function getNonAgendaViewBodyCellBgColor(schedulerData, slotId, header) {\n if (!header.nonWorkingTime) {\n return '#87e8de';\n }\n\n return undefined;\n};\n\n//getDateLabel func example\nvar getDateLabel = exports.getDateLabel = function getDateLabel(schedulerData, viewType, startDate, endDate) {\n var start = schedulerData.localeMoment(startDate);\n var end = schedulerData.localeMoment(endDate);\n var dateLabel = start.format('MMM D, YYYY');\n\n if (viewType === _index.ViewTypes.Week || start != end && (viewType === _index.ViewTypes.Custom || viewType === _index.ViewTypes.Custom1 || viewType === _index.ViewTypes.Custom2)) {\n dateLabel = start.format('MMM D') + '-' + end.format('D, YYYY');\n if (start.month() !== end.month()) dateLabel = start.format('MMM D') + '-' + end.format('MMM D, YYYY');\n if (start.year() !== end.year()) dateLabel = start.format('MMM D, YYYY') + '-' + end.format('MMM D, YYYY');\n } else if (viewType === _index.ViewTypes.Month) {\n dateLabel = start.format('MMMM YYYY');\n } else if (viewType === _index.ViewTypes.Quarter) {\n dateLabel = start.format('MMM D') + '-' + end.format('MMM D, YYYY');\n } else if (viewType === _index.ViewTypes.Year) {\n dateLabel = start.format('YYYY');\n }\n\n return dateLabel;\n};\n\nvar getEventText = exports.getEventText = function getEventText(schedulerData, event) {\n if (!schedulerData.isEventPerspective) return event.title;\n\n var eventText = event.title;\n schedulerData.resources.forEach(function (item) {\n if (item.id === event.resourceId) {\n eventText = item.name;\n }\n });\n\n return eventText;\n};\n\nvar getScrollSpecialMoment = exports.getScrollSpecialMoment = function getScrollSpecialMoment(schedulerData, startMoment, endMoment) {\n // return endMoment;\n var localeMoment = schedulerData.localeMoment;\n\n return localeMoment();\n};\n\nvar isNonWorkingTime = exports.isNonWorkingTime = function isNonWorkingTime(schedulerData, time) {\n var localeMoment = schedulerData.localeMoment;\n\n if (schedulerData.cellUnit === _index.CellUnits.Hour) {\n var hour = localeMoment(time).hour();\n if (hour < 9 || hour > 18) return true;\n } else {\n var dayOfWeek = localeMoment(time).weekday();\n if (dayOfWeek === 0 || dayOfWeek === 6) return true;\n }\n\n return false;\n};\n\nexports.default = {\n //getSummaryFunc: getSummary,\n getSummaryFunc: undefined,\n //getCustomDateFunc: getCustomDate,\n getCustomDateFunc: undefined,\n // getNonAgendaViewBodyCellBgColorFunc: getNonAgendaViewBodyCellBgColor,\n getNonAgendaViewBodyCellBgColorFunc: undefined,\n getScrollSpecialMomentFunc: getScrollSpecialMoment,\n getDateLabelFunc: getDateLabel,\n getEventTextFunc: getEventText,\n isNonWorkingTimeFunc: isNonWorkingTime\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ViewTypes = require('./ViewTypes');\n\nvar _ViewTypes2 = _interopRequireDefault(_ViewTypes);\n\nvar _SummaryPos = require('./SummaryPos');\n\nvar _SummaryPos2 = _interopRequireDefault(_SummaryPos);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n schedulerWidth: '100%',\n besidesWidth: 20,\n schedulerMaxHeight: 0,\n tableHeaderHeight: 40,\n\n agendaResourceTableWidth: 160,\n agendaMaxEventWidth: 100,\n\n dayResourceTableWidth: 160,\n weekResourceTableWidth: '16%',\n monthResourceTableWidth: 160,\n quarterResourceTableWidth: 160,\n yearResourceTableWidth: 160,\n customResourceTableWidth: 160,\n\n dayCellWidth: 30,\n weekCellWidth: '12%',\n monthCellWidth: 80,\n quarterCellWidth: 80,\n yearCellWidth: 80,\n customCellWidth: 80,\n\n dayMaxEvents: 99,\n weekMaxEvents: 99,\n monthMaxEvents: 99,\n quarterMaxEvents: 99,\n yearMaxEvents: 99,\n customMaxEvents: 99,\n\n eventItemHeight: 22,\n eventItemLineHeight: 24,\n nonAgendaSlotMinHeight: 0,\n dayStartFrom: 0,\n dayStopTo: 23,\n defaultEventBgColor: '#80C5F6',\n selectedAreaColor: '#7EC2F3',\n nonWorkingTimeHeadColor: '#999999',\n nonWorkingTimeHeadBgColor: '#fff0f6',\n nonWorkingTimeBodyBgColor: '#fff0f6',\n summaryColor: '#666',\n summaryPos: _SummaryPos2.default.TopRight,\n groupOnlySlotColor: '#F8F8F8',\n\n startResizable: true,\n endResizable: true,\n movable: true,\n creatable: true,\n crossResourceMove: true,\n checkConflict: false,\n scrollToSpecialMomentEnabled: true,\n eventItemPopoverEnabled: true,\n calendarPopoverEnabled: true,\n recurringEventsEnabled: true,\n headerEnabled: true,\n displayWeekend: true,\n relativeMove: true,\n defaultExpanded: true,\n\n resourceName: 'Resource Name',\n taskName: 'Task Name',\n agendaViewHeader: 'Agenda',\n addMorePopoverHeaderFormat: 'MMM D, YYYY dddd',\n eventItemPopoverDateFormat: 'MMM D',\n nonAgendaDayCellHeaderFormat: 'ha',\n nonAgendaOtherCellHeaderFormat: 'ddd M/D',\n\n minuteStep: 30,\n\n views: [{ viewName: 'Day', viewType: _ViewTypes2.default.Day, showAgenda: false, isEventPerspective: false }, { viewName: 'Week', viewType: _ViewTypes2.default.Week, showAgenda: false, isEventPerspective: false }, { viewName: 'Month', viewType: _ViewTypes2.default.Month, showAgenda: false, isEventPerspective: false }, { viewName: 'Quarter', viewType: _ViewTypes2.default.Quarter, showAgenda: false, isEventPerspective: false }, { viewName: 'Year', viewType: _ViewTypes2.default.Year, showAgenda: false, isEventPerspective: false }]\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DemoData = exports.AddMorePopover = exports.DnDContext = exports.DnDSource = exports.SummaryPos = exports.CellUnits = exports.ViewTypes = exports.SchedulerData = exports.DATETIME_FORMAT = exports.DATE_FORMAT = undefined;\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _class, _temp, _initialiseProps;\n// Col, Row and Icon do not have their own less files for styling. They use \n// rules declared in antd's global css. If these styles are imported directly\n// from within antd, they'll include, for instance, reset rules. These will\n// affect everything on the page and in essence would leak antd's global styles\n// into all projects using this library. Instead of doing that, we are using\n// a hack which allows us to wrap all antd styles to target specific root. In\n// this case the root id will be \"RBS-Scheduler-root\". This way the reset styles\n// won't be applied to elements declared outside of component.\n//\n// You can get more context for the issue by reading:\n// https://github.com/ant-design/ant-design/issues/4331\n// The solution is based on:\n// https://github.com/ant-design/ant-design/issues/4331#issuecomment-391066131\n// \n// For development\n// This fix is implemented with webpack's NormalModuleReplacementPlugin in\n// webpack/webpack-dev.config.js.\n//\n// For library builds\n// This fix is implemented by the build script in scripts/build.js\n//\n// The next components have their own specific stylesheets which we import\n// separately here to avoid importing from files which have required the global\n// antd styles.\n\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _col = require('antd/lib/col');\n\nvar _col2 = _interopRequireDefault(_col);\n\nvar _row = require('antd/lib/row');\n\nvar _row2 = _interopRequireDefault(_row);\n\nvar _icon = require('antd/lib/icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nrequire('antd/lib/select/style/index.css');\n\nrequire('antd/lib/grid/style/index.css');\n\nvar _radio = require('antd/lib/radio');\n\nvar _radio2 = _interopRequireDefault(_radio);\n\nrequire('antd/lib/radio/style/index.css');\n\nvar _popover = require('antd/lib/popover');\n\nvar _popover2 = _interopRequireDefault(_popover);\n\nrequire('antd/lib/popover/style/index.css');\n\nvar _calendar = require('antd/lib/calendar');\n\nvar _calendar2 = _interopRequireDefault(_calendar);\n\nrequire('antd/lib/calendar/style/index.css');\n\nvar _EventItem = require('./EventItem');\n\nvar _EventItem2 = _interopRequireDefault(_EventItem);\n\nvar _DnDSource = require('./DnDSource');\n\nvar _DnDSource2 = _interopRequireDefault(_DnDSource);\n\nvar _DnDContext = require('./DnDContext');\n\nvar _DnDContext2 = _interopRequireDefault(_DnDContext);\n\nvar _ResourceView = require('./ResourceView');\n\nvar _ResourceView2 = _interopRequireDefault(_ResourceView);\n\nvar _HeaderView = require('./HeaderView');\n\nvar _HeaderView2 = _interopRequireDefault(_HeaderView);\n\nvar _BodyView = require('./BodyView');\n\nvar _BodyView2 = _interopRequireDefault(_BodyView);\n\nvar _ResourceEvents = require('./ResourceEvents');\n\nvar _ResourceEvents2 = _interopRequireDefault(_ResourceEvents);\n\nvar _AgendaView = require('./AgendaView');\n\nvar _AgendaView2 = _interopRequireDefault(_AgendaView);\n\nvar _AddMorePopover = require('./AddMorePopover');\n\nvar _AddMorePopover2 = _interopRequireDefault(_AddMorePopover);\n\nvar _ViewTypes = require('./ViewTypes');\n\nvar _ViewTypes2 = _interopRequireDefault(_ViewTypes);\n\nvar _CellUnits = require('./CellUnits');\n\nvar _CellUnits2 = _interopRequireDefault(_CellUnits);\n\nvar _SummaryPos = require('./SummaryPos');\n\nvar _SummaryPos2 = _interopRequireDefault(_SummaryPos);\n\nvar _SchedulerData = require('./SchedulerData');\n\nvar _SchedulerData2 = _interopRequireDefault(_SchedulerData);\n\nvar _DemoData = require('./DemoData');\n\nvar _DemoData2 = _interopRequireDefault(_DemoData);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar RadioButton = _radio2.default.Button;\nvar RadioGroup = _radio2.default.Group;\n\nvar Scheduler = (_temp = _class = function (_Component) {\n _inherits(Scheduler, _Component);\n\n function Scheduler(props) {\n _classCallCheck(this, Scheduler);\n\n var _this = _possibleConstructorReturn(this, (Scheduler.__proto__ || Object.getPrototypeOf(Scheduler)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var schedulerData = props.schedulerData,\n dndSources = props.dndSources;\n\n var sources = [];\n sources.push(new _DnDSource2.default(function (props) {\n return props.eventItem;\n }, _EventItem2.default));\n if (dndSources != undefined && dndSources.length > 0) {\n sources = [].concat(_toConsumableArray(sources), _toConsumableArray(dndSources));\n }\n var dndContext = new _DnDContext2.default(sources, _ResourceEvents2.default);\n\n _this.currentArea = -1;\n schedulerData._setDocumentWidth(document.documentElement.clientWidth);\n _this.state = {\n visible: false,\n dndContext: dndContext,\n contentHeight: schedulerData.getSchedulerContentDesiredHeight(),\n contentScrollbarHeight: 17,\n contentScrollbarWidth: 17,\n resourceScrollbarHeight: 17,\n resourceScrollbarWidth: 17,\n scrollLeft: 0,\n scrollTop: 0,\n documentWidth: document.documentElement.clientWidth,\n documentHeight: document.documentElement.clientHeight\n };\n\n if (schedulerData.isSchedulerResponsive()) window.onresize = _this.onWindowResize;\n return _this;\n }\n\n _createClass(Scheduler, [{\n key: 'componentDidMount',\n value: function componentDidMount(props, state) {\n this.resolveScrollbarSize();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(props, state) {\n this.resolveScrollbarSize();\n\n var schedulerData = this.props.schedulerData;\n var localeMoment = schedulerData.localeMoment,\n behaviors = schedulerData.behaviors;\n\n if (schedulerData.getScrollToSpecialMoment() && !!behaviors.getScrollSpecialMomentFunc) {\n if (!!this.schedulerContent && this.schedulerContent.scrollWidth > this.schedulerContent.clientWidth) {\n var start = localeMoment(schedulerData.startDate).startOf('day'),\n end = localeMoment(schedulerData.endDate).endOf('day'),\n specialMoment = behaviors.getScrollSpecialMomentFunc(schedulerData, start, end);\n if (specialMoment >= start && specialMoment <= end) {\n var index = 0;\n schedulerData.headers.forEach(function (item) {\n var header = localeMoment(item.time);\n if (specialMoment >= header) index++;\n });\n this.schedulerContent.scrollLeft = (index - 1) * schedulerData.getContentCellWidth();\n\n schedulerData.setScrollToSpecialMoment(false);\n }\n }\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n schedulerData = _props.schedulerData,\n leftCustomHeader = _props.leftCustomHeader,\n rightCustomHeader = _props.rightCustomHeader;\n var renderData = schedulerData.renderData,\n viewType = schedulerData.viewType,\n showAgenda = schedulerData.showAgenda,\n isEventPerspective = schedulerData.isEventPerspective,\n config = schedulerData.config;\n\n var width = schedulerData.getSchedulerWidth();\n var calendarPopoverEnabled = config.calendarPopoverEnabled;\n\n var dateLabel = schedulerData.getDateLabel();\n var defaultValue = '' + viewType + (showAgenda ? 1 : 0) + (isEventPerspective ? 1 : 0);\n var radioButtonList = config.views.map(function (item) {\n return _react2.default.createElement(\n RadioButton,\n { key: '' + item.viewType + (item.showAgenda ? 1 : 0) + (item.isEventPerspective ? 1 : 0),\n value: '' + item.viewType + (item.showAgenda ? 1 : 0) + (item.isEventPerspective ? 1 : 0) },\n _react2.default.createElement(\n 'span',\n {\n style: { margin: \"0px 8px\" } },\n item.viewName\n )\n );\n });\n\n var tbodyContent = _react2.default.createElement('tr', null);\n if (showAgenda) {\n tbodyContent = _react2.default.createElement(_AgendaView2.default, this.props);\n } else {\n var resourceTableWidth = schedulerData.getResourceTableWidth();\n var schedulerContainerWidth = width - resourceTableWidth + 1;\n var schedulerWidth = schedulerData.getContentTableWidth() - 1;\n var DndResourceEvents = this.state.dndContext.getDropTarget();\n var eventDndSource = this.state.dndContext.getDndSource();\n\n var displayRenderData = renderData.filter(function (o) {\n return o.render;\n });\n var resourceEventsList = displayRenderData.map(function (item) {\n return _react2.default.createElement(DndResourceEvents, _extends({}, _this2.props, {\n key: item.slotId,\n resourceEvents: item,\n dndSource: eventDndSource\n }));\n });\n\n var contentScrollbarHeight = this.state.contentScrollbarHeight,\n contentScrollbarWidth = this.state.contentScrollbarWidth,\n resourceScrollbarHeight = this.state.resourceScrollbarHeight,\n resourceScrollbarWidth = this.state.resourceScrollbarWidth,\n contentHeight = this.state.contentHeight;\n var resourcePaddingBottom = resourceScrollbarHeight === 0 ? contentScrollbarHeight : 0;\n var contentPaddingBottom = contentScrollbarHeight === 0 ? resourceScrollbarHeight : 0;\n var schedulerContentStyle = { overflow: 'auto', margin: \"0px\", position: \"relative\", paddingBottom: contentPaddingBottom };\n var resourceContentStyle = { overflowX: \"auto\", overflowY: \"auto\", width: resourceTableWidth + resourceScrollbarWidth - 2, margin: '0px -' + contentScrollbarWidth + 'px 0px 0px' };\n if (config.schedulerMaxHeight > 0) {\n schedulerContentStyle = _extends({}, schedulerContentStyle, {\n maxHeight: config.schedulerMaxHeight - config.tableHeaderHeight\n });\n resourceContentStyle = _extends({}, resourceContentStyle, {\n maxHeight: config.schedulerMaxHeight - config.tableHeaderHeight\n });\n }\n\n var resourceName = schedulerData.isEventPerspective ? config.taskName : config.resourceName;\n tbodyContent = _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n { style: { width: resourceTableWidth, verticalAlign: 'top' } },\n _react2.default.createElement(\n 'div',\n { className: 'resource-view' },\n _react2.default.createElement(\n 'div',\n { style: { overflow: \"hidden\", borderBottom: \"1px solid #e9e9e9\", height: config.tableHeaderHeight } },\n _react2.default.createElement(\n 'div',\n { style: { overflowX: \"scroll\", overflowY: \"hidden\", margin: '0px 0px -' + contentScrollbarHeight + 'px' } },\n _react2.default.createElement(\n 'table',\n { className: 'resource-table' },\n _react2.default.createElement(\n 'thead',\n null,\n _react2.default.createElement(\n 'tr',\n { style: { height: config.tableHeaderHeight } },\n _react2.default.createElement(\n 'th',\n { className: 'header3-text' },\n resourceName\n )\n )\n )\n )\n )\n ),\n _react2.default.createElement(\n 'div',\n { style: resourceContentStyle, ref: this.schedulerResourceRef, onMouseOver: this.onSchedulerResourceMouseOver, onMouseOut: this.onSchedulerResourceMouseOut, onScroll: this.onSchedulerResourceScroll },\n _react2.default.createElement(_ResourceView2.default, _extends({}, this.props, {\n contentScrollbarHeight: resourcePaddingBottom\n }))\n )\n )\n ),\n _react2.default.createElement(\n 'td',\n null,\n _react2.default.createElement(\n 'div',\n { className: 'scheduler-view', style: { width: schedulerContainerWidth, verticalAlign: 'top' } },\n _react2.default.createElement(\n 'div',\n { style: { overflow: \"hidden\", borderBottom: \"1px solid #e9e9e9\", height: config.tableHeaderHeight } },\n _react2.default.createElement(\n 'div',\n { style: { overflowX: \"scroll\", overflowY: \"hidden\", margin: '0px 0px -' + contentScrollbarHeight + 'px' }, ref: this.schedulerHeadRef, onMouseOver: this.onSchedulerHeadMouseOver, onMouseOut: this.onSchedulerHeadMouseOut, onScroll: this.onSchedulerHeadScroll },\n _react2.default.createElement(\n 'div',\n { style: { paddingRight: contentScrollbarWidth + 'px', width: schedulerWidth + contentScrollbarWidth } },\n _react2.default.createElement(\n 'table',\n { className: 'scheduler-bg-table' },\n _react2.default.createElement(_HeaderView2.default, this.props)\n )\n )\n )\n ),\n _react2.default.createElement(\n 'div',\n { style: schedulerContentStyle, ref: this.schedulerContentRef, onMouseOver: this.onSchedulerContentMouseOver, onMouseOut: this.onSchedulerContentMouseOut, onScroll: this.onSchedulerContentScroll },\n _react2.default.createElement(\n 'div',\n { style: { width: schedulerWidth, height: contentHeight } },\n _react2.default.createElement(\n 'div',\n { className: 'scheduler-content' },\n _react2.default.createElement(\n 'table',\n { className: 'scheduler-content-table' },\n _react2.default.createElement(\n 'tbody',\n null,\n resourceEventsList\n )\n )\n ),\n _react2.default.createElement(\n 'div',\n { className: 'scheduler-bg' },\n _react2.default.createElement(\n 'table',\n { className: 'scheduler-bg-table', style: { width: schedulerWidth }, ref: this.schedulerContentBgTableRef },\n _react2.default.createElement(_BodyView2.default, this.props)\n )\n )\n )\n )\n )\n )\n );\n };\n\n var popover = _react2.default.createElement(\n 'div',\n { className: 'popover-calendar' },\n _react2.default.createElement(_calendar2.default, { fullscreen: false, onSelect: this.onSelect })\n );\n var schedulerHeader = _react2.default.createElement('div', null);\n if (config.headerEnabled) {\n schedulerHeader = _react2.default.createElement(\n _row2.default,\n { type: 'flex', align: 'middle', justify: 'space-between', style: { marginBottom: '24px' } },\n leftCustomHeader,\n _react2.default.createElement(\n _col2.default,\n null,\n _react2.default.createElement(\n 'div',\n { className: 'header2-text' },\n _react2.default.createElement(_icon2.default, { type: 'left', style: { marginRight: \"8px\" }, className: 'icon-nav',\n onClick: this.goBack }),\n calendarPopoverEnabled ? _react2.default.createElement(\n _popover2.default,\n { content: popover, placement: 'bottom', trigger: 'click',\n visible: this.state.visible,\n onVisibleChange: this.handleVisibleChange },\n _react2.default.createElement(\n 'span',\n { className: 'header2-text-label', style: { cursor: 'pointer' } },\n dateLabel\n )\n ) : _react2.default.createElement(\n 'span',\n { className: 'header2-text-label' },\n dateLabel\n ),\n _react2.default.createElement(_icon2.default, { type: 'right', style: { marginLeft: \"8px\" }, className: 'icon-nav',\n onClick: this.goNext })\n )\n ),\n _react2.default.createElement(\n _col2.default,\n null,\n _react2.default.createElement(\n RadioGroup,\n { defaultValue: defaultValue, size: 'default', onChange: this.onViewChange },\n radioButtonList\n )\n ),\n rightCustomHeader\n );\n }\n\n return _react2.default.createElement(\n 'table',\n { id: 'RBS-Scheduler-root', className: 'scheduler', style: { width: width + 'px' } },\n _react2.default.createElement(\n 'thead',\n null,\n _react2.default.createElement(\n 'tr',\n null,\n _react2.default.createElement(\n 'td',\n { colSpan: '2' },\n schedulerHeader\n )\n )\n ),\n _react2.default.createElement(\n 'tbody',\n null,\n tbodyContent\n )\n );\n }\n }]);\n\n return Scheduler;\n}(_react.Component), _class.propTypes = {\n schedulerData: _propTypes.PropTypes.object.isRequired,\n prevClick: _propTypes.PropTypes.func.isRequired,\n nextClick: _propTypes.PropTypes.func.isRequired,\n onViewChange: _propTypes.PropTypes.func.isRequired,\n onSelectDate: _propTypes.PropTypes.func.isRequired,\n onSetAddMoreState: _propTypes.PropTypes.func,\n updateEventStart: _propTypes.PropTypes.func,\n updateEventEnd: _propTypes.PropTypes.func,\n moveEvent: _propTypes.PropTypes.func,\n movingEvent: _propTypes.PropTypes.func,\n leftCustomHeader: _propTypes.PropTypes.object,\n rightCustomHeader: _propTypes.PropTypes.object,\n newEvent: _propTypes.PropTypes.func,\n subtitleGetter: _propTypes.PropTypes.func,\n eventItemClick: _propTypes.PropTypes.func,\n viewEventClick: _propTypes.PropTypes.func,\n viewEventText: _propTypes.PropTypes.string,\n viewEvent2Click: _propTypes.PropTypes.func,\n viewEvent2Text: _propTypes.PropTypes.string,\n conflictOccurred: _propTypes.PropTypes.func,\n eventItemTemplateResolver: _propTypes.PropTypes.func,\n dndSources: _propTypes.PropTypes.array,\n slotClickedFunc: _propTypes.PropTypes.func,\n toggleExpandFunc: _propTypes.PropTypes.func,\n slotItemTemplateResolver: _propTypes.PropTypes.func,\n nonAgendaCellHeaderTemplateResolver: _propTypes.PropTypes.func,\n onScrollLeft: _propTypes.PropTypes.func,\n onScrollRight: _propTypes.PropTypes.func,\n onScrollTop: _propTypes.PropTypes.func,\n onScrollBottom: _propTypes.PropTypes.func\n}, _initialiseProps = function _initialiseProps() {\n var _this3 = this;\n\n this.onWindowResize = function (e) {\n var schedulerData = _this3.props.schedulerData;\n\n schedulerData._setDocumentWidth(document.documentElement.clientWidth);\n _this3.setState({\n documentWidth: document.documentElement.clientWidth,\n documentHeight: document.documentElement.clientHeight\n });\n };\n\n this.resolveScrollbarSize = function () {\n var schedulerData = _this3.props.schedulerData;\n\n var contentScrollbarHeight = 17,\n contentScrollbarWidth = 17,\n resourceScrollbarHeight = 17,\n resourceScrollbarWidth = 17,\n contentHeight = schedulerData.getSchedulerContentDesiredHeight();\n if (!!_this3.schedulerContent) {\n contentScrollbarHeight = _this3.schedulerContent.offsetHeight - _this3.schedulerContent.clientHeight;\n contentScrollbarWidth = _this3.schedulerContent.offsetWidth - _this3.schedulerContent.clientWidth;\n }\n if (!!_this3.schedulerResource) {\n resourceScrollbarHeight = _this3.schedulerResource.offsetHeight - _this3.schedulerResource.clientHeight;\n resourceScrollbarWidth = _this3.schedulerResource.offsetWidth - _this3.schedulerResource.clientWidth;\n }\n if (!!_this3.schedulerContentBgTable && !!_this3.schedulerContentBgTable.offsetHeight) {\n contentHeight = _this3.schedulerContentBgTable.offsetHeight;\n }\n\n var tmpState = {};\n var needSet = false;\n if (contentScrollbarHeight != _this3.state.contentScrollbarHeight) {\n tmpState = _extends({}, tmpState, { contentScrollbarHeight: contentScrollbarHeight });\n needSet = true;\n }\n if (contentScrollbarWidth != _this3.state.contentScrollbarWidth) {\n tmpState = _extends({}, tmpState, { contentScrollbarWidth: contentScrollbarWidth });\n needSet = true;\n }\n if (contentHeight != _this3.state.contentHeight) {\n tmpState = _extends({}, tmpState, { contentHeight: contentHeight });\n needSet = true;\n }\n if (resourceScrollbarHeight != _this3.state.resourceScrollbarHeight) {\n tmpState = _extends({}, tmpState, { resourceScrollbarHeight: resourceScrollbarHeight });\n needSet = true;\n }\n if (resourceScrollbarWidth != _this3.state.resourceScrollbarWidth) {\n tmpState = _extends({}, tmpState, { resourceScrollbarWidth: resourceScrollbarWidth });\n needSet = true;\n }\n if (needSet) _this3.setState(tmpState);\n };\n\n this.schedulerHeadRef = function (element) {\n _this3.schedulerHead = element;\n };\n\n this.onSchedulerHeadMouseOver = function () {\n _this3.currentArea = 2;\n };\n\n this.onSchedulerHeadMouseOut = function () {\n _this3.currentArea = -1;\n };\n\n this.onSchedulerHeadScroll = function (proxy, event) {\n if ((_this3.currentArea === 2 || _this3.currentArea === -1) && _this3.schedulerContent.scrollLeft != _this3.schedulerHead.scrollLeft) _this3.schedulerContent.scrollLeft = _this3.schedulerHead.scrollLeft;\n };\n\n this.schedulerResourceRef = function (element) {\n _this3.schedulerResource = element;\n };\n\n this.onSchedulerResourceMouseOver = function () {\n _this3.currentArea = 1;\n };\n\n this.onSchedulerResourceMouseOut = function () {\n _this3.currentArea = -1;\n };\n\n this.onSchedulerResourceScroll = function (proxy, event) {\n if ((_this3.currentArea === 1 || _this3.currentArea === -1) && _this3.schedulerContent.scrollTop != _this3.schedulerResource.scrollTop) _this3.schedulerContent.scrollTop = _this3.schedulerResource.scrollTop;\n };\n\n this.schedulerContentRef = function (element) {\n _this3.schedulerContent = element;\n };\n\n this.schedulerContentBgTableRef = function (element) {\n _this3.schedulerContentBgTable = element;\n };\n\n this.onSchedulerContentMouseOver = function () {\n _this3.currentArea = 0;\n };\n\n this.onSchedulerContentMouseOut = function () {\n _this3.currentArea = -1;\n };\n\n this.onSchedulerContentScroll = function (proxy, event) {\n if (_this3.currentArea === 0 || _this3.currentArea === -1) {\n if (_this3.schedulerHead.scrollLeft != _this3.schedulerContent.scrollLeft) _this3.schedulerHead.scrollLeft = _this3.schedulerContent.scrollLeft;\n if (_this3.schedulerResource.scrollTop != _this3.schedulerContent.scrollTop) _this3.schedulerResource.scrollTop = _this3.schedulerContent.scrollTop;\n }\n\n var _props2 = _this3.props,\n schedulerData = _props2.schedulerData,\n onScrollLeft = _props2.onScrollLeft,\n onScrollRight = _props2.onScrollRight,\n onScrollTop = _props2.onScrollTop,\n onScrollBottom = _props2.onScrollBottom;\n var _state = _this3.state,\n scrollLeft = _state.scrollLeft,\n scrollTop = _state.scrollTop;\n\n if (_this3.schedulerContent.scrollLeft !== scrollLeft) {\n if (_this3.schedulerContent.scrollLeft === 0 && onScrollLeft != undefined) {\n onScrollLeft(schedulerData, _this3.schedulerContent, _this3.schedulerContent.scrollWidth - _this3.schedulerContent.clientWidth);\n }\n if (_this3.schedulerContent.scrollLeft === _this3.schedulerContent.scrollWidth - _this3.schedulerContent.clientWidth && onScrollRight != undefined) {\n onScrollRight(schedulerData, _this3.schedulerContent, _this3.schedulerContent.scrollWidth - _this3.schedulerContent.clientWidth);\n }\n } else if (_this3.schedulerContent.scrollTop !== scrollTop) {\n if (_this3.schedulerContent.scrollTop === 0 && onScrollTop != undefined) {\n onScrollTop(schedulerData, _this3.schedulerContent, _this3.schedulerContent.scrollHeight - _this3.schedulerContent.clientHeight);\n }\n if (_this3.schedulerContent.scrollTop === _this3.schedulerContent.scrollHeight - _this3.schedulerContent.clientHeight && onScrollBottom != undefined) {\n onScrollBottom(schedulerData, _this3.schedulerContent, _this3.schedulerContent.scrollHeight - _this3.schedulerContent.clientHeight);\n }\n }\n _this3.setState({\n scrollLeft: _this3.schedulerContent.scrollLeft,\n scrollTop: _this3.schedulerContent.scrollTop\n });\n };\n\n this.onViewChange = function (e) {\n var _props3 = _this3.props,\n onViewChange = _props3.onViewChange,\n schedulerData = _props3.schedulerData;\n\n var viewType = parseInt(e.target.value.charAt(0));\n var showAgenda = e.target.value.charAt(1) === '1';\n var isEventPerspective = e.target.value.charAt(2) === '1';\n onViewChange(schedulerData, { viewType: viewType, showAgenda: showAgenda, isEventPerspective: isEventPerspective });\n };\n\n this.goNext = function () {\n var _props4 = _this3.props,\n nextClick = _props4.nextClick,\n schedulerData = _props4.schedulerData;\n\n nextClick(schedulerData);\n };\n\n this.goBack = function () {\n var _props5 = _this3.props,\n prevClick = _props5.prevClick,\n schedulerData = _props5.schedulerData;\n\n prevClick(schedulerData);\n };\n\n this.handleVisibleChange = function (visible) {\n _this3.setState({ visible: visible });\n };\n\n this.onSelect = function (date) {\n _this3.setState({\n visible: false\n });\n\n var _props6 = _this3.props,\n onSelectDate = _props6.onSelectDate,\n schedulerData = _props6.schedulerData;\n\n onSelectDate(schedulerData, date);\n };\n}, _temp);\nvar DATE_FORMAT = exports.DATE_FORMAT = 'YYYY-MM-DD';\nvar DATETIME_FORMAT = exports.DATETIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';\nexports.SchedulerData = _SchedulerData2.default;\nexports.ViewTypes = _ViewTypes2.default;\nexports.CellUnits = _CellUnits2.default;\nexports.SummaryPos = _SummaryPos2.default;\nexports.DnDSource = _DnDSource2.default;\nexports.DnDContext = _DnDContext2.default;\nexports.AddMorePopover = _AddMorePopover2.default;\nexports.DemoData = _DemoData2.default;\nexports.default = Scheduler;\n\n// this line has been added by scripts/build.js\nrequire('./css/antd-globals-hiding-hack.css');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nexports.isFirefox = discount_lodash_1.memoize(function () {\n return /firefox/i.test(navigator.userAgent);\n});\nexports.isSafari = discount_lodash_1.memoize(function () { return Boolean(window.safari); });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar EnterLeaveCounter = /** @class */ (function () {\n function EnterLeaveCounter(isNodeInDocument) {\n this.entered = [];\n this.isNodeInDocument = isNodeInDocument;\n }\n EnterLeaveCounter.prototype.enter = function (enteringNode) {\n var _this = this;\n var previousLength = this.entered.length;\n var isNodeEntered = function (node) {\n return _this.isNodeInDocument(node) &&\n (!node.contains || node.contains(enteringNode));\n };\n this.entered = discount_lodash_1.union(this.entered.filter(isNodeEntered), [enteringNode]);\n return previousLength === 0 && this.entered.length > 0;\n };\n EnterLeaveCounter.prototype.leave = function (leavingNode) {\n var previousLength = this.entered.length;\n this.entered = discount_lodash_1.without(this.entered.filter(this.isNodeInDocument), leavingNode);\n return previousLength > 0 && this.entered.length === 0;\n };\n EnterLeaveCounter.prototype.reset = function () {\n this.entered = [];\n };\n return EnterLeaveCounter;\n}());\nexports.default = EnterLeaveCounter;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar EnterLeaveCounter_1 = require(\"./EnterLeaveCounter\");\nvar BrowserDetector_1 = require(\"./BrowserDetector\");\nvar OffsetUtils_1 = require(\"./OffsetUtils\");\nvar NativeDragSources_1 = require(\"./NativeDragSources\");\nvar NativeTypes = require(\"./NativeTypes\");\nvar HTML5Backend = /** @class */ (function () {\n function HTML5Backend(manager) {\n var _this = this;\n this.sourcePreviewNodes = new Map();\n this.sourcePreviewNodeOptions = new Map();\n this.sourceNodes = new Map();\n this.sourceNodeOptions = new Map();\n this.dragStartSourceIds = null;\n this.dropTargetIds = [];\n this.dragEnterTargetIds = [];\n this.currentNativeSource = null;\n this.currentNativeHandle = null;\n this.currentDragSourceNode = null;\n this.altKeyPressed = false;\n this.mouseMoveTimeoutTimer = null;\n this.asyncEndDragFrameId = null;\n this.dragOverTargetIds = null;\n this.getSourceClientOffset = function (sourceId) {\n return OffsetUtils_1.getNodeClientOffset(_this.sourceNodes.get(sourceId));\n };\n this.endDragNativeItem = function () {\n if (!_this.isDraggingNativeItem()) {\n return;\n }\n _this.actions.endDrag();\n _this.registry.removeSource(_this.currentNativeHandle);\n _this.currentNativeHandle = null;\n _this.currentNativeSource = null;\n };\n this.isNodeInDocument = function (node) {\n // Check the node either in the main document or in the current context\n return ((!!document && document.body.contains(node)) ||\n (!!_this.window && _this.window.document.body.contains(node)));\n };\n this.endDragIfSourceWasRemovedFromDOM = function () {\n var node = _this.currentDragSourceNode;\n if (_this.isNodeInDocument(node)) {\n return;\n }\n if (_this.clearCurrentDragSourceNode()) {\n _this.actions.endDrag();\n }\n };\n this.handleTopDragStartCapture = function () {\n _this.clearCurrentDragSourceNode();\n _this.dragStartSourceIds = [];\n };\n this.handleTopDragStart = function (e) {\n var dragStartSourceIds = _this.dragStartSourceIds;\n _this.dragStartSourceIds = null;\n var clientOffset = OffsetUtils_1.getEventClientOffset(e);\n // Avoid crashing if we missed a drop event or our previous drag died\n if (_this.monitor.isDragging()) {\n _this.actions.endDrag();\n }\n // Don't publish the source just yet (see why below)\n _this.actions.beginDrag(dragStartSourceIds || [], {\n publishSource: false,\n getSourceClientOffset: _this.getSourceClientOffset,\n clientOffset: clientOffset,\n });\n var dataTransfer = e.dataTransfer;\n var nativeType = NativeDragSources_1.matchNativeItemType(dataTransfer);\n if (_this.monitor.isDragging()) {\n if (dataTransfer && typeof dataTransfer.setDragImage === 'function') {\n // Use custom drag image if user specifies it.\n // If child drag source refuses drag but parent agrees,\n // use parent's node as drag image. Neither works in IE though.\n var sourceId = _this.monitor.getSourceId();\n var sourceNode = _this.sourceNodes.get(sourceId);\n var dragPreview = _this.sourcePreviewNodes.get(sourceId) || sourceNode;\n if (dragPreview) {\n var _a = _this.getCurrentSourcePreviewNodeOptions(), anchorX = _a.anchorX, anchorY = _a.anchorY, offsetX = _a.offsetX, offsetY = _a.offsetY;\n var anchorPoint = { anchorX: anchorX, anchorY: anchorY };\n var offsetPoint = { offsetX: offsetX, offsetY: offsetY };\n var dragPreviewOffset = OffsetUtils_1.getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint);\n dataTransfer.setDragImage(dragPreview, dragPreviewOffset.x, dragPreviewOffset.y);\n }\n }\n try {\n // Firefox won't drag without setting data\n dataTransfer.setData('application/json', {});\n }\n catch (err) {\n // IE doesn't support MIME types in setData\n }\n // Store drag source node so we can check whether\n // it is removed from DOM and trigger endDrag manually.\n _this.setCurrentDragSourceNode(e.target);\n // Now we are ready to publish the drag source.. or are we not?\n var captureDraggingState = _this.getCurrentSourcePreviewNodeOptions().captureDraggingState;\n if (!captureDraggingState) {\n // Usually we want to publish it in the next tick so that browser\n // is able to screenshot the current (not yet dragging) state.\n //\n // It also neatly avoids a situation where render() returns null\n // in the same tick for the source element, and browser freaks out.\n setTimeout(function () { return _this.actions.publishDragSource(); }, 0);\n }\n else {\n // In some cases the user may want to override this behavior, e.g.\n // to work around IE not supporting custom drag previews.\n //\n // When using a custom drag layer, the only way to prevent\n // the default drag preview from drawing in IE is to screenshot\n // the dragging state in which the node itself has zero opacity\n // and height. In this case, though, returning null from render()\n // will abruptly end the dragging, which is not obvious.\n //\n // This is the reason such behavior is strictly opt-in.\n _this.actions.publishDragSource();\n }\n }\n else if (nativeType) {\n // A native item (such as URL) dragged from inside the document\n _this.beginDragNativeItem(nativeType);\n }\n else if (dataTransfer &&\n !dataTransfer.types &&\n ((e.target && !e.target.hasAttribute) ||\n !e.target.hasAttribute('draggable'))) {\n // Looks like a Safari bug: dataTransfer.types is null, but there was no draggable.\n // Just let it drag. It's a native type (URL or text) and will be picked up in\n // dragenter handler.\n return;\n }\n else {\n // If by this time no drag source reacted, tell browser not to drag.\n e.preventDefault();\n }\n };\n this.handleTopDragEndCapture = function () {\n if (_this.clearCurrentDragSourceNode()) {\n // Firefox can dispatch this event in an infinite loop\n // if dragend handler does something like showing an alert.\n // Only proceed if we have not handled it already.\n _this.actions.endDrag();\n }\n };\n this.handleTopDragEnterCapture = function (e) {\n _this.dragEnterTargetIds = [];\n var isFirstEnter = _this.enterLeaveCounter.enter(e.target);\n if (!isFirstEnter || _this.monitor.isDragging()) {\n return;\n }\n var dataTransfer = e.dataTransfer;\n var nativeType = NativeDragSources_1.matchNativeItemType(dataTransfer);\n if (nativeType) {\n // A native item (such as file or URL) dragged from outside the document\n _this.beginDragNativeItem(nativeType);\n }\n };\n this.handleTopDragEnter = function (e) {\n var dragEnterTargetIds = _this.dragEnterTargetIds;\n _this.dragEnterTargetIds = [];\n if (!_this.monitor.isDragging()) {\n // This is probably a native item type we don't understand.\n return;\n }\n _this.altKeyPressed = e.altKey;\n if (!BrowserDetector_1.isFirefox()) {\n // Don't emit hover in `dragenter` on Firefox due to an edge case.\n // If the target changes position as the result of `dragenter`, Firefox\n // will still happily dispatch `dragover` despite target being no longer\n // there. The easy solution is to only fire `hover` in `dragover` on FF.\n _this.actions.hover(dragEnterTargetIds, {\n clientOffset: OffsetUtils_1.getEventClientOffset(e),\n });\n }\n var canDrop = dragEnterTargetIds.some(function (targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n if (canDrop) {\n // IE requires this to fire dragover events\n e.preventDefault();\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n }\n }\n };\n this.handleTopDragOverCapture = function () {\n _this.dragOverTargetIds = [];\n };\n this.handleTopDragOver = function (e) {\n var dragOverTargetIds = _this.dragOverTargetIds;\n _this.dragOverTargetIds = [];\n if (!_this.monitor.isDragging()) {\n // This is probably a native item type we don't understand.\n // Prevent default \"drop and blow away the whole document\" action.\n e.preventDefault();\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = 'none';\n }\n return;\n }\n _this.altKeyPressed = e.altKey;\n _this.actions.hover(dragOverTargetIds || [], {\n clientOffset: OffsetUtils_1.getEventClientOffset(e),\n });\n var canDrop = (dragOverTargetIds || []).some(function (targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n if (canDrop) {\n // Show user-specified drop effect.\n e.preventDefault();\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n }\n }\n else if (_this.isDraggingNativeItem()) {\n // Don't show a nice cursor but still prevent default\n // \"drop and blow away the whole document\" action.\n e.preventDefault();\n }\n else {\n e.preventDefault();\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = 'none';\n }\n }\n };\n this.handleTopDragLeaveCapture = function (e) {\n if (_this.isDraggingNativeItem()) {\n e.preventDefault();\n }\n var isLastLeave = _this.enterLeaveCounter.leave(e.target);\n if (!isLastLeave) {\n return;\n }\n if (_this.isDraggingNativeItem()) {\n _this.endDragNativeItem();\n }\n };\n this.handleTopDropCapture = function (e) {\n _this.dropTargetIds = [];\n e.preventDefault();\n if (_this.isDraggingNativeItem()) {\n _this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer);\n }\n _this.enterLeaveCounter.reset();\n };\n this.handleTopDrop = function (e) {\n var dropTargetIds = _this.dropTargetIds;\n _this.dropTargetIds = [];\n _this.actions.hover(dropTargetIds, {\n clientOffset: OffsetUtils_1.getEventClientOffset(e),\n });\n _this.actions.drop({ dropEffect: _this.getCurrentDropEffect() });\n if (_this.isDraggingNativeItem()) {\n _this.endDragNativeItem();\n }\n else {\n _this.endDragIfSourceWasRemovedFromDOM();\n }\n };\n this.handleSelectStart = function (e) {\n var target = e.target;\n // Only IE requires us to explicitly say\n // we want drag drop operation to start\n if (typeof target.dragDrop !== 'function') {\n return;\n }\n // Inputs and textareas should be selectable\n if (target.tagName === 'INPUT' ||\n target.tagName === 'SELECT' ||\n target.tagName === 'TEXTAREA' ||\n target.isContentEditable) {\n return;\n }\n // For other targets, ask IE\n // to enable drag and drop\n e.preventDefault();\n target.dragDrop();\n };\n this.actions = manager.getActions();\n this.monitor = manager.getMonitor();\n this.registry = manager.getRegistry();\n this.context = manager.getContext();\n this.enterLeaveCounter = new EnterLeaveCounter_1.default(this.isNodeInDocument);\n }\n Object.defineProperty(HTML5Backend.prototype, \"window\", {\n // public for test\n get: function () {\n if (this.context && this.context.window) {\n return this.context.window;\n }\n else if (typeof window !== 'undefined') {\n return window;\n }\n return undefined;\n },\n enumerable: true,\n configurable: true\n });\n HTML5Backend.prototype.setup = function () {\n if (this.window === undefined) {\n return;\n }\n if (this.window.__isReactDndBackendSetUp) {\n throw new Error('Cannot have two HTML5 backends at the same time.');\n }\n this.window.__isReactDndBackendSetUp = true;\n this.addEventListeners(this.window);\n };\n HTML5Backend.prototype.teardown = function () {\n if (this.window === undefined) {\n return;\n }\n this.window.__isReactDndBackendSetUp = false;\n this.removeEventListeners(this.window);\n this.clearCurrentDragSourceNode();\n if (this.asyncEndDragFrameId) {\n this.window.cancelAnimationFrame(this.asyncEndDragFrameId);\n }\n };\n HTML5Backend.prototype.connectDragPreview = function (sourceId, node, options) {\n var _this = this;\n this.sourcePreviewNodeOptions.set(sourceId, options);\n this.sourcePreviewNodes.set(sourceId, node);\n return function () {\n _this.sourcePreviewNodes.delete(sourceId);\n _this.sourcePreviewNodeOptions.delete(sourceId);\n };\n };\n HTML5Backend.prototype.connectDragSource = function (sourceId, node, options) {\n var _this = this;\n this.sourceNodes.set(sourceId, node);\n this.sourceNodeOptions.set(sourceId, options);\n var handleDragStart = function (e) { return _this.handleDragStart(e, sourceId); };\n var handleSelectStart = function (e) { return _this.handleSelectStart(e); };\n node.setAttribute('draggable', 'true');\n node.addEventListener('dragstart', handleDragStart);\n node.addEventListener('selectstart', handleSelectStart);\n return function () {\n _this.sourceNodes.delete(sourceId);\n _this.sourceNodeOptions.delete(sourceId);\n node.removeEventListener('dragstart', handleDragStart);\n node.removeEventListener('selectstart', handleSelectStart);\n node.setAttribute('draggable', 'false');\n };\n };\n HTML5Backend.prototype.connectDropTarget = function (targetId, node) {\n var _this = this;\n var handleDragEnter = function (e) { return _this.handleDragEnter(e, targetId); };\n var handleDragOver = function (e) { return _this.handleDragOver(e, targetId); };\n var handleDrop = function (e) { return _this.handleDrop(e, targetId); };\n node.addEventListener('dragenter', handleDragEnter);\n node.addEventListener('dragover', handleDragOver);\n node.addEventListener('drop', handleDrop);\n return function () {\n node.removeEventListener('dragenter', handleDragEnter);\n node.removeEventListener('dragover', handleDragOver);\n node.removeEventListener('drop', handleDrop);\n };\n };\n HTML5Backend.prototype.addEventListeners = function (target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.addEventListener) {\n return;\n }\n target.addEventListener('dragstart', this\n .handleTopDragStart);\n target.addEventListener('dragstart', this.handleTopDragStartCapture, true);\n target.addEventListener('dragend', this.handleTopDragEndCapture, true);\n target.addEventListener('dragenter', this\n .handleTopDragEnter);\n target.addEventListener('dragenter', this.handleTopDragEnterCapture, true);\n target.addEventListener('dragleave', this.handleTopDragLeaveCapture, true);\n target.addEventListener('dragover', this.handleTopDragOver);\n target.addEventListener('dragover', this.handleTopDragOverCapture, true);\n target.addEventListener('drop', this.handleTopDrop);\n target.addEventListener('drop', this.handleTopDropCapture, true);\n };\n HTML5Backend.prototype.removeEventListeners = function (target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.removeEventListener) {\n return;\n }\n target.removeEventListener('dragstart', this.handleTopDragStart);\n target.removeEventListener('dragstart', this.handleTopDragStartCapture, true);\n target.removeEventListener('dragend', this.handleTopDragEndCapture, true);\n target.removeEventListener('dragenter', this\n .handleTopDragEnter);\n target.removeEventListener('dragenter', this.handleTopDragEnterCapture, true);\n target.removeEventListener('dragleave', this.handleTopDragLeaveCapture, true);\n target.removeEventListener('dragover', this\n .handleTopDragOver);\n target.removeEventListener('dragover', this.handleTopDragOverCapture, true);\n target.removeEventListener('drop', this.handleTopDrop);\n target.removeEventListener('drop', this.handleTopDropCapture, true);\n };\n HTML5Backend.prototype.getCurrentSourceNodeOptions = function () {\n var sourceId = this.monitor.getSourceId();\n var sourceNodeOptions = this.sourceNodeOptions.get(sourceId);\n return __assign({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, (sourceNodeOptions || {}));\n };\n HTML5Backend.prototype.getCurrentDropEffect = function () {\n if (this.isDraggingNativeItem()) {\n // It makes more sense to default to 'copy' for native resources\n return 'copy';\n }\n return this.getCurrentSourceNodeOptions().dropEffect;\n };\n HTML5Backend.prototype.getCurrentSourcePreviewNodeOptions = function () {\n var sourceId = this.monitor.getSourceId();\n var sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId);\n return __assign({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: false }, (sourcePreviewNodeOptions || {}));\n };\n HTML5Backend.prototype.isDraggingNativeItem = function () {\n var itemType = this.monitor.getItemType();\n return Object.keys(NativeTypes).some(function (key) { return NativeTypes[key] === itemType; });\n };\n HTML5Backend.prototype.beginDragNativeItem = function (type) {\n this.clearCurrentDragSourceNode();\n this.currentNativeSource = NativeDragSources_1.createNativeDragSource(type);\n this.currentNativeHandle = this.registry.addSource(type, this.currentNativeSource);\n this.actions.beginDrag([this.currentNativeHandle]);\n };\n HTML5Backend.prototype.setCurrentDragSourceNode = function (node) {\n var _this = this;\n this.clearCurrentDragSourceNode();\n this.currentDragSourceNode = node;\n // A timeout of > 0 is necessary to resolve Firefox issue referenced\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n var MOUSE_MOVE_TIMEOUT = 1000;\n // Receiving a mouse event in the middle of a dragging operation\n // means it has ended and the drag source node disappeared from DOM,\n // so the browser didn't dispatch the dragend event.\n //\n // We need to wait before we start listening for mousemove events.\n // This is needed because the drag preview needs to be drawn or else it fires an 'mousemove' event\n // immediately in some browsers.\n //\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n //\n this.mouseMoveTimeoutTimer = setTimeout(function () {\n return (_this.window &&\n _this.window.addEventListener('mousemove', _this.endDragIfSourceWasRemovedFromDOM, true));\n }, MOUSE_MOVE_TIMEOUT);\n };\n HTML5Backend.prototype.clearCurrentDragSourceNode = function () {\n if (this.currentDragSourceNode) {\n this.currentDragSourceNode = null;\n if (this.window) {\n this.window.clearTimeout(this.mouseMoveTimeoutTimer || undefined);\n this.window.removeEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, true);\n }\n this.mouseMoveTimeoutTimer = null;\n return true;\n }\n return false;\n };\n HTML5Backend.prototype.handleDragStart = function (e, sourceId) {\n if (!this.dragStartSourceIds) {\n this.dragStartSourceIds = [];\n }\n this.dragStartSourceIds.unshift(sourceId);\n };\n HTML5Backend.prototype.handleDragEnter = function (e, targetId) {\n this.dragEnterTargetIds.unshift(targetId);\n };\n HTML5Backend.prototype.handleDragOver = function (e, targetId) {\n if (this.dragOverTargetIds === null) {\n this.dragOverTargetIds = [];\n }\n this.dragOverTargetIds.unshift(targetId);\n };\n HTML5Backend.prototype.handleDrop = function (e, targetId) {\n this.dropTargetIds.unshift(targetId);\n };\n return HTML5Backend;\n}());\nexports.default = HTML5Backend;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar MonotonicInterpolant = /** @class */ (function () {\n function MonotonicInterpolant(xs, ys) {\n var length = xs.length;\n // Rearrange xs and ys so that xs is sorted\n var indexes = [];\n for (var i = 0; i < length; i++) {\n indexes.push(i);\n }\n indexes.sort(function (a, b) { return (xs[a] < xs[b] ? -1 : 1); });\n // Get consecutive differences and slopes\n var dys = [];\n var dxs = [];\n var ms = [];\n var dx;\n var dy;\n for (var i = 0; i < length - 1; i++) {\n dx = xs[i + 1] - xs[i];\n dy = ys[i + 1] - ys[i];\n dxs.push(dx);\n dys.push(dy);\n ms.push(dy / dx);\n }\n // Get degree-1 coefficients\n var c1s = [ms[0]];\n for (var i = 0; i < dxs.length - 1; i++) {\n var m2 = ms[i];\n var mNext = ms[i + 1];\n if (m2 * mNext <= 0) {\n c1s.push(0);\n }\n else {\n dx = dxs[i];\n var dxNext = dxs[i + 1];\n var common = dx + dxNext;\n c1s.push(3 * common / ((common + dxNext) / m2 + (common + dx) / mNext));\n }\n }\n c1s.push(ms[ms.length - 1]);\n // Get degree-2 and degree-3 coefficients\n var c2s = [];\n var c3s = [];\n var m;\n for (var i = 0; i < c1s.length - 1; i++) {\n m = ms[i];\n var c1 = c1s[i];\n var invDx = 1 / dxs[i];\n var common = c1 + c1s[i + 1] - m - m;\n c2s.push((m - c1 - common) * invDx);\n c3s.push(common * invDx * invDx);\n }\n this.xs = xs;\n this.ys = ys;\n this.c1s = c1s;\n this.c2s = c2s;\n this.c3s = c3s;\n }\n MonotonicInterpolant.prototype.interpolate = function (x) {\n var _a = this, xs = _a.xs, ys = _a.ys, c1s = _a.c1s, c2s = _a.c2s, c3s = _a.c3s;\n // The rightmost point in the dataset should give an exact result\n var i = xs.length - 1;\n if (x === xs[i]) {\n return ys[i];\n }\n // Search for the interval x is in, returning the corresponding y if x is one of the original xs\n var low = 0;\n var high = c3s.length - 1;\n var mid;\n while (low <= high) {\n mid = Math.floor(0.5 * (low + high));\n var xHere = xs[mid];\n if (xHere < x) {\n low = mid + 1;\n }\n else if (xHere > x) {\n high = mid - 1;\n }\n else {\n return ys[mid];\n }\n }\n i = Math.max(0, high);\n // Interpolate\n var diff = x - xs[i];\n var diffSq = diff * diff;\n return ys[i] + c1s[i] * diff + c2s[i] * diffSq + c3s[i] * diff * diffSq;\n };\n return MonotonicInterpolant;\n}());\nexports.default = MonotonicInterpolant;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar NativeDragSource = /** @class */ (function () {\n function NativeDragSource(config) {\n var _this = this;\n this.config = config;\n this.item = {};\n Object.keys(this.config.exposeProperties).forEach(function (property) {\n Object.defineProperty(_this.item, property, {\n configurable: true,\n enumerable: true,\n get: function () {\n // eslint-disable-next-line no-console\n console.warn(\"Browser doesn't allow reading \\\"\" + property + \"\\\" until the drop event.\");\n return null;\n },\n });\n });\n }\n NativeDragSource.prototype.mutateItemByReadingDataTransfer = function (dataTransfer) {\n var _this = this;\n var newProperties = {};\n if (dataTransfer) {\n Object.keys(this.config.exposeProperties).forEach(function (property) {\n newProperties[property] = {\n value: _this.config.exposeProperties[property](dataTransfer, _this.config.matchesTypes),\n };\n });\n }\n Object.defineProperties(this.item, newProperties);\n };\n NativeDragSource.prototype.canDrag = function () {\n return true;\n };\n NativeDragSource.prototype.beginDrag = function () {\n return this.item;\n };\n NativeDragSource.prototype.isDragging = function (monitor, handle) {\n return handle === monitor.getSourceId();\n };\n NativeDragSource.prototype.endDrag = function () {\n // empty\n };\n return NativeDragSource;\n}());\nexports.NativeDragSource = NativeDragSource;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getDataFromDataTransfer(dataTransfer, typesToTry, defaultValue) {\n var result = typesToTry.reduce(function (resultSoFar, typeToTry) { return resultSoFar || dataTransfer.getData(typeToTry); }, '');\n return result != null ? result : defaultValue;\n}\nexports.getDataFromDataTransfer = getDataFromDataTransfer;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar nativeTypesConfig_1 = require(\"./nativeTypesConfig\");\nvar NativeDragSource_1 = require(\"./NativeDragSource\");\nfunction createNativeDragSource(type) {\n return new NativeDragSource_1.NativeDragSource(nativeTypesConfig_1.nativeTypesConfig[type]);\n}\nexports.createNativeDragSource = createNativeDragSource;\nfunction matchNativeItemType(dataTransfer) {\n if (!dataTransfer) {\n return null;\n }\n var dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []);\n return (Object.keys(nativeTypesConfig_1.nativeTypesConfig).filter(function (nativeItemType) {\n var matchesTypes = nativeTypesConfig_1.nativeTypesConfig[nativeItemType].matchesTypes;\n return matchesTypes.some(function (t) { return dataTransferTypes.indexOf(t) > -1; });\n })[0] || null);\n}\nexports.matchNativeItemType = matchNativeItemType;\n","\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar NativeTypes = require(\"../NativeTypes\");\nvar getDataFromDataTransfer_1 = require(\"./getDataFromDataTransfer\");\nexports.nativeTypesConfig = (_a = {},\n _a[NativeTypes.FILE] = {\n exposeProperties: {\n files: function (dataTransfer) {\n return Array.prototype.slice.call(dataTransfer.files);\n },\n items: function (dataTransfer) { return dataTransfer.items; },\n },\n matchesTypes: ['Files'],\n },\n _a[NativeTypes.URL] = {\n exposeProperties: {\n urls: function (dataTransfer, matchesTypes) {\n return getDataFromDataTransfer_1.getDataFromDataTransfer(dataTransfer, matchesTypes, '').split('\\n');\n },\n },\n matchesTypes: ['Url', 'text/uri-list'],\n },\n _a[NativeTypes.TEXT] = {\n exposeProperties: {\n text: function (dataTransfer, matchesTypes) {\n return getDataFromDataTransfer_1.getDataFromDataTransfer(dataTransfer, matchesTypes, '');\n },\n },\n matchesTypes: ['Text', 'text/plain'],\n },\n _a);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FILE = '__NATIVE_FILE__';\nexports.URL = '__NATIVE_URL__';\nexports.TEXT = '__NATIVE_TEXT__';\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar BrowserDetector_1 = require(\"./BrowserDetector\");\nvar MonotonicInterpolant_1 = require(\"./MonotonicInterpolant\");\nvar ELEMENT_NODE = 1;\nfunction getNodeClientOffset(node) {\n var el = node.nodeType === ELEMENT_NODE ? node : node.parentElement;\n if (!el) {\n return null;\n }\n var _a = el.getBoundingClientRect(), top = _a.top, left = _a.left;\n return { x: left, y: top };\n}\nexports.getNodeClientOffset = getNodeClientOffset;\nfunction getEventClientOffset(e) {\n return {\n x: e.clientX,\n y: e.clientY,\n };\n}\nexports.getEventClientOffset = getEventClientOffset;\nfunction isImageNode(node) {\n return (node.nodeName === 'IMG' &&\n (BrowserDetector_1.isFirefox() || !document.documentElement.contains(node)));\n}\nfunction getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight) {\n var dragPreviewWidth = isImage ? dragPreview.width : sourceWidth;\n var dragPreviewHeight = isImage ? dragPreview.height : sourceHeight;\n // Work around @2x coordinate discrepancies in browsers\n if (BrowserDetector_1.isSafari() && isImage) {\n dragPreviewHeight /= window.devicePixelRatio;\n dragPreviewWidth /= window.devicePixelRatio;\n }\n return { dragPreviewWidth: dragPreviewWidth, dragPreviewHeight: dragPreviewHeight };\n}\nfunction getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint) {\n // The browsers will use the image intrinsic size under different conditions.\n // Firefox only cares if it's an image, but WebKit also wants it to be detached.\n var isImage = isImageNode(dragPreview);\n var dragPreviewNode = isImage ? sourceNode : dragPreview;\n var dragPreviewNodeOffsetFromClient = getNodeClientOffset(dragPreviewNode);\n var offsetFromDragPreview = {\n x: clientOffset.x - dragPreviewNodeOffsetFromClient.x,\n y: clientOffset.y - dragPreviewNodeOffsetFromClient.y,\n };\n var sourceWidth = sourceNode.offsetWidth, sourceHeight = sourceNode.offsetHeight;\n var anchorX = anchorPoint.anchorX, anchorY = anchorPoint.anchorY;\n var _a = getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight), dragPreviewWidth = _a.dragPreviewWidth, dragPreviewHeight = _a.dragPreviewHeight;\n var calculateYOffset = function () {\n var interpolantY = new MonotonicInterpolant_1.default([0, 0.5, 1], [\n // Dock to the top\n offsetFromDragPreview.y,\n // Align at the center\n (offsetFromDragPreview.y / sourceHeight) * dragPreviewHeight,\n // Dock to the bottom\n offsetFromDragPreview.y + dragPreviewHeight - sourceHeight,\n ]);\n var y = interpolantY.interpolate(anchorY);\n // Work around Safari 8 positioning bug\n if (BrowserDetector_1.isSafari() && isImage) {\n // We'll have to wait for @3x to see if this is entirely correct\n y += (window.devicePixelRatio - 1) * dragPreviewHeight;\n }\n return y;\n };\n var calculateXOffset = function () {\n // Interpolate coordinates depending on anchor point\n // If you know a simpler way to do this, let me know\n var interpolantX = new MonotonicInterpolant_1.default([0, 0.5, 1], [\n // Dock to the left\n offsetFromDragPreview.x,\n // Align at the center\n (offsetFromDragPreview.x / sourceWidth) * dragPreviewWidth,\n // Dock to the right\n offsetFromDragPreview.x + dragPreviewWidth - sourceWidth,\n ]);\n return interpolantX.interpolate(anchorX);\n };\n // Force offsets if specified in the options.\n var offsetX = offsetPoint.offsetX, offsetY = offsetPoint.offsetY;\n var isManualOffsetX = offsetX === 0 || offsetX;\n var isManualOffsetY = offsetY === 0 || offsetY;\n return {\n x: isManualOffsetX ? offsetX : calculateXOffset(),\n y: isManualOffsetY ? offsetY : calculateYOffset(),\n };\n}\nexports.getDragPreviewOffset = getDragPreviewOffset;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar emptyImage;\nfunction getEmptyImage() {\n if (!emptyImage) {\n emptyImage = new Image();\n emptyImage.src =\n 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n }\n return emptyImage;\n}\nexports.default = getEmptyImage;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar HTML5Backend_1 = require(\"./HTML5Backend\");\nvar getEmptyImage_1 = require(\"./getEmptyImage\");\nexports.getEmptyImage = getEmptyImage_1.default;\nvar NativeTypes = require(\"./NativeTypes\");\nexports.NativeTypes = NativeTypes;\nfunction createHTML5Backend(manager) {\n return new HTML5Backend_1.default(manager);\n}\nexports.default = createHTML5Backend;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction memoize(fn) {\n var result = null;\n var memoized = function () {\n if (result == null) {\n result = fn();\n }\n return result;\n };\n return memoized;\n}\nexports.memoize = memoize;\n/**\n * drop-in replacement for _.without\n */\nfunction without(items, item) {\n return items.filter(function (i) { return i !== item; });\n}\nexports.without = without;\nfunction union(itemsA, itemsB) {\n var set = new Set();\n var insertItem = function (item) { return set.add(item); };\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n set.forEach(function (key) { return result.push(key); });\n return result;\n}\nexports.union = union;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = require(\"react\");\nvar dnd_core_1 = require(\"dnd-core\");\nvar checkDecoratorArguments_1 = require(\"./utils/checkDecoratorArguments\");\nvar isRefable_1 = require(\"./utils/isRefable\");\nvar invariant = require('invariant');\nvar hoistStatics = require('hoist-non-react-statics');\n/**\n * Create the React Context\n */\nexports.context = React.createContext({\n dragDropManager: undefined,\n});\nexports.Consumer = exports.context.Consumer, exports.Provider = exports.context.Provider;\n/**\n * Creates the context object we're providing\n * @param backend\n * @param context\n */\nfunction createChildContext(backend, context, debugMode) {\n return {\n dragDropManager: dnd_core_1.createDragDropManager(backend, context, debugMode),\n };\n}\nexports.createChildContext = createChildContext;\n/**\n * A React component that provides the React-DnD context\n */\nexports.DragDropContextProvider = function (_a) {\n var children = _a.children, props = __rest(_a, [\"children\"]);\n var contextValue = 'manager' in props\n ? { dragDropManager: props.manager }\n : createChildContext(props.backend, props.context, props.debugMode);\n return React.createElement(exports.Provider, { value: contextValue }, children);\n};\n/**\n * Wrap the root component of your application with DragDropContext decorator to set up React DnD.\n * This lets you specify the backend, and sets up the shared DnD state behind the scenes.\n * @param backendFactory The DnD backend factory\n * @param backendContext The backend context\n */\nfunction DragDropContext(backendFactory, backendContext, debugMode) {\n checkDecoratorArguments_1.default('DragDropContext', 'backend', backendFactory);\n var childContext = createChildContext(backendFactory, backendContext, debugMode);\n return function decorateContext(DecoratedComponent) {\n var Decorated = DecoratedComponent;\n var displayName = Decorated.displayName || Decorated.name || 'Component';\n var DragDropContextContainer = /** @class */ (function (_super) {\n __extends(DragDropContextContainer, _super);\n function DragDropContextContainer() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.ref = React.createRef();\n _this.getManager = function () { return childContext.dragDropManager; };\n return _this;\n }\n DragDropContextContainer.prototype.getDecoratedComponentInstance = function () {\n invariant(this.ref.current, 'In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()');\n return this.ref.current;\n };\n DragDropContextContainer.prototype.render = function () {\n return (React.createElement(exports.Provider, { value: childContext },\n React.createElement(Decorated, __assign({}, this.props, { ref: isRefable_1.isRefable(Decorated) ? this.ref : null }))));\n };\n DragDropContextContainer.DecoratedComponent = DecoratedComponent;\n DragDropContextContainer.displayName = \"DragDropContext(\" + displayName + \")\";\n return DragDropContextContainer;\n }(React.Component));\n return hoistStatics(DragDropContextContainer, DecoratedComponent);\n };\n}\nexports.DragDropContext = DragDropContext;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = require(\"react\");\nvar checkDecoratorArguments_1 = require(\"./utils/checkDecoratorArguments\");\nvar DragDropContext_1 = require(\"./DragDropContext\");\nvar isRefable_1 = require(\"./utils/isRefable\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar hoistStatics = require('hoist-non-react-statics');\nvar invariant = require('invariant');\nvar shallowEqual = require('shallowequal');\nfunction DragLayer(collect, options) {\n if (options === void 0) { options = {}; }\n checkDecoratorArguments_1.default('DragLayer', 'collect[, options]', collect, options);\n invariant(typeof collect === 'function', 'Expected \"collect\" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ', 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer', collect);\n invariant(discount_lodash_1.isPlainObject(options), 'Expected \"options\" provided as the second argument to DragLayer to be a plain object when specified. ' +\n 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer', options);\n return function decorateLayer(DecoratedComponent) {\n var Decorated = DecoratedComponent;\n var _a = options.arePropsEqual, arePropsEqual = _a === void 0 ? shallowEqual : _a;\n var displayName = Decorated.displayName || Decorated.name || 'Component';\n var DragLayerContainer = /** @class */ (function (_super) {\n __extends(DragLayerContainer, _super);\n function DragLayerContainer() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.isCurrentlyMounted = false;\n _this.ref = React.createRef();\n _this.handleChange = function () {\n if (!_this.isCurrentlyMounted) {\n return;\n }\n var nextState = _this.getCurrentState();\n if (!shallowEqual(nextState, _this.state)) {\n _this.setState(nextState);\n }\n };\n return _this;\n }\n DragLayerContainer.prototype.getDecoratedComponentInstance = function () {\n invariant(this.ref.current, 'In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()');\n return this.ref.current;\n };\n DragLayerContainer.prototype.shouldComponentUpdate = function (nextProps, nextState) {\n return (!arePropsEqual(nextProps, this.props) ||\n !shallowEqual(nextState, this.state));\n };\n DragLayerContainer.prototype.componentDidMount = function () {\n this.isCurrentlyMounted = true;\n this.handleChange();\n };\n DragLayerContainer.prototype.componentWillUnmount = function () {\n this.isCurrentlyMounted = false;\n if (this.unsubscribeFromOffsetChange) {\n this.unsubscribeFromOffsetChange();\n this.unsubscribeFromOffsetChange = undefined;\n }\n if (this.unsubscribeFromStateChange) {\n this.unsubscribeFromStateChange();\n this.unsubscribeFromStateChange = undefined;\n }\n };\n DragLayerContainer.prototype.render = function () {\n var _this = this;\n return (React.createElement(DragDropContext_1.Consumer, null, function (_a) {\n var dragDropManager = _a.dragDropManager;\n if (dragDropManager === undefined) {\n return null;\n }\n _this.receiveDragDropManager(dragDropManager);\n // Let componentDidMount fire to initialize the collected state\n if (!_this.isCurrentlyMounted) {\n return null;\n }\n return (React.createElement(Decorated, __assign({}, _this.props, _this.state, { ref: isRefable_1.isRefable(Decorated) ? _this.ref : null })));\n }));\n };\n DragLayerContainer.prototype.receiveDragDropManager = function (dragDropManager) {\n if (this.manager !== undefined) {\n return;\n }\n this.manager = dragDropManager;\n invariant(typeof dragDropManager === 'object', 'Could not find the drag and drop manager in the context of %s. ' +\n 'Make sure to wrap the top-level component of your app with DragDropContext. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context', displayName, displayName);\n var monitor = this.manager.getMonitor();\n this.unsubscribeFromOffsetChange = monitor.subscribeToOffsetChange(this.handleChange);\n this.unsubscribeFromStateChange = monitor.subscribeToStateChange(this.handleChange);\n };\n DragLayerContainer.prototype.getCurrentState = function () {\n if (!this.manager) {\n return {};\n }\n var monitor = this.manager.getMonitor();\n return collect(monitor, this.props);\n };\n DragLayerContainer.displayName = \"DragLayer(\" + displayName + \")\";\n DragLayerContainer.DecoratedComponent = DecoratedComponent;\n return DragLayerContainer;\n }(React.Component));\n return hoistStatics(DragLayerContainer, DecoratedComponent);\n };\n}\nexports.default = DragLayer;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = require(\"react\");\n/*\n * A utility for rendering a drag preview image\n */\nvar DragPreviewImage = React.memo(function (_a) {\n var connect = _a.connect, src = _a.src;\n if (typeof Image !== 'undefined') {\n var img_1 = new Image();\n img_1.src = src;\n img_1.onload = function () { return connect(img_1); };\n }\n return null;\n});\nDragPreviewImage.displayName = 'DragPreviewImage';\nexports.default = DragPreviewImage;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar checkDecoratorArguments_1 = require(\"./utils/checkDecoratorArguments\");\nvar decorateHandler_1 = require(\"./decorateHandler\");\nvar registerSource_1 = require(\"./registerSource\");\nvar createSourceFactory_1 = require(\"./createSourceFactory\");\nvar DragSourceMonitorImpl_1 = require(\"./DragSourceMonitorImpl\");\nvar SourceConnector_1 = require(\"./SourceConnector\");\nvar isValidType_1 = require(\"./utils/isValidType\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar invariant = require('invariant');\n/**\n * Decorates a component as a dragsource\n * @param type The dragsource type\n * @param spec The drag source specification\n * @param collect The props collector function\n * @param options DnD options\n */\nfunction DragSource(type, spec, collect, options) {\n if (options === void 0) { options = {}; }\n checkDecoratorArguments_1.default('DragSource', 'type, spec, collect[, options]', type, spec, collect, options);\n var getType = type;\n if (typeof type !== 'function') {\n invariant(isValidType_1.default(type), 'Expected \"type\" provided as the first argument to DragSource to be ' +\n 'a string, or a function that returns a string given the current props. ' +\n 'Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', type);\n getType = function () { return type; };\n }\n invariant(discount_lodash_1.isPlainObject(spec), 'Expected \"spec\" provided as the second argument to DragSource to be ' +\n 'a plain object. Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', spec);\n var createSource = createSourceFactory_1.default(spec);\n invariant(typeof collect === 'function', 'Expected \"collect\" provided as the third argument to DragSource to be ' +\n 'a function that returns a plain object of props to inject. ' +\n 'Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n invariant(discount_lodash_1.isPlainObject(options), 'Expected \"options\" provided as the fourth argument to DragSource to be ' +\n 'a plain object when specified. ' +\n 'Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n return function decorateSource(DecoratedComponent) {\n return decorateHandler_1.default({\n containerDisplayName: 'DragSource',\n createHandler: createSource,\n registerHandler: registerSource_1.default,\n createConnector: function (backend) { return new SourceConnector_1.default(backend); },\n createMonitor: function (manager) {\n return new DragSourceMonitorImpl_1.default(manager);\n },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options,\n });\n };\n}\nexports.default = DragSource;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar invariant = require('invariant');\nvar isCallingCanDrag = false;\nvar isCallingIsDragging = false;\nvar DragSourceMonitorImpl = /** @class */ (function () {\n function DragSourceMonitorImpl(manager) {\n this.sourceId = null;\n this.internalMonitor = manager.getMonitor();\n }\n DragSourceMonitorImpl.prototype.receiveHandlerId = function (sourceId) {\n this.sourceId = sourceId;\n };\n DragSourceMonitorImpl.prototype.getHandlerId = function () {\n return this.sourceId;\n };\n DragSourceMonitorImpl.prototype.canDrag = function () {\n invariant(!isCallingCanDrag, 'You may not call monitor.canDrag() inside your canDrag() implementation. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor');\n try {\n isCallingCanDrag = true;\n return this.internalMonitor.canDragSource(this.sourceId);\n }\n finally {\n isCallingCanDrag = false;\n }\n };\n DragSourceMonitorImpl.prototype.isDragging = function () {\n if (!this.sourceId) {\n return false;\n }\n invariant(!isCallingIsDragging, 'You may not call monitor.isDragging() inside your isDragging() implementation. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor');\n try {\n isCallingIsDragging = true;\n return this.internalMonitor.isDraggingSource(this.sourceId);\n }\n finally {\n isCallingIsDragging = false;\n }\n };\n DragSourceMonitorImpl.prototype.subscribeToStateChange = function (listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n };\n DragSourceMonitorImpl.prototype.isDraggingSource = function (sourceId) {\n return this.internalMonitor.isDraggingSource(sourceId);\n };\n DragSourceMonitorImpl.prototype.isOverTarget = function (targetId, options) {\n return this.internalMonitor.isOverTarget(targetId, options);\n };\n DragSourceMonitorImpl.prototype.getTargetIds = function () {\n return this.internalMonitor.getTargetIds();\n };\n DragSourceMonitorImpl.prototype.isSourcePublic = function () {\n return this.internalMonitor.isSourcePublic();\n };\n DragSourceMonitorImpl.prototype.getSourceId = function () {\n return this.internalMonitor.getSourceId();\n };\n DragSourceMonitorImpl.prototype.subscribeToOffsetChange = function (listener) {\n return this.internalMonitor.subscribeToOffsetChange(listener);\n };\n DragSourceMonitorImpl.prototype.canDragSource = function (sourceId) {\n return this.internalMonitor.canDragSource(sourceId);\n };\n DragSourceMonitorImpl.prototype.canDropOnTarget = function (targetId) {\n return this.internalMonitor.canDropOnTarget(targetId);\n };\n DragSourceMonitorImpl.prototype.getItemType = function () {\n return this.internalMonitor.getItemType();\n };\n DragSourceMonitorImpl.prototype.getItem = function () {\n return this.internalMonitor.getItem();\n };\n DragSourceMonitorImpl.prototype.getDropResult = function () {\n return this.internalMonitor.getDropResult();\n };\n DragSourceMonitorImpl.prototype.didDrop = function () {\n return this.internalMonitor.didDrop();\n };\n DragSourceMonitorImpl.prototype.getInitialClientOffset = function () {\n return this.internalMonitor.getInitialClientOffset();\n };\n DragSourceMonitorImpl.prototype.getInitialSourceClientOffset = function () {\n return this.internalMonitor.getInitialSourceClientOffset();\n };\n DragSourceMonitorImpl.prototype.getSourceClientOffset = function () {\n return this.internalMonitor.getSourceClientOffset();\n };\n DragSourceMonitorImpl.prototype.getClientOffset = function () {\n return this.internalMonitor.getClientOffset();\n };\n DragSourceMonitorImpl.prototype.getDifferenceFromInitialOffset = function () {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n };\n return DragSourceMonitorImpl;\n}());\nexports.default = DragSourceMonitorImpl;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar checkDecoratorArguments_1 = require(\"./utils/checkDecoratorArguments\");\nvar decorateHandler_1 = require(\"./decorateHandler\");\nvar registerTarget_1 = require(\"./registerTarget\");\nvar createTargetFactory_1 = require(\"./createTargetFactory\");\nvar isValidType_1 = require(\"./utils/isValidType\");\nvar DropTargetMonitorImpl_1 = require(\"./DropTargetMonitorImpl\");\nvar TargetConnector_1 = require(\"./TargetConnector\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar invariant = require('invariant');\nfunction DropTarget(type, spec, collect, options) {\n if (options === void 0) { options = {}; }\n checkDecoratorArguments_1.default('DropTarget', 'type, spec, collect[, options]', type, spec, collect, options);\n var getType = type;\n if (typeof type !== 'function') {\n invariant(isValidType_1.default(type, true), 'Expected \"type\" provided as the first argument to DropTarget to be ' +\n 'a string, an array of strings, or a function that returns either given ' +\n 'the current props. Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', type);\n getType = function () { return type; };\n }\n invariant(discount_lodash_1.isPlainObject(spec), 'Expected \"spec\" provided as the second argument to DropTarget to be ' +\n 'a plain object. Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', spec);\n var createTarget = createTargetFactory_1.default(spec);\n invariant(typeof collect === 'function', 'Expected \"collect\" provided as the third argument to DropTarget to be ' +\n 'a function that returns a plain object of props to inject. ' +\n 'Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n invariant(discount_lodash_1.isPlainObject(options), 'Expected \"options\" provided as the fourth argument to DropTarget to be ' +\n 'a plain object when specified. ' +\n 'Instead, received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n return function decorateTarget(DecoratedComponent) {\n return decorateHandler_1.default({\n containerDisplayName: 'DropTarget',\n createHandler: createTarget,\n registerHandler: registerTarget_1.default,\n createMonitor: function (manager) {\n return new DropTargetMonitorImpl_1.default(manager);\n },\n createConnector: function (backend) { return new TargetConnector_1.default(backend); },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options,\n });\n };\n}\nexports.default = DropTarget;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar invariant = require('invariant');\nvar isCallingCanDrop = false;\nvar DropTargetMonitorImpl = /** @class */ (function () {\n function DropTargetMonitorImpl(manager) {\n this.targetId = null;\n this.internalMonitor = manager.getMonitor();\n }\n DropTargetMonitorImpl.prototype.receiveHandlerId = function (targetId) {\n this.targetId = targetId;\n };\n DropTargetMonitorImpl.prototype.getHandlerId = function () {\n return this.targetId;\n };\n DropTargetMonitorImpl.prototype.subscribeToStateChange = function (listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n };\n DropTargetMonitorImpl.prototype.canDrop = function () {\n // Cut out early if the target id has not been set. This should prevent errors\n // where the user has an older version of dnd-core like in\n // https://github.com/react-dnd/react-dnd/issues/1310\n if (!this.targetId) {\n return false;\n }\n invariant(!isCallingCanDrop, 'You may not call monitor.canDrop() inside your canDrop() implementation. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor');\n try {\n isCallingCanDrop = true;\n return this.internalMonitor.canDropOnTarget(this.targetId);\n }\n finally {\n isCallingCanDrop = false;\n }\n };\n DropTargetMonitorImpl.prototype.isOver = function (options) {\n if (!this.targetId) {\n return false;\n }\n return this.internalMonitor.isOverTarget(this.targetId, options);\n };\n DropTargetMonitorImpl.prototype.getItemType = function () {\n return this.internalMonitor.getItemType();\n };\n DropTargetMonitorImpl.prototype.getItem = function () {\n return this.internalMonitor.getItem();\n };\n DropTargetMonitorImpl.prototype.getDropResult = function () {\n return this.internalMonitor.getDropResult();\n };\n DropTargetMonitorImpl.prototype.didDrop = function () {\n return this.internalMonitor.didDrop();\n };\n DropTargetMonitorImpl.prototype.getInitialClientOffset = function () {\n return this.internalMonitor.getInitialClientOffset();\n };\n DropTargetMonitorImpl.prototype.getInitialSourceClientOffset = function () {\n return this.internalMonitor.getInitialSourceClientOffset();\n };\n DropTargetMonitorImpl.prototype.getSourceClientOffset = function () {\n return this.internalMonitor.getSourceClientOffset();\n };\n DropTargetMonitorImpl.prototype.getClientOffset = function () {\n return this.internalMonitor.getClientOffset();\n };\n DropTargetMonitorImpl.prototype.getDifferenceFromInitialOffset = function () {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n };\n return DropTargetMonitorImpl;\n}());\nexports.default = DropTargetMonitorImpl;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar wrapConnectorHooks_1 = require(\"./wrapConnectorHooks\");\nvar isRef_1 = require(\"./utils/isRef\");\nvar shallowEqual = require('shallowequal');\nvar SourceConnector = /** @class */ (function () {\n function SourceConnector(backend) {\n var _this = this;\n this.backend = backend;\n this.hooks = wrapConnectorHooks_1.default({\n dragSource: function (node, options) {\n _this.dragSourceOptions = options || null;\n if (isRef_1.isRef(node)) {\n _this.dragSourceRef = node;\n }\n else {\n _this.dragSourceNode = node;\n }\n _this.reconnectDragSource();\n },\n dragPreview: function (node, options) {\n _this.dragPreviewOptions = options || null;\n if (isRef_1.isRef(node)) {\n _this.dragPreviewRef = node;\n }\n else {\n _this.dragPreviewNode = node;\n }\n _this.reconnectDragPreview();\n },\n });\n this.handlerId = null;\n // The drop target may either be attached via ref or connect function\n this.dragSourceRef = null;\n this.dragSourceOptionsInternal = null;\n // The drag preview may either be attached via ref or connect function\n this.dragPreviewRef = null;\n this.dragPreviewOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDragSource = null;\n this.lastConnectedDragSourceOptions = null;\n this.lastConnectedDragPreview = null;\n this.lastConnectedDragPreviewOptions = null;\n }\n SourceConnector.prototype.receiveHandlerId = function (newHandlerId) {\n if (this.handlerId === newHandlerId) {\n return;\n }\n this.handlerId = newHandlerId;\n this.reconnect();\n };\n Object.defineProperty(SourceConnector.prototype, \"connectTarget\", {\n get: function () {\n return this.dragSource;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(SourceConnector.prototype, \"dragSourceOptions\", {\n get: function () {\n return this.dragSourceOptionsInternal;\n },\n set: function (options) {\n this.dragSourceOptionsInternal = options;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(SourceConnector.prototype, \"dragPreviewOptions\", {\n get: function () {\n return this.dragPreviewOptionsInternal;\n },\n set: function (options) {\n this.dragPreviewOptionsInternal = options;\n },\n enumerable: true,\n configurable: true\n });\n SourceConnector.prototype.reconnect = function () {\n this.reconnectDragSource();\n this.reconnectDragPreview();\n };\n SourceConnector.prototype.reconnectDragSource = function () {\n // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() ||\n this.didConnectedDragSourceChange() ||\n this.didDragSourceOptionsChange();\n if (didChange) {\n this.disconnectDragSource();\n }\n var dragSource = this.dragSource;\n if (!this.handlerId) {\n return;\n }\n if (!dragSource) {\n this.lastConnectedDragSource = dragSource;\n return;\n }\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragSource = dragSource;\n this.lastConnectedDragSourceOptions = this.dragSourceOptions;\n this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, dragSource, this.dragSourceOptions);\n }\n };\n SourceConnector.prototype.reconnectDragPreview = function () {\n // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() ||\n this.didConnectedDragPreviewChange() ||\n this.didDragPreviewOptionsChange();\n if (didChange) {\n this.disconnectDragPreview();\n }\n var dragPreview = this.dragPreview;\n if (!this.handlerId || !dragPreview) {\n return;\n }\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragPreview = dragPreview;\n this.lastConnectedDragPreviewOptions = this.dragPreviewOptions;\n this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, dragPreview, this.dragPreviewOptions);\n }\n };\n SourceConnector.prototype.didHandlerIdChange = function () {\n return this.lastConnectedHandlerId !== this.handlerId;\n };\n SourceConnector.prototype.didConnectedDragSourceChange = function () {\n return this.lastConnectedDragSource !== this.dragSource;\n };\n SourceConnector.prototype.didConnectedDragPreviewChange = function () {\n return this.lastConnectedDragPreview !== this.dragPreview;\n };\n SourceConnector.prototype.didDragSourceOptionsChange = function () {\n return !shallowEqual(this.lastConnectedDragSourceOptions, this.dragSourceOptions);\n };\n SourceConnector.prototype.didDragPreviewOptionsChange = function () {\n return !shallowEqual(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);\n };\n SourceConnector.prototype.disconnectDragSource = function () {\n if (this.dragSourceUnsubscribe) {\n this.dragSourceUnsubscribe();\n this.dragSourceUnsubscribe = undefined;\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n };\n SourceConnector.prototype.disconnectDragPreview = function () {\n if (this.dragPreviewUnsubscribe) {\n this.dragPreviewUnsubscribe();\n this.dragPreviewUnsubscribe = undefined;\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n };\n Object.defineProperty(SourceConnector.prototype, \"dragSource\", {\n get: function () {\n return (this.dragSourceNode || (this.dragSourceRef && this.dragSourceRef.current));\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(SourceConnector.prototype, \"dragPreview\", {\n get: function () {\n return (this.dragPreviewNode ||\n (this.dragPreviewRef && this.dragPreviewRef.current));\n },\n enumerable: true,\n configurable: true\n });\n return SourceConnector;\n}());\nexports.default = SourceConnector;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar wrapConnectorHooks_1 = require(\"./wrapConnectorHooks\");\nvar isRef_1 = require(\"./utils/isRef\");\nvar shallowEqual = require('shallowequal');\nvar TargetConnector = /** @class */ (function () {\n function TargetConnector(backend) {\n var _this = this;\n this.backend = backend;\n this.hooks = wrapConnectorHooks_1.default({\n dropTarget: function (node, options) {\n _this.dropTargetOptions = options;\n if (isRef_1.isRef(node)) {\n _this.dropTargetRef = node;\n }\n else {\n _this.dropTargetNode = node;\n }\n _this.reconnect();\n },\n });\n this.handlerId = null;\n // The drop target may either be attached via ref or connect function\n this.dropTargetRef = null;\n this.dropTargetOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDropTarget = null;\n this.lastConnectedDropTargetOptions = null;\n }\n Object.defineProperty(TargetConnector.prototype, \"connectTarget\", {\n get: function () {\n return this.dropTarget;\n },\n enumerable: true,\n configurable: true\n });\n TargetConnector.prototype.reconnect = function () {\n // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() ||\n this.didDropTargetChange() ||\n this.didOptionsChange();\n if (didChange) {\n this.disconnectDropTarget();\n }\n var dropTarget = this.dropTarget;\n if (!this.handlerId) {\n return;\n }\n if (!dropTarget) {\n this.lastConnectedDropTarget = dropTarget;\n return;\n }\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDropTarget = dropTarget;\n this.lastConnectedDropTargetOptions = this.dropTargetOptions;\n this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, dropTarget, this.dropTargetOptions);\n }\n };\n TargetConnector.prototype.receiveHandlerId = function (newHandlerId) {\n if (newHandlerId === this.handlerId) {\n return;\n }\n this.handlerId = newHandlerId;\n this.reconnect();\n };\n Object.defineProperty(TargetConnector.prototype, \"dropTargetOptions\", {\n get: function () {\n return this.dropTargetOptionsInternal;\n },\n set: function (options) {\n this.dropTargetOptionsInternal = options;\n },\n enumerable: true,\n configurable: true\n });\n TargetConnector.prototype.didHandlerIdChange = function () {\n return this.lastConnectedHandlerId !== this.handlerId;\n };\n TargetConnector.prototype.didDropTargetChange = function () {\n return this.lastConnectedDropTarget !== this.dropTarget;\n };\n TargetConnector.prototype.didOptionsChange = function () {\n return !shallowEqual(this.lastConnectedDropTargetOptions, this.dropTargetOptions);\n };\n TargetConnector.prototype.disconnectDropTarget = function () {\n if (this.unsubscribeDropTarget) {\n this.unsubscribeDropTarget();\n this.unsubscribeDropTarget = undefined;\n }\n };\n Object.defineProperty(TargetConnector.prototype, \"dropTarget\", {\n get: function () {\n return (this.dropTargetNode || (this.dropTargetRef && this.dropTargetRef.current));\n },\n enumerable: true,\n configurable: true\n });\n return TargetConnector;\n}());\nexports.default = TargetConnector;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar getDecoratedComponent_1 = require(\"./utils/getDecoratedComponent\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar invariant = require('invariant');\nvar ALLOWED_SPEC_METHODS = ['canDrag', 'beginDrag', 'isDragging', 'endDrag'];\nvar REQUIRED_SPEC_METHODS = ['beginDrag'];\nvar SourceImpl = /** @class */ (function () {\n function SourceImpl(spec, monitor, ref) {\n var _this = this;\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n this.props = null;\n this.beginDrag = function () {\n if (!_this.props) {\n return;\n }\n var item = _this.spec.beginDrag(_this.props, _this.monitor, _this.ref.current);\n if (process.env.NODE_ENV !== 'production') {\n invariant(discount_lodash_1.isPlainObject(item), 'beginDrag() must return a plain object that represents the dragged item. ' +\n 'Instead received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', item);\n }\n return item;\n };\n }\n SourceImpl.prototype.receiveProps = function (props) {\n this.props = props;\n };\n SourceImpl.prototype.canDrag = function () {\n if (!this.props) {\n return false;\n }\n if (!this.spec.canDrag) {\n return true;\n }\n return this.spec.canDrag(this.props, this.monitor);\n };\n SourceImpl.prototype.isDragging = function (globalMonitor, sourceId) {\n if (!this.props) {\n return false;\n }\n if (!this.spec.isDragging) {\n return sourceId === globalMonitor.getSourceId();\n }\n return this.spec.isDragging(this.props, this.monitor);\n };\n SourceImpl.prototype.endDrag = function () {\n if (!this.props) {\n return;\n }\n if (!this.spec.endDrag) {\n return;\n }\n this.spec.endDrag(this.props, this.monitor, getDecoratedComponent_1.getDecoratedComponent(this.ref));\n };\n return SourceImpl;\n}());\nfunction createSourceFactory(spec) {\n Object.keys(spec).forEach(function (key) {\n invariant(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drag source specification to only have ' +\n 'some of the following keys: %s. ' +\n 'Instead received a specification with an unexpected \"%s\" key. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', ALLOWED_SPEC_METHODS.join(', '), key);\n invariant(typeof spec[key] === 'function', 'Expected %s in the drag source specification to be a function. ' +\n 'Instead received a specification with %s: %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, spec[key]);\n });\n REQUIRED_SPEC_METHODS.forEach(function (key) {\n invariant(typeof spec[key] === 'function', 'Expected %s in the drag source specification to be a function. ' +\n 'Instead received a specification with %s: %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, spec[key]);\n });\n return function createSource(monitor, ref) {\n return new SourceImpl(spec, monitor, ref);\n };\n}\nexports.default = createSourceFactory;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar getDecoratedComponent_1 = require(\"./utils/getDecoratedComponent\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar invariant = require('invariant');\nvar ALLOWED_SPEC_METHODS = ['canDrop', 'hover', 'drop'];\nvar TargetImpl = /** @class */ (function () {\n function TargetImpl(spec, monitor, ref) {\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n this.props = null;\n }\n TargetImpl.prototype.receiveProps = function (props) {\n this.props = props;\n };\n TargetImpl.prototype.receiveMonitor = function (monitor) {\n this.monitor = monitor;\n };\n TargetImpl.prototype.canDrop = function () {\n if (!this.spec.canDrop) {\n return true;\n }\n return this.spec.canDrop(this.props, this.monitor);\n };\n TargetImpl.prototype.hover = function () {\n if (!this.spec.hover) {\n return;\n }\n this.spec.hover(this.props, this.monitor, getDecoratedComponent_1.getDecoratedComponent(this.ref));\n };\n TargetImpl.prototype.drop = function () {\n if (!this.spec.drop) {\n return undefined;\n }\n var dropResult = this.spec.drop(this.props, this.monitor, this.ref.current);\n if (process.env.NODE_ENV !== 'production') {\n invariant(typeof dropResult === 'undefined' || discount_lodash_1.isPlainObject(dropResult), 'drop() must either return undefined, or an object that represents the drop result. ' +\n 'Instead received %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', dropResult);\n }\n return dropResult;\n };\n return TargetImpl;\n}());\nfunction createTargetFactory(spec) {\n Object.keys(spec).forEach(function (key) {\n invariant(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drop target specification to only have ' +\n 'some of the following keys: %s. ' +\n 'Instead received a specification with an unexpected \"%s\" key. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', ALLOWED_SPEC_METHODS.join(', '), key);\n invariant(typeof spec[key] === 'function', 'Expected %s in the drop target specification to be a function. ' +\n 'Instead received a specification with %s: %s. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', key, key, spec[key]);\n });\n return function createTarget(monitor, ref) {\n return new TargetImpl(spec, monitor, ref);\n };\n}\nexports.default = createTargetFactory;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = require(\"react\");\nvar DragDropContext_1 = require(\"./DragDropContext\");\nvar disposables_1 = require(\"./utils/disposables\");\nvar isRefable_1 = require(\"./utils/isRefable\");\nvar discount_lodash_1 = require(\"./utils/discount_lodash\");\nvar invariant = require('invariant');\nvar hoistStatics = require('hoist-non-react-statics');\nvar shallowEqual = require('shallowequal');\nfunction decorateHandler(_a) {\n var DecoratedComponent = _a.DecoratedComponent, createHandler = _a.createHandler, createMonitor = _a.createMonitor, createConnector = _a.createConnector, registerHandler = _a.registerHandler, containerDisplayName = _a.containerDisplayName, getType = _a.getType, collect = _a.collect, options = _a.options;\n var _b = options.arePropsEqual, arePropsEqual = _b === void 0 ? shallowEqual : _b;\n var Decorated = DecoratedComponent;\n var displayName = DecoratedComponent.displayName || DecoratedComponent.name || 'Component';\n var DragDropContainer = /** @class */ (function (_super) {\n __extends(DragDropContainer, _super);\n function DragDropContainer(props) {\n var _this = _super.call(this, props) || this;\n _this.decoratedRef = React.createRef();\n _this.handleChange = function () {\n var nextState = _this.getCurrentState();\n if (!shallowEqual(nextState, _this.state)) {\n _this.setState(nextState);\n }\n };\n _this.disposable = new disposables_1.SerialDisposable();\n _this.receiveProps(props);\n _this.dispose();\n return _this;\n }\n DragDropContainer.prototype.getHandlerId = function () {\n return this.handlerId;\n };\n DragDropContainer.prototype.getDecoratedComponentInstance = function () {\n invariant(this.decoratedRef.current, 'In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()');\n return this.decoratedRef.current;\n };\n DragDropContainer.prototype.shouldComponentUpdate = function (nextProps, nextState) {\n return (!arePropsEqual(nextProps, this.props) ||\n !shallowEqual(nextState, this.state));\n };\n DragDropContainer.prototype.componentDidMount = function () {\n this.disposable = new disposables_1.SerialDisposable();\n this.currentType = undefined;\n this.receiveProps(this.props);\n this.handleChange();\n };\n DragDropContainer.prototype.componentDidUpdate = function (prevProps) {\n if (!arePropsEqual(this.props, prevProps)) {\n this.receiveProps(this.props);\n this.handleChange();\n }\n };\n DragDropContainer.prototype.componentWillUnmount = function () {\n this.dispose();\n };\n DragDropContainer.prototype.receiveProps = function (props) {\n if (!this.handler) {\n return;\n }\n this.handler.receiveProps(props);\n this.receiveType(getType(props));\n };\n DragDropContainer.prototype.receiveType = function (type) {\n if (!this.handlerMonitor || !this.manager || !this.handlerConnector) {\n return;\n }\n if (type === this.currentType) {\n return;\n }\n this.currentType = type;\n var _a = registerHandler(type, this.handler, this.manager), handlerId = _a[0], unregister = _a[1];\n this.handlerId = handlerId;\n this.handlerMonitor.receiveHandlerId(handlerId);\n this.handlerConnector.receiveHandlerId(handlerId);\n var globalMonitor = this.manager.getMonitor();\n var unsubscribe = globalMonitor.subscribeToStateChange(this.handleChange, { handlerIds: [handlerId] });\n this.disposable.setDisposable(new disposables_1.CompositeDisposable(new disposables_1.Disposable(unsubscribe), new disposables_1.Disposable(unregister)));\n };\n DragDropContainer.prototype.dispose = function () {\n this.disposable.dispose();\n if (this.handlerConnector) {\n this.handlerConnector.receiveHandlerId(null);\n }\n };\n DragDropContainer.prototype.getCurrentState = function () {\n if (!this.handlerConnector) {\n return {};\n }\n var nextState = collect(this.handlerConnector.hooks, this.handlerMonitor, this.props);\n if (process.env.NODE_ENV !== 'production') {\n invariant(discount_lodash_1.isPlainObject(nextState), 'Expected `collect` specified as the second argument to ' +\n '%s for %s to return a plain object of props to inject. ' +\n 'Instead, received %s.', containerDisplayName, displayName, nextState);\n }\n return nextState;\n };\n DragDropContainer.prototype.render = function () {\n var _this = this;\n return (React.createElement(DragDropContext_1.Consumer, null, function (_a) {\n var dragDropManager = _a.dragDropManager;\n _this.receiveDragDropManager(dragDropManager);\n if (typeof requestAnimationFrame !== 'undefined') {\n requestAnimationFrame(function () { return _this.handlerConnector.reconnect(); });\n }\n return (React.createElement(Decorated, __assign({}, _this.props, _this.getCurrentState(), { \n // NOTE: if Decorated is a Function Component, decoratedRef will not be populated unless it's a refforwarding component.\n ref: isRefable_1.isRefable(Decorated) ? _this.decoratedRef : null })));\n }));\n };\n DragDropContainer.prototype.receiveDragDropManager = function (dragDropManager) {\n if (this.manager !== undefined) {\n return;\n }\n invariant(dragDropManager !== undefined, 'Could not find the drag and drop manager in the context of %s. ' +\n 'Make sure to wrap the top-level component of your app with DragDropContext. ' +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context', displayName, displayName);\n if (dragDropManager === undefined) {\n return;\n }\n this.manager = dragDropManager;\n this.handlerMonitor = createMonitor(dragDropManager);\n this.handlerConnector = createConnector(dragDropManager.getBackend());\n this.handler = createHandler(this.handlerMonitor, this.decoratedRef);\n };\n DragDropContainer.DecoratedComponent = DecoratedComponent;\n DragDropContainer.displayName = containerDisplayName + \"(\" + displayName + \")\";\n return DragDropContainer;\n }(React.Component));\n return hoistStatics(DragDropContainer, DecoratedComponent);\n}\nexports.default = decorateHandler;\n","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./useDrag\"));\n__export(require(\"./useDrop\"));\n__export(require(\"./useDragLayer\"));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar registerSource_1 = require(\"../../registerSource\");\nvar useDragDropManager_1 = require(\"./useDragDropManager\");\nvar DragSourceMonitorImpl_1 = require(\"../../DragSourceMonitorImpl\");\nvar SourceConnector_1 = require(\"../../SourceConnector\");\nvar invariant = require('invariant');\nfunction useDragSourceMonitor() {\n var manager = useDragDropManager_1.useDragDropManager();\n var monitor = react_1.useMemo(function () { return new DragSourceMonitorImpl_1.default(manager); }, [manager]);\n var connector = react_1.useMemo(function () { return new SourceConnector_1.default(manager.getBackend()); }, [\n manager,\n ]);\n return [monitor, connector];\n}\nexports.useDragSourceMonitor = useDragSourceMonitor;\nfunction useDragHandler(spec, monitor, connector) {\n var manager = useDragDropManager_1.useDragDropManager();\n // Can't use createSourceFactory, as semantics are different\n var handler = react_1.useMemo(function () {\n return {\n beginDrag: function () {\n var _a = spec.current, begin = _a.begin, item = _a.item;\n if (begin) {\n var beginResult = begin(monitor);\n invariant(beginResult == null || typeof beginResult === 'object', 'dragSpec.begin() must either return an object, undefined, or null');\n return beginResult || item || {};\n }\n return item || {};\n },\n canDrag: function () {\n if (typeof spec.current.canDrag === 'boolean') {\n return spec.current.canDrag;\n }\n else if (typeof spec.current.canDrag === 'function') {\n return spec.current.canDrag(monitor);\n }\n else {\n return true;\n }\n },\n isDragging: function (globalMonitor, target) {\n var isDragging = spec.current.isDragging;\n return isDragging\n ? isDragging(monitor)\n : target === globalMonitor.getSourceId();\n },\n endDrag: function () {\n var end = spec.current.end;\n if (end) {\n end(monitor.getItem(), monitor);\n }\n connector.reconnect();\n },\n };\n }, []);\n react_1.useEffect(function registerHandler() {\n var _a = registerSource_1.default(spec.current.item.type, handler, manager), handlerId = _a[0], unregister = _a[1];\n monitor.receiveHandlerId(handlerId);\n connector.receiveHandlerId(handlerId);\n return unregister;\n }, []);\n}\nexports.useDragHandler = useDragHandler;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar registerTarget_1 = require(\"../../registerTarget\");\nvar useDragDropManager_1 = require(\"./useDragDropManager\");\nvar TargetConnector_1 = require(\"../../TargetConnector\");\nvar DropTargetMonitorImpl_1 = require(\"../../DropTargetMonitorImpl\");\nfunction useDropTargetMonitor() {\n var manager = useDragDropManager_1.useDragDropManager();\n var monitor = react_1.useMemo(function () { return new DropTargetMonitorImpl_1.default(manager); }, [manager]);\n var connector = react_1.useMemo(function () { return new TargetConnector_1.default(manager.getBackend()); }, [\n manager,\n ]);\n return [monitor, connector];\n}\nexports.useDropTargetMonitor = useDropTargetMonitor;\nfunction useDropHandler(spec, monitor, connector) {\n var manager = useDragDropManager_1.useDragDropManager();\n // Can't use createSourceFactory, as semantics are different\n var handler = react_1.useMemo(function () {\n return {\n canDrop: function () {\n var canDrop = spec.current.canDrop;\n return canDrop ? canDrop(monitor.getItem(), monitor) : true;\n },\n hover: function () {\n var hover = spec.current.hover;\n if (hover) {\n hover(monitor.getItem(), monitor);\n }\n },\n drop: function () {\n var drop = spec.current.drop;\n if (drop) {\n return drop(monitor.getItem(), monitor);\n }\n },\n };\n }, [monitor]);\n react_1.useEffect(function registerHandler() {\n var _a = registerTarget_1.default(spec.current.accept, handler, manager), handlerId = _a[0], unregister = _a[1];\n monitor.receiveHandlerId(handlerId);\n connector.receiveHandlerId(handlerId);\n return unregister;\n }, [monitor, connector]);\n}\nexports.useDropHandler = useDropHandler;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar shallowEqual = require('shallowequal');\nvar react_1 = require(\"react\");\n/**\n *\n * @param monitor The monitor to colelct state from\n * @param collect The collecting function\n * @param onUpdate A method to invoke when updates occur\n */\nfunction useCollector(monitor, collect, onUpdate) {\n var _a = react_1.useState(function () { return collect(monitor); }), collected = _a[0], setCollected = _a[1];\n var updateCollected = react_1.useCallback(function () {\n var nextValue = collect(monitor);\n if (!shallowEqual(collected, nextValue)) {\n setCollected(nextValue);\n if (onUpdate) {\n onUpdate();\n }\n }\n }, [collected, monitor, onUpdate]);\n return [collected, updateCollected];\n}\nexports.useCollector = useCollector;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar DragDropContext_1 = require(\"../../DragDropContext\");\nvar invariant = require('invariant');\n/**\n * A hook to retrieve the DragDropManager from Context\n */\nfunction useDragDropManager() {\n var dragDropManager = react_1.useContext(DragDropContext_1.context).dragDropManager;\n invariant(dragDropManager != null, 'Expected drag drop context');\n return dragDropManager;\n}\nexports.useDragDropManager = useDragDropManager;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar useCollector_1 = require(\"./useCollector\");\nfunction useMonitorOutput(monitor, collect, onCollect) {\n var _a = useCollector_1.useCollector(monitor, collect, onCollect), collected = _a[0], updateCollected = _a[1];\n react_1.useEffect(function subscribeToMonitorStateChange() {\n var handlerId = monitor.getHandlerId();\n if (handlerId == null) {\n return undefined;\n }\n return monitor.subscribeToStateChange(updateCollected, {\n handlerIds: [handlerId],\n });\n }, [monitor, updateCollected]);\n return collected;\n}\nexports.useMonitorOutput = useMonitorOutput;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar useMonitorOutput_1 = require(\"./internal/useMonitorOutput\");\nvar drag_1 = require(\"./internal/drag\");\nvar react_1 = require(\"react\");\nvar invariant = require('invariant');\n/**\n * useDragSource hook\n * @param sourceSpec The drag source specification *\n */\nfunction useDrag(spec) {\n var specRef = react_1.useRef(spec);\n specRef.current = spec;\n // TODO: wire options into createSourceConnector\n invariant(spec.item != null, 'item must be defined');\n invariant(spec.item.type != null, 'item type must be defined');\n var _a = drag_1.useDragSourceMonitor(), monitor = _a[0], connector = _a[1];\n drag_1.useDragHandler(specRef, monitor, connector);\n var result = useMonitorOutput_1.useMonitorOutput(monitor, specRef.current.collect || (function () { return ({}); }), function () { return connector.reconnect(); });\n var connectDragSource = react_1.useMemo(function () { return connector.hooks.dragSource(); }, [\n connector,\n ]);\n var connectDragPreview = react_1.useMemo(function () { return connector.hooks.dragPreview(); }, [\n connector,\n ]);\n react_1.useEffect(function () {\n connector.dragSourceOptions = specRef.current.options || null;\n connector.reconnect();\n }, [connector]);\n react_1.useEffect(function () {\n connector.dragPreviewOptions = specRef.current.previewOptions || null;\n connector.reconnect();\n }, [connector]);\n return [result, connectDragSource, connectDragPreview];\n}\nexports.useDrag = useDrag;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar useDragDropManager_1 = require(\"./internal/useDragDropManager\");\nvar useCollector_1 = require(\"./internal/useCollector\");\n/**\n * useDragLayer Hook\n * @param collector The property collector\n */\nfunction useDragLayer(collect) {\n var dragDropManager = useDragDropManager_1.useDragDropManager();\n var monitor = dragDropManager.getMonitor();\n var _a = useCollector_1.useCollector(monitor, collect), collected = _a[0], updateCollected = _a[1];\n react_1.useEffect(function () { return monitor.subscribeToOffsetChange(updateCollected); });\n react_1.useEffect(function () { return monitor.subscribeToStateChange(updateCollected); });\n return collected;\n}\nexports.useDragLayer = useDragLayer;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar useMonitorOutput_1 = require(\"./internal/useMonitorOutput\");\nvar drop_1 = require(\"./internal/drop\");\nvar react_1 = require(\"react\");\nvar invariant = require('invariant');\n/**\n * useDropTarget Hook\n * @param spec The drop target specification\n */\nfunction useDrop(spec) {\n var specRef = react_1.useRef(spec);\n specRef.current = spec;\n invariant(spec.accept != null, 'accept must be defined');\n var _a = drop_1.useDropTargetMonitor(), monitor = _a[0], connector = _a[1];\n drop_1.useDropHandler(specRef, monitor, connector);\n var result = useMonitorOutput_1.useMonitorOutput(monitor, specRef.current.collect || (function () { return ({}); }), function () { return connector.reconnect(); });\n var connectDropTarget = react_1.useMemo(function () { return connector.hooks.dropTarget(); }, [\n connector,\n ]);\n react_1.useEffect(function () {\n connector.dropTargetOptions = spec.options || null;\n connector.reconnect();\n }, [spec.options]);\n return [result, connectDropTarget];\n}\nexports.useDrop = useDrop;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar DragDropContext_1 = require(\"./DragDropContext\");\nexports.DragDropContext = DragDropContext_1.DragDropContext;\nexports.DragDropContextProvider = DragDropContext_1.DragDropContextProvider;\nexports.DragDropContextConsumer = DragDropContext_1.Consumer;\nvar DragLayer_1 = require(\"./DragLayer\");\nexports.DragLayer = DragLayer_1.default;\nvar DragSource_1 = require(\"./DragSource\");\nexports.DragSource = DragSource_1.default;\nvar DropTarget_1 = require(\"./DropTarget\");\nexports.DropTarget = DropTarget_1.default;\nvar DragPreviewImage_1 = require(\"./DragPreviewImage\");\nexports.DragPreviewImage = DragPreviewImage_1.default;\nvar hooks_1 = require(\"./hooks\");\nexports.useDrag = hooks_1.useDrag;\nexports.useDragLayer = hooks_1.useDragLayer;\nexports.useDrop = hooks_1.useDrop;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction registerSource(type, source, manager) {\n var registry = manager.getRegistry();\n var sourceId = registry.addSource(type, source);\n return [sourceId, function () { return registry.removeSource(sourceId); }];\n}\nexports.default = registerSource;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction registerTarget(type, target, manager) {\n var registry = manager.getRegistry();\n var targetId = registry.addTarget(type, target);\n return [targetId, function () { return registry.removeTarget(targetId); }];\n}\nexports.default = registerTarget;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction checkDecoratorArguments(functionName, signature) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (process.env.NODE_ENV !== 'production') {\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var arg = args_1[_a];\n if (arg && arg.prototype && arg.prototype.render) {\n // eslint-disable-next-line no-console\n console.error('You seem to be applying the arguments in the wrong order. ' +\n (\"It should be \" + functionName + \"(\" + signature + \")(Component), not the other way around. \") +\n 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#you-seem-to-be-applying-the-arguments-in-the-wrong-order');\n return;\n }\n }\n }\n}\nexports.default = checkDecoratorArguments;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar invariant = require('invariant');\nfunction setRef(ref, node) {\n if (typeof ref === 'function') {\n ref(node);\n }\n else {\n ref.current = node;\n }\n}\nfunction cloneWithRef(element, newRef) {\n var previousRef = element.ref;\n invariant(typeof previousRef !== 'string', 'Cannot connect React DnD to an element with an existing string ref. ' +\n 'Please convert it to use a callback ref instead, or wrap it into a or
. ' +\n 'Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute');\n if (!previousRef) {\n // When there is no ref on the element, use the new ref directly\n return react_1.cloneElement(element, {\n ref: newRef,\n });\n }\n return react_1.cloneElement(element, {\n ref: function (node) {\n setRef(newRef, node);\n if (previousRef) {\n setRef(previousRef, node);\n }\n },\n });\n}\nexports.default = cloneWithRef;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction isFunction(input) {\n return typeof input === 'function';\n}\nexports.isFunction = isFunction;\nfunction noop() {\n // noop\n}\nexports.noop = noop;\nfunction isObjectLike(input) {\n return typeof input === 'object' && input !== null;\n}\nfunction isPlainObject(input) {\n if (!isObjectLike(input)) {\n return false;\n }\n if (Object.getPrototypeOf(input) === null) {\n return true;\n }\n var proto = input;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(input) === proto;\n}\nexports.isPlainObject = isPlainObject;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represents a group of disposable resources that are disposed together.\n * @constructor\n */\nvar CompositeDisposable = /** @class */ (function () {\n function CompositeDisposable() {\n var disposables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n disposables[_i] = arguments[_i];\n }\n this.isDisposed = false;\n this.disposables = disposables;\n }\n /**\n * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.\n * @param {Any} item Disposable to add.\n */\n CompositeDisposable.prototype.add = function (item) {\n if (this.isDisposed) {\n item.dispose();\n }\n else {\n this.disposables.push(item);\n }\n };\n /**\n * Removes and disposes the first occurrence of a disposable from the CompositeDisposable.\n * @param {Any} item Disposable to remove.\n * @returns {Boolean} true if found; false otherwise.\n */\n CompositeDisposable.prototype.remove = function (item) {\n var shouldDispose = false;\n if (!this.isDisposed) {\n var idx = this.disposables.indexOf(item);\n if (idx !== -1) {\n shouldDispose = true;\n this.disposables.splice(idx, 1);\n item.dispose();\n }\n }\n return shouldDispose;\n };\n /**\n * Disposes all disposables in the group and removes them from the group but\n * does not dispose the CompositeDisposable.\n */\n CompositeDisposable.prototype.clear = function () {\n if (!this.isDisposed) {\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n for (var i = 0; i < len; i++) {\n currentDisposables[i] = this.disposables[i];\n }\n this.disposables = [];\n for (var i = 0; i < len; i++) {\n currentDisposables[i].dispose();\n }\n }\n };\n /**\n * Disposes all disposables in the group and removes them from the group.\n */\n CompositeDisposable.prototype.dispose = function () {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n for (var i = 0; i < len; i++) {\n currentDisposables[i] = this.disposables[i];\n }\n this.disposables = [];\n for (var i = 0; i < len; i++) {\n currentDisposables[i].dispose();\n }\n }\n };\n return CompositeDisposable;\n}());\nexports.CompositeDisposable = CompositeDisposable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar discount_lodash_1 = require(\"../discount_lodash\");\n/**\n * Provides a set of static methods for creating Disposables.\n * @param {Function} action Action to run during the first call to dispose.\n * The action is guaranteed to be run at most once.\n */\nvar Disposable = /** @class */ (function () {\n function Disposable(action) {\n this.isDisposed = false;\n this.action = discount_lodash_1.isFunction(action) ? action : discount_lodash_1.noop;\n }\n /**\n * Validates whether the given object is a disposable\n * @param {Object} Object to test whether it has a dispose method\n * @returns {Boolean} true if a disposable object, else false.\n */\n Disposable.isDisposable = function (d) {\n return d && discount_lodash_1.isFunction(d.dispose);\n };\n Disposable._fixup = function (result) {\n return Disposable.isDisposable(result) ? result : Disposable.empty;\n };\n /**\n * Creates a disposable object that invokes the specified action when disposed.\n * @param {Function} dispose Action to run during the first call to dispose.\n * The action is guaranteed to be run at most once.\n * @return {Disposable} The disposable object that runs the given action upon disposal.\n */\n Disposable.create = function (action) {\n return new Disposable(action);\n };\n /** Performs the task of cleaning up resources. */\n Disposable.prototype.dispose = function () {\n if (!this.isDisposed) {\n this.action();\n this.isDisposed = true;\n }\n };\n /**\n * Gets the disposable that does nothing when disposed.\n */\n Disposable.empty = { dispose: discount_lodash_1.noop };\n return Disposable;\n}());\nexports.Disposable = Disposable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represents a disposable resource whose underlying disposable resource can\n * be replaced by another disposable resource, causing automatic disposal of\n * the previous underlying disposable resource.\n */\nvar SerialDisposable = /** @class */ (function () {\n function SerialDisposable() {\n this.isDisposed = false;\n }\n /**\n * Gets the underlying disposable.\n * @returns {Any} the underlying disposable.\n */\n SerialDisposable.prototype.getDisposable = function () {\n return this.current;\n };\n SerialDisposable.prototype.setDisposable = function (value) {\n var shouldDispose = this.isDisposed;\n if (!shouldDispose) {\n var old = this.current;\n this.current = value;\n if (old) {\n old.dispose();\n }\n }\n if (shouldDispose && value) {\n value.dispose();\n }\n };\n /** Performs the task of cleaning up resources. */\n SerialDisposable.prototype.dispose = function () {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var old = this.current;\n this.current = undefined;\n if (old) {\n old.dispose();\n }\n }\n };\n return SerialDisposable;\n}());\nexports.SerialDisposable = SerialDisposable;\n","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./Disposable\"));\n__export(require(\"./SerialDisposable\"));\n__export(require(\"./CompositeDisposable\"));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getDecoratedComponent(instanceRef) {\n var currentRef = instanceRef.current;\n if (currentRef == null) {\n return null;\n }\n else if (currentRef.decoratedRef) {\n // go through the private field in decorateHandler to avoid the invariant hit\n return currentRef.decoratedRef.current;\n }\n else {\n return currentRef;\n }\n}\nexports.getDecoratedComponent = getDecoratedComponent;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction isRef(obj) {\n return (obj !== null && typeof obj === 'object' && obj.hasOwnProperty('current'));\n}\nexports.isRef = isRef;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction isClassComponent(Component) {\n return (Component &&\n Component.prototype &&\n typeof Component.prototype.render === 'function');\n}\nfunction isRefForwardingComponent(C) {\n return (C && C.$$typeof && C.$$typeof.toString() === 'Symbol(react.forward_ref)');\n}\nexports.isRefForwardingComponent = isRefForwardingComponent;\nfunction isRefable(C) {\n return isClassComponent(C) || isRefForwardingComponent(C);\n}\nexports.isRefable = isRefable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction isValidType(type, allowArray) {\n return (typeof type === 'string' ||\n typeof type === 'symbol' ||\n (!!allowArray &&\n Array.isArray(type) &&\n type.every(function (t) { return isValidType(t, false); })));\n}\nexports.default = isValidType;\n","\"use strict\";\nif (!String.prototype.endsWith) {\n String.prototype.endsWith = function (search, thisLen) {\n if (thisLen === undefined || thisLen > this.length) {\n thisLen = this.length;\n }\n return this.substring(thisLen - search.length, thisLen) === search;\n };\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar cloneWithRef_1 = require(\"./utils/cloneWithRef\");\nrequire(\"./utils/polyfills/endsWith\");\nfunction throwIfCompositeComponentElement(element) {\n // Custom components can no longer be wrapped directly in React DnD 2.0\n // so that we don't need to depend on findDOMNode() from react-dom.\n if (typeof element.type === 'string') {\n return;\n }\n var displayName = element.type.displayName || element.type.name || 'the component';\n throw new Error('Only native element nodes can now be passed to React DnD connectors.' +\n (\"You can either wrap \" + displayName + \" into a
, or turn it into a \") +\n 'drag source or a drop target itself.');\n}\nfunction wrapHookToRecognizeElement(hook) {\n return function (elementOrNode, options) {\n if (elementOrNode === void 0) { elementOrNode = null; }\n if (options === void 0) { options = null; }\n // When passed a node, call the hook straight away.\n if (!react_1.isValidElement(elementOrNode)) {\n var node = elementOrNode;\n hook(node, options);\n // return the node so it can be chained (e.g. when within callback refs\n //
connectDragSource(connectDropTarget(node))}/>\n return node;\n }\n // If passed a ReactElement, clone it and attach this function as a ref.\n // This helps us achieve a neat API where user doesn't even know that refs\n // are being used under the hood.\n var element = elementOrNode;\n throwIfCompositeComponentElement(element);\n // When no options are passed, use the hook directly\n var ref = options ? function (node) { return hook(node, options); } : hook;\n return cloneWithRef_1.default(element, ref);\n };\n}\nfunction wrapConnectorHooks(hooks) {\n var wrappedHooks = {};\n Object.keys(hooks).forEach(function (key) {\n var hook = hooks[key];\n // ref objects should be passed straight through without wrapping\n if (key.endsWith('Ref')) {\n wrappedHooks[key] = hooks[key];\n }\n else {\n var wrappedHook_1 = wrapHookToRecognizeElement(hook);\n wrappedHooks[key] = function () { return wrappedHook_1; };\n }\n });\n return wrappedHooks;\n}\nexports.default = wrapConnectorHooks;\n","/** @license React v16.14.0\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),n=require(\"object-assign\"),r=require(\"scheduler\");function u(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});[\"capture\",\"download\"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});[\"rowSpan\",\"start\"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(Ua,\nVa);C[b]=new v(b,1,!1,a,null,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)});\nC.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty(\"ReactCurrentDispatcher\")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty(\"ReactCurrentBatchConfig\")||(Wa.ReactCurrentBatchConfig={suspense:null});\nfunction Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:rb(c)}}\nfunction Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}var Mb={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction Nb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Ob(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?Nb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar Pb,Qb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||\"innerHTML\"in a)a.innerHTML=b;else{Pb=Pb||document.createElement(\"div\");Pb.innerHTML=\"\";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var Tb={animationend:Sb(\"Animation\",\"AnimationEnd\"),animationiteration:Sb(\"Animation\",\"AnimationIteration\"),animationstart:Sb(\"Animation\",\"AnimationStart\"),transitionend:Sb(\"Transition\",\"TransitionEnd\")},Ub={},Vb={};\nya&&(Vb=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),\"TransitionEvent\"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}\nvar Xb=Wb(\"animationend\"),Yb=Wb(\"animationiteration\"),Zb=Wb(\"animationstart\"),$b=Wb(\"transitionend\"),ac=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),bc=new (\"function\"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b}\nfunction dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));}\nfunction gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}\nfunction ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;\nfunction lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)}\nfunction rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}\nfunction sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}}\nfunction wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b}\nfunction yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}var zd=\"$\",Ad=\"/$\",Bd=\"$?\",Cd=\"$!\",Dd=null,Ed=null;function Fd(a,b){switch(a){case \"button\":case \"input\":case \"select\":case \"textarea\":return!!b.autoFocus}return!1}\nfunction Gd(a,b){return\"textarea\"===a||\"option\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd=\"function\"===typeof setTimeout?setTimeout:void 0,Id=\"function\"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}\nfunction Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md=\"__reactInternalInstance$\"+Ld,Nd=\"__reactEventHandlers$\"+Ld,Od=\"__reactContainere$\"+Ld;\nfunction tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null}\nfunction Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==typeof c)throw Error(u(231,\nb,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&\"CompositionEvent\"in window,ke=null;ya&&\"documentMode\"in document&&(ke=document.documentMode);\nvar le=ya&&\"TextEvent\"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",\ncaptured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},pe=!1;\nfunction qe(a,b){switch(a){case \"keyup\":return-1!==ie.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"blur\":return!0;default:return!1}}function re(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var se=!1;function te(a,b){switch(a){case \"compositionend\":return re(b);case \"keypress\":if(32!==b.which)return null;pe=!0;return ne;case \"textInput\":return a=b.data,a===ne&&pe?null:a;default:return null}}\nfunction ue(a,b){if(se)return\"compositionend\"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},ef=null,ff=null,gf=null,hf=!1;\nfunction jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;\"selectionStart\"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type=\"select\",a.target=ef,Xd(a),a)}\nvar kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)}\nfunction I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}\nfunction Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||\"Unknown\",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0}\nfunction Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)}\nvar If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf};\nfunction ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()}\nfunction fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)}\nfunction sg(a,b){if(mg!==a&&!1!==b&&0!==b){if(\"number\"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}\nfunction vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}\nfunction yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}\nfunction zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if(\"function\"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g=\"function\"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&&\n(a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}}\nfunction Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&&\nm&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!==\nq.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l=\"object\"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,\nk.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=\nd.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||\"Component\"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg};\nfunction ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0};\nfunction hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}}\nvar jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a}\nfunction th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}\nfunction vh(a,b){return\"function\"===typeof b?b(a):b}\nfunction wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&&\n(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}\nfunction xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}\nfunction yh(a){var b=th();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}\nfunction Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)}\nfunction Hh(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\\x3c/script>\",a=a.removeChild(a.firstChild)):\"string\"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),\"select\"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case \"iframe\":case \"object\":case \"embed\":F(\"load\",\na);h=d;break;case \"video\":case \"audio\":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}}\nfunction xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a}\nfunction Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime=\nb;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}}\nfunction Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=\nd;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display.\"+qb(g))}S!==\njj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&(\"function\"===typeof w.getDerivedStateFromError||null!==ub&&\"function\"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)}\nfunction Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b}\nfunction Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null}\nfunction Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=\nd-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft,\ntop:w.scrollTop});\"function\"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null,\nb,d,a,e,c);b.effectTag|=1;if(\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;\"function\"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=\nnull,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c);\ncase 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:\nnull,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,\nb,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:(\"function\"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==\nk){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}\nfunction yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}\nfunction bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0===\nd?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime= Math.floor(elemTopBound) && offsetY < Math.floor(elemBottomBound);\n var isOutside = offsetY < Math.floor(elemTopBound) || offsetY >= Math.floor(elemBottomBound);\n var activeLink = scroller.getActiveLink();\n\n if (isOutside) {\n if (to === activeLink) {\n scroller.setActiveLink(void 0);\n }\n\n if (_this2.props.hashSpy && scrollHash.getHash() === to) {\n scrollHash.changeHash();\n }\n\n if (_this2.props.spy && _this2.state.active) {\n _this2.setState({ active: false });\n _this2.props.onSetInactive && _this2.props.onSetInactive();\n }\n\n return scrollSpy.updateStates();\n }\n\n if (isInside && activeLink !== to) {\n scroller.setActiveLink(to);\n\n _this2.props.hashSpy && scrollHash.changeHash(to);\n\n if (_this2.props.spy) {\n _this2.setState({ active: true });\n _this2.props.onSetActive && _this2.props.onSetActive(to);\n }\n return scrollSpy.updateStates();\n }\n };\n };\n\n ;\n\n Scroll.propTypes = protoTypes;\n\n Scroll.defaultProps = { offset: 0 };\n\n return Scroll;\n },\n Element: function Element(Component) {\n\n console.warn(\"Helpers.Element is deprecated since v1.7.0\");\n\n var Element = function (_React$Component2) {\n _inherits(Element, _React$Component2);\n\n function Element(props) {\n _classCallCheck(this, Element);\n\n var _this3 = _possibleConstructorReturn(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));\n\n _this3.childBindings = {\n domNode: null\n };\n return _this3;\n }\n\n _createClass(Element, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (typeof window === 'undefined') {\n return false;\n }\n this.registerElems(this.props.name);\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (this.props.name !== prevProps.name) {\n this.registerElems(this.props.name);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (typeof window === 'undefined') {\n return false;\n }\n defaultScroller.unregister(this.props.name);\n }\n }, {\n key: 'registerElems',\n value: function registerElems(name) {\n defaultScroller.register(name, this.childBindings.domNode);\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement(Component, _extends({}, this.props, { parentBindings: this.childBindings }));\n }\n }]);\n\n return Element;\n }(React.Component);\n\n ;\n\n Element.propTypes = {\n name: PropTypes.string,\n id: PropTypes.string\n };\n\n return Element;\n }\n};\n\nmodule.exports = Helpers;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _smooth = require('./smooth');\n\nvar _smooth2 = _interopRequireDefault(_smooth);\n\nvar _cancelEvents = require('./cancel-events');\n\nvar _cancelEvents2 = _interopRequireDefault(_cancelEvents);\n\nvar _scrollEvents = require('./scroll-events');\n\nvar _scrollEvents2 = _interopRequireDefault(_scrollEvents);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\r\n * Gets the easing type from the smooth prop within options.\r\n */\nvar getAnimationType = function getAnimationType(options) {\n return _smooth2.default[options.smooth] || _smooth2.default.defaultEasing;\n};\n/*\r\n * Function helper\r\n */\nvar functionWrapper = function functionWrapper(value) {\n return typeof value === 'function' ? value : function () {\n return value;\n };\n};\n/*\r\n * Wraps window properties to allow server side rendering\r\n */\nvar currentWindowProperties = function currentWindowProperties() {\n if (typeof window !== 'undefined') {\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame;\n }\n};\n\n/*\r\n * Helper function to never extend 60fps on the webpage.\r\n */\nvar requestAnimationFrameHelper = function () {\n return currentWindowProperties() || function (callback, element, delay) {\n window.setTimeout(callback, delay || 1000 / 60, new Date().getTime());\n };\n}();\n\nvar makeData = function makeData() {\n return {\n currentPosition: 0,\n startPosition: 0,\n targetPosition: 0,\n progress: 0,\n duration: 0,\n cancel: false,\n\n target: null,\n containerElement: null,\n to: null,\n start: null,\n delta: null,\n percent: null,\n delayTimeout: null\n };\n};\n\nvar currentPositionX = function currentPositionX(options) {\n var containerElement = options.data.containerElement;\n if (containerElement && containerElement !== document && containerElement !== document.body) {\n return containerElement.scrollLeft;\n } else {\n var supportPageOffset = window.pageXOffset !== undefined;\n var isCSS1Compat = (document.compatMode || \"\") === \"CSS1Compat\";\n return supportPageOffset ? window.pageXOffset : isCSS1Compat ? document.documentElement.scrollLeft : document.body.scrollLeft;\n }\n};\n\nvar currentPositionY = function currentPositionY(options) {\n var containerElement = options.data.containerElement;\n if (containerElement && containerElement !== document && containerElement !== document.body) {\n return containerElement.scrollTop;\n } else {\n var supportPageOffset = window.pageXOffset !== undefined;\n var isCSS1Compat = (document.compatMode || \"\") === \"CSS1Compat\";\n return supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;\n }\n};\n\nvar scrollContainerWidth = function scrollContainerWidth(options) {\n var containerElement = options.data.containerElement;\n if (containerElement && containerElement !== document && containerElement !== document.body) {\n return containerElement.scrollWidth - containerElement.offsetWidth;\n } else {\n var body = document.body;\n var html = document.documentElement;\n\n return Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);\n }\n};\n\nvar scrollContainerHeight = function scrollContainerHeight(options) {\n var containerElement = options.data.containerElement;\n if (containerElement && containerElement !== document && containerElement !== document.body) {\n return containerElement.scrollHeight - containerElement.offsetHeight;\n } else {\n var body = document.body;\n var html = document.documentElement;\n\n return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);\n }\n};\n\nvar animateScroll = function animateScroll(easing, options, timestamp) {\n var data = options.data;\n\n // Cancel on specific events\n if (!options.ignoreCancelEvents && data.cancel) {\n if (_scrollEvents2.default.registered['end']) {\n _scrollEvents2.default.registered['end'](data.to, data.target, data.currentPositionY);\n }\n return;\n };\n\n data.delta = Math.round(data.targetPosition - data.startPosition);\n\n if (data.start === null) {\n data.start = timestamp;\n }\n\n data.progress = timestamp - data.start;\n\n data.percent = data.progress >= data.duration ? 1 : easing(data.progress / data.duration);\n\n data.currentPosition = data.startPosition + Math.ceil(data.delta * data.percent);\n\n if (data.containerElement && data.containerElement !== document && data.containerElement !== document.body) {\n if (options.horizontal) {\n data.containerElement.scrollLeft = data.currentPosition;\n } else {\n data.containerElement.scrollTop = data.currentPosition;\n }\n } else {\n if (options.horizontal) {\n window.scrollTo(data.currentPosition, 0);\n } else {\n window.scrollTo(0, data.currentPosition);\n }\n }\n\n if (data.percent < 1) {\n var easedAnimate = animateScroll.bind(null, easing, options);\n requestAnimationFrameHelper.call(window, easedAnimate);\n return;\n }\n\n if (_scrollEvents2.default.registered['end']) {\n _scrollEvents2.default.registered['end'](data.to, data.target, data.currentPosition);\n }\n};\n\nvar setContainer = function setContainer(options) {\n options.data.containerElement = !options ? null : options.containerId ? document.getElementById(options.containerId) : options.container && options.container.nodeType ? options.container : document;\n};\n\nvar animateTopScroll = function animateTopScroll(scrollOffset, options, to, target) {\n options.data = options.data || makeData();\n\n window.clearTimeout(options.data.delayTimeout);\n\n var setCancel = function setCancel() {\n options.data.cancel = true;\n };\n _cancelEvents2.default.subscribe(setCancel);\n\n setContainer(options);\n\n options.data.start = null;\n options.data.cancel = false;\n options.data.startPosition = options.horizontal ? currentPositionX(options) : currentPositionY(options);\n options.data.targetPosition = options.absolute ? scrollOffset : scrollOffset + options.data.startPosition;\n\n if (options.data.startPosition === options.data.targetPosition) {\n if (_scrollEvents2.default.registered['end']) {\n _scrollEvents2.default.registered['end'](options.data.to, options.data.target, options.data.currentPosition);\n }\n return;\n }\n\n options.data.delta = Math.round(options.data.targetPosition - options.data.startPosition);\n\n options.data.duration = functionWrapper(options.duration)(options.data.delta);\n options.data.duration = isNaN(parseFloat(options.data.duration)) ? 1000 : parseFloat(options.data.duration);\n options.data.to = to;\n options.data.target = target;\n\n var easing = getAnimationType(options);\n var easedAnimate = animateScroll.bind(null, easing, options);\n\n if (options && options.delay > 0) {\n options.data.delayTimeout = window.setTimeout(function () {\n if (_scrollEvents2.default.registered['begin']) {\n _scrollEvents2.default.registered['begin'](options.data.to, options.data.target);\n }\n requestAnimationFrameHelper.call(window, easedAnimate);\n }, options.delay);\n return;\n }\n\n if (_scrollEvents2.default.registered['begin']) {\n _scrollEvents2.default.registered['begin'](options.data.to, options.data.target);\n }\n requestAnimationFrameHelper.call(window, easedAnimate);\n};\n\nvar proceedOptions = function proceedOptions(options) {\n options = _extends({}, options);\n options.data = options.data || makeData();\n options.absolute = true;\n return options;\n};\n\nvar scrollToTop = function scrollToTop(options) {\n animateTopScroll(0, proceedOptions(options));\n};\n\nvar scrollTo = function scrollTo(toPosition, options) {\n animateTopScroll(toPosition, proceedOptions(options));\n};\n\nvar scrollToBottom = function scrollToBottom(options) {\n options = proceedOptions(options);\n setContainer(options);\n animateTopScroll(options.horizontal ? scrollContainerWidth(options) : scrollContainerHeight(options), options);\n};\n\nvar scrollMore = function scrollMore(toPosition, options) {\n options = proceedOptions(options);\n setContainer(options);\n var currentPosition = options.horizontal ? currentPositionX(options) : currentPositionY(options);\n animateTopScroll(toPosition + currentPosition, options);\n};\n\nexports.default = {\n animateTopScroll: animateTopScroll,\n getAnimationType: getAnimationType,\n scrollToTop: scrollToTop,\n scrollToBottom: scrollToBottom,\n scrollTo: scrollTo,\n scrollMore: scrollMore\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _passiveEventListeners = require('./passive-event-listeners');\n\nvar events = ['mousedown', 'mousewheel', 'touchmove', 'keydown'];\n\nexports.default = {\n subscribe: function subscribe(cancelEvent) {\n return typeof document !== 'undefined' && events.forEach(function (event) {\n return (0, _passiveEventListeners.addPassiveEventListener)(document, event, cancelEvent);\n });\n }\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/*\r\n * Tell the browser that the event listener won't prevent a scroll.\r\n * Allowing the browser to continue scrolling without having to\r\n * to wait for the listener to return.\r\n */\nvar addPassiveEventListener = exports.addPassiveEventListener = function addPassiveEventListener(target, eventName, listener) {\n var listenerName = listener.name;\n if (!listenerName) {\n listenerName = eventName;\n console.warn('Listener must be a named function.');\n }\n\n if (!attachedListeners.has(eventName)) attachedListeners.set(eventName, new Set());\n var listeners = attachedListeners.get(eventName);\n if (listeners.has(listenerName)) return;\n\n var supportsPassiveOption = function () {\n var supportsPassiveOption = false;\n try {\n var opts = Object.defineProperty({}, 'passive', {\n get: function get() {\n supportsPassiveOption = true;\n }\n });\n window.addEventListener('test', null, opts);\n } catch (e) {}\n return supportsPassiveOption;\n }();\n target.addEventListener(eventName, listener, supportsPassiveOption ? { passive: true } : false);\n listeners.add(listenerName);\n};\n\nvar removePassiveEventListener = exports.removePassiveEventListener = function removePassiveEventListener(target, eventName, listener) {\n target.removeEventListener(eventName, listener);\n attachedListeners.get(eventName).delete(listener.name || eventName);\n};\n\nvar attachedListeners = new Map();","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _scroller = require('./scroller');\n\nvar _scroller2 = _interopRequireDefault(_scroller);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nexports.default = function (Component) {\n var Element = function (_React$Component) {\n _inherits(Element, _React$Component);\n\n function Element(props) {\n _classCallCheck(this, Element);\n\n var _this = _possibleConstructorReturn(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));\n\n _this.childBindings = {\n domNode: null\n };\n return _this;\n }\n\n _createClass(Element, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (typeof window === 'undefined') {\n return false;\n }\n this.registerElems(this.props.name);\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (this.props.name !== prevProps.name) {\n this.registerElems(this.props.name);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (typeof window === 'undefined') {\n return false;\n }\n _scroller2.default.unregister(this.props.name);\n }\n }, {\n key: 'registerElems',\n value: function registerElems(name) {\n _scroller2.default.register(name, this.childBindings.domNode);\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(Component, _extends({}, this.props, { parentBindings: this.childBindings }));\n }\n }]);\n\n return Element;\n }(_react2.default.Component);\n\n ;\n\n Element.propTypes = {\n name: _propTypes2.default.string,\n id: _propTypes2.default.string\n };\n\n return Element;\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar Events = {\n\tregistered: {},\n\tscrollEvent: {\n\t\tregister: function register(evtName, callback) {\n\t\t\tEvents.registered[evtName] = callback;\n\t\t},\n\t\tremove: function remove(evtName) {\n\t\t\tEvents.registered[evtName] = null;\n\t\t}\n\t}\n};\n\nexports.default = Events;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _passiveEventListeners = require('./passive-event-listeners');\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar scrollHash = {\n mountFlag: false,\n initialized: false,\n scroller: null,\n containers: {},\n\n mount: function mount(scroller) {\n this.scroller = scroller;\n\n this.handleHashChange = this.handleHashChange.bind(this);\n window.addEventListener('hashchange', this.handleHashChange);\n\n this.initStateFromHash();\n this.mountFlag = true;\n },\n mapContainer: function mapContainer(to, container) {\n this.containers[to] = container;\n },\n isMounted: function isMounted() {\n return this.mountFlag;\n },\n isInitialized: function isInitialized() {\n return this.initialized;\n },\n initStateFromHash: function initStateFromHash() {\n var _this = this;\n\n var hash = this.getHash();\n if (hash) {\n window.setTimeout(function () {\n _this.scrollTo(hash, true);\n _this.initialized = true;\n }, 10);\n } else {\n this.initialized = true;\n }\n },\n scrollTo: function scrollTo(to, isInit) {\n var scroller = this.scroller;\n var element = scroller.get(to);\n if (element && (isInit || to !== scroller.getActiveLink())) {\n var container = this.containers[to] || document;\n scroller.scrollTo(to, { container: container });\n }\n },\n getHash: function getHash() {\n return _utils2.default.getHash();\n },\n changeHash: function changeHash(to, saveHashHistory) {\n if (this.isInitialized() && _utils2.default.getHash() !== to) {\n _utils2.default.updateHash(to, saveHashHistory);\n }\n },\n handleHashChange: function handleHashChange() {\n this.scrollTo(this.getHash());\n },\n unmount: function unmount() {\n this.scroller = null;\n this.containers = null;\n window.removeEventListener('hashchange', this.handleHashChange);\n }\n};\n\nexports.default = scrollHash;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _createClass = 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; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _scrollSpy = require('./scroll-spy');\n\nvar _scrollSpy2 = _interopRequireDefault(_scrollSpy);\n\nvar _scroller = require('./scroller');\n\nvar _scroller2 = _interopRequireDefault(_scroller);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _scrollHash = require('./scroll-hash');\n\nvar _scrollHash2 = _interopRequireDefault(_scrollHash);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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) : subClass.__proto__ = superClass; }\n\nvar protoTypes = {\n to: _propTypes2.default.string.isRequired,\n containerId: _propTypes2.default.string,\n container: _propTypes2.default.object,\n activeClass: _propTypes2.default.string,\n activeStyle: _propTypes2.default.object,\n spy: _propTypes2.default.bool,\n horizontal: _propTypes2.default.bool,\n smooth: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.string]),\n offset: _propTypes2.default.number,\n delay: _propTypes2.default.number,\n isDynamic: _propTypes2.default.bool,\n onClick: _propTypes2.default.func,\n duration: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.func]),\n absolute: _propTypes2.default.bool,\n onSetActive: _propTypes2.default.func,\n onSetInactive: _propTypes2.default.func,\n ignoreCancelEvents: _propTypes2.default.bool,\n hashSpy: _propTypes2.default.bool,\n saveHashHistory: _propTypes2.default.bool,\n spyThrottle: _propTypes2.default.number\n};\n\nexports.default = function (Component, customScroller) {\n\n var scroller = customScroller || _scroller2.default;\n\n var Link = function (_React$PureComponent) {\n _inherits(Link, _React$PureComponent);\n\n function Link(props) {\n _classCallCheck(this, Link);\n\n var _this = _possibleConstructorReturn(this, (Link.__proto__ || Object.getPrototypeOf(Link)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n active: false\n };\n return _this;\n }\n\n _createClass(Link, [{\n key: 'getScrollSpyContainer',\n value: function getScrollSpyContainer() {\n var containerId = this.props.containerId;\n var container = this.props.container;\n\n if (containerId && !container) {\n return document.getElementById(containerId);\n }\n\n if (container && container.nodeType) {\n return container;\n }\n\n return document;\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.props.spy || this.props.hashSpy) {\n var scrollSpyContainer = this.getScrollSpyContainer();\n\n if (!_scrollSpy2.default.isMounted(scrollSpyContainer)) {\n _scrollSpy2.default.mount(scrollSpyContainer, this.props.spyThrottle);\n }\n\n if (this.props.hashSpy) {\n if (!_scrollHash2.default.isMounted()) {\n _scrollHash2.default.mount(scroller);\n }\n _scrollHash2.default.mapContainer(this.props.to, scrollSpyContainer);\n }\n\n _scrollSpy2.default.addSpyHandler(this.spyHandler, scrollSpyContainer);\n\n this.setState({\n container: scrollSpyContainer\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n _scrollSpy2.default.unmount(this.stateHandler, this.spyHandler);\n }\n }, {\n key: 'render',\n value: function render() {\n var className = \"\";\n\n if (this.state && this.state.active) {\n className = ((this.props.className || \"\") + \" \" + (this.props.activeClass || \"active\")).trim();\n } else {\n className = this.props.className;\n }\n\n var style = {};\n\n if (this.state && this.state.active) {\n style = _extends({}, this.props.style, this.props.activeStyle);\n } else {\n style = _extends({}, this.props.style);\n }\n\n var props = _extends({}, this.props);\n\n for (var prop in protoTypes) {\n if (props.hasOwnProperty(prop)) {\n delete props[prop];\n }\n }\n\n props.className = className;\n props.style = style;\n props.onClick = this.handleClick;\n\n return _react2.default.createElement(Component, props);\n }\n }]);\n\n return Link;\n }(_react2.default.PureComponent);\n\n var _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.scrollTo = function (to, props) {\n scroller.scrollTo(to, _extends({}, _this2.state, props));\n };\n\n this.handleClick = function (event) {\n\n /*\r\n * give the posibility to override onClick\r\n */\n\n if (_this2.props.onClick) {\n _this2.props.onClick(event);\n }\n\n /*\r\n * dont bubble the navigation\r\n */\n\n if (event.stopPropagation) event.stopPropagation();\n if (event.preventDefault) event.preventDefault();\n\n /*\r\n * do the magic!\r\n */\n _this2.scrollTo(_this2.props.to, _this2.props);\n };\n\n this.spyHandler = function (x, y) {\n var scrollSpyContainer = _this2.getScrollSpyContainer();\n\n if (_scrollHash2.default.isMounted() && !_scrollHash2.default.isInitialized()) {\n return;\n }\n\n var horizontal = _this2.props.horizontal;\n\n var to = _this2.props.to;\n var element = null;\n var isInside = void 0;\n var isOutside = void 0;\n\n if (horizontal) {\n var elemLeftBound = 0;\n var elemRightBound = 0;\n var containerLeft = 0;\n\n if (scrollSpyContainer.getBoundingClientRect) {\n var containerCords = scrollSpyContainer.getBoundingClientRect();\n containerLeft = containerCords.left;\n }\n\n if (!element || _this2.props.isDynamic) {\n element = scroller.get(to);\n if (!element) {\n return;\n }\n\n var cords = element.getBoundingClientRect();\n elemLeftBound = cords.left - containerLeft + x;\n elemRightBound = elemLeftBound + cords.width;\n }\n\n var offsetX = x - _this2.props.offset;\n isInside = offsetX >= Math.floor(elemLeftBound) && offsetX < Math.floor(elemRightBound);\n isOutside = offsetX < Math.floor(elemLeftBound) || offsetX >= Math.floor(elemRightBound);\n } else {\n var elemTopBound = 0;\n var elemBottomBound = 0;\n var containerTop = 0;\n\n if (scrollSpyContainer.getBoundingClientRect) {\n var _containerCords = scrollSpyContainer.getBoundingClientRect();\n containerTop = _containerCords.top;\n }\n\n if (!element || _this2.props.isDynamic) {\n element = scroller.get(to);\n if (!element) {\n return;\n }\n\n var _cords = element.getBoundingClientRect();\n elemTopBound = _cords.top - containerTop + y;\n elemBottomBound = elemTopBound + _cords.height;\n }\n\n var offsetY = y - _this2.props.offset;\n isInside = offsetY >= Math.floor(elemTopBound) && offsetY < Math.floor(elemBottomBound);\n isOutside = offsetY < Math.floor(elemTopBound) || offsetY >= Math.floor(elemBottomBound);\n }\n\n var activeLink = scroller.getActiveLink();\n\n if (isOutside) {\n if (to === activeLink) {\n scroller.setActiveLink(void 0);\n }\n\n if (_this2.props.hashSpy && _scrollHash2.default.getHash() === to) {\n var _props$saveHashHistor = _this2.props.saveHashHistory,\n saveHashHistory = _props$saveHashHistor === undefined ? false : _props$saveHashHistor;\n\n _scrollHash2.default.changeHash(\"\", saveHashHistory);\n }\n\n if (_this2.props.spy && _this2.state.active) {\n _this2.setState({ active: false });\n _this2.props.onSetInactive && _this2.props.onSetInactive(to, element);\n }\n }\n\n if (isInside && (activeLink !== to || _this2.state.active === false)) {\n scroller.setActiveLink(to);\n\n var _props$saveHashHistor2 = _this2.props.saveHashHistory,\n _saveHashHistory = _props$saveHashHistor2 === undefined ? false : _props$saveHashHistor2;\n\n _this2.props.hashSpy && _scrollHash2.default.changeHash(to, _saveHashHistory);\n\n if (_this2.props.spy) {\n _this2.setState({ active: true });\n _this2.props.onSetActive && _this2.props.onSetActive(to, element);\n }\n }\n };\n };\n\n ;\n\n Link.propTypes = protoTypes;\n\n Link.defaultProps = { offset: 0 };\n\n return Link;\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _lodash = require('lodash.throttle');\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _passiveEventListeners = require('./passive-event-listeners');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// The eventHandler will execute at a rate of 15fps by default\nvar eventThrottler = function eventThrottler(eventHandler) {\n var throttleAmount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 66;\n return (0, _lodash2.default)(eventHandler, throttleAmount);\n};\n\nvar scrollSpy = {\n\n spyCallbacks: [],\n spySetState: [],\n scrollSpyContainers: [],\n\n mount: function mount(scrollSpyContainer, throttle) {\n if (scrollSpyContainer) {\n var eventHandler = eventThrottler(function (event) {\n scrollSpy.scrollHandler(scrollSpyContainer);\n }, throttle);\n scrollSpy.scrollSpyContainers.push(scrollSpyContainer);\n (0, _passiveEventListeners.addPassiveEventListener)(scrollSpyContainer, 'scroll', eventHandler);\n }\n },\n isMounted: function isMounted(scrollSpyContainer) {\n return scrollSpy.scrollSpyContainers.indexOf(scrollSpyContainer) !== -1;\n },\n currentPositionX: function currentPositionX(scrollSpyContainer) {\n if (scrollSpyContainer === document) {\n var supportPageOffset = window.pageYOffset !== undefined;\n var isCSS1Compat = (document.compatMode || \"\") === \"CSS1Compat\";\n return supportPageOffset ? window.pageXOffset : isCSS1Compat ? document.documentElement.scrollLeft : document.body.scrollLeft;\n } else {\n return scrollSpyContainer.scrollLeft;\n }\n },\n currentPositionY: function currentPositionY(scrollSpyContainer) {\n if (scrollSpyContainer === document) {\n var supportPageOffset = window.pageXOffset !== undefined;\n var isCSS1Compat = (document.compatMode || \"\") === \"CSS1Compat\";\n return supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop;\n } else {\n return scrollSpyContainer.scrollTop;\n }\n },\n scrollHandler: function scrollHandler(scrollSpyContainer) {\n var callbacks = scrollSpy.scrollSpyContainers[scrollSpy.scrollSpyContainers.indexOf(scrollSpyContainer)].spyCallbacks || [];\n callbacks.forEach(function (c) {\n return c(scrollSpy.currentPositionX(scrollSpyContainer), scrollSpy.currentPositionY(scrollSpyContainer));\n });\n },\n addStateHandler: function addStateHandler(handler) {\n scrollSpy.spySetState.push(handler);\n },\n addSpyHandler: function addSpyHandler(handler, scrollSpyContainer) {\n var container = scrollSpy.scrollSpyContainers[scrollSpy.scrollSpyContainers.indexOf(scrollSpyContainer)];\n\n if (!container.spyCallbacks) {\n container.spyCallbacks = [];\n }\n\n container.spyCallbacks.push(handler);\n\n handler(scrollSpy.currentPositionX(scrollSpyContainer), scrollSpy.currentPositionY(scrollSpyContainer));\n },\n updateStates: function updateStates() {\n scrollSpy.spySetState.forEach(function (s) {\n return s();\n });\n },\n unmount: function unmount(stateHandler, spyHandler) {\n scrollSpy.scrollSpyContainers.forEach(function (c) {\n return c.spyCallbacks && c.spyCallbacks.length && c.spyCallbacks.indexOf(spyHandler) > -1 && c.spyCallbacks.splice(c.spyCallbacks.indexOf(spyHandler), 1);\n });\n\n if (scrollSpy.spySetState && scrollSpy.spySetState.length && scrollSpy.spySetState.indexOf(stateHandler) > -1) {\n scrollSpy.spySetState.splice(scrollSpy.spySetState.indexOf(stateHandler), 1);\n }\n\n document.removeEventListener('scroll', scrollSpy.scrollHandler);\n },\n\n\n update: function update() {\n return scrollSpy.scrollSpyContainers.forEach(function (c) {\n return scrollSpy.scrollHandler(c);\n });\n }\n};\n\nexports.default = scrollSpy;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _utils = require('./utils');\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _animateScroll = require('./animate-scroll');\n\nvar _animateScroll2 = _interopRequireDefault(_animateScroll);\n\nvar _scrollEvents = require('./scroll-events');\n\nvar _scrollEvents2 = _interopRequireDefault(_scrollEvents);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar __mapped = {};\nvar __activeLink = void 0;\n\nexports.default = {\n\n unmount: function unmount() {\n __mapped = {};\n },\n\n register: function register(name, element) {\n __mapped[name] = element;\n },\n\n unregister: function unregister(name) {\n delete __mapped[name];\n },\n\n get: function get(name) {\n return __mapped[name] || document.getElementById(name) || document.getElementsByName(name)[0] || document.getElementsByClassName(name)[0];\n },\n\n setActiveLink: function setActiveLink(link) {\n return __activeLink = link;\n },\n\n getActiveLink: function getActiveLink() {\n return __activeLink;\n },\n\n scrollTo: function scrollTo(to, props) {\n\n var target = this.get(to);\n\n if (!target) {\n console.warn(\"target Element not found\");\n return;\n }\n\n props = _extends({}, props, { absolute: false });\n\n var containerId = props.containerId;\n var container = props.container;\n\n var containerElement = void 0;\n if (containerId) {\n containerElement = document.getElementById(containerId);\n } else if (container && container.nodeType) {\n containerElement = container;\n } else {\n containerElement = document;\n }\n\n props.absolute = true;\n\n var horizontal = props.horizontal;\n var scrollOffset = _utils2.default.scrollOffset(containerElement, target, horizontal) + (props.offset || 0);\n\n /*\r\n * if animate is not provided just scroll into the view\r\n */\n if (!props.smooth) {\n if (_scrollEvents2.default.registered['begin']) {\n _scrollEvents2.default.registered['begin'](to, target);\n }\n\n if (containerElement === document) {\n if (props.horizontal) {\n window.scrollTo(scrollOffset, 0);\n } else {\n window.scrollTo(0, scrollOffset);\n }\n } else {\n containerElement.scrollTop = scrollOffset;\n }\n\n if (_scrollEvents2.default.registered['end']) {\n _scrollEvents2.default.registered['end'](to, target);\n }\n\n return;\n }\n\n /*\r\n * Animate scrolling\r\n */\n\n _animateScroll2.default.animateTopScroll(scrollOffset, props, to, target);\n }\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n /*\r\n * https://github.com/oblador/angular-scroll (duScrollDefaultEasing)\r\n */\n defaultEasing: function defaultEasing(x) {\n if (x < 0.5) {\n return Math.pow(x * 2, 2) / 2;\n }\n return 1 - Math.pow((1 - x) * 2, 2) / 2;\n },\n /*\r\n * https://gist.github.com/gre/1650294\r\n */\n // no easing, no acceleration\n linear: function linear(x) {\n return x;\n },\n // accelerating from zero velocity\n easeInQuad: function easeInQuad(x) {\n return x * x;\n },\n // decelerating to zero velocity\n easeOutQuad: function easeOutQuad(x) {\n return x * (2 - x);\n },\n // acceleration until halfway, then deceleration\n easeInOutQuad: function easeInOutQuad(x) {\n return x < .5 ? 2 * x * x : -1 + (4 - 2 * x) * x;\n },\n // accelerating from zero velocity \n easeInCubic: function easeInCubic(x) {\n return x * x * x;\n },\n // decelerating to zero velocity π\n easeOutCubic: function easeOutCubic(x) {\n return --x * x * x + 1;\n },\n // acceleration until halfway, then deceleration \n easeInOutCubic: function easeInOutCubic(x) {\n return x < .5 ? 4 * x * x * x : (x - 1) * (2 * x - 2) * (2 * x - 2) + 1;\n },\n // accelerating from zero velocity \n easeInQuart: function easeInQuart(x) {\n return x * x * x * x;\n },\n // decelerating to zero velocity \n easeOutQuart: function easeOutQuart(x) {\n return 1 - --x * x * x * x;\n },\n // acceleration until halfway, then deceleration\n easeInOutQuart: function easeInOutQuart(x) {\n return x < .5 ? 8 * x * x * x * x : 1 - 8 * --x * x * x * x;\n },\n // accelerating from zero velocity\n easeInQuint: function easeInQuint(x) {\n return x * x * x * x * x;\n },\n // decelerating to zero velocity\n easeOutQuint: function easeOutQuint(x) {\n return 1 + --x * x * x * x * x;\n },\n // acceleration until halfway, then deceleration \n easeInOutQuint: function easeInOutQuint(x) {\n return x < .5 ? 16 * x * x * x * x * x : 1 + 16 * --x * x * x * x * x;\n }\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar updateHash = function updateHash(hash, historyUpdate) {\n var hashVal = hash.indexOf(\"#\") === 0 ? hash.substring(1) : hash;\n var hashToUpdate = hashVal ? \"#\" + hashVal : \"\";\n var curLoc = window && window.location;\n var urlToPush = hashToUpdate ? curLoc.pathname + curLoc.search + hashToUpdate : curLoc.pathname + curLoc.search;\n historyUpdate ? history.pushState(history.state, \"\", urlToPush) : history.replaceState(history.state, \"\", urlToPush);\n};\n\nvar getHash = function getHash() {\n return window.location.hash.replace(/^#/, \"\");\n};\n\nvar filterElementInContainer = function filterElementInContainer(container) {\n return function (element) {\n return container.contains ? container != element && container.contains(element) : !!(container.compareDocumentPosition(element) & 16);\n };\n};\n\nvar isPositioned = function isPositioned(element) {\n return getComputedStyle(element).position !== \"static\";\n};\n\nvar getElementOffsetInfoUntil = function getElementOffsetInfoUntil(element, predicate) {\n var offsetTop = element.offsetTop;\n var currentOffsetParent = element.offsetParent;\n\n while (currentOffsetParent && !predicate(currentOffsetParent)) {\n offsetTop += currentOffsetParent.offsetTop;\n currentOffsetParent = currentOffsetParent.offsetParent;\n }\n\n return { offsetTop: offsetTop, offsetParent: currentOffsetParent };\n};\n\nvar scrollOffset = function scrollOffset(c, t, horizontal) {\n if (horizontal) {\n return c === document ? t.getBoundingClientRect().left + (window.scrollX || window.pageXOffset) : getComputedStyle(c).position !== \"static\" ? t.offsetLeft : t.offsetLeft - c.offsetLeft;\n } else {\n if (c === document) {\n return t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset);\n }\n\n // The offsetParent of an element, according to MDN, is its nearest positioned\n // (an element whose position is anything other than static) ancestor. The offsetTop\n // of an element is taken with respect to its offsetParent which may not neccessarily\n // be its parentElement except the parent itself is positioned.\n\n // So if containerElement is positioned, then it must be an offsetParent somewhere\n // If it happens that targetElement is a descendant of the containerElement, and there\n // is not intermediate positioned element between the two of them, i.e.\n // targetElement\"s offsetParent is the same as the containerElement, then the\n // distance between the two will be the offsetTop of the targetElement.\n // If, on the other hand, there are intermediate positioned elements between the\n // two entities, the distance between the targetElement and the containerElement\n // will be the accumulation of the offsetTop of the element and that of its\n // subsequent offsetParent until the containerElement is reached, since it\n // will also be an offsetParent at some point due to the fact that it is positioned.\n\n // If the containerElement is not positioned, then it can\"t be an offsetParent,\n // which means that the offsetTop of the targetElement would not be with respect to it.\n // However, if the two of them happen to have the same offsetParent, then\n // the distance between them will be the difference between their offsetTop\n // since they are both taken with respect to the same entity.\n // The last resort would be to accumulate their offsetTop until a common\n // offsetParent is reached (usually the document) and taking the difference\n // between the accumulated offsetTops\n\n if (isPositioned(c)) {\n if (t.offsetParent !== c) {\n var isContainerElementOrDocument = function isContainerElementOrDocument(e) {\n return e === c || e === document;\n };\n\n var _getElementOffsetInfo = getElementOffsetInfoUntil(t, isContainerElementOrDocument),\n offsetTop = _getElementOffsetInfo.offsetTop,\n offsetParent = _getElementOffsetInfo.offsetParent;\n\n if (offsetParent !== c) {\n throw new Error(\"Seems containerElement is not an ancestor of the Element\");\n }\n\n return offsetTop;\n }\n\n return t.offsetTop;\n }\n\n if (t.offsetParent === c.offsetParent) {\n return t.offsetTop - c.offsetTop;\n }\n\n var isDocument = function isDocument(e) {\n return e === document;\n };\n return getElementOffsetInfoUntil(t, isDocument).offsetTop - getElementOffsetInfoUntil(c, isDocument).offsetTop;\n }\n};\n\nexports.default = {\n updateHash: updateHash,\n getHash: getHash,\n filterElementInContainer: filterElementInContainer,\n scrollOffset: scrollOffset\n};","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\"),require(\"react-dom\")):\"function\"==typeof define&&define.amd?define(\"lib\",[\"react\",\"react-dom\"],t):\"object\"==typeof exports?exports.lib=t(require(\"react\"),require(\"react-dom\")):e.lib=t(e.react,e[\"react-dom\"])}(\"undefined\"!=typeof self?self:this,(function(e,t){return function(){\"use strict\";var r={328:function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var n=r(496),o=Object.prototype.hasOwnProperty.call(n,\"createContext\");t.PrintContext=o?n.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReactToPrint=void 0;var n=r(316),o=r(496),i=r(190),a=r(328),c=r(940),s=function(e){function t(){var t=e.apply(this,n.__spreadArray([],n.__read(arguments),!1))||this;return t.startPrint=function(e){var r=t.props,n=r.onAfterPrint,o=r.onPrintError,i=r.print,a=r.documentTitle;setTimeout((function(){var r,c;if(e.contentWindow)if(e.contentWindow.focus(),i)i(e).then((function(){return null==n?void 0:n()})).then((function(){return t.handleRemoveIframe()})).catch((function(e){o?o(\"print\",e):t.logMessages([\"An error was thrown by the specified `print` function\"])}));else{if(e.contentWindow.print){var s=null!==(c=null===(r=e.contentDocument)||void 0===r?void 0:r.title)&&void 0!==c?c:\"\",u=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=u,e.contentDocument&&(e.contentDocument.title=s))}else t.logMessages([\"Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes.\"]);null==n||n(),t.handleRemoveIframe()}else t.logMessages([\"Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/\"])}),500)},t.triggerPrint=function(e){var r=t.props,n=r.onBeforePrint,o=r.onPrintError;if(n){var i=n();i&&\"function\"==typeof i.then?i.then((function(){t.startPrint(e)})).catch((function(e){o&&o(\"onBeforePrint\",e)})):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var r=t.props,o=r.bodyClass,a=r.content,c=r.copyStyles,s=r.fonts,u=r.pageStyle,l=r.nonce,f=\"function\"==typeof e?e():null;if(f&&\"function\"==typeof a&&t.logMessages(['\"react-to-print\" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],\"warning\"),f||\"function\"!=typeof a||(f=a()),void 0!==f)if(null!==f){var d=document.createElement(\"iframe\");d.width=\"\".concat(document.documentElement.clientWidth,\"px\"),d.height=\"\".concat(document.documentElement.clientHeight,\"px\"),d.style.position=\"absolute\",d.style.top=\"-\".concat(document.documentElement.clientHeight+100,\"px\"),d.style.left=\"-\".concat(document.documentElement.clientWidth+100,\"px\"),d.id=\"printWindow\",d.srcdoc=\"\";var p=(0,i.findDOMNode)(f);if(p){var h=p.cloneNode(!0),y=h instanceof Text,b=document.querySelectorAll(\"link[rel~='stylesheet'], link[as='style']\"),v=y?[]:h.querySelectorAll(\"img\"),g=y?[]:h.querySelectorAll(\"video\"),m=s?s.length:0;t.numResourcesToLoad=b.length+v.length+g.length+m,t.resourcesLoaded=[],t.resourcesErrored=[];var _=function(e,r){t.resourcesLoaded.includes(e)?t.logMessages([\"Tried to mark a resource that has already been handled\",e],\"debug\"):(r?(t.logMessages(n.__spreadArray(['\"react-to-print\" was unable to load a resource but will continue attempting to print the page'],n.__read(r),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(d))};d.onload=function(){var e,r,i,a;d.onload=null;var f=d.contentDocument||(null===(r=d.contentWindow)||void 0===r?void 0:r.document);if(f){f.body.appendChild(h),s&&((null===(i=d.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(a=d.contentWindow)||void 0===a?void 0:a.FontFace)?s.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});d.contentDocument.fonts.add(t),t.loaded.then((function(){_(t)})).catch((function(e){_(t,[\"Failed loading the font:\",t,\"Load error:\",e])}))})):(s.forEach((function(e){return _(e)})),t.logMessages(['\"react-to-print\" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var b=\"function\"==typeof u?u():u;if(\"string\"!=typeof b)t.logMessages(['\"react-to-print\" expected a \"string\" from `pageStyle` but received \"'.concat(typeof b,'\". Styles from `pageStyle` will not be applied.')]);else{var m=f.createElement(\"style\");l&&(m.setAttribute(\"nonce\",l),f.head.setAttribute(\"nonce\",l)),m.appendChild(f.createTextNode(b)),f.head.appendChild(m)}if(o&&(e=f.body.classList).add.apply(e,n.__spreadArray([],n.__read(o.split(\" \")),!1)),!y){for(var w=y?[]:p.querySelectorAll(\"canvas\"),P=f.querySelectorAll(\"canvas\"),O=0;O\",t,\"Error\",i])},n.src=r}else _(t,['Found an tag with an empty \"src\" attribute. This prevents pre-loading it. The is:',t])};for(O=0;O=2?_(t):(t.onloadeddata=function(){return _(t)},t.onerror=function(e,r,n,o,i){return _(t,[\"Error loading video\",t,\"Error\",i])},t.onstalled=function(){return _(t,[\"Loading video stalled, skipping\",t])})};for(O=0;O tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The is:\",n],\"warning\"),_(n);else{for(var u=f.createElement(n.tagName),d=(s=0,n.attributes.length);s tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:\",n],\"warning\"),_(n)},L=(O=0,F.length);O=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function a(e){if(void 0!==e&&\"function\"!=typeof e)throw new TypeError(\"Function expected\");return e}for(var c,s=n.kind,u=\"getter\"===s?\"get\":\"setter\"===s?\"set\":\"value\",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var h={};for(var y in n)h[y]=\"access\"===y?{}:n[y];for(var y in n.access)h.access[y]=n.access[y];h.addInitializer=function(e){if(d)throw new TypeError(\"Cannot add initializers after decoration has completed\");i.push(a(e||null))};var b=(0,r[p])(\"accessor\"===s?{get:f.get,set:f.set}:f[u],h);if(\"accessor\"===s){if(void 0===b)continue;if(null===b||\"object\"!=typeof b)throw new TypeError(\"Object expected\");(c=a(b.get))&&(f.get=c),(c=a(b.set))&&(f.set=c),(c=a(b.init))&&o.unshift(c)}else(c=a(b))&&(\"field\"===s?o.unshift(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function m(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function s(e){c(\"next\",e)}function u(e){c(\"throw\",e)}function l(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function S(e){var t,r;return t={},n(\"next\"),n(\"throw\",(function(e){throw e})),n(\"return\"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n(\"next\"),n(\"throw\"),n(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e}var j=Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)\"default\"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&b(t,e,r);return j(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t,r,n){if(\"a\"===r&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"==typeof t?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===r?n:\"a\"===r?n.call(e):n?n.value:t.get(e)}function R(e,t,r,n,o){if(\"m\"===n)throw new TypeError(\"Private method is not writable\");if(\"a\"===n&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"==typeof t?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function M(e,t){if(null===t||\"object\"!=typeof t&&\"function\"!=typeof t)throw new TypeError(\"Cannot use 'in' operator on non-object\");return\"function\"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if(\"object\"!=typeof t&&\"function\"!=typeof t)throw new TypeError(\"Object expected.\");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");n=t[Symbol.dispose]}if(\"function\"!=typeof n)throw new TypeError(\"Object not disposable.\");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var I=\"function\"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name=\"SuppressedError\",n.error=e,n.suppressed=t,n};function q(e){function t(t){e.error=e.hasError?new I(t,e.error,\"An error was suppressed during disposal.\"):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:o,__assign:i,__rest:a,__decorate:c,__param:s,__metadata:p,__awaiter:h,__generator:y,__createBinding:b,__exportStar:v,__values:g,__read:m,__spread:_,__spreadArrays:w,__spreadArray:P,__await:O,__asyncGenerator:x,__asyncDelegator:S,__asyncValues:E,__makeTemplateObject:T,__importStar:C,__importDefault:A,__classPrivateFieldGet:k,__classPrivateFieldSet:R,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:q}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var i={};return function(){var e=i;Object.defineProperty(e,\"__esModule\",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=o(328);Object.defineProperty(e,\"PrintContextConsumer\",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var r=o(428);Object.defineProperty(e,\"ReactToPrint\",{enumerable:!0,get:function(){return r.ReactToPrint}});var n=o(892);Object.defineProperty(e,\"useReactToPrint\",{enumerable:!0,get:function(){return n.useReactToPrint}});var a=o(428);e.default=a.ReactToPrint}(),i}()}));","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _addClass = _interopRequireDefault(require(\"dom-helpers/class/addClass\"));\n\nvar _removeClass = _interopRequireDefault(require(\"dom-helpers/class/removeClass\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _addClass.default)(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _removeClass.default)(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](http://www.nganimate.org/) library, you should use it if you're\n * using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n *
\n * {\"I'll receive my-node-* classes\"}\n *
\n * \n * \n *
\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = require(\"react-dom\");\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * \n *
I appear first
\n *
I replace the above
\n * \n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nexports.__esModule = true;\nexports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nvar _TransitionGroupContext = _interopRequireDefault(require(\"./TransitionGroupContext\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar UNMOUNTED = 'unmounted';\nexports.UNMOUNTED = UNMOUNTED;\nvar EXITED = 'exited';\nexports.EXITED = EXITED;\nvar ENTERING = 'entering';\nexports.ENTERING = ENTERING;\nvar ENTERED = 'entered';\nexports.ENTERED = ENTERED;\nvar EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
\n * I'm a fade Transition!\n *
\n * )}\n * \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nexports.EXITING = EXITING;\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n var node = _reactDom.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing);\n\n _this2.onTransitionEnd(node, enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n // allows for nested Transitions\n return _react.default.createElement(_TransitionGroupContext.default.Provider, {\n value: null\n }, children(status, childProps));\n }\n\n var child = _react.default.Children.only(children);\n\n return (// allows for nested Transitions\n _react.default.createElement(_TransitionGroupContext.default.Provider, {\n value: null\n }, _react.default.cloneElement(child, childProps))\n );\n };\n\n return Transition;\n}(_react.default.Component);\n\nTransition.contextType = _TransitionGroupContext.default;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = _PropTypes.timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(Transition);\n\nexports.default = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _TransitionGroupContext = _interopRequireDefault(require(\"./TransitionGroupContext\"));\n\nvar _ChildMapping = require(\"./utils/ChildMapping\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n /**\n * The `` component manages a set of transition components\n * (`` and ``) in a list. Like with the transition\n * components, `` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the ``.\n *\n * Note that `` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\n};\n\nvar TransitionGroup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n };\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return _react.default.createElement(_TransitionGroupContext.default.Provider, {\n value: contextValue\n }, children);\n }\n\n return _react.default.createElement(_TransitionGroupContext.default.Provider, {\n value: contextValue\n }, _react.default.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(_react.default.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `` renders a `
` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `
\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default ContactUs;\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport { Link, Element } from \"react-scroll\";\r\nimport Alerts from \"./Alerts\";\r\nimport SealAndTitle from \"./Home/SealAndTitle\";\r\nimport TopMenu from \"./Home/TopMenu\";\r\nimport ProSeInfo from \"./Home/ProSeInfo\";\r\nimport Litigants from \"./Home/Litigants\";\r\nimport Attorneys from \"./Home/Attorneys\";\r\nimport ContactUs from \"./Home/ContactUs\";\r\nimport Footer from \"./Home/Footer\";\r\n\r\nimport \"./Home/style/home.css\";\r\n\r\nimport courtSeal from \"./Home/images/CourtSeal-no-back.png\";\r\n\r\nconst Home = () => {\r\n const alert = useSelector((state) => state.alert);\r\n\r\n return (\r\n \r\n {alert && }\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default Home;\r\n","import React from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { Row, Col } from \"reactstrap\";\r\n\r\nconst StaffMenu = () => {\r\n return (\r\n \r\n
\r\n In order for the court to provide the Pro Se Clinic for everyone we\r\n limit the appointments to 3 a year. You have met your limit of 3\r\n appointments for the year. View your{\" \"}\r\n \r\n previous appointments\r\n \r\n
\r\n Update your personal information here. If you have an existing\r\n appointmen the assigned attorney will be notified of your change.\r\n The attorney is notifed so that they can verfy that there is no\r\n conflict of interst.\r\n
\r\n Thank you for registering, an email confirmation has been\r\n submitted to your email account. You cannot proceed if you\r\n do not confirm your email.\r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Attorney;\r\n","import { useLocation } from \"react-router-dom\";\r\n\r\n// A custom hook that builds on useLocation to parse\r\n// the query string for you.\r\nconst useQuery = () => {\r\n return new URLSearchParams(useLocation().search);\r\n};\r\n\r\nexport default useQuery;\r\n","import React, { useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Row, Col, Input, Button, FormFeedback, FormText } from \"reactstrap\";\r\n\r\nimport getQueryString from \"../../helpers/getQueryString\";\r\nimport userActions from \"../../actions/userActions\";\r\n\r\nconst PasswordResetForm = () => {\r\n const query = getQueryString();\r\n const dispatch = useDispatch();\r\n\r\n const { register, handleSubmit, errors } = useForm();\r\n const [formState, setFormState] = useState({\r\n email: \"\",\r\n password: \"\",\r\n confirmPassword: \"\",\r\n token: query.get(\"token\"),\r\n submitted: false,\r\n });\r\n\r\n const onChange = (evt) => {\r\n const { target } = evt;\r\n if (target) setFormState({ ...formState, [target.name]: target.value });\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (\r\n formState.password === formState.confirmPassword &&\r\n formState.email !== \"\"\r\n ) {\r\n setFormState({ ...formState, submitted: true });\r\n dispatch(userActions.passwordReset(formState));\r\n }\r\n\r\n return;\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PasswordResetForm;\r\n","import React from \"react\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport { Link, Element } from \"react-scroll\";\r\n\r\nimport SealAndTitle from \"./Home/SealAndTitle\";\r\nimport PasswordResetForm from \"./PasswordReset/PasswordResetForm\";\r\nimport Footer from \"./Home/Footer\";\r\n\r\nimport \"./Home/style/home.css\";\r\n\r\nimport courtSeal from \"./Home/images/CourtSeal-no-back.png\";\r\n\r\nconst PasswordReset = (props) => {\r\n return (\r\n \r\n \r\n
\r\n \r\n Thank you for confirming your email. Your are being redirected\r\n to the login page.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ConfirmEmailForm;\r\n","import React from \"react\";\r\nimport { Row, Col } from \"reactstrap\";\r\nimport { Link, Element } from \"react-scroll\";\r\n\r\nimport SealAndTitle from \"./Home/SealAndTitle\";\r\nimport ConfirmEmailForm from \"./ConfirmEmail/ConfirmEmailForm\";\r\nimport Footer from \"./Home/Footer\";\r\n\r\nimport \"./Home/style/home.css\";\r\n\r\nimport courtSeal from \"./Home/images/CourtSeal-no-back.png\";\r\n\r\nconst ConfirmEmail = (props) => {\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\nexport default ConfirmEmail;\r\n","import React from \"react\";\nimport { Router, Route, Switch } from \"react-router\";\nimport Layout from \"./components/Layout\";\nimport history from \"./helpers/history\";\nimport PrivateRoute from \"./components/PrivateRoute\";\nimport User from \"./components/User\";\nimport Home from \"./components/Home\";\nimport Staff from \"./components/Staff\";\nimport Attorney from \"./components/Attorney\";\nimport PasswordReset from \"./components/PasswordReset\";\nimport ConfirmEmail from \"./components/ConfirmEmail\";\n\nfunction App() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n );\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}\n","// import \"react-app-polyfill/ie11\";\n// import \"react-app-polyfill/stable\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Provider } from \"react-redux\";\nimport store from \"./helpers/store\";\nimport App from \"./App\";\nimport * as serviceWorker from \"./serviceWorker\";\n\nimport \"react-calendar/dist/Calendar.css\";\nimport \"bootstrap/dist/css/bootstrap.css\";\nimport \"./style/index.css\";\n\nReactDOM.render(\n \n \n ,\n document.getElementById(\"root\")\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"names":["__importDefault","this","mod","__esModule","Object","defineProperty","exports","value","tinycolor2_1","require","hueStep","saturationStep","saturationStep2","brightnessStep1","brightnessStep2","lightColorCount","darkColorCount","getHue","hsv","i","light","hue","Math","round","h","getSaturation","s","saturation","getValue","v","color","patterns","pColor","default","toHsv","colorString","toHexString","push","generate_1","generate","presetPrimaryColors","red","volcano","orange","gold","yellow","lime","green","cyan","blue","geekblue","purple","magenta","grey","presetPalettes","keys","forEach","key","primary","_react","_propTypes2","_interopRequireDefault","_gud2","obj","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","create","constructor","enumerable","writable","configurable","setPrototypeOf","__proto__","MAX_SIGNED_31_BIT_INT","defaultValue","calculateChangedBits","_Provider$childContex","_Consumer$contextType","contextProp","Provider","_Component","_temp","_this","_len","arguments","length","args","Array","_key","apply","concat","emitter","handlers","on","handler","off","filter","get","set","newValue","changedBits","createEventEmitter","props","getChildContext","_ref","componentWillReceiveProps","nextProps","oldValue","x","y","render","children","Component","childContextTypes","object","isRequired","Consumer","_Component2","_temp2","_this2","_len2","_key2","state","onUpdate","observedBits","setState","undefined","componentDidMount","context","componentWillUnmount","isArray","contextTypes","module","_react2","_implementation2","createContext","normalizeAttrs","attrs","reduce","acc","val","className","MiniMap","collection","_createClass","Boolean","node","rootProps","React","tag","_extends","map","child","index","getSecondaryColor","primaryColor","generateColor","twoToneColorPalette","secondaryColor","Icon","_React$Component","getPrototypeOf","_extends2","message","_props","type","onClick","style","rest","_objectWithoutProperties","target","colors","name","theme","icon","isIconDefinition","_defineProperty","process","console","error","icons","definitions","withSuffix","clear","displayName","normalViewBox","newViewBox","fill","outline","twotone","getNode","viewBox","paths","_i","focusable","path","d","getIcon","AccountBookFill","AlertFill","AlipaySquareFill","AliwangwangFill","AlipayCircleFill","AmazonCircleFill","AndroidFill","AmazonSquareFill","ApiFill","AppstoreFill","AudioFill","AppleFill","BackwardFill","BankFill","BehanceCircleFill","BellFill","BehanceSquareFill","BookFill","BoxPlotFill","BugFill","CalculatorFill","BulbFill","BuildFill","CalendarFill","CameraFill","CarFill","CaretDownFill","CaretLeftFill","CaretRightFill","CarryOutFill","CaretUpFill","CheckCircleFill","CheckSquareFill","ChromeFill","CiCircleFill","ClockCircleFill","CloseCircleFill","CloudFill","CloseSquareFill","CodeSandboxSquareFill","CodeSandboxCircleFill","CodeFill","CompassFill","CodepenCircleFill","CodepenSquareFill","ContactsFill","ControlFill","ContainerFill","CopyFill","CopyrightCircleFill","CreditCardFill","CrownFill","CustomerServiceFill","DashboardFill","DeleteFill","DiffFill","DingtalkCircleFill","DatabaseFill","DingtalkSquareFill","DislikeFill","DollarCircleFill","DownCircleFill","DownSquareFill","DribbbleCircleFill","DribbbleSquareFill","DropboxCircleFill","DropboxSquareFill","EnvironmentFill","EditFill","ExclamationCircleFill","EuroCircleFill","ExperimentFill","EyeInvisibleFill","EyeFill","FacebookFill","FastBackwardFill","FastForwardFill","FileAddFill","FileExcelFill","FileExclamationFill","FileImageFill","FileMarkdownFill","FilePdfFill","FilePptFill","FileTextFill","FileWordFill","FileUnknownFill","FileZipFill","FileFill","FilterFill","FireFill","FlagFill","FolderAddFill","FolderFill","FolderOpenFill","ForwardFill","FrownFill","FundFill","FunnelPlotFill","GiftFill","GithubFill","GitlabFill","GoldenFill","GoogleCircleFill","GooglePlusCircleFill","GooglePlusSquareFill","GoogleSquareFill","HddFill","HeartFill","HighlightFill","HomeFill","HourglassFill","Html5Fill","IdcardFill","IeCircleFill","IeSquareFill","InfoCircleFill","InstagramFill","InsuranceFill","InteractionFill","InterationFill","LayoutFill","LeftCircleFill","LeftSquareFill","LikeFill","LockFill","LinkedinFill","MailFill","MedicineBoxFill","MediumCircleFill","MediumSquareFill","MehFill","MessageFill","MinusCircleFill","MinusSquareFill","MobileFill","MoneyCollectFill","PauseCircleFill","PayCircleFill","NotificationFill","PhoneFill","PictureFill","PieChartFill","PlayCircleFill","PlaySquareFill","PlusCircleFill","PlusSquareFill","PoundCircleFill","PrinterFill","ProfileFill","ProjectFill","PushpinFill","PropertySafetyFill","QqCircleFill","QqSquareFill","QuestionCircleFill","ReadFill","ReconciliationFill","RedEnvelopeFill","RedditCircleFill","RedditSquareFill","RestFill","RightCircleFill","RocketFill","RightSquareFill","SafetyCertificateFill","SaveFill","ScheduleFill","SecurityScanFill","SettingFill","ShopFill","ShoppingFill","SketchCircleFill","SketchSquareFill","SkinFill","SlackCircleFill","SlackSquareFill","SkypeFill","SlidersFill","SmileFill","SnippetsFill","SoundFill","StarFill","StepBackwardFill","StepForwardFill","StopFill","SwitcherFill","TabletFill","TagFill","TagsFill","TaobaoCircleFill","TaobaoSquareFill","ToolFill","ThunderboltFill","TrademarkCircleFill","TwitterCircleFill","TrophyFill","TwitterSquareFill","UnlockFill","UpCircleFill","UpSquareFill","UsbFill","WalletFill","VideoCameraFill","WarningFill","WeiboCircleFill","WechatFill","WindowsFill","YahooFill","WeiboSquareFill","YuqueFill","YoutubeFill","ZhihuSquareFill","ZhihuCircleFill","AccountBookOutline","AlertOutline","AlipayCircleOutline","AliwangwangOutline","AndroidOutline","ApiOutline","AppstoreOutline","AudioOutline","AppleOutline","BackwardOutline","BankOutline","BellOutline","BehanceSquareOutline","BookOutline","BoxPlotOutline","BulbOutline","BugOutline","CalculatorOutline","BuildOutline","CalendarOutline","CameraOutline","CarOutline","CaretDownOutline","CaretLeftOutline","CaretRightOutline","CarryOutOutline","CheckCircleOutline","CaretUpOutline","CheckSquareOutline","ChromeOutline","ClockCircleOutline","CloseCircleOutline","CloudOutline","CloseSquareOutline","CodeOutline","CodepenCircleOutline","CompassOutline","ContactsOutline","ContainerOutline","ControlOutline","CopyOutline","CreditCardOutline","CrownOutline","CustomerServiceOutline","DashboardOutline","DeleteOutline","DiffOutline","DatabaseOutline","DislikeOutline","DownCircleOutline","DownSquareOutline","DribbbleSquareOutline","EnvironmentOutline","EditOutline","ExclamationCircleOutline","ExperimentOutline","EyeInvisibleOutline","EyeOutline","FacebookOutline","FastBackwardOutline","FastForwardOutline","FileAddOutline","FileExcelOutline","FileExclamationOutline","FileImageOutline","FileMarkdownOutline","FilePptOutline","FileTextOutline","FilePdfOutline","FileZipOutline","FileOutline","FilterOutline","FileWordOutline","FireOutline","FileUnknownOutline","FlagOutline","FolderAddOutline","FolderOutline","FolderOpenOutline","ForwardOutline","FrownOutline","FundOutline","FunnelPlotOutline","GiftOutline","GithubOutline","GitlabOutline","HeartOutline","HddOutline","HighlightOutline","HomeOutline","HourglassOutline","Html5Outline","IdcardOutline","InfoCircleOutline","InstagramOutline","InsuranceOutline","InteractionOutline","InterationOutline","LayoutOutline","LeftCircleOutline","LeftSquareOutline","LikeOutline","LinkedinOutline","LockOutline","MedicineBoxOutline","MehOutline","MailOutline","MessageOutline","MinusCircleOutline","MinusSquareOutline","MobileOutline","MoneyCollectOutline","PauseCircleOutline","PayCircleOutline","NotificationOutline","PhoneOutline","PictureOutline","PieChartOutline","PlaySquareOutline","PlayCircleOutline","PlusCircleOutline","PrinterOutline","PlusSquareOutline","ProfileOutline","ProjectOutline","PushpinOutline","PropertySafetyOutline","QuestionCircleOutline","ReadOutline","ReconciliationOutline","RedEnvelopeOutline","RestOutline","RightCircleOutline","RocketOutline","RightSquareOutline","SafetyCertificateOutline","ScheduleOutline","SaveOutline","SecurityScanOutline","SettingOutline","ShoppingOutline","SkinOutline","SkypeOutline","SlackSquareOutline","SlidersOutline","SmileOutline","SnippetsOutline","SoundOutline","StarOutline","StepBackwardOutline","StepForwardOutline","StopOutline","SwitcherOutline","TagOutline","TabletOutline","ShopOutline","TagsOutline","TaobaoCircleOutline","ToolOutline","ThunderboltOutline","TrophyOutline","UnlockOutline","UpCircleOutline","UpSquareOutline","UsbOutline","VideoCameraOutline","WalletOutline","WarningOutline","WechatOutline","WeiboCircleOutline","WindowsOutline","YahooOutline","WeiboSquareOutline","YuqueOutline","YoutubeOutline","AlibabaOutline","AlignCenterOutline","AlignLeftOutline","AlignRightOutline","AlipayOutline","AliyunOutline","AmazonOutline","AntCloudOutline","ApartmentOutline","AntDesignOutline","AreaChartOutline","ArrowLeftOutline","ArrowDownOutline","ArrowUpOutline","ArrowsAltOutline","ArrowRightOutline","AuditOutline","BarChartOutline","BarcodeOutline","BarsOutline","BgColorsOutline","BehanceOutline","BlockOutline","BoldOutline","BorderBottomOutline","BorderLeftOutline","BorderOuterOutline","BorderInnerOutline","BorderRightOutline","BorderHorizontalOutline","BorderTopOutline","BorderVerticleOutline","BorderOutline","BranchesOutline","CheckOutline","CiOutline","CloseOutline","CloudDownloadOutline","CloudServerOutline","CloudSyncOutline","CloudUploadOutline","ClusterOutline","CodepenOutline","CodeSandboxOutline","ColumHeightOutline","ColumnWidthOutline","ColumnHeightOutline","CoffeeOutline","CopyrightOutline","DashOutline","DeploymentUnitOutline","DesktopOutline","DingdingOutline","DisconnectOutline","DollarOutline","DoubleRightOutline","DotChartOutline","DoubleLeftOutline","DownloadOutline","DribbbleOutline","DropboxOutline","EllipsisOutline","EnterOutline","EuroOutline","ExceptionOutline","ExclamationOutline","ExportOutline","FallOutline","FileDoneOutline","FileSyncOutline","FileProtectOutline","FileSearchOutline","FileJpgOutline","FontColorsOutline","FontSizeOutline","ForkOutline","FormOutline","FullscreenExitOutline","FullscreenOutline","GatewayOutline","DownOutline","DragOutline","GlobalOutline","GooglePlusOutline","GoogleOutline","HeatMapOutline","GoldOutline","HistoryOutline","IeOutline","InboxOutline","ImportOutline","InfoOutline","ItalicOutline","IssuesCloseOutline","KeyOutline","LaptopOutline","LeftOutline","LinkOutline","LineChartOutline","LineHeightOutline","LineOutline","Loading3QuartersOutline","LoadingOutline","LoginOutline","LogoutOutline","ManOutline","MediumOutline","MediumWorkmarkOutline","MenuUnfoldOutline","MenuFoldOutline","MenuOutline","MinusOutline","MonitorOutline","MoreOutline","OrderedListOutline","NumberOutline","PauseOutline","PercentageOutline","PaperClipOutline","PicCenterOutline","PicLeftOutline","PlusOutline","PicRightOutline","PoundOutline","PoweroffOutline","PullRequestOutline","QqOutline","QuestionOutline","RadarChartOutline","QrcodeOutline","RadiusBottomleftOutline","RadiusBottomrightOutline","RadiusUpleftOutline","RadiusUprightOutline","RadiusSettingOutline","RedditOutline","RedoOutline","ReloadOutline","RetweetOutline","RightOutline","RiseOutline","RollbackOutline","SafetyOutline","RobotOutline","SearchOutline","ScanOutline","ScissorOutline","SelectOutline","ShakeOutline","ShareAltOutline","ShoppingCartOutline","ShrinkOutline","SlackOutline","SmallDashOutline","SolutionOutline","SketchOutline","SortDescendingOutline","SortAscendingOutline","StockOutline","SwapLeftOutline","SwapRightOutline","StrikethroughOutline","SwapOutline","SyncOutline","TableOutline","TeamOutline","TaobaoOutline","ToTopOutline","TrademarkOutline","TransactionOutline","TwitterOutline","UnderlineOutline","UndoOutline","UnorderedListOutline","UpOutline","UploadOutline","UserAddOutline","UsergroupAddOutline","UserOutline","UserDeleteOutline","UsergroupDeleteOutline","VerticalAlignBottomOutline","VerticalAlignMiddleOutline","VerticalAlignTopOutline","VerticalRightOutline","VerticalLeftOutline","WifiOutline","ZhihuOutline","WeiboOutline","WomanOutline","ZoomInOutline","AccountBookTwoTone","ZoomOutOutline","AlertTwoTone","ApiTwoTone","AppstoreTwoTone","BankTwoTone","AudioTwoTone","BellTwoTone","BookTwoTone","BoxPlotTwoTone","BugTwoTone","BulbTwoTone","CalculatorTwoTone","BuildTwoTone","CalendarTwoTone","CameraTwoTone","CarTwoTone","CarryOutTwoTone","CheckCircleTwoTone","CheckSquareTwoTone","ClockCircleTwoTone","CloseCircleTwoTone","CloudTwoTone","CloseSquareTwoTone","CodeTwoTone","CompassTwoTone","ContactsTwoTone","ContainerTwoTone","ControlTwoTone","CopyTwoTone","CreditCardTwoTone","CrownTwoTone","CustomerServiceTwoTone","DashboardTwoTone","DeleteTwoTone","DiffTwoTone","DatabaseTwoTone","DislikeTwoTone","DownCircleTwoTone","DownSquareTwoTone","EnvironmentTwoTone","EditTwoTone","ExclamationCircleTwoTone","ExperimentTwoTone","EyeInvisibleTwoTone","EyeTwoTone","FileAddTwoTone","FileExclamationTwoTone","FileImageTwoTone","FileExcelTwoTone","FileMarkdownTwoTone","FilePdfTwoTone","FilePptTwoTone","FileTextTwoTone","FileUnknownTwoTone","FileZipTwoTone","FileWordTwoTone","FileTwoTone","FilterTwoTone","FireTwoTone","FolderAddTwoTone","FlagTwoTone","FolderTwoTone","FolderOpenTwoTone","FrownTwoTone","FundTwoTone","FunnelPlotTwoTone","GiftTwoTone","HddTwoTone","HeartTwoTone","HighlightTwoTone","HomeTwoTone","HourglassTwoTone","Html5TwoTone","IdcardTwoTone","InfoCircleTwoTone","InsuranceTwoTone","InteractionTwoTone","InterationTwoTone","LayoutTwoTone","LeftCircleTwoTone","LeftSquareTwoTone","LikeTwoTone","LockTwoTone","MailTwoTone","MedicineBoxTwoTone","MehTwoTone","MessageTwoTone","MinusCircleTwoTone","MinusSquareTwoTone","MobileTwoTone","PauseCircleTwoTone","MoneyCollectTwoTone","NotificationTwoTone","PhoneTwoTone","PictureTwoTone","PlayCircleTwoTone","PlaySquareTwoTone","PieChartTwoTone","PlusCircleTwoTone","PlusSquareTwoTone","PoundCircleTwoTone","PrinterTwoTone","ProfileTwoTone","ProjectTwoTone","PushpinTwoTone","PropertySafetyTwoTone","QuestionCircleTwoTone","ReconciliationTwoTone","RedEnvelopeTwoTone","RestTwoTone","RightCircleTwoTone","RocketTwoTone","RightSquareTwoTone","SafetyCertificateTwoTone","SaveTwoTone","ScheduleTwoTone","SecurityScanTwoTone","SettingTwoTone","ShopTwoTone","ShoppingTwoTone","SkinTwoTone","SlidersTwoTone","SmileTwoTone","SnippetsTwoTone","SoundTwoTone","StarTwoTone","StopTwoTone","SwitcherTwoTone","TabletTwoTone","TagTwoTone","TagsTwoTone","ToolTwoTone","TrademarkCircleTwoTone","UnlockTwoTone","TrophyTwoTone","UpCircleTwoTone","ThunderboltTwoTone","UpSquareTwoTone","UsbTwoTone","VideoCameraTwoTone","WalletTwoTone","WarningTwoTone","CiTwoTone","CopyrightTwoTone","DollarTwoTone","EuroTwoTone","GoldTwoTone","CanlendarTwoTone","returnFalse","returnTrue","EventBaseObject","timeStamp","Date","now","currentTarget","isEventObject","isDefaultPrevented","isPropagationStopped","isImmediatePropagationStopped","preventDefault","stopPropagation","stopImmediatePropagation","halt","immediate","_EventBaseObject2","_objectAssign2","TRUE","FALSE","commonProps","isNullOrUndefined","w","eventNormalizers","reg","fix","event","nativeEvent","which","charCode","keyCode","metaKey","ctrlKey","deltaX","deltaY","delta","wheelDelta","axis","wheelDeltaY","wheelDeltaX","detail","HORIZONTAL_AXIS","VERTICAL_AXIS","eventDoc","doc","body","button","pageX","clientX","ownerDocument","document","documentElement","scrollLeft","clientLeft","pageY","clientY","scrollTop","clientTop","relatedTarget","fromElement","toElement","retTrue","retFalse","DomEventObject","isNative","cancelBubble","defaultPrevented","getPreventDefault","returnValue","fixFns","l","prop","normalizer","match","srcElement","nodeType","parentNode","fixFn","EventBaseObjectProto","e","eventType","callback","option","wrapCallback","ne","_EventObject2","addEventListener","_ret","useCapture","capture","remove","removeEventListener","attachEvent","detachEvent","_EventObject","m","assign","source","hasOwnProperty","enquire","responsiveMap","responsiveArray","window","matchMedia","mediaQuery","media","matches","addListener","removeListener","xs","sm","md","lg","xl","xxl","subscribers","subUid","screens","_default","dispatch","pointMap","item","func","subscribe","register","token","toString","unsubscribe","unregister","screen","unmatch","destroy","tupleNum","tuple","_typeof","Symbol","iterator","_warning","resetWarned","cache","_getRequireWildcardCache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","_interopRequireWildcard","WeakMap","valid","component","_select","_radio","_configProvider","_slicedToArray","arr","_arrayWithHoles","_arr","_n","_d","_e","_s","next","done","err","_iterableToArrayLimit","o","minLen","_arrayLikeToArray","n","slice","from","test","_unsupportedIterableToArray","_nonIterableRest","len","arr2","_defineProperties","descriptor","_setPrototypeOf","p","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","_assertThisInitialized","Option","Header","protoProps","staticProps","_super","onYearChange","year","_this$props","validRange","clone","parseInt","_validRange","start","end","newYear","newMonth","month","onValueChange","onMonthChange","onInternalTypeChange","onTypeChange","getCalenderHeaderNode","calenderHeaderNode","getMonthYearSelections","getPrefixCls","_this$props2","customizePrefixCls","prefixCls","yearReactNode","getYearSelectElement","monthReactNode","getMonthSelectElement","current","localeData","months","monthsShort","getMonthsLocale","getTypeSwitch","_this$props3","_this$props3$locale","locale","size","fullscreen","createElement","Group","onChange","Button","headerRenderCustom","headerRender","_this$props4","renderHeader","_this$props5","typeSwitch","_this$getMonthYearSel","ref","_this$props6","yearSelectOffset","yearSelectTotal","_this$props6$locale","suffix","options","dropdownMatchSelectWidth","String","getPopupContainer","_this3","_this$props7","_validRange2","rangeStart","rangeEnd","currentYear","ConfigConsumer","defaultProps","PropTypes","moment","_FullCalendar","_reactLifecyclesCompat","_Header","_en_US","_LocaleReceiver","_interopDefault","noop","Calendar","onHeaderValueChange","setValue","onHeaderTypeChange","mode","onPanelChange","onSelect","way","prevValue","getDateRange","disabledDate","startDate","endDate","inRange","isBetween","getDefaultLocale","lang","monthCellRender","_this$props$monthCell","dateCellRender","_this$props$dateCellR","date","renderCalendar","localeCode","_assertThisInitialize3","dateFullCellRender","monthFullCellRender","cls","Select","showHeader","isMoment","Error","newState","componentName","defaultLocale","propTypes","bool","string","polyfill","Col","withConfigConsumer","config","SFC","configProps","basicPrefixCls","cons","ConfigContext","_createReactContext","_renderEmpty","suffixCls","renderEmpty","_context","configConsumerProps","_localeProvider","ConfigProvider","_this$props$prefixCls","renderProvider","legacyLocale","csp","autoInsertSpaceInButton","pageHeader","_ANT_MARK__","ANT_MARK","_","__","_empty","prefix","image","PRESENTED_IMAGE_SIMPLE","_en_US2","placeholder","rangePlaceholder","timePickerLocale","width","height","xmlns","fillRule","transform","fillOpacity","cx","cy","rx","ry","_classnames","_simple","__rest","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","defaultEmptyImg","simpleEmptyImg","Empty","_props$image","description","imageStyle","restProps","des","alt","imageNode","src","PRESENTED_IMAGE_DEFAULT","stroke","_RowContext","objectOrNumber","oneOfType","number","renderCol","_classNames","span","order","offset","pull","others","sizeClassObj","sizeProps","propSize","classes","_ref2","gutter","paddingLeft","paddingRight","paddingTop","paddingBottom","_row","_col","_type","_responsiveObserve","RowAligns","RowJustify","Row","renderRow","_a","justify","align","getGutter","rowStyle","marginLeft","marginRight","marginTop","marginBottom","otherProps","results","g","breakpoint","oneOf","array","scriptUrl","_options$extraCommonP","extraCommonProps","customCache","script","setAttribute","add","appendChild","Iconfont","content","xlinkHref","_index","Set","allIcons","_iconsReact","_IconFont","_utils","_twoTonePrimaryColor","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","setTwoToneColor","dangerousTheme","defaultTheme","spin","rotate","tabIndex","twoToneColor","classString","svgClassString","svgStyle","msTransform","innerSvgProps","svgBaseProps","iconTabIndex","Children","count","isValidElement","only","computedType","themeInName","getThemeFromTypeName","withThemeSuffix","removeTypeTheme","alias","renderInnerNode","createFromIconfontCN","getTwoToneColor","setTwoToneColors","getTwoToneColors","fillTester","outlineTester","twoToneTester","replace","newType","LocaleReceiver","antLocale","localeFromContext","exist","getLocale","getLocaleCode","_locale","setMomentLocale","LocaleProvider","changeConfirmLocale","Modal","prevProps","_en_US3","_en_US4","Pagination","DatePicker","TimePicker","global","Table","filterTitle","filterConfirm","filterReset","selectAll","selectInvert","sortTitle","expand","collapse","okText","cancelText","justOkText","Popconfirm","Transfer","titles","searchPlaceholder","itemUnit","itemsUnit","Upload","uploading","removeFile","uploadError","previewFile","downloadFile","Text","edit","copy","copied","PageHeader","back","newLocale","runtimeLocale","getConfirmLocale","_tooltip","Popover","saveTooltip","tooltip","renderPopover","title","overlay","getOverlay","getPopupDomNode","placement","transitionName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","_shallowequal","getCheckedValue","matched","radio","checked","RadioGroup","onRadioChange","ev","lastValue","renderGroup","_props$className","buttonStyle","groupPrefixCls","disabled","label","onMouseEnter","onMouseLeave","id","checkedValue","radioGroup","nextState","any","_group","_radioButton","_rcCheckbox","Radio","saveCheckbox","rcCheckbox","renderRadio","_assertThisInitialize","radioProps","wrapperClassString","nextContext","focus","blur","RadioButton","renderRadioButton","_rcSelect","_omit","_icon","SelectSizes","SelectPropTypes","notFoundContent","showSearch","optionLabelProp","choiceTransitionName","saveSelect","rcSelect","renderSelect","getContextPopupContainer","_a$className","removeIcon","clearIcon","menuItemSelectedIcon","showArrow","isCombobox","modeConfig","multiple","tags","combobox","finalRemoveIcon","cloneElement","finalClearIcon","finalMenuItemSelectedIcon","inputIcon","renderSuffixIcon","getNotFoundContent","SECRET_COMBOBOX_MODE_DO_NOT_USE","loading","suffixIcon","OptGroup","_rcTooltip","_placements","getDisabledCompatibleChildren","element","elementType","__ANT_BUTTON","__ANT_SWITCH","__ANT_CHECKBOX","_splitObject","picked","omitted","splitObject","spanStyle","display","cursor","block","pointerEvents","Tooltip","onVisibleChange","visible","isNoTitle","onPopupAlign","domNode","placements","getPlacements","points","rect","getBoundingClientRect","transformOrigin","top","left","renderTooltip","openClassName","getTooltipContainer","childProps","childCls","builtinPlacements","defaultVisible","arrowPointAtCenter","autoAdjustOverflow","verticalArrowShift","getOverflowOptions","_config$arrowWidth","arrowWidth","_config$horizontalArr","horizontalArrowShift","_config$verticalArrow","_config$autoAdjustOve","placementMap","right","bottom","topLeft","leftTop","topRight","rightTop","bottomRight","rightBottom","bottomLeft","leftBottom","overflow","targetOffset","ignoreShake","autoAdjustOverflowEnabled","adjustX","adjustY","autoAdjustOverflowDisabled","rawAsap","freeTasks","pendingErrors","requestErrorThrow","makeRequestCallFromTimer","shift","asap","task","rawTask","pop","RawTask","onerror","queue","requestFlush","flush","currentIndex","scan","newLength","scope","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","timeoutHandle","setTimeout","handleTimer","intervalHandle","setInterval","clearTimeout","clearInterval","toggle","observer","createTextNode","observe","characterData","data","makeRequestCallFromMutationObserver","_defineProperty2","defineProperties","_assign","_assign2","_setPrototypeOf2","_create2","_typeof3","_typeof2","_iterator2","_symbol2","$Object","P","D","it","isObject","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","O","core","version","__e","aFunction","fn","that","a","b","c","is","split","getKeys","gOPS","pIE","getSymbols","f","symbols","isEnum","ctx","hide","PROTOTYPE","$export","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","IS_BIND","B","IS_WRAP","W","expProto","C","Function","virtual","R","U","exec","__g","dP","createDesc","cof","arg","setToStringTag","IteratorPrototype","NAME","LIBRARY","redefine","Iterators","$iterCreate","ITERATOR","BUGGY","KEYS","VALUES","returnThis","Base","DEFAULT","IS_SET","FORCED","methods","getMethod","kind","proto","TAG","DEF_VALUES","VALUES_BUG","$native","$default","$entries","$anyNative","entries","values","META","setDesc","isExtensible","FREEZE","preventExtensions","setMeta","meta","KEY","NEED","fastKey","getWeak","onFreeze","DESCRIPTORS","toObject","IObject","$assign","A","K","k","join","T","aLen","j","anObject","dPs","enumBugKeys","IE_PROTO","createDict","iframeDocument","iframe","contentWindow","open","write","lt","close","Properties","IE8_DOM_DEFINE","toPrimitive","Attributes","gOPD","gOPN","windowNames","getOwnPropertyNames","getWindowNames","$keys","hiddenKeys","ObjectProto","arrayIndexOf","names","bitmap","check","buggy","def","stat","shared","uid","SHARED","store","copyright","toInteger","defined","TO_STRING","pos","charCodeAt","charAt","max","min","ceil","floor","isNaN","valueOf","px","random","wksExt","$Symbol","USE_SYMBOL","addToUnscopables","step","iterated","_t","_k","Arguments","$at","point","$fails","wks","wksDefine","enumKeys","_create","gOPNExt","$GOPD","$GOPS","$DP","$JSON","JSON","_stringify","stringify","HIDDEN","TO_PRIMITIVE","SymbolRegistry","AllSymbols","OPSymbols","USE_NATIVE","QObject","setter","findChild","setSymbolDesc","protoDesc","wrap","sym","isSymbol","$defineProperty","$defineProperties","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","$getOwnPropertySymbols","IS_OP","$set","es6Symbols","wellKnownSymbols","keyFor","useSetter","useSimple","FAILS_ON_PRIMITIVES","replacer","$replacer","TO_STRING_TAG","DOMIterables","Collection","hasOwn","classNames","argType","inner","re","ClassList","list","classList","removeMatching","splice","force","getAttribute","contains","redux_1","reducers_1","dragDrop_1","DragDropMonitorImpl_1","HandlerRegistryImpl_1","DragDropManagerImpl","createBackend","debugMode","isSetUp","handleRefCountChange","shouldSetUp","getState","refCount","backend","setup","teardown","reduxDevTools","__REDUX_DEVTOOLS_EXTENSION__","createStore","instanceId","makeStoreInstance","monitor","getContext","getMonitor","getBackend","getRegistry","registry","getActions","manager","actions","boundActions","actionCreator","action","matchesType_1","coords_1","dirtiness_1","invariant","DragDropMonitorImpl","subscribeToStateChange","listener","handlerIds","prevStateId","stateId","currentStateId","areDirty","dirtyHandlerIds","subscribeToOffsetChange","previousState","dragOffset","canDragSource","sourceId","getSource","isDragging","canDrag","canDropOnTarget","targetId","getTarget","didDrop","targetType","getTargetType","draggedItemType","getItemType","canDrop","isDraggingSource","isSourcePublic","getSourceType","isOverTarget","shallow","targetIds","getTargetIds","dragOperation","itemType","getItem","getSourceId","getDropResult","dropResult","getInitialClientOffset","initialClientOffset","getInitialSourceClientOffset","initialSourceClientOffset","getClientOffset","clientOffset","getSourceClientOffset","getDifferenceFromInitialOffset","registry_1","getNextUniqueId_1","interfaces_1","contracts_1","parseRoleFromHandlerId","handlerId","HandlerRole","SOURCE","TARGET","mapContainsValue","searchValue","isDone","HandlerRegistryImpl","types","Map","dragSources","dropTargets","pinnedSourceId","pinnedSource","addSource","validateType","validateSourceContract","addHandler","addTarget","validateTargetContract","containsHandler","includePinned","isSourceId","isTargetId","removeSource","delete","removeTarget","pinSource","unpinSource","role","getNextHandlerId","setClientOffset_1","discount_lodash_1","types_1","ResetCoordinatesAction","INIT_COORDS","payload","sourceClientOffset","sourceIds","publishSource","setClientOffset","sourceIds_1","verifyInvariants","getDraggableSource","verifyGetSourceClientOffsetIsFunction","beginDrag","verifyItemIsObject","BEGIN_DRAG","__assign","reverse","getDroppableTargets","drop","verifyDropResultType","determineDropResult","DROP","verifyIsDragging","endDrag","END_DRAG","targetIdsArg","verifyTargetIdsIsArray","lastIndexOf","checkInvariants","removeNonMatchingTargetIds","targetIds_1","hover","hoverAllTargets","HOVER","beginDrag_1","publishDragSource_1","hover_1","drop_1","endDrag_1","__export","publishDragSource","PUBLISH_DRAG_SOURCE","ADD_SOURCE","ADD_TARGET","REMOVE_SOURCE","REMOVE_TARGET","allowArray","DragDropManagerImpl_1","createDragDropManager","equality_1","NONE","ALL","_b","_c","prevTargetIds","xor","areArraysEqual","prevInnermostTargetId","innermostTargetId","initialState","areCoordsEqual","without","dragOffset_1","dragOperation_1","refCount_1","dirtyHandlerIds_1","stateId_1","subtract","__IS_NONE__","__IS_ALL__","dirtyIds","intersection","items","isString","input","itemsA","itemsB","insertItem","strictEquality","offsetA","offsetB","isEqual","nextUniqueId","some","_hasClass","baseVal","replaceClassName","origClass","classToRemove","RegExp","util","elem","container","getWindow","allowHorizontalScroll","onlyScrollIfNeeded","alignWithTop","alignWithLeft","offsetTop","offsetLeft","offsetBottom","offsetRight","isWin","isWindow","elemOffset","eh","outerHeight","ew","outerWidth","containerOffset","ch","cw","containerScroll","diffTop","diffBottom","win","winScroll","ww","wh","clientHeight","clientWidth","parseFloat","css","getScroll","ret","method","getScrollLeft","getScrollTop","getOffset","box","docElem","getClientPosition","defaultView","parentWindow","_RE_NUM_NO_PX","RE_POS","CURRENT_STYLE","RUNTIME_STYLE","LEFT","getComputedStyleX","each","isBorderBoxFn","getComputedStyle","computedStyle_","computedStyle","getPropertyValue","rsLeft","pixelLeft","BOX_MODELS","CONTENT_INDEX","PADDING_INDEX","BORDER_INDEX","getPBMWidth","cssProp","domUtils","getWH","extra","viewportWidth","viewportHeight","docWidth","docHeight","borderBoxValue","offsetWidth","offsetHeight","isBorderBox","cssBoxValue","Number","borderBoxValueOrIsBorderBox","padding","refWin","documentElementProp","compatMode","cssShow","position","visibility","getWHIgnoreDisplay","old","swap","first","toUpperCase","includeMargin","setOffset","scrollTo","QueryHandler","MediaQuery","query","isUnconditional","mql","assess","constuctor","qh","removeHandler","equals","Util","isFunction","MediaQueryDispatch","queries","browserIsIncapable","q","shouldDegrade","deferSetup","initialised","r","toStringTag","bind","deepValue","location","distance","threshold","maxPatternLength","u","caseSensitive","tokenSeparator","findAllMatches","minMatchCharLength","M","shouldSort","L","getFn","sortFn","score","tokenize","I","matchAllTokens","includeMatches","N","z","includeScore","verbose","isCaseSensitive","setCollection","_processKeys","_keyWeights","_keyNames","weight","limit","_log","_prepareSearchers","tokenSearchers","fullSearcher","_search","_computeScore","_sort","_format","_analyze","record","resultMap","arrayIndex","search","pattern","isMatch","matchedIndices","output","EPSILON","pow","sort","indices","log","toLowerCase","patternAlphabet","errors","currentLocation","expectedLocation","$","abs","isNum","reactIs","REACT_STATICS","contextType","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","KNOWN_STATICS","caller","callee","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","isMemo","ForwardRef","Memo","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","condition","format","argIndex","framesToPop","HASH_UNDEFINED","funcTag","genTag","reIsHostCtor","freeGlobal","freeSelf","root","arrayProto","funcProto","objectProto","coreJsData","maskSrcKey","funcToString","objectToString","reIsNative","getNative","nativeCreate","Hash","entry","ListCache","MapCache","assocIndexOf","other","baseIsNative","isHostObject","toSource","getMapData","__data__","isKeyable","memoize","resolver","memoized","Cache","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","nativeMax","nativeMin","debounce","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","remainingWait","debounced","isInvoking","leadingEdge","toNumber","cancel","isObjectLike","isBinary","storeShape","_propTypes","shape","_PropTypes","miniStore","mapStateToProps","shouldSubscribe","finnalMapStateToProps","defaultMapStateToProps","WrappedComponent","Connect","handleChange","subscribed","prevState","trySubscribe","tryUnsubscribe","_shallowequal2","wrappedInstance","getDisplayName","_hoistNonReactStatics2","listeners","partial","_Provider3","_connect3","_create3","hookCallback","hooks","setHookCallback","hasOwnProp","isObjectEmpty","isUndefined","isNumber","isDate","res","arrLen","extend","createUTC","strict","createLocalOrUTC","utc","defaultParsingFlags","empty","unusedTokens","unusedInput","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","meridiem","rfc2822","weekdayMismatch","getParsingFlags","_pf","isValid","flags","parsedParts","isNowValid","getTime","invalidWeekday","_strict","bigHour","isFrozen","_isValid","createInvalid","NaN","fun","momentProperties","updateInProgress","copyConfig","to","momentPropertiesLen","_isAMomentObject","_f","_l","_tzm","_isUTC","_offset","Moment","updateOffset","warn","msg","suppressDeprecationWarnings","deprecate","firstTime","deprecationHandler","argLen","stack","deprecations","deprecateSimple","_config","_dayOfMonthOrdinalParseLenient","_dayOfMonthOrdinalParse","_ordinalParse","mergeConfigs","parentConfig","childConfig","Locale","defaultCalendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","calendar","mom","_calendar","zeroFill","targetLength","forceSign","absNumber","zerosToFill","substr","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","padded","ordinal","removeFormattingTokens","makeFormatFunction","formatMoment","expandFormat","invalidDate","replaceLongDateFormatTokens","longDateFormat","lastIndex","defaultLongDateFormat","LTS","LT","LL","LLL","LLLL","_longDateFormat","formatUpper","tok","defaultInvalidDate","_invalidDate","defaultOrdinal","defaultDayOfMonthOrdinalParse","_ordinal","defaultRelativeTime","future","past","ss","mm","hh","dd","MM","yy","relativeTime","withoutSuffix","isFuture","_relativeTime","pastFuture","diff","aliases","dates","days","day","weekdays","weekday","isoweekdays","isoweekday","DDD","dayofyears","dayofyear","hours","hour","ms","milliseconds","millisecond","minutes","minute","Q","quarters","quarter","seconds","second","gg","weekyears","weekyear","GG","isoweekyears","isoweekyear","weeks","week","isoweeks","isoweek","years","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","priorities","isoWeekday","dayOfYear","weekYear","isoWeekYear","isoWeek","getPrioritizedUnits","unitsObj","unit","priority","regexes","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchTimestamp","matchWord","match1to2NoLeadingZero","match1to2HasZero","addRegexToken","regex","strictRegex","isStrict","getParseRegexForToken","unescapeFormat","regexEscape","p1","p2","p3","p4","absFloor","toInt","argumentForCoercion","coercedNumber","isFinite","tokens","addParseToken","tokenLen","addWeekParseToken","_w","addTimeToArrayFromToken","isLeapYear","YEAR","MONTH","DATE","HOUR","MINUTE","SECOND","MILLISECOND","WEEK","WEEKDAY","daysInYear","parseTwoDigitYear","getSetYear","makeGetSet","getIsLeapYear","keepTime","set$1","isUTC","getUTCMilliseconds","getMilliseconds","getUTCSeconds","getSeconds","getUTCMinutes","getMinutes","getUTCHours","getHours","getUTCDate","getDate","getUTCDay","getDay","getUTCMonth","getMonth","getUTCFullYear","getFullYear","setUTCMilliseconds","setMilliseconds","setUTCSeconds","setSeconds","setUTCMinutes","setMinutes","setUTCHours","setHours","setUTCDate","setDate","setUTCFullYear","setFullYear","stringGet","stringSet","prioritized","prioritizedLen","daysInMonth","modMonth","monthsShortRegex","monthsRegex","monthsParse","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","localeMonths","_months","isFormat","localeMonthsShort","_monthsShort","handleStrictParse","monthName","ii","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","localeMonthsParse","_monthsParseExact","setMonth","setUTCMonth","getSetMonth","getDaysInMonth","computeMonthsParse","_monthsShortStrictRegex","_monthsShortRegex","_monthsStrictRegex","_monthsRegex","cmpLenRev","shortP","longP","shortPieces","longPieces","mixedPieces","createDate","createUTCDate","UTC","firstWeekOffset","dow","doy","fwd","dayOfYearFromWeeks","resYear","resDayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","localeWeek","_week","defaultLocaleWeek","localeFirstDayOfWeek","localeFirstDayOfYear","getSetWeek","getSetISOWeek","parseWeekday","weekdaysParse","parseIsoWeekday","shiftWeekdays","ws","weekdaysMin","weekdaysShort","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","localeWeekdays","_weekdays","localeWeekdaysShort","_weekdaysShort","localeWeekdaysMin","_weekdaysMin","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","localeWeekdaysParse","_weekdaysParseExact","_fullWeekdaysParse","getSetDayOfWeek","getSetLocaleDayOfWeek","getSetISODayOfWeek","computeWeekdaysParse","_weekdaysStrictRegex","_weekdaysRegex","_weekdaysShortStrictRegex","_weekdaysShortRegex","_weekdaysMinStrictRegex","_weekdaysMinRegex","minp","shortp","longp","minPieces","hFormat","kFormat","lowercase","matchMeridiem","_meridiemParse","localeIsPM","kInput","_isPm","isPM","_meridiem","pos1","pos2","defaultLocaleMeridiemParse","getSetHour","localeMeridiem","isLower","globalLocale","baseConfig","dayOfMonthOrdinalParse","meridiemParse","locales","localeFamilies","commonPrefix","arr1","minl","normalizeLocale","chooseLocale","loadLocale","isLocaleNameSane","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","defineLocale","abbr","parentLocale","updateLocale","tmpLocale","listLocales","checkOverflow","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromISO","allowTime","dateFormat","timeFormat","tzFormat","isoDatesLen","isoTimesLen","configFromStringAndFormat","extractFromRFC2822Strings","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","untruncateYear","preprocessRFC2822","checkWeekday","weekdayStr","parsedInput","calculateOffset","obsOffset","militaryOffset","numOffset","hm","configFromRFC2822","parsedArray","configFromString","createFromInputFallback","defaults","currentDateArray","nowValue","_useUTC","configFromArray","currentDate","expectedWeekday","yearToUse","dayOfYearFromWeekInfo","_dayOfYear","_nextDay","temp","weekdayOverflow","curWeek","createLocal","ISO_8601","RFC_2822","skipped","stringLength","totalParsedInputLength","meridiemFixWrap","erasConvertYear","isPm","meridiemHour","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","configFromObject","dayOrDate","createFromConfig","prepareConfig","preparse","configFromInput","prototypeMin","prototypeMax","pickBy","moments","ordering","isDurationValid","unitHasDecimal","orderLen","isValid$1","createInvalid$1","createDuration","Duration","duration","_milliseconds","_days","_data","_bubble","isDuration","absRound","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","separator","utcOffset","sign","offsetFromString","chunkOffset","matcher","parts","cloneWithOffset","model","setTime","local","getDateOffset","getTimezoneOffset","getSetOffset","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","addSubtract","getSetZone","setOffsetToUTC","setOffsetToLocal","setOffsetToParsedOffset","tZone","hasAlignedHourOffset","isDaylightSavingTime","isDaylightSavingTimeShifted","_isDSTShifted","toArray","isLocal","isUtcOffset","isUtc","aspNetRegex","isoRegex","diffRes","parseIso","momentsDifference","inp","positiveMomentsDifference","base","isAfter","isBefore","createAdder","direction","period","tmp","isAdding","invalid","isMomentInput","isNumberOrStringArray","isMomentInputObject","property","objectTest","propertyTest","properties","propertyLen","arrayTest","dataTypeTest","isCalendarSpec","getCalendarFormat","myMoment","calendar$1","formats","sod","startOf","calendarFormat","localInput","endOf","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","asFloat","zoneDelta","monthDiff","wholeMonthDiff","anchor","toISOString","keepOffset","toDate","inspect","datetime","zone","inputString","defaultFormatUtc","defaultFormat","postformat","humanize","fromNow","toNow","newLocaleData","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","startOfDate","unix","toJSON","isValid$2","parsingFlags","invalidAt","creationData","localeEras","eras","_eras","since","until","localeErasParse","eraName","narrow","localeErasConvertYear","dir","getEraName","getEraNarrow","getEraAbbr","getEraYear","erasNameRegex","computeErasParse","_erasNameRegex","_erasRegex","erasAbbrRegex","_erasAbbrRegex","erasNarrowRegex","_erasNarrowRegex","matchEraAbbr","matchEraName","matchEraNarrow","matchEraYearOrdinal","_eraYearOrdinalRegex","erasName","erasAbbr","erasNarrow","abbrPieces","namePieces","narrowPieces","addWeekYearFormatToken","getter","getSetWeekYear","getSetWeekYearHelper","getSetISOWeekYear","getISOWeeksInYear","getISOWeeksInISOWeekYear","getWeeksInYear","weekInfo","getWeeksInWeekYear","weeksTarget","setWeekAll","dayOfYearData","getSetQuarter","erasParse","eraYearOrdinalParse","getSetDayOfMonth","getSetDayOfYear","getSetMinute","getSetMillisecond","getSetSecond","parseMs","getZoneAbbr","getZoneName","createUnix","createInZone","parseZone","preParsePostFormat","for","eraNarrow","eraAbbr","eraYear","isoWeeks","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","isDST","zoneAbbr","zoneName","isDSTShifted","proto$1","get$1","field","listMonthsImpl","listWeekdaysImpl","localeSorted","listMonths","listMonthsShort","listWeekdays","listWeekdaysShort","listWeekdaysMin","firstDayOfYear","firstDayOfWeek","langData","mathAbs","addSubtract$1","add$1","subtract$1","absCeil","bubble","monthsFromDays","monthsToDays","daysToMonths","as","makeAs","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","valueOf$1","clone$1","get$2","makeGetter","thresholds","substituteTimeAgo","relativeTime$1","posNegDuration","getSetRelativeTimeRounding","roundingFunction","getSetRelativeTimeThreshold","argWithSuffix","argThresholds","th","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","total","toFixed","proto$2","toIsoString","relativeTimeRounding","relativeTimeThreshold","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","TIME","TIME_SECONDS","TIME_MS","factory","addedNodes","removedNodes","previousSibling","nextSibling","attributeName","attributeNamespace","nodeValue","childNodes","H","attributes","namespaceURI","takeRecords","_period","cssText","propIsEnumerable","test1","test2","fromCharCode","test3","letter","shouldUseNative","fields","shallowCopy","isarray","pathToRegexp","parse","compile","str","tokensToFunction","tokensToRegExp","PATH_REGEXP","defaultDelimiter","delimiter","escaped","group","modifier","asterisk","repeat","optional","escapeGroup","escapeString","encodeURIComponentPretty","encodeURI","opts","encode","pretty","encodeURIComponent","segment","attachKeys","sensitive","route","endsWithDelimiter","groups","regexpToRegexp","arrayToRegexp","stringToRegexp","getNanoSeconds","hrtime","loadTime","moduleLoadTime","nodeLoadTime","upTime","performance","hr","uptime","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","propFullName","secret","getShim","ReactPropTypes","bigint","symbol","arrayOf","instanceOf","objectOf","exact","checkPropTypes","vendors","raf","caf","last","frameDuration","_now","cp","_loop","cancelled","handle","requestAnimationFrame","cancelAnimationFrame","isReactComponent","UNSAFE_componentWillReceiveProps","toArrayChildren","findChildInChildrenByKey","findShownChildInChildrenByKey","showProp","START_EVENT_NAME_MAP","transitionstart","transition","WebkitTransition","MozTransition","OTransition","msTransition","animationstart","animation","WebkitAnimation","MozAnimation","OAnimation","msAnimation","END_EVENT_NAME_MAP","transitionend","animationend","startEvents","endEvents","eventName","eventListener","EVENT_NAME_MAP","events","baseEventName","baseEvents","styleName","detectEvents","addStartEventListener","startEvent","removeStartEventListener","addEndEventListener","endEvent","removeEndEventListener","isCssAnimationSupported","Event","capitalPrefixes","prefixes","getStyleProperty","fixBrowserByTimeout","transitionDelay","transitionDuration","animationDelay","animationDuration","rcEndAnimTimeout","rcEndListener","clearBrowserBugTimeout","cssAnimation","endCallback","nameIsObj","activeClassName","active","nodeClasses","rcAnimTimeout","stop","setTransition","isAppearSupported","transitionAppear","appear","isEnterSupported","transitionEnter","enter","isLeaveSupported","transitionLeave","leave","allowAppearCallback","allowEnterCallback","allowLeaveCallback","transitionMap","AnimateChild","animUtil","animationType","finishCallback","ReactDOM","stopper","activeName","cssAnimate","defaultKey","getChildrenFromProps","Animate","_initialiseProps","currentlyAnimatingKeys","keysToEnter","keysToLeave","childrenRefs","performAppear","nextChildren","exclusive","currentChildren","newChildren","currentChild","nextChild","newChild","prev","nextChildrenPending","pendingChildren","mergeChildren","hasPrev","showInNext","hasNext","showInNow","performEnter","performLeave","_this4","stateChildren","passedProps","componentProps","isAnimate","onEnd","onEnter","onLeave","onAppear","_this5","componentWillEnter","handleDoneAdding","componentWillAppear","isValidChildByKey","componentWillLeave","handleDoneLeaving","c1","c2","same","child2","isSameChildren","unsafeLifecyclesPolyfill","_extends3","_classCallCheck3","_possibleConstructorReturn3","_inherits3","_DateTable2","_MonthTable2","_CalendarMixin","_CommonMixin","_CalendarHeader2","_moment2","FullCalendar","defaultType","selectedValue","defaultSelectedValue","getNowByCurrentStateValue","headerComponent","_state","header","TheHeader","setType","table","dateRender","contentRender","dateCellContentRender","cellRender","monthCellContentRender","onMonthSelect","renderRoot","calendarMixinPropTypes","propType","showTypeSwitch","headerComponents","calendarMixinDefaultProps","defaultProp","calendarMixinWrapper","commonMixinWrapper","DATE_ROW_COUNT","DATE_COL_COUNT","_classnames2","_DateConstants2","_util","isSameDay","one","two","beforeCurrentMonthYear","today","afterCurrentMonthYear","DateTBody","showWeekNumber","hoverValue","iIndex","jIndex","dateTable","getTodayTime","cellClass","weekNumberCellClass","dateClass","todayClass","selectedClass","selectedDateClass","selectedStartDateClass","selectedEndDateClass","inRangeClass","lastMonthDayClass","nextMonthDayClass","disabledClass","firstDisableClass","lastDisableClass","lastDayOfMonthClass","month1","lastMonthDiffDay","lastMonth1","passed","tableHtml","_cx","isCurrentWeek","weekNumberCell","isActiveWeek","dateCells","selected","isBeforeCurrentMonthYear","isAfterCurrentMonthYear","rangeValue","startValue","endValue","dateHtml","onDayHover","getTitleString","DateTHead","veryShortWeekdays","weekDays","showWeekNumberEl","dateColIndex","weekDaysEls","xindex","_DateTHead2","_DateTBody2","DateTable","cellSpacing","CalendarHeader","yearSelectElement","dropdownStyle","zIndex","dropdownMenuStyle","maxHeight","fontSize","monthSelectElement","getMonthName","overflowX","changeTypeToDate","changeTypeToMonth","_props2","yearSelect","monthSelect","switchCls","typeSwitcher","backToToday","ok","timeSelect","dateSelect","weekSelect","decadeSelect","yearFormat","dayFormat","dateTimeFormat","monthBeforeYear","previousMonth","nextMonth","previousYear","nextYear","previousDecade","nextDecade","previousCentury","nextCentury","onKeyDown","ComposeComponent","_class","_ComposeComponent","cause","setSelectedValue","newProps","_className","saveRoot","onBlur","originalValue","isAllowedDate","disabledTime","onOk","onClear","renderFooter","renderSidebar","getFormat","timePicker","focusElement","rootInstance","saveFocusElement","shouldComponentUpdate","MonthTable","setAndSelectValue","chooseMonth","rowIndex","colIndex","currentMonth","monthsEls","tds","monthData","_classNameMap","testValue","classNameMap","cellEl","currentValue","_currentValue","getTodayTimeStr","syncTime","getTimeConfig","isTimeValidByConfig","isTimeValid","formatDate","defaultDisabledTime","disabledHours","disabledMinutes","disabledSeconds","disabledTimeConfig","invalidTime","Checkbox","saveInput","defaultChecked","readOnly","onFocus","autoFocus","globalProps","items_per_page","jump_to","jump_to_confirm","page","prev_page","next_page","prev_5","next_5","prev_3","next_3","isSelectOptGroup","_toConsumableArray","propsValueType","basicType","labelInValueShape","labelInValue","isSelectOption","defaultActiveFirstOption","filterOption","allowClear","optionFilterProp","defaultOpen","onSearch","onPopupScroll","onInputKeyDown","onDeselect","maxTagTextLength","maxTagCount","maxTagPlaceholder","tokenSeparators","getInputElement","showAction","dropdownRender","KeyCode","MAC_ENTER","BACKSPACE","TAB","NUM_CENTER","ENTER","SHIFT","CTRL","ALT","PAUSE","CAPS_LOCK","ESC","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","UP","RIGHT","DOWN","PRINT_SCREEN","INSERT","DELETE","ZERO","ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE","QUESTION_MARK","J","V","X","Y","Z","WIN_KEY_RIGHT","CONTEXT_MENU","NUM_ZERO","NUM_ONE","NUM_TWO","NUM_THREE","NUM_FOUR","NUM_FIVE","NUM_SIX","NUM_SEVEN","NUM_EIGHT","NUM_NINE","NUM_MULTIPLY","NUM_PLUS","NUM_MINUS","NUM_PERIOD","NUM_DIVISION","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","NUMLOCK","SEMICOLON","DASH","EQUALS","COMMA","PERIOD","SLASH","APOSTROPHE","SINGLE_QUOTE","OPEN_SQUARE_BRACKET","BACKSLASH","CLOSE_SQUARE_BRACKET","WIN_KEY","MAC_FF_META","WIN_IME","isTextModifyingKeyEvent","altKey","isCharacterKey","navigator","userAgent","createChainedFunction","ownKeys","enumerableOnly","applePhone","appleIpod","appleTablet","androidPhone","androidTablet","amazonPhone","amazonTablet","windowsPhone","windowsTablet","otherBlackberry","otherBlackberry10","otherOpera","otherChrome","otherFirefox","isMobile","ua","apple","phone","ipod","tablet","device","amazon","android","windows","blackberry","blackberry10","opera","firefox","chrome","defaultResult","getOwnPropertyDescriptors","_objectSpread","getKeyFromChildrenIndex","menuEventKey","getMenuIdFromSubMenuEventKey","eventKey","loopMenuItem","cb","isMenuItemGroup","loopMenuItemRecursively","find","isSubMenu","isMenuItem","menuAllProps","getWidth","setStyle","styleProperty","MapShim","getIndex","class_1","__entries__","isBrowser","global$1","requestAnimationFrame$1","transitionKeys","mutationObserverSupported","ResizeObserverController","connected_","mutationEventsAdded_","mutationsObserver_","observers_","onTransitionEnd_","refresh","delay","leadingCall","trailingCall","resolvePending","proxy","timeoutCallback","throttle","addObserver","connect_","removeObserver","observers","disconnect_","updateObservers_","activeObservers","gatherActive","hasActive","broadcastActive","childList","subtree","disconnect","propertyName","getInstance","instance_","defineConfigurable","getWindowOf","emptyRect","createRectInit","toFloat","getBordersSize","styles","positions","getHTMLElementContentRect","paddings","positions_1","getPaddings","horizPad","vertPad","boxSizing","isDocumentElement","vertScrollbar","horizScrollbar","isSVGGraphicsElement","SVGGraphicsElement","SVGElement","getBBox","getContentRect","bbox","getSVGContentRect","ResizeObservation","broadcastWidth","broadcastHeight","contentRect_","isActive","broadcastRect","ResizeObserverEntry","rectInit","contentRect","Constr","DOMRectReadOnly","createReadOnlyRect","ResizeObserverSPI","controller","callbackCtx","activeObservations_","observations_","callback_","controller_","callbackCtx_","Element","observations","unobserve","clearActive","observation","ResizeObserver","canUseDOM","makePrefixMap","styleProp","vendorPrefixes","domSupport","getVendorPrefixes","prefixedEventNames","getVendorPrefixedEventName","prefixMap","stylePropList","animationEndName","transitionEndName","supportTransition","getTransitionName","transitionType","STATUS_NONE","STATUS_APPEAR","STATUS_ENTER","STATUS_LEAVE","MotionPropTypes","eventProps","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd","transitionSupport","forwardRef","isSupportTransition","CSSMotion","onDomUpdate","_this$state","status","newStatus","$ele","getElement","$cacheEle","updateStatus","updateActiveStatus","onMotionEnd","_this$state2","statusActive","setNodeRef","internalRef","HTMLElement","styleFunc","additionalState","statusStyle","_destroyed","nextStep","nextFrame","currentStatus","deadline","cancelNextFrame","prevStatus","guid","popupPlacementMap","horizontal","vertical","updateDefaultActiveFirst","defaultActiveFirst","menuId","SubMenu","onDestroy","menu","menuInstance","isOpen","onTitleClick","triggerOpenChange","handled","onOpenChange","onPopupVisibleChange","domEvent","parentMenu","subMenuInstance","onTitleMouseEnter","onItemHover","onTitleMouseLeave","triggerSubMenuAction","onSubMenuClick","info","addKeyPath","rootPrefixCls","getActiveClassName","getDisabledClassName","getSelectedClassName","getOpenClassName","saveMenuInstance","keyPath","openChange","mouseenterTimeout","isChildrenSelected","selectedKeys","openKeys","adjustWidth","subMenuTitle","popupMenu","minWidth","saveSubMenuTitle","isRootMenu","componentDidUpdate","manualRef","minWidthTimeout","baseProps","level","inlineIndent","motion","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","internalMenuId","itemIcon","expandIcon","haveRendered","haveOpened","mergedMotion","mergedClassName","SubPopupMenu","isInlineMode","mouseEvents","titleClickEvents","titleMouseEvents","ariaOwns","renderChildren","triggerNode","popupPlacement","popupAlign","popupOffset","popupClassName","Trigger","popupVisible","popup","forceRender","connected","connect","_ref3","activeKey","subMenuKey","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","MENUITEM_OVERFLOWED_CLASSNAME","DOMWrap","resizeObserver","mutationObserver","originalTotalWidth","overflowedItems","menuItemSizes","lastVisibleIndex","getMenuItemNodes","ul","getOverflowedSubMenuItem","keyPrefix","renderPlaceholder","overflowedIndicator","_copy$props","propStyle","setChildrenWidthAndResize","ulChildrenNodes","lastOverflowedIndicatorPlaceholder","menuItemNodes","overflowedIndicatorWidth","cur","handleResize","currentSumWidth","liWidth","menuUl","subTree","childNode","overflowed","Tag","updateActiveKey","getEventKey","getActiveKey","originalActiveKey","found","saveRef","instanceArray","getFlatInstanceArray","activeItem","selectInfo","activeIndex","every","ci","renderCommonMenuItem","extraProps","newChildProps","renderMenuItem","shallowEqual","domProps","warned","warning","getMotion","openAnimation","openTransitionName","Menu","selectable","_selectedKeys","selectedKey","innerMenu","getWrappedInstance","changed","processSingle","oneChanged","_selectedKeys2","getOpenTransitionName","animationName","setInnerMenu","defaultSelectedKeys","defaultOpenKeys","updateMiniStore","MenuItem","isSelected","saveNode","callRef","scrollIntoView","attribute","mouseEvent","MenuItemGroup","renderInnerMenuItem","titleClassName","listClassName","Divider","isFragment","toTitle","getValuePropValue","getPropValue","isMultipleOrTags","isMultipleOrTagsOrCombobox","isSingleMode","getMapKey","preventDefaultEvent","findIndexInValueBySingleValue","singleValue","getLabelFromPropsValue","getSelectKeys","menuItems","itemValue","itemKey","UNSELECTABLE_STYLE","userSelect","WebkitUserSelect","UNSELECTABLE_ATTRIBUTE","unselectable","findFirstMenuItem","defaultFilterFn","generateUUID","DropdownMenu","rafInstance","lastVisible","scrollActiveItemToView","itemComponent","findDOMNode","firstActiveItem","firstActiveValue","scrollIntoViewOpts","menuRef","renderMenu","onMenuSelect","inputValue","backfillValue","onMenuDeselect","menuProps","activeKeyProps","clonedMenuItems","foundFirst","lastInputValue","saveMenuRef","ariaId","onPopupFocus","onMouseDown","onScroll","onMenuDeSelect","BUILT_IN_PLACEMENTS","SelectTrigger","dropdownMenuRef","setDropdownWidth","cancelRafInstance","dropdownWidth","getInnerMenu","getPopupDOMNode","triggerRef","getDropdownElement","menuNode","saveDropdownMenuRef","getDropdownPrefixCls","getDropdownTransitionName","saveTriggerRef","_popupClassName","hideAction","dropdownAlign","dropdownClassName","dropdownPrefixCls","popupElement","popupStyle","widthProp","popupTransitionName","onDropdownVisibleChange","classnames","chaining","fns","inputRef","inputMirrorRef","topCtrlRef","selectTriggerRef","rootRef","selectionRef","dropdownContainer","blurTimer","focusTimer","comboboxTimer","_focused","_mouseDown","_options","onInputChange","separators","includesSeparators","nextValue","getValueByInput","fireChange","setOpenState","needFocus","setInputValue","clearBlurTime","timeoutFocus","updateFocusClassName","getInputDOMNode","isRealOpen","getRealOpenState","openIfHasChildren","handleBackfill","removeSelected","skipTrigger","fireSearch","fireSelect","autoClearSearchValue","menuItemDomNode","offsetParent","onArrowClick","onPlaceholderClick","onOuterFocus","inputNode","maybeFocus","onOuterBlur","firstOption","tmpValue","getVLForOnChange","onClearSelection","onChoiceAnimationLeave","forcePopupAlign","getOptionInfoBySingleValue","optionsInfo","defaultLabel","valueLabel","defaultValueLabel","getOptionBySingleValue","getOptionsBySingleValue","getValueByLabel","oldLable","getVLBySingleValue","getLabelBySingleValue","vlsS","vls","vl","getDropdownContainer","getPlaceholderElement","hidden","defaultInput","autoComplete","inputElement","inputCls","saveInputRef","saveInputMirrorRef","querySelector","getInputMirrorDOMNode","getPopupMenuComponent","hasNewValue","splitBySeparators","_open","markMouseDown","markMouseLeave","backfill","defaultFilter","filterFn","clearFocusTime","clearComboboxTime","activeElement","isChildDisabled","childrenToArray","renderFilterOptions","childrenKeys","renderFilterOptionsFromChildren","val1","val2","menuItem","unshift","sel","innerItems","subChild","childValueSub","_innerItems","childValue","isMultiple","validateOptionValue","renderTopControlNode","innerNode","showSelectedValue","opacity","_this$getOptionInfoBy3","maxTagPlaceholderEl","selectedValueNodes","limitedCountValue","omittedValues","choiceClassName","saveTopCtrlRef","getOptionsInfoFromProps","isDisabledExist","getValueFromProps","getInputValueForCombobox","skipBuildOptionsInfo","saveSelectTriggerRef","saveRootRef","saveSelectionRef","mirrorNode","removeChild","_this$props4$showArro","defaultIcon","_rootCls","_props$showArrow","ctrlNode","filterOptions","realOpen","dataOrAriaAttributeProps","extraSelectionProps","rootCls","onMouseUp","onMouseOut","renderClear","renderArrow","getOptionsFromChildren","useDefaultValue","getLabelFromOption","preState","oldOptionsInfo","Content","getPopupElement","arrowContent","saveTrigger","overlayClassName","afterVisibleChange","destroyTooltipOnHide","afterPopupVisibleChange","popupAnimation","defaultPopupVisible","destroyPopupOnHide","addEventListenerWrap","addDOMEventListener","ContainerRender","removeContainer","renderComponent","ready","getComponent","getContainer","parent","_component","autoMount","autoDestroy","Portal","createContainer","didUpdate","_container","forceUpdate","isPointsEq","a1","a2","isAlignPoint","vendorPrefix","jsCssMap","Webkit","Moz","getVendorPrefix","getTransformName","setTransitionProperty","transitionProperty","setTransform","matrix2d","matrix3d","forceRelayout","originalStyle","getDocument","getOffsetDirection","useCssRight","useCssBottom","oppositeOffsetDirection","setLeftTop","presetH","presetV","horizontalProperty","verticalProperty","oppositeHorizontalProperty","oppositeVerticalProperty","originalTransition","originalOffset","preset","_dir","_off","setTransform$1","originalXY","matrix","getTransformXY","resultXY","xy","match2d","setTransformXY","cs","getParent","host","ex","mix","utils","oriOffset","oLeft","oTop","tLeft","tTop","useCssTransform","getWindowScrollLeft","getWindowScrollTop","merge","getOffsetParent","positionStyle","nodeName","getParent$1","getVisibleRectForElement","alwaysByViewport","visibleRect","Infinity","originalPosition","scrollX","scrollY","documentWidth","scrollWidth","documentHeight","scrollHeight","bodyStyle","innerWidth","overflowY","innerHeight","isAncestorFixed","maxVisibleWidth","maxVisibleHeight","getRegion","getAlignOffset","region","getElFuturePos","elRegion","refNodeRegion","isFailX","elFuturePos","isFailY","flip","flipOffset","convertOffset","offsetLen","substring","normalizeOffset","doAlign","tgtRegion","isTgtRegionVisible","newOverflowCfg","fail","newElRegion","newPoints","newOffset","newTargetOffset","isCompleteFailX","_newPoints","_newOffset","_newTargetOffset","isCompleteFailY","isStillFailX","isStillFailY","_newPoints2","resizeWidth","resizeHeight","adjustForViewport","alignElement","refNode","isTargetNotOutOfVisible","targetRegion","isOutOfVisibleRect","__getOffsetParent","__getVisibleRectForElement","isSimilarValue","int1","int2","getPoint","Align","forceAlign","onAlign","tgtPoint","pointInView","_objectSpread2","alignPoint","restoreFocus","monitorWindowResize","startMonitorWindowResize","reAlign","sourceRect","lastElement","currentElement","lastPoint","currentPoint","preRect","stopMonitorWindowResize","resizeHandler","bufferMonitor","timer","bufferFn","buffer","monitorBufferTime","childrenProps","LazyRenderBox","hiddenClassName","PopupInner","onTouchStart","Popup","stretchChecked","targetWidth","targetHeight","savePopupRef","saveAlignRef","rootNode","setStretchSize","popupInstance","getMaskTransitionName","maskTransitionName","maskAnimation","getClassName","currentAlignClassName","getClassNameFromAlign","stretch","sizeStyle","minHeight","alignInstance","popupInnerProps","getZIndexStyle","getAlignTarget","xVisible","getMaskElement","maskElement","mask","maskTransition","getRootDomNode","popupDomNode","_state2","getTargetElement","ALL_HANDLERS","IS_REACT_16","createPortal","rcTrigger","onPopupMouseDown","prevPopupVisible","fireEvents","currentDocument","clickOutsideHandler","isClickToHide","isContextMenuToShow","onDocumentClick","touchOutsideHandler","contextMenuOutsideHandler1","onContextMenuClose","contextMenuOutsideHandler2","clearOutsideHandler","clearDelayTimer","mouseDownTimeout","getPopupAlign","placementStr","baseAlign","getAlignFromPlacement","setPopupVisible","setPoint","delaySetPopupVisible","delayS","delayTimer","createTwoChains","childPros","isClickToShow","_props3","isMouseEnterToShow","_props4","isMouseLeaveToHide","_props5","isFocusToShow","_props6","isBlurToHide","_props7","childCallback","_props8","onContextMenu","onMouseMove","childrenClassName","portal","handlePortalUpdate","getPopupClassNameFromAlign","focusDelay","blurDelay","maskClosable","onPopupMouseEnter","onPopupMouseLeave","focusTime","preClickTime","preTouchTime","preTime","nextVisible","_context$rcTrigger","hasPopupMouseDown","_props9","getAlignPopupClassName","_props10","mouseProps","savePopup","popupContainer","note","warningOnce","noteOnce","AddMore","clickAction","headerItem","schedulerData","eventItemHeight","textAlign","_col2","_row2","_icon2","_EventItem2","_DnDSource2","AddMorePopover","dndSource","eventItem","closeAction","localeMoment","addMorePopoverHeaderFormat","durationStart","durationEnd","eventList","DnDEventItem","getDragSource","evt","eventStart","eventEnd","isStart","isEnd","eventItemTop","eventItemLineHeight","leftIndex","isInPopover","rightIndex","subtitleGetter","moveEvent","eventItemClick","viewEventClick","viewEventText","viewEvent2Click","viewEvent2Text","eventItemTemplateResolver","_popover2","_EventItemPopover2","AgendaEventItem","roundCls","bgColor","defaultEventBgColor","titleText","behaviors","getEventTextFunc","startTime","endTime","statusColor","eventItemTemplate","maxWidth","agendaMaxEventWidth","backgroundColor","lineHeight","eventItemPopoverEnabled","_AgendaEventItem2","AgendaResourceEvents","resourceEvents","slotClickedFunc","slotItemTemplateResolver","getResourceTableWidth","headerItems","DATE_FORMAT","headerStart","headerEnd","slotName","slotItem","slotId","_AgendaResourceEvents2","AgendaView","renderData","agendaResourceTableWidth","tableHeaderHeight","getTableHeaderHeight","resourceEventsList","resourceName","isEventPerspective","taskName","agendaViewHeader","BodyView","headers","cellWidth","getContentCellWidth","tableRows","rowCells","nonWorkingTime","nonWorkingTimeBodyBgColor","groupOnly","groupOnlySlotColor","getNonAgendaViewBodyCellBgColorFunc","cellBgColor","rowHeight","Day","Hour","resources","parentId","resourceId","showPopover","resizable","movable","startResizable","endResizable","rrule","eventsForTaskView","groupId","groupName","eventsForCustomEventStyle","_reactDnd","_Util","_DnDTypes","DnDContext","sources","DecoratedComponent","getDropSpec","cellUnit","getPos","eventContainer","initialStartTime","initialEndTime","DnDTypes","EVENT","initialPoint","initialLeftIndex","CellUnits","DATETIME_FORMAT","initialStart","initialEnd","movingEvent","viewType","newStart","newEnd","relativeMove","ViewTypes","tmpMoment","crossResourceMove","_getEventSlotId","slot","getSlotById","_isResizing","getDropCollect","connectDropTarget","dropTarget","isOver","getDropTarget","DropTarget","sourceMap","getDndSource","dndType","DnDSource","resolveDragObjFunc","getDragSpec","newEvent","isEvent","hasConflict","checkConflict","eStart","eEnd","conflictOccurred","getDragCollect","connectDragSource","dragSource","connectDragPreview","dragPreview","DragSource","supportTouch","EventItem","startResizer","endResizer","np","subscribeResizeEvent","eventTitle","startResizeDiv","endResizeDiv","updateEventStart","updateEventEnd","initStartDrag","changedTouches","buttons","startX","_startResizing","doStartDrag","stopStartDrag","cancelStartDrag","onselectstart","ondragstart","newLeft","newWidth","_stopResizing","minuteStep","displayWeekend","tempCount","tempStart","dayOfWeek","_tempCount","_tempStart","_dayOfWeek","initEndDrag","endX","doEndDrag","stopEndDrag","cancelEndDrag","tempEnd","_tempCount2","_i2","_tempEnd","_dayOfWeek2","_col3","EventItemPopover","eventItemPopoverTemplateResolver","subtitleRow","subtitle","opsRow","clickable1","clickable2","col","eventItemPopoverDateFormat","HeaderView","nonAgendaCellHeaderTemplateResolver","headerHeight","minuteStepsInHour","getMinuteStepsInHour","headerList","nonWorkingTimeHeadColor","nonWorkingTimeHeadBgColor","pFormattedList","nonAgendaDayCellHeaderFormat","pList","nonAgendaOtherCellHeaderFormat","_AddMore2","_Summary2","_SelectedArea2","ResourceEvents","initDrag","isSelecting","doDrag","stopDrag","cancelDrag","currentX","onAddMoreClick","onSetAddMoreState","eventContainerRef","creatable","cellMaxEvents","getCellMaxEvents","rowWidth","getContentTableWidth","selectedArea","summary","isTop","summaryPos","SummaryPos","TopRight","Top","TopLeft","hasSummary","renderEventsMaxIndex","addMore","addMoreIndex","idx","dayStartFrom","dayStopTo","_left","_width","_left2","_width2","addMoreItem","_top","_left3","_width3","ResourceView","contentScrollbarHeight","toggleExpandFunc","resourceList","indents","indent","hasChildren","expanded","tdStyle","_rrule","_config2","_behaviors2","SchedulerData","Week","showAgenda","newConfig","newBehaviors","eventGroups","eventGroupsAutoGenerated","resizing","scrollToSpecialMoment","_validateMinuteStep","_resolveDate","_createHeaders","_createRenderData","_validateResource","setScrollToSpecialMoment","autoGenerated","_validateEventGroups","besidesWidth","resource","eventGroup","eventGroupId","_validateEvents","_generateEventGroups","recurringEventsEnabled","_handleRecurringEvents","scrollToSpecialMomentEnabled","Custom","Custom1","Custom2","Month","Quarter","Year","selectDate","newSchedulerMaxHeight","schedulerMaxHeight","schedulerWidth","endsWith","slotEntered","slotIndent","isExpanded","expandedMap","expandStatus","resourceTableWidth","getResourceTableConfigWidth","contentCellWidth","getContentCellConfigWidth","baseWidth","isSchedulerResponsive","resourceTableConfigWidth","getSchedulerWidth","isResourceViewResponsive","contentCellConfigWidth","isContentViewResponsive","slots","getSlots","weekMaxEvents","dayMaxEvents","monthMaxEvents","yearMaxEvents","quarterMaxEvents","customMaxEvents","dateLabel","getDateLabelFunc","_attachEvent","_detachEvent","newSlotId","newSlotName","windowStart","windowEnd","eventId","weekResourceTableWidth","dayResourceTableWidth","monthResourceTableWidth","yearResourceTableWidth","quarterResourceTableWidth","customResourceTableWidth","weekCellWidth","dayCellWidth","monthCellWidth","yearCellWidth","quarterCellWidth","customCellWidth","recurringEvents","oldStart","oldEnd","rule","rrulestr","oldDtstart","origOptions","dtstart","exdates","exrule","rruleSet","RRuleSet","exdate","all","recurringEventId","recurringEventStart","recurringEventEnd","isEventInTimeWindow","num","getCustomDateFunc","customDate","minuteSteps","isNonWorkingTimeFunc","_time","_nonWorkingTime","_getEventGroupId","_getEventGroupName","slotTree","slotMap","headerEvents","_createInitHeaderEvents","slotRenderData","rowMaxCount","nonAgendaSlotMinHeight","parentValue","slotStack","initRenderData","currentNode","defaultExpanded","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","spanStart","spanEnd","return","event1","event2","start1","start2","end1","end2","_createInitRenderData","cellMaxEventsCount","_getSpan","newRowHeight","previousHeader","previousHeaderStart","_createHeaderEvent","getSummaryFunc","renderItemsCount","text","SelectedArea","selectedAreaColor","Summary","summaryColor","BottomRight","BottomLeft","Bottom","isNonWorkingTime","getScrollSpecialMoment","getEventText","getDateLabel","getNonAgendaViewBodyCellBgColor","getCustomDate","getSummary","monday","firstDayOfMonth","eventText","startMoment","endMoment","getScrollSpecialMomentFunc","_ViewTypes2","_SummaryPos2","calendarPopoverEnabled","headerEnabled","views","viewName","DemoData","_radio2","_calendar2","_DnDContext2","_ResourceView2","_HeaderView2","_BodyView2","_ResourceEvents2","_AgendaView2","_AddMorePopover2","_CellUnits2","_SchedulerData2","_DemoData2","Scheduler","dndSources","dndContext","currentArea","_setDocumentWidth","contentHeight","getSchedulerContentDesiredHeight","contentScrollbarWidth","resourceScrollbarHeight","resourceScrollbarWidth","onresize","onWindowResize","resolveScrollbarSize","getScrollToSpecialMoment","schedulerContent","specialMoment","leftCustomHeader","rightCustomHeader","radioButtonList","margin","tbodyContent","schedulerContainerWidth","DndResourceEvents","eventDndSource","resourcePaddingBottom","schedulerContentStyle","resourceContentStyle","verticalAlign","borderBottom","schedulerResourceRef","onMouseOver","onSchedulerResourceMouseOver","onSchedulerResourceMouseOut","onSchedulerResourceScroll","schedulerHeadRef","onSchedulerHeadMouseOver","onSchedulerHeadMouseOut","onSchedulerHeadScroll","schedulerContentRef","onSchedulerContentMouseOver","onSchedulerContentMouseOut","onSchedulerContentScroll","schedulerContentBgTableRef","popover","schedulerHeader","goBack","handleVisibleChange","goNext","onViewChange","colSpan","prevClick","nextClick","onSelectDate","onScrollLeft","onScrollRight","onScrollTop","onScrollBottom","schedulerResource","schedulerContentBgTable","tmpState","needSet","schedulerHead","isFirefox","isSafari","safari","EnterLeaveCounter","isNodeInDocument","entered","enteringNode","previousLength","union","leavingNode","reset","EnterLeaveCounter_1","BrowserDetector_1","OffsetUtils_1","NativeDragSources_1","NativeTypes","HTML5Backend","sourcePreviewNodes","sourcePreviewNodeOptions","sourceNodes","sourceNodeOptions","dragStartSourceIds","dropTargetIds","dragEnterTargetIds","currentNativeSource","currentNativeHandle","currentDragSourceNode","altKeyPressed","mouseMoveTimeoutTimer","asyncEndDragFrameId","dragOverTargetIds","getNodeClientOffset","endDragNativeItem","isDraggingNativeItem","endDragIfSourceWasRemovedFromDOM","clearCurrentDragSourceNode","handleTopDragStartCapture","handleTopDragStart","getEventClientOffset","dataTransfer","nativeType","matchNativeItemType","setDragImage","sourceNode","getCurrentSourcePreviewNodeOptions","anchorPoint","anchorX","anchorY","offsetPoint","offsetX","offsetY","dragPreviewOffset","getDragPreviewOffset","setData","setCurrentDragSourceNode","captureDraggingState","beginDragNativeItem","hasAttribute","handleTopDragEndCapture","handleTopDragEnterCapture","enterLeaveCounter","handleTopDragEnter","dropEffect","getCurrentDropEffect","handleTopDragOverCapture","handleTopDragOver","handleTopDragLeaveCapture","handleTopDropCapture","mutateItemByReadingDataTransfer","handleTopDrop","handleSelectStart","dragDrop","tagName","isContentEditable","__isReactDndBackendSetUp","addEventListeners","removeEventListeners","handleDragStart","handleDragEnter","handleDragOver","handleDrop","getCurrentSourceNodeOptions","createNativeDragSource","MonotonicInterpolant","ys","indexes","dx","dy","dys","dxs","c1s","m2","mNext","dxNext","common","c2s","c3s","invDx","interpolate","mid","low","high","xHere","diffSq","NativeDragSource","exposeProperties","newProperties","matchesTypes","getDataFromDataTransfer","typesToTry","resultSoFar","typeToTry","getData","nativeTypesConfig_1","NativeDragSource_1","nativeTypesConfig","dataTransferTypes","nativeItemType","getDataFromDataTransfer_1","FILE","files","URL","urls","TEXT","MonotonicInterpolant_1","ELEMENT_NODE","parentElement","isImage","dragPreviewNodeOffsetFromClient","offsetFromDragPreview","sourceWidth","sourceHeight","dragPreviewWidth","dragPreviewHeight","devicePixelRatio","getDragPreviewSize","isManualOffsetY","calculateYOffset","emptyImage","Image","HTML5Backend_1","__extends","extendStatics","dnd_core_1","checkDecoratorArguments_1","isRefable_1","hoistStatics","createChildContext","dragDropManager","DragDropContextProvider","contextValue","DragDropContext","backendFactory","backendContext","childContext","Decorated","DragDropContextContainer","createRef","getManager","getDecoratedComponentInstance","isRefable","DragDropContext_1","collect","isPlainObject","arePropsEqual","DragLayerContainer","isCurrentlyMounted","getCurrentState","unsubscribeFromOffsetChange","unsubscribeFromStateChange","receiveDragDropManager","DragPreviewImage","memo","img_1","onload","decorateHandler_1","registerSource_1","createSourceFactory_1","DragSourceMonitorImpl_1","SourceConnector_1","isValidType_1","spec","getType","createSource","containerDisplayName","createHandler","registerHandler","createConnector","createMonitor","isCallingCanDrag","isCallingIsDragging","DragSourceMonitorImpl","internalMonitor","receiveHandlerId","getHandlerId","registerTarget_1","createTargetFactory_1","DropTargetMonitorImpl_1","TargetConnector_1","createTarget","isCallingCanDrop","DropTargetMonitorImpl","wrapConnectorHooks_1","isRef_1","SourceConnector","dragSourceOptions","isRef","dragSourceRef","dragSourceNode","reconnectDragSource","dragPreviewOptions","dragPreviewRef","dragPreviewNode","reconnectDragPreview","dragSourceOptionsInternal","dragPreviewOptionsInternal","lastConnectedHandlerId","lastConnectedDragSource","lastConnectedDragSourceOptions","lastConnectedDragPreview","lastConnectedDragPreviewOptions","newHandlerId","reconnect","didChange","didHandlerIdChange","didConnectedDragSourceChange","didDragSourceOptionsChange","disconnectDragSource","dragSourceUnsubscribe","didConnectedDragPreviewChange","didDragPreviewOptionsChange","disconnectDragPreview","dragPreviewUnsubscribe","TargetConnector","dropTargetOptions","dropTargetRef","dropTargetNode","dropTargetOptionsInternal","lastConnectedDropTarget","lastConnectedDropTargetOptions","didDropTargetChange","didOptionsChange","disconnectDropTarget","unsubscribeDropTarget","getDecoratedComponent_1","ALLOWED_SPEC_METHODS","REQUIRED_SPEC_METHODS","SourceImpl","receiveProps","globalMonitor","getDecoratedComponent","TargetImpl","receiveMonitor","disposables_1","DragDropContainer","decoratedRef","disposable","SerialDisposable","dispose","currentType","receiveType","handlerMonitor","handlerConnector","setDisposable","CompositeDisposable","Disposable","react_1","useDragDropManager_1","useDragSourceMonitor","useDragDropManager","useMemo","useDragHandler","connector","begin","beginResult","useEffect","useDropTargetMonitor","useDropHandler","accept","useCollector","useState","collected","setCollected","updateCollected","useCallback","useContext","useCollector_1","useMonitorOutput","onCollect","useMonitorOutput_1","drag_1","useDrag","specRef","useRef","previewOptions","useDragLayer","useDrop","DragDropContextConsumer","DragLayer_1","DragLayer","DragSource_1","DropTarget_1","DragPreviewImage_1","hooks_1","functionName","signature","setRef","newRef","previousRef","disposables","isDisposed","shouldDispose","currentDisposables","isDisposable","_fixup","getDisposable","instanceRef","currentRef","isRefForwardingComponent","$$typeof","isValidType","thisLen","cloneWithRef_1","wrapHookToRecognizeElement","hook","elementOrNode","throwIfCompositeComponentElement","wrappedHooks","wrappedHook_1","aa","ba","onError","da","ea","fa","ha","ia","ja","la","ma","na","oa","ka","pa","qa","ra","sa","extractEvents","eventTypes","ta","phasedRegistrationNames","registrationName","va","wa","dependencies","xa","ya","za","Aa","Ba","Ca","stateNode","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ka","La","Ma","Na","Oa","Pa","Qa","acceptsBooleans","mustUseProperty","sanitizeURL","Ua","Va","Wa","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","Xa","Sa","Ta","Ra","removeAttribute","setAttributeNS","ReactCurrentDispatcher","ReactCurrentBatchConfig","suspense","Ya","Za","$a","ab","bb","db","eb","fb","gb","hb","ib","jb","kb","lb","mb","nb","pb","_status","_result","qb","_debugOwner","_debugSource","fileName","lineNumber","rb","sb","xb","_valueTracker","stopTracking","tb","yb","zb","_wrapperState","initialChecked","Ab","initialValue","controlled","Bb","Cb","Db","Eb","Gb","Fb","Hb","defaultSelected","Ib","dangerouslySetInnerHTML","Jb","Kb","Lb","textContent","Mb","Nb","Ob","Pb","Qb","innerHTML","firstChild","MSApp","execUnsafeLocalFunction","Rb","lastChild","Sb","Tb","animationiteration","Ub","Vb","Wb","Xb","Yb","Zb","$b","ac","bc","cc","dc","alternate","effectTag","ec","memoizedState","dehydrated","fc","hc","sibling","gc","ic","jc","kc","lc","_dispatchListeners","_dispatchInstances","isPersistent","release","mc","nc","correspondingUseElement","oc","pc","qc","topLevelType","targetInst","ancestors","rc","eventSystemFlags","sc","containerInfo","tc","uc","vc","wc","xc","yc","zc","Ac","Bc","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Kc","blockedOn","Lc","pointerId","Mc","Nc","Pc","unstable_runWithPriority","hydrate","Qc","Rc","Sc","Tc","Uc","unstable_scheduleCallback","unstable_NormalPriority","Vc","Wc","Yc","Zc","$c","ad","bubbled","captured","eventPriority","bd","cd","unstable_UserBlockingPriority","ed","fd","gd","hd","Oc","jd","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","orphans","tabSize","widows","zoom","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","kd","ld","trim","setProperty","nd","menuitem","area","br","embed","img","keygen","link","param","track","wbr","od","pd","qd","rd","sd","td","ud","vd","wd","compareDocumentPosition","xd","HTMLIFrameElement","href","yd","contentEditable","zd","Ad","Bd","Cd","Dd","Ed","Fd","Gd","__html","Hd","Id","Jd","Kd","Ld","Md","Nd","Od","Pd","Qd","Rd","Sd","Td","dispatchConfig","Ud","_targetInst","Vd","Wd","Xd","Yd","Zd","$d","ae","be","ce","Interface","ee","eventPool","fe","destructor","de","getPooled","persist","eventPhase","bubbles","cancelable","isTrusted","ge","he","ie","je","ke","documentMode","le","me","oe","beforeInput","compositionEnd","compositionStart","compositionUpdate","pe","qe","se","ve","te","char","ue","we","email","password","range","tel","url","xe","ye","change","ze","Ae","Be","Ce","De","Ee","Fe","Ge","He","Ie","Je","Ke","Le","Me","_isInputEventSupported","Ne","view","Oe","Alt","Control","Meta","Shift","Pe","getModifierState","Qe","Re","Se","Te","Ue","Ve","screenX","screenY","shiftKey","movementX","movementY","We","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Xe","mouseEnter","mouseLeave","pointerEnter","pointerLeave","Ye","$e","af","bf","cf","df","select","ef","ff","gf","hf","jf","selectionStart","selectionEnd","anchorNode","getSelection","anchorOffset","focusNode","focusOffset","kf","lf","elapsedTime","pseudoElement","mf","clipboardData","nf","of","pf","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Apps","Scroll","MozPrintableKey","qf","rf","sf","tf","touches","targetTouches","uf","vf","deltaZ","deltaMode","wf","SimpleEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin","yf","zf","Af","Bf","Cf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Df","Ef","Ff","Gf","__reactInternalMemoizedMergedChildContext","Hf","If","Jf","Kf","unstable_cancelCallback","Lf","unstable_requestPaint","Mf","unstable_now","Nf","unstable_getCurrentPriorityLevel","Of","unstable_ImmediatePriority","Pf","Qf","Rf","unstable_LowPriority","Sf","unstable_IdlePriority","Tf","Uf","unstable_shouldYield","Vf","Wf","Xf","Yf","Zf","$f","ag","bg","cg","dg","eg","fg","hg","ig","jg","kg","mg","ng","og","pg","childExpirationTime","qg","firstContext","expirationTime","rg","sg","responders","tg","ug","updateQueue","baseState","baseQueue","pending","effects","vg","wg","suspenseConfig","xg","yg","zg","ca","Ag","Bg","Cg","Dg","Eg","refs","Fg","Jg","isMounted","_reactInternalFiber","enqueueSetState","Gg","Hg","Ig","enqueueReplaceState","enqueueForceUpdate","Kg","isPureReactComponent","Lg","updater","Mg","Ng","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","Og","Pg","_owner","_stringRef","Qg","Rg","lastEffect","nextEffect","firstEffect","Sg","Tg","Ug","implementation","Vg","Wg","Xg","Yg","Zg","$g","ah","bh","dh","fh","gh","memoizedProps","revealOrder","ih","responder","jh","kh","lh","mh","nh","oh","ph","rh","sh","uh","vh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","xh","yh","zh","Ah","deps","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","readContext","useImperativeHandle","useLayoutEffect","useReducer","useDebugValue","useResponder","useDeferredValue","useTransition","Oh","Ph","Qh","Rh","Sh","Th","pendingProps","Uh","Vh","Wh","Xh","Yh","ReactCurrentOwner","Zh","$h","ai","bi","di","ei","fi","UNSAFE_componentWillUpdate","componentWillUpdate","gi","hi","pendingContext","ni","oi","pi","qi","retryTime","ji","fallback","unstable_avoidThisFallback","ki","li","isBackwards","rendering","renderingStartTime","tail","tailExpiration","tailMode","mi","ri","si","wasMultiple","onclick","createElementNS","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","WeakSet","Ci","Fi","Ei","Gi","__reactInternalSnapshotBeforeUpdate","Hi","Ii","Ji","Ki","Li","Di","Mi","Ni","Oi","Pi","Qi","Ri","insertBefore","_reactRootContainer","Si","Ti","Ui","Vi","then","Wi","Xi","Yi","Zi","$i","componentDidCatch","aj","componentStack","Rj","bj","cj","dj","ej","fj","gj","hj","ij","jj","kj","lj","mj","nj","oj","pj","qj","rj","sj","tj","uj","vj","wj","timeoutMs","xj","yj","zj","lastExpiredTime","Aj","firstPendingTime","lastPingedTime","nextKnownPendingLevel","callbackExpirationTime","callbackPriority","callbackNode","Bj","timeout","Cj","Dj","Ej","Fj","Gj","Hj","finishedWork","finishedExpirationTime","lastSuspendedTime","Ij","Jj","busyMinDurationMs","busyDelayMs","Kj","Mj","Nj","pingCache","Oj","ub","Pj","Xc","Qj","Sj","firstSuspendedTime","rangeCount","wb","activeElementDetached","focusedElem","selectionRange","Tj","createRange","setStart","removeAllRanges","addRange","setEnd","vb","Uj","Vj","Wj","_ctor","ob","Xj","_calculateChangedBits","unstable_observedBits","Zj","ak","bk","ck","dk","ek","fk","Jc","_internalRoot","gk","ik","hk","kk","jk","unmount","querySelectorAll","form","Lj","lk","Events","findFiberByHostInstance","__REACT_DEVTOOLS_GLOBAL_HOOK__","isDisabled","supportsFiber","inject","onCommitFiberRoot","onCommitFiberUnmount","Yj","overrideHookState","overrideProps","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","bundleType","rendererPackageName","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","checkDCE","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Fragment","Lazy","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","__reactInternalSnapshotFlag","__reactInternalSnapshot","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","newApiName","maybeSnapshot","snapshot","__suppressDeprecationWarning","_scrollLink2","ButtonElement","_scrollElement2","ElementWrapper","parentBindings","LinkElement","_Link2","_Button2","_Element2","_scroller2","_scrollEvents2","_scrollSpy2","_animateScroll2","_Helpers2","scrollSpy","defaultScroller","scrollHash","protoTypes","containerId","activeClass","spy","smooth","isDynamic","absolute","onSetActive","onSetInactive","ignoreCancelEvents","hashSpy","spyThrottle","Helpers","customScroller","scroller","getElementById","scrollSpyContainer","getScrollSpyContainer","mount","mapContainer","addStateHandler","stateHandler","addSpyHandler","spyHandler","handleClick","getActiveLink","isInitialized","elemTopBound","elemBottomBound","containerTop","cords","isInside","isOutside","activeLink","setActiveLink","getHash","changeHash","updateStates","_React$Component2","childBindings","registerElems","_smooth2","_cancelEvents2","getAnimationType","defaultEasing","requestAnimationFrameHelper","webkitRequestAnimationFrame","currentWindowProperties","currentPositionX","containerElement","supportPageOffset","pageXOffset","isCSS1Compat","currentPositionY","pageYOffset","animateScroll","easing","timestamp","targetPosition","startPosition","progress","percent","currentPosition","easedAnimate","registered","setContainer","animateTopScroll","scrollOffset","delayTimeout","proceedOptions","scrollToTop","scrollToBottom","html","scrollContainerWidth","scrollContainerHeight","toPosition","scrollMore","_passiveEventListeners","cancelEvent","addPassiveEventListener","listenerName","attachedListeners","supportsPassiveOption","passive","removePassiveEventListener","scrollEvent","evtName","_utils2","mountFlag","initialized","containers","handleHashChange","initStateFromHash","hash","isInit","saveHashHistory","updateHash","_scrollHash2","activeStyle","Link","_React$PureComponent","PureComponent","elemLeftBound","elemRightBound","containerLeft","_cords","_props$saveHashHistor","_props$saveHashHistor2","_saveHashHistory","_lodash","_lodash2","spyCallbacks","spySetState","scrollSpyContainers","eventHandler","throttleAmount","eventThrottler","scrollHandler","update","__mapped","__activeLink","getElementsByName","getElementsByClassName","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","getElementOffsetInfoUntil","predicate","currentOffsetParent","historyUpdate","hashVal","hashToUpdate","curLoc","urlToPush","pathname","history","pushState","replaceState","filterElementInContainer","_getElementOffsetInfo","isDocument","PrintContextConsumer","PrintContext","ReactToPrint","__spreadArray","__read","startPrint","onAfterPrint","onPrintError","print","documentTitle","handleRemoveIframe","catch","logMessages","contentDocument","triggerPrint","onBeforePrint","handlePrint","bodyClass","copyStyles","fonts","pageStyle","nonce","srcdoc","cloneNode","numResourcesToLoad","resourcesLoaded","resourcesErrored","includes","FontFace","family","loaded","head","drawImage","preload","readyState","onloadeddata","onstalled","sheet","cssRules","removeAfterPrint","suppressErrors","debug","onBeforeGetContent","useReactToPrint","wrapCallbackWithArgs","__addDisposableResource","__asyncDelegator","__asyncGenerator","__asyncValues","__await","__awaiter","__classPrivateFieldGet","__classPrivateFieldIn","__classPrivateFieldSet","__createBinding","__decorate","__disposeResources","__esDecorate","__exportStar","__generator","__importStar","__makeTemplateObject","__metadata","__param","__propKey","__runInitializers","__setFunctionName","__spread","__spreadArrays","__values","decorate","static","access","addInitializer","init","metadata","Promise","throw","sent","trys","ops","asyncIterator","resolve","raw","asyncDispose","async","SuppressedError","suppressed","hasError","_addClass","_removeClass","_Transition","addClass","removeClass","CSSTransition","appearing","getClassNames","removeClasses","onEntering","reflowAndAddClass","onEntered","appearClassName","doneClassName","enterClassName","onExit","onExiting","onExited","isStringClassNames","_proto","_this$getClassNames6","_reactDom","_TransitionGroup","ReplaceTransition","_args","handleEnter","handleLifecycle","handleEntering","_len3","_key3","handleEntered","_len4","_key4","handleExit","_len5","_key5","handleExiting","_len6","_key6","handleExited","_len7","_key7","originalArgs","_child$props","inProp","in","_React$Children$toArr","EXITING","ENTERED","ENTERING","EXITED","UNMOUNTED","_TransitionGroupContext","Transition","initialStatus","isMounting","appearStatus","unmountOnExit","mountOnEnter","nextCallback","nextStatus","cancelNextCallback","getTimeouts","exit","mounting","performExit","timeouts","enterTimeout","safeSetState","onTransitionEnd","setNextCallback","doesNotHaveTimeoutOrListener","addEndListener","_ChildMapping","TransitionGroup","firstRender","mounted","prevChildMapping","getInitialChildMapping","getNextChildMapping","currentChildMapping","getChildMapping","childFactory","_CSSTransition","_ReplaceTransition","mergeChildMappings","getProp","nextChildMapping","prevChild","isLeaving","mapFn","mapper","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","classNamesShape","timeoutsShape","__self","__source","jsx","jsxs","escape","IsSomeRendererActing","_currentValue2","_threadCount","createFactory","lazy","super_","prefilter","normalize","lhs","rhs","groupCollapsed","groupEnd","logger","actionTransformer","titleFormatter","collapsed","started","startedTime","took","stateTransformer","errorTransformer","logErrors","diffPredicate","DeepDiff","observableDiff","applyDiff","applyChange","revertChange","isConflict","noConflict","transformer","createLogger","formatProdErrorMessage","code","$$observable","observable","randomString","ActionTypes","INIT","REPLACE","PROBE_UNKNOWN_ACTION","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","isSubscribed","replaceReducer","nextReducer","outerSubscribe","observeState","legacy_createStore","combineReducers","reducers","reducerKeys","finalReducers","shapeAssertionError","finalReducerKeys","assertReducerShape","hasChanged","previousStateForKey","nextStateForKey","bindActionCreator","bindActionCreators","actionCreators","boundActionCreators","compose","funcs","applyMiddleware","middlewares","_dispatch","middlewareAPI","chain","middleware","ALL_WEEKDAYS","Weekday","fromStr","nth","getJsWeekday","isPresent","isWeekdayStr","rang","times","padStart","padString","sep","splits","pymod","divmod","div","notEmpty","MONTH_DAYS","ONE_DAY","MAXYEAR","ORDINAL_BASE","PY_WEEKDAYS","isValidDate","toOrdinal","date1","date2","differencems","daysBetween","fromOrdinal","getMonthDays","getWeekday","monthRange","combine","cloneDates","clones","timeToUntilString","untilStringToDate","bits","dateTZtoISO8601","timeZone","toLocaleString","IterResult","minDate","maxDate","inc","before","after","dt","tooEarly","tooLate","pack","ar","Frequency","CallbackIterResult","dayNames","monthNames","SKIP","numberAsText","at","the","third","tuesday","wednesday","thursday","friday","saturday","sunday","january","february","march","april","may","june","july","august","september","october","november","december","comma","defaultGetText","defaultDateFormatter","ToText","gettext","language","dateFormatter","ENGLISH","bymonthday","bynmonthday","byweekday","allWeeks","someWeeks","isWeekdays","isEveryDay","sortWeekDays","isFullyConvertible","freq","IMPLEMENTED","RRule","FREQUENCIES","plural","HOURLY","interval","MINUTELY","DAILY","bymonth","_bymonth","_bymonthday","_byweekday","byhour","_byhour","WEEKLY","MONTHLY","YEARLY","byyearday","byweekno","weekdaytext","monthtext","npos","wday","finalDelim","delim","realCallback","finalDelimiter","delimJoin","Parser","rules","nextSymbol","best","bestSymbol","name_1","acceptNumber","expect","parseText","ttr","AT","MO","TU","WE","TH","FR","ON","wkd","decodeWKD","decodeNTH","MDAYs","decodeM","freqIsDailyOrGreater","fromText","Time","DateTime","fromDate","getYear","addYears","addMonths","yearDiv","monthMod","addWeekly","wkst","fixDay","addDaily","addHours","filtered","dayDiv","hourMod","addMinutes","byminute","hourDiv","minuteMod","addSeconds","bysecond","minuteDiv","secondMod","daysinmonth","SECONDLY","initializeOptions","keys_1","defaultKeys","parseOptions","DEFAULT_OPTIONS","byeaster","bysetpos","bynweekday","parsedOptions","parseString","rfcString","parseLine","parseDtstart","line","dtstartWithZone","tzid","parseRrule","attr","Days","parseIndividualNumber","parseNumber","optionKey","SyntaxError","wdaypart","DateWithZone","RangeError","datestr","rezonedDate","localTimeZone","Intl","DateTimeFormat","resolvedOptions","dateInLocalTZ","tzOffset","dateInTimeZone","optionsToString","outValue","buildDtstart","strValues","ruleString","argsMatch","between","_cacheAdd","what","_value","_cacheGet","cached","argsKeys","findCacheDiff","cachedObject","iterResult","M365MASK","M366MASK","M28","M29","M30","M31","MDAY366MASK","MDAY365MASK","NM28","NM29","NM30","NM31","NMDAY366MASK","NMDAY365MASK","M366RANGE","M365RANGE","WDAYMASK","wdaymask","rebuildYear","firstwkst","wyearlen","firstyday","yearlen","nextyearlen","yearordinal","yearweekday","mmask","mdaymask","nmdaymask","mrange","baseYearMasks","wnomask","no1wkst","numweeks","lnumweeks","lyearweekday","lno1wkst","lyearlen","weekst","Iterinfo","rebuild","lastyear","yearinfo","lastmonth","monthinfo","nwdaymask","ranges","rebuildMonth","eastermask","yearStart","easter","ydayset","mdayset","wdayset","ddayset","htimeset","mtimeset","stimeset","getdayset","gettimeset","buildPoslist","timeset","dayset","poslist","daypos","timepos","emitResult","counterDate","millisecondModulo","buildTimeset","makeTimeset","removeFilteredDays","rezoneIfNeeded","currentDay","isFiltered","dayCounter","SA","SU","noCache","_cache","fromString","_iter","toText","isFullyConvertibleToText","unfold","forceset","compatible","parseInput","rrulevals","rdatevals","exrulevals","exdatevals","parsedDtstart","lines","splitIntoLines","extractName","parms","breakDownLine","rdateTzid","parseRDate","rset_1","groomRruleOptions","rdate","buildRule","rdateval","parm","validateDateParm","createGetterSetter","fieldName","field_1","_rdate","_exrule","_exdate","_exdateHash","_accept","evalExdate","zonedDate","iterSet","_addRule","_addDate","rrules","exrules","rdates","_dtstart","rdatesToString","rrs","dateString","MessageChannel","unstable_forceFrameRate","port2","port1","onmessage","postMessage","sortIndex","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_wrapCallback","objA","objB","compareContext","keysA","keysB","bHasOwnProperty","valueA","valueB","trimLeft","trimRight","tinycolor","rgb","inputToRGB","_originalInput","_r","_g","_roundA","_gradientType","gradientType","_ok","stringInputToObject","isValidCSSUnit","rgbToRgb","convertToPercentage","hsvToRgb","hslToRgb","boundAlpha","bound01","rgbToHsl","hue2rgb","rgbToHsv","rgbToHex","allow3Char","hex","pad2","rgbaToHex","allow4Char","convertDecimalToHex","rgbaToArgbHex","_desaturate","amount","hsl","toHsl","clamp01","_saturate","_greyscale","desaturate","_lighten","_brighten","toRgb","_darken","_spin","_complement","polyad","_splitcomplement","_analogous","slices","part","_monochromatic","modification","isDark","getBrightness","isLight","getOriginalInput","getAlpha","getLuminance","RsRGB","GsRGB","BsRGB","setAlpha","toHsvString","toHslString","toHex","toHex8","toHex8String","toRgbString","toPercentageRgb","toPercentageRgbString","toName","hexNames","toFilter","secondColor","hex8String","secondHex8String","formatSet","formattedString","hasAlpha","_applyModification","lighten","brighten","darken","saturate","greyscale","_applyCombination","analogous","complement","monochromatic","splitcomplement","triad","tetrad","fromRatio","newColor","color1","color2","rgb1","rgb2","readability","isReadable","wcag2","wcag2Parms","validateWCAG2Parms","mostReadable","baseColor","colorList","includeFallbackColors","bestColor","bestScore","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","burntsienna","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","goldenrod","gray","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellowgreen","flipped","isOnePointZero","processPercent","isPercentage","parseIntFromHex","convertHexToDecimal","matchers","CSS_UNIT","PERMISSIVE_MATCH3","PERMISSIVE_MATCH4","rgba","hsla","hsva","hex3","hex6","hex4","hex8","named","toPropertyKey","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","definition","globalThis","nmd","ReactReduxContext","batch","getBatch","nullListeners","notify","createSubscription","parentSub","handleChangeWrapper","subscription","onStateChange","addNestedSub","createListenerCollection","notifyNestedSubs","getListeners","useIsomorphicLayoutEffect","Context","useReduxContext","createStoreHook","useDefaultReduxContext","useStore","createDispatchHook","useDefaultStore","useDispatch","refEquality","createSelectorHook","selector","equalityFn","_useReduxContext","selectedState","contextSub","latestSubscriptionCallbackError","latestSelector","latestStoreState","latestSelectedState","storeState","newSelectedState","checkForUpdates","newStoreState","_newSelectedState","useSelectorWithStoreAndSubscription","newBatch","useSelector","createThunkMiddleware","extraArgument","thunk","withExtraArgument","LOGIN_REQUEST","LOGIN_SUCCESS","LOGIN_FAILURE","LOGOUT","UPDATE_LOGIN_REQUEST","UPDATE_LOGIN_SUCCESS","UPDATE_LOGIN_FAILURE","REGISTER_REQUEST","REGISTER_SUCCESS","REGISTER_FAILURE","PASSWORD_RESET_REQUEST","PASSWORD_RESET_SUCCESS","PASSWORD_RESET_FAILURE","CONFIRM_EMAIL_REQUEST","CONFIRM_EMAIL_SUCCESS","CONFIRM_EMAIL_FAILURE","user","sessionStorage","loggedIn","userConstants","loggingIn","GETALL_REQUEST","GETALL_SUCCESS","users","GETALL_FAILURE","SUCCESS","ERROR","CLEAR","NOTICE","alertConstants","altType","REQUEST_MENU_OPTIONS","REQUEST_MENU_OPTIONS_SUCCESS","REQUEST_MENU_OPTIONS_FAILURE","litigantMenuConstants","litigantMenuOptions","authentication","alert","litigantMenu","rootReducer","devToolsExtension","_inheritsLoose","isAbsolute","spliceOne","hasTrailingSlash","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","up","valueEqual","aValue","bValue","isProduction","provided","addLeadingSlash","stripLeadingSlash","stripBasename","hasBasename","stripTrailingSlash","createPath","createLocation","hashIndex","searchIndex","parsePath","decodeURI","URIError","resolvePathname","createTransitionManager","prompt","setPrompt","nextPrompt","confirmTransitionTo","getUserConfirmation","appendListener","notifyListeners","getConfirmation","confirm","PopStateEvent","HashChangeEvent","getHistoryState","createBrowserHistory","globalHistory","canUseHistory","supportsHistory","needsHashChangeListener","_props$forceRefresh","forceRefresh","_props$getUserConfirm","_props$keyLength","keyLength","basename","getDOMLocation","historyState","_window$location","createKey","transitionManager","handlePopState","isExtraneousPopstateEvent","handlePop","forceNextPop","fromLocation","toLocation","toIndex","allKeys","go","revertPop","initialLocation","createHref","listenerCount","checkDOMListeners","isBlocked","prevIndex","nextKeys","goForward","unblock","listen","unlisten","HashChangeEvent$1","HashPathCoders","hashbang","encodePath","decodePath","noslash","slash","stripHash","getHashPath","replaceHashPath","createHashHistory","_props$hashType","hashType","_HashPathCoders$hashT","ignorePath","encodedPath","prevLocation","allPaths","baseTag","pushHashPath","nextPaths","clamp","lowerBound","upperBound","commonjsGlobal","getUniqueId","createNamedContext","historyContext","Router","_isMounted","_pendingLocation","staticContext","computeRootMatch","params","isExact","Lifecycle","onMount","onUnmount","cacheLimit","cacheCount","generatePath","generator","compilePath","Redirect","computedMatch","_ref$push","cache$1","cacheLimit$1","cacheCount$1","matchPath","_options$exact","_options$strict","_options$sensitive","cacheKey","pathCache","regexp","compilePath$1","_compilePath","Route","context$1","isEmptyChildren","createURL","staticHandler","methodName","Switch","useLocation","globalCssModule","setScrollbarWidth","conditionallyUpdateScrollbar","scrollbarWidth","scrollDiv","getScrollbarWidth","fixedContent","bodyPadding","mapToCssModules","cssModule","omit","omitKeys","warnOnce","targetPropType","tagPropType","TransitionTimeouts","TransitionPropTypeKeys","keyCodes","getTag","findDOMElements","isReactRefObj","selection","isArrayOrNodeList","els","focusableElements","_excluded","fluid","Container","containerClass","_jsx","getElementsByTagName","resolveToLocation","normalizeToLocation","forwardRefShim","LinkAnchor","forwardedRef","innerRef","navigate","_onClick","isModifiedEvent","_ref2$component","__RouterContext","isDuplicateNavigation","forwardRefShim$1","forwardRef$1","ariaCurrent","_ref$ariaCurrent","_ref$activeClassName","classNameProp","isActiveProp","locationProp","escapedPath","joinClassnames","rowColsPropType","noGutters","widths","colClasses","colWidth","colSize","isXs","stringOrNumberProp","columnProps","getColumnSizeClass","columnProp","colSizeInterfix","colClass","_colClass","baseClass","baseClassActive","Fade","transitionProps","pickKeys","pick","closeClassName","closeAriaLabel","fade","Alert","closeClasses","alertTransition","success","notice","_useState2","setVisible","alertActions","_jsxs","courtSeal","textShadow","Authorization","_regeneratorRuntime","define","Generator","makeInvokeMethod","tryCatch","GeneratorFunction","GeneratorFunctionPrototype","defineIteratorMethods","_invoke","AsyncIterator","invoke","callInvokeWithMethodAndArg","delegate","maybeInvokeDelegate","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","isGeneratorFunction","mark","awrap","rval","complete","finish","delegateYield","asyncGeneratorStep","gen","reject","_next","_throw","_asyncToGenerator","updateLogin","_callee","userValues","firstName","lastName","userName","dob","setItem","_x","logoutServer","_callee2","requestOptions","_context2","authHeader","fetch","logout","verifyStaff","_callee3","_context3","verifyAttorney","_ref4","_callee4","_context4","handleResponse","response","statusText","userService","login","username","confirmPassword","phoneNumber","credentials","resetPassword","newPassword","resetPasswordRequest","resetRequest","confirmEmail","emailConfirmation","refreshToken","tokenModel","accessToken","request","attResponse","failure","userActions","registerApplicationUser","passwordReset","Location","reload","litigantMenuService","getLitigantMenuOptions","litigantMenuActions","ariaLabel","btnOutlineColor","defaultAriaLabel","defaultNode","FadePropTypes","centered","scrollable","keyboard","labelledBy","backdrop","onOpened","onClosed","wrapClassName","modalClassName","backdropClassName","contentClassName","external","backdropTransition","modalTransition","unmountOnClose","returnFocusAfterClose","trapFocus","propsToOmit","_element","_originalBodyPadding","getFocusableChildren","handleBackdropClick","handleBackdropMouseDown","handleEscape","handleStaticBackdropAnimation","handleTab","manageFocusAfterClose","clearBackdropAnimationTimeout","showStaticBackdropAnimation","setFocus","_dialog","modalIndex","openCount","isAppearing","getFocusedChild","currentFocus","focusableChildren","_mouseDownElement","totalFocusable","focusedIndex","_backdropAnimationTimeout","_triggeringElement","_mountContainer","allElements","getOriginalBodyPadding","modalOpenClassName","modalOpenClassNameRegex","renderModalDialog","dialogBaseClass","isModalHidden","modalAttributes","onKeyUp","hasTransition","Backdrop","wrapTag","ModalHeader","closeButton","WrapTag","closeIcon","ModalBody","ModalFooter","getAppointmentsByMonth","getLitigant","_x2","getAttorney","_x3","getLitigantByEmail","_x4","getAppointmentsByMonthAtt","_ref5","_callee5","_context5","_x5","getAppointmentsForRequest","_ref6","_callee6","_context6","_x6","setAppointmentLitigant","_ref7","_callee7","apptId","_context7","_x7","sendAttorneyQuestionnaire","_ref8","_callee8","_context8","_x8","sendLitigantReminder","_ref9","_callee9","_context9","_x9","userRescheduleAppointment","_ref10","_callee10","_context10","_x10","cancelAppointmentUser","_ref11","_callee11","_context11","_x11","setAppointmentAttorney","_ref12","_callee12","_context12","_x12","deleteAppointment","_ref13","_callee13","_context13","_x13","reAddAppointment","_ref14","_callee14","_context14","_x14","createAppointments","_ref15","_callee15","_context15","_x15","createCustomAppointments","_ref16","_callee16","_context16","_x16","getAttorneyAppointments","_ref17","_callee17","_context17","attorneyCancelAppointment","_ref18","_callee18","appt","_context18","_x17","attorneyCompleteAppointment","_ref19","_callee19","_context19","_x18","userRequestAppointment","_ref20","_callee20","_context20","attorneyAssignToMe","_ref21","_callee21","_context21","_x19","menuOptions","modal","setModal","appointmentService","userId","appointmentId","hasCurrentQuestionnaire","hasAppointment","HasPreviousQuestionnaires","appointmentDate","CancelAppointmentModal","hasSubmittedRequestInAWeek","RequestAppointmentModal","metYearlyLimitOfThree","HasPreviousAppointments","inline","Form","getRef","submit","row","FormGroup","Label","htmlFor","bsSize","plaintext","addon","Input","checkInput","isNotaNumber","formControlClass","FormText","getNewQuestionnaire","questionnaire","getNewQuestionnaireStaff","submitNewQuestionnaire","questionnaireForm","statusMessage","submitNewQuestionnaireStaff","updateCurrentQuestionnaire","updateCurrentQuestionnaireStaff","checkForQuestionnaire","getCurrentQuestionnaire","getCurrentQuestionnaireStaff","getCurrentQuestionnaireAtt","getCurrentUserQuestionnaireStaff","setQuestionnaire","_useState4","acceptDisclaimer","setAcceptDisclaimer","_useState6","formState","setFormState","questionnaireService","formVmList","dummyFormState","arrayObject","answerText","questionnaireName","onSubmit","handleSubmit","qq","questionText","yesNo","dropDownGroupName","dropDownMenuName","dropDownGroups","groupItemName","groupItemDescription","questionnaireQuestionId","fontStyle","_callSuper","Basic","setEvents","viewModel","setViewType","eventClicked","ops1","ops2","newFreshId","addEvent","getResourceById","toggleExpandStatus","setLocaleMoment","setResources","isObjectType","isHTMLElement","Node","VALIDATION_MODE","UNDEFINED","EVENTS","BLUR","CHANGE","INPUT","SELECT","INPUT_VALIDATION_RULES","REGEX_IS_DEEP_PROP","REGEX_IS_PLAIN_PROP","REGEX_PROP_NAME","REGEX_ESCAPE_CHAR","isKey","stringToPath","quote","tempPath","objValue","transformToNestObject","previous","focusOnErrorField","fieldErrors","removeAllEventListeners","validateWithStateUpdate","isRadioInput","isCheckBoxInput","isDetached","DOCUMENT_NODE","isEmptyObject","castPath","updatePath","baseGet","baseSlice","unset","childObject","previousObjRef","objectRef","currentPaths","currentPathsLength","baseUnset","isSameRef","fieldValue","defaultReturn","getRadioValue","getMultipleSelectValue","isFileInput","isMultipleSelect","isEmptyString","validResult","getCheckboxValue","_options$0$ref","getFieldValue","getFieldsValues","startsWith","nest","isSameError","objectA","objectB","objectAKeys","objectBKeys","compareObject","isRegex","getValueAndMessage","validationData","isBoolean","isMessage","getValidateError","appendErrors","validateAllFieldCriteria","validateField","fieldsRef","_ref9$ref","required","maxLength","minLength","validate","isRadio","isCheckBox","isRadioOrCheckbox","isEmpty","appendErrorsCurry","getMinMaxMessage","requiredValue","requiredMessage","exceedMax","exceedMin","_getValueAndMessage","maxValue","maxMessage","_getValueAndMessage2","minValue","minMessage","valueNumber","valueDate","_getValueAndMessage3","maxLengthValue","maxLengthMessage","_getValueAndMessage4","minLengthValue","minLengthMessage","inputLength","_exceedMax","_exceedMin","_getValueAndMessage5","patternValue","patternMessage","validateRef","validateError","validationResult","_Object$entries","_Object$entries$_i","validateFunction","validateResult","_validateError","maxType","minType","valueAsNumber","valueAsDate","parseErrorSchema","validateWithSchema","_validateWithSchema","validationSchema","validationResolver","abortEarly","t0","t1","t2","isPrimitive","getPath","getInnerPath","pathWithIndex","getPath$1","parentPath","flat","assignWatchFields","fieldValues","watchFields","isSingleField","skipValidation","isOnChange","isBlurEvent","isOnSubmit","isReValidateOnSubmit","isOnBlur","isReValidateOnBlur","isSubmitted","getFieldArrayParentName","getFieldValueByName","getIsFieldsDifferent","referenceArray","differenceArray","dataA","dataB","isMatchFieldArrayName","searchName","isNameInFieldArray","isSelectInput","modeChecker","isRadioOrCheckboxFunction","useForm","_ref19$mode","_ref19$reValidateMode","reValidateMode","validationContext","_ref19$defaultValues","defaultValues","_ref19$submitFocusErr","submitFocusError","validateCriteriaMode","errorsRef","touchedFieldsRef","fieldArrayDefaultValues","watchFieldsRef","dirtyFieldsRef","fieldsWithValidationRef","validFieldsRef","isValidRef","defaultValuesRef","defaultValuesAtRenderRef","isUnMount","isWatchAllRef","isSubmittedRef","isDirtyRef","submitCountRef","isSubmittingRef","handleChangeRef","resetFieldArrayFunctionRef","validationContextRef","fieldArrayNamesRef","_useRef$current","isWindowUndefined","shouldValidateSchemaOrResolver","isWeb","isProxyEnabled","readFormStateRef","dirty","dirtyFields","submitCount","touched","isSubmitting","_useRef$current2","reRender","shouldRenderBaseOnError","shouldRender","shouldReRender","validFields","fieldsWithValidation","isFieldValid","isFormValid","currentFieldError","existFieldError","isManual","shouldRenderBasedOnError","previousError","setFieldValue","rawValue","radioRef","selectRef","checkboxRef","setDirty","isFieldDirty","isFieldArray","previousDirtyFieldsLength","fieldArrayName","isDirtyChanged","setInternalValues","parentFieldName","isValueArray","setInternalValue","executeValidation","_ref22","skipReRender","_error","executeSchemaOrResolverValidation","_ref23","_yield$validateWithSc","previousFormIsValid","_error2","triggerValidation","_ref25","_ref26","isFieldWatched","_ref28","_ref27","currentError","shouldSkipValidation","shouldUpdateDirty","_yield$validateWithSc2","_errors","validateSchemaOrResolver","_ref30","removeFieldEventListener","forceDelete","_field$ref","mutationWatcher","findRemovedFieldAndRemoveListener","removeFieldEventListenerAndRef","setInternalError","_ref31","registerFieldsRef","validateOptions","fieldRefAndValidationOptions","isEmptyDefaultValue","onDetachCallback","onDomRemove","attachEventListeners","_ref32","_yield$validateWithSc3","_Object$values","_name","fieldError","valueOrShouldValidate","shouldValidate","isArrayValue","isStringFieldName","refOrValidationOptions","validationOptions","getValues","outputValues","control","validateSchemaIsValid","watch","fieldNames","isDefaultValueUndefined","combinedDefaultValues","omitResetState","_i3","_Object$values2","closest","resetFieldArray","_ref33","resetRefs","clearError","setError","FormFeedback","validMode","_g2","_g3","_g4","_g5","_g6","_g7","_g8","_g9","_g10","_g11","_g12","_g13","_g14","_g15","_g16","_g17","_g18","_g19","_g20","_g21","_g22","_g23","_g24","updatePersonalInfo","personalInfo","userInfo","updatePassword","updatePass","_useForm","_useSelector","tokenExp","fs","personalInfoService","oldPassword","newPasswordConfirm","psInfo","background","Alerts","SealAndTitle","emailConfirmed","Questionnaire","Appointment","UpdatePersonalInfo","UpdatePassword","Welcome","LitigantMenu","Footer","ScrollLink","Svg002Support","svgRef","titleId","xmlnsXlink","enableBackground","xmlSpace","Svg001Employee","_g25","_g26","Svg003Email","LitigantSvg","AttorneysSvg","EmailSvg","Spinner","buttonLabel","submitted","_errors$username","_errors$username2","_errors$password","_errors$password2","_errorsRegister$first","_errorsRegister$first2","_errorsRegister$lastN","_errorsRegister$lastN2","_errorsRegister$dob","_errorsRegister$email","_errorsRegister$lastN3","_errorsRegister$phone","_errorsRegister$passw","_errorsRegister$passw2","_errorsRegister$passw3","_errorsRegister$confi","_errorsRegister$confi2","submittedStep","setSubmittedStep","submittedStepRegister","setSubmittedStepRegister","_useForm2","registerRegister","errorsRegister","handleSubmitRegister","passwordWatch","ResetPasswordModal","registerUser","ATTORNEY_REGISTER_REQUEST","ATTORNEY_REGISTER_SUCCESS","ATTORNEY_REGISTER_FAILURE","barNumber","attorneyConstants","attorneyService","_errorsRegister$barNu","_errorsRegister$barNu2","registerStep","setRegisterStep","resetRegister","attorneyActions","TopMenu","ProSeInfo","Litigants","Attorneys","ContactUs","bordered","borderless","striped","dark","responsive","responsiveTag","ResponsiveTag","responsiveClassName","getUsers","getUsersWithNoAppt","updateAttorneyInfo","getNotifications","notifications","clearNotification","getAttorneyRegistrations","checkEmail","approveAttorney","denyAttorney","getAttorneys","getAllQuestionnaires","getScheduledAppointmentsByDate","registerAttorney","highlightReducer","highlighted","newHighlighted","groupOptions","nextOptions","nextOption","groupIndex","findIndex","getOption","defaultOptions","Fuse","fuseOptions","fuzzySearch","useSelect","_ref$value","_ref$disabled","_ref$multiple","_ref$search","canSearch","_ref$fuse","fuse","_ref$onChange","_ref$getOptions","getOptions","_ref$allowEmpty","allowEmpty","_ref$closeOnSelect","closeOnSelect","_ref$closable","closable","flatDefaultOptions","groupOption","_id","flattenOptions","addedOptions","searching","newOption","displayValue","singleOption","getDisplayValue","oldState","newFocus","prevFlat","prevHighlighted","valueIndex","getNewValue","newOptions","onKeyPress","valueProps","inputVal","searchableOption","foundOptions","doSearch","optionProps","renderOption","optionClass","single","SelectSearch","shouldRenderOptions","printOptions","renderValue","renderGroupHeader","emptyMessage","_useSelect2","renderEmptyMessage","wrapperClass","selectedRect","isGroup","rendered","qId","modalTitle","getQuestionnaireButton","formVms","justIdVm","setUser","_useState8","setDates","_useState10","selectedDate","setSelectedDate","_useState12","attorney","setAttorney","renamedArray","timeSlotStart","timeSlotEnd","lit","QuestionnaireModal","userQuestionnaireId","att","attorneyId","setNotifications","staffService","altClearNotification","staffNotificationId","clearAllNotifications","causedById","causedByRole","createdDate","setSelected","setGetUsers","selectedLit","setSelectedLit","questionnaireList","setQuestionnaireList","setUsers","questionnaireButton","defaultFormState","_useState14","fsu","appointment","questionnaireStatus","attorneyRegistrationId","getAttys","setGetAttys","hideApprove","setHideApprove","boolVal","foundAtt","approve","deny","UPDATE_USER_INFO_REQUEST","UPDATE_USER_INFO_SUCCESS","UPDATE_USER_INFO_FAILURE","UPDATE_ATTORNEY_INFO_REQUEST","UPDATE_ATTORNEY_INFO_SUCCESS","UPDATE_ATTORNEY_INFO_FAILURE","REGISTER_ATTORNEY_REQUEST","REGISTER_ATTORNEY_SUCCESS","REGISTER_ATTORNEY_FAILURE","staffConstants","updateUserInfo","_errors$firstName","_errors$firstName2","_errors$lastName","_errors$lastName2","_errors$userName","_errors$userName2","_errors$userName3","_errors$userName4","_errors$phoneNumber","selectedAtt","setSelectedAtt","watchToken","formValues","newValues","staffActions","onButtonReset","ListGroup","getHorizontalClass","handleDisabledOnClick","ListGroupItem","attorneys","setAttorneys","litigants","setLitigants","deleted","appointmentStatus","renderStatus","refreshMonth","changeAttorney","changeLitigant","sendQuestionnaire","sendReminder","aid","dateTimes","borderRight","AppointmentDeleteModal","AppointmentReAddModal","AppointmentListItemForm","mergeClassNames","getUserLocales","_ref$useFallbackLocal","useFallbackLocale","_ref$fallbackLocale","fallbackLocale","languageList","languages","userLanguage","browserLanguage","systemLanguage","splitEl","normalizeLocales","getUserLocale","makeGetEdgeOfNeighbor","getPeriod","getEdgeOfPeriod","defaultOffset","previousPeriod","makeGetEnd","getBeginOfNextPeriod","makeGetRange","getStart","getEnd","getCenturyStart","centuryStartYear","centuryStartDate","getPreviousCenturyStart","getNextCenturyStart","getCenturyEnd","getPreviousCenturyEnd","getCenturyRange","getDecadeStart","decadeStartYear","decadeStartDate","getPreviousDecadeStart","getNextDecadeStart","getDecadeEnd","getPreviousDecadeEnd","getDecadeRange","getYearStart","yearStartDate","getPreviousYearStart","getNextYearStart","getYearEnd","getPreviousYearEnd","getYearRange","makeGetEdgeOfNeighborMonth","getMonthStart","monthStartDate","getPreviousMonthStart","getNextMonthStart","getMonthEnd","getPreviousMonthEnd","getMonthRange","makeGetEdgeOfNeighborDay","getDayStart","dayStartDate","_CALENDAR_TYPE_LOCALE","getDayEnd","getDayRange","CALENDAR_TYPES","ARABIC","HEBREW","US","CALENDAR_TYPE_LOCALES","WEEKDAYS","formatterCache","getSafeFormatter","localeWithDefault","formatterCacheLocale","getFormatter","safeDate","toSafeHour","formatDay","formatLongDate","formatMonth","formatMonthYear","formatShortWeekday","formatWeekday","formatYear","SUNDAY","FRIDAY","SATURDAY","getDayOfWeek","calendarType","getBeginOfWeek","monthIndex","getMonthIndex","getBegin","rangeType","getBeginNext","getRange","toYearLabel","defaultFormatYear","getDecadeLabel","isWeekend","calendarTypes","allViews","isCalendarType","isClassName","isMinDate","isMaxDate","isValue","isViews","isView","allowedViews","tileGroupProps","activeStartDate","tileClassName","tileContent","valueType","tileProps","tileDisabled","Navigation","drillUp","_ref$formatMonthYear","defaultFormatMonthYear","_ref$formatYear","_ref$navigationAriaLa","navigationAriaLabel","navigationAriaLive","navigationLabel","_ref$next2AriaLabel","next2AriaLabel","_ref$next2Label","next2Label","_ref$nextAriaLabel","nextAriaLabel","_ref$nextLabel","nextLabel","_ref$prev2AriaLabel","prev2AriaLabel","_ref$prev2Label","prev2Label","_ref$prevAriaLabel","prevAriaLabel","_ref$prevLabel","prevLabel","setActiveStartDate","showDoubleView","drillUpAvailable","shouldShowPrevNext2Buttons","previousActiveStartDate","getBeginPrevious","previousActiveStartDate2","getBeginPrevious2","nextActiveStartDate","nextActiveStartDate2","getBeginNext2","prevButtonDisabled","previousActiveEndDate","getEndPrevious","prev2ButtonDisabled","getEndPrevious2","nextButtonDisabled","next2ButtonDisabled","renderLabel","getCenturyLabel","labelClassName","renderButton","toPercent","Flex","flexDirection","flexWrap","flexBasis","isValueWithinRange","doRangesOverlap","range1","range2","getRangeClassNames","valueRange","dateRange","baseClassName","isRangeStart","isRangeEnd","getTileClasses","dateType","greaterRange","smallerRange","valueRangeClassNames","valueArray","hoverRangeClassNames","TileGroup","_ref$count","dateTransform","_ref$step","Tile","tile","tiles","datesAreDifferent","formatAbbr","maxDateTransform","minDateTransform","tileClassNameProps","activeStartDateProps","tileContentProps","Decade","Decades","CenturyView","Years","DecadeView","_ref$formatMonth","defaultFormatMonth","Months","YearView","_ref$formatDay","defaultFormatDay","_ref$formatLongDate","defaultFormatLongDate","currentMonthIndex","showFixedNumberOfWeeks","showNeighboringMonth","hasFixedNumberOfWeeks","activeEndDate","weekdayClassName","Weekdays","_props$formatShortWee","defaultFormatShortWeekday","_props$formatWeekday","defaultFormatWeekday","beginOfMonth","weekdayDate","WeekNumber","onClickWeekNumber","weekNumber","WeekNumbers","numberOfWeeks","weekNumbers","beginOfFirstWeek","calendarTypeForWeekNumber","beginOfWeek","getWeekNumber","weekIndex","MonthView","_props$calendarType","getCalendarTypeFromLocale","showWeekNumbers","alignItems","defaultMinDate","defaultMaxDate","allValueTypes","getLimitedViews","minDetail","maxDetail","getView","isViewAllowed","getValueType","getDetailValue","valuePiece","getDetailValueFrom","getDetailValueTo","getDetailValueArray","getActiveStartDate","getIsSingleValue","defaultActiveStartDate","previousView","allowPartialRange","onActiveStartDateChange","selectRange","prevArgs","shouldUpdate","setStateAndCallCallbacks","drillDownAvailable","onClickTile","_assertThisInitialize2","onDrillDown","nextView","onDrillUp","previousValue","goToRangeStartOnSelect","isFirstValueInRange","rawNextValue","getValueRange","getProcessedValue","onClickDay","onClickDecade","onClickMonth","onClickYear","activeStartDateState","valueFrom","getInitialActiveStartDate","valueState","viewProps","viewState","processFunction","currentActiveStartDate","_this$props8","drillDown","_formatYear","_this$props9","_this$props10","showNavigation","_this$props11","_this$props12","renderNavigation","renderContent","isActiveStartDate","isLooseValue","startOfMonth","endOfMonth","selectedDates","setSelectedDates","addAppointment","borderLeft","dateFilter","removeAppointment","inverse","Card","CardHeader","CardBody","CardTitle","CardText","PrintMeetingDayCards","dateArr","litigantFirstName","litigantLastName","attorneyFirstName","attorneyLastName","questionAndAnswers","qad","question","answer","componentRef","hideButton","setHideButton","setDateArr","setDateTimes","setActive","setCurrentDate","appointments","AppointmentCustomCreate","PrintMeetingDay","AppointmentListItems","filterDate","dateTime","filterArray","_errors$dob","setQuestionnaireButton","formValue","UpdateLitigantQuestionnaire","AppointmentCreate","UpdateLitigantInfo","ApproveAttorneys","UpdateAttorneyInfo","StaffMenu","getNewQuestionnaireAtt","refreshAppointments","GetLitigant","litId","litigant","setLitigant","setAppointments","getbackgroundColor","AppointmentCancelModal","AppointmentAssignModal","AvailableAppointments","AttorneyMenu","URLSearchParams","getQueryString","PasswordResetForm","tempState","ConfirmEmailForm","Layout","PrivateRoute","User","Staff","Attorney","PasswordReset","ConfirmEmail","Home","hostname","App","serviceWorker","registration"],"sourceRoot":""}