diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md
index f9762bb11f..3be16ee0b7 100644
--- a/packages/web/CHANGELOG.md
+++ b/packages/web/CHANGELOG.md
@@ -6,6 +6,14 @@
The following changes have been included in the dev
branch and will be out in the next release. Click to expand
+## v2.10.0
+
+- Support array of (conjunction) objects in react prop - [commit](https://github.com/appbaseio/reactivesearch/commit/b812d7b5239b2aac6bb93018a4e8c305a644f1aa)
+- Fix page change behavior on query change - [commit](https://github.com/appbaseio/reactivesearch/commit/07f80914b03ef4c80e572960fe4e152312137de6)
+- Adds on demand loading in list components for [#515](https://github.com/appbaseio/reactivesearch/issues/515)
+- Support Pagination with JS disabled in browser (helpful in crawling) [#477](https://github.com/appbaseio/reactivesearch/issues/477)
+- Add support for scrollTarget [#369](https://github.com/appbaseio/reactivesearch/issues/369)
+
## v2.9.1
- Appbase-js build fixes
- No restriction on API endpoint for analytics
diff --git a/packages/web/package.json b/packages/web/package.json
index 5320f26318..300af70713 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -1,6 +1,6 @@
{
"name": "@appbaseio/reactivesearch",
- "version": "2.9.1",
+ "version": "2.10.0",
"description": "A React UI components library for building search experiences",
"main": "lib/index.js",
"types": "lib/index.d.ts",
diff --git a/packages/web/umd/reactivesearch.js b/packages/web/umd/reactivesearch.js
index 133ce65476..4d7c4d13b9 100644
--- a/packages/web/umd/reactivesearch.js
+++ b/packages/web/umd/reactivesearch.js
@@ -1,5 +1,5 @@
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("ReactiveSearch",["react"],t):"object"==typeof exports?exports.ReactiveSearch=t(require("react")):e.ReactiveSearch=t(e.React)}(window,function(e){var t=String.fromCharCode,n=Number.isNaN,r=Math.ceil,o=Math.floor,a=Math.min,s=Math.max,i=Math.abs,u=Math.round;return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=62)}([function(t){t.exports=e},function(e,t,n){function r(e,t){return isNaN(e[t])?new Error(t+" value must be a number"):"lat"===t&&(-90>e[t]||90e[t]||180 .trim{display:block;display:-webkit-box;width:100%;max-height:2.3rem;line-height:1.2rem;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}&:hover,&:focus{background-color:#eee;}}","dark"===e&&i(t))},t.input=s},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t,n=1;n ({})}!");return n}if(!m(e))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return void 0===t?e:r({},t,e)}n.r(t),n.d(t,"ThemeProvider",function(){return y}),n.d(t,"withTheme",function(){return g}),n.d(t,"channel",function(){return f}),n.d(t,"contextTypes",function(){return h}),n.d(t,"createBroadcast",function(){return d});var s,i=n(4),u=n.n(i),l=n(0),c=(n.n(l),n(25)),p=n.n(c),d=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}}},f="__EMOTION_THEMING__",h=((s={})[f]=u.a.object,s),m=function(e){return"[object Object]"===Object.prototype.toString.call(e)},y=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;void 0!==this.context[f]&&(this.unsubscribeToOuterId=this.context[f].subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=d(a(this.props.theme,this.outerTheme))},n.getChildContext=function(){var e;return(e={})[f]={subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e},n.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},n.componentWillUnmount=function(){var e=this.context[f];void 0!==e&&e.unsubscribe(this.unsubscribeToOuterId)},n.publish=function(e){this.broadcast.publish(a(e,this.outerTheme))},n.render=function(){return this.props.children?l.Children.only(this.props.children):null},t.childContextTypes=h,t.contextTypes=h,t}(l.Component),g=function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e){return t.call(this,e)||this}o(n,t);var a=n.prototype;return a.componentWillMount=function(){var e=this,t=this.context[f];return void 0===t?void console.error("[withTheme] Please use ThemeProvider to be able to use withTheme"):void(this.unsubscribeId=t.subscribe(function(t){e.setState({theme:t})}))},a.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[f].unsubscribe(this.unsubscribeId)},a.render=function(){return Object(l.createElement)(e,r({theme:this.state.theme},this.props))},n}(l.Component);return n.displayName="WithTheme("+t+")",n.contextTypes=h,p()(n,e)}},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(1t.length)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:r||function(e){return e[0].split(" ")[0]}(t),backgroundImage:function(e){for(var t="",n=0;n=arguments.length?void 0:arguments[1])||(2>=arguments.length?void 0:arguments[2])||(3>=arguments.length?void 0:arguments[3]))?(t=t.slice(0,-1),t+=", "+(arguments.length<=n+1?void 0:arguments[n+1])):3!=n||arguments.length<=n+1||!arguments[n+1]||(1>=arguments.length?void 0:arguments[1])||(2>=arguments.length?void 0:arguments[2])||(3>=arguments.length?void 0:arguments[3])?(arguments.length<=n+1?void 0:arguments[n+1])&&(t+=(arguments.length<=n+1?void 0:arguments[n+1])+" "):t+=""+(arguments.length<=n+1?void 0:arguments[n+1]);return t.trim()}(Se,o,a,n,t.join(", "))}}function k(e,t){var n,r=2o?(u=a,l=s):1<=o&&2>o?(u=s,l=a):2<=o&&3>o?(l=a,c=s):3<=o&&4>o?(l=s,c=a):4<=o&&5>o?(u=s,c=a):5<=o&&6>o&&(u=a,c=s);var p=n-a/2;return r(u+p,l+p,c+p)}function T(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return xe[t]?"#"+xe[t]:e}(e);if(t.match(Re))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Ne))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};var n=Te.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var r=Ve.exec(t);if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])};var o=De.exec(t);if(o){var a="rgb("+N(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",s=Te.exec(a);if(!s)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+a+".");return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var i=Ae.exec(t);if(i){var u="rgb("+N(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=Te.exec(u);if(!l)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+u+".");return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+i[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function V(e){return function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,o=s(t,n,r),i=a(t,n,r),u=(o+i)/2;if(o===i)return void 0===e.alpha?{hue:0,saturation:0,lightness:u}:{hue:0,saturation:0,lightness:u,alpha:e.alpha};var l=void 0,c=o-i,p=.5=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function W(e){var t=V(e);return U(Oe({},t,{hue:(t.hue+180)%360}))}function z(e,t,n){return s(e,a(t,n))}function H(e){var t=T(e),n=Object.keys(t).map(function(e){var n=t[e]/255;return.03928>=n?n/12.92:fe((n+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]}function K(e){return U(Oe({},V(e),{saturation:0}))}function G(e){var t=T(e);return U(Oe({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))}function Y(){for(var e=arguments.length,t=Array(e),n=0;nn.indexOf(e[o]))throw new Error("You passed an unsupported selector state to this method.");r.push(ne(t,e[o]))}return r=r.join(",")}function oe(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function ae(){for(var e=arguments.length,t=Array(e),n=0;ne)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return He(e,t,"rgb(0, 0, 0)")}),et=B(function(e,t){if("number"!=typeof e||1e)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return He(e,t,"rgb(255, 255, 255)")}),tt=B(function(e,t){var n=T(t),r="number"==typeof n.alpha?n.alpha:1;return M(Oe({},n,{alpha:z(0,1,(100*r-100*e)/100)}))}),nt=[void 0,null,"active","focus","hover"],rt=["absolute","fixed","relative","static","sticky"],ot=[void 0,null,"active","focus","hover"]},function(e,t){"use strict";function n(e){return new Date(e.getTime())}function o(e){return e instanceof Date&&!isNaN(e.valueOf())}function a(e,t){var r=n(e);return r.setMonth(e.getMonth()+t),r}function s(e,t){return e&&t&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function i(e,t){return e&&t&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function u(e,t){return n(e).setHours(0,0,0,0)n(t).setHours(0,0,0,0)}function c(e){var t=new Date;return t.setHours(0,0,0,0),u(e,t)}function p(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function d(e,t,r){var o=n(e);return o.setHours(0,0,0,0),l(o,t)&&u(o,r)||l(o,r)&&u(o,t)}function f(e){var t=1y;y+=1)(h=(0,s.clone)(m[m.length-1])).setDate(m[m.length-1].getDate()+1),m.push(h);if(n&&6>l.length)for(var g=void 0,b=l.length;6>b;b+=1){for(var v,C=(g=l[l.length-1])[g.length-1],w=[],O=0;7>O;O+=1)(v=(0,s.clone)(C)).setDate(C.getDate()+O+1),w.push(v);l.push(w)}return l},t.startOfMonth=function(e){var t=(0,s.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t},t.getDayNodes=function(e,t){var n=t===u.default?t.day+"--"+t.outside:""+t.outside,r=t.day.replace(/ /g,"."),o=n.replace(/ /g,".");return e.querySelectorAll("."+r+":not(."+o+")")},t.nodeListToArray=function(e){return Array.prototype.slice.call(e,0)},t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var s=n(14),i=n(31),u=function(e){return e&&e.__esModule?e:{default:e}}(n(22))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t,n=1;n=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}n.r(t);var h=n(0),m=n.n(h),y=n(4),g=(n.n(y),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),b=[],v=0,C=function e(t,n,r){return null!==n&&n!==r.parentNode?t(n)?n===document.body&&0===n.scrollTop?document.documentElement:n:e(t,n.parentNode,r):null}.bind(null,function(e){return e.scrollHeight>e.clientHeight}),w=["highlightedIndex","inputValue","isOpen","selectedItem","type"],O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=Object.assign||function(e){for(var t,n=1;nu.top&&0>o.top)return void(n.scrollTop+=u.top);if(0>u.top)return void(n.scrollTop+=u.top-i);if(0o.top)return void(0o.bottom&&(n.scrollTop+=u.bottom-o.bottom+s));var l=u.top+n.scrollTop-i;ln.scrollTop+o.height&&(n.scrollTop=l+u.height-o.height+s)}}(this.getItemNodeFromIndex(this.getState().highlightedIndex),this._rootNode)},t.prototype.moveHighlightedIndex=function(e,t){this.getState().isOpen?this.changeHighlightedIndex(e,t):this.setHighlightedIndex(void 0,P({isOpen:!0},t))},t.prototype.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var r=this.getState().highlightedIndex;null===r&&(r=0o?o=n:o>n&&(o=0),this.setHighlightedIndex(o,t)}},t.prototype.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,a=this.props.itemToString,s=this.id,i=this.getRootProps,u=this.getButtonProps,l=this.getToggleButtonProps,c=this.getLabelProps,p=this.getInputProps,d=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,y=this.selectItem,g=this.selectItemAtIndex,b=this.selectHighlightedItem,v=this.setHighlightedIndex,C=this.clearSelection,w=this.clearItems;return{getRootProps:i,getButtonProps:u,getToggleButtonProps:l,getLabelProps:c,getInputProps:p,getItemProps:d,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:y,selectItemAtIndex:g,selectHighlightedItem:b,setHighlightedIndex:v,clearSelection:C,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:s,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},t.prototype.getItemId=function(e){return this.id+"-item-"+e},t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0;var n=function(){e.isMouseDown=!0},r=function(n){var r=e.props.environment.document;e.isMouseDown=!1;var o=e._rootNode&&s(e._rootNode,n.target),a=e._rootNode&&s(e._rootNode,r.activeElement);o||a||!e.getState().isOpen||e.reset({type:t.stateChangeTypes.mouseUp},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},o=function(n){!(e._rootNode&&s(e._rootNode,n.target))&&e.getState().isOpen&&e.reset({type:t.stateChangeTypes.touchStart},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.cleanup=function(){e._isMounted=!1,e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o)}},t.prototype.componentDidUpdate=function(e,n){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:t.stateChangeTypes.controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)});var r=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?n:e;r.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cleanup()},t.prototype.render=function(){var e=l(this.props.render||this.props.children,a);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=l(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called)return this.getRootProps.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!c(e);if(o&&!r)throw new Error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");if(!o&&r)throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"');if(!p(e)[n])throw new Error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(c(t))return m.a.cloneElement(t,this.getRootProps(p(t)));throw new Error("downshift: If you return a non-DOM element, you must use apply the getRootProps function")},t}(h.Component);E.defaultProps={defaultHighlightedIndex:null,defaultSelectedItem:null,defaultInputValue:"",defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.highlightedItem,r=e.selectedItem,o=e.resultCount,a=e.previousResultCount,s=e.itemToString;return t?o?n&&o===a?s(n):o+" "+(1===o?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":r?s(r):""},itemToString:function(e){return null==e?"":e+""},onStateChange:function(){},onInputValueChange:function(){},onUserAction:function(){},onChange:function(){},onSelect:function(){},onOuterClick:function(){},selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},breakingChanges:{}},E.stateChangeTypes={unknown:"__autocomplete_unknown__",mouseUp:"__autocomplete_mouseup__",itemMouseEnter:"__autocomplete_item_mouseenter__",keyDownArrowUp:"__autocomplete_keydown_arrow_up__",keyDownArrowDown:"__autocomplete_keydown_arrow_down__",keyDownEscape:"__autocomplete_keydown_escape__",keyDownEnter:"__autocomplete_keydown_enter__",clickItem:"__autocomplete_click_item__",blurInput:"__autocomplete_blur_input__",changeInput:"__autocomplete_change_input__",keyDownSpaceButton:"__autocomplete_keydown_space_button__",clickButton:"__autocomplete_click_button__",blurButton:"__autocomplete_blur_button__",controlledPropUpdatedSelectedItem:"__autocomplete_controlled_prop_updated_selected_item__",touchStart:"__autocomplete_touchstart__"};var _=function(){var e=this;this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.setItemCount=function(t){return e.itemCount=t},this.unsetItemCount=function(){return e.itemCount=null},this.setHighlightedIndex=function(){var t=0=document.body.offsetHeight&&e.loadMore()},this.loadMore=function(){if(e.props.hits&&!e.props.pagination&&e.props.total!==e.props.hits.length){var t=e.state.from+e.props.size,n=(0,p.getQueryOptions)(e.props);e.setState({from:t,isLoading:!0}),e.props.loadMore(e.props.componentId,i({},n,{from:t}),!0)}else e.state.isLoading&&e.setState({isLoading:!1})},this.setPage=function(t){if(t!==e.state.currentPage){var n=e.props.onPageClick;n&&n(t+1);var r=e.props.size*t,o=(0,p.getQueryOptions)(e.props);o.from=e.state.from,e.setState({from:r,isLoading:!0,currentPage:t}),e.props.loadMore(e.props.componentId,i({},o,{from:r}),!1),e.props.URLParams&&e.props.setPageURL(e.props.componentId,t+1,e.props.componentId,!1,!0)}},this.renderResultStats=function(){return e.props.onResultStats&&e.props.total?e.props.onResultStats(e.props.total,e.props.time):e.props.total?l.default.createElement("p",{className:y.resultStats+" "+(0,p.getClassName)(e.props.innerClass,"resultStats")},e.props.total," results found in ",e.props.time,"ms"):null},this.renderNoResults=function(){return l.default.createElement("p",{className:(0,p.getClassName)(e.props.innerClass,"noResults")||null},e.props.onNoResults)},this.handleSortChange=function(t){var n,r=t.target.value,o=(0,p.getQueryOptions)(e.props);o.from=0,o.sort=[(n={},n[e.props.sortOptions[r].dataField]={order:e.props.sortOptions[r].sortBy},n)],e.props.setQueryOptions(e.props.componentId,o,!0),e.setState({currentPage:0,from:0})},this.triggerClickAnalytics=function(t){var n=e.props,r=n.config,o=n.analytics.searchId,a=r.url,s=r.app,i=r.credentials;r.analytics&&a.endsWith("scalr.api.appbase.io")&&o&&fetch(a+"/"+s+"/analytics",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(i),"X-Search-Id":o,"X-Search-Click":!0,"X-Search-Click-Position":t+1}})},this.renderSortOptions=function(){return l.default.createElement("select",{className:y.sortOptions+" "+(0,p.getClassName)(e.props.innerClass,"sortOptions"),name:"sort-options",onChange:e.handleSortChange},e.props.sortOptions.map(function(e,t){return l.default.createElement("option",{key:e.label,value:t},e.label)}))}};b.propTypes={addComponent:d.default.funcRequired,loadMore:d.default.funcRequired,removeComponent:d.default.funcRequired,setQueryListener:d.default.funcRequired,onQueryChange:d.default.func,onError:d.default.func,setPageURL:d.default.func,setQueryOptions:d.default.funcRequired,setStreaming:d.default.func,updateQuery:d.default.funcRequired,watchComponent:d.default.funcRequired,currentPage:d.default.number,hits:d.default.hits,isLoading:d.default.bool,includeFields:d.default.includeFields,streamHits:d.default.hits,time:d.default.number,total:d.default.number,config:d.default.props,analytics:d.default.props,className:d.default.string,componentId:d.default.stringRequired,dataField:d.default.stringRequired,defaultPage:d.default.number,defaultQuery:d.default.func,excludeFields:d.default.excludeFields,innerClass:d.default.style,listClass:d.default.string,loader:d.default.title,onAllData:d.default.func,onData:d.default.func,onNoResults:d.default.title,onPageChange:d.default.func,onPageClick:d.default.func,onResultStats:d.default.func,pages:d.default.number,pagination:d.default.bool,paginationAt:d.default.paginationAt,react:d.default.react,showResultStats:d.default.bool,size:d.default.number,sortBy:d.default.sortBy,sortOptions:d.default.sortOptions,stream:d.default.bool,style:d.default.style,URLParams:d.default.bool},b.defaultProps={className:null,currentPage:0,listClass:"",pages:5,pagination:!1,paginationAt:"bottom",includeFields:["*"],excludeFields:[],showResultStats:!0,size:10,style:{},URLParams:!1,onNoResults:"No Results found."},t.default=(0,g.connect)(function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,isLoading:e.isLoading[t.componentId]||!1,streamHits:e.streamHits[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,analytics:e.analytics,config:e.config}},function(e){return{addComponent:function(t){return e((0,c.addComponent)(t))},loadMore:function(t,n,r){return e((0,c.loadMore)(t,n,r))},removeComponent:function(t){return e((0,c.removeComponent)(t))},setPageURL:function(t,n,r,o,a){return e((0,c.setValue)(t,n,r,o,a))},setQueryOptions:function(t,n,r){return e((0,c.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,c.setQueryListener)(t,n,r))},setStreaming:function(t,n){return e((0,c.setStreaming)(t,n))},updateQuery:function(t,n){return e((0,c.updateQuery)(t,n))},watchComponent:function(t,n){return e((0,c.watchComponent)(t,n))}}})(b)},function(e,t,n){"use strict";t.decode=t.parse=n(68),t.encode=t.stringify=n(69)},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.storeKey=void 0,t.default=function(e){return(0,o.createStore)(s.default,e,(0,o.applyMiddleware)(a.default))};var o=n(38),a=r(n(74)),s=r(n(75)),i=n(5);t.storeKey=i.STORE_KEY},function(e,t,n){"use strict";function r(e,t,n){function o(){m===h&&(m=h.slice())}function a(){if(y)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return f}function s(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(y)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),m.push(e),function(){if(t){if(y)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var n=m.indexOf(e);m.splice(n,1)}}}function i(e){if(!function(e){if("object"!==(void 0===e?"undefined":d(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,f=l(f,e)}finally{y=!1}for(var t=h=m,n=0;ne[t]||90e[t]||180 .trim{display:block;display:-webkit-box;width:100%;max-height:2.3rem;line-height:1.2rem;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}&:hover,&:focus{background-color:#eee;}}","dark"===e&&i(t))},t.input=s},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t,n=1;n ({})}!");return n}if(!m(e))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return void 0===t?e:r({},t,e)}n.r(t),n.d(t,"ThemeProvider",function(){return y}),n.d(t,"withTheme",function(){return g}),n.d(t,"channel",function(){return f}),n.d(t,"contextTypes",function(){return h}),n.d(t,"createBroadcast",function(){return d});var s,i=n(4),u=n.n(i),l=n(0),c=(n.n(l),n(26)),p=n.n(c),d=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}}},f="__EMOTION_THEMING__",h=((s={})[f]=u.a.object,s),m=function(e){return"[object Object]"===Object.prototype.toString.call(e)},y=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;void 0!==this.context[f]&&(this.unsubscribeToOuterId=this.context[f].subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=d(a(this.props.theme,this.outerTheme))},n.getChildContext=function(){var e;return(e={})[f]={subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e},n.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},n.componentWillUnmount=function(){var e=this.context[f];void 0!==e&&e.unsubscribe(this.unsubscribeToOuterId)},n.publish=function(e){this.broadcast.publish(a(e,this.outerTheme))},n.render=function(){return this.props.children?l.Children.only(this.props.children):null},t.childContextTypes=h,t.contextTypes=h,t}(l.Component),g=function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e){return t.call(this,e)||this}o(n,t);var a=n.prototype;return a.componentWillMount=function(){var e=this,t=this.context[f];return void 0===t?void console.error("[withTheme] Please use ThemeProvider to be able to use withTheme"):void(this.unsubscribeId=t.subscribe(function(t){e.setState({theme:t})}))},a.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[f].unsubscribe(this.unsubscribeId)},a.render=function(){return Object(l.createElement)(e,r({theme:this.state.theme},this.props))},n}(l.Component);return n.displayName="WithTheme("+t+")",n.contextTypes=h,p()(n,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.loadMoreContainer=t.numberBoxContainer=t.toggleButtons=t.filters=t.pagination=void 0;var r=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),a=n(14),s=(0,r.css)("margin:10px -3px;max-width:100%;text-align:center;a{margin:0 3px;}"),i=(0,r.css)("margin:0 -3px;max-width:100%;a{margin:3px 3px;}"),u=(0,r.css)("margin:0 -5px;a{margin:5px;}span{margin:0 5px;}"),l=(0,r.css)({margin:"5px 0",display:"flex",justifyContent:"center"}),c=function(e){var t=e.theme;return(0,r.css)("background-color:",t.colors.primaryColor,";color:",t.colors.primaryTextColor,";&:hover,&:focus{background-color:",(0,a.darken)(.1,t.colors.primaryColor),";}")},p=function(){return(0,r.css)("min-height:40px;padding:10px 20px;")},d=function(e){var t=e.theme;return(0,r.css)("background-color:",t.colors.backgroundColor?(0,a.lighten)(.1,t.colors.backgroundColor):"#fafafa",";color:#ccc;cursor:not-allowed;&:hover,&:focus{background-color:",t.colors.backgroundColor?(0,a.lighten)(.2,t.colors.backgroundColor):"#fafafa",";}")},f=(0,o.default)("a",{target:"e10k3y5u0"})("display:inline-flex;justify-content:center;align-items:center;border-radius:3px;border:1px solid transparent;min-height:30px;word-wrap:break-word;padding:5px 12px;line-height:1.2rem;background-color:",function(e){return e.theme.colors.backgroundColor||"#eee"},";color:",function(e){return e.theme.colors.textColor},";cursor:pointer;user-select:none;transition:all 0.3s ease;&:hover,&:focus{background-color:",function(e){var t=e.theme;return t.colors.backgroundColor?(0,a.darken)(.1,t.colors.backgroundColor):"#ccc"},";}&:focus{outline:0;border-color:",function(e){var t=e.theme;return(0,a.rgba)(t.colors.primaryColor,.6)},";box-shadow:",function(e){var t=e.theme;return"0 0 0 2px "+(0,a.rgba)(t.colors.primaryColor,.3)},";}",function(e){return e.primary?c:null},";",function(e){return e.disabled?d:null},";",function(e){return e.large&&p},";");t.pagination=s,t.filters=function(e){var t=e.colors.borderColor;return(0,r.css)("margin:0 -3px;max-width:100%;a{margin:2px 3px;padding:5px 8px;font-size:0.85rem;position:relative;span:first-child{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:26px;}span:last-child{display:flex;height:100%;top:0;right:8px;position:absolute;align-items:center;border-left:1px solid ",t||"#fff",";padding-left:8px;margin-left:8px;}&:hover,&:focus{span:first-child{text-decoration:line-through;}}}")},t.toggleButtons=i,t.numberBoxContainer=u,t.loadMoreContainer=l,t.default=f},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(1t.length)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:r||function(e){return e[0].split(" ")[0]}(t),backgroundImage:function(e){for(var t="",n=0;n=arguments.length?void 0:arguments[1])||(2>=arguments.length?void 0:arguments[2])||(3>=arguments.length?void 0:arguments[3]))?(t=t.slice(0,-1),t+=", "+(arguments.length<=n+1?void 0:arguments[n+1])):3!=n||arguments.length<=n+1||!arguments[n+1]||(1>=arguments.length?void 0:arguments[1])||(2>=arguments.length?void 0:arguments[2])||(3>=arguments.length?void 0:arguments[3])?(arguments.length<=n+1?void 0:arguments[n+1])&&(t+=(arguments.length<=n+1?void 0:arguments[n+1])+" "):t+=""+(arguments.length<=n+1?void 0:arguments[n+1]);return t.trim()}(Se,o,a,n,t.join(", "))}}function k(e,t){var n,r=2o?(u=a,l=s):1<=o&&2>o?(u=s,l=a):2<=o&&3>o?(l=a,c=s):3<=o&&4>o?(l=s,c=a):4<=o&&5>o?(u=s,c=a):5<=o&&6>o&&(u=a,c=s);var p=n-a/2;return r(u+p,l+p,c+p)}function T(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return xe[t]?"#"+xe[t]:e}(e);if(t.match(Ne))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Re))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};var n=Te.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var r=Ve.exec(t);if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])};var o=De.exec(t);if(o){var a="rgb("+R(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",s=Te.exec(a);if(!s)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+a+".");return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var i=Me.exec(t);if(i){var u="rgb("+R(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=Te.exec(u);if(!l)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+u+".");return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+i[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function V(e){return function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,o=s(t,n,r),i=a(t,n,r),u=(o+i)/2;if(o===i)return void 0===e.alpha?{hue:0,saturation:0,lightness:u}:{hue:0,saturation:0,lightness:u,alpha:e.alpha};var l=void 0,c=o-i,p=.5=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function W(e){var t=V(e);return U(Oe({},t,{hue:(t.hue+180)%360}))}function H(e,t,n){return s(e,a(t,n))}function z(e){var t=T(e),n=Object.keys(t).map(function(e){var n=t[e]/255;return.03928>=n?n/12.92:fe((n+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]}function K(e){return U(Oe({},V(e),{saturation:0}))}function G(e){var t=T(e);return U(Oe({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))}function Y(){for(var e=arguments.length,t=Array(e),n=0;nn.indexOf(e[o]))throw new Error("You passed an unsupported selector state to this method.");r.push(ne(t,e[o]))}return r=r.join(",")}function oe(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}function ae(){for(var e=arguments.length,t=Array(e),n=0;ne)throw new Error("Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ze(e,t,"rgb(0, 0, 0)")}),et=B(function(e,t){if("number"!=typeof e||1e)throw new Error("Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.");if("string"!=typeof t)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");return ze(e,t,"rgb(255, 255, 255)")}),tt=B(function(e,t){var n=T(t),r="number"==typeof n.alpha?n.alpha:1;return A(Oe({},n,{alpha:H(0,1,(100*r-100*e)/100)}))}),nt=[void 0,null,"active","focus","hover"],rt=["absolute","fixed","relative","static","sticky"],ot=[void 0,null,"active","focus","hover"]},function(e,t){"use strict";function n(e){return new Date(e.getTime())}function o(e){return e instanceof Date&&!isNaN(e.valueOf())}function a(e,t){var r=n(e);return r.setMonth(e.getMonth()+t),r}function s(e,t){return e&&t&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function i(e,t){return e&&t&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function u(e,t){return n(e).setHours(0,0,0,0)n(t).setHours(0,0,0,0)}function c(e){var t=new Date;return t.setHours(0,0,0,0),u(e,t)}function p(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function d(e,t,r){var o=n(e);return o.setHours(0,0,0,0),l(o,t)&&u(o,r)||l(o,r)&&u(o,t)}function f(e){var t=1y;y+=1)(h=(0,s.clone)(m[m.length-1])).setDate(m[m.length-1].getDate()+1),m.push(h);if(n&&6>l.length)for(var g=void 0,b=l.length;6>b;b+=1){for(var v,C=(g=l[l.length-1])[g.length-1],w=[],O=0;7>O;O+=1)(v=(0,s.clone)(C)).setDate(C.getDate()+O+1),w.push(v);l.push(w)}return l},t.startOfMonth=function(e){var t=(0,s.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t},t.getDayNodes=function(e,t){var n=t===u.default?t.day+"--"+t.outside:""+t.outside,r=t.day.replace(/ /g,"."),o=n.replace(/ /g,".");return e.querySelectorAll("."+r+":not(."+o+")")},t.nodeListToArray=function(e){return Array.prototype.slice.call(e,0)},t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var s=n(15),i=n(32),u=function(e){return e&&e.__esModule?e:{default:e}}(n(22))},function(e,t,n){"use strict";t.__esModule=!0,t.getCompositeAggsQuery=t.getAggsQuery=void 0;var r=Object.assign||function(e){for(var t,n=1;n=n&&0!==t.indexOf("Arrow")?"Arrow"+t:t}n.r(t);var h=n(0),m=n.n(h),y=n(4),g=(n.n(y),"undefined"==typeof document?null:document.getElementById("a11y-status-message")),b=[],v=0,C=function e(t,n,r){return null!==n&&n!==r.parentNode?t(n)?n===document.body&&0===n.scrollTop?document.documentElement:n:e(t,n.parentNode,r):null}.bind(null,function(e){return e.scrollHeight>e.clientHeight}),w=["highlightedIndex","inputValue","isOpen","selectedItem","type"],O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=Object.assign||function(e){for(var t,n=1;nu.top&&0>o.top)return void(n.scrollTop+=u.top);if(0>u.top)return void(n.scrollTop+=u.top-i);if(0o.top)return void(0o.bottom&&(n.scrollTop+=u.bottom-o.bottom+s));var l=u.top+n.scrollTop-i;ln.scrollTop+o.height&&(n.scrollTop=l+u.height-o.height+s)}}(this.getItemNodeFromIndex(this.getState().highlightedIndex),this._rootNode)},t.prototype.moveHighlightedIndex=function(e,t){this.getState().isOpen?this.changeHighlightedIndex(e,t):this.setHighlightedIndex(void 0,P({isOpen:!0},t))},t.prototype.changeHighlightedIndex=function(e,t){var n=this.getItemCount()-1;if(!(0>n)){var r=this.getState().highlightedIndex;null===r&&(r=0o?o=n:o>n&&(o=0),this.setHighlightedIndex(o,t)}},t.prototype.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,a=this.props.itemToString,s=this.id,i=this.getRootProps,u=this.getButtonProps,l=this.getToggleButtonProps,c=this.getLabelProps,p=this.getInputProps,d=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,y=this.selectItem,g=this.selectItemAtIndex,b=this.selectHighlightedItem,v=this.setHighlightedIndex,C=this.clearSelection,w=this.clearItems;return{getRootProps:i,getButtonProps:u,getToggleButtonProps:l,getLabelProps:c,getInputProps:p,getItemProps:d,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:y,selectItemAtIndex:g,selectHighlightedItem:b,setHighlightedIndex:v,clearSelection:C,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:a,id:s,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},t.prototype.getItemId=function(e){return this.id+"-item-"+e},t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0;var n=function(){e.isMouseDown=!0},r=function(n){var r=e.props.environment.document;e.isMouseDown=!1;var o=e._rootNode&&s(e._rootNode,n.target),a=e._rootNode&&s(e._rootNode,r.activeElement);o||a||!e.getState().isOpen||e.reset({type:t.stateChangeTypes.mouseUp},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},o=function(n){!(e._rootNode&&s(e._rootNode,n.target))&&e.getState().isOpen&&e.reset({type:t.stateChangeTypes.touchStart},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.cleanup=function(){e._isMounted=!1,e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o)}},t.prototype.componentDidUpdate=function(e,n){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:t.stateChangeTypes.controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)});var r=void 0===this.props.highlightedIndex?this.state:this.props,o=void 0===e.highlightedIndex?n:e;r.highlightedIndex===o.highlightedIndex||this.avoidScrolling||this.scrollHighlightedItemIntoView(),this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cleanup()},t.prototype.render=function(){var e=l(this.props.render||this.props.children,a);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=l(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called)return this.getRootProps.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!c(e);if(o&&!r)throw new Error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");if(!o&&r)throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"');if(!p(e)[n])throw new Error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(c(t))return m.a.cloneElement(t,this.getRootProps(p(t)));throw new Error("downshift: If you return a non-DOM element, you must use apply the getRootProps function")},t}(h.Component);E.defaultProps={defaultHighlightedIndex:null,defaultSelectedItem:null,defaultInputValue:"",defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.highlightedItem,r=e.selectedItem,o=e.resultCount,a=e.previousResultCount,s=e.itemToString;return t?o?n&&o===a?s(n):o+" "+(1===o?"result is":"results are")+" available, use up and down arrow keys to navigate.":"No results.":r?s(r):""},itemToString:function(e){return null==e?"":e+""},onStateChange:function(){},onInputValueChange:function(){},onUserAction:function(){},onChange:function(){},onSelect:function(){},onOuterClick:function(){},selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},breakingChanges:{}},E.stateChangeTypes={unknown:"__autocomplete_unknown__",mouseUp:"__autocomplete_mouseup__",itemMouseEnter:"__autocomplete_item_mouseenter__",keyDownArrowUp:"__autocomplete_keydown_arrow_up__",keyDownArrowDown:"__autocomplete_keydown_arrow_down__",keyDownEscape:"__autocomplete_keydown_escape__",keyDownEnter:"__autocomplete_keydown_enter__",clickItem:"__autocomplete_click_item__",blurInput:"__autocomplete_blur_input__",changeInput:"__autocomplete_change_input__",keyDownSpaceButton:"__autocomplete_keydown_space_button__",clickButton:"__autocomplete_click_button__",blurButton:"__autocomplete_blur_button__",controlledPropUpdatedSelectedItem:"__autocomplete_controlled_prop_updated_selected_item__",touchStart:"__autocomplete_touchstart__"};var _=function(){var e=this;this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.setItemCount=function(t){return e.itemCount=t},this.unsetItemCount=function(){return e.itemCount=null},this.setHighlightedIndex=function(){var t=0=document.body.offsetHeight;e.props.scrollTarget&&(t=e.domNode.clientHeight+e.domNode.scrollTop+300>=e.domNode.scrollHeight),!e.state.isLoading&&t&&e.loadMore()},this.loadMore=function(){if(e.props.hits&&!e.props.pagination&&e.props.total!==e.props.hits.length){var t=e.state.from+e.props.size,n=(0,p.getQueryOptions)(e.props);e.setState({from:t,isLoading:!0}),e.props.loadMore(e.props.componentId,i({},n,{from:t}),!0)}else e.state.isLoading&&e.setState({isLoading:!1})},this.setPage=function(t){if(t!==e.state.currentPage){var n=e.props.onPageClick;n&&n(t+1);var r=e.props.size*t,o=(0,p.getQueryOptions)(e.props);o.from=e.state.from,e.setState({from:r,isLoading:!0,currentPage:t},function(){e.props.loadMore(e.props.componentId,i({},o,{from:r}),!1),e.updatePageURL(t)})}},this.renderResultStats=function(){return e.props.onResultStats&&e.props.total?e.props.onResultStats(e.props.total,e.props.time):e.props.total?l.default.createElement("p",{className:y.resultStats+" "+(0,p.getClassName)(e.props.innerClass,"resultStats")},e.props.total," results found in ",e.props.time,"ms"):null},this.renderNoResults=function(){return l.default.createElement("p",{className:(0,p.getClassName)(e.props.innerClass,"noResults")||null},e.props.onNoResults)},this.handleSortChange=function(t){var n,r=t.target.value,o=(0,p.getQueryOptions)(e.props);o.from=0,o.sort=[(n={},n[e.props.sortOptions[r].dataField]={order:e.props.sortOptions[r].sortBy},n)],e.props.setQueryOptions(e.props.componentId,o,!0),e.setState({currentPage:0,from:0},function(){e.updatePageURL(0)})},this.updatePageURL=function(t){e.props.URLParams&&e.props.setPageURL(e.props.componentId,t+1,e.props.componentId,!1,!0)},this.triggerClickAnalytics=function(t){var n=e.props,r=n.config,o=n.analytics.searchId,a=r.url,s=r.app,i=r.credentials;r.analytics&&a.endsWith("scalr.api.appbase.io")&&o&&fetch(a+"/"+s+"/analytics",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(i),"X-Search-Id":o,"X-Search-Click":!0,"X-Search-Click-Position":t+1}})},this.renderSortOptions=function(){return l.default.createElement("select",{className:y.sortOptions+" "+(0,p.getClassName)(e.props.innerClass,"sortOptions"),name:"sort-options",onChange:e.handleSortChange},e.props.sortOptions.map(function(e,t){return l.default.createElement("option",{key:e.label,value:t},e.label)}))}};b.propTypes={addComponent:d.default.funcRequired,loadMore:d.default.funcRequired,removeComponent:d.default.funcRequired,setQueryListener:d.default.funcRequired,onQueryChange:d.default.func,onError:d.default.func,setPageURL:d.default.func,setQueryOptions:d.default.funcRequired,setStreaming:d.default.func,updateQuery:d.default.funcRequired,watchComponent:d.default.funcRequired,currentPage:d.default.number,hits:d.default.hits,isLoading:d.default.bool,includeFields:d.default.includeFields,streamHits:d.default.hits,time:d.default.number,total:d.default.number,config:d.default.props,analytics:d.default.props,queryLog:d.default.props,className:d.default.string,componentId:d.default.stringRequired,dataField:d.default.stringRequired,defaultPage:d.default.number,defaultQuery:d.default.func,excludeFields:d.default.excludeFields,innerClass:d.default.style,listClass:d.default.string,loader:d.default.title,onAllData:d.default.func,onData:d.default.func,onNoResults:d.default.title,onPageChange:d.default.func,onPageClick:d.default.func,onResultStats:d.default.func,pages:d.default.number,pagination:d.default.bool,paginationAt:d.default.paginationAt,react:d.default.react,scrollTarget:d.default.string,showResultStats:d.default.bool,size:d.default.number,sortBy:d.default.sortBy,sortOptions:d.default.sortOptions,stream:d.default.bool,style:d.default.style,URLParams:d.default.bool},b.defaultProps={className:null,currentPage:0,listClass:"",pages:5,pagination:!1,paginationAt:"bottom",includeFields:["*"],excludeFields:[],showResultStats:!0,size:10,style:{},URLParams:!1,onNoResults:"No Results found."},t.default=(0,g.connect)(function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,isLoading:e.isLoading[t.componentId]||!1,streamHits:e.streamHits[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,analytics:e.analytics,config:e.config,queryLog:e.queryLog[t.componentId]}},function(e){return{addComponent:function(t){return e((0,c.addComponent)(t))},loadMore:function(t,n,r){return e((0,c.loadMore)(t,n,r))},removeComponent:function(t){return e((0,c.removeComponent)(t))},setPageURL:function(t,n,r,o,a){return e((0,c.setValue)(t,n,r,o,a))},setQueryOptions:function(t,n,r){return e((0,c.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,c.setQueryListener)(t,n,r))},setStreaming:function(t,n){return e((0,c.setStreaming)(t,n))},updateQuery:function(t,n){return e((0,c.updateQuery)(t,n))},watchComponent:function(t,n){return e((0,c.watchComponent)(t,n))}}})(b)},function(e,t,n){"use strict";t.decode=t.parse=n(69),t.encode=t.stringify=n(70)},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.storeKey=void 0,t.default=function(e){return(0,o.createStore)(s.default,e,(0,o.applyMiddleware)(a.default))};var o=n(39),a=r(n(75)),s=r(n(76)),i=n(5);t.storeKey=i.STORE_KEY},function(e,t,n){"use strict";function r(e,t,n){function o(){m===h&&(m=h.slice())}function a(){if(y)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return f}function s(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(y)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),m.push(e),function(){if(t){if(y)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var n=m.indexOf(e);m.splice(n,1)}}}function i(e){if(!function(e){if("object"!==(void 0===e?"undefined":d(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,f=l(f,e)}finally{y=!1}for(var t=h=m,n=0;n=n;o--)r/=Y[o],r+=S(t,!1,o)-S(e,!1,o);n==j&&(r+=12*(t.getFullYear()-e.getFullYear()))}else if(n==L){var a=e.toDate().setUTCHours(0,0,0,0),s=t.toDate().setUTCHours(0,0,0,0);r=u((s-a)/W)+(t-s-(e-a))/W}else r=(t-e)/[36e5,6e4,1e3,1][n-3];return r}function h(e){return function(e,t,n){var a=new r(X(e,t,n)),s=y(m(e,t,n));return o(u((a-s)/W)/7)+1}(e(M),e(j),e(L))}function m(e,t,n){var o=new r(X(e,t,n));return o=y(e+1)?e+1:e}function y(e){var t=new r(X(e,0,4));return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),t}function g(e,t,n,r){var o=R(S,e,r),a=R(E,e,r);void 0===n&&(n=m(o(M),o(j),o(L)));var s=y(n);r||(s=_(s)),e.setTime(s.getTime()),a(L,[o(L)+7*(t-1)])}function b(e,t,n,r,o){var a=l.locales,s=a[l.defaultLocale]||{},i=R(S,e,o);return n=(V(n)?a[n]:n)||{},v(e,t,function(e){if(r)for(var t=(e==B?L:e)-1;0<=t;t--)r.push(i(t));return i(e)},function(e){return n[e]||s[e]},o)}function v(e,t,n,r,o){for(var a,s,i="";a=t.match(J);)i+=t.substr(0,a.index),a[1]?i+=C(e,a[1],n,r,o):a[3]?(s=v(e,a[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(i+=s)):i+=a[7]||"'",t=t.substr(a.index+a[0].length);return i+t}function C(e,t,n,r,o){for(var a,s=t.length,i="";0s?"th":["st","nd","rd"][s%10-1]||"th"}}function O(e,t){var n=e.getTimezoneOffset(),r=0>n?"+":"-",a=o(i(n)/60),s=i(n)%60,u=a;return"zz"==t?u=A(a):"zzz"==t&&(u=A(a)+":"+A(s)),r+u}function P(e,t){return 12>e(Q)?t("amDesignator"):t("pmDesignator")}function k(e){return!isNaN(e[0].getTime())}function S(e,t,n){return e["get"+(t?"UTC":"")+K[n]]()}function E(e,t,n,r){e["set"+(t?"UTC":"")+K[n]].apply(e,r)}function _(e){return new r(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function I(e,t){return 32-new r(X(e,t,32)).getUTCDate()}function x(e){return function(){return e.apply(void 0,[this].concat(N(arguments)))}}function R(e){var t=N(arguments,1);return function(){return e.apply(void 0,t.concat(N(arguments)))}}function N(e,t,n){return s.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function T(e,t){for(var n=0;n div{font-size:1.15rem;font-weight:500;}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group;}.DayPicker-WeekdaysRow{display:table-row;}.DayPicker-Weekday{display:table-cell;padding:0.5rem;font-size:0.875em;text-align:center;color:#8b9898;}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none;}.DayPicker-Body{display:table-row-group;}.DayPicker-Week{display:table-row;}.DayPicker-Day{display:table-cell;padding:0.5rem;text-align:center;cursor:pointer;vertical-align:middle;outline:none;}.DayPicker-WeekNumber{display:table-cell;padding:0.5rem;text-align:right;vertical-align:middle;min-width:1rem;font-size:0.75em;cursor:pointer;color:#8b9898;border-right:1px solid #eaecec;}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default;}.DayPicker-Footer{padding-top:0.5rem;}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;color:",function(e){return e.theme.colors.primaryColor},";font-size:0.875em;}.DayPicker-Day--today{color:",function(e){return e.theme.colors.primaryColor},";font-weight:700;}.DayPicker-Day--outside{cursor:default;color:#8b9898;}.DayPicker-Day--disabled{color:#dce0e0;cursor:default;}.DayPicker-Day--sunday{background-color:#f7f8f8;}.DayPicker-Day--sunday:not(.DayPicker-Day--today){color:#dce0e0;}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:#f0f8ff;color:#f0f8ff;background-color:",function(e){return e.theme.colors.primaryColor},";border-radius:",function(e){return e.range?0:"100%"},";}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)},";}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)},";border-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--start:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-left-radius:50%;border-bottom-left-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;}.DayPicker-Day.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;background-color:",function(e){return e.theme.colors.primaryColor||"#fff"},";color:#fff;}.DayPickerInput{flex:1;}.DayPickerInput input{",i.input,";background-color:",function(e){return e.theme.colors.backgroundColor||"#fff"},";color:",function(e){return e.theme.colors.textColor},";",function(e){return!e.showBorder&&(0,r.css)("border:none;")},";&:focus{background-color:",function(e){return e.theme.colors.backgroundColor||"#fff"},";}}.DayPickerInput-OverlayWrapper{position:absolute;width:100%;left:0;z-index:4;}.DayPickerInput-OverlayWrapper .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside){background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)||"#f0f8ff"},";}.DayPickerInput-Overlay{left:0;top:1px;z-index:1;position:absolute;background:",function(e){var t=e.theme.colors;return t.backgroundColor?(0,s.lighten)(.15,t.backgroundColor):"#fff"},";box-shadow:0 2px 5px rgba(0,0,0,0.15);}",function(e){return e.theme.component},";");t.default=(0,a.withTheme)(u)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var s=n(0),i=a(s),u=n(6),l=n(2),c=a(n(1)),p=a(n(46)),d=a(n(47)),f=a(n(48)),h=a(n(49)),m=a(n(7)),y=n(34),g=n(3),b=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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,e.call(this,n));return v.call(r),r.state={currentValue:[n.range.start,n.range.end],stats:[]},r.locked=!1,r.internalComponent=r.props.componentId+"__internal",n.setQueryListener(n.componentId,n.onQueryChange,null),r}return function(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)}(t,e),t.prototype.componentWillMount=function(){this.props.addComponent(this.props.componentId),this.props.addComponent(this.internalComponent),this.updateQueryOptions(this.props),this.setReact(this.props);var e=this.props,n=e.selectedValue,r=e.defaultSelected;Array.isArray(n)?this.handleChange(n):n?this.handleChange(t.parseValue(n,this.props)):r&&this.handleChange(t.parseValue(r,this.props))},t.prototype.componentWillReceiveProps=function(e){var t=this;(0,l.checkPropChange)(this.props.react,e.react,function(){return t.setReact(e)}),(0,l.checkSomePropChange)(this.props,e,["showHistogram","interval"],function(){return t.updateQueryOptions(e)}),(0,l.checkPropChange)(this.props.options,e.options,function(){var n=e.options;Array.isArray(n)&&n.sort(function(e,t){return e.keyt.key?1:0}),t.setState({stats:n||[]})}),(0,l.checkPropChange)(this.props.dataField,e.dataField,function(){t.updateQueryOptions(e),t.handleChange(t.state.currentValue,e)}),(0,l.isEqual)(this.props.defaultSelected,e.defaultSelected)?!(0,l.isEqual)(this.state.currentValue,e.selectedValue)&&this.handleChange(e.selectedValue||[e.range.start,e.range.end]):this.handleChange([e.defaultSelected.start,e.defaultSelected.end],e)},t.prototype.shouldComponentUpdate=function(e){var t=o((e.range.end-e.range.start)/2);return!(1>e.stepValue||e.stepValue>t)||(console.warn("stepValue for RangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+t),!1)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalComponent)},t.prototype.render=function(){return i.default.createElement(h.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&i.default.createElement(m.default,{className:(0,l.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram&&this.props.showSlider?i.default.createElement(d.default,{stats:this.state.stats,range:this.props.range,interval:this.getValidInterval(this.props)}):null,this.props.showSlider&&i.default.createElement(p.default,{min:this.props.range.start,max:this.props.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,l.getClassName)(this.props.innerClass,"slider")}),this.props.rangeLabels&&this.props.showSlider&&i.default.createElement("div",{className:y.rangeLabelsContainer},i.default.createElement(f.default,{align:"left",className:(0,l.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.start),i.default.createElement(f.default,{align:"right",className:(0,l.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.end)))},t}(s.Component);b.parseValue=function(e,t){return e?[e.start,e.end]:[t.range.start,t.range.end]},b.defaultQuery=function(e,t){var n;return Array.isArray(e)&&e.length?{range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)}:null};var v=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,l.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue;100<(e.props.range.end-e.props.range.start)/n&&(n=(e.props.range.end-e.props.range.start)/100);for(var r=e.props.range.start;r<=e.props.range.end;r+=n)t=t.concat(r);return t[t.length-1]!==e.props.range.end&&(t=t.concat(e.props.range.end)),t},this.getValidInterval=function(e){var t=r((e.range.end-e.range.start)/100)||1;return e.interval?e.intervalg?vw.PERCENT_FULL))throw new TypeError("getNextHandlePosition returned invalid position. Valid positions are floats between 0 and 100");return o}},{key:"validatePosition",value:function(e,t){var n=this.state,r=n.handlePos,o=n.handleDimensions,i=this.userAdjustPosition(e,t);return s(a(i,void 0===r[e+1]?w.PERCENT_FULL:r[e+1]-o),void 0===r[e-1]?w.PERCENT_EMPTY:r[e-1]+o)}},{key:"validateValues",value:function(e,t){var n=t||this.props,r=n.max,o=n.min;return e.map(function(e,t,n){var i=s(a(e,r),o);return n.length&&iw.PERCENT_FULL||t>(void 0===r[e+1]?1/0:r[e+1]-o)||t<(void 0===r[e-1]?-1/0:r[e-1]+o))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,o=this.getNextState(e,t);this.setState(o,function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()})}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,o=e.values,a=this.props.algorithm,s=this.validateValues(o,e);this.setState({handlePos:s.map(function(e){return a.getPosition(e,r,n)}),values:s},function(){return t.fireChangeEvent()})}}},{key:"invalidatePitStyleCache",value:function(){this.pitStyleCache={}}},{key:"render",value:function(){var e=this,t=this.props,n=t.algorithm,r=t.children,o=t.disabled,a=t.handle,s=t.max,i=t.min,u=t.orientation,l=t.pitComponent,c=t.pitPoints,p=t.progressBar,d=this.state,f=d.className,h=d.handlePos,m=d.values;return v.default.createElement("div",{className:f,ref:this.setRef,onClick:o?void 0:this.handleClick,style:{position:"relative"}},v.default.createElement("div",{className:"rheostat-background"}),h.map(function(t,n){var r="vertical"===u?{top:t+"%",position:"absolute"}:{left:t+"%",position:"absolute"};return v.default.createElement(a,{"aria-valuemax":e.getMaxValue(n),"aria-valuemin":e.getMinValue(n),"aria-valuenow":m[n],"aria-disabled":o,"data-handle-key":n,className:"rheostat-handle",key:"handle-"+n,onClick:e.killEvent,onKeyDown:o?void 0:e.handleKeydown,onMouseDown:o?void 0:e.startMouseSlide,onTouchStart:o?void 0:e.startTouchSlide,role:"slider",style:r,tabIndex:0})}),h.map(function(t,n,r){return 0===n&&1e.range.start&&(n=[{key:e.range.start,doc_count:0}].concat(n));var r=n[n.length-1];r.key+e.interval, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}return function(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)}(s,n),s.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[v]=t||this.context[v],e},s.prototype.componentDidMount=function(){d&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},s.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=o,this.store=null,this.selector.run=o,this.selector.shouldComponentUpdate=!1},s.prototype.getWrappedInstance=function(){return _()(y,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},s.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},s.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},s.prototype.initSubscription=function(){if(d){var e=(this.propsMode?this.props:this.context)[v];this.subscription=new R(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(V)):this.notifyNestedSubs()},s.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.prototype.isSubscribed=function(){return!!this.subscription&&this.subscription.isSubscribed()},s.prototype.addExtraProps=function(e){if(!(y||c||this.propsMode&&this.subscription))return e;var t=N({},e);return y&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[v]=this.subscription),t},s.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(b.createElement)(t,this.addExtraProps(e.props))},s}(b.Component);return i.WrappedComponent=t,i.displayName=r,i.childContextTypes=k,i.contextTypes=P,i.propTypes=P,S()(i,t)}}function s(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(s(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;othis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(e){return e&&DataView.prototype.isPrototypeOf(e)},b=ArrayBuffer.isView||function(e){return e&&-1n.length?e:r+S(n,t)}function s(e){y.inserted[e]=!0}if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var u,f,h=t.key||"css",m=i()(function(e){u+=e,p&&g.insert(e,w)});void 0!==t.prefix&&(f={prefix:t.prefix});var y={registered:{},inserted:{},nonce:t.nonce,key:h},g=new d(t);p&&g.inject();var b=new function e(t){function n(e,t,o,l,c){for(var f,h,m,y,g,w=0,P=0,k=0,S=0,E=0,_=0,V=m=f=0,A=0,j=0,L=0,Q=0,F=o.length,q=F-1,U="",B="",W="",z="";Af)&&(Q=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102o.charCodeAt(0)&&(o=o.trim()),o=[o],0>>16))<<16),r=1540483477*(65535&r)+((65535&1540483477*(r>>>16))<<16)^(t=1540483477*(65535&(t^=t>>>24))+((65535&1540483477*(t>>>16))<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((65535&1540483477*(r>>>16))<<16)}return r=1540483477*(65535&(r^=r>>>13))+((65535&1540483477*(r>>>16))<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t}(r,o),r},S=function(){var e=k.apply(this,arguments),t=h+"-"+v;return void 0===y.registered[t]&&(y.registered[t]=C),r("."+t,e),t};if(p){var E=document.querySelectorAll("[data-emotion-"+h+"]");Array.prototype.forEach.call(E,function(e){g.tags[0].parentNode.insertBefore(e,g.tags[0]),e.getAttribute("data-emotion-"+h).split(" ").forEach(s)})}var _={flush:function(){p&&(g.flush(),g.inject()),y.inserted={},y.registered={}},hydrate:function(e){e.forEach(s)},cx:function(){for(var e=arguments.length,t=Array(e),n=0;n>8-o%1*8)){if(255<(e=t.charCodeAt(o+=.75)))throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');r=r<<8|e}return n}function o(e,t){var n=[],r={object:null,string:""};Object.keys(t).forEach(function(o){var a=t[o];(x(e[o])!==a||e[o]===r[a])&&n.push(o)});for(var o="",a=0;au&&(l=u);for(var c=0;c=r;)t+=r,u();if("."===r)for(t+=".";u()&&"0"<=r&&"9">=r;)t+=r;if("e"===r||"E"===r)for(t+=r,u(),("-"===r||"+"===r)&&(t+=r,u());"0"<=r&&"9">=r;)t+=r,u();return e=+t,isFinite(e)?e:void i("Bad number")},c=function(){var e,n,o,a="";if('"'===r)for(;u();){if('"'===r)return u(),a;if("\\"!==r)a+=r;else if(u(),"u"===r){for(o=0,n=0;4>n&&(e=parseInt(u(),16),isFinite(e));n+=1)o=16*o+e;a+=t(o)}else{if("string"!=typeof s[r])break;a+=s[r]}}i("Bad string")},p=function(){for(;r&&" ">=r;)u()};a=function(){return p(),"{"===r?function(){var e,t={};if("{"===r){if(u("{"),p(),"}"===r)return u("}"),t;for(;r;){if(e=c(),p(),u(":"),Object.hasOwnProperty.call(t,e)&&i('Duplicate key "'+e+'"'),t[e]=a(),p(),"}"===r)return u("}"),t;u(","),p()}}i("Bad object")}():"["===r?function(){var e=[];if("["===r){if(u("["),p(),"]"===r)return u("]"),e;for(;r;){if(e.push(a()),p(),"]"===r)return u("]"),e;u(","),p()}}i("Bad array")}():'"'===r?c():"-"===r?l():"0"<=r&&"9">=r?l():function(){switch(r){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}i("Unexpected '"+r+"'")}()},e.exports=function(e,t){var s;return o=e,n=0,r=" ",s=a(),p(),r&&i("Syntax error"),"function"==typeof t?function e(n,r){var o,a,s=n[r];if(s&&"object"==typeof s)for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(void 0===(a=e(s,o))?delete s[o]:s[o]=a);return t.call(n,r,s)}({"":s},""):s}},function(e){function t(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,function(e){var t=i[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function n(e,s){var i,u,l,c,p,d=r,f=s[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof a&&(f=a.call(s,e,f)),typeof f){case"string":return t(f);case"number":return isFinite(f)?f+"":"null";case"boolean":case"null":return f+"";case"object":if(!f)return"null";if(r+=o,p=[],"[object Array]"===Object.prototype.toString.apply(f)){for(c=f.length,i=0;i stats.json",prepublish:"yarn run build",test:"jest --watch",typescript:"tsc -p tsconfig.json"},repository:{type:"git",url:"https://github.com/appbaseio/reactivesearch.git"},author:"metagrover",license:"Apache-2.0",dependencies:{"@appbaseio/reactivecore":"^5.0.1","appbase-js":"^4.0.2-beta.02",downshift:"^1.31.2",emotion:"^9.0.0","emotion-theming":"^9.0.0",polished:"^1.9.3","prop-types":"^15.6.0","react-day-picker":"^7.0.5","react-emotion":"^9.0.0","react-redux":"^5.0.7",rheostat:"^2.1.1","url-search-params":"^0.10.0",xdate:"^0.8.2"},peerDependencies:{react:">=15","react-dom":">=15"},devDependencies:{"@types/react":"^16.3.8","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-emotion":"^9.0.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babili-webpack-plugin":"^0.1.2","brotli-webpack-plugin":"^0.5.0","compression-webpack-plugin":"^1.0.1","eslint-plugin-jest":"^21.12.2","fs-extra":"^7.0.0",glob:"^7.1.2",jest:"^22.4.2",path:"^0.12.7",react:"^16.1.1","react-dom":"^16.1.1",tslint:"^5.9.1",typescript:"^2.8.1",webpack:"^4.18.0","webpack-cli":"^3.1.0"},resolutions:{"@types/react":"16.3.7"}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(0),a=r(o),s=n(6),i=n(2),u=r(n(1)),l=n(11),c=r(l),p=r(n(30)),d=r(n(17)),f=r(n(7)),h=r(n(8)),m=n(3),y=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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,e.call(this,n));return g.call(r),r.state={currentValue:n.selectedValue||""},r.locked=!1,n.setQueryListener(n.componentId,n.onQueryChange,null),r}return function(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)}(t,e),t.prototype.componentWillMount=function(){this.props.addComponent(this.props.componentId),this.setReact(this.props),this.props.selectedValue?this.setValue(this.props.selectedValue,!0):this.props.defaultSelected&&this.setValue(this.props.defaultSelected,!0)},t.prototype.componentWillReceiveProps=function(e){var t=this;(0,i.checkPropChange)(this.props.react,e.react,function(){t.setReact(e)}),(0,i.checkPropChange)(this.props.dataField,e.dataField,function(){t.updateQuery(t.state.currentValue,e)}),this.props.defaultSelected===e.defaultSelected?this.props.selectedValue!==e.selectedValue&&this.state.currentValue!==e.selectedValue&&this.setValue(e.selectedValue||"",!0,e):this.setValue(e.defaultSelected,!0,e)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId)},t.prototype.setReact=function(e){e.react&&e.watchComponent(e.componentId,e.react)},t.prototype.render=function(){return a.default.createElement(h.default,{style:this.props.style,className:this.props.className},this.props.title&&a.default.createElement(f.default,{className:(0,i.getClassName)(this.props.innerClass,"title")||null},this.props.title),a.default.createElement("div",{className:l.suggestionsContainer},a.default.createElement(c.default,{type:"text",className:(0,i.getClassName)(this.props.innerClass,"input")||null,placeholder:this.props.placeholder,onChange:this.handleChange,value:this.state.currentValue,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,autoFocus:this.props.autoFocus,innerRef:this.props.innerRef,themePreset:this.props.themePreset,showClear:this.props.showClear}),this.renderIcons()))},t}(o.Component);y.defaultQuery=function(e,t){var n;return e&&""!==e.trim()?{match:(n={},n[t.dataField]=e,n)}:null};var g=function(){var e=this;this.handleTextChange=(0,i.debounce)(function(t){e.updateQuery(t,e.props)},this.props.debounce),this.setValue=function(t){var n=1t?e.doc_count:t}),s.default.createElement(d.default,{style:this.props.style,className:this.props.className},this.props.title&&s.default.createElement(c.default,{className:(0,u.getClassName)(this.props.innerClass,"title")||null},this.props.title),s.default.createElement(p.default,{className:(0,u.getClassName)(this.props.innerClass,"list")||null},this.state.options.map(function(n){var r=n.doc_count/t*2.2+.8;return s.default.createElement("span",{key:n.key,onClick:function(){return e.setValue(n.key)},onKeyPress:function(t){return(0,u.handleA11yAction)(t,function(){return e.setValue(n.key)})},style:{fontSize:r+"em"},className:e.state.currentValue[n.key]?((0,u.getClassName)(e.props.innerClass,"input")||"")+" active":(0,u.getClassName)(e.props.innerClass,"input"),role:"menuitem",tabIndex:"0"},n.key,e.props.showCount&&" ("+n.doc_count+")")})))},t}(a.Component);h.defaultQuery=function(e,t){var n=null,r="or"===t.queryFormat?"terms":"term";if(r=t.multiSelect?r:"term",e){var o;if(t.multiSelect&&"or"!==t.queryFormat){var a=e.map(function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o});o={bool:{must:a}}}else{var s,i;(i={})[r]=((s={})[t.dataField]=e,s),o=i}n=e.length?o:null}return n};var m=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,u.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.setValue=function(t){var n=1=o||31r||12<=r?void 0:new Date(n,r,o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.HIDE_TIMEOUT=void 0;var i=function(){function e(e,t){for(var n,r=0;r=h.getMonthsDiff(t,e.toMonth)&&(t=m.addMonths(e.toMonth,1-this.props.numberOfMonths));return t}},{key:"getNextNavigableMonth",value:function(){return m.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return m.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=m.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=m.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,r=t.toMonth;return!(!t.canChangeMonth||n&&0>h.getMonthsDiff(n,e)||r&&0n.length-8?this.showNextMonth(function(){var e=n.length-r;h.getDayNodes(t.dayPicker,t.props.classNames)[7-e].focus()}):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=h.getDayNodes(this.dayPicker,this.props.classNames),r=h.nodeListToArray(n).indexOf(e);6>=r?this.showPreviousMonth(function(){var e=h.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+r].focus()}):n[r-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=h.getMonthsDiff(t,e);0=n?this.showNextMonth():0>r&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,o=e.canChangeMonth,a=e.navbarElement,s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!o)return null;var i={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,labels:t,locale:n,localeUtils:r};return l.default.isValidElement(a)?l.default.cloneElement(a,i):l.default.createElement(a,i)}},{key:"renderMonths",value:function(){for(var e,t=[],n=h.getFirstDayOfWeekFromProps(this.props),r=0;rp;p+=1){var d=(p+n)%7,f={key:p,className:t.weekday,weekday:d,weekdaysLong:o,weekdaysShort:a,localeUtils:u,locale:i},h=s.default.isValidElement(l)?s.default.cloneElement(l,f):s.default.createElement(l,f);c.push(h)}return s.default.createElement("div",{className:t.weekdays,role:"rowgroup"},s.default.createElement("div",{className:t.weekdaysRow,role:"row"},r&&s.default.createElement("div",{className:t.weekday}),c))}}]),t}());t.default=i,i.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return e?function(r){r.persist(),e(t,n,r)}:void 0}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t,n=1;n div{width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;}&:hover,&:focus{background-color:#fcfcfc;}",function(e){return"dark"===e.themePreset&&s},";"),u=(0,o.default)("span",{target:"e1eez11q1"})('width:16px;height:16px;display:inline-block;position:relative;user-select:none;align-items:center;&::after{box-sizing:content-box;content:"";position:absolute;background-color:transparent;top:50%;left:0;width:8px;height:4px;margin-top:-4px;border-style:solid;border-color:',function(e){return e.theme.colors.primaryColor},";border-width:0 0 2px 2px;border-radius:0;border-image:none;transform:rotate(-45deg) scale(1);transition:all 200ms ease-out;}");t.default=i,t.Tick=u},function(e,t,n){"use strict";t.__esModule=!0;var r=n(10),o=function(e){return e&&e.__esModule?e:{default:e}}(n(9)),a=(0,r.css)("top:0.55em;transform:rotate(-45deg);"),s=(0,o.default)("span",{target:"e1bddj530"})('&::before{content:"";border-style:solid;border-width:0.15em 0.15em 0 0;display:inline-block;height:0.45em;position:relative;top:0.35em;left:0;transform:rotate(135deg);vertical-align:top;width:0.45em;',function(e){return e.open?a:null},"}");t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var a=Object.assign||function(e){for(var t,n=1;nt.key?1:0}),t.setState({stats:n})})},t.prototype.shouldComponentUpdate=function(e,t){if(t.range){var n=o((t.range.end-t.range.start)/2);return!(1>e.stepValue||e.stepValue>n)||(console.warn("stepValue for DynamicRangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+n),!1)}return!0},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalHistogramComponent),this.props.removeComponent(this.internalRangeComponent),this.props.removeComponent(this.internalMatchAllComponent)},t.prototype.render=function(){if(!this.state.currentValue||!this.state.range)return null;var e=this.getRangeLabels(),t=e.startLabel,n=e.endLabel;return i.default.createElement(h.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&i.default.createElement(m.default,{className:(0,l.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram?i.default.createElement(d.default,{stats:this.state.stats,range:this.state.range,interval:this.getValidInterval(this.props,this.state.range)}):null,i.default.createElement(p.default,{min:this.state.range.start,max:this.state.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,l.getClassName)(this.props.innerClass,"slider")}),i.default.createElement("div",{className:y.rangeLabelsContainer},i.default.createElement(f.default,{align:"left",className:(0,l.getClassName)(this.props.innerClass,"label")||null},t),i.default.createElement(f.default,{align:"right",className:(0,l.getClassName)(this.props.innerClass,"label")||null},n)))},t}(s.Component);b.parseValue=function(e){return e?[e().start,e().end]:null},b.defaultQuery=function(e,t){var n;return Array.isArray(e)&&e.length?{range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)}:null};var v=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){t.watchComponent(e.internalRangeComponent,t.react);var r=(0,l.pushToAndClause)(n,e.internalHistogramComponent);t.watchComponent(t.componentId,r)}else e.props.addComponent(e.internalMatchAllComponent),t.setQueryOptions(e.internalMatchAllComponent,{aggs:{match_all:{}}},!1),t.watchComponent(e.internalRangeComponent,{and:e.internalMatchAllComponent}),t.watchComponent(t.componentId,{and:e.internalHistogramComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue,r=e.state.range;100<(r.end-r.start)/n&&(n=(r.end-r.start)/100);for(var o=r.start;o<=r.end;o+=n)t=t.concat(o);return t[t.length-1]!==r.end&&(t=t.concat(r.end)),t},this.getValidInterval=function(e,t){var n=r((t.end-t.start)/100)||1;return e.interval?e.intervaln.range.end?n.range.end:t[1]];e.locked=!0;(0,l.checkValueChange)(n.componentId,{start:r[0],end:r[1]},n.beforeValueChange,function(){e.setState({currentValue:r},function(){var t=[r[0],r[1]];e.updateQuery(t,n),e.locked=!1,n.onValueChange&&n.onValueChange(t)})})}},this.handleSlider=function(t){var n=t.values;e.handleChange(n)},this.handleDrag=function(t){if(e.props.onDrag){var n=t.min,r=t.max,o=t.values;e.props.onDrag(o,[n,r])}},this.updateQuery=function(e,t){var n=t.customQuery||b.defaultQuery,r=t.showFilter,o=t.range,a=o.start,s=o.end,i=e[0],u=e[1];t.updateQuery({componentId:t.componentId,query:n(e,t),value:e,label:t.filterLabel,showFilter:r&&!(i===a&&u===s),URLParams:t.URLParams,componentType:"DYNAMICRANGESLIDER"})},this.updateQueryOptions=function(t,n){if(t.showHistogram){var r={aggs:e.histogramQuery(t,n)};t.setQueryOptions(e.internalHistogramComponent,r,!1);var o=t.customQuery||b.defaultQuery;t.updateQuery({componentId:e.internalHistogramComponent,query:o([n.start,n.end],t)})}},this.updateRange=function(t){e.setState({range:t})},this.updateRangeQueryOptions=function(t){var n={aggs:e.rangeQuery(t)};t.setQueryOptions(e.internalRangeComponent,n)},this.getRangeLabels=function(){var t=e.state.range,n=t.start,r=t.end;if(e.props.rangeLabels){var o=e.props.rangeLabels(e.props.range.start,e.props.range.end);n=o.start,r=o.end}return{startLabel:n,endLabel:r}}};b.propTypes={addComponent:c.default.funcRequired,removeComponent:c.default.funcRequired,setQueryListener:c.default.funcRequired,setQueryOptions:c.default.funcRequired,updateQuery:c.default.funcRequired,watchComponent:c.default.funcRequired,options:c.default.options,range:c.default.range,selectedValue:c.default.selectedValue,beforeValueChange:c.default.func,className:c.default.string,componentId:c.default.stringRequired,customQuery:c.default.func,dataField:c.default.stringRequired,defaultSelected:c.default.func,filterLabel:c.default.string,innerClass:c.default.style,interval:c.default.number,onDrag:c.default.func,onQueryChange:c.default.func,onValueChange:c.default.func,rangeLabels:c.default.func,react:c.default.react,showHistogram:c.default.bool,showFilter:c.default.bool,snap:c.default.bool,stepValue:c.default.number,style:c.default.style,title:c.default.title,URLParams:c.default.bool},b.defaultProps={className:null,showHistogram:!0,snap:!0,stepValue:1,style:{},URLParams:!1,showFilter:!0},t.default=(0,g.connect)(function(e,t){return{options:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets?e.aggregations[t.componentId][t.dataField].buckets:[],range:e.aggregations[t.componentId+"__range__internal"]&&e.aggregations[t.componentId+"__range__internal"].min?{start:e.aggregations[t.componentId+"__range__internal"].min.value,end:e.aggregations[t.componentId+"__range__internal"].max.value}:null,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null}},function(e){return{addComponent:function(t){return e((0,u.addComponent)(t))},removeComponent:function(t){return e((0,u.removeComponent)(t))},setQueryOptions:function(t,n,r){return e((0,u.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,u.setQueryListener)(t,n,r))},updateQuery:function(t){return e((0,u.updateQuery)(t))},watchComponent:function(t,n){return e((0,u.watchComponent)(t,n))}}})(b)},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t,n=1;n"],post_tags:[""],fields:t}}},O.defaultQuery=function(e,t){var n=null,r=void 0;return e&&(r=Array.isArray(t.dataField)?t.dataField:[t.dataField],n={bool:{should:O.shouldQuery(e,r,t),minimum_should_match:"1"}}),""===e&&(n={match_all:{}}),n},O.shouldQuery=function(e,t,n){var r=t.map(function(e,t){return e+(Array.isArray(n.fieldWeights)&&n.fieldWeights[t]?"^"+n.fieldWeights[t]:"")});return"and"===n.queryFormat?[{multi_match:{query:e,fields:r,type:"cross_fields",operator:"and"}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"and"}}]:[{multi_match:{query:e,fields:r,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"or"}}]};var P=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,c.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.onSuggestions=function(t){if(e.props.onSuggestion)return t.map(function(t){return e.props.onSuggestion(t)});var n=Array.isArray(e.props.dataField)?e.props.dataField:[e.props.dataField];return(0,d.default)(n,t,e.state.currentValue.toLowerCase())},this.setValue=function(t){var n=1"],post_tags:[""],fields:t}}},P.defaultQuery=function(e,t,n){var r,o=null,a=void 0;e&&(a=Array.isArray(t.dataField)?t.dataField:[t.dataField],o={bool:{should:P.shouldQuery(e,a,t),minimum_should_match:"1"}},n&&"*"!==n)&&(o=[o,{term:(r={},r[t.categoryField]=n,r)}]);return""===e&&(o={match_all:{}}),o},P.shouldQuery=function(e,t,n){var r=t.map(function(e,t){return e+(Array.isArray(n.fieldWeights)&&n.fieldWeights[t]?"^"+n.fieldWeights[t]:"")});return"and"===n.queryFormat?[{multi_match:{query:e,fields:r,type:"cross_fields",operator:"and"}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"and"}}]:[{multi_match:{query:e,fields:r,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"or"}}]};var k=function(){var e=this;this.getAggsQuery=function(e){var t;return{aggs:(t={},t[e]={terms:{field:e}},t)}},this.setReact=function(t){var n=t.react;if(n){var r=(0,c.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.onSuggestions=function(t){if(e.props.onSuggestion)return t.map(function(t){return e.props.onSuggestion(t)});var n=Array.isArray(e.props.dataField)?e.props.dataField:[e.props.dataField];return(0,d.default)(n,t,e.state.currentValue.toLowerCase())},this.setValue=function(t){var n=1=e.pages?a.default.createElement("span",null,"..."):null,n,a.default.createElement(l.default,{className:(0,s.getClassName)(e.innerClass,"button")||null,disabled:e.currentPage>=e.totalPages-1,onKeyPress:function(e){return(0,s.handleA11yAction)(e,o)},onClick:o,tabIndex:"0"},"Next"))}t.__esModule=!0,t.default=o;var a=r(n(0)),s=n(2),i=r(n(1)),u=n(21),l=r(u);o.propTypes={currentPage:i.default.number,innerClass:i.default.style,pages:i.default.number,setPage:i.default.func,totalPages:i.default.number}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(0)),a=r(n(146));t.default=function(){return o.default.createElement("a",{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"},o.default.createElement(a.default,{src:"https://cdn.rawgit.com/appbaseio/cdn/d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}))}},function(e,t,n){"use strict";t.__esModule=!0;var r=(0,function(e){return e&&e.__esModule?e:{default:e}}(n(9)).default)("img",{target:"edftp2i0"})("width:110px;");t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.sortOptions=t.resultStats=void 0;var r=n(10),o=(0,r.css)("flex-grow:1;font-size:0.82rem;"),a=(0,r.css)("color:#424242;height:32px;font-size:0.82rem;padding:0 25px 0 10px;background:url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 95% 50%;background-color:#fff;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-border-radius:0;border-radius:0;border:0;outline:1px solid #ddd;outline-offset:-1px;");t.resultStats=o,t.sortOptions=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}t.__esModule=!0;var a=Object.assign||function(e){for(var t,n=1;n=n;o--)r/=Y[o],r+=S(t,!1,o)-S(e,!1,o);n==j&&(r+=12*(t.getFullYear()-e.getFullYear()))}else if(n==L){var a=e.toDate().setUTCHours(0,0,0,0),s=t.toDate().setUTCHours(0,0,0,0);r=u((s-a)/W)+(t-s-(e-a))/W}else r=(t-e)/[36e5,6e4,1e3,1][n-3];return r}function h(e){return function(e,t,n){var a=new r(X(e,t,n)),s=y(m(e,t,n));return o(u((a-s)/W)/7)+1}(e(A),e(j),e(L))}function m(e,t,n){var o=new r(X(e,t,n));return o=y(e+1)?e+1:e}function y(e){var t=new r(X(e,0,4));return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+6)%7),t}function g(e,t,n,r){var o=N(S,e,r),a=N(E,e,r);void 0===n&&(n=m(o(A),o(j),o(L)));var s=y(n);r||(s=_(s)),e.setTime(s.getTime()),a(L,[o(L)+7*(t-1)])}function b(e,t,n,r,o){var a=l.locales,s=a[l.defaultLocale]||{},i=N(S,e,o);return n=(V(n)?a[n]:n)||{},v(e,t,function(e){if(r)for(var t=(e==B?L:e)-1;0<=t;t--)r.push(i(t));return i(e)},function(e){return n[e]||s[e]},o)}function v(e,t,n,r,o){for(var a,s,i="";a=t.match(J);)i+=t.substr(0,a.index),a[1]?i+=C(e,a[1],n,r,o):a[3]?(s=v(e,a[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(i+=s)):i+=a[7]||"'",t=t.substr(a.index+a[0].length);return i+t}function C(e,t,n,r,o){for(var a,s=t.length,i="";0s?"th":["st","nd","rd"][s%10-1]||"th"}}function O(e,t){var n=e.getTimezoneOffset(),r=0>n?"+":"-",a=o(i(n)/60),s=i(n)%60,u=a;return"zz"==t?u=M(a):"zzz"==t&&(u=M(a)+":"+M(s)),r+u}function P(e,t){return 12>e(Q)?t("amDesignator"):t("pmDesignator")}function k(e){return!isNaN(e[0].getTime())}function S(e,t,n){return e["get"+(t?"UTC":"")+K[n]]()}function E(e,t,n,r){e["set"+(t?"UTC":"")+K[n]].apply(e,r)}function _(e){return new r(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function I(e,t){return 32-new r(X(e,t,32)).getUTCDate()}function x(e){return function(){return e.apply(void 0,[this].concat(R(arguments)))}}function N(e){var t=R(arguments,1);return function(){return e.apply(void 0,t.concat(R(arguments)))}}function R(e,t,n){return s.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function T(e,t){for(var n=0;n div{font-size:1.15rem;font-weight:500;}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group;}.DayPicker-WeekdaysRow{display:table-row;}.DayPicker-Weekday{display:table-cell;padding:0.5rem;font-size:0.875em;text-align:center;color:#8b9898;}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none;}.DayPicker-Body{display:table-row-group;}.DayPicker-Week{display:table-row;}.DayPicker-Day{display:table-cell;padding:0.5rem;text-align:center;cursor:pointer;vertical-align:middle;outline:none;}.DayPicker-WeekNumber{display:table-cell;padding:0.5rem;text-align:right;vertical-align:middle;min-width:1rem;font-size:0.75em;cursor:pointer;color:#8b9898;border-right:1px solid #eaecec;}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default;}.DayPicker-Footer{padding-top:0.5rem;}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;color:",function(e){return e.theme.colors.primaryColor},";font-size:0.875em;}.DayPicker-Day--today{color:",function(e){return e.theme.colors.primaryColor},";font-weight:700;}.DayPicker-Day--outside{cursor:default;color:#8b9898;}.DayPicker-Day--disabled{color:#dce0e0;cursor:default;}.DayPicker-Day--sunday{background-color:#f7f8f8;}.DayPicker-Day--sunday:not(.DayPicker-Day--today){color:#dce0e0;}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:#f0f8ff;color:#f0f8ff;background-color:",function(e){return e.theme.colors.primaryColor},";border-radius:",function(e){return e.range?0:"100%"},";}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)},";}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)},";border-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--start:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-left-radius:50%;border-bottom-left-radius:50%;}.DayPicker-Day--selected.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;}.DayPicker-Day.DayPicker-Day--end:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){border-top-right-radius:50%;border-bottom-right-radius:50%;background-color:",function(e){return e.theme.colors.primaryColor||"#fff"},";color:#fff;}.DayPickerInput{flex:1;}.DayPickerInput input{",i.input,";background-color:",function(e){return e.theme.colors.backgroundColor||"#fff"},";color:",function(e){return e.theme.colors.textColor},";",function(e){return!e.showBorder&&(0,r.css)("border:none;")},";&:focus{background-color:",function(e){return e.theme.colors.backgroundColor||"#fff"},";}}.DayPickerInput-OverlayWrapper{position:absolute;width:100%;left:0;z-index:4;}.DayPickerInput-OverlayWrapper .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside){background-color:",function(e){var t=e.theme;return(0,s.lighten)(.1,t.colors.primaryColor)||"#f0f8ff"},";}.DayPickerInput-Overlay{left:0;top:1px;z-index:1;position:absolute;background:",function(e){var t=e.theme.colors;return t.backgroundColor?(0,s.lighten)(.15,t.backgroundColor):"#fff"},";box-shadow:0 2px 5px rgba(0,0,0,0.15);}",function(e){return e.theme.component},";");t.default=(0,a.withTheme)(u)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var s=n(0),i=a(s),u=n(6),l=n(2),c=a(n(1)),p=a(n(47)),d=a(n(48)),f=a(n(49)),h=a(n(50)),m=a(n(7)),y=n(35),g=n(3),b=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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,e.call(this,n));return v.call(r),r.state={currentValue:[n.range.start,n.range.end],stats:[]},r.locked=!1,r.internalComponent=r.props.componentId+"__internal",n.setQueryListener(n.componentId,n.onQueryChange,null),r}return function(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)}(t,e),t.prototype.componentWillMount=function(){this.props.addComponent(this.props.componentId),this.props.addComponent(this.internalComponent),this.updateQueryOptions(this.props),this.setReact(this.props);var e=this.props,n=e.selectedValue,r=e.defaultSelected;Array.isArray(n)?this.handleChange(n):n?this.handleChange(t.parseValue(n,this.props)):r&&this.handleChange(t.parseValue(r,this.props))},t.prototype.componentWillReceiveProps=function(e){var t=this;(0,l.checkPropChange)(this.props.react,e.react,function(){return t.setReact(e)}),(0,l.checkSomePropChange)(this.props,e,["showHistogram","interval"],function(){return t.updateQueryOptions(e)}),(0,l.checkPropChange)(this.props.options,e.options,function(){var n=e.options;Array.isArray(n)&&n.sort(function(e,t){return e.keyt.key?1:0}),t.setState({stats:n||[]})}),(0,l.checkPropChange)(this.props.dataField,e.dataField,function(){t.updateQueryOptions(e),t.handleChange(t.state.currentValue,e)}),(0,l.isEqual)(this.props.defaultSelected,e.defaultSelected)?!(0,l.isEqual)(this.state.currentValue,e.selectedValue)&&this.handleChange(e.selectedValue||[e.range.start,e.range.end]):this.handleChange([e.defaultSelected.start,e.defaultSelected.end],e)},t.prototype.shouldComponentUpdate=function(e){var t=o((e.range.end-e.range.start)/2);return!(1>e.stepValue||e.stepValue>t)||(console.warn("stepValue for RangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+t),!1)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalComponent)},t.prototype.render=function(){return i.default.createElement(h.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&i.default.createElement(m.default,{className:(0,l.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram&&this.props.showSlider?i.default.createElement(d.default,{stats:this.state.stats,range:this.props.range,interval:this.getValidInterval(this.props)}):null,this.props.showSlider&&i.default.createElement(p.default,{min:this.props.range.start,max:this.props.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,l.getClassName)(this.props.innerClass,"slider")}),this.props.rangeLabels&&this.props.showSlider&&i.default.createElement("div",{className:y.rangeLabelsContainer},i.default.createElement(f.default,{align:"left",className:(0,l.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.start),i.default.createElement(f.default,{align:"right",className:(0,l.getClassName)(this.props.innerClass,"label")||null},this.props.rangeLabels.end)))},t}(s.Component);b.parseValue=function(e,t){return e?[e.start,e.end]:[t.range.start,t.range.end]},b.defaultQuery=function(e,t){var n;return Array.isArray(e)&&e.length?{range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)}:null};var v=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,l.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue;100<(e.props.range.end-e.props.range.start)/n&&(n=(e.props.range.end-e.props.range.start)/100);for(var r=e.props.range.start;r<=e.props.range.end;r+=n)t=t.concat(r);return t[t.length-1]!==e.props.range.end&&(t=t.concat(e.props.range.end)),t},this.getValidInterval=function(e){var t=r((e.range.end-e.range.start)/100)||1;return e.interval?e.intervalg?vw.PERCENT_FULL))throw new TypeError("getNextHandlePosition returned invalid position. Valid positions are floats between 0 and 100");return o}},{key:"validatePosition",value:function(e,t){var n=this.state,r=n.handlePos,o=n.handleDimensions,i=this.userAdjustPosition(e,t);return s(a(i,void 0===r[e+1]?w.PERCENT_FULL:r[e+1]-o),void 0===r[e-1]?w.PERCENT_EMPTY:r[e-1]+o)}},{key:"validateValues",value:function(e,t){var n=t||this.props,r=n.max,o=n.min;return e.map(function(e,t,n){var i=s(a(e,r),o);return n.length&&iw.PERCENT_FULL||t>(void 0===r[e+1]?1/0:r[e+1]-o)||t<(void 0===r[e-1]?-1/0:r[e-1]+o))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,o=this.getNextState(e,t);this.setState(o,function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()})}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,o=e.values,a=this.props.algorithm,s=this.validateValues(o,e);this.setState({handlePos:s.map(function(e){return a.getPosition(e,r,n)}),values:s},function(){return t.fireChangeEvent()})}}},{key:"invalidatePitStyleCache",value:function(){this.pitStyleCache={}}},{key:"render",value:function(){var e=this,t=this.props,n=t.algorithm,r=t.children,o=t.disabled,a=t.handle,s=t.max,i=t.min,u=t.orientation,l=t.pitComponent,c=t.pitPoints,p=t.progressBar,d=this.state,f=d.className,h=d.handlePos,m=d.values;return v.default.createElement("div",{className:f,ref:this.setRef,onClick:o?void 0:this.handleClick,style:{position:"relative"}},v.default.createElement("div",{className:"rheostat-background"}),h.map(function(t,n){var r="vertical"===u?{top:t+"%",position:"absolute"}:{left:t+"%",position:"absolute"};return v.default.createElement(a,{"aria-valuemax":e.getMaxValue(n),"aria-valuemin":e.getMinValue(n),"aria-valuenow":m[n],"aria-disabled":o,"data-handle-key":n,className:"rheostat-handle",key:"handle-"+n,onClick:e.killEvent,onKeyDown:o?void 0:e.handleKeydown,onMouseDown:o?void 0:e.startMouseSlide,onTouchStart:o?void 0:e.startTouchSlide,role:"slider",style:r,tabIndex:0})}),h.map(function(t,n,r){return 0===n&&1e.range.start&&(n=[{key:e.range.start,doc_count:0}].concat(n));var r=n[n.length-1];r.key+e.interval, or explicitly pass "'+h+'" as a prop to "'+r+'".'),o.initSelector(),o.initSubscription(),o}return function(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)}(s,n),s.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[v]=t||this.context[v],e},s.prototype.componentDidMount=function(){d&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},s.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=o,this.store=null,this.selector.run=o,this.selector.shouldComponentUpdate=!1},s.prototype.getWrappedInstance=function(){return _()(y,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},s.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},s.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},s.prototype.initSubscription=function(){if(d){var e=(this.propsMode?this.props:this.context)[v];this.subscription=new N(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(V)):this.notifyNestedSubs()},s.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.prototype.isSubscribed=function(){return!!this.subscription&&this.subscription.isSubscribed()},s.prototype.addExtraProps=function(e){if(!(y||c||this.propsMode&&this.subscription))return e;var t=R({},e);return y&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[v]=this.subscription),t},s.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(b.createElement)(t,this.addExtraProps(e.props))},s}(b.Component);return i.WrappedComponent=t,i.displayName=r,i.childContextTypes=k,i.contextTypes=P,i.propTypes=P,S()(i,t)}}function s(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(s(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;othis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(e){return e&&DataView.prototype.isPrototypeOf(e)},b=ArrayBuffer.isView||function(e){return e&&-1n.length?e:r+S(n,t)}function s(e){y.inserted[e]=!0}if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var u,f,h=t.key||"css",m=i()(function(e){u+=e,p&&g.insert(e,w)});void 0!==t.prefix&&(f={prefix:t.prefix});var y={registered:{},inserted:{},nonce:t.nonce,key:h},g=new d(t);p&&g.inject();var b=new function e(t){function n(e,t,o,l,c){for(var f,h,m,y,g,w=0,P=0,k=0,S=0,E=0,_=0,V=m=f=0,M=0,j=0,L=0,Q=0,F=o.length,q=F-1,U="",B="",W="",H="";Mf)&&(Q=(U=U.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102o.charCodeAt(0)&&(o=o.trim()),o=[o],0>>16))<<16),r=1540483477*(65535&r)+((65535&1540483477*(r>>>16))<<16)^(t=1540483477*(65535&(t^=t>>>24))+((65535&1540483477*(t>>>16))<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((65535&1540483477*(r>>>16))<<16)}return r=1540483477*(65535&(r^=r>>>13))+((65535&1540483477*(r>>>16))<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t}(r,o),r},S=function(){var e=k.apply(this,arguments),t=h+"-"+v;return void 0===y.registered[t]&&(y.registered[t]=C),r("."+t,e),t};if(p){var E=document.querySelectorAll("[data-emotion-"+h+"]");Array.prototype.forEach.call(E,function(e){g.tags[0].parentNode.insertBefore(e,g.tags[0]),e.getAttribute("data-emotion-"+h).split(" ").forEach(s)})}var _={flush:function(){p&&(g.flush(),g.inject()),y.inserted={},y.registered={}},hydrate:function(e){e.forEach(s)},cx:function(){for(var e=arguments.length,t=Array(e),n=0;n>8-o%1*8)){if(255<(e=t.charCodeAt(o+=.75)))throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');r=r<<8|e}return n}function o(e,t){var n=[],r={object:null,string:""};Object.keys(t).forEach(function(o){var a=t[o];(x(e[o])!==a||e[o]===r[a])&&n.push(o)});for(var o="",a=0;au&&(l=u);for(var c=0;c=r;)t+=r,u();if("."===r)for(t+=".";u()&&"0"<=r&&"9">=r;)t+=r;if("e"===r||"E"===r)for(t+=r,u(),("-"===r||"+"===r)&&(t+=r,u());"0"<=r&&"9">=r;)t+=r,u();return e=+t,isFinite(e)?e:void i("Bad number")},c=function(){var e,n,o,a="";if('"'===r)for(;u();){if('"'===r)return u(),a;if("\\"!==r)a+=r;else if(u(),"u"===r){for(o=0,n=0;4>n&&(e=parseInt(u(),16),isFinite(e));n+=1)o=16*o+e;a+=t(o)}else{if("string"!=typeof s[r])break;a+=s[r]}}i("Bad string")},p=function(){for(;r&&" ">=r;)u()};a=function(){return p(),"{"===r?function(){var e,t={};if("{"===r){if(u("{"),p(),"}"===r)return u("}"),t;for(;r;){if(e=c(),p(),u(":"),Object.hasOwnProperty.call(t,e)&&i('Duplicate key "'+e+'"'),t[e]=a(),p(),"}"===r)return u("}"),t;u(","),p()}}i("Bad object")}():"["===r?function(){var e=[];if("["===r){if(u("["),p(),"]"===r)return u("]"),e;for(;r;){if(e.push(a()),p(),"]"===r)return u("]"),e;u(","),p()}}i("Bad array")}():'"'===r?c():"-"===r?l():"0"<=r&&"9">=r?l():function(){switch(r){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}i("Unexpected '"+r+"'")}()},e.exports=function(e,t){var s;return o=e,n=0,r=" ",s=a(),p(),r&&i("Syntax error"),"function"==typeof t?function e(n,r){var o,a,s=n[r];if(s&&"object"==typeof s)for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(void 0===(a=e(s,o))?delete s[o]:s[o]=a);return t.call(n,r,s)}({"":s},""):s}},function(e){function t(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,function(e){var t=i[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function n(e,s){var i,u,l,c,p,d=r,f=s[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof a&&(f=a.call(s,e,f)),typeof f){case"string":return t(f);case"number":return isFinite(f)?f+"":"null";case"boolean":case"null":return f+"";case"object":if(!f)return"null";if(r+=o,p=[],"[object Array]"===Object.prototype.toString.apply(f)){for(c=f.length,i=0;i stats.json",prepublish:"yarn run build",test:"jest --watch",typescript:"tsc -p tsconfig.json"},repository:{type:"git",url:"https://github.com/appbaseio/reactivesearch.git"},author:"metagrover",license:"Apache-2.0",dependencies:{"@appbaseio/reactivecore":"^5.1.0","appbase-js":"^4.0.2-beta.02",downshift:"^1.31.2",emotion:"^9.0.0","emotion-theming":"^9.0.0",polished:"^1.9.3","prop-types":"^15.6.0","react-day-picker":"^7.0.5","react-emotion":"^9.0.0","react-redux":"^5.0.7",rheostat:"^2.1.1","url-search-params":"^0.10.0",xdate:"^0.8.2"},peerDependencies:{react:">=15","react-dom":">=15"},devDependencies:{"@types/react":"^16.3.8","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-emotion":"^9.0.0","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babili-webpack-plugin":"^0.1.2","brotli-webpack-plugin":"^0.5.0","compression-webpack-plugin":"^1.0.1","eslint-plugin-jest":"^21.12.2","fs-extra":"^7.0.0",glob:"^7.1.2",jest:"^22.4.2",path:"^0.12.7",react:"^16.1.1","react-dom":"^16.1.1",tslint:"^5.9.1",typescript:"^2.8.1",webpack:"^4.18.0","webpack-cli":"^3.1.0"},resolutions:{"@types/react":"16.3.7"}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(0),a=r(o),s=n(6),i=n(2),u=r(n(1)),l=n(11),c=r(l),p=r(n(31)),d=r(n(18)),f=r(n(7)),h=r(n(8)),m=n(3),y=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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,e.call(this,n));return g.call(r),r.state={currentValue:n.selectedValue||""},r.locked=!1,n.setQueryListener(n.componentId,n.onQueryChange,null),r}return function(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)}(t,e),t.prototype.componentWillMount=function(){this.props.addComponent(this.props.componentId),this.setReact(this.props),this.props.selectedValue?this.setValue(this.props.selectedValue,!0):this.props.defaultSelected&&this.setValue(this.props.defaultSelected,!0)},t.prototype.componentWillReceiveProps=function(e){var t=this;(0,i.checkPropChange)(this.props.react,e.react,function(){t.setReact(e)}),(0,i.checkPropChange)(this.props.dataField,e.dataField,function(){t.updateQuery(t.state.currentValue,e)}),this.props.defaultSelected===e.defaultSelected?this.props.selectedValue!==e.selectedValue&&this.state.currentValue!==e.selectedValue&&this.setValue(e.selectedValue||"",!0,e):this.setValue(e.defaultSelected,!0,e)},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId)},t.prototype.setReact=function(e){e.react&&e.watchComponent(e.componentId,e.react)},t.prototype.render=function(){return a.default.createElement(h.default,{style:this.props.style,className:this.props.className},this.props.title&&a.default.createElement(f.default,{className:(0,i.getClassName)(this.props.innerClass,"title")||null},this.props.title),a.default.createElement("div",{className:l.suggestionsContainer},a.default.createElement(c.default,{type:"text",className:(0,i.getClassName)(this.props.innerClass,"input")||null,placeholder:this.props.placeholder,onChange:this.handleChange,value:this.state.currentValue,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,autoFocus:this.props.autoFocus,innerRef:this.props.innerRef,themePreset:this.props.themePreset,showClear:this.props.showClear}),this.renderIcons()))},t}(o.Component);y.defaultQuery=function(e,t){var n;return e&&""!==e.trim()?{match:(n={},n[t.dataField]=e,n)}:null};var g=function(){var e=this;this.handleTextChange=(0,i.debounce)(function(t){e.updateQuery(t,e.props)},this.props.debounce),this.setValue=function(t){var n=1t?e.doc_count:t}),s.default.createElement(d.default,{style:this.props.style,className:this.props.className},this.props.title&&s.default.createElement(c.default,{className:(0,u.getClassName)(this.props.innerClass,"title")||null},this.props.title),s.default.createElement(p.default,{className:(0,u.getClassName)(this.props.innerClass,"list")||null},this.state.options.map(function(n){var r=n.doc_count/t*2.2+.8;return s.default.createElement("span",{key:n.key,onClick:function(){return e.setValue(n.key)},onKeyPress:function(t){return(0,u.handleA11yAction)(t,function(){return e.setValue(n.key)})},style:{fontSize:r+"em"},className:e.state.currentValue[n.key]?((0,u.getClassName)(e.props.innerClass,"input")||"")+" active":(0,u.getClassName)(e.props.innerClass,"input"),role:"menuitem",tabIndex:"0"},n.key,e.props.showCount&&" ("+n.doc_count+")")})))},t}(a.Component);h.defaultQuery=function(e,t){var n=null,r="or"===t.queryFormat?"terms":"term";if(r=t.multiSelect?r:"term",e){var o;if(t.multiSelect&&"or"!==t.queryFormat){var a=e.map(function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o});o={bool:{must:a}}}else{var s,i;(i={})[r]=((s={})[t.dataField]=e,s),o=i}n=e.length?o:null}return n};var m=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,u.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.setValue=function(t){var n=1=o||31r||12<=r?void 0:new Date(n,r,o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.HIDE_TIMEOUT=void 0;var i=function(){function e(e,t){for(var n,r=0;r=h.getMonthsDiff(t,e.toMonth)&&(t=m.addMonths(e.toMonth,1-this.props.numberOfMonths));return t}},{key:"getNextNavigableMonth",value:function(){return m.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return m.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=m.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=m.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,r=t.toMonth;return!(!t.canChangeMonth||n&&0>h.getMonthsDiff(n,e)||r&&0n.length-8?this.showNextMonth(function(){var e=n.length-r;h.getDayNodes(t.dayPicker,t.props.classNames)[7-e].focus()}):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=h.getDayNodes(this.dayPicker,this.props.classNames),r=h.nodeListToArray(n).indexOf(e);6>=r?this.showPreviousMonth(function(){var e=h.getDayNodes(t.dayPicker,t.props.classNames);e[e.length-7+r].focus()}):n[r-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=h.getMonthsDiff(t,e);0=n?this.showNextMonth():0>r&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,o=e.canChangeMonth,a=e.navbarElement,s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!o)return null;var i={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,labels:t,locale:n,localeUtils:r};return l.default.isValidElement(a)?l.default.cloneElement(a,i):l.default.createElement(a,i)}},{key:"renderMonths",value:function(){for(var e,t=[],n=h.getFirstDayOfWeekFromProps(this.props),r=0;rp;p+=1){var d=(p+n)%7,f={key:p,className:t.weekday,weekday:d,weekdaysLong:o,weekdaysShort:a,localeUtils:u,locale:i},h=s.default.isValidElement(l)?s.default.cloneElement(l,f):s.default.createElement(l,f);c.push(h)}return s.default.createElement("div",{className:t.weekdays,role:"rowgroup"},s.default.createElement("div",{className:t.weekdaysRow,role:"row"},r&&s.default.createElement("div",{className:t.weekday}),c))}}]),t}());t.default=i,i.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return e?function(r){r.persist(),e(t,n,r)}:void 0}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t,n=1;n div{width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;}&:hover,&:focus{background-color:#fcfcfc;}",function(e){return"dark"===e.themePreset&&s},";"),u=(0,o.default)("span",{target:"e1eez11q1"})('width:16px;height:16px;display:inline-block;position:relative;user-select:none;align-items:center;&::after{box-sizing:content-box;content:"";position:absolute;background-color:transparent;top:50%;left:0;width:8px;height:4px;margin-top:-4px;border-style:solid;border-color:',function(e){return e.theme.colors.primaryColor},";border-width:0 0 2px 2px;border-radius:0;border-image:none;transform:rotate(-45deg) scale(1);transition:all 200ms ease-out;}");t.default=i,t.Tick=u},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9),o=function(e){return e&&e.__esModule?e:{default:e}}(n(10)),a=(0,r.css)("top:0.55em;transform:rotate(-45deg);"),s=(0,o.default)("span",{target:"e1bddj530"})('&::before{content:"";border-style:solid;border-width:0.15em 0.15em 0 0;display:inline-block;height:0.45em;position:relative;top:0.35em;left:0;transform:rotate(135deg);vertical-align:top;width:0.45em;',function(e){return e.open?a:null},"}");t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var a=n(9),s=Object.assign||function(e){for(var t,n=1;nt.key?1:0}),t.setState({stats:n})})},t.prototype.shouldComponentUpdate=function(e,t){if(t.range){var n=o((t.range.end-t.range.start)/2);return!(1>e.stepValue||e.stepValue>n)||(console.warn("stepValue for DynamicRangeSlider "+e.componentId+" should be greater than 0 and less than or equal to "+n),!1)}return!0},t.prototype.componentWillUnmount=function(){this.props.removeComponent(this.props.componentId),this.props.removeComponent(this.internalHistogramComponent),this.props.removeComponent(this.internalRangeComponent),this.props.removeComponent(this.internalMatchAllComponent)},t.prototype.render=function(){if(!this.state.currentValue||!this.state.range)return null;var e=this.getRangeLabels(),t=e.startLabel,n=e.endLabel;return i.default.createElement(h.default,{primary:!0,style:this.props.style,className:this.props.className},this.props.title&&i.default.createElement(m.default,{className:(0,l.getClassName)(this.props.innerClass,"title")||null},this.props.title),this.state.stats.length&&this.props.showHistogram?i.default.createElement(d.default,{stats:this.state.stats,range:this.state.range,interval:this.getValidInterval(this.props,this.state.range)}):null,i.default.createElement(p.default,{min:this.state.range.start,max:this.state.range.end,values:this.state.currentValue,onChange:this.handleSlider,onValuesUpdated:this.handleDrag,snap:this.props.snap,snapPoints:this.props.snap?this.getSnapPoints():null,className:(0,l.getClassName)(this.props.innerClass,"slider")}),i.default.createElement("div",{className:y.rangeLabelsContainer},i.default.createElement(f.default,{align:"left",className:(0,l.getClassName)(this.props.innerClass,"label")||null},t),i.default.createElement(f.default,{align:"right",className:(0,l.getClassName)(this.props.innerClass,"label")||null},n)))},t}(s.Component);b.parseValue=function(e){return e?[e().start,e().end]:null},b.defaultQuery=function(e,t){var n;return Array.isArray(e)&&e.length?{range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)}:null};var v=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){t.watchComponent(e.internalRangeComponent,t.react);var r=(0,l.pushToAndClause)(n,e.internalHistogramComponent);t.watchComponent(t.componentId,r)}else e.props.addComponent(e.internalMatchAllComponent),t.setQueryOptions(e.internalMatchAllComponent,{aggs:{match_all:{}}},!1),t.watchComponent(e.internalRangeComponent,{and:e.internalMatchAllComponent}),t.watchComponent(t.componentId,{and:e.internalHistogramComponent})},this.getSnapPoints=function(){var t=[],n=e.props.stepValue,r=e.state.range;100<(r.end-r.start)/n&&(n=(r.end-r.start)/100);for(var o=r.start;o<=r.end;o+=n)t=t.concat(o);return t[t.length-1]!==r.end&&(t=t.concat(r.end)),t},this.getValidInterval=function(e,t){var n=r((t.end-t.start)/100)||1;return e.interval?e.intervaln.range.end?n.range.end:t[1]];e.locked=!0;(0,l.checkValueChange)(n.componentId,{start:r[0],end:r[1]},n.beforeValueChange,function(){e.setState({currentValue:r},function(){var t=[r[0],r[1]];e.updateQuery(t,n),e.locked=!1,n.onValueChange&&n.onValueChange(t)})})}},this.handleSlider=function(t){var n=t.values;e.handleChange(n)},this.handleDrag=function(t){if(e.props.onDrag){var n=t.min,r=t.max,o=t.values;e.props.onDrag(o,[n,r])}},this.updateQuery=function(e,t){var n=t.customQuery||b.defaultQuery,r=t.showFilter,o=t.range,a=o.start,s=o.end,i=e[0],u=e[1];t.updateQuery({componentId:t.componentId,query:n(e,t),value:e,label:t.filterLabel,showFilter:r&&!(i===a&&u===s),URLParams:t.URLParams,componentType:"DYNAMICRANGESLIDER"})},this.updateQueryOptions=function(t,n){if(t.showHistogram){var r={aggs:e.histogramQuery(t,n)};t.setQueryOptions(e.internalHistogramComponent,r,!1);var o=t.customQuery||b.defaultQuery;t.updateQuery({componentId:e.internalHistogramComponent,query:o([n.start,n.end],t)})}},this.updateRange=function(t){e.setState({range:t})},this.updateRangeQueryOptions=function(t){var n={aggs:e.rangeQuery(t)};t.setQueryOptions(e.internalRangeComponent,n)},this.getRangeLabels=function(){var t=e.state.range,n=t.start,r=t.end;if(e.props.rangeLabels){var o=e.props.rangeLabels(e.props.range.start,e.props.range.end);n=o.start,r=o.end}return{startLabel:n,endLabel:r}}};b.propTypes={addComponent:c.default.funcRequired,removeComponent:c.default.funcRequired,setQueryListener:c.default.funcRequired,setQueryOptions:c.default.funcRequired,updateQuery:c.default.funcRequired,watchComponent:c.default.funcRequired,options:c.default.options,range:c.default.range,selectedValue:c.default.selectedValue,beforeValueChange:c.default.func,className:c.default.string,componentId:c.default.stringRequired,customQuery:c.default.func,dataField:c.default.stringRequired,defaultSelected:c.default.func,filterLabel:c.default.string,innerClass:c.default.style,interval:c.default.number,onDrag:c.default.func,onQueryChange:c.default.func,onValueChange:c.default.func,rangeLabels:c.default.func,react:c.default.react,showHistogram:c.default.bool,showFilter:c.default.bool,snap:c.default.bool,stepValue:c.default.number,style:c.default.style,title:c.default.title,URLParams:c.default.bool},b.defaultProps={className:null,showHistogram:!0,snap:!0,stepValue:1,style:{},URLParams:!1,showFilter:!0},t.default=(0,g.connect)(function(e,t){return{options:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets?e.aggregations[t.componentId][t.dataField].buckets:[],range:e.aggregations[t.componentId+"__range__internal"]&&e.aggregations[t.componentId+"__range__internal"].min?{start:e.aggregations[t.componentId+"__range__internal"].min.value,end:e.aggregations[t.componentId+"__range__internal"].max.value}:null,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null}},function(e){return{addComponent:function(t){return e((0,u.addComponent)(t))},removeComponent:function(t){return e((0,u.removeComponent)(t))},setQueryOptions:function(t,n,r){return e((0,u.setQueryOptions)(t,n,r))},setQueryListener:function(t,n,r){return e((0,u.setQueryListener)(t,n,r))},updateQuery:function(t){return e((0,u.updateQuery)(t))},watchComponent:function(t,n){return e((0,u.watchComponent)(t,n))}}})(b)},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t,n=1;n"],post_tags:[""],fields:t}}},O.defaultQuery=function(e,t){var n=null,r=void 0;return e&&(r=Array.isArray(t.dataField)?t.dataField:[t.dataField],n={bool:{should:O.shouldQuery(e,r,t),minimum_should_match:"1"}}),""===e&&(n={match_all:{}}),n},O.shouldQuery=function(e,t,n){var r=t.map(function(e,t){return e+(Array.isArray(n.fieldWeights)&&n.fieldWeights[t]?"^"+n.fieldWeights[t]:"")});return"and"===n.queryFormat?[{multi_match:{query:e,fields:r,type:"cross_fields",operator:"and"}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"and"}}]:[{multi_match:{query:e,fields:r,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"or"}}]};var P=function(){var e=this;this.setReact=function(t){var n=t.react;if(n){var r=(0,c.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.onSuggestions=function(t){if(e.props.onSuggestion)return t.map(function(t){return e.props.onSuggestion(t)});var n=Array.isArray(e.props.dataField)?e.props.dataField:[e.props.dataField];return(0,d.default)(n,t,e.state.currentValue.toLowerCase())},this.setValue=function(t){var n=1"],post_tags:[""],fields:t}}},P.defaultQuery=function(e,t,n){var r,o=null,a=void 0;e&&(a=Array.isArray(t.dataField)?t.dataField:[t.dataField],o={bool:{should:P.shouldQuery(e,a,t),minimum_should_match:"1"}},n&&"*"!==n)&&(o=[o,{term:(r={},r[t.categoryField]=n,r)}]);return""===e&&(o={match_all:{}}),o},P.shouldQuery=function(e,t,n){var r=t.map(function(e,t){return e+(Array.isArray(n.fieldWeights)&&n.fieldWeights[t]?"^"+n.fieldWeights[t]:"")});return"and"===n.queryFormat?[{multi_match:{query:e,fields:r,type:"cross_fields",operator:"and"}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"and"}}]:[{multi_match:{query:e,fields:r,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}},{multi_match:{query:e,fields:r,type:"phrase_prefix",operator:"or"}}]};var k=function(){var e=this;this.getAggsQuery=function(e){var t;return{aggs:(t={},t[e]={terms:{field:e}},t)}},this.setReact=function(t){var n=t.react;if(n){var r=(0,c.pushToAndClause)(n,e.internalComponent);t.watchComponent(t.componentId,r)}else t.watchComponent(t.componentId,{and:e.internalComponent})},this.onSuggestions=function(t){if(e.props.onSuggestion)return t.map(function(t){return e.props.onSuggestion(t)});var n=Array.isArray(e.props.dataField)?e.props.dataField:[e.props.dataField];return(0,d.default)(n,t,e.state.currentValue.toLowerCase())},this.setValue=function(t){var n=1=e.pages?s.default.createElement("span",null,"..."):null,n,s.default.createElement(c.default,a({className:(0,i.getClassName)(e.innerClass,"button")||null,disabled:e.currentPage>=e.totalPages-1,onKeyPress:function(e){return(0,i.handleA11yAction)(e,o)},onClick:o,tabIndex:"0"},g),"Next"))}t.__esModule=!0;var a=Object.assign||function(e){for(var t,n=1;n