1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{301:function(e,t,n){e.exports=n(309)()},302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function compareObjects(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var s={},u=void 0,a=void 0;for(u=0,a=n.length;u<a;u++)s[n[u]]=!0;for(u=0,a=o.length;u<a;u++){var l=o[u],c=e[l],g=t[l];if(c!==g){if(!s[l]||null===c||null===g||"object"!==(void 0===c?"undefined":r(c))||"object"!==(void 0===g?"undefined":r(g)))return!0;var d=Object.keys(c),p=Object.keys(g);if(d.length!==p.length)return!0;for(var h=0,f=d.length;h<f;h++){var m=d[h];if(c[m]!==g[m])return!0}}}return!1}},304:function(e,t,n){var r=n(323),o=n(327),i=n(305),s=i.camelCase,u=r.html,a=r.svg,l=r.isCustomAttribute,c=Object.prototype.hasOwnProperty;e.exports=function attributesToProps(e){var t,n,r,g;e=e||{};var d={};for(t in e)r=e[t],l(t)?d[t]=r:(n=t.toLowerCase(),c.call(u,n)?d[(g=u[n]).propertyName]=!!(g.hasBooleanValue||g.hasOverloadedBooleanValue&&!r)||r:c.call(a,t)?d[(g=a[t]).propertyName]=r:i.PRESERVE_CUSTOM_ATTRIBUTES&&(d[t]=r));return null!=e.style&&(d.style=function cssToJs(e){var t={};e&&o(e,(function(e,n){e&&n&&(t[s(e)]=n)}));return t}(e.style)),d}},305:function(e,t,n){var React=n(5),r=/-([a-z])/g,o=/^--[a-zA-Z0-9-]+$|^[^-]+$/;var i=React.version.split(".")[0]>=16;e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,camelCase:function camelCase(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");return o.test(e)?e:e.toLowerCase().replace(r,(function(e,t){return t.toUpperCase()}))},invertObject:function invertObject(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},s={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?s[i[0]]=i[1]:"string"==typeof r&&(s[r]=n);return s},isCustomComponent:function isCustomComponent(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}}},306:function(e,t,n){for(var r,o=n(331).CASE_SENSITIVE_TAG_NAMES,i={},s=0,u=o.length;s<u;s++)r=o[s],i[r.toLowerCase()]=r;function formatAttributes(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function formatTagName(e){var t=function getCaseSensitiveTagName(e){return i[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:formatAttributes,formatDOM:function formatDOM(e,t,n){t=t||null;for(var r,o,i,s=[],u=0,a=e.length;u<a;u++){switch(r=e[u],i={next:null,prev:s[u-1]||null,parent:t},(o=s[u-1])&&(o.next=i),"#"!==r.nodeName[0]&&(i.name=formatTagName(r.nodeName),i.attribs={},r.attributes&&r.attributes.length&&(i.attribs=formatAttributes(r.attributes))),r.nodeType){case 1:"script"===i.name||"style"===i.name?i.type=i.name:i.type="tag",i.children=formatDOM(r.childNodes,i);break;case 3:i.type="text",i.data=r.nodeValue;break;case 8:i.type="comment",i.data=r.nodeValue}s.push(i)}return n&&(s.unshift({name:n.substring(0,n.indexOf(" ")).toLowerCase(),data:n,type:"directive",next:s[0]?s[0]:null,prev:null,parent:t}),s[1]&&(s[1].prev=s[0])),s},isIE:function isIE(e){return e?document.documentMode===e:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},307:function(e,t,n){"use strict";e.exports=n(308).default},308:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),i=n(5),s=_interopRequireDefault(i),u=_interopRequireDefault(n(301)),a=_interopRequireDefault(n(311)),l=_interopRequireDefault(n(312)),c=n(320);
1function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var g=function alwaysTrue(){return!0},d=function(e){function Autosuggest(e){var t=e.alwaysRenderSuggestions;!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Autosuggest);var n=function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(Autosuggest.__proto__||Object.getPrototypeOf(Autosuggest)).call(this));return p.call(n),n.state={isFocused:!1,isCollapsed:!t,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},n.justPressedUpDown=!1,n.justMouseEntered=!1,n.pressedSuggestion=null,n}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Autosuggest,e),o(Autosuggest,[{key:"componentDidMount",value:function componentDidMount(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(e){(0,a.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function componentDidUpdate(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,a.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&o({suggestion:s})}}},{key:"componentWillUnmount",value:function componentWillUnmount(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function updateHighlightedSuggestion(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function resetHighlightedSuggestion(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function revealSuggestions(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function closeSuggestions(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function getSuggestion(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function getHighlightedSuggestion(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function getSuggestionValueByIndex(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function getSuggestionIndices(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function findSuggestionElement(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function maybeCallOnChange(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function willRenderSuggestions(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value;return t.length>0&&r(o)}},{key:"getQuery",value:function getQuery(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function render(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,u=t.render
1Suggestion,a=t.inputProps,d=t.multiSection,p=t.renderSectionTitle,h=t.id,f=t.getSectionSuggestions,m=t.theme,y=t.getSuggestionValue,v=t.alwaysRenderSuggestions,S=t.highlightFirstSuggestion,b=this.state,w=b.isFocused,I=b.isCollapsed,x=b.highlightedSectionIndex,_=b.highlightedSuggestionIndex,C=b.valueBeforeUpDown,k=v?g:this.props.shouldRenderSuggestions,O=a.value,P=a.onFocus,R=a.onKeyDown,E=this.willRenderSuggestions(this.props),T=v||w&&!I&&E,D=T?n:[],M=r({},a,{onFocus:function onFocus(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=k(O);e.setState({isFocused:!0,isCollapsed:!n}),P&&P(t),n&&i({value:O,reason:"input-focused"})}},onBlur:function onBlur(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function onChange(t){var n=t.target.value,o=k(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},S?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function onKeyDown(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(I)k(O)&&(i({value:O,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var s=r.newHighlightedSectionIndex,u=r.newHighlightedItemIndex,a=void 0;a=null===u?null===C?O:C:e.getSuggestionValueByIndex(s,u),e.updateHighlightedSuggestion(s,u,O),e.maybeCallOnChange(t,a,40===o?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(T&&!v&&e.closeSuggestions(),null!=l){var c=y(l);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:c,suggestionIndex:_,sectionIndex:x,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:T&&t.preventDefault();var g=T&&!v;if(null===C){if(!g){e.maybeCallOnChange(t,"","escape"),k("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,C,"escape");g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),j={query:this.getQuery()};return s.default.createElement(l.default,{multiSection:d,items:D,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:u,renderItemData:j,renderSectionTitle:p,getSectionItems:f,highlightedSectionIndex:x,highlightedItemIndex:_,inputProps:M,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(m),id:h,ref:this.storeAutowhateverRef})}}]),Autosuggest}(i.Component);d.propTypes={suggestions:u.default.array.isRequired,onSuggestionsFetchRequested:function onSuggestionsFetchRequested(e,t){var onSuggestionsFetchRequested=e[t];if("function"!=typeof onSuggestionsFetchRequested)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function onSuggestionsClearRequested(e,t){var onSuggestionsClearRequested=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof onSuggestionsClearRequested)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:u.default.func,onSuggestionHighlighted:u.default.func,renderInputComponent:u.default.func,renderSuggestionsContainer:u.default.func,getSuggestionValue:u.default.func.isRequired,renderSuggestion:u.default.func.isRequired,inputProps:function inputProps(e,t){var inputProps=e[t];if(!inputProps.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!inputProps.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:u.default.func,alwaysRenderSuggestions:u.default.bool,multiSection:u.default.bool,renderSectionTitle:function render
1SectionTitle(e,t){var renderSectionTitle=e[t];if(!0===e.multiSection&&"function"!=typeof renderSectionTitle)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function getSectionSuggestions(e,t){var getSectionSuggestions=e[t];if(!0===e.multiSection&&"function"!=typeof getSectionSuggestions)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:u.default.bool,highlightFirstSuggestion:u.default.bool,theme:u.default.object,id:u.default.string},d.defaultProps={renderSuggestionsContainer:function defaultRenderSuggestionsContainer(e){var t=e.containerProps,n=e.children;return s.default.createElement("div",t,n)},shouldRenderSuggestions:function defaultShouldRenderSuggestions(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var p=function _initialiseProps(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,o=n.itemIndex;e.updateHighlightedSuggestion(r,o),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,s=r.onSuggestionsFetchRequested;i&&i(t,n),o?s({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),s=i.sectionIndex,u=i.suggestionIndex,a=e.getSuggestion(s,u),l=e.props.getSuggestionValue(a);e.maybeCallOnChange(t,l,"click"),e.onSuggestionSelected(t,{suggestion:a,suggestionValue:l,suggestionIndex:u,sectionIndex:s,method:"click"}),r||e.closeSuggestions(),!0===o?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,o=n.value,i=n.onBlur,s=e.getHighlightedSuggestion(),u=r(o);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!u}),i&&i(e.blurEvent,{highlightedSuggestion:s})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0}
1,this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=d},309:function(e,t,n){"use strict";var r=n(310);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,o,i,s){if(s!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},310:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},311:function(e,t,n){"use strict";e.exports=function shallowEqualArrays(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},312:function(e,t,n){"use strict";e.exports=n(313).default},313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function sliceIterator(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),i=n(5),s=_interopRequireDefault(i),u=_interopRequireDefault(n(301)),a=_interopRequireDefault(n(314)),l=_interopRequireDefault(n(315)),c=_interopRequireDefault(n(317)),g=_interopRequireDefault(n(318));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d={},p=function(e){function Autowhatever(e){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Autowhatever);var t=function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(Autowhatever.__proto__||Object.getPrototypeOf(Autowhatever)).call(this,e));return t.storeInputReference=function(e){null!==e&&(t.input=e)},t.storeItemsContainerReference=function(e){null!==e&&(t.itemsContainer=e)},t.onHighlightedItemChange=function(e){t.highlightedItem=e},t.getItemId=function(e,n){return null===n?null:"react-autowhatever-"+t.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+n},t.onFocus=function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)},t.onBlur=function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)},t.onKeyDown=function(e){var n=t.props,r=n.inputProps,o=n.highlightedSectionIndex,i=n.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var s="ArrowDown"===e.key?"next":"prev",u=t.sectionIterator[s]([o,i]),a=_slicedToArray(u,2),l=a[0],c=a[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:c});break;default:r.onKeyDown(e,{highlightedSectionIndex:o,highlightedItemIndex:i})}},t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(Autowhatever,e),o(Autowhatever,[{key:"componentDidMount",value:function componentDidMount(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function componentDidUpdate(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function setSectionsItems(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function setSectionIterator(e){this.sectionIterator=(0,a.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function setTheme(e){this.theme=(0,l.default)(e.theme)}}
1,{key:"renderSections",value:function renderSections(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,o=n.items,i=n.renderItem,u=n.renderItemData,a=n.renderSectionTitle,l=n.highlightedSectionIndex,d=n.highlightedItemIndex,p=n.itemProps;return o.map((function(n,o){var h="react-autowhatever-"+r+"-",f=h+"section-"+o+"-",m=0===o;return s.default.createElement("div",t(f+"container","sectionContainer",m&&"sectionContainerFirst"),s.default.createElement(c.default,{section:n,renderSectionTitle:a,theme:t,sectionKeyPrefix:f}),s.default.createElement(g.default,{items:e.sectionsItems[o],itemProps:p,renderItem:i,renderItemData:u,sectionIndex:o,highlightedItemIndex:l===o?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:h,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function renderItems(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,o=n.renderItem,i=n.renderItemData,u=n.highlightedSectionIndex,a=n.highlightedItemIndex,l=n.itemProps;return s.default.createElement(g.default,{items:e,itemProps:l,renderItem:o,renderItemData:i,highlightedItemIndex:null===u?a:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function ensureHighlightedItemIsVisible(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function render(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,u=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,c=this.state.isInputFocused,g=o?this.renderSections():this.renderItems(),d=null!==g,p=this.getItemId(a,l),h="react-autowhatever-"+n,f=r({role:"combobox","aria-haspopup":"listbox","aria-owns":h,"aria-expanded":d},e("react-autowhatever-"+n+"-container","container",d&&"containerOpen"),this.props.containerProps),m=i(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":h,"aria-activedescendant":p},e("react-autowhatever-"+n+"-input","input",d&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=u({containerProps:r({id:h,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",d&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:g});return s.default.createElement("div",f,m,y)}}]),Autowhatever}(i.Component);p.propTypes={id:u.default.string,multiSection:u.default.bool,renderInputComponent:u.default.func,renderItemsContainer:u.default.func,items:u.default.array.isRequired,renderItem:u.default.func,renderItemData:u.default.object,renderSectionTitle:u.default.func,getSectionItems:u.default.func,containerProps:u.default.object,inputProps:u.default.object,itemProps:u.default.oneOfType([u.default.object,u.default.func]),highlightedSectionIndex:u.default.number,highlightedItemIndex:u.default.number,theme:u.default.oneOfType([u.default.object,u.default.array])},p.defaultProps={id:"1",multiSection:!1,renderInputComponent:function defaultRenderInputComponent(e){return s.default.createElement("input",e)},renderItemsContainer:function defaultRenderItemsContainer(e){var t=e.containerProps,n=e.children;return s.default.createElement("div",t,n)},renderItem:function renderItem(){throw new Error("`renderItem` must be provided")}
1,renderItemData:d,renderSectionTitle:function renderSectionTitle(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function getSectionItems(){throw new Error("`getSectionItems` must be provided")},containerProps:d,inputProps:d,itemProps:d,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=p},314:function(e,t,n){"use strict";var _slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function sliceIterator(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function next(e){var r=_slicedToArray(e,2),o=r[0],i=r[1];return n?null===i||i===t[o]-1?null===(o=function nextNonEmptySectionIndex(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(o))?[null,null]:[o,0]:[o,i+1]:0===t||i===t-1?[null,null]:null===i?[null,0]:[null,i+1]}return{next:next,prev:function prev(e){var r=_slicedToArray(e,2),o=r[0],i=r[1];return n?null===i||0===i?null===(o=function prevNonEmptySectionIndex(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(o))?[null,null]:[o,t[o]-1]:[o,i-1]:0===t||0===i?[null,null]:null===i?[null,t-1]:[null,i-1]},isLast:function isLast(e){return null===next(e)[1]}}}},315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var _slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function sliceIterator(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(316)),o=function truthy(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=_slicedToArray(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),u=1;u<t;u++)n[u-1]=arguments[u];var a=n.map((function(e){return i[e]})).filter(o);return"string"==typeof a[0]||"function"==typeof s?{key:e,className:s?s.apply(void 0,_toConsumableArray(a)):a.join(" ")}:{key:e,style:r.default.apply(void 0,[{}].concat(_toConsumableArray(a)))}}},e.exports=t.default},316:function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function ToObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ownEnumerableKeys(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,o=ToObject(e),i=1;i<arguments.length;i++){n=arguments[i],r=ownEnumerableKeys(Object(n));for(var s=0;s<r.length;s++)o[r[s]]=n[r[s]]}return o}},317:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),o=n(5),i=_interopRequireDefault(o),s=_interopRequireDefault(n(301)),u=_interopRequireDefault(n(302));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function SectionTitle(){return _classCallCheck(this,SectionTitle),_possibleConstructorReturn(this,(SectionTitle.__proto__||Object.getPrototypeOf(SectionTitle)).apply(this,arguments))}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(SectionTitle,e),r(SectionTitle,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(e){return(0,u.default)(e,this.props)}},{key:"render",value:function render(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,o=e.sectionKeyPrefix,s=n(t);return s?i.default.createElement("div",r(o+"title","sectionTitle"),s):null}}]),SectionTitle}(o.Component);a.propTypes={section:s.default.any.isRequired,renderSectionTitle:s.default.func.isRequired,theme:s.default.func.isRequired,sectionKeyPrefix:s.default.string.isRequired},t.default=a},318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),i=n(5),s=_interopRequireDefault(i),u=_interopRequireDefault(n(301)),a=_interopRequireDefault(n(319)),l=_interopRequireDefault(n(302));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function ItemsList(){var e,t,n;_classCallCheck(this,ItemsList);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=n=_possibleConstructorReturn(this,(e=ItemsList.__proto__||Object.getPrototypeOf(ItemsList)).call.apply(e,[this].concat(o))),n.storeHighlightedItemReference=function(e){n.props.onHighlightedItemChange(null===e?null:e.item)},_possibleConstructorReturn(n,t)}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ItemsList,e),o(ItemsList,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(e){return(0,l.default)(e,this.props,["itemProps"])}},{key:"render",value:function render(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,u=t.renderItemData,l=t.sectionIndex,c=t.highlightedItemIndex,g=t.getItemId,d=t.theme,p=t.keyPrefix,h=null===l?p:p+"section-"+l+"-",f="function"==typeof o;return s.default.createElement("ul",r({role:"listbox"},d(h+"items-list","itemsList")),n.map((function(t,n){var p=0===n,m=n===c,y=h+"item-"+n,v=f?o({sectionIndex:l,itemIndex:n}):o,S=r({id:g(l,n),"aria-selected":m},d(y,"item",p&&"itemFirst",m&&"itemHighlighted"),v);return m&&(S.ref=e.storeHighlightedItemReference),s.default.createElement(a.default,r({},S,{sectionIndex:l,isHighlighted:m,itemIndex:n,item:t,renderItem:i,renderItemData:u}))})))}}]),ItemsList}(i.Component);c.propTypes={items:u.default.array.isRequired,itemProps:u.default.oneOfType([u.default.object,u.default.func]),renderItem:u.default.func.isRequired,renderItemData:u.default.object.isRequired,sectionIndex:u.default.number,highlightedItemIndex:u.default.number,onHighlightedItemChange:u.default.func.isRequired,getItemId:u.default.func.isRequired,theme:u.default.func.isRequired,keyPrefix:u.default.string.isRequired},c.defaultProps={sectionIndex:null},t.default=c},319:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),i=n(5),s=_interopRequireDefault(i),u=_interopRequireDefault(n(301)),a=_interopRequireDefault(n(302));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function Item(){var e,t,n;_classCallCheck(this,Item);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=n=_possibleConstructorReturn(this,(e=Item.__proto__||Object.getPrototypeOf(Item)).call.apply(e,[this].concat(o))),n.storeItemReference=function(e){null!==e&&(n.item=e)},n.onMouseEnter=function(e){var t=n.props,r=t.sectionIndex,o=t.itemIndex;n.props.onMouseEnter(e,{sectionIndex:r,itemIndex:o})},n.onMouseLeave=function(e){var t=n.props,r=t.sectionIndex,o=t.itemIndex;n.props.onMouseLeave(e,{sectionIndex:r,itemIndex:o})},n.onMouseDown=function(e){var t=n.props,r=t.sectionIndex,o=t.itemIndex;n.props.onMouseDown(e,{sectionIndex:r,itemIndex:o})},n.onClick=function(e){var t=n.props,r=t.sectionIndex,o=t.itemIndex;n.props.onClick(e,{sectionIndex:r,itemIndex:o})},_possibleConstructorReturn(n,t)}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Item,e),o(Item,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(e){return(0,a.default)(e,this.props,["renderItemData"])}},{key:"render",value:function render(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,u=function _objectWithoutProperties(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete u.sectionIndex,delete u.itemIndex,"function"==typeof u.onMouseEnter&&(u.onMouseEnter=this.onMouseEnter),"function"==typeof u.onMouseLeave&&(u.onMouseLeave=this.onMouseLeave),"function"==typeof u.onMouseDown&&(u.onMouseDown=this.onMouseDown),"function"==typeof u.onClick&&(u.onClick=this.onClick),s.default.createElement("li",r({role:"option"},u,{ref:this.storeItemReference}),o(n,r({isHighlighted:t},i)))}}]),Item}(i.Component);l.propTypes={sectionIndex:u.default.number,isHighlighted:u.default.bool.isRequired,itemIndex:u.default.number.isRequired,item:u.default.any.isRequired,renderItem:u.default.func.isRequired,renderItemData:u.default.object.isRequired,onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onClick:u.default.func},t.default=l},320:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"}
1,t.mapToAutowhateverTheme=function mapToAutowhateverTheme(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},321:function(e,t,n){var r=n(322),o=n(304),i=n(329),s={decodeEntities:!0,lowerCaseAttributeNames:!1};function HTMLReactParser(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(i(e,(t=t||{}).htmlparser2||s),t)}HTMLReactParser.domToReact=r,HTMLReactParser.htmlToDOM=i,HTMLReactParser.attributesToProps=o,e.exports=HTMLReactParser,e.exports.default=HTMLReactParser},322:function(e,t,n){var r=n(304),o=n(305);function shouldPassAttributesUnaltered(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function domToReact(e,t){for(var o,i,s,u,React=(t=t||{}).library||n(5),a=React.cloneElement,l=React.createElement,c=React.isValidElement,g=[],d="function"==typeof t.replace,p=t.trim,h=0,f=e.length;h<f;h++)if(o=e[h],d&&c(i=t.replace(o)))f>1&&(i=a(i,{key:i.key||h})),g.push(i);else if("text"!==o.type){switch(s=o.attribs,shouldPassAttributesUnaltered(o)||(s=r(o.attribs)),u=null,o.type){case"script":case"style":o.children[0]&&(s.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?s.defaultValue=o.children[0].data:o.children&&o.children.length&&(u=domToReact(o.children,t));break;default:continue}f>1&&(s.key=h),g.push(l(o.name,s,u))}else p?o.data.trim()&&g.push(o.data):g.push(o.data);return 1===g.length?g[0]:g}},323:function(e,t,n){var r=n(324),o=n(325),i=n(326),s=i.MUST_USE_PROPERTY,u=i.HAS_BOOLEAN_VALUE,a=i.HAS_NUMERIC_VALUE,l=i.HAS_POSITIVE_NUMERIC_VALUE,c=i.HAS_OVERLOADED_BOOLEAN_VALUE;function checkMask(e,t){return(e&t)===t}function injectDOMPropertyConfig(e,t,n){var r,o,i,g=e.Properties,d=e.DOMAttributeNames;for(o in g)r=d[o]||(n?o:o.toLowerCase()),i=g[o],t[r]={attributeName:r,propertyName:o,mustUseProperty:checkMask(i,s),hasBooleanValue:checkMask(i,u),hasNumericValue:checkMask(i,a),hasPositiveNumericValue:checkMask(i,l),hasOverloadedBooleanValue:checkMask(i,c)}}var g={};injectDOMPropertyConfig(r,g);var d={};injectDOMPropertyConfig(o,d,!0);var p={};injectDOMPropertyConfig(r,p),injectDOMPropertyConfig(o,p,!0);e.exports={html:g,svg:d,properties:p,isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},324:function(e,t){e.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},325:function(e,t){e.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,
1colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-
1adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},326:function(e,t){e.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},327:function(e,t,n){var r=n(328);e.exports=function StyleToObject(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,s,u=r(e),a="function"==typeof t,l=0,c=u.length;l<c;l++)i=(n=u[l]).property,s=n.value,a?t(i,s,n):s&&(o||(o={}),o[i]=s);return o}},328:function(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g;function trim(e){return e?e.replace(l,""):""}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var l=1,c=1;function updatePosition(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf("\n");c=~n?e.length-n:c+e.length}function position(){var e={line:l,column:c};return function(t){return t.position=new Position(e),whitespace(),t}}function Position(e){this.start=e,this.end={line:l,column:c},this.source=t.source}Position.prototype.content=e;var g=[];function error(n){var r=new Error(t.source+":"+l+":"+c+": "+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=c,r.source=e,!t.silent)throw r;g.push(r)}function match(t){var n=t.exec(e);if(n){var r=n[0];return updatePosition(r),e=e.slice(r.length),n}}function whitespace(){match(o)}function comments(e){var t;for(e=e||[];t=comment();)!1!==t&&e.push(t);return e}function comment(){var t=position();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return error("End of comment missing");var r=e.slice(2,n-2);return c+=2,updatePosition(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}function declaration(){var e=position(),t=match(i);if(t){if(comment(),!match(s))return error("property missing ':'");var r=match(u),o=e({type:"declaration",property:trim(t[0].replace(n,"")),value:r?trim(r[0].replace(n,"")):""});return match(a),o}}return whitespace(),function declarations(){var e,t=[];for(comments(t);e=declaration();)!1!==e&&(t.push(e),comments(t));return t}()}},329:function(e,t,n){var r=n(330),o=n(306),i=o.formatDOM,s=o.isIE(9),u=/<(![a-zA-Z\s]+)>/;e.exports=function parseDOM(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t,n=e.match(u);return n&&n[1]&&(t=n[1],s&&(e=e.replace(n[0],""))),i(r(e),null,t)}},330:function(e,t,n){var r=n(306),o=/<([a-zA-Z]+[0-9]?)/,i=/<head.*>/i,s=/<body.*>/i,u=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,a=r.isIE(9),l=a||r.isIE(),parseFromDocument=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var c=new window.DOMParser,g=a?"text/xml":"text/html";parseFromDocument=parseFromString=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),a&&(e=e.replace(u,"<$1$2$3/>")),c.parseFromString(e,g)}}if(document.implementation){var d=document.implementation.createHTMLDocument(l?"html-dom-parser":void 0);parseFromDocument=function(e,t){if(t)return d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d;try{return d.documentElement.innerHTML=e,d}catch(t){if(parseFromString)return parseFromString(e)}}}var p,h=document.createElement("template");h.content&&(p=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function domparser(e){var t,n,r,u,a=e.match(o);switch(a&&a[1]&&(t=a[1].toLowerCase()),t){case"html":return n=parseFromString(e),i.test(e)||(r=n.getElementsByTagName("head")[0])&&r.parentNode.removeChild(r),s.test(e)||(r=n.getElementsByTagName("body")[0])&&r.parentNode.removeChild(r),n.getElementsByTagName("html");case"head":case"body":return u=parseFromDocument(e).getElementsByTagName(t),s.test(e)&&i.test(e)?u[0].parentNode.childNodes:u;default:return p?p(e):parseFromDocument(e,"body").getElementsByTagName("body")[0].childNodes}}},331:function(e,t){e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},336:function(e,t,n){"use strict";n.r(t);n(0);var r=n(5),o=n.n(r),i=n(119),s=n.n(i),u=n(156),a=n(307),l=n.n(a);function asyncGeneratorStep(e,t,n,r,o,i,s){try{var u=e[i](s),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,o)}const c=n(321),AutoSuggest=e=>{const[t,n]=Object(r.useState)([]),[i,a]=Object(r.useState)(e.attributes.value),g=Object(r.useMemo)(()=>new u.b(e.showMoreResultsText),[]),d=Object(r.useRef)(0),p=function(){var t=function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function _next(e){asyncGeneratorStep(i,r,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,r,o,_next,_throw,"throw",e)}_next(void 0)}))}}((function*(t){const r=e.isMobile?5:10,o=++d.current,i=yield g.fetchSuggestions(t,r);o===d.current&&n(i)}));return function fetchSuggestions(e){return t.apply(this,arguments)}}(),h=Object(r.useMemo)(()=>s()(p,300),[]);Object(r.useEffect)(()=>()=>h.cancel(),[]);return o.a.createElement(o.a.Fragment,null,o.a.createElement("label",{htmlFor:"search",className:"sr-only"},e.attributes.placeholder),o.a.createElement(l.a,{onSuggestionsFetchRequested:({value:e})=>{e.length<=2?h.cancel():h(e)},onSuggestionsClearRequested:()=>{n([])},getSuggestionValue:e=>
1e.name,renderSuggestion:e=>e.type===u.a.SeeMoreLink?o.a.createElement("div",{className:"suggestion__content-wrapper suggestion__see-more-link column is-primary"},e.name?e.name:"Zie meer"):o.a.createElement("div",{className:"suggestion__content-wrapper columns product is-mobile"},o.a.createElement("div",{className:"column is-narrow"},e.image&&o.a.createElement("img",{src:""+e.image,alt:"",className:"suggestion__image"})),o.a.createElement("div",{className:"column"},o.a.createElement("p",{className:"name pb-1 is-active has-text-weight-bold"},e.name),o.a.createElement("div",{className:"pb-1 has-text-grey-light has-text-left description"},c(e.description.substring(0,150))," ..."),o.a.createElement("p",{className:"price has-text-weight-bold"}," ",function formatPrice(e){if(e.includes(","))return"â¬"+e;{let t=new Intl.NumberFormat("nl-NL",{style:"decimal",currency:"EUR"}).format(parseFloat(e)),n=new RegExp(",00","i"),r=new RegExp(",","i");return n.test(t)||!r.test(t)?"â¬"+t+",-":1===t.split(",")[1].length?"â¬"+t+"0":"â¬"+t}}(e.price)))),onSuggestionSelected:(e,{suggestion:t})=>{t.type!==u.a.SeeMoreLink?g.gotoUrl(t.url):g.gotoSearchPage(i)},suggestions:t,inputProps:{...e.attributes,onChange:(t,{newValue:n})=>{n!==e.showMoreResultsText&&a(n)},id:"search",value:i,onKeyPress:e=>{"Enter"===e.key&&g.gotoSearchPage(i)}},id:"cr-autosuggest"}))};AutoSuggest.defaultProps={showMoreResultsText:"Show more results",isMobile:!1},t.default=AutoSuggest}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.