{"version":3,"sources":["../node_modules/classnames/index.js","../node_modules/react-select-me/lib/ReactSelectMe.js","../node_modules/react-select-me/lib/propsDefinitions.js"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","key","call","join","module","exports","default","Object","defineProperty","value","_extends","assign","target","source","prototype","_typeof","Symbol","iterator","obj","constructor","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_react","require","_react2","_interopRequireDefault","_classnames2","_propsDefinitions","__esModule","_defineProperty","ReactSelectMe","_PureComponent","instance","TypeError","_classCallCheck","this","_this","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","closeGlobal","e","_this$props","isOpened","beforeClose","opened","state","skipPropagation","setState","onClose","undefined","skipEventPropagation","validateDataStructure","data","toImmutable","patchSelectedOption","selectedOption","options","_this$validateDataStr","_this$props2","valueKey","labelKey","forbidPhantomSelection","option","find","o","getProp","setSearchValue","onSearch","search","searchInput","prevSearch","innerHTML","renderList","_cs","_this$props3","addNewItem","searchable","listRenderer","virtualized","s","renderVirtualizedList","getOptions","selectedOptions","getSelectedOptions","renderOption","onChange","onToggle","_this$getListProps","getListProps","direction","calculatedListHeight","listClasses","dd__list","dd__listVirtualized","rowCount","getCount","rowClassName","dd__optionVirtualized","rowRenderer","_ref","style","index","getOptionHeight","listContent","map","getSearchString","renderAddNewItem","renderNoItemsFound","createElement","className","maxHeight","_this$props4","optionRenderer","isSelected","some","selected","dd__option","dd__selectedOption","label","onClick","renderSelectedBlock","_this$props5","placeholder","multiple","selectedValueRenderer","selectedBlockRenderer","valueRenderer","renderSelectedItem","renderSearchInput","selectedBlockClasses","dd__selected","placeholderClasses","dd__placeholder","noOptionsSelected","selectedElements","_this$props6","searchInputRenderer","dd__search","contentEditable","tabIndex","onInput","onKeyDown","onFocus","onPaste","onKeyUp","ref","_this$props7","selectedOptionClasses","dd__selectedItem","crossIconClasses","dd__crossIcon","onRemoveSelected","renderIcon","_this$props8","iconRenderer","dd__expandIcon","viewBox","width","height","d","transform","_this$props9","onAddNewItem","_this$props10","noItemsFound","dd__optionDisabled","immutable","get","items","size","_this$props11","_this$validateDataStr2","_this$props12","patchedOptions","v","filter","_this$props13","listHeight","listMaxHeight","listPosition","boundaryMargin","ssr","refinedHeight","optionsCount","_this$getOffset","getOffset","top","bottom","maxAvailableHeight","Math","min","el","wrapper","getWrapper","rectEl","getBoundingClientRect","rectWrapper","viewportHeight","window","document","documentElement","clientHeight","_ref2","_this$props14","optionHeight","textContent","innerText","replace","removeFromSelectedBlock","_this$props15","searchDefaultsToSelectedValue","selectedValue","values","selectedIndex","findIndex","concat","arr","arr2","from","_toConsumableArray","_this$props16","beforeOpen","disabled","nextState","afterFunc","onOpen","focus","blur","getSelection","removeAllRanges","evt","type","documentMode","doSearch","preventDefault","clipboardData","newContent","getData","range","createRange","selectNodeContents","collapse","selection","addRange","nativeEvent","keyCode","params","_this$props17","searchClearOnClose","subClass","superClass","create","setPrototypeOf","_inherits","addEventListener","removeEventListener","msg","process","_cs3","_this2","_props","error","wrapperClassnames","dd__wrapper","dd__opened","dd__error","dd__multi","dd__disabled","selectControlClasses","dd__selectControl","toggleHandler","_ref3","PureComponent","defaultProps","propTypes","_propTypes","_propTypes2","classType","oneOfType","string","array","bool","func","element","number","oneOf","isRequired","object","shape","dd__single","dd_disabled","dd__openTobottom","dd__openTotop","any"],"mappings":";iIAAA,OAOC,WACA,aAEA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IAAQA,EAAID,OAAQ,CAC5C,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,G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AYiK,EAEZhH,mBAAoBgH,EAEpBpL,sBAAuBoL,EAEvBhK,mBAAoBgK,IAGtBzM,WAAYwM,EAAYzR,QAAQ8R,KAChCjC,mBAAoB4B,EAAYzR,QAAQ8R,KACxCvE,8BAA+BkE,EAAYzR,QAAQ8R,KACnDjJ,oBAAqB4I,EAAYzR,QAAQ+R,KACzC7J,sBAAuBuJ,EAAYzR,QAAQ+R,KAC3C9J,sBAAuBwJ,EAAYzR,QAAQ+R,KAC3C5R,MAAOsR,EAAYzR,QAAQ0S,IAC3B1O,SAAUyN,EAAYzR,QAAQ4R,OAC9BzM,YAAasM,EAAYzR,QAAQ8R,KAEjCpO,YAAa+N,EAAYzR,QAAQ+R","file":"static/js/2.a60733d6.chunk.js","sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\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 _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\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 _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _propsDefinitions = require('./propsDefinitions');\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 _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 _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; } // @TODO\n// hot keys: select option on Enter, remove on Backspcae, highlight etc\n// disable option\n\nvar DEFAULT_LIST_POSITION = 'bottom';\n\nvar ReactSelectMe = function (_PureComponent) {\n _inherits(ReactSelectMe, _PureComponent);\n\n function ReactSelectMe(props) {\n _classCallCheck(this, ReactSelectMe);\n\n var _this = _possibleConstructorReturn(this, (ReactSelectMe.__proto__ || Object.getPrototypeOf(ReactSelectMe)).call(this, props));\n\n _this.closeGlobal = function (e) {\n var _this$props = _this.props,\n isOpened = _this$props.isOpened,\n beforeClose = _this$props.beforeClose;\n var opened = _this.state.opened;\n // @maslianok: when you decide to change this, please, keep in mind, that this case should work:\n // Open A -> Open B -> A should be closed\n\n if (_this.skipPropagation || !opened) {\n _this.skipPropagation = undefined;\n return;\n }\n\n if (!isOpened && beforeClose(e) !== false) {\n _this.setState({ opened: false }, _this.onClose);\n }\n };\n\n _this.skipEventPropagation = function () {\n _this.skipPropagation = true;\n };\n\n _this.validateDataStructure = function (data) {\n var toImmutable = _this.props.toImmutable;\n\n return typeof toImmutable === 'function' ? toImmutable(data) : data;\n };\n\n _this.patchSelectedOption = function (selectedOption, options) {\n var _this$validateDataStr;\n\n var _this$props2 = _this.props,\n valueKey = _this$props2.valueKey,\n labelKey = _this$props2.labelKey,\n forbidPhantomSelection = _this$props2.forbidPhantomSelection;\n\n // search for this option in the `options` array\n\n var value = (typeof selectedOption === 'undefined' ? 'undefined' : _typeof(selectedOption)) === 'object' ? selectedOption[valueKey] : selectedOption;\n var option = options.find(function (o) {\n return _this.getProp(o, valueKey) === value;\n });\n\n if (option || forbidPhantomSelection) {\n return option;\n }\n\n // if not found - make a phantom selection\n return (typeof selectedOption === 'undefined' ? 'undefined' : _typeof(selectedOption)) === 'object' ? selectedOption : _this.validateDataStructure((_this$validateDataStr = {}, _defineProperty(_this$validateDataStr, valueKey, selectedOption), _defineProperty(_this$validateDataStr, labelKey, selectedOption), _this$validateDataStr));\n };\n\n _this.setSearchValue = function (value) {\n var onSearch = _this.props.onSearch;\n\n _this.setState({\n search: value\n });\n\n if (_this.searchInput) {\n _this.prevSearch = undefined;\n _this.searchInput.innerHTML = value;\n }\n\n if (typeof onSearch === 'function') {\n onSearch(value);\n }\n };\n\n _this.renderList = function () {\n var _cs;\n\n var _this$props3 = _this.props,\n addNewItem = _this$props3.addNewItem,\n searchable = _this$props3.searchable,\n listRenderer = _this$props3.listRenderer,\n virtualized = _this$props3.virtualized,\n s = _this$props3.s,\n renderVirtualizedList = _this$props3.renderVirtualizedList;\n var opened = _this.state.opened;\n\n\n if (!opened) {\n return undefined;\n }\n\n var options = _this.getOptions();\n var selectedOptions = _this.getSelectedOptions();\n\n if (typeof listRenderer === 'function') {\n return listRenderer(options, selectedOptions, _this.renderOption, _this.onChange, _this.onToggle);\n }\n\n var _this$getListProps = _this.getListProps(),\n direction = _this$getListProps.direction,\n calculatedListHeight = _this$getListProps.calculatedListHeight;\n\n var listClasses = (0, _classnames2.default)('dd__list', s.dd__list, 'dd__openTo' + direction, s['dd__openTo' + direction], (_cs = {}, _defineProperty(_cs, s.dd__listVirtualized, virtualized), _defineProperty(_cs, 'dd__listVirtualized', virtualized), _cs));\n\n var rowCount = _this.getCount(options);\n if (rowCount && typeof renderVirtualizedList === 'function') {\n var rowClassName = (0, _classnames2.default)('dd__optionVirtualized', s.dd__optionVirtualized);\n return renderVirtualizedList({\n rowRenderer: function rowRenderer(_ref) {\n var style = _ref.style,\n index = _ref.index;\n return _this.renderOption(_this.getProp(options, index), selectedOptions, style);\n },\n rowCount: rowCount,\n calculatedListHeight: calculatedListHeight,\n getOptionHeight: _this.getOptionHeight,\n listClasses: listClasses,\n rowClassName: rowClassName\n });\n }\n var listContent = void 0;\n if (rowCount) {\n listContent = options.map(function (option) {\n return _this.renderOption(option, selectedOptions);\n });\n } else {\n listContent = addNewItem && searchable && _this.getSearchString() ? _this.renderAddNewItem() : _this.renderNoItemsFound();\n }\n\n return _react2.default.createElement(\n 'div',\n { className: listClasses, style: { maxHeight: calculatedListHeight + 'px' } },\n listContent\n );\n };\n\n _this.renderOption = function (option, selectedOptions, style) {\n var _this$props4 = _this.props,\n valueKey = _this$props4.valueKey,\n labelKey = _this$props4.labelKey,\n optionRenderer = _this$props4.optionRenderer,\n s = _this$props4.s;\n\n var isSelected = selectedOptions.some(function (selected) {\n return _this.getProp(selected, valueKey) === _this.getProp(option, valueKey);\n });\n var className = (0, _classnames2.default)('dd__option', s.dd__option, _defineProperty({\n dd__selectedOption: isSelected\n }, s.dd__selectedOption, isSelected));\n\n var label = typeof optionRenderer === 'function' ? optionRenderer(option, selectedOptions) : _react2.default.createElement(\n 'div',\n { className: className },\n _this.getProp(option, labelKey)\n );\n\n return _react2.default.createElement(\n 'div',\n { key: _this.getProp(option, valueKey), style: style, onClick: _this.onChange(option) },\n label\n );\n };\n\n _this.renderSelectedBlock = function () {\n var _this$props5 = _this.props,\n placeholder = _this$props5.placeholder,\n searchable = _this$props5.searchable,\n multiple = _this$props5.multiple,\n s = _this$props5.s,\n selectedValueRenderer = _this$props5.selectedValueRenderer,\n selectedBlockRenderer = _this$props5.selectedBlockRenderer;\n var opened = _this.state.opened;\n\n var valueRenderer = selectedValueRenderer || _this.renderSelectedItem;\n var selectedOptions = _this.getSelectedOptions();\n\n if (selectedBlockRenderer) {\n return selectedBlockRenderer(selectedOptions, _this.onChange, valueRenderer, _this.renderSearchInput);\n }\n\n var selectedBlockClasses = (0, _classnames2.default)('dd__selected', s.dd__selected);\n var placeholderClasses = (0, _classnames2.default)('dd__placeholder', s.dd__placeholder);\n var noOptionsSelected = !_this.getCount(selectedOptions);\n\n var selectedElements = void 0;\n if (!noOptionsSelected && (multiple || !searchable || !opened)) {\n selectedElements = selectedOptions.map(function (option) {\n return valueRenderer(option, _this.onChange);\n });\n }\n\n return _react2.default.createElement(\n 'div',\n { className: selectedBlockClasses },\n selectedElements,\n noOptionsSelected && (!searchable || !opened) && _react2.default.createElement(\n 'div',\n { className: placeholderClasses },\n placeholder\n ),\n searchable && _this.renderSearchInput()\n );\n };\n\n _this.renderSearchInput = function () {\n var _this$props6 = _this.props,\n s = _this$props6.s,\n searchInputRenderer = _this$props6.searchInputRenderer;\n\n var selectedOptions = _this.getSelectedOptions();\n var className = (0, _classnames2.default)('dd__search', s.dd__search);\n\n if (typeof searchInputRenderer === 'function') {\n return searchInputRenderer(selectedOptions, _this.onSearch);\n }\n\n return _react2.default.createElement('div', {\n contentEditable: true,\n tabIndex: 0,\n className: className,\n onInput: _this.onSearch,\n onKeyDown: _this.onSearch,\n onFocus: _this.onSearch,\n onClick: _this.onSearch,\n onPaste: _this.onSearch,\n onKeyUp: _this.onSearch,\n ref: function ref(e) {\n _this.searchInput = e;\n }\n });\n };\n\n _this.renderSelectedItem = function (option) {\n var _this$props7 = _this.props,\n valueKey = _this$props7.valueKey,\n labelKey = _this$props7.labelKey,\n multiple = _this$props7.multiple,\n s = _this$props7.s;\n\n var selectedOptionClasses = (0, _classnames2.default)('dd__selectedItem', s.dd__selectedItem);\n var crossIconClasses = (0, _classnames2.default)('dd__crossIcon', s.dd__crossIcon);\n\n return _react2.default.createElement(\n 'div',\n { className: selectedOptionClasses, key: _this.getProp(option, valueKey) },\n _react2.default.createElement(\n 'div',\n null,\n _this.getProp(option, labelKey)\n ),\n multiple && _react2.default.createElement(\n 'div',\n { className: crossIconClasses, onClick: _this.onRemoveSelected(option) },\n '\\xD7'\n )\n );\n };\n\n _this.renderIcon = function () {\n var _this$props8 = _this.props,\n iconRenderer = _this$props8.iconRenderer,\n s = _this$props8.s;\n var opened = _this.state.opened;\n\n if (typeof iconRenderer === 'function') {\n return iconRenderer(opened);\n }\n\n var className = (0, _classnames2.default)('dd__expandIcon', s.dd__expandIcon);\n var path = 'M315,1318.04l-4.5,4.96-4.5-4.96,0.944-1.04,3.557,3.92,3.553-3.92,0.944,1.04m-9-5.08,4.5-4.96,4.5,4.96-0.944,1.04-3.557-3.92-3.553,3.92L306,1312.96'; // eslint-disable-line max-len\n return _react2.default.createElement(\n 'svg',\n { className: className, viewBox: '0 0 9 15', width: '9px', height: '15px' },\n _react2.default.createElement('path', { d: path, transform: 'translate(-306 -1308)' })\n );\n };\n\n _this.renderAddNewItem = function () {\n var _this$props9 = _this.props,\n s = _this$props9.s,\n addNewItem = _this$props9.addNewItem;\n\n var classNames = (0, _classnames2.default)('dd__option', s.dd__option);\n\n if (addNewItem === false) {\n return null;\n }\n\n var search = _this.getSearchString();\n if (typeof addNewItem === 'function') {\n return addNewItem(search, _this.onAddNewItem);\n }\n\n return _react2.default.createElement(\n 'div',\n { className: classNames, onClick: _this.onAddNewItem },\n typeof addNewItem === 'undefined' || addNewItem === true ? 'Add \\'' + search + '\\'' : addNewItem\n );\n };\n\n _this.renderNoItemsFound = function () {\n var _this$props10 = _this.props,\n s = _this$props10.s,\n noItemsFound = _this$props10.noItemsFound;\n\n var classNames = (0, _classnames2.default)('dd__option', 'dd__optionDisabled', s.dd__option, s.dd__optionDisabled);\n\n if (noItemsFound === false) {\n return null;\n }\n\n if (typeof noItemsFound === 'function') {\n return noItemsFound();\n }\n\n return _react2.default.createElement(\n 'div',\n { className: classNames },\n typeof noItemsFound === 'undefined' || noItemsFound === true ? 'No items found' : noItemsFound\n );\n };\n\n _this.getProp = function (option, key) {\n var immutable = _this.props.immutable;\n\n return immutable ? option.get(key) : option[key];\n };\n\n _this.getCount = function (items) {\n var immutable = _this.props.immutable;\n\n if (!items) {\n return false;\n }\n return immutable ? items.size : items.length;\n };\n\n _this.getOptions = function () {\n var _this$props11 = _this.props,\n options = _this$props11.options,\n labelKey = _this$props11.labelKey,\n valueKey = _this$props11.valueKey;\n\n if (_this.getCount(options)) {\n // options are objects\n if (_typeof(_this.getProp(options, 0)) === 'object') {\n return options;\n }\n\n // options are strings or numbers\n return options.map(function (option) {\n var _this$validateDataStr2;\n\n return _this.validateDataStructure((_this$validateDataStr2 = {}, _defineProperty(_this$validateDataStr2, labelKey, option), _defineProperty(_this$validateDataStr2, valueKey, option), _this$validateDataStr2));\n });\n }\n\n // no options\n return _this.validateDataStructure([]);\n };\n\n _this.getSelectedOptions = function () {\n var _this$props12 = _this.props,\n value = _this$props12.value,\n multiple = _this$props12.multiple;\n\n var options = _this.getOptions();\n\n if (typeof value === 'undefined' || multiple && !_this.getCount(value)) {\n return _this.validateDataStructure([]);\n }\n\n var patchedOptions = multiple ? value.map(function (v) {\n return _this.patchSelectedOption(v, options);\n }) : [_this.patchSelectedOption(value, options)];\n\n return _this.validateDataStructure(patchedOptions.filter(function (option) {\n return !!option;\n }));\n };\n\n _this.getListProps = function () {\n var _this$props13 = _this.props,\n listHeight = _this$props13.listHeight,\n listMaxHeight = _this$props13.listMaxHeight,\n listPosition = _this$props13.listPosition,\n boundaryMargin = _this$props13.boundaryMargin,\n options = _this$props13.options;\n\n var direction = void 0;\n\n if (_this.ssr) {\n return {\n direction: DEFAULT_LIST_POSITION,\n calculatedListHeight: listHeight || listMaxHeight\n };\n }\n\n var refinedHeight = 0;\n if (listHeight) {\n refinedHeight = listHeight;\n } else {\n var optionsCount = _this.getCount(options);\n if (optionsCount) {\n for (var i = 0; i < optionsCount; i += 1) {\n if (refinedHeight >= listMaxHeight) {\n refinedHeight = listMaxHeight;\n break;\n }\n refinedHeight += _this.getOptionHeight({ index: i });\n }\n } else {\n refinedHeight = _this.getOptionHeight({ index: -1 });\n }\n }\n\n var _this$getOffset = _this.getOffset(),\n top = _this$getOffset.top,\n bottom = _this$getOffset.bottom;\n\n if (listPosition === 'auto') {\n direction = bottom < refinedHeight + boundaryMargin && top > bottom ? 'top' : 'bottom';\n } else {\n direction = listPosition;\n }\n\n var calculatedListHeight = void 0;\n if (listHeight) {\n calculatedListHeight = listHeight;\n } else {\n var maxAvailableHeight = (direction === 'top' ? top : bottom) - boundaryMargin;\n calculatedListHeight = Math.min(maxAvailableHeight, refinedHeight);\n }\n\n return {\n direction: direction,\n calculatedListHeight: calculatedListHeight\n };\n };\n\n _this.getOffset = function () {\n if (_this.ssr || !_this.el) {\n return { top: 0, bottom: 0 };\n }\n\n var getWrapper = _this.props.getWrapper;\n\n var wrapper = getWrapper();\n var rectEl = _this.el.getBoundingClientRect();\n if (wrapper) {\n // calculate offsets based on wrapper position\n var rectWrapper = wrapper.getBoundingClientRect();\n return {\n top: rectEl.top - rectWrapper.top,\n bottom: rectWrapper.bottom - rectEl.bottom\n };\n }\n\n // calculate offsets based on viewport\n var viewportHeight = window.document.documentElement.clientHeight;\n return { top: rectEl.top, bottom: viewportHeight - rectEl.bottom };\n };\n\n _this.getOptionHeight = function (_ref2) {\n var index = _ref2.index;\n var _this$props14 = _this.props,\n optionHeight = _this$props14.optionHeight,\n options = _this$props14.options;\n\n return typeof optionHeight === 'function' ? optionHeight(_this.getProp(options, index)) : optionHeight;\n };\n\n _this.getSearchString = function () {\n return (_this.searchInput.textContent || _this.searchInput.innerText || '').replace(/\\n/g, '');\n };\n\n _this.onChange = function (option, removeFromSelectedBlock) {\n return function () {\n var _this$props15 = _this.props,\n multiple = _this$props15.multiple,\n immutable = _this$props15.immutable,\n onChange = _this$props15.onChange,\n valueKey = _this$props15.valueKey,\n labelKey = _this$props15.labelKey,\n searchDefaultsToSelectedValue = _this$props15.searchDefaultsToSelectedValue;\n\n var selectedValue = void 0;\n\n if (multiple) {\n // prepare values for multiselect\n var values = _this.getSelectedOptions();\n var selectedIndex = values.findIndex(function (v) {\n return _this.getProp(v, valueKey) === _this.getProp(option, valueKey);\n });\n if (selectedIndex === -1) {\n // add new option to selected values\n selectedValue = immutable ? values.push(option) : [].concat(_toConsumableArray(values), [option]);\n } else {\n // remove option from selected values\n selectedValue = values.filter(function (v, i) {\n return i !== selectedIndex;\n });\n }\n } else {\n selectedValue = option;\n }\n\n if (onChange(selectedValue, removeFromSelectedBlock) === false) {\n _this.skipEventPropagation();\n }\n\n if (searchDefaultsToSelectedValue) {\n _this.setSearchValue(_this.getProp(option, labelKey));\n }\n };\n };\n\n _this.onRemoveSelected = function (option) {\n return function (e) {\n _this.skipEventPropagation();\n _this.onChange(option, true)(e);\n };\n };\n\n _this.onToggle = function (e) {\n if (_this.skipPropagation) {\n return;\n }\n\n var _this$props16 = _this.props,\n searchable = _this$props16.searchable,\n beforeOpen = _this$props16.beforeOpen,\n beforeClose = _this$props16.beforeClose,\n isOpened = _this$props16.isOpened,\n disabled = _this$props16.disabled,\n opened = _this.state.opened;\n\n\n var nextState = isOpened !== undefined ? isOpened : !opened;\n var beforeFunc = nextState ? beforeOpen : beforeClose;\n\n if (!disabled && nextState !== opened && beforeFunc(e) !== false) {\n var afterFunc = nextState ? _this.onOpen : _this.onClose;\n _this.skipEventPropagation();\n if (searchable && _this.searchInput) {\n if (nextState) {\n _this.searchInput.focus();\n } else {\n _this.searchInput.blur();\n window.getSelection().removeAllRanges();\n }\n }\n _this.setState({ opened: nextState }, afterFunc);\n }\n };\n\n _this.onSearch = function (evt) {\n // `document.documentMode` isn't undefined in IE only.\n // See more https://msdn.microsoft.com/library/cc196988(v=vs.85).aspx\n if (!_this.searchInput || evt.type === 'keyup' && !document.documentMode) {\n return;\n }\n\n var doSearch = function doSearch() {\n var search = _this.getSearchString();\n if (search !== _this.prevSearch) {\n _this.setState({ search: search });\n\n var onSearch = _this.props.onSearch;\n\n if (typeof onSearch === 'function') {\n onSearch(search);\n }\n }\n _this.prevSearch = search;\n };\n\n if (!_this.skipPropagation) {\n var opened = _this.state.opened;\n\n switch (evt.type) {\n case 'paste':\n // strip html tags\n evt.preventDefault();\n\n // Get pasted data via clipboard API\n var clipboardData = evt.clipboardData || window.clipboardData;\n var newContent = _this.searchInput.textContent + clipboardData.getData('Text');\n\n // set new content\n _this.searchInput.textContent = newContent;\n\n // place cursor to the end\n var range = document.createRange();\n range.selectNodeContents(_this.searchInput);\n range.collapse(false);\n var selection = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(range);\n\n // trigger search\n doSearch();\n break;\n case 'focus':\n // open dropdown onFocus\n if (!opened) {\n _this.onToggle(evt);\n _this.skipPropagation = undefined;\n }\n break;\n case 'click':\n // do not close dropdown onClick\n if (opened) {\n _this.skipEventPropagation();\n }\n break;\n case 'keydown':\n if (evt.nativeEvent.keyCode === 9 && opened) {\n // close dropdown on Tab keydown\n // blur via Tab\n _this.onToggle(evt);\n _this.skipPropagation = undefined;\n } else if (evt.nativeEvent.keyCode === 13) {\n // restrict new line\n evt.preventDefault();\n }\n break;\n case 'input':\n case 'keyup':\n doSearch();\n break;\n default:\n break;\n }\n }\n };\n\n _this.onAddNewItem = function (params) {\n var onAddNewItem = _this.props.onAddNewItem;\n\n if (typeof onAddNewItem === 'function') {\n onAddNewItem(_this.getSearchString(), _this.getSelectedOptions(), params);\n }\n };\n\n _this.onOpen = function () {\n var onOpen = _this.props.onOpen;\n\n if (typeof onOpen === 'function') {\n onOpen();\n }\n };\n\n _this.onClose = function () {\n var _this$props17 = _this.props,\n onClose = _this$props17.onClose,\n searchClearOnClose = _this$props17.searchClearOnClose,\n searchDefaultsToSelectedValue = _this$props17.searchDefaultsToSelectedValue;\n var search = _this.state.search;\n\n\n if (!searchDefaultsToSelectedValue && searchClearOnClose && search) {\n _this.setSearchValue('');\n }\n\n if (typeof onClose === 'function') {\n onClose();\n }\n };\n\n _this.state = {\n opened: props.isOpened === undefined ? false : props.isOpened,\n search: ''\n };\n\n _this.ssr = typeof window === 'undefined';\n return _this;\n }\n\n /** **************************************\n ************ Lifecycle events ************\n **************************************** */\n\n\n _createClass(ReactSelectMe, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n document.addEventListener('click', this.closeGlobal);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n document.removeEventListener('click', this.closeGlobal);\n }\n\n /** **************************************\n **************** Utils *******************\n **************************************** */\n\n }, {\n key: 'warn',\n value: function warn(msg) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(msg); // eslint-disable-line no-console\n }\n }\n\n /** **************************************\n ************** Renderers *****************\n **************************************** */\n\n\n /** **************************************\n *************** Getters ******************\n **************************************** */\n\n\n /** **************************************\n **************** Events ******************\n **************************************** */\n\n }, {\n key: 'render',\n\n\n /** **************************************\n **************** Render ******************\n **************************************** */\n value: function render() {\n var _cs3,\n _this2 = this;\n\n var _props = this.props,\n error = _props.error,\n multiple = _props.multiple,\n disabled = _props.disabled,\n s = _props.s;\n var opened = this.state.opened;\n\n // classnames\n\n var wrapperClassnames = (0, _classnames2.default)('dd__wrapper', s.dd__wrapper, (_cs3 = {\n dd__opened: opened,\n dd__error: error,\n dd__multi: multiple,\n dd__disabled: disabled\n }, _defineProperty(_cs3, s.dd__opened, opened), _defineProperty(_cs3, s.dd__error, error), _defineProperty(_cs3, s.dd__multi, multiple), _defineProperty(_cs3, s.dd__disabled, disabled), _cs3));\n var selectControlClasses = (0, _classnames2.default)('dd__selectControl', s.dd__selectControl);\n var toggleHandler = this.onToggle;\n\n return _react2.default.createElement(\n 'div',\n { className: wrapperClassnames },\n _react2.default.createElement(\n 'div',\n {\n className: selectControlClasses,\n onClick: toggleHandler,\n ref: function ref(el) {\n _this2.el = el;\n }\n },\n this.renderSelectedBlock(),\n this.renderIcon()\n ),\n this.renderList()\n );\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(_ref3, state) {\n var isOpened = _ref3.isOpened;\n var opened = state.opened;\n\n if (isOpened !== undefined && opened !== isOpened) {\n return _extends({}, state, {\n opened: isOpened\n });\n }\n\n return state;\n }\n }]);\n\n return ReactSelectMe;\n}(_react.PureComponent);\n\nexports.default = ReactSelectMe;\n\n\nReactSelectMe.defaultProps = _propsDefinitions.defaultProps;\nReactSelectMe.propTypes = _propsDefinitions.propTypes;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.propTypes = exports.defaultProps = undefined;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar defaultProps = exports.defaultProps = {\n addNewItem: false,\n beforeClose: function beforeClose() {\n return true;\n },\n beforeOpen: function beforeOpen() {\n return true;\n },\n boundaryMargin: 8,\n disabled: false,\n error: false,\n getWrapper: function getWrapper() {\n return null;\n },\n iconRenderer: undefined,\n immutable: false,\n isOpened: undefined,\n labelKey: 'label',\n listHeight: undefined,\n listRenderer: undefined,\n multiple: false,\n listMaxHeight: 400,\n listPosition: 'auto',\n noItemsFound: true,\n onAddNewItem: function onAddNewItem() {\n return null;\n },\n onChange: function onChange() {\n return null;\n },\n onClose: function onClose() {\n return null;\n },\n onOpen: function onOpen() {\n return null;\n },\n optionHeight: 40,\n options: [],\n optionRenderer: undefined,\n onSearch: undefined,\n placeholder: 'Select ...',\n valueKey: 'value',\n s: {},\n searchable: false,\n searchClearOnClose: true,\n searchDefaultsToSelectedValue: false,\n searchInputRenderer: undefined,\n selectedBlockRenderer: undefined,\n selectedValueRenderer: undefined,\n value: undefined,\n virtualized: false\n};\n\nvar classType = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array]);\n\nvar propTypes = exports.propTypes = {\n addNewItem: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.string, _propTypes2.default.func, _propTypes2.default.element]),\n beforeClose: _propTypes2.default.func,\n beforeOpen: _propTypes2.default.func,\n boundaryMargin: _propTypes2.default.number,\n disabled: _propTypes2.default.bool,\n error: _propTypes2.default.bool,\n forbidPhantomSelection: _propTypes2.default.bool,\n getWrapper: _propTypes2.default.func,\n iconRenderer: _propTypes2.default.func,\n immutable: _propTypes2.default.bool,\n isOpened: _propTypes2.default.bool,\n labelKey: _propTypes2.default.string,\n listHeight: _propTypes2.default.number,\n listMaxHeight: _propTypes2.default.number,\n listPosition: _propTypes2.default.oneOf(['top', 'bottom', 'auto']),\n listRenderer: _propTypes2.default.func,\n multiple: _propTypes2.default.bool,\n noItemsFound: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.string, _propTypes2.default.func, _propTypes2.default.element]),\n onAddNewItem: _propTypes2.default.func,\n onChange: _propTypes2.default.func.isRequired,\n onClose: _propTypes2.default.func,\n onOpen: _propTypes2.default.func,\n onSearch: _propTypes2.default.func,\n optionRenderer: _propTypes2.default.func,\n options: _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object]),\n placeholder: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),\n optionHeight: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.func]),\n /* eslint-disable react/no-unused-prop-types */\n s: _propTypes2.default.shape({\n // wrapper\n dd__wrapper: classType,\n // applied to multi select\n dd__multi: classType,\n // applied to single select\n dd__single: classType,\n // applied when dropdown opened\n dd__opened: classType,\n // applied when dropdown has error property\n dd__error: classType,\n // disabled\n dd_disabled: classType,\n // selected block class\n dd__selectControl: classType,\n // selected values wrapper class\n dd__selected: classType,\n // placeholder class\n dd__placeholder: classType,\n // selected option class\n dd__selectedItem: classType,\n // icon to remove selected value class\n dd__crossIcon: classType,\n // list class\n dd__list: classType,\n // virtualized list class\n dd__listVirtualized: classType,\n // applied when select opens to bottom\n dd__openTobottom: classType,\n // applied when select opens to top\n dd__openTotop: classType,\n // dropdown option\n dd__option: classType,\n // dropdown option\n dd__optionDisabled: classType,\n // virtualized option class\n dd__optionVirtualized: classType,\n // selected dropdown option\n dd__selectedOption: classType\n }),\n /* eslint-enable react/no-unused-prop-types */\n searchable: _propTypes2.default.bool,\n searchClearOnClose: _propTypes2.default.bool,\n searchDefaultsToSelectedValue: _propTypes2.default.bool,\n searchInputRenderer: _propTypes2.default.func,\n selectedBlockRenderer: _propTypes2.default.func,\n selectedValueRenderer: _propTypes2.default.func,\n value: _propTypes2.default.any,\n valueKey: _propTypes2.default.string,\n virtualized: _propTypes2.default.bool,\n // from HOC\n toImmutable: _propTypes2.default.func\n};"],"sourceRoot":""}