{"version":3,"sources":["webpack:///./node_modules/react-autowhatever/dist/compareObjects.js","webpack:///./node_modules/react-autosuggest/dist/index.js","webpack:///./node_modules/react-autosuggest/dist/Autosuggest.js","webpack:///./node_modules/shallow-equal/arrays/index.js","webpack:///./node_modules/react-autowhatever/dist/index.js","webpack:///./node_modules/react-autowhatever/dist/Autowhatever.js","webpack:///./node_modules/section-iterator/dist/index.js","webpack:///./node_modules/react-themeable/dist/index.js","webpack:///./node_modules/react-themeable/node_modules/object-assign/index.js","webpack:///./node_modules/react-autowhatever/dist/SectionTitle.js","webpack:///./node_modules/react-autowhatever/dist/ItemsList.js","webpack:///./node_modules/react-autowhatever/dist/Item.js","webpack:///./node_modules/react-autosuggest/dist/theme.js"],"names":["Object","defineProperty","exports","value","_typeof","Symbol","iterator","obj","constructor","prototype","default","objA","objB","keys","arguments","length","undefined","aKeys","bKeys","keysMap","i","len","key","aValue","bValue","aValueKeys","bValueKeys","n","aValueKey","module","__webpack_require__","_extends","assign","target","source","hasOwnProperty","call","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_react","_react2","_interopRequireDefault","_propTypes2","_arrays2","_reactAutowhatever2","_theme","__esModule","alwaysTrue","Autosuggest","_Component","_ref2","alwaysRenderSuggestions","instance","TypeError","_classCallCheck","this","_this","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","_initialiseProps","state","isFocused","isCollapsed","highlightedSectionIndex","highlightedSuggestionIndex","highlightedSuggestion","valueBeforeUpDown","justPressedUpDown","justMouseEntered","pressedSuggestion","subClass","superClass","create","setPrototypeOf","_inherits","Component","document","addEventListener","onDocumentMouseDown","onDocumentMouseUp","input","autowhatever","suggestionsContainer","itemsContainer","nextProps","suggestions","highlightFirstSuggestion","willRenderSuggestions","justSelectedSuggestion","revealSuggestions","resetHighlightedSuggestion","prevProps","prevState","_props","onSuggestionHighlighted","getHighlightedSuggestion","suggestion","removeEventListener","sectionIndex","suggestionIndex","prevValue","_this2","setState","getSuggestion","shouldResetValueBeforeUpDown","_props2","multiSection","getSectionSuggestions","_state","getSuggestionValue","suggestionElement","getAttribute","parseInt","startNode","node","parentNode","console","error","Error","event","newValue","method","_props$inputProps","inputProps","onChange","shouldRenderSuggestions","trim","_this3","_props3","renderInputComponent","onSuggestionsFetchRequested","renderSuggestion","renderSectionTitle","id","theme","_state2","_onFocus","onFocus","_onKeyDown","onKeyDown","isOpen","items","autowhateverInputProps","justClickedOnSuggestionsContainer","shouldRender","reason","onBlur","focus","blurEvent","onSuggestionsClearRequested","maybeCallOnChange","scrollTop","data","keyCode","newHighlightedSectionIndex","newHighlightedItemIndex","getSuggestionValueByIndex","updateHighlightedSuggestion","preventDefault","setTimeout","closeSuggestions","_newValue","onSuggestionSelected","suggestionValue","willCloseSuggestions","renderSuggestionData","query","getQuery","createElement","renderItemsContainer","renderSuggestionsContainer","renderItem","renderItemData","getSectionItems","highlightedItemIndex","itemProps","mapToAutowhateverTheme","ref","storeAutowhateverRef","propTypes","array","isRequired","propName","func","bool","focusInputOnSuggestionClick","object","string","defaultProps","_ref","containerProps","children","defaultTheme","_this4","detail","onSuggestionMouseEnter","_ref3","itemIndex","onSuggestionMouseDown","_props4","onSuggestionClick","_props5","_getSuggestionIndices","getSuggestionIndices","findSuggestionElement","clickedSuggestion","clickedSuggestionValue","_props6","onSuggestionMouseLeave","onSuggestionTouchStart","onSuggestionTouchMove","_ref4","data-section-index","data-suggestion-index","onMouseEnter","onMouseLeave","onMouseDown","onTouchStart","onTouchMove","onClick","_ref5","arrA","arrB","_slicedToArray","arr","Array","isArray","_arr","_n","_d","_e","_s","_i","next","done","push","err","sliceIterator","_sectionIterator2","_reactThemeable2","_SectionTitle2","_ItemsList2","emptyObject","Autowhatever","storeInputReference","storeItemsContainerReference","onHighlightedItemChange","highlightedItem","getItemId","isInputFocused","_this$props","nextPrev","_this$sectionIterator","sectionIterator","_this$sectionIterator2","setSectionsItems","setSectionIterator","setTheme","ensureHighlightedItemIsVisible","sectionsItems","map","section","sectionsLengths","allSectionsAreEmpty","every","itemsCount","keyPrefix","sectionKeyPrefix","isFirstSection","storeItemsListReference","itemOffsetRelativeToContainer","offsetParent","offsetTop","offsetHeight","renderedItems","renderSections","renderItems","ariaActivedescendant","itemsContainerId","role","aria-haspopup","aria-owns","aria-expanded","inputComponent","type","autoComplete","aria-autocomplete","aria-controls","aria-activedescendant","oneOfType","number","container","containerOpen","inputOpen","inputFocused","itemsContainerOpen","itemsList","item","itemFirst","itemHighlighted","sectionContainer","sectionContainerFirst","sectionTitle","position","_position","nextNonEmptySectionIndex","prev","_position2","prevNonEmptySectionIndex","isLast","_toConsumableArray","arr2","from","_objectAssign","_objectAssign2","truthy","x","classNameDecorator","_len","names","_key","styles","name","filter","className","apply","join","style","concat","propIsEnumerable","propertyIsEnumerable","ownEnumerableKeys","getOwnPropertyNames","getOwnPropertySymbols","to","val","ToObject","s","_compareObjects2","SectionTitle","any","_Item2","ItemsList","_temp","args","storeHighlightedItemReference","sectionPrefix","isItemPropsFunction","isFirst","isHighlighted","itemKey","itemPropsObj","allItemProps","aria-selected","Item","storeItemReference","_this$props2","_this$props3","_this$props4","restProps","indexOf","_objectWithoutProperties","suggestionsContainerOpen","suggestionsList","suggestionFirst","suggestionHighlighted","result"],"mappings":"2FAEAA,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAAAC,EAAA,mBAAAC,QAAA,iBAAAA,OAAAC,SAAA,SAAAC,GAAoG,cAAAA,GAAqB,SAAAA,GAAmB,OAAAA,GAAA,mBAAAF,QAAAE,EAAAC,cAAAH,QAAAE,IAAAF,OAAAI,UAAA,gBAAAF,GAE5IL,EAAAQ,QACA,SAAAC,EAAAC,GACA,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,MAEA,GAAAH,IAAAC,EACA,SAGA,IAAAK,EAAAjB,OAAAa,KAAAF,GACAO,EAAAlB,OAAAa,KAAAD,GAEA,GAAAK,EAAAF,SAAAG,EAA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endors~cta-banner-ce27aa9813dbeb5788a9.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\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\nexports.default = compareObjects;\nfunction compareObjects(objA, objB) {\n var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n if (objA === objB) {\n return false;\n }\n\n var aKeys = Object.keys(objA);\n var bKeys = Object.keys(objB);\n\n if (aKeys.length !== bKeys.length) {\n return true;\n }\n\n var keysMap = {};\n var i = void 0,\n len = void 0;\n\n for (i = 0, len = keys.length; i < len; i++) {\n keysMap[keys[i]] = true;\n }\n\n for (i = 0, len = aKeys.length; i < len; i++) {\n var key = aKeys[i];\n var aValue = objA[key];\n var bValue = objB[key];\n\n if (aValue === bValue) {\n continue;\n }\n\n if (!keysMap[key] || aValue === null || bValue === null || (typeof aValue === 'undefined' ? 'undefined' : _typeof(aValue)) !== 'object' || (typeof bValue === 'undefined' ? 'undefined' : _typeof(bValue)) !== 'object') {\n return true;\n }\n\n var aValueKeys = Object.keys(aValue);\n var bValueKeys = Object.keys(bValue);\n\n if (aValueKeys.length !== bValueKeys.length) {\n return true;\n }\n\n for (var n = 0, length = aValueKeys.length; n < length; n++) {\n var aValueKey = aValueKeys[n];\n\n if (aValue[aValueKey] !== bValue[aValueKey]) {\n return true;\n }\n }\n }\n\n return false;\n}","'use strict';\n\nmodule.exports = require('./Autosuggest').default;","'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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _arrays = require('shallow-equal/arrays');\n\nvar _arrays2 = _interopRequireDefault(_arrays);\n\nvar _reactAutowhatever = require('react-autowhatever');\n\nvar _reactAutowhatever2 = _interopRequireDefault(_reactAutowhatever);\n\nvar _theme = require('./theme');\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 alwaysTrue = function alwaysTrue() {\n return true;\n};\nvar defaultShouldRenderSuggestions = function defaultShouldRenderSuggestions(value) {\n return value.trim().length > 0;\n};\nvar defaultRenderSuggestionsContainer = function defaultRenderSuggestionsContainer(_ref) {\n var containerProps = _ref.containerProps,\n children = _ref.children;\n return _react2.default.createElement(\n 'div',\n containerProps,\n children\n );\n};\n\nvar Autosuggest = function (_Component) {\n _inherits(Autosuggest, _Component);\n\n function Autosuggest(_ref2) {\n var alwaysRenderSuggestions = _ref2.alwaysRenderSuggestions;\n\n _classCallCheck(this, Autosuggest);\n\n var _this = _possibleConstructorReturn(this, (Autosuggest.__proto__ || Object.getPrototypeOf(Autosuggest)).call(this));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n isFocused: false,\n isCollapsed: !alwaysRenderSuggestions,\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null\n };\n\n _this.justPressedUpDown = false;\n _this.justMouseEntered = false;\n\n _this.pressedSuggestion = null;\n return _this;\n }\n\n _createClass(Autosuggest, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n document.addEventListener('mousedown', this.onDocumentMouseDown);\n document.addEventListener('mouseup', this.onDocumentMouseUp);\n\n this.input = this.autowhatever.input;\n this.suggestionsContainer = this.autowhatever.itemsContainer;\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ((0, _arrays2.default)(nextProps.suggestions, this.props.suggestions)) {\n if (nextProps.highlightFirstSuggestion && nextProps.suggestions.length > 0 && this.justPressedUpDown === false && this.justMouseEntered === false) {\n this.highlightFirstSuggestion();\n }\n } else {\n if (this.willRenderSuggestions(nextProps)) {\n if (this.state.isCollapsed && !this.justSelectedSuggestion) {\n this.revealSuggestions();\n }\n } else {\n this.resetHighlightedSuggestion();\n }\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n var _props = this.props,\n suggestions = _props.suggestions,\n onSuggestionHighlighted = _props.onSuggestionHighlighted,\n highlightFirstSuggestion = _props.highlightFirstSuggestion;\n\n\n if (!(0, _arrays2.default)(suggestions, prevProps.suggestions) && suggestions.length > 0 && highlightFirstSuggestion) {\n this.highlightFirstSuggestion();\n return;\n }\n\n if (onSuggestionHighlighted) {\n var highlightedSuggestion = this.getHighlightedSuggestion();\n var prevHighlightedSuggestion = prevState.highlightedSuggestion;\n\n if (highlightedSuggestion != prevHighlightedSuggestion) {\n onSuggestionHighlighted({\n suggestion: highlightedSuggestion\n });\n }\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n document.removeEventListener('mousedown', this.onDocumentMouseDown);\n document.removeEventListener('mouseup', this.onDocumentMouseUp);\n }\n }, {\n key: 'updateHighlightedSuggestion',\n value: function updateHighlightedSuggestion(sectionIndex, suggestionIndex, prevValue) {\n var _this2 = this;\n\n this.setState(function (state) {\n var valueBeforeUpDown = state.valueBeforeUpDown;\n\n\n if (suggestionIndex === null) {\n valueBeforeUpDown = null;\n } else if (valueBeforeUpDown === null && typeof prevValue !== 'undefined') {\n valueBeforeUpDown = prevValue;\n }\n\n return {\n highlightedSectionIndex: sectionIndex,\n highlightedSuggestionIndex: suggestionIndex,\n highlightedSuggestion: suggestionIndex === null ? null : _this2.getSuggestion(sectionIndex, suggestionIndex),\n valueBeforeUpDown: valueBeforeUpDown\n };\n });\n }\n }, {\n key: 'resetHighlightedSuggestion',\n value: function resetHighlightedSuggestion() {\n var shouldResetValueBeforeUpDown = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n this.setState(function (state) {\n var valueBeforeUpDown = state.valueBeforeUpDown;\n\n\n return {\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: shouldResetValueBeforeUpDown ? null : valueBeforeUpDown\n };\n });\n }\n }, {\n key: 'revealSuggestions',\n value: function revealSuggestions() {\n this.setState({\n isCollapsed: false\n });\n }\n }, {\n key: 'closeSuggestions',\n value: function closeSuggestions() {\n this.setState({\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null,\n isCollapsed: true\n });\n }\n }, {\n key: 'getSuggestion',\n value: function getSuggestion(sectionIndex, suggestionIndex) {\n var _props2 = this.props,\n suggestions = _props2.suggestions,\n multiSection = _props2.multiSection,\n getSectionSuggestions = _props2.getSectionSuggestions;\n\n\n if (multiSection) {\n return getSectionSuggestions(suggestions[sectionIndex])[suggestionIndex];\n }\n\n return suggestions[suggestionIndex];\n }\n }, {\n key: 'getHighlightedSuggestion',\n value: function getHighlightedSuggestion() {\n var _state = this.state,\n highlightedSectionIndex = _state.highlightedSectionIndex,\n highlightedSuggestionIndex = _state.highlightedSuggestionIndex;\n\n\n if (highlightedSuggestionIndex === null) {\n return null;\n }\n\n return this.getSuggestion(highlightedSectionIndex, highlightedSuggestionIndex);\n }\n }, {\n key: 'getSuggestionValueByIndex',\n value: function getSuggestionValueByIndex(sectionIndex, suggestionIndex) {\n var getSuggestionValue = this.props.getSuggestionValue;\n\n\n return getSuggestionValue(this.getSuggestion(sectionIndex, suggestionIndex));\n }\n }, {\n key: 'getSuggestionIndices',\n value: function getSuggestionIndices(suggestionElement) {\n var sectionIndex = suggestionElement.getAttribute('data-section-index');\n var suggestionIndex = suggestionElement.getAttribute('data-suggestion-index');\n\n return {\n sectionIndex: typeof sectionIndex === 'string' ? parseInt(sectionIndex, 10) : null,\n suggestionIndex: parseInt(suggestionIndex, 10)\n };\n }\n }, {\n key: 'findSuggestionElement',\n value: function findSuggestionElement(startNode) {\n var node = startNode;\n\n do {\n if (node.getAttribute('data-suggestion-index') !== null) {\n return node;\n }\n\n node = node.parentNode;\n } while (node !== null);\n\n console.error('Clicked element:', startNode); // eslint-disable-line no-console\n throw new Error(\"Couldn't find suggestion element\");\n }\n }, {\n key: 'maybeCallOnChange',\n value: function maybeCallOnChange(event, newValue, method) {\n var _props$inputProps = this.props.inputProps,\n value = _props$inputProps.value,\n onChange = _props$inputProps.onChange;\n\n\n if (newValue !== value) {\n onChange(event, { newValue: newValue, method: method });\n }\n }\n }, {\n key: 'willRenderSuggestions',\n value: function willRenderSuggestions(props) {\n var suggestions = props.suggestions,\n inputProps = props.inputProps,\n shouldRenderSuggestions = props.shouldRenderSuggestions;\n var value = inputProps.value;\n\n\n return suggestions.length > 0 && shouldRenderSuggestions(value);\n }\n }, {\n key: 'getQuery',\n value: function getQuery() {\n var inputProps = this.props.inputProps;\n var value = inputProps.value;\n var valueBeforeUpDown = this.state.valueBeforeUpDown;\n\n\n return (valueBeforeUpDown === null ? value : valueBeforeUpDown).trim();\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props3 = this.props,\n suggestions = _props3.suggestions,\n renderInputComponent = _props3.renderInputComponent,\n onSuggestionsFetchRequested = _props3.onSuggestionsFetchRequested,\n renderSuggestion = _props3.renderSuggestion,\n inputProps = _props3.inputProps,\n multiSection = _props3.multiSection,\n renderSectionTitle = _props3.renderSectionTitle,\n id = _props3.id,\n getSectionSuggestions = _props3.getSectionSuggestions,\n theme = _props3.theme,\n getSuggestionValue = _props3.getSuggestionValue,\n alwaysRenderSuggestions = _props3.alwaysRenderSuggestions,\n highlightFirstSuggestion = _props3.highlightFirstSuggestion;\n var _state2 = this.state,\n isFocused = _state2.isFocused,\n isCollapsed = _state2.isCollapsed,\n highlightedSectionIndex = _state2.highlightedSectionIndex,\n highlightedSuggestionIndex = _state2.highlightedSuggestionIndex,\n valueBeforeUpDown = _state2.valueBeforeUpDown;\n\n var shouldRenderSuggestions = alwaysRenderSuggestions ? alwaysTrue : this.props.shouldRenderSuggestions;\n var value = inputProps.value,\n _onFocus = inputProps.onFocus,\n _onKeyDown = inputProps.onKeyDown;\n\n var willRenderSuggestions = this.willRenderSuggestions(this.props);\n var isOpen = alwaysRenderSuggestions || isFocused && !isCollapsed && willRenderSuggestions;\n var items = isOpen ? suggestions : [];\n var autowhateverInputProps = _extends({}, inputProps, {\n onFocus: function onFocus(event) {\n if (!_this3.justSelectedSuggestion && !_this3.justClickedOnSuggestionsContainer) {\n var shouldRender = shouldRenderSuggestions(value);\n\n _this3.setState({\n isFocused: true,\n isCollapsed: !shouldRender\n });\n\n _onFocus && _onFocus(event);\n\n if (shouldRender) {\n onSuggestionsFetchRequested({ value: value, reason: 'input-focused' });\n }\n }\n },\n onBlur: function onBlur(event) {\n if (_this3.justClickedOnSuggestionsContainer) {\n _this3.input.focus();\n return;\n }\n\n _this3.blurEvent = event;\n\n if (!_this3.justSelectedSuggestion) {\n _this3.onBlur();\n _this3.onSuggestionsClearRequested();\n }\n },\n onChange: function onChange(event) {\n var value = event.target.value;\n\n var shouldRender = shouldRenderSuggestions(value);\n\n _this3.maybeCallOnChange(event, value, 'type');\n\n if (_this3.suggestionsContainer) {\n _this3.suggestionsContainer.scrollTop = 0;\n }\n\n _this3.setState(_extends({}, highlightFirstSuggestion ? {} : {\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null\n }, {\n valueBeforeUpDown: null,\n isCollapsed: !shouldRender\n }));\n\n if (shouldRender) {\n onSuggestionsFetchRequested({ value: value, reason: 'input-changed' });\n } else {\n _this3.onSuggestionsClearRequested();\n }\n },\n onKeyDown: function onKeyDown(event, data) {\n var keyCode = event.keyCode;\n\n\n switch (keyCode) {\n case 40: // ArrowDown\n case 38:\n // ArrowUp\n if (isCollapsed) {\n if (shouldRenderSuggestions(value)) {\n onSuggestionsFetchRequested({\n value: value,\n reason: 'suggestions-revealed'\n });\n _this3.revealSuggestions();\n }\n } else if (suggestions.length > 0) {\n var newHighlightedSectionIndex = data.newHighlightedSectionIndex,\n newHighlightedItemIndex = data.newHighlightedItemIndex;\n\n\n var newValue = void 0;\n\n if (newHighlightedItemIndex === null) {\n // valueBeforeUpDown can be null if, for example, user\n // hovers on the first suggestion and then pressed Up.\n // If that happens, use the original input value.\n newValue = valueBeforeUpDown === null ? value : valueBeforeUpDown;\n } else {\n newValue = _this3.getSuggestionValueByIndex(newHighlightedSectionIndex, newHighlightedItemIndex);\n }\n\n _this3.updateHighlightedSuggestion(newHighlightedSectionIndex, newHighlightedItemIndex, value);\n _this3.maybeCallOnChange(event, newValue, keyCode === 40 ? 'down' : 'up');\n }\n\n event.preventDefault(); // Prevents the cursor from moving\n\n _this3.justPressedUpDown = true;\n\n setTimeout(function () {\n _this3.justPressedUpDown = false;\n });\n\n break;\n\n // Enter\n case 13:\n {\n // See #388\n if (event.keyCode === 229) {\n break;\n }\n\n var highlightedSuggestion = _this3.getHighlightedSuggestion();\n\n if (isOpen && !alwaysRenderSuggestions) {\n _this3.closeSuggestions();\n }\n\n if (highlightedSuggestion != null) {\n var _newValue = getSuggestionValue(highlightedSuggestion);\n\n _this3.maybeCallOnChange(event, _newValue, 'enter');\n\n _this3.onSuggestionSelected(event, {\n suggestion: highlightedSuggestion,\n suggestionValue: _newValue,\n suggestionIndex: highlightedSuggestionIndex,\n sectionIndex: highlightedSectionIndex,\n method: 'enter'\n });\n\n _this3.justSelectedSuggestion = true;\n\n setTimeout(function () {\n _this3.justSelectedSuggestion = false;\n });\n }\n\n break;\n }\n\n // Escape\n case 27:\n {\n if (isOpen) {\n // If input.type === 'search', the browser clears the input\n // when Escape is pressed. We want to disable this default\n // behaviour so that, when suggestions are shown, we just hide\n // them, without clearing the input.\n event.preventDefault();\n }\n\n var willCloseSuggestions = isOpen && !alwaysRenderSuggestions;\n\n if (valueBeforeUpDown === null) {\n // Didn't interact with Up/Down\n if (!willCloseSuggestions) {\n var _newValue2 = '';\n\n _this3.maybeCallOnChange(event, _newValue2, 'escape');\n\n if (shouldRenderSuggestions(_newValue2)) {\n onSuggestionsFetchRequested({\n value: _newValue2,\n reason: 'escape-pressed'\n });\n } else {\n _this3.onSuggestionsClearRequested();\n }\n }\n } else {\n // Interacted with Up/Down\n _this3.maybeCallOnChange(event, valueBeforeUpDown, 'escape');\n }\n\n if (willCloseSuggestions) {\n _this3.onSuggestionsClearRequested();\n _this3.closeSuggestions();\n } else {\n _this3.resetHighlightedSuggestion();\n }\n\n break;\n }\n }\n\n _onKeyDown && _onKeyDown(event);\n }\n });\n var renderSuggestionData = {\n query: this.getQuery()\n };\n\n return _react2.default.createElement(_reactAutowhatever2.default, {\n multiSection: multiSection,\n items: items,\n renderInputComponent: renderInputComponent,\n renderItemsContainer: this.renderSuggestionsContainer,\n renderItem: renderSuggestion,\n renderItemData: renderSuggestionData,\n renderSectionTitle: renderSectionTitle,\n getSectionItems: getSectionSuggestions,\n highlightedSectionIndex: highlightedSectionIndex,\n highlightedItemIndex: highlightedSuggestionIndex,\n inputProps: autowhateverInputProps,\n itemProps: this.itemProps,\n theme: (0, _theme.mapToAutowhateverTheme)(theme),\n id: id,\n ref: this.storeAutowhateverRef\n });\n }\n }]);\n\n return Autosuggest;\n}(_react.Component);\n\nAutosuggest.propTypes = {\n suggestions: _propTypes2.default.array.isRequired,\n onSuggestionsFetchRequested: function onSuggestionsFetchRequested(props, propName) {\n var onSuggestionsFetchRequested = props[propName];\n\n if (typeof onSuggestionsFetchRequested !== 'function') {\n throw new Error(\"'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp\");\n }\n },\n onSuggestionsClearRequested: function onSuggestionsClearRequested(props, propName) {\n var onSuggestionsClearRequested = props[propName];\n\n if (props.alwaysRenderSuggestions === false && typeof onSuggestionsClearRequested !== 'function') {\n throw new Error(\"'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp\");\n }\n },\n onSuggestionSelected: _propTypes2.default.func,\n onSuggestionHighlighted: _propTypes2.default.func,\n renderInputComponent: _propTypes2.default.func,\n renderSuggestionsContainer: _propTypes2.default.func,\n getSuggestionValue: _propTypes2.default.func.isRequired,\n renderSuggestion: _propTypes2.default.func.isRequired,\n inputProps: function inputProps(props, propName) {\n var inputProps = props[propName];\n\n if (!inputProps.hasOwnProperty('value')) {\n throw new Error(\"'inputProps' must have 'value'.\");\n }\n\n if (!inputProps.hasOwnProperty('onChange')) {\n throw new Error(\"'inputProps' must have 'onChange'.\");\n }\n },\n shouldRenderSuggestions: _propTypes2.default.func,\n alwaysRenderSuggestions: _propTypes2.default.bool,\n multiSection: _propTypes2.default.bool,\n renderSectionTitle: function renderSectionTitle(props, propName) {\n var renderSectionTitle = props[propName];\n\n if (props.multiSection === true && typeof renderSectionTitle !== 'function') {\n throw new Error(\"'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp\");\n }\n },\n getSectionSuggestions: function getSectionSuggestions(props, propName) {\n var getSectionSuggestions = props[propName];\n\n if (props.multiSection === true && typeof getSectionSuggestions !== 'function') {\n throw new Error(\"'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp\");\n }\n },\n focusInputOnSuggestionClick: _propTypes2.default.bool,\n highlightFirstSuggestion: _propTypes2.default.bool,\n theme: _propTypes2.default.object,\n id: _propTypes2.default.string\n};\nAutosuggest.defaultProps = {\n renderSuggestionsContainer: defaultRenderSuggestionsContainer,\n shouldRenderSuggestions: defaultShouldRenderSuggestions,\n alwaysRenderSuggestions: false,\n multiSection: false,\n focusInputOnSuggestionClick: true,\n highlightFirstSuggestion: false,\n theme: _theme.defaultTheme,\n id: '1'\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this4 = this;\n\n this.onDocumentMouseDown = function (event) {\n _this4.justClickedOnSuggestionsContainer = false;\n\n var node = event.detail && event.detail.target || // This is for testing only. Please show me a better way to emulate this.\n event.target;\n\n while (node !== null && node !== document) {\n if (node.getAttribute('data-suggestion-index') !== null) {\n // Suggestion was clicked\n return;\n }\n\n if (node === _this4.suggestionsContainer) {\n // Something else inside suggestions container was clicked\n _this4.justClickedOnSuggestionsContainer = true;\n return;\n }\n\n node = node.parentNode;\n }\n };\n\n this.storeAutowhateverRef = function (autowhatever) {\n if (autowhatever !== null) {\n _this4.autowhatever = autowhatever;\n }\n };\n\n this.onSuggestionMouseEnter = function (event, _ref3) {\n var sectionIndex = _ref3.sectionIndex,\n itemIndex = _ref3.itemIndex;\n\n _this4.updateHighlightedSuggestion(sectionIndex, itemIndex);\n\n if (event.target === _this4.pressedSuggestion) {\n _this4.justSelectedSuggestion = true;\n }\n\n _this4.justMouseEntered = true;\n\n setTimeout(function () {\n _this4.justMouseEntered = false;\n });\n };\n\n this.highlightFirstSuggestion = function () {\n _this4.updateHighlightedSuggestion(_this4.props.multiSection ? 0 : null, 0);\n };\n\n this.onDocumentMouseUp = function () {\n if (_this4.pressedSuggestion && !_this4.justSelectedSuggestion) {\n _this4.input.focus();\n }\n _this4.pressedSuggestion = null;\n };\n\n this.onSuggestionMouseDown = function (event) {\n // Checking if this.justSelectedSuggestion is already true to not duplicate touch events in chrome\n // See: https://github.com/facebook/react/issues/9809#issuecomment-413978405\n if (!_this4.justSelectedSuggestion) {\n _this4.justSelectedSuggestion = true;\n _this4.pressedSuggestion = event.target;\n }\n };\n\n this.onSuggestionsClearRequested = function () {\n var onSuggestionsClearRequested = _this4.props.onSuggestionsClearRequested;\n\n\n onSuggestionsClearRequested && onSuggestionsClearRequested();\n };\n\n this.onSuggestionSelected = function (event, data) {\n var _props4 = _this4.props,\n alwaysRenderSuggestions = _props4.alwaysRenderSuggestions,\n onSuggestionSelected = _props4.onSuggestionSelected,\n onSuggestionsFetchRequested = _props4.onSuggestionsFetchRequested;\n\n\n onSuggestionSelected && onSuggestionSelected(event, data);\n\n if (alwaysRenderSuggestions) {\n onSuggestionsFetchRequested({\n value: data.suggestionValue,\n reason: 'suggestion-selected'\n });\n } else {\n _this4.onSuggestionsClearRequested();\n }\n\n _this4.resetHighlightedSuggestion();\n };\n\n this.onSuggestionClick = function (event) {\n var _props5 = _this4.props,\n alwaysRenderSuggestions = _props5.alwaysRenderSuggestions,\n focusInputOnSuggestionClick = _props5.focusInputOnSuggestionClick;\n\n var _getSuggestionIndices = _this4.getSuggestionIndices(_this4.findSuggestionElement(event.target)),\n sectionIndex = _getSuggestionIndices.sectionIndex,\n suggestionIndex = _getSuggestionIndices.suggestionIndex;\n\n var clickedSuggestion = _this4.getSuggestion(sectionIndex, suggestionIndex);\n var clickedSuggestionValue = _this4.props.getSuggestionValue(clickedSuggestion);\n\n _this4.maybeCallOnChange(event, clickedSuggestionValue, 'click');\n _this4.onSuggestionSelected(event, {\n suggestion: clickedSuggestion,\n suggestionValue: clickedSuggestionValue,\n suggestionIndex: suggestionIndex,\n sectionIndex: sectionIndex,\n method: 'click'\n });\n\n if (!alwaysRenderSuggestions) {\n _this4.closeSuggestions();\n }\n\n if (focusInputOnSuggestionClick === true) {\n _this4.input.focus();\n } else {\n _this4.onBlur();\n }\n\n setTimeout(function () {\n _this4.justSelectedSuggestion = false;\n });\n };\n\n this.onBlur = function () {\n var _props6 = _this4.props,\n inputProps = _props6.inputProps,\n shouldRenderSuggestions = _props6.shouldRenderSuggestions;\n var value = inputProps.value,\n onBlur = inputProps.onBlur;\n\n var highlightedSuggestion = _this4.getHighlightedSuggestion();\n var shouldRender = shouldRenderSuggestions(value);\n\n _this4.setState({\n isFocused: false,\n highlightedSectionIndex: null,\n highlightedSuggestionIndex: null,\n highlightedSuggestion: null,\n valueBeforeUpDown: null,\n isCollapsed: !shouldRender\n });\n\n onBlur && onBlur(_this4.blurEvent, { highlightedSuggestion: highlightedSuggestion });\n };\n\n this.onSuggestionMouseLeave = function (event) {\n _this4.resetHighlightedSuggestion(false); // shouldResetValueBeforeUpDown\n\n if (_this4.justSelectedSuggestion && event.target === _this4.pressedSuggestion) {\n _this4.justSelectedSuggestion = false;\n }\n };\n\n this.onSuggestionTouchStart = function () {\n _this4.justSelectedSuggestion = true;\n // todo: event.preventDefault when https://github.com/facebook/react/issues/2043\n // todo: gets released so onSuggestionMouseDown won't fire in chrome\n };\n\n this.onSuggestionTouchMove = function () {\n _this4.justSelectedSuggestion = false;\n _this4.pressedSuggestion = null;\n _this4.input.focus();\n };\n\n this.itemProps = function (_ref4) {\n var sectionIndex = _ref4.sectionIndex,\n itemIndex = _ref4.itemIndex;\n\n return {\n 'data-section-index': sectionIndex,\n 'data-suggestion-index': itemIndex,\n onMouseEnter: _this4.onSuggestionMouseEnter,\n onMouseLeave: _this4.onSuggestionMouseLeave,\n onMouseDown: _this4.onSuggestionMouseDown,\n onTouchStart: _this4.onSuggestionTouchStart,\n onTouchMove: _this4.onSuggestionTouchMove,\n onClick: _this4.onSuggestionClick\n };\n };\n\n this.renderSuggestionsContainer = function (_ref5) {\n var containerProps = _ref5.containerProps,\n children = _ref5.children;\n var renderSuggestionsContainer = _this4.props.renderSuggestionsContainer;\n\n\n return renderSuggestionsContainer({\n containerProps: containerProps,\n children: children,\n query: _this4.getQuery()\n });\n };\n};\n\nexports.default = Autosuggest;","'use strict';\n\nfunction shallowEqualArrays(arrA, arrB) {\n if (arrA === arrB) {\n return true;\n }\n\n if (!arrA || !arrB) {\n return false;\n }\n\n var len = arrA.length;\n\n if (arrB.length !== len) {\n return false;\n }\n\n for (var i = 0; i < len; i++) {\n if (arrA[i] !== arrB[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqualArrays;\n","'use strict';\n\nmodule.exports = require('./Autowhatever').default;","'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 _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _sectionIterator = require('section-iterator');\n\nvar _sectionIterator2 = _interopRequireDefault(_sectionIterator);\n\nvar _reactThemeable = require('react-themeable');\n\nvar _reactThemeable2 = _interopRequireDefault(_reactThemeable);\n\nvar _SectionTitle = require('./SectionTitle');\n\nvar _SectionTitle2 = _interopRequireDefault(_SectionTitle);\n\nvar _ItemsList = require('./ItemsList');\n\nvar _ItemsList2 = _interopRequireDefault(_ItemsList);\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 emptyObject = {};\nvar defaultRenderInputComponent = function defaultRenderInputComponent(props) {\n return _react2.default.createElement('input', props);\n};\nvar defaultRenderItemsContainer = function defaultRenderItemsContainer(_ref) {\n var containerProps = _ref.containerProps,\n children = _ref.children;\n return _react2.default.createElement(\n 'div',\n containerProps,\n children\n );\n};\nvar defaultTheme = {\n container: 'react-autowhatever__container',\n containerOpen: 'react-autowhatever__container--open',\n input: 'react-autowhatever__input',\n inputOpen: 'react-autowhatever__input--open',\n inputFocused: 'react-autowhatever__input--focused',\n itemsContainer: 'react-autowhatever__items-container',\n itemsContainerOpen: 'react-autowhatever__items-container--open',\n itemsList: 'react-autowhatever__items-list',\n item: 'react-autowhatever__item',\n itemFirst: 'react-autowhatever__item--first',\n itemHighlighted: 'react-autowhatever__item--highlighted',\n sectionContainer: 'react-autowhatever__section-container',\n sectionContainerFirst: 'react-autowhatever__section-container--first',\n sectionTitle: 'react-autowhatever__section-title'\n};\n\nvar Autowhatever = function (_Component) {\n _inherits(Autowhatever, _Component);\n\n function Autowhatever(props) {\n _classCallCheck(this, Autowhatever);\n\n var _this = _possibleConstructorReturn(this, (Autowhatever.__proto__ || Object.getPrototypeOf(Autowhatever)).call(this, props));\n\n _this.storeInputReference = function (input) {\n if (input !== null) {\n _this.input = input;\n }\n };\n\n _this.storeItemsContainerReference = function (itemsContainer) {\n if (itemsContainer !== null) {\n _this.itemsContainer = itemsContainer;\n }\n };\n\n _this.onHighlightedItemChange = function (highlightedItem) {\n _this.highlightedItem = highlightedItem;\n };\n\n _this.getItemId = function (sectionIndex, itemIndex) {\n if (itemIndex === null) {\n return null;\n }\n\n var id = _this.props.id;\n\n var section = sectionIndex === null ? '' : 'section-' + sectionIndex;\n\n return 'react-autowhatever-' + id + '-' + section + '-item-' + itemIndex;\n };\n\n _this.onFocus = function (event) {\n var inputProps = _this.props.inputProps;\n\n\n _this.setState({\n isInputFocused: true\n });\n\n inputProps.onFocus && inputProps.onFocus(event);\n };\n\n _this.onBlur = function (event) {\n var inputProps = _this.props.inputProps;\n\n\n _this.setState({\n isInputFocused: false\n });\n\n inputProps.onBlur && inputProps.onBlur(event);\n };\n\n _this.onKeyDown = function (event) {\n var _this$props = _this.props,\n inputProps = _this$props.inputProps,\n highlightedSectionIndex = _this$props.highlightedSectionIndex,\n highlightedItemIndex = _this$props.highlightedItemIndex;\n\n\n switch (event.key) {\n case 'ArrowDown':\n case 'ArrowUp':\n {\n var nextPrev = event.key === 'ArrowDown' ? 'next' : 'prev';\n\n var _this$sectionIterator = _this.sectionIterator[nextPrev]([highlightedSectionIndex, highlightedItemIndex]),\n _this$sectionIterator2 = _slicedToArray(_this$sectionIterator, 2),\n newHighlightedSectionIndex = _this$sectionIterator2[0],\n newHighlightedItemIndex = _this$sectionIterator2[1];\n\n inputProps.onKeyDown(event, { newHighlightedSectionIndex: newHighlightedSectionIndex, newHighlightedItemIndex: newHighlightedItemIndex });\n break;\n }\n\n default:\n inputProps.onKeyDown(event, { highlightedSectionIndex: highlightedSectionIndex, highlightedItemIndex: highlightedItemIndex });\n }\n };\n\n _this.highlightedItem = null;\n\n _this.state = {\n isInputFocused: false\n };\n\n _this.setSectionsItems(props);\n _this.setSectionIterator(props);\n _this.setTheme(props);\n return _this;\n }\n\n _createClass(Autowhatever, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.ensureHighlightedItemIsVisible();\n }\n\n // eslint-disable-next-line camelcase, react/sort-comp\n\n }, {\n key: 'UNSAFE_componentWillReceiveProps',\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.items !== this.props.items) {\n this.setSectionsItems(nextProps);\n }\n\n if (nextProps.items !== this.props.items || nextProps.multiSection !== this.props.multiSection) {\n this.setSectionIterator(nextProps);\n }\n\n if (nextProps.theme !== this.props.theme) {\n this.setTheme(nextProps);\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.ensureHighlightedItemIsVisible();\n }\n }, {\n key: 'setSectionsItems',\n value: function setSectionsItems(props) {\n if (props.multiSection) {\n this.sectionsItems = props.items.map(function (section) {\n return props.getSectionItems(section);\n });\n this.sectionsLengths = this.sectionsItems.map(function (items) {\n return items.length;\n });\n this.allSectionsAreEmpty = this.sectionsLengths.every(function (itemsCount) {\n return itemsCount === 0;\n });\n }\n }\n }, {\n key: 'setSectionIterator',\n value: function setSectionIterator(props) {\n this.sectionIterator = (0, _sectionIterator2.default)({\n multiSection: props.multiSection,\n data: props.multiSection ? this.sectionsLengths : props.items.length\n });\n }\n }, {\n key: 'setTheme',\n value: function setTheme(props) {\n this.theme = (0, _reactThemeable2.default)(props.theme);\n }\n }, {\n key: 'renderSections',\n value: function renderSections() {\n var _this2 = this;\n\n if (this.allSectionsAreEmpty) {\n return null;\n }\n\n var theme = this.theme;\n var _props = this.props,\n id = _props.id,\n items = _props.items,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n renderSectionTitle = _props.renderSectionTitle,\n highlightedSectionIndex = _props.highlightedSectionIndex,\n highlightedItemIndex = _props.highlightedItemIndex,\n itemProps = _props.itemProps;\n\n\n return items.map(function (section, sectionIndex) {\n var keyPrefix = 'react-autowhatever-' + id + '-';\n var sectionKeyPrefix = keyPrefix + 'section-' + sectionIndex + '-';\n var isFirstSection = sectionIndex === 0;\n\n // `key` is provided by theme()\n /* eslint-disable react/jsx-key */\n return _react2.default.createElement(\n 'div',\n theme(sectionKeyPrefix + 'container', 'sectionContainer', isFirstSection && 'sectionContainerFirst'),\n _react2.default.createElement(_SectionTitle2.default, {\n section: section,\n renderSectionTitle: renderSectionTitle,\n theme: theme,\n sectionKeyPrefix: sectionKeyPrefix\n }),\n _react2.default.createElement(_ItemsList2.default, {\n items: _this2.sectionsItems[sectionIndex],\n itemProps: itemProps,\n renderItem: renderItem,\n renderItemData: renderItemData,\n sectionIndex: sectionIndex,\n highlightedItemIndex: highlightedSectionIndex === sectionIndex ? highlightedItemIndex : null,\n onHighlightedItemChange: _this2.onHighlightedItemChange,\n getItemId: _this2.getItemId,\n theme: theme,\n keyPrefix: keyPrefix,\n ref: _this2.storeItemsListReference\n })\n );\n /* eslint-enable react/jsx-key */\n });\n }\n }, {\n key: 'renderItems',\n value: function renderItems() {\n var items = this.props.items;\n\n\n if (items.length === 0) {\n return null;\n }\n\n var theme = this.theme;\n var _props2 = this.props,\n id = _props2.id,\n renderItem = _props2.renderItem,\n renderItemData = _props2.renderItemData,\n highlightedSectionIndex = _props2.highlightedSectionIndex,\n highlightedItemIndex = _props2.highlightedItemIndex,\n itemProps = _props2.itemProps;\n\n\n return _react2.default.createElement(_ItemsList2.default, {\n items: items,\n itemProps: itemProps,\n renderItem: renderItem,\n renderItemData: renderItemData,\n highlightedItemIndex: highlightedSectionIndex === null ? highlightedItemIndex : null,\n onHighlightedItemChange: this.onHighlightedItemChange,\n getItemId: this.getItemId,\n theme: theme,\n keyPrefix: 'react-autowhatever-' + id + '-'\n });\n }\n }, {\n key: 'ensureHighlightedItemIsVisible',\n value: function ensureHighlightedItemIsVisible() {\n var highlightedItem = this.highlightedItem;\n\n\n if (!highlightedItem) {\n return;\n }\n\n var itemsContainer = this.itemsContainer;\n\n var itemOffsetRelativeToContainer = highlightedItem.offsetParent === itemsContainer ? highlightedItem.offsetTop : highlightedItem.offsetTop - itemsContainer.offsetTop;\n\n var scrollTop = itemsContainer.scrollTop; // Top of the visible area\n\n if (itemOffsetRelativeToContainer < scrollTop) {\n // Item is off the top of the visible area\n scrollTop = itemOffsetRelativeToContainer;\n } else if (itemOffsetRelativeToContainer + highlightedItem.offsetHeight > scrollTop + itemsContainer.offsetHeight) {\n // Item is off the bottom of the visible area\n scrollTop = itemOffsetRelativeToContainer + highlightedItem.offsetHeight - itemsContainer.offsetHeight;\n }\n\n if (scrollTop !== itemsContainer.scrollTop) {\n itemsContainer.scrollTop = scrollTop;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var theme = this.theme;\n var _props3 = this.props,\n id = _props3.id,\n multiSection = _props3.multiSection,\n renderInputComponent = _props3.renderInputComponent,\n renderItemsContainer = _props3.renderItemsContainer,\n highlightedSectionIndex = _props3.highlightedSectionIndex,\n highlightedItemIndex = _props3.highlightedItemIndex;\n var isInputFocused = this.state.isInputFocused;\n\n var renderedItems = multiSection ? this.renderSections() : this.renderItems();\n var isOpen = renderedItems !== null;\n var ariaActivedescendant = this.getItemId(highlightedSectionIndex, highlightedItemIndex);\n var itemsContainerId = 'react-autowhatever-' + id;\n var containerProps = _extends({\n role: 'combobox',\n 'aria-haspopup': 'listbox',\n 'aria-owns': itemsContainerId,\n 'aria-expanded': isOpen\n }, theme('react-autowhatever-' + id + '-container', 'container', isOpen && 'containerOpen'), this.props.containerProps);\n var inputComponent = renderInputComponent(_extends({\n type: 'text',\n value: '',\n autoComplete: 'off',\n 'aria-autocomplete': 'list',\n 'aria-controls': itemsContainerId,\n 'aria-activedescendant': ariaActivedescendant\n }, theme('react-autowhatever-' + id + '-input', 'input', isOpen && 'inputOpen', isInputFocused && 'inputFocused'), this.props.inputProps, {\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown,\n ref: this.storeInputReference\n }));\n var itemsContainer = renderItemsContainer({\n containerProps: _extends({\n id: itemsContainerId,\n role: 'listbox'\n }, theme('react-autowhatever-' + id + '-items-container', 'itemsContainer', isOpen && 'itemsContainerOpen'), {\n ref: this.storeItemsContainerReference\n }),\n children: renderedItems\n });\n\n return _react2.default.createElement(\n 'div',\n containerProps,\n inputComponent,\n itemsContainer\n );\n }\n }]);\n\n return Autowhatever;\n}(_react.Component);\n\nAutowhatever.propTypes = {\n id: _propTypes2.default.string, // Used in aria-* attributes. If multiple Autowhatever's are rendered on a page, they must have unique ids.\n multiSection: _propTypes2.default.bool, // Indicates whether a multi section layout should be rendered.\n renderInputComponent: _propTypes2.default.func, // When specified, it is used to render the input element.\n renderItemsContainer: _propTypes2.default.func, // Renders the items container.\n items: _propTypes2.default.array.isRequired, // Array of items or sections to render.\n renderItem: _propTypes2.default.func, // This function renders a single item.\n renderItemData: _propTypes2.default.object, // Arbitrary data that will be passed to renderItem()\n renderSectionTitle: _propTypes2.default.func, // This function gets a section and renders its title.\n getSectionItems: _propTypes2.default.func, // This function gets a section and returns its items, which will be passed into `renderItem` for rendering.\n containerProps: _propTypes2.default.object, // Arbitrary container props\n inputProps: _propTypes2.default.object, // Arbitrary input props\n itemProps: _propTypes2.default.oneOfType([// Arbitrary item props\n _propTypes2.default.object, _propTypes2.default.func]),\n highlightedSectionIndex: _propTypes2.default.number, // Section index of the highlighted item\n highlightedItemIndex: _propTypes2.default.number, // Highlighted item index (within a section)\n theme: _propTypes2.default.oneOfType([// Styles. See: https://github.com/markdalgleish/react-themeable\n _propTypes2.default.object, _propTypes2.default.array])\n};\nAutowhatever.defaultProps = {\n id: '1',\n multiSection: false,\n renderInputComponent: defaultRenderInputComponent,\n renderItemsContainer: defaultRenderItemsContainer,\n renderItem: function renderItem() {\n throw new Error('`renderItem` must be provided');\n },\n renderItemData: emptyObject,\n renderSectionTitle: function renderSectionTitle() {\n throw new Error('`renderSectionTitle` must be provided');\n },\n getSectionItems: function getSectionItems() {\n throw new Error('`getSectionItems` must be provided');\n },\n containerProps: emptyObject,\n inputProps: emptyObject,\n itemProps: emptyObject,\n highlightedSectionIndex: null,\n highlightedItemIndex: null,\n theme: defaultTheme\n};\nexports.default = Autowhatever;","\"use strict\";\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nmodule.exports = function (_ref) {\n var data = _ref.data;\n var multiSection = _ref.multiSection;\n\n function nextNonEmptySectionIndex(sectionIndex) {\n if (sectionIndex === null) {\n sectionIndex = 0;\n } else {\n sectionIndex++;\n }\n\n while (sectionIndex < data.length && data[sectionIndex] === 0) {\n sectionIndex++;\n }\n\n return sectionIndex === data.length ? null : sectionIndex;\n }\n\n function prevNonEmptySectionIndex(sectionIndex) {\n if (sectionIndex === null) {\n sectionIndex = data.length - 1;\n } else {\n sectionIndex--;\n }\n\n while (sectionIndex >= 0 && data[sectionIndex] === 0) {\n sectionIndex--;\n }\n\n return sectionIndex === -1 ? null : sectionIndex;\n }\n\n function next(position) {\n var _position = _slicedToArray(position, 2);\n\n var sectionIndex = _position[0];\n var itemIndex = _position[1];\n\n\n if (multiSection) {\n if (itemIndex === null || itemIndex === data[sectionIndex] - 1) {\n sectionIndex = nextNonEmptySectionIndex(sectionIndex);\n\n if (sectionIndex === null) {\n return [null, null];\n }\n\n return [sectionIndex, 0];\n }\n\n return [sectionIndex, itemIndex + 1];\n }\n\n if (data === 0 || itemIndex === data - 1) {\n return [null, null];\n }\n\n if (itemIndex === null) {\n return [null, 0];\n }\n\n return [null, itemIndex + 1];\n }\n\n function prev(position) {\n var _position2 = _slicedToArray(position, 2);\n\n var sectionIndex = _position2[0];\n var itemIndex = _position2[1];\n\n\n if (multiSection) {\n if (itemIndex === null || itemIndex === 0) {\n sectionIndex = prevNonEmptySectionIndex(sectionIndex);\n\n if (sectionIndex === null) {\n return [null, null];\n }\n\n return [sectionIndex, data[sectionIndex] - 1];\n }\n\n return [sectionIndex, itemIndex - 1];\n }\n\n if (data === 0 || itemIndex === 0) {\n return [null, null];\n }\n\n if (itemIndex === null) {\n return [null, data - 1];\n }\n\n return [null, itemIndex - 1];\n }\n\n function isLast(position) {\n return next(position)[1] === null;\n }\n\n return {\n next: next,\n prev: prev,\n isLast: isLast\n };\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\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\nvar _objectAssign = require('object-assign');\n\nvar _objectAssign2 = _interopRequireDefault(_objectAssign);\n\nvar truthy = function truthy(x) {\n return x;\n};\n\nexports['default'] = function (input) {\n var _ref = Array.isArray(input) && input.length === 2 ? input : [input, null];\n\n var _ref2 = _slicedToArray(_ref, 2);\n\n var theme = _ref2[0];\n var classNameDecorator = _ref2[1];\n\n return function (key) {\n for (var _len = arguments.length, names = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n names[_key - 1] = arguments[_key];\n }\n\n var styles = names.map(function (name) {\n return theme[name];\n }).filter(truthy);\n\n return typeof styles[0] === 'string' || typeof classNameDecorator === 'function' ? { key: key, className: classNameDecorator ? classNameDecorator.apply(undefined, _toConsumableArray(styles)) : styles.join(' ') } : { key: key, style: _objectAssign2['default'].apply(undefined, [{}].concat(_toConsumableArray(styles))) };\n };\n};\n\nmodule.exports = exports['default'];","'use strict';\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction ToObject(val) {\n\tif (val == null) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction ownEnumerableKeys(obj) {\n\tvar keys = Object.getOwnPropertyNames(obj);\n\n\tif (Object.getOwnPropertySymbols) {\n\t\tkeys = keys.concat(Object.getOwnPropertySymbols(obj));\n\t}\n\n\treturn keys.filter(function (key) {\n\t\treturn propIsEnumerable.call(obj, key);\n\t});\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar keys;\n\tvar to = ToObject(target);\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = arguments[s];\n\t\tkeys = ownEnumerableKeys(Object(from));\n\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tto[keys[i]] = from[keys[i]];\n\t\t}\n\t}\n\n\treturn to;\n};\n","'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 _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\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 SectionTitle = function (_Component) {\n _inherits(SectionTitle, _Component);\n\n function SectionTitle() {\n _classCallCheck(this, SectionTitle);\n\n return _possibleConstructorReturn(this, (SectionTitle.__proto__ || Object.getPrototypeOf(SectionTitle)).apply(this, arguments));\n }\n\n _createClass(SectionTitle, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n section = _props.section,\n renderSectionTitle = _props.renderSectionTitle,\n theme = _props.theme,\n sectionKeyPrefix = _props.sectionKeyPrefix;\n\n var sectionTitle = renderSectionTitle(section);\n\n if (!sectionTitle) {\n return null;\n }\n\n return _react2.default.createElement(\n 'div',\n theme(sectionKeyPrefix + 'title', 'sectionTitle'),\n sectionTitle\n );\n }\n }]);\n\n return SectionTitle;\n}(_react.Component);\n\nSectionTitle.propTypes = {\n section: _propTypes2.default.any.isRequired,\n renderSectionTitle: _propTypes2.default.func.isRequired,\n theme: _propTypes2.default.func.isRequired,\n sectionKeyPrefix: _propTypes2.default.string.isRequired\n};\nexports.default = SectionTitle;","'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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _Item = require('./Item');\n\nvar _Item2 = _interopRequireDefault(_Item);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\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 ItemsList = function (_Component) {\n _inherits(ItemsList, _Component);\n\n function ItemsList() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, ItemsList);\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 = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [this].concat(args))), _this), _this.storeHighlightedItemReference = function (highlightedItem) {\n _this.props.onHighlightedItemChange(highlightedItem === null ? null : highlightedItem.item);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(ItemsList, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props, ['itemProps']);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n items = _props.items,\n itemProps = _props.itemProps,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n sectionIndex = _props.sectionIndex,\n highlightedItemIndex = _props.highlightedItemIndex,\n getItemId = _props.getItemId,\n theme = _props.theme,\n keyPrefix = _props.keyPrefix;\n\n var sectionPrefix = sectionIndex === null ? keyPrefix : keyPrefix + 'section-' + sectionIndex + '-';\n var isItemPropsFunction = typeof itemProps === 'function';\n\n return _react2.default.createElement(\n 'ul',\n _extends({ role: 'listbox' }, theme(sectionPrefix + 'items-list', 'itemsList')),\n items.map(function (item, itemIndex) {\n var isFirst = itemIndex === 0;\n var isHighlighted = itemIndex === highlightedItemIndex;\n var itemKey = sectionPrefix + 'item-' + itemIndex;\n var itemPropsObj = isItemPropsFunction ? itemProps({ sectionIndex: sectionIndex, itemIndex: itemIndex }) : itemProps;\n var allItemProps = _extends({\n id: getItemId(sectionIndex, itemIndex),\n 'aria-selected': isHighlighted\n }, theme(itemKey, 'item', isFirst && 'itemFirst', isHighlighted && 'itemHighlighted'), itemPropsObj);\n\n if (isHighlighted) {\n allItemProps.ref = _this2.storeHighlightedItemReference;\n }\n\n // `key` is provided by theme()\n /* eslint-disable react/jsx-key */\n return _react2.default.createElement(_Item2.default, _extends({}, allItemProps, {\n sectionIndex: sectionIndex,\n isHighlighted: isHighlighted,\n itemIndex: itemIndex,\n item: item,\n renderItem: renderItem,\n renderItemData: renderItemData\n }));\n /* eslint-enable react/jsx-key */\n })\n );\n }\n }]);\n\n return ItemsList;\n}(_react.Component);\n\nItemsList.propTypes = {\n items: _propTypes2.default.array.isRequired,\n itemProps: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.func]),\n renderItem: _propTypes2.default.func.isRequired,\n renderItemData: _propTypes2.default.object.isRequired,\n sectionIndex: _propTypes2.default.number,\n highlightedItemIndex: _propTypes2.default.number,\n onHighlightedItemChange: _propTypes2.default.func.isRequired,\n getItemId: _propTypes2.default.func.isRequired,\n theme: _propTypes2.default.func.isRequired,\n keyPrefix: _propTypes2.default.string.isRequired\n};\nItemsList.defaultProps = {\n sectionIndex: null\n};\nexports.default = ItemsList;","'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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _compareObjects = require('./compareObjects');\n\nvar _compareObjects2 = _interopRequireDefault(_compareObjects);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\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 Item = function (_Component) {\n _inherits(Item, _Component);\n\n function Item() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Item);\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 = Item.__proto__ || Object.getPrototypeOf(Item)).call.apply(_ref, [this].concat(args))), _this), _this.storeItemReference = function (item) {\n if (item !== null) {\n _this.item = item;\n }\n }, _this.onMouseEnter = function (event) {\n var _this$props = _this.props,\n sectionIndex = _this$props.sectionIndex,\n itemIndex = _this$props.itemIndex;\n\n\n _this.props.onMouseEnter(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onMouseLeave = function (event) {\n var _this$props2 = _this.props,\n sectionIndex = _this$props2.sectionIndex,\n itemIndex = _this$props2.itemIndex;\n\n\n _this.props.onMouseLeave(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onMouseDown = function (event) {\n var _this$props3 = _this.props,\n sectionIndex = _this$props3.sectionIndex,\n itemIndex = _this$props3.itemIndex;\n\n\n _this.props.onMouseDown(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _this.onClick = function (event) {\n var _this$props4 = _this.props,\n sectionIndex = _this$props4.sectionIndex,\n itemIndex = _this$props4.itemIndex;\n\n\n _this.props.onClick(event, { sectionIndex: sectionIndex, itemIndex: itemIndex });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Item, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return (0, _compareObjects2.default)(nextProps, this.props, ['renderItemData']);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n isHighlighted = _props.isHighlighted,\n item = _props.item,\n renderItem = _props.renderItem,\n renderItemData = _props.renderItemData,\n restProps = _objectWithoutProperties(_props, ['isHighlighted', 'item', 'renderItem', 'renderItemData']);\n\n delete restProps.sectionIndex;\n delete restProps.itemIndex;\n\n if (typeof restProps.onMouseEnter === 'function') {\n restProps.onMouseEnter = this.onMouseEnter;\n }\n\n if (typeof restProps.onMouseLeave === 'function') {\n restProps.onMouseLeave = this.onMouseLeave;\n }\n\n if (typeof restProps.onMouseDown === 'function') {\n restProps.onMouseDown = this.onMouseDown;\n }\n\n if (typeof restProps.onClick === 'function') {\n restProps.onClick = this.onClick;\n }\n\n return _react2.default.createElement(\n 'li',\n _extends({ role: 'option' }, restProps, { ref: this.storeItemReference }),\n renderItem(item, _extends({ isHighlighted: isHighlighted }, renderItemData))\n );\n }\n }]);\n\n return Item;\n}(_react.Component);\n\nItem.propTypes = {\n sectionIndex: _propTypes2.default.number,\n isHighlighted: _propTypes2.default.bool.isRequired,\n itemIndex: _propTypes2.default.number.isRequired,\n item: _propTypes2.default.any.isRequired,\n renderItem: _propTypes2.default.func.isRequired,\n renderItemData: _propTypes2.default.object.isRequired,\n onMouseEnter: _propTypes2.default.func,\n onMouseLeave: _propTypes2.default.func,\n onMouseDown: _propTypes2.default.func,\n onClick: _propTypes2.default.func\n};\nexports.default = Item;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar defaultTheme = exports.defaultTheme = {\n container: 'react-autosuggest__container',\n containerOpen: 'react-autosuggest__container--open',\n input: 'react-autosuggest__input',\n inputOpen: 'react-autosuggest__input--open',\n inputFocused: 'react-autosuggest__input--focused',\n suggestionsContainer: 'react-autosuggest__suggestions-container',\n suggestionsContainerOpen: 'react-autosuggest__suggestions-container--open',\n suggestionsList: 'react-autosuggest__suggestions-list',\n suggestion: 'react-autosuggest__suggestion',\n suggestionFirst: 'react-autosuggest__suggestion--first',\n suggestionHighlighted: 'react-autosuggest__suggestion--highlighted',\n sectionContainer: 'react-autosuggest__section-container',\n sectionContainerFirst: 'react-autosuggest__section-container--first',\n sectionTitle: 'react-autosuggest__section-title'\n};\n\nvar mapToAutowhateverTheme = exports.mapToAutowhateverTheme = function mapToAutowhateverTheme(theme) {\n var result = {};\n\n for (var key in theme) {\n switch (key) {\n case 'suggestionsContainer':\n result['itemsContainer'] = theme[key];\n break;\n\n case 'suggestionsContainerOpen':\n result['itemsContainerOpen'] = theme[key];\n break;\n\n case 'suggestion':\n result['item'] = theme[key];\n break;\n\n case 'suggestionFirst':\n result['itemFirst'] = theme[key];\n break;\n\n case 'suggestionHighlighted':\n result['itemHighlighted'] = theme[key];\n break;\n\n case 'suggestionsList':\n result['itemsList'] = theme[key];\n break;\n\n default:\n result[key] = theme[key];\n }\n }\n\n return result;\n};"],"sourceRoot":""}