@appbaseio/reactivesearch-vue 2.0.0-alpha.2 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +59 -19
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/StateProvider.js +24 -11
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-99716d95.js → install-42ba1d44.js} +0 -0
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/StateProvider.js +24 -11
- package/dist/es/index.js +2 -2
- package/dist/es/{install-87984085.js → install-80bc2764.js} +0 -0
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function g(){if(c)throw new Error(u(3));return i}function m(e){if("function"!=typeof e)throw new Error(u(4));if(c)throw new Error(u(5));var t=!0;return f(),s.push(e),function(){if(t){if(c)throw new Error(u(6));t=!1,f();var n=s.indexOf(e);s.splice(n,1),a=null}}}function y(e){if(!d(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(c)throw new Error(u(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));o=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e}return y({type:p.INIT}),(r={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[l]=b,r}var f=h;function g(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return g(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=g(o,t))}return n}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var v=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=y.apply(void 0,i)(n.dispatch),s(s({},n),{},{dispatch:r})}}},bindActionCreators:m,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(u(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],p=e[l],d=c(p,t);if(void 0===d){t&&t.type;throw new Error(u(14))}o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:y,createStore:h,legacy_createStore:f});function b(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var O=b();O.withExtraArgument=b;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR"}));r(C);C.ADD_COMPONENT,C.REMOVE_COMPONENT,C.WATCH_COMPONENT,C.SET_QUERY,C.SET_APPBASE_QUERY,C.SET_QUERY_OPTIONS,C.EXECUTE_QUERY,C.UPDATE_HITS,C.UPDATE_AGGS;var w=C.UPDATE_COMPOSITE_AGGS,S=(C.ADD_CONFIG,C.UPDATE_CONFIG,C.ADD_APPBASE_REF,C.LOG_QUERY,C.LOG_COMBINED_QUERY,C.SET_INTERNAL_VALUE,C.PATCH_VALUE,C.CLEAR_VALUES,C.SET_LOADING,C.SET_ERROR,C.SET_TIMESTAMP,C.SET_HEADERS,C.SET_MAP_DATA,C.SET_MAP_RESULTS,C.SET_QUERY_LISTENER,C.STORE_KEY,C.SET_SEARCH_ID,C.SET_PROMOTED_RESULTS,C.SET_DEFAULT_QUERY,C.SET_CUSTOM_QUERY,C.SET_CUSTOM_HIGHLIGHT_OPTIONS,C.SET_CUSTOM_DATA,C.SET_APPLIED_SETTINGS,C.SET_PROPS,C.UPDATE_PROPS,C.REMOVE_PROPS,C.SET_SUGGESTIONS_SEARCH_VALUE,C.CLEAR_SUGGESTIONS_SEARCH_VALUE,C.SET_SUGGESTIONS_SEARCH_ID,C.UPDATE_ANALYTICS_CONFIG,C.SET_RAW_DATA,C.SET_POPULAR_SUGGESTIONS,C.SET_DEFAULT_POPULAR_SUGGESTIONS,C.SET_QUERY_TO_HITS,C.RECENT_SEARCHES_SUCCESS,C.RECENT_SEARCHES_ERROR,C.SET_VALUE,C.SET_VALUES,C.RESET_TO_DEFAULT,C.SET_GOOGLE_MAP_SCRIPT_LOADING,C.SET_GOOGLE_MAP_SCRIPT_LOADED,C.SET_GOOGLE_MAP_SCRIPT_ERROR,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===C.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===C.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(S);var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r($);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r(_),P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(P),T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));r(T);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),A=r(I),R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","searchboxId","endpoint"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"}}));r(R);var x=R.componentTypes,L=(R.queryTypes,R.validProps),j=(R.CLEAR_ALL,R.SEARCH_COMPONENTS_MODES),M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[R.componentTypes.numberBox,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.datePicker,R.componentTypes.dateRange,R.componentTypes.multiDataList,R.componentTypes.multiDropdownList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.dynamicRangeSlider,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.rangeSlider,R.componentTypes.ratingsFilter,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.treeList],o=[R.componentTypes.dateRange,R.componentTypes.dynamicRangeSlider,R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter],i=[R.componentTypes.singleRange,R.componentTypes.singleDropdownRange,R.componentTypes.multiRange,R.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}}));r(M);M.parseCustomEvents,M.parseRangeObject,M.parseFilterValue,M.rangeObjectComponents,M.rangeComponents,M.filterComponents,M.defaultAnalyticsConfig;var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:M.defaultAnalyticsConfig},t=arguments[1];if(t.type===C.ADD_CONFIG)return n({},e,{analyticsConfig:n({},M.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_CONFIG)return n({},e,t.config);return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(V);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(D);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(F);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_VALUE:var i={};return Object.keys(t.componentsToReset||{}).forEach((function(r){i[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,i,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case C.SET_VALUES:var a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var s={};return a.forEach((function(r){s[r]=n({},e[r],{value:t.componentsValues[r]})})),n({},e,s)}return e;case C.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case C.CLEAR_VALUES:var u={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){u[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(u[n]=e[n])})),u;case C.REMOVE_COMPONENT:e[t.component];var l=r(e,[t.component]);return l;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),q=r(U),B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case C.CLEAR_VALUES:var i={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(i[n]=e[n])})),i;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case C.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));r(B);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===C.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(z);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(H);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_HEADERS)return t.headers;return e}}));r(W);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===C.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Z);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case C.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case C.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case C.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case C.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case C.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[R.componentTypes.dataSearch,R.componentTypes.categorySearch]}));r(Y);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(te);var ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_PROPS:return n({},e,o({},t.component,t.options));case C.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case C.REMOVE_PROPS:case C.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===C.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),ie=r(oe),ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ce);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(pe);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===C.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(de);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,a=t.loaded,s=t.error;if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===C.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:s});return e};var r={loading:!1,loaded:!1,error:null}}));r(he);var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=be(S),r=be($),o=be(_),i=be(P),a=be(T),s=be(I),u=be(Q),l=be(V),c=be(D),p=be(F),d=be(N),h=be(U),f=be(B),g=be(z),m=be(H),y=be(G),b=be(W),O=be(Z),C=be(K),w=be(Y),k=be(X),E=be(J),A=be(ee),R=be(te),x=be(ne),L=be(re),j=be(oe),M=be(ae),q=be(se),ie=be(ue),fe=be(le),ge=be(ce),me=be(pe),ye=be(de),ve=be(he);function be(e){return e&&e.__esModule?e:{default:e}}t.default=(0,v.combineReducers)({components:n.default,customQueries:R.default,defaultQueries:A.default,customHighlightOptions:q.default,settings:M.default,watchMan:r.default,queryList:i.default,queryOptions:s.default,dependencyTree:o.default,appbaseRef:l.default,config:u.default,hits:c.default,promotedResults:k.default,customData:E.default,aggregations:L.default,compositeAggregations:j.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:g.default,error:m.default,timestamp:y.default,headers:b.default,mapData:O.default,queryListener:C.default,analytics:w.default,props:x.default,rawData:ie.default,querySuggestions:fe.default,defaultPopularSuggestions:ge.default,queryToHits:me.default,recentSearches:ye.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:ve.default,lastUsedAppbaseQuery:a.default})}));r(fe);var ge=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(ge);var me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(me);var ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=me)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(s)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(s)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],O=!1,C=function(e,t,r){if((O||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),d)return!0}return!1},w=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return C(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var p=a(s);if(p)return C(p,t,r)}}return!1}(e,t)}))}))};if(w(),v.length<r.length&&!O&&y&&(O=!0,w()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(d){var $={},_=[];return v.forEach((function(e){e.source&&e.source._id&&($[e.source._id]||(_.push(e),$[e.source._id]=!0))})),_}return v}}));r(ye);var ve=ye.replaceDiacritics,be=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.compareQueries=function(e,t){try{return c(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=d(p(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));i&&Object.keys(i).length&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=d(p(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a?a.length:0})},t.extractFieldsFromSource=C,t.normalizeDataField=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=w(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=C(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(s(c),s(l))}var d=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,i){return r&&"object"!=typeof e[o]&&i!==t.length-1?(e[o]={},e[o]):i===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var r=i(ge),o=i(ye);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function p(e){return"and"===e?"must":"or"===e?"should":"must_not"}function d(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_key:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=y;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=a(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function v(e,t,r){Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,d)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=i;if(s){var p=s(r,o);c=(p||{}).query,u=y(p),l(e,o,r)}c?(o.setQueryOptions(e,n({},u,t||i)),o.updateQuery(n({componentId:e,query:c,value:r},a))):o.setQueryOptions(e,n({},u,t||i))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,p=r,d=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),n({},p,b(o,c))};var O=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function C(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return O(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},$=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(S),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(S)[o]<=100){var i=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+i+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:i}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return $(n)?n(e):$(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return $(n)||$(t)},t.recLookup=function e(t,n){try{var r=n.split(".");return 1===r.length?t[r[0]]:e(t[r[0]],r.slice(1).join("."))}catch(e){return!1}};t.transformRawTreeListData=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){i.push(n({key:t.key,count:t.doc_count,level:o},t[r[o+1]]instanceof Object?{list:e(u({},r[o+1],t[r[o+1]]),r,o+1)}:{}))}))}))}return i},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,s(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var i=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(i),a.dataset.downloadurl=[o,a.download,a.href].join(":");var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(s),a.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var r=t.headers,o=void 0===r?{}:r,i=t.body,s=a(t,["headers","body"]);return n({},e,s,{headers:n({},e.headers,o)},i instanceof Object?{body:JSON.stringify(i)}:{})}return e}}));r(be);var Oe=be.transformRequestUsingEndpoint,Ce=(be.flatten,be.saveDataAsFile,be.transformTreeListLocalStateIntoQueryComptaibleFormat,be.transformRawTreeListData,be.recLookup,be.hasCustomRenderer,be.getComponent,be.isFunction,be.getCalendarIntervalErrorMessage,be.queryFormatMillisecondsMap,be.featuredSuggestionsActionTypes,be.suggestionTypes),we=(be.getTopSuggestions,be.withClickIds),Se=(be.getCompositeAggsQuery,be.getAggsQuery,be.extractQueryFromDefaultQuery,be.updateInternalQuery,be.getSearchState,be.extractQueryFromCustomQuery),$e=be.getOptionsForCustomQuery,_e=(be.getOptionsFromQuery,be.parseHits,be.handleA11yAction,be.getInnerKey,be.getClassName,be.checkSomePropChange,be.checkPropChange,be.updateDefaultQuery,be.updateCustomQuery,be.isEqual),ke=(be.compareQueries,be.debounce,be.getQueryOptions),Pe=be.buildQuery,Ee=be.pushToAndClause,Te=(be.checkValueChange,be.getAggsOrder,be.formatDate,be.getResultStats,be.extractFieldsFromSource,be.normalizeDataField,be.handleOnSuggestions,be.isValidDateRangeQueryFormat,be.setDeep,o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:C.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:C.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,Ie.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}})));r(Te);Te.updateAggs,Te.updateCompositeAggs,Te.updateHits,Te.saveQueryToHits,Te.mockDataForTesting;var Ie=o((function(e,t){function n(e,t){return{type:C.SET_RAW_DATA,component:e,response:t}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_PROMOTED_RESULTS,results:e,component:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:C.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:C.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:C.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:C.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:C.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:C.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:C.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:C.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:C.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:C.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:C.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=a,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:C.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(a(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,Te.updateAggs)(e,null)),t((0,Te.updateCompositeAggs)(e,{})),t((0,Te.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:C.SET_APPBASE_QUERY,query:e}}}));r(Ie);Ie.setRawData,Ie.setLoading,Ie.setError,Ie.setTimestamp,Ie.setSearchId,Ie.setSuggestionsSearchId,Ie.setQuery,Ie.setCustomQuery,Ie.setDefaultQuery,Ie.setCustomHighlightOptions,Ie.updateQueryOptions,Ie.logQuery,Ie.logCombinedQuery,Ie.setHeaders,Ie.setPromotedResults,Ie.setPopularSuggestions,Ie.setDefaultPopularSuggestions,Ie.setCustomData,Ie.setAppliedSettings,Ie.setQueryListener,Ie.setGoogleMapScriptLoading,Ie.setGoogleMapScriptLoaded,Ie.setGoogleMapScriptError,Ie.resetStoreForComponent,Ie.setLastUsedAppbaseQuery;var Ae=o((function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function g(){if(c)throw new Error(u(3));return i}function m(e){if("function"!=typeof e)throw new Error(u(4));if(c)throw new Error(u(5));var t=!0;return f(),s.push(e),function(){if(t){if(c)throw new Error(u(6));t=!1,f();var n=s.indexOf(e);s.splice(n,1),a=null}}}function y(e){if(!d(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(c)throw new Error(u(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));o=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e}return y({type:p.INIT}),(r={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[l]=b,r}var f=h;function g(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return g(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=g(o,t))}return n}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var v=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=y.apply(void 0,i)(n.dispatch),s(s({},n),{},{dispatch:r})}}},bindActionCreators:m,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(u(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],p=e[l],d=c(p,t);if(void 0===d){t&&t.type;throw new Error(u(14))}o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:y,createStore:h,legacy_createStore:f});function b(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var O=b();O.withExtraArgument=b;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR"}));r(C);C.ADD_COMPONENT,C.REMOVE_COMPONENT,C.WATCH_COMPONENT,C.SET_QUERY,C.SET_APPBASE_QUERY,C.SET_QUERY_OPTIONS,C.EXECUTE_QUERY,C.UPDATE_HITS,C.UPDATE_AGGS;var w=C.UPDATE_COMPOSITE_AGGS,S=(C.ADD_CONFIG,C.UPDATE_CONFIG,C.ADD_APPBASE_REF,C.LOG_QUERY,C.LOG_COMBINED_QUERY,C.SET_INTERNAL_VALUE,C.PATCH_VALUE,C.CLEAR_VALUES,C.SET_LOADING,C.SET_ERROR,C.SET_TIMESTAMP,C.SET_HEADERS,C.SET_MAP_DATA,C.SET_MAP_RESULTS,C.SET_QUERY_LISTENER,C.STORE_KEY,C.SET_SEARCH_ID,C.SET_PROMOTED_RESULTS,C.SET_DEFAULT_QUERY,C.SET_CUSTOM_QUERY,C.SET_CUSTOM_HIGHLIGHT_OPTIONS,C.SET_CUSTOM_DATA,C.SET_APPLIED_SETTINGS,C.SET_PROPS,C.UPDATE_PROPS,C.REMOVE_PROPS,C.SET_SUGGESTIONS_SEARCH_VALUE,C.CLEAR_SUGGESTIONS_SEARCH_VALUE,C.SET_SUGGESTIONS_SEARCH_ID,C.UPDATE_ANALYTICS_CONFIG,C.SET_RAW_DATA,C.SET_POPULAR_SUGGESTIONS,C.SET_DEFAULT_POPULAR_SUGGESTIONS,C.SET_QUERY_TO_HITS,C.RECENT_SEARCHES_SUCCESS,C.RECENT_SEARCHES_ERROR,C.SET_VALUE,C.SET_VALUES,C.RESET_TO_DEFAULT,C.SET_GOOGLE_MAP_SCRIPT_LOADING,C.SET_GOOGLE_MAP_SCRIPT_LOADED,C.SET_GOOGLE_MAP_SCRIPT_ERROR,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===C.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===C.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(S);var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r($);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r(_),P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(P),T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));r(T);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),A=r(I),R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","searchboxId","endpoint"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"}}));r(R);var x=R.componentTypes,L=(R.queryTypes,R.validProps),j=(R.CLEAR_ALL,R.SEARCH_COMPONENTS_MODES),M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[R.componentTypes.numberBox,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.datePicker,R.componentTypes.dateRange,R.componentTypes.multiDataList,R.componentTypes.multiDropdownList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.dynamicRangeSlider,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.rangeSlider,R.componentTypes.ratingsFilter,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.treeList],o=[R.componentTypes.dateRange,R.componentTypes.dynamicRangeSlider,R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter],i=[R.componentTypes.singleRange,R.componentTypes.singleDropdownRange,R.componentTypes.multiRange,R.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}}));r(M);M.parseCustomEvents,M.parseRangeObject,M.parseFilterValue,M.rangeObjectComponents,M.rangeComponents,M.filterComponents,M.defaultAnalyticsConfig;var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:M.defaultAnalyticsConfig,lock:!1},t=arguments[1];if(t.type===C.ADD_CONFIG)return n({},e,{analyticsConfig:n({},M.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_CONFIG)return n({},e,t.config);return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(V);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(D);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(F);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_VALUE:var i={};return Object.keys(t.componentsToReset||{}).forEach((function(r){i[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,i,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case C.SET_VALUES:var a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var s={};return a.forEach((function(r){s[r]=n({},e[r],{value:t.componentsValues[r]})})),n({},e,s)}return e;case C.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case C.CLEAR_VALUES:var u={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){u[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(u[n]=e[n])})),u;case C.REMOVE_COMPONENT:e[t.component];var l=r(e,[t.component]);return l;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),q=r(U),B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case C.CLEAR_VALUES:var i={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(i[n]=e[n])})),i;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case C.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));r(B);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===C.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(z);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(H);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_HEADERS)return t.headers;return e}}));r(W);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===C.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Z);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case C.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case C.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case C.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case C.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case C.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[R.componentTypes.dataSearch,R.componentTypes.categorySearch]}));r(Y);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(te);var ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_PROPS:return n({},e,o({},t.component,t.options));case C.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case C.REMOVE_PROPS:case C.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===C.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),ie=r(oe),ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ce);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(pe);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===C.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(de);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,a=t.loaded,s=t.error;if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===C.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:s});return e};var r={loading:!1,loaded:!1,error:null}}));r(he);var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=be(S),r=be($),o=be(_),i=be(P),a=be(T),s=be(I),u=be(Q),l=be(V),c=be(D),p=be(F),d=be(N),h=be(U),f=be(B),g=be(z),m=be(H),y=be(G),b=be(W),O=be(Z),C=be(K),w=be(Y),k=be(X),E=be(J),A=be(ee),R=be(te),x=be(ne),L=be(re),j=be(oe),M=be(ae),q=be(se),ie=be(ue),fe=be(le),ge=be(ce),me=be(pe),ye=be(de),ve=be(he);function be(e){return e&&e.__esModule?e:{default:e}}t.default=(0,v.combineReducers)({components:n.default,customQueries:R.default,defaultQueries:A.default,customHighlightOptions:q.default,settings:M.default,watchMan:r.default,queryList:i.default,queryOptions:s.default,dependencyTree:o.default,appbaseRef:l.default,config:u.default,hits:c.default,promotedResults:k.default,customData:E.default,aggregations:L.default,compositeAggregations:j.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:g.default,error:m.default,timestamp:y.default,headers:b.default,mapData:O.default,queryListener:C.default,analytics:w.default,props:x.default,rawData:ie.default,querySuggestions:fe.default,defaultPopularSuggestions:ge.default,queryToHits:me.default,recentSearches:ye.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:ve.default,lastUsedAppbaseQuery:a.default})}));r(fe);var ge=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(ge);var me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(me);var ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=me)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(s)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(s)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],O=!1,C=function(e,t,r){if((O||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),d)return!0}return!1},w=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return C(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var p=a(s);if(p)return C(p,t,r)}}return!1}(e,t)}))}))};if(w(),v.length<r.length&&!O&&y&&(O=!0,w()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(d){var $={},_=[];return v.forEach((function(e){e.source&&e.source._id&&($[e.source._id]||(_.push(e),$[e.source._id]=!0))})),_}return v}}));r(ye);var ve=ye.replaceDiacritics,be=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.compareQueries=function(e,t){try{return c(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(!t)return e;var r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=d(p(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));i&&Object.keys(i).length&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=d(p(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a?a.length:0})},t.extractFieldsFromSource=C,t.normalizeDataField=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=w(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=C(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(s(c),s(l))}var d=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,i){return r&&"object"!=typeof e[o]&&i!==t.length-1?(e[o]={},e[o]):i===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var r=i(ge),o=i(ye);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function p(e){return"and"===e?"must":"or"===e?"should":"must_not"}function d(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_key:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=y;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=a(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=arguments[2];Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r||{}).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,d)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=i;if(s){var p=s(r,o);c=(p||{}).query,u=y(p),l(e,o,r)}c?(o.setQueryOptions(e,n({},u,t||i)),o.updateQuery(n({componentId:e,query:c,value:r},a))):o.setQueryOptions(e,n({},u,t||i))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,p=r,d=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),n({},p,b(o,c))};var O=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function C(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return O(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},$=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(S),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(S)[o]<=100){var i=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+i+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:i}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return $(n)?n(e):$(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return $(n)||$(t)},t.recLookup=function e(t,n){try{var r=n.split(".");return 1===r.length?t[r[0]]:e(t[r[0]],r.slice(1).join("."))}catch(e){return!1}};t.transformRawTreeListData=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){i.push(n({key:t.key,count:t.doc_count,level:o},t[r[o+1]]instanceof Object?{list:e(u({},r[o+1],t[r[o+1]]),r,o+1)}:{}))}))}))}return i},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,s(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var i=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(i),a.dataset.downloadurl=[o,a.download,a.href].join(":");var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(s),a.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var r=t.headers,o=void 0===r?{}:r,i=t.body,s=a(t,["headers","body"]);return n({},e,s,{headers:n({},e.headers,o)},i instanceof Object?{body:JSON.stringify(i)}:{})}return e}}));r(be);var Oe=be.transformRequestUsingEndpoint,Ce=(be.flatten,be.saveDataAsFile,be.transformTreeListLocalStateIntoQueryComptaibleFormat,be.transformRawTreeListData,be.recLookup,be.hasCustomRenderer,be.getComponent,be.isFunction,be.getCalendarIntervalErrorMessage,be.queryFormatMillisecondsMap,be.featuredSuggestionsActionTypes,be.suggestionTypes),we=(be.getTopSuggestions,be.withClickIds),Se=(be.getCompositeAggsQuery,be.getAggsQuery,be.extractQueryFromDefaultQuery,be.updateInternalQuery,be.getSearchState,be.extractQueryFromCustomQuery),$e=be.getOptionsForCustomQuery,_e=(be.getOptionsFromQuery,be.parseHits,be.handleA11yAction,be.getInnerKey,be.getClassName,be.checkSomePropChange,be.checkPropChange,be.updateDefaultQuery,be.updateCustomQuery,be.isEqual),ke=(be.compareQueries,be.debounce,be.getQueryOptions),Pe=be.buildQuery,Ee=be.pushToAndClause,Te=(be.checkValueChange,be.getAggsOrder,be.formatDate,be.getResultStats,be.extractFieldsFromSource,be.normalizeDataField,be.handleOnSuggestions,be.isValidDateRangeQueryFormat,be.setDeep,o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:C.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:C.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,Ie.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}})));r(Te);Te.updateAggs,Te.updateCompositeAggs,Te.updateHits,Te.saveQueryToHits,Te.mockDataForTesting;var Ie=o((function(e,t){function n(e,t){return{type:C.SET_RAW_DATA,component:e,response:t}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_PROMOTED_RESULTS,results:e,component:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:C.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:C.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:C.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:C.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:C.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:C.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:C.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:C.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:C.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:C.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:C.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=a,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:C.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(a(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,Te.updateAggs)(e,null)),t((0,Te.updateCompositeAggs)(e,{})),t((0,Te.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:C.SET_APPBASE_QUERY,query:e}}}));r(Ie);Ie.setRawData,Ie.setLoading,Ie.setError,Ie.setTimestamp,Ie.setSearchId,Ie.setSuggestionsSearchId,Ie.setQuery,Ie.setCustomQuery,Ie.setDefaultQuery,Ie.setCustomHighlightOptions,Ie.updateQueryOptions,Ie.logQuery,Ie.logCombinedQuery,Ie.setHeaders,Ie.setPromotedResults,Ie.setPopularSuggestions,Ie.setDefaultPopularSuggestions,Ie.setCustomData,Ie.setAppliedSettings,Ie.setQueryListener,Ie.setGoogleMapScriptLoading,Ie.setGoogleMapScriptLoaded,Ie.setGoogleMapScriptError,Ie.resetStoreForComponent,Ie.setLastUsedAppbaseQuery;var Ae=o((function(e){
|
|
2
2
|
/**
|
|
3
3
|
* @preserve XDate v@VERSION
|
|
4
4
|
* Docs & Licensing: http://arshaw.com/xdate/
|
|
5
5
|
*/
|
|
6
|
-
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(Q(n[o-1])&&(r=n[--o],n=L(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):M(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=d.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=I(e[0]));else e[0]=new t;return Q(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?I(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=x(E,e[0],o),s=x(T,e[0],o),u=!1;2==r.length&&Q(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[A(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=E(t,!1,i)-E(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=O(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<O(e)?e-1:o>=O(e+1)?e+1:e}function O(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function C(e,t,n,r){var o=x(E,e,r),i=x(T,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=O(n);r||(a=I(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function w(e,t,n,r,o){var i=d.locales,a=i[d.defaultLocale]||{},s=x(E,e,o);return n=(M(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function S(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=$(e,i[1],n,r,o):i[3]?(a=S(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function $(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=_(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function _(e,t,r,o,i){var a=d.formatters[t];if(M(a))return S(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return V(r(6),3);case"s":return r(5);case"ss":return V(r(5));case"m":return r(4);case"mm":return V(r(4));case"h":return r(3)%12||12;case"hh":return V(r(3)%12||12);case"H":return r(3);case"HH":return V(r(3));case"d":return r(2);case"dd":return V(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return V(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return k(r,o).substr(0,1).toLowerCase();case"tt":return k(r,o).toLowerCase();case"T":return k(r,o).substr(0,1);case"TT":return k(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=V(i):"zzz"==t&&(s=V(i)+":"+V(a));return o+s}(e,t);case"w":return v(r);case"ww":return V(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function k(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function P(e){return!isNaN(e[0].getTime())}function E(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function T(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function I(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function A(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function R(e){return function(){return e.apply(void 0,[this].concat(L(arguments)))}}function x(e){var t=L(arguments,1);return function(){return e.apply(void 0,t.concat(L(arguments)))}}function L(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function j(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function M(e){return"string"==typeof e}function Q(e){return"boolean"==typeof e}function V(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=R(f),p.setUTCMode=R(g),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},j(i,(function(e,t){p["get"+e]=function(){return E(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return E(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},p["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},p["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(x(E,this,!1))},p.getUTCWeek=function(){return v(x(E,this,!0))},p.setWeek=function(e,t){return C(this,e,t,!1),this},p.setUTCWeek=function(e,t){return C(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=I(i)),r.setTime(i.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},j(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=R(P),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=A,e.exports&&(e.exports=d)}(Date,Math,Array)})),Re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=_;var o=a(Ae),i=a(ge);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},R.componentTypes.reactiveList,R.queryTypes.search),u(n,R.componentTypes.dataSearch,R.queryTypes.search),u(n,R.componentTypes.categorySearch,R.queryTypes.search),u(n,R.componentTypes.searchBox,R.queryTypes.suggestion),u(n,R.componentTypes.singleList,R.queryTypes.term),u(n,R.componentTypes.multiList,R.queryTypes.term),u(n,R.componentTypes.singleDataList,R.queryTypes.term),u(n,R.componentTypes.singleDropdownList,R.queryTypes.term),u(n,R.componentTypes.multiDataList,R.queryTypes.term),u(n,R.componentTypes.multiDropdownList,R.queryTypes.term),u(n,R.componentTypes.tagCloud,R.queryTypes.term),u(n,R.componentTypes.toggleButton,R.queryTypes.term),u(n,R.componentTypes.reactiveChart,R.queryTypes.term),u(n,R.componentTypes.treeList,R.queryTypes.term),u(n,R.componentTypes.numberBox,R.queryTypes.term),u(n,R.componentTypes.datePicker,R.queryTypes.range),u(n,R.componentTypes.dateRange,R.queryTypes.range),u(n,R.componentTypes.dynamicRangeSlider,R.queryTypes.range),u(n,R.componentTypes.singleDropdownRange,R.queryTypes.range),u(n,R.componentTypes.multiDropdownRange,R.queryTypes.range),u(n,R.componentTypes.singleRange,R.queryTypes.range),u(n,R.componentTypes.multiRange,R.queryTypes.range),u(n,R.componentTypes.rangeSlider,R.queryTypes.range),u(n,R.componentTypes.ratingsFilter,R.queryTypes.range),u(n,R.componentTypes.rangeInput,R.queryTypes.range),u(n,R.componentTypes.geoDistanceDropdown,R.queryTypes.geo),u(n,R.componentTypes.geoDistanceSlider,R.queryTypes.geo),u(n,R.componentTypes.reactiveMap,R.queryTypes.geo),n),c=[R.componentTypes.multiRange,R.componentTypes.multiDropdownRange],p=[R.componentTypes.dateRange,R.componentTypes.datePicker],d=[R.componentTypes.categorySearch,R.componentTypes.dataSearch,R.componentTypes.searchBox],h=[R.componentTypes.singleList,R.componentTypes.multiList,R.componentTypes.singleDropdownList,R.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},O=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===R.componentTypes.multiDataList||e===R.componentTypes.singleDataList||e===R.componentTypes.tabDataList},C=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];if(!b(t.componentType)&&!t.dataField)return null;var i=void 0;return t.endpoint instanceof Object&&(i=t.endpoint),r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===R.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig,indexSuggestionsConfig:t.indexSuggestionsConfig,enableFeaturedSuggestions:t.enableFeaturedSuggestions,enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:i})}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},$=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var s=a.type?a.type:l[a.componentType],u=e.selectedValues[t]||e.internalValues[t],d=null!=u?u.value:void 0,h=a.queryFormat,f=void 0,g=a.interval,w=s,$=a.dataField,_=a.aggregations,k=void 0,P=a.from;if(s===R.queryTypes.term)if(a.showLoadMore&&C(a.componentType)&&(k=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var E=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?E.push(e.value):E.push(e)})),d=E}if(s===R.queryTypes.range){if(Array.isArray(d))d=c.includes(a.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(a.showHistogram){var T=m(t),I=e.internalValues[T];if(!I){var A=y(t);I=e.internalValues[A]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]},g=S(g,d))}v(t)?_=["min","max"]:a.showHistogram&&(_=["histogram"]),a.componentType!==R.componentTypes.dynamicRangeSlider&&a.componentType!==R.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,be.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,be.formatDate)(new o.default(d.start),a),end:(0,be.formatDate)(new o.default(d.end),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)})),p.includes(a.componentType)&&(h="or",d&&("string"==typeof d?d={start:(0,be.formatDate)(new o.default(d).addHours(-24),a),end:(0,be.formatDate)(new o.default(d),a)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,be.formatDate)(new o.default(e).addHours(-24),a),end:(0,be.formatDate)(new o.default(e),a)}})))))}if(s===R.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},a.unit&&(d.unit=a.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===R.componentTypes.numberBox&&("exact"===h?w="term":(w="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===R.componentTypes.reactiveComponent&&(w="term",$="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),O(a.componentType)){var L=a.data,j=[];d&&Array.isArray(d)?j=d:d&&"string"==typeof d&&(j=[d]);var M=[];j.length&&L&&Array.isArray(L)&&j.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),d=M.length?M:void 0}a.componentType===R.componentTypes.reactiveList&&(d>0&&(P=(d-1)*(a.size||10)),d=void 0);var Q=d||void 0;a.componentType===R.componentTypes.searchBox&&Array.isArray(Q)&&(Q=void 0);var V=void 0;return e.config&&e.config.endpoint instanceof Object&&(V=e.config.endpoint),a.endpoint instanceof Object&&(V=r({},V||{},a.endpoint)),r({},a,{endpoint:V,calendarInterval:f,dataField:$,queryFormat:h,type:w,aggregations:_,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:Q,pagination:k,from:P},n)};function _(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(s(n),[t[r]]):Array.isArray(t[r])?n=[].concat(s(n),s(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=_(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,a=e.customQueries[i];if(!g(i)){var s=e.selectedValues[i]||e.internalValues[i];if((s||a)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=e.props[i],c=w(i,$(e,i,r({},l&&l.componentType===R.componentTypes.searchBox?r({},!1===u?{type:R.queryTypes.search}:{},s.category?{categoryValue:s.category}:{},s.value?{value:s.value}:{}):{})),u);c&&(o[i]=c)}}})),o}}));r(Re);var xe=Re.getDependentQueries,Le=Re.extractPropsFromState,je=(Re.getValidInterval,Re.getRSQuery),Me=(Re.hasPaginationSupport,Re.isComponentUsesLabelAsValue,Re.isSearchComponent),Qe=(Re.isDRSRangeComponent,Re.getHistogramComponentID,Re.getInternalComponentID),Ve=Re.isInternalComponent,De=(Re.getNormalizedField,Re.componentToTypeMap,Re.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:C.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},i=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},a=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},s=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){i(a,e)&&(l[e]&&l[e].onError&&l[e].onError(o),s((0,Ie.setError)(e,o)),s((0,Ie.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,u=void 0===a?[]:a,l=e.appendToHits,c=void 0!==l&&l,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,g=e.query,m=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),O=b.config,C=b.internalValues,w=b.lastUsedAppbaseQuery,S=t._headers?t._headers.get("X-Search-Id"):null;S&&v(f?(0,Ie.setSuggestionsSearchId)(S):(0,Ie.setSearchId)(S)),u.forEach((function(e){if(i(y,e)){if(w[e]&&w[e].queryId&&m&&w[e].queryId!==m)return;t.settings&&v((0,Ie.setAppliedSettings)(t.settings,e)),o(t[e],O,e).then((function(o){if(o){var i=y(),a=i.timestamp,s=i.props;if(void 0===a[e]||a[e]<t._timestamp){var u=o.promoted;if(u){var l=u.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,Ie.setPromotedResults)(l,e))}else v((0,Ie.setPromotedResults)([],e));if(v((0,Ie.setRawData)(e,o)),v((0,Ie.setCustomData)(o.customData,e)),o.hits){v((0,Ie.setTimestamp)(e,t._timestamp)),s[e].componentType===R.componentTypes.reactiveList&&g.find((function(t){return t.id===e})).execute&&v((0,Ie.setLastUsedAppbaseQuery)(r({},e,g))),v((0,Te.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var p=(0,Re.getInternalComponentID)(e);C[p]&&v((0,Te.saveQueryToHits)(e,C[p].value))}o.aggregations&&(v((0,Te.updateAggs)(e,o.aggregations,d)),v((0,Te.updateCompositeAggs)(e,o.aggregations,d)))}v((0,Ie.setLoading)(e,!1))}})).catch((function(e){s({orderOfQueries:u,error:e},y,v)}))}}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,r=e.isSuggestionsQuery,a=void 0!==r&&r,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,p=void 0!==c&&c,d=e.appendToAggs,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(i(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&g(a?(0,Ie.setSuggestionsSearchId)(r):(0,Ie.setSearchId)(r));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,m=c.internalValues;o(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,Ie.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,Ie.setPromotedResults)(o,e):(0,Ie.setPromotedResults)([],e)),t.hits){g((0,Ie.setTimestamp)(e,n._timestamp)),g((0,Te.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var i=(0,Re.getInternalComponentID)(e);m[i]&&g((0,Te.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,Te.updateAggs)(e,t.aggregations,h)),g((0,Te.updateCompositeAggs)(e,t.aggregations,h)))}g((0,Ie.setLoading)(e,!1))})).catch((function(e){s({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],i=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:i,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:i,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:i,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:i,type:"phrase_prefix"}}]}}}}]}})));r(De);De.getSuggestionQuery;var Fe=De.isPropertyDefined,Ne=(De.handleResponseMSearch,De.handleResponse,De.handleError,De.getQuerySuggestionsId,De.isComponentActive,De.handleTransformResponse,De.executeQueryListener,De.updateStoreConfig,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,i,a,s,u,l){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,g=d.watchMan,m=d.props,y=l;(0,be.isEqual)(h[e],t)&&(y="URL");var v={},b=[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(m[e]&&m[e].componentType),O=f[e]&&f[e].value;if(!(0,be.isEqual)(O,t)&&m[e]&&!b){var w=[e],S=g[e]||[];(w=[].concat(r(w),r(S))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!O||O<2)||c({type:C.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:a,category:s,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,a=o.props,s={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter,R.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[R.componentTypes.multiDropdownList,R.componentTypes.multiDataList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.dataSearch,R.componentTypes.datePicker,R.componentTypes.treeList].includes(a[t].componentType)?u=a[t].defaultValue:[R.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,be.isEqual)(i[t].value,u)||(s=n({},s,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},i[t],{value:u})))))})),t({type:C.RESET_TO_DEFAULT,defaultValues:s})}},t.setInternalValue=function(e,t,n,r,o){return{type:C.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:C.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:C.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,De.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:C.SET_VALUES,componentsValues:e})}}})));r(Ne);Ne.setValue,Ne.resetValuesToDefault,Ne.setInternalValue,Ne.patchValue,Ne.clearValues;var Ue=Ne.setValues,qe=o((function(e,t){function n(e,t,n){return{type:C.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(s){if(s(n(e,t,r)),s((0,Ne.setInternalValue)((0,Re.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){s((0,We.executeQuery)(e,!1,!0,R.componentTypes.reactiveMap,{},a))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:C.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));r(qe);qe.updateMapData,qe.setMapData,qe.setMapResults;var Be=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new C(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=C),t.Headers=d,t.Request=b,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})),ze=r(Be),He=(Be.fetch,Be.Headers,Be.Request,Be.Response,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=Be)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,i=e.credentials,a=e.app,s=e.query,u=e.headers,l=i?n.replace("//","//"+i+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+a+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(s.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}}))),Ge=r(He),We=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.loadPopularSuggestions=u,t.executeQuery=f,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,Ie.updateQueryOptions)(e,t)),n&&r(f(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,d=e.category,h=void 0===d?null:d,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Ne.setInternalValue)(t,r,p,h,m)):(e((0,Ne.setValue)(t,r,i,s,l,p,h,m)),v&&(p===R.componentTypes.dynamicRangeSlider?e((0,Ne.setInternalValue)((0,Re.getHistogramComponentID)(t),r,p,h,m)):e((0,Ne.setInternalValue)(t+"__internal",r,p,h,m)))),e((0,Ie.setQuery)(t,o)),y&&e(f(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),l=(0,be.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),d=l.queryObj,h=l.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!d||d&&!Object.keys(d).length)&&(d={match_all:{}});var g=n({query:n({},d)},h);if(!(0,be.compareQueries)(f[e],g))if(i((0,Ie.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;Re.componentToTypeMap[y.componentType]===R.queryTypes.term&&(v=y.dataField);var b=(0,Re.getRSQuery)(e,(0,Re.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,Re.getDependentQueries)(s(),e,[])),i(p({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,u){var l=u(),c=l.appbaseRef,p=l.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){return e.id===t?n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"}):e}));return o&&Array.isArray(i)&&o<=i.length?i:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?a(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(s(i),s(r)))):i})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=i(M),o=i(He);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,Ie.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,De.getSuggestionQuery)(n,e);i.getQuerySuggestions(d).then((function(n){var r=n[(0,De.getQuerySuggestionsId)(e)];t(p?(0,Ie.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,Ie.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,De.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}var l=function(e,t){if(e&&"function"==typeof e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(t)};function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(c,p){var d=p(),h=d.appbaseRef,f=d.config,g=d.headers,m=d.analytics,y=d.selectedValues,v={},b=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],O=a&&-1!==b.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&O){var C=m.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!C)&&(v={"X-Search-Query":C||""})}else{var w=m.searchValue,S=m.searchId,$=(0,r.default)(y);if(S)v=n({"X-Search-Id":S,"X-Search-Query":w||""},$&&{"X-Search-Filters":$});else{var _=!(!f.analyticsConfig.emptyQuery&&!w);v=n(_&&{"X-Search-Query":w||""},$&&{"X-Search-Filters":$})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,M.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,Ie.setLoading)(e,!0)),c((0,Ie.setError)(e,null))})),f.graphQLUrl){var k={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:g};l(h.transformRequest,k).then((function(e){(0,o.default)(e).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},g,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,i=e.appendToHits,a=void 0!==i&&i,s=e.isSuggestionsQuery,l=void 0!==s&&s,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,i){var s=i(),p=s.appbaseRef,h=s.config,f=s.headers,g=!1;h&&((0,De.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,De.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,De.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var m={recordAnalytics:g};h.analyticsConfig&&(m.userId=(0,De.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,m.enableQueryRules=(0,De.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,m.customEvents=(0,De.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0),o.forEach((function(t){e((0,Ie.setLoading)(t,!0)),e((0,Ie.setError)(t,null))})),p.setHeaders(n({},f)),l&&c&&e(u(c)),p.reactiveSearchv3(r,m).then((function(n){(0,De.handleResponse)({res:n,orderOfQueries:o,appendToHits:a,appendToAggs:d,query:r,queryId:t},i,e)})).catch((function(n){(0,De.handleError)({orderOfQueries:o,error:n,queryId:t},i,e)}))}}var d=[],h=!1;function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4],u=arguments[5];return function(l,f){var g=f(),m=g.queryLog,y=g.config,v=g.mapData,b=g.watchMan,O=g.dependencyTree,C=g.queryList,w=g.queryOptions,S=g.queryListener,$=g.props,_=g.internalValues,k=y.initialQueriesSyncTime,P=y.initialTimestamp,E=u||(new Date).getTime();y.queryLockConfig instanceof Object&&(k=y.queryLockConfig.lockTime,P=y.queryLockConfig.initialTimestamp);var T=[e],I=[],A={},x=[],L=y&&y.enableAppbase;if(t){var j=b[e]||[];T=[].concat(s(T),s(j))}var M={match_all:{}};if(T.forEach((function(t){var o=(0,be.buildQuery)(t,O,C,w),u=o.queryObj,c=o.options,p=["aggs","from","sort"];if(u&&Object.keys(u).length||c&&Object.keys(c).some((function(e){return p.includes(e)}))){(!u||u&&!Object.keys(u).length)&&(u=n({},M));var d=n({query:n({},u)},c,w[t]),h=n({query:n({},u)},c,w[t]),g=m[t];if(r||!(0,be.compareQueries)(d,g,!1)){x=[].concat(s(x),[t]);var b=Object.keys(v).includes(t);if(b&&l((0,Ie.setLastUsedAppbaseQuery)(a({},t,{queryId:E}))),l((0,Ie.logQuery)(t,h)),b&&v[t].query){var k=d.query;d.query={bool:{must:[k,v[t].query]}},v[t].persistMapQuery||l((0,qe.updateMapData)(e,null,!1));var P=f().combinedLog;if((0,be.compareQueries)(P[t],d))return;l((0,Ie.logCombinedQuery)(t,d))}if((0,De.executeQueryListener)(S[t],g,d),L){var T=void 0,R=e.endsWith("__internal"),j=$[e];R&&j&&(0,Re.isSearchComponent)(j.componentType)&&(T=_[e]&&_[e].value);var Q=(0,Re.getRSQuery)(t,(0,Re.extractPropsFromState)(f(),t,n({},T?{value:T}:null,i?{from:i.from}:null)));if(Q&&(A=n({},A,a({},t,Q),(0,Re.getDependentQueries)(f(),t,x))),b){var V=(0,Re.getInternalComponentID)(t),D=(0,Re.getRSQuery)(V,(0,Re.extractPropsFromState)(f(),V,i?{from:i.from}:null));D&&(A[V]=n({},D,{execute:!1}))}}else{var F=y&&y.analyticsConfig&&y.analyticsConfig.userId?y.analyticsConfig.userId+"_"+t:t;I=[].concat(s(I),[{preference:F},d])}}}})),L&&(I=Object.keys(A).map((function(e){return A[e]}))),I.length)if(L){var Q=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],V=e.endsWith("__internal")&&-1!==Q.indexOf(o);(new Date).getTime()-P<k?(h&&!y.queryLockConfig||setTimeout((function(){var e=[],t=!1,n="",r={},o={},i={};d.forEach((function(a){t||(t=a.isSuggestionsQuery),n||(n=a.searchComponentID),Array.isArray(a.query)&&a.query.forEach((function(e){e.execute&&(i[e.id]=e.execute);var t=e;i[e.id]&&(t.execute=!0),o[e.id]=t})),Array.isArray(a.orderOfQueries)&&a.orderOfQueries.forEach((function(t){r[t.id]?r[t.id]=!0:e=[t].concat(s(e))}))}));var a=Object.values(o);a.length&&l(p({query:a,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:n})),d=[],l((0,De.updateStoreConfig)({queryLockConfig:void 0}))}),k),h=!0,d.push({query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e})):l(p({queryId:E,query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e}))}else l(c(I,x,!1,e.endsWith("__internal"),void 0,o))}}}));r(We);We.loadPopularSuggestions,We.executeQuery,We.setQueryOptions,We.updateQuery,We.loadMore,We.loadDataToExport;var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:C.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:C.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:C.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,We.executeQuery)(e))}}}));r(Ze);Ze.addComponent,Ze.removeComponent,Ze.watchComponent;var Ke=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:C.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:C.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:C.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){R.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(Ke);Ke.setComponentProps,Ke.updateComponentProps,Ke.removeComponentProps;var Ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:C.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:C.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:C.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,p=i.app,d=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),d?t({type:C.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:C.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:C.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,p=u.credentials,d=(c+"://"+l).replace(/\/+$/,"");!d.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(d+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(p)})})}}}));r(Ye);Ye.setSuggestionsSearchValue,Ye.clearSuggestionsSearchValue;var Xe=Ye.updateAnalyticsConfig,Je=(Ye.getRecentSearches,Ye.recordResultClick,Ye.recordSuggestionClick,Ye.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}})})),Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}})})),Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}})})),Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}})})),Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}})})),Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}})})),Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}})})),Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}})}))})));if(r(Je),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var et=Object.freeze({__proto__:null}),tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(tt);var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{analyticsConfig:e.config&&e.config.analyticsConfig?n({},M.defaultAnalyticsConfig,e.config.analyticsConfig):M.defaultAnalyticsConfig})});return(0,v.createStore)(o.default,t,k)};var r=y(O),o=y(fe),i=m(Je),a=m(be),s=y(ye),u=y(R),l=y(et),c=y(tt),p=y(U),d=y(P),h=y(I),f=y(_),g=y(ne);function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var b=C.STORE_KEY,w=s.default,S=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=S,t.suggestions=w,t.Actions=i,t.storeKey=b,t.polyfills=l.default,t.Reducers=$,t.constants=u.default;var k=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):v.compose)((0,v.applyMiddleware)(r.default))})),rt=r(nt),ot=(nt.constants,nt.Reducers,nt.polyfills,nt.storeKey,nt.Actions),it=(nt.suggestions,nt.causes),at=nt.helper;function st(){
|
|
6
|
+
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(Q(n[o-1])&&(r=n[--o],n=L(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):M(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=d.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=I(e[0]));else e[0]=new t;return Q(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?I(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=x(E,e[0],o),s=x(T,e[0],o),u=!1;2==r.length&&Q(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[A(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=E(t,!1,i)-E(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=O(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<O(e)?e-1:o>=O(e+1)?e+1:e}function O(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function C(e,t,n,r){var o=x(E,e,r),i=x(T,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=O(n);r||(a=I(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function w(e,t,n,r,o){var i=d.locales,a=i[d.defaultLocale]||{},s=x(E,e,o);return n=(M(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function S(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=$(e,i[1],n,r,o):i[3]?(a=S(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function $(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=_(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function _(e,t,r,o,i){var a=d.formatters[t];if(M(a))return S(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return V(r(6),3);case"s":return r(5);case"ss":return V(r(5));case"m":return r(4);case"mm":return V(r(4));case"h":return r(3)%12||12;case"hh":return V(r(3)%12||12);case"H":return r(3);case"HH":return V(r(3));case"d":return r(2);case"dd":return V(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return V(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return k(r,o).substr(0,1).toLowerCase();case"tt":return k(r,o).toLowerCase();case"T":return k(r,o).substr(0,1);case"TT":return k(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=V(i):"zzz"==t&&(s=V(i)+":"+V(a));return o+s}(e,t);case"w":return v(r);case"ww":return V(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function k(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function P(e){return!isNaN(e[0].getTime())}function E(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function T(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function I(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function A(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function R(e){return function(){return e.apply(void 0,[this].concat(L(arguments)))}}function x(e){var t=L(arguments,1);return function(){return e.apply(void 0,t.concat(L(arguments)))}}function L(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function j(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function M(e){return"string"==typeof e}function Q(e){return"boolean"==typeof e}function V(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=R(f),p.setUTCMode=R(g),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},j(i,(function(e,t){p["get"+e]=function(){return E(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return E(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},p["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},p["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(x(E,this,!1))},p.getUTCWeek=function(){return v(x(E,this,!0))},p.setWeek=function(e,t){return C(this,e,t,!1),this},p.setUTCWeek=function(e,t){return C(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=I(i)),r.setTime(i.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},j(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=R(P),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=A,e.exports&&(e.exports=d)}(Date,Math,Array)})),Re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=_;var o=a(Ae),i=a(ge);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},R.componentTypes.reactiveList,R.queryTypes.search),u(n,R.componentTypes.dataSearch,R.queryTypes.search),u(n,R.componentTypes.categorySearch,R.queryTypes.search),u(n,R.componentTypes.searchBox,R.queryTypes.suggestion),u(n,R.componentTypes.singleList,R.queryTypes.term),u(n,R.componentTypes.multiList,R.queryTypes.term),u(n,R.componentTypes.singleDataList,R.queryTypes.term),u(n,R.componentTypes.singleDropdownList,R.queryTypes.term),u(n,R.componentTypes.multiDataList,R.queryTypes.term),u(n,R.componentTypes.multiDropdownList,R.queryTypes.term),u(n,R.componentTypes.tagCloud,R.queryTypes.term),u(n,R.componentTypes.toggleButton,R.queryTypes.term),u(n,R.componentTypes.reactiveChart,R.queryTypes.term),u(n,R.componentTypes.treeList,R.queryTypes.term),u(n,R.componentTypes.numberBox,R.queryTypes.term),u(n,R.componentTypes.datePicker,R.queryTypes.range),u(n,R.componentTypes.dateRange,R.queryTypes.range),u(n,R.componentTypes.dynamicRangeSlider,R.queryTypes.range),u(n,R.componentTypes.singleDropdownRange,R.queryTypes.range),u(n,R.componentTypes.multiDropdownRange,R.queryTypes.range),u(n,R.componentTypes.singleRange,R.queryTypes.range),u(n,R.componentTypes.multiRange,R.queryTypes.range),u(n,R.componentTypes.rangeSlider,R.queryTypes.range),u(n,R.componentTypes.ratingsFilter,R.queryTypes.range),u(n,R.componentTypes.rangeInput,R.queryTypes.range),u(n,R.componentTypes.geoDistanceDropdown,R.queryTypes.geo),u(n,R.componentTypes.geoDistanceSlider,R.queryTypes.geo),u(n,R.componentTypes.reactiveMap,R.queryTypes.geo),n),c=[R.componentTypes.multiRange,R.componentTypes.multiDropdownRange],p=[R.componentTypes.dateRange,R.componentTypes.datePicker],d=[R.componentTypes.categorySearch,R.componentTypes.dataSearch,R.componentTypes.searchBox],h=[R.componentTypes.singleList,R.componentTypes.multiList,R.componentTypes.singleDropdownList,R.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},O=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===R.componentTypes.multiDataList||e===R.componentTypes.singleDataList||e===R.componentTypes.tabDataList},C=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];if(!b(t.componentType)&&!t.dataField)return null;var i=void 0;return t.endpoint instanceof Object&&(i=t.endpoint),r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===R.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig,indexSuggestionsConfig:t.indexSuggestionsConfig,enableFeaturedSuggestions:t.enableFeaturedSuggestions,enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:i})}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},$=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var s=a.type?a.type:l[a.componentType],u=e.selectedValues[t]||e.internalValues[t],d=null!=u?u.value:void 0,h=a.queryFormat,f=void 0,g=a.interval,w=s,$=a.dataField,_=a.aggregations,k=void 0,P=a.from;if(s===R.queryTypes.term)if(a.showLoadMore&&C(a.componentType)&&(k=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var E=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?E.push(e.value):E.push(e)})),d=E}if(s===R.queryTypes.range){if(Array.isArray(d))d=c.includes(a.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(a.showHistogram){var T=m(t),I=e.internalValues[T];if(!I){var A=y(t);I=e.internalValues[A]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]},g=S(g,d))}v(t)?_=["min","max"]:a.showHistogram&&(_=["histogram"]),a.componentType!==R.componentTypes.dynamicRangeSlider&&a.componentType!==R.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,be.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,be.formatDate)(new o.default(d.start),a),end:(0,be.formatDate)(new o.default(d.end),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)})),p.includes(a.componentType)&&(h="or",d&&("string"==typeof d?d={start:(0,be.formatDate)(new o.default(d).addHours(-24),a),end:(0,be.formatDate)(new o.default(d),a)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,be.formatDate)(new o.default(e).addHours(-24),a),end:(0,be.formatDate)(new o.default(e),a)}})))))}if(s===R.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},a.unit&&(d.unit=a.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===R.componentTypes.numberBox&&("exact"===h?w="term":(w="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===R.componentTypes.reactiveComponent&&(w="term",$="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),O(a.componentType)){var L=a.data,j=[];d&&Array.isArray(d)?j=d:d&&"string"==typeof d&&(j=[d]);var M=[];j.length&&L&&Array.isArray(L)&&j.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),d=M.length?M:void 0}a.componentType===R.componentTypes.reactiveList&&(d>0&&(P=(d-1)*(a.size||10)),d=void 0);var Q=d||void 0;a.componentType===R.componentTypes.searchBox&&Array.isArray(Q)&&(Q=void 0);var V=void 0;return e.config&&e.config.endpoint instanceof Object&&(V=e.config.endpoint),a.endpoint instanceof Object&&(V=r({},V||{},a.endpoint)),r({},a,{endpoint:V,calendarInterval:f,dataField:$,queryFormat:h,type:w,aggregations:_,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:Q,pagination:k,from:P},n)};function _(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(s(n),[t[r]]):Array.isArray(t[r])?n=[].concat(s(n),s(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=_(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,a=e.customQueries[i];if(!g(i)){var s=e.selectedValues[i]||e.internalValues[i];if((s||a)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=e.props[i],c=w(i,$(e,i,r({},l&&l.componentType===R.componentTypes.searchBox?r({},!1===u?{type:R.queryTypes.search}:{},s.category?{categoryValue:s.category}:{},s.value?{value:s.value}:{}):{})),u);c&&(o[i]=c)}}})),o}}));r(Re);var xe=Re.getDependentQueries,Le=Re.extractPropsFromState,je=(Re.getValidInterval,Re.getRSQuery),Me=(Re.hasPaginationSupport,Re.isComponentUsesLabelAsValue,Re.isSearchComponent),Qe=(Re.isDRSRangeComponent,Re.getHistogramComponentID,Re.getInternalComponentID),Ve=Re.isInternalComponent,De=(Re.getNormalizedField,Re.componentToTypeMap,Re.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:C.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},i=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},a=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},s=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){i(a,e)&&(l[e]&&l[e].onError&&l[e].onError(o),s((0,Ie.setError)(e,o)),s((0,Ie.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,u=void 0===a?[]:a,l=e.appendToHits,c=void 0!==l&&l,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,g=e.query,m=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),O=b.config,C=b.internalValues,w=b.lastUsedAppbaseQuery,S=t._headers?t._headers.get("X-Search-Id"):null;S&&v(f?(0,Ie.setSuggestionsSearchId)(S):(0,Ie.setSearchId)(S)),u.forEach((function(e){if(i(y,e)){if(w[e]&&w[e].queryId&&m&&w[e].queryId!==m)return;t.settings&&v((0,Ie.setAppliedSettings)(t.settings,e)),o(t[e],O,e).then((function(o){if(o){var i=y(),a=i.timestamp,s=i.props;if(void 0===a[e]||a[e]<t._timestamp){var u=o.promoted;if(u){var l=u.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,Ie.setPromotedResults)(l,e))}else v((0,Ie.setPromotedResults)([],e));if(v((0,Ie.setRawData)(e,o)),v((0,Ie.setCustomData)(o.customData,e)),o.hits){v((0,Ie.setTimestamp)(e,t._timestamp)),s[e].componentType===R.componentTypes.reactiveList&&g.find((function(t){return t.id===e})).execute&&v((0,Ie.setLastUsedAppbaseQuery)(r({},e,g))),v((0,Te.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var p=(0,Re.getInternalComponentID)(e);C[p]&&v((0,Te.saveQueryToHits)(e,C[p].value))}o.aggregations&&(v((0,Te.updateAggs)(e,o.aggregations,d)),v((0,Te.updateCompositeAggs)(e,o.aggregations,d)))}v((0,Ie.setLoading)(e,!1))}})).catch((function(e){s({orderOfQueries:u,error:e},y,v)}))}}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,r=e.isSuggestionsQuery,a=void 0!==r&&r,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,p=void 0!==c&&c,d=e.appendToAggs,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(i(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&g(a?(0,Ie.setSuggestionsSearchId)(r):(0,Ie.setSearchId)(r));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,m=c.internalValues;o(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,Ie.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,Ie.setPromotedResults)(o,e):(0,Ie.setPromotedResults)([],e)),t.hits){g((0,Ie.setTimestamp)(e,n._timestamp)),g((0,Te.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var i=(0,Re.getInternalComponentID)(e);m[i]&&g((0,Te.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,Te.updateAggs)(e,t.aggregations,h)),g((0,Te.updateCompositeAggs)(e,t.aggregations,h)))}g((0,Ie.setLoading)(e,!1))})).catch((function(e){s({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],i=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:i,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:i,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:i,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:i,type:"phrase_prefix"}}]}}}}]}})));r(De);De.getSuggestionQuery;var Fe=De.isPropertyDefined,Ne=(De.handleResponseMSearch,De.handleResponse,De.handleError,De.getQuerySuggestionsId,De.isComponentActive,De.handleTransformResponse,De.executeQueryListener,De.updateStoreConfig,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,i,a,s,u,l){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,g=d.watchMan,m=d.props,y=l;(0,be.isEqual)(h[e],t)&&(y="URL");var v={},b=[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(m[e]&&m[e].componentType),O=f[e]&&f[e].value;if(!(0,be.isEqual)(O,t)&&m[e]&&!b){var w=[e],S=g[e]||[];(w=[].concat(r(w),r(S))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!O||O<2)||c({type:C.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:a,category:s,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,a=o.props,s={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter,R.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[R.componentTypes.multiDropdownList,R.componentTypes.multiDataList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.dataSearch,R.componentTypes.datePicker,R.componentTypes.treeList].includes(a[t].componentType)?u=a[t].defaultValue:[R.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,be.isEqual)(i[t].value,u)||(s=n({},s,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},i[t],{value:u})))))})),t({type:C.RESET_TO_DEFAULT,defaultValues:s})}},t.setInternalValue=function(e,t,n,r,o){return{type:C.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:C.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:C.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,De.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:C.SET_VALUES,componentsValues:e})}}})));r(Ne);Ne.setValue,Ne.resetValuesToDefault,Ne.setInternalValue,Ne.patchValue,Ne.clearValues;var Ue=Ne.setValues,qe=o((function(e,t){function n(e,t,n){return{type:C.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(s){if(s(n(e,t,r)),s((0,Ne.setInternalValue)((0,Re.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){s((0,We.executeQuery)(e,!1,!0,R.componentTypes.reactiveMap,{},a))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:C.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));r(qe);qe.updateMapData,qe.setMapData,qe.setMapResults;var Be=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new C(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=C),t.Headers=d,t.Request=b,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})),ze=r(Be),He=(Be.fetch,Be.Headers,Be.Request,Be.Response,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=Be)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,i=e.credentials,a=e.app,s=e.query,u=e.headers,l=i?n.replace("//","//"+i+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+a+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(s.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}}))),Ge=r(He),We=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.loadPopularSuggestions=u,t.executeQuery=h,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,Ie.updateQueryOptions)(e,t)),n&&r(h(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,d=e.category,f=void 0===d?null:d,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Ne.setInternalValue)(t,r,p,f,m)):(e((0,Ne.setValue)(t,r,i,s,l,p,f,m)),v&&(p===R.componentTypes.dynamicRangeSlider?e((0,Ne.setInternalValue)((0,Re.getHistogramComponentID)(t),r,p,f,m)):e((0,Ne.setInternalValue)(t+"__internal",r,p,f,m)))),e((0,Ie.setQuery)(t,o)),y&&e(h(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),l=(0,be.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),d=l.queryObj,h=l.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!d||d&&!Object.keys(d).length)&&(d={match_all:{}});var g=n({query:n({},d)},h);if(!(0,be.compareQueries)(f[e],g))if(i((0,Ie.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;Re.componentToTypeMap[y.componentType]===R.queryTypes.term&&(v=y.dataField);var b=(0,Re.getRSQuery)(e,(0,Re.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,Re.getDependentQueries)(s(),e,[])),i(p({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,u){var l=u(),c=l.appbaseRef,p=l.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){if(e.id===t){var i=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete i.from,i}return e}));return o&&Array.isArray(i)&&o<=i.length?i:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?a(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(s(i),s(r)))):i})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=i(M),o=i(He);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,Ie.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,De.getSuggestionQuery)(n,e);i.getQuerySuggestions(d).then((function(n){var r=n[(0,De.getQuerySuggestionsId)(e)];t(p?(0,Ie.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,Ie.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,De.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}var l=function(e,t){if(e&&"function"==typeof e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(t)};function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(c,p){var d=p(),h=d.appbaseRef,f=d.config,g=d.headers,m=d.analytics,y=d.selectedValues,v={},b=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],O=a&&-1!==b.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&O){var C=m.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!C)&&(v={"X-Search-Query":C||""})}else{var w=m.searchValue,S=m.searchId,$=(0,r.default)(y);if(S)v=n({"X-Search-Id":S,"X-Search-Query":w||""},$&&{"X-Search-Filters":$});else{var _=!(!f.analyticsConfig.emptyQuery&&!w);v=n(_&&{"X-Search-Query":w||""},$&&{"X-Search-Filters":$})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,M.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,Ie.setLoading)(e,!0)),c((0,Ie.setError)(e,null))})),f.graphQLUrl){var k={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:g};l(h.transformRequest,k).then((function(e){(0,o.default)(e).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},g,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,i=e.appendToHits,a=void 0!==i&&i,s=e.isSuggestionsQuery,l=void 0!==s&&s,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,i){var s=i(),p=s.appbaseRef,h=s.config,f=s.headers,g=!1;h&&((0,De.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,De.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,De.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var m={recordAnalytics:g};h.analyticsConfig&&(m.userId=(0,De.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,m.enableQueryRules=(0,De.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,m.customEvents=(0,De.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0,m.emptyQuery=(0,De.isPropertyDefined)(h.analyticsConfig.emptyQuery)?h.analyticsConfig.emptyQuery:void 0,m.enableSearchRelevancy=(0,De.isPropertyDefined)(h.analyticsConfig.enableSearchRelevancy)?h.analyticsConfig.enableSearchRelevancy:void 0,m.suggestionAnalytics=(0,De.isPropertyDefined)(h.analyticsConfig.suggestionAnalytics)?h.analyticsConfig.suggestionAnalytics:void 0,m.useCache=(0,De.isPropertyDefined)(h.analyticsConfig.useCache)?h.analyticsConfig.useCache:void 0),o.forEach((function(t){e((0,Ie.setLoading)(t,!0)),e((0,Ie.setError)(t,null))})),p.setHeaders(n({},f)),l&&c&&e(u(c)),p.reactiveSearchv3(r,m).then((function(n){(0,De.handleResponse)({res:n,orderOfQueries:o,appendToHits:a,appendToAggs:d,query:r,queryId:t},i,e)})).catch((function(n){(0,De.handleError)({orderOfQueries:o,error:n,queryId:t},i,e)}))}}var d=[];function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4],u=arguments[5];return function(l,h){var f=h(),g=f.queryLog,m=f.config,y=f.mapData,v=f.watchMan,b=f.dependencyTree,O=f.queryList,C=f.queryOptions,w=f.queryListener,S=f.props,$=f.internalValues,_=f.lock,k=m.initialQueriesSyncTime,P=m.initialTimestamp,E=u||(new Date).getTime();m.queryLockConfig instanceof Object&&(k=m.queryLockConfig.lockTime,P=m.queryLockConfig.initialTimestamp);var T=[e],I=[],A={},x=[],L=m&&m.enableAppbase;if(t){var j=v[e]||[];T=[].concat(s(T),s(j))}var M={match_all:{}};if(T.forEach((function(t){var o=(0,be.buildQuery)(t,b,O,C),u=o.queryObj,c=o.options,p=["aggs","from","sort"];if(u&&Object.keys(u).length||c&&Object.keys(c).some((function(e){return p.includes(e)}))){(!u||u&&!Object.keys(u).length)&&(u=n({},M));var d=n({query:n({},u)},c,C[t]),f=n({query:n({},u)},c,C[t]),v=g[t];if(r||!(0,be.compareQueries)(d,v,!1)){x=[].concat(s(x),[t]);var _=Object.keys(y).includes(t);if(_&&l((0,Ie.setLastUsedAppbaseQuery)(a({},t,{queryId:E}))),l((0,Ie.logQuery)(t,f)),_&&y[t].query){var k=d.query;d.query={bool:{must:[k,y[t].query]}},y[t].persistMapQuery||l((0,qe.updateMapData)(e,null,!1));var P=h().combinedLog;if((0,be.compareQueries)(P[t],d))return;l((0,Ie.logCombinedQuery)(t,d))}if((0,De.executeQueryListener)(w[t],v,d),L){var T=void 0,R=e.endsWith("__internal"),j=S[e];R&&j&&(0,Re.isSearchComponent)(j.componentType)&&(T=$[e]&&$[e].value);var Q=(0,Re.getRSQuery)(t,(0,Re.extractPropsFromState)(h(),t,n({},T?{value:T}:null,i?{from:i.from}:null)));if(Q&&(A=n({},A,a({},t,Q),(0,Re.getDependentQueries)(h(),t,x))),_){var V=(0,Re.getInternalComponentID)(t),D=(0,Re.getRSQuery)(V,(0,Re.extractPropsFromState)(h(),V,i?{from:i.from}:null));D&&(A[V]=n({},D,{execute:!1}))}}else{var F=m&&m.analyticsConfig&&m.analyticsConfig.userId?m.analyticsConfig.userId+"_"+t:t;I=[].concat(s(I),[{preference:F},d])}}}})),L&&(I=Object.keys(A).map((function(e){return A[e]}))),I.length)if(L){var Q=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],V=e.endsWith("__internal")&&-1!==Q.indexOf(o);(new Date).getTime()-P<k?(_&&!m.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},i={},a={};d.forEach((function(u){t||(t=u.isSuggestionsQuery),r||(r=u.searchComponentID),Array.isArray(u.query)&&u.query.forEach((function(e){e.execute&&(a[e.id]=e.execute);var t=e;if(a[e.id]&&(t.execute=!0),i[e.id]&&i[e.id].type===R.queryTypes.suggestion&&t.type!==R.queryTypes.suggestion)return i[e.id+"__suggestion_type"]=n({},i[e.id]),void(i[e.id]=n({},t,{execute:!1}));i[e.id]=t})),Array.isArray(u.orderOfQueries)&&u.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(s(e))}))}));var u=Object.values(i);u.length&&l(p({query:u,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),d=[],l((0,De.updateStoreConfig)({queryLockConfig:void 0}))}),k),l((0,De.updateStoreConfig)({lock:!0})),d.push({query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e})):l(p({queryId:E,query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e}))}else l(c(I,x,!1,e.endsWith("__internal"),void 0,o))}}}));r(We);We.loadPopularSuggestions,We.executeQuery,We.setQueryOptions,We.updateQuery,We.loadMore,We.loadDataToExport;var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:C.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:C.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:C.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,We.executeQuery)(e))}}}));r(Ze);Ze.addComponent,Ze.removeComponent,Ze.watchComponent;var Ke=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:C.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:C.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:C.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){R.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(Ke);Ke.setComponentProps,Ke.updateComponentProps,Ke.removeComponentProps;var Ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:C.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:C.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:C.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,p=i.app,d=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),d?t({type:C.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:C.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:C.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,p=u.credentials,d=(c+"://"+l).replace(/\/+$/,"");!d.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(d+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(p)})})}}}));r(Ye);Ye.setSuggestionsSearchValue,Ye.clearSuggestionsSearchValue;var Xe=Ye.updateAnalyticsConfig,Je=(Ye.getRecentSearches,Ye.recordResultClick,Ye.recordSuggestionClick,Ye.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}})})),Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}})})),Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}})})),Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}})})),Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}})})),Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}})})),Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}})})),Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}})}))})));if(r(Je),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var et=Object.freeze({__proto__:null}),tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(tt);var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{lock:!1,analyticsConfig:e.config&&e.config.analyticsConfig?n({},M.defaultAnalyticsConfig,e.config.analyticsConfig):M.defaultAnalyticsConfig})});return(0,v.createStore)(o.default,t,k)};var r=y(O),o=y(fe),i=m(Je),a=m(be),s=y(ye),u=y(R),l=y(et),c=y(tt),p=y(U),d=y(P),h=y(I),f=y(_),g=y(ne);function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var b=C.STORE_KEY,w=s.default,S=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=S,t.suggestions=w,t.Actions=i,t.storeKey=b,t.polyfills=l.default,t.Reducers=$,t.constants=u.default;var k=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):v.compose)((0,v.applyMiddleware)(r.default))})),rt=r(nt),ot=(nt.constants,nt.Reducers,nt.polyfills,nt.storeKey,nt.Actions),it=(nt.suggestions,nt.causes),at=nt.helper;function st(){
|
|
7
7
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
8
8
|
st=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function p(){}function d(){}function h(){}var f={};s(f,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g($([])));m&&m!==t&&n.call(m,o)&&(f=m);var y=h.prototype=p.prototype=Object.create(f);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function $(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(b.prototype),s(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(y),s(y,a,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=$,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:$(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function ut(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(){return(ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dt(e,t)}function dt(e,t){return(dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ht(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ft(e,t){return t||(t=e.slice(0)),e.raw=t,e}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
9
9
|
/*!
|
|
@@ -35,7 +35,7 @@ function vt(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
|
|
|
35
35
|
*
|
|
36
36
|
* https://github.com/Astray-git/vue-highlight-words
|
|
37
37
|
*
|
|
38
|
-
*/function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ys,vs,bs={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,O=r.searchWords,C=r.textToHighlight,w=r.unhighlightClassName,S=void 0===w?"":w,$=r.unhighlightStyle,_=t.data,k=gs({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:O,textToHighlight:C}),P=v,E=-1,T="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ms(e,t,n[t])}))}return e}({},_),k.map((function(t,r){var o=C.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+s;T="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:T,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),_.scopedSlots?e(P,l,[_.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:S,key:r,style:$},o)})))}},Os={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Cs=on("span")(ys||(ys=ft(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ws={name:"SuggestionItem",props:{currentValue:Jn.string,suggestion:Jn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!s&&!u?e(bs,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:Os}}):e(Cs,{domProps:{innerHTML:n}})]):n:o||a||i?e(Lo,{attrs:{alignItems:"center",css:{width:"100%"}}},[a&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Lo,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:Os},class:Jt({fontSize:"1rem"})})]),i&&e("div",{class:Kt("trim",Jt({marginTop:3}))},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:Os}})])])]):r}},Ss={name:"SearchSvg",props:["styles"],render:function(){var e=arguments[0];return e("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:ct({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[e("title",["Search"]),e("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}},$s={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};Xt(vs||(vs=ft(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var _s,ks={name:"MicSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}};Xt(_s||(_s=ft(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var Ps,Es={name:"MuteSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className}},[e("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_gMpyalCphp"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};Xt(Ps||(Ps=ft(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var Ts,Is,As,Rs={name:"ListenSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("defs",[e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),e("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_UYYCfubTRf"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),e("g",{attrs:{id:"el_6SDP2LAgKC"}},[e("mask",{attrs:{id:"mask-2",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-1"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),e("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),e("g",{attrs:{id:"el_6WKby7wXqV"}},[e("mask",{attrs:{id:"mask-4",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-3"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),e("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),e("g",{attrs:{id:"el_Wi-my975tM"}},[e("mask",{attrs:{id:"mask-6",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-5"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),e("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),e("g",{attrs:{id:"el_DkfFFTaFxy8"}},[e("mask",{attrs:{id:"mask-8",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-7"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),e("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),e("g",{attrs:{id:"el_34IgwiMB5rf"}},[e("mask",{attrs:{id:"mask-10",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-9"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),e("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),e("g",{attrs:{id:"el_DeebuCsPTGA"}},[e("mask",{attrs:{id:"mask-12",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-11"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),e("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),e("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[e("mask",{attrs:{id:"mask-14",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-13"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),e("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),e("g",{attrs:{id:"el_2FATegVmf0K"}},[e("mask",{attrs:{id:"mask-16",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-15"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),e("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}},xs="INACTIVE",Ls="STOPPED",js="ACTIVE",Ms="DENIED",Qs={name:"Mic",props:{children:Jn.title,lang:jt.string.def("en-US"),iconPosition:jt.string.def("left"),handleResult:Jn.func,onNoMatch:Jn.func,onError:Jn.func,getInstance:Jn.func,render:Jn.func,className:Jn.string,applyClearStyle:jt.bool,showIcon:jt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return vr(t,this)},stopMic:function(){this.instance&&(this.status=xs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===js&&(this.status=xs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==Ms)return this.status=xs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=js},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=xs:"not-allowed"===t.error&&(e.status=Ms),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=xs},this.instance.onaudioend=function(){e.status=xs}}}},computed:{hasCustomRenderer:function(){return br(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case js:return e(Rs,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ls:case Ms:return e(Es,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(ks,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:xs}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=arguments[0];return this.hasCustomRenderer?this.getComponent():e(rs,[this.Icon])}},Vs={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):"promoted-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24"},class:this.$props.className,style:{fill:"#707070"}},[e("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"}})]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})]):e(Ss,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},Ds=on("div")(Ts||(Ts=ft(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Fs=on("span")(Is||(Is=ft(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),Ns=ot.updateQuery,Us=ot.setQueryOptions,qs=ot.setCustomQuery,Bs=ot.setDefaultQuery,zs=ot.setCustomHighlightOptions,Hs=ot.recordSuggestionClick,Gs=ot.loadPopularSuggestions,Ws=ot.getRecentSearches,Zs=ot.resetStoreForComponent,Ks=at.debounce,Ys=at.checkValueChange,Xs=at.getClassName,Js=at.extractQueryFromCustomQuery,eu=at.getOptionsForCustomQuery,tu=at.isEqual,nu=at.getCompositeAggsQuery,ru=at.withClickIds,ou=at.getResultStats,iu=at.handleOnSuggestions,au=at.getTopSuggestions,su=at.normalizeDataField,uu={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ks(this.handleText,this.$props.debounce),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),ru(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return au(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return ct({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return ct({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return au(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return br(this)},stats:function(){return ou(this)}},props:{options:Jn.options,autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSearches:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderQuerySuggestions:Jn.func,renderPopularSuggestions:Jn.func,parseSuggestion:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,enableDefaultSuggestions:jt.bool.def(!0),mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,endpoint:Jn.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){tu(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){tu(e,t)||(this.$options.isTagsMode?tu(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=uu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},updateQueryOptions:function(){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):vr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=nu({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return iu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ys(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!tu(e,i.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);if(i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e)i.selectedTags.push(e);else if(Array.isArray(e)&&!tu(i.selectedTags,e)){var a=Array.from(new Set([].concat(i.selectedTags,e)));i.selectedTags=a}}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=e;var s=e;i.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(s=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof e&&i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.updateQueryHandler(n.componentId,s,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,s,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=uu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Js(o);i&&(r=i),n=eu(o),wr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,ct({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:x.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=uu.defaultQuery(t,n);if(o){var l=o(t,n),c=Js(l);c&&(u=c),r=eu(l),Sr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,ct({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:Xs(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:Xs(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Xs(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,s=this.$scopedSlots,u=s.recentSearchesIcon,l=s.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Xs(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,s=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Ja(e.themePreset,r)+" "+Xs(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),_r(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:Xs(e.$props.innerClass,"input"),on:ct({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},s({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:Xs(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=su(t.dataField,t.fieldWeights);n={bool:{should:uu.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:ct({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},lu=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Us,updateQuery:Ns,setCustomQuery:qs,setDefaultQuery:Bs,setCustomHighlightOptions:zs,recordSuggestionClick:Hs,loadPopularSuggestions:Gs,getRecentSearches:Ws,resetStoreForComponent:Zs})(uu),{componentType:x.dataSearch,internalComponent:uu.hasInternalComponent()});uu.install=function(e){e.component(uu.name,lu)},uu.componentType=x.dataSearch;var cu,pu,du,hu,fu,gu,mu=on("button")(As||(As=ft(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),yu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(mu,{on:{click:this.$listeners.click}},[e("svg",{attrs:{viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"}})])])},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},vu=ot.updateQuery,bu=ot.setCustomQuery,Ou=ot.setDefaultQuery,Cu=ot.recordSuggestionClick,wu=at.debounce,Su=at.checkValueChange,$u=at.getClassName,_u=at.isEqual,ku=at.getCompositeAggsQuery,Pu=at.withClickIds,Eu=at.getResultStats,Tu=at.normalizeDataField,Iu={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=Rr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=wu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return br(this)},stats:function(){return Eu(this)}},props:{autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSuggestions:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,popularSuggestionsConfig:jt.object,recentSuggestionsConfig:jt.object,applyStopwords:jt.bool,customStopwords:Jn.stringArray,onData:Jn.func,renderItem:Jn.func,enterButton:jt.bool.def(!1),renderEnterButton:jt.any,mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,searchboxId:jt.string,endpoint:Jn.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){_u(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){_u(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(Pu(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(Pu(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!_u(e,t)&&(this.$options.isTagsMode?!_u(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){_u(e,t)||(this.handleTextChange=wu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=Iu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return vr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=ku({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);Su(n.componentId,e,n.beforeValueChange,(function(){if(!a.$options.isTagsMode||!_u(e,a.selectedTags)){if(a.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);if(a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e)a.selectedTags.push(e);else if(Array.isArray(e)&&!_u(a.selectedTags,e)){var s=Array.from(new Set([].concat(a.selectedTags,e)));a.selectedTags=s}}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=Rr(e);var u=e;a.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof a.currentValue&&a.triggerDefaultQuery(a.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i):a.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i)):a.handleTextChange(e,r),a.$emit("valueChange",e),a.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=Iu.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),wr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:x.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,a=n.URLParams,s="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(s=e);var u=Iu.defaultQuery(s+(t?" in "+t:""),this.$props);if(r){var l=r(s,this.$props).query;l&&(u=l),Sr(this.$props.componentId,this.setCustomQuery,this.$props,s)}this.updateQuery({componentId:this.$props.componentId,query:u,value:s,label:o,showFilter:i,URLParams:a,componentType:x.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,a=void 0===i||i,s=e.value,u=void 0===s?void 0:s,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),a&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?it.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(ct({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Kn,{class:"enter-btn "+$u(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:$u(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Rr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(yu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:$u(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:$u(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:$u(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case Ce.Recent:return a;case Ce.Popular:return s;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Ja(e.themePreset,r)+" "+$u(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:ct({},p({item:r})),on:ct({},d({item:r})),key:o+1+"-"+r.value,style:{backgroundColor:e.getBackgroundColor(f,o),justifyContent:"flex-start",alignItems:"center"}},l?[l(r)]:[t("div",{style:{padding:"0 10px 0 0",display:"flex"}},[t(Vs,{attrs:{className:$u(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:$u(e.$props.innerClass,"input"),on:ct({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:$u(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:this.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=Tu(t.dataField,t.fieldWeights);return(n={bool:{should:Iu.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},Au=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:vu,setCustomQuery:bu,setDefaultQuery:Ou,recordSuggestionClick:Cu})(Iu),{componentType:x.searchBox,internalComponent:!0});Iu.install=function(e){e.component(Iu.name,Au)},Iu.componentType=x.searchBox;var Ru="15px",xu="15px",Lu="4px",ju=Jt(cu||(cu=ft(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"]))),Mu=Jt(pu||(pu=ft(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"]))),Qu=function(e){var t=e.theme;return Jt(du||(du=ft(["\n\t",";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ",";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ",";\n\t\t\tmargin-right: calc("," * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ",";\n\t\t\theight: ",";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ",";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 2);\n\t\t\twidth: calc("," - ",");\n\t\t\theight: calc("," - ",");\n\t\t\tmargin-top: calc("," / -2 - "," / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])),ju,qn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||qn(.1,t.colors.textColor),t.colors.primaryColor,Ru,Ru,xu,t.colors.primaryColor,Lu,Ru,Lu,xu,Lu,xu,Lu)},Vu=on("input")(hu||(hu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Du=on("input")(fu||(fu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),Ru,Ru,Ru,xu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Fu=on("ul")(gu||(gu=ft(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),Nu=at.getAggsOrder,Uu=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:ct({field:o,size:i,order:Nu(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),ct({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},qu=ot.updateQuery,Bu=ot.setQueryOptions,zu=ot.setCustomQuery,Hu=ot.setDefaultQuery,Gu=at.getQueryOptions,Wu=at.checkValueChange,Zu=at.getClassName,Ku=at.isEqual,Yu=at.extractQueryFromCustomQuery,Xu=at.getOptionsForCustomQuery,Ju={name:"SingleList",props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,enableStrictSelection:jt.bool.def(!1),endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ku(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:Zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Vu,{class:Zu(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:ct({},{checked:this.$data.currentValue===r})}),t("label",{class:Zu(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Vu,{class:Zu(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:ct({},{checked:e.currentValue===String(n.key)})}),t("label",{class:Zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:Zu(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");Wu(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=Ju.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Yu(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Xu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ju.defaultQuery(e,t);if(n){var o=n(e,t);r=Yu(o);var i=Xu(o);Sr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleList})},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=Ju.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Xu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:Zu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},handleClick:function(e){var t=e;return Cr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Zu(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},defaultQuery:function(e,t){var n,r=null;(t.selectAllLabel&&t.selectAllLabel===e&&(t.showMissing&&(r={match_all:{}}),r={exists:{field:t.dataField}}),e)&&(r={term:(n={},n[t.dataField]=e,n)},t.showMissing&&t.missingLabel===e&&(r={bool:{must_not:{exists:{field:t.dataField}}}}));return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},hasInternalComponent:function(){return!0}},el=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Bu,updateQuery:qu,setCustomQuery:zu,setDefaultQuery:Hu})(Ju),{componentType:x.singleList,internalComponent:Ju.hasInternalComponent()});Ju.install=function(e){e.component(Ju.name,el)},Ju.componentType=x.singleList;var tl=ot.updateQuery,nl=ot.setQueryOptions,rl=ot.setCustomQuery,ol=ot.setDefaultQuery,il=at.isEqual,al=at.getQueryOptions,sl=at.checkValueChange,ul=at.getClassName,ll=at.extractQueryFromCustomQuery,cl=at.getOptionsForCustomQuery,pl={name:"MultiList",props:{defaultValue:Jn.stringArray,value:Jn.stringArray,queryFormat:jt.oneOf(["and","or"]).def("or"),showCheckbox:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||il(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){il(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){il(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),il(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm).toLowerCase()))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:ul(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:ul(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:ul(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:ct({},{checked:!!this.currentValue[r]})}),t("label",{class:ul(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Du,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:ul(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:ct({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:ul(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:ul(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}sl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=pl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ll(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=cl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=pl.defaultQuery(e,t);if(n){var o=n(e,t);r=ll(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=cl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiList})},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=pl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=cl(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:ul(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},handleClick:function(e){var t=e;Cr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=yr(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:ul(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)}},dl={setQueryOptions:nl,updateQuery:tl,setCustomQuery:rl,setDefaultQuery:ol};pl.hasInternalComponent=function(){return!0};var hl,fl,gl,ml,yl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),dl)(pl),{componentType:x.multiList,internalComponent:pl.hasInternalComponent()});pl.install=function(e){e.component(pl.name,yl)},pl.componentType=x.multiList;var vl,bl,Ol=Jt(hl||(hl=ft(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"]))),Cl=function(e){var t=e.theme;return Jt(fl||(fl=ft(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},wl=on("button")(gl||(gl=ft(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?Ol:null}),(function(e){return"dark"===e.themePreset&&Cl})),Sl=on("span")(ml||(ml=ft(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),$l=Jt(vl||(vl=ft(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),_l=on("span")(bl||(bl=ft(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?$l:null})),kl=at.getClassName,Pl={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Jn.style,items:Jn.data,keyField:jt.string.def("key"),labelField:jt.string.def("label"),multi:jt.bool,placeholder:Jn.string,returnsObject:jt.bool,customLabelRenderer:Jn.func,hasCustomRenderer:jt.bool,customRenderer:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,handleChange:Jn.func,transformData:Jn.func,selectedItem:Jn.selectedValue,showCount:jt.bool,single:jt.bool,small:jt.bool.def(!1),themePreset:Jn.themePreset,showSearch:jt.bool,showClear:jt.bool,searchPlaceholder:jt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t[a])).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(cs,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,O=n.getInputEvents;return t("div",{class:es},[t(wl,{on:ct({},ct({},v({onClick:e.toggle}))),class:kl(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):i]),t(_l,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ja(u,e.theme)+" "+(e.$props.small?"small":"")+" "+kl(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:O({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:ct({},r({item:n})),on:ct({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:kl(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Sl,{class:kl(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),p]):null])}}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:kl(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,a=n.themePreset,s=n.innerClass,u=t(Xa,oo([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:kl(s,"input")},e]));return i?t(Ua,[u,this.searchTerm&&t(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(rs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t($s)])])]):u}}},El=ot.updateQuery,Tl=ot.setQueryOptions,Il=ot.setCustomQuery,Al=ot.setDefaultQuery,Rl=at.getQueryOptions,xl=at.checkValueChange,Ll=at.checkPropChange,jl=at.getClassName,Ml=at.isEqual,Ql=at.getCompositeAggsQuery,Vl=at.extractQueryFromCustomQuery,Dl=at.getOptionsForCustomQuery,Fl={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select a value"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&Ll(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ml(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?mr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:jl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&mr(d)?e("div",[d()]):d&&!mr(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);xl(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=Fl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Vl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Dl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Fl.defaultQuery(e,t);if(n){var o=n(e,t);r=Vl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Dl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleDropdownList})},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Fl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Dl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null;if(t.selectAllLabel&&t.selectAllLabel===e)t.showMissing&&(n={match_all:{}}),n={exists:{field:t.dataField}};else if(e){var r;t.showMissing&&t.missingLabel===e&&(n={bool:{must_not:{exists:{field:t.dataField}}}}),n={term:(r={},r[t.dataField]=e,r)}}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},Nl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Tl,updateQuery:El,setCustomQuery:Il,setDefaultQuery:Al})(Fl),{componentType:x.singleDropdownList,internalComponent:Fl.hasInternalComponent()});Fl.install=function(e){e.component(Fl.name,Nl)},Fl.componentType=x.singleDropdownList;var Ul=ot.updateQuery,ql=ot.setQueryOptions,Bl=ot.setCustomQuery,zl=ot.setDefaultQuery,Hl=at.isEqual,Gl=at.getQueryOptions,Wl=at.checkValueChange,Zl=at.checkPropChange,Kl=at.getClassName,Yl=at.getCompositeAggsQuery,Xl=at.extractQueryFromCustomQuery,Jl=at.getOptionsForCustomQuery,ec={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select values"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),Hl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){Hl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?mr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&mr(p)?e("div",[p()]):p&&!mr(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=yr(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}Wl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=ct({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=ec.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Xl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Jl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=ec.defaultQuery(e,t);if(n){var o=n(e,t);r=Xl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Jl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiDropdownList})},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=ec.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Jl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},tc=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:ql,updateQuery:Ul,setCustomQuery:Bl,setDefaultQuery:zl})(ec),{componentType:x.multiDropdownList,internalComponent:ec.hasInternalComponent()});ec.install=function(e){e.component(ec.name,tc)},ec.componentType=x.multiDropdownList;var nc=ot.updateQuery,rc=ot.setQueryOptions,oc=ot.setCustomQuery,ic=at.isEqual,ac=at.checkValueChange,sc=at.getClassName,uc=at.getOptionsFromQuery,lc=at.handleA11yAction,cc={name:"ToggleButton",props:{componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.any,value:Jn.stringOrArray,filterLabel:Jn.string,nestedField:Jn.string,innerClass:Jn.style,multiSelect:jt.bool,react:Jn.react,showFilter:jt.bool,title:Jn.title,URLParams:jt.bool,renderItem:Jn.func,index:jt.string,enableStrictSelection:jt.bool,endpoint:Jn.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=cc.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(cc.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){ic(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ic(this.$data.currentValue,e)||ic(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ic(n,this.selectedValue)||ic(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?cc.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ac(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=cc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,uc(r(e,t)),!1),Sr(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ic(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$createElement,r=this.$scopedSlots.renderItem||this.renderItem,o=this.$data.currentValue.some((function(t){return t.value===e.value}));return r?r({item:e,isSelected:o,handleClick:function(){return t.handleClick(e)}}):n(Kn,{class:sc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return lc(n,(function(){return t.handleClick(e)}))}},key:e.value,attrs:{primary:o,large:!0,tabIndex:o?"-1":"0"}},[e.label])}},render:function(){var e=this,t=arguments[0];return t(ps,{class:Hn},[this.$props.title&&t(io,{class:sc(this.$props.innerClass,"title")},[this.$props.title]),this.$props.data.map((function(t){return e.renderButton(t)}))])},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){var n=null;return e&&e.length&&(n={bool:{boost:1,minimum_should_match:1,should:e.map((function(e){var n;return{term:(n={},n[t.dataField]=e.value,n)}}))}}),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n}},pc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:nc,setQueryOptions:rc,setCustomQuery:oc})(cc),{componentType:x.toggleButton});cc.install=function(e){e.component(cc.name,pc)},cc.componentType=x.toggleButton;var dc=["options"],hc=ot.updateQuery,fc=ot.setQueryOptions,gc=ot.setCustomQuery,mc=ot.setDefaultQuery,yc=at.parseHits,vc=at.isEqual,bc=at.getCompositeAggsQuery,Oc=at.getResultStats,Cc=at.extractQueryFromCustomQuery,wc=at.getOptionsForCustomQuery,Sc={name:"ReactiveComponent",props:{componentId:Jn.stringRequired,aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,defaultQuery:Jn.func,customQuery:Jn.func,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),URLParams:jt.bool.def(!1),distinctField:Jn.string,distinctFieldConfig:Jn.props,index:jt.string,endpoint:Jn.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),p=Cc(c),d=c?wc(c):null;d?this.setQueryOptions(r,ct({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=ht(n,dc),i=o.query;i&&i.query&&(i=i.query);var a=ct({},r,{query:i}),s=a;i&&i.id&&(s=i),e.setCustomQuery(t.componentId,s),r&&e.setQueryOptions(t.componentId,ct({},e.getAggsQuery(),r),!1),e.updateQuery(ct({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=Cc(this.$defaultQuery),f=wc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,ct({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){vc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){vc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){vc(e,t)||this.$emit("data",this.getData())},total:function(e,t){vc(e,t)||this.$emit("data",this.getData())},time:function(e,t){vc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=Cc(this.$defaultQuery),r=wc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,ct({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=Cc(this.$customQuery),o=wc(this.$customQuery);o?this.setQueryOptions(n,ct({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=ct({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:bc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=yc(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return Oc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},$c=Br(gr((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:fc,updateQuery:hc,setCustomQuery:gc,setDefaultQuery:mc})(Sc),{componentType:x.reactiveComponent});Sc.install=function(e){e.component(Sc.name,$c)},Sc.componentType=x.reactiveComponent;var _c=ot.setValue,kc=ot.clearValues,Pc=ot.resetValuesToDefault,Ec=at.getClassName,Tc=at.handleA11yAction,Ic={name:"SelectedFilters",props:{className:jt.string.def(""),clearAllLabel:jt.string.def("Clear All"),innerClass:Jn.style,showClearAll:jt.bool.def(!0),title:Jn.title,resetToDefault:jt.bool.def(!1),clearAllBlacklistComponents:jt.array,resetToValues:jt.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(ps,{class:Bn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(io,{class:Ec(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Kn,{class:Ec(this.$props.innerClass,"button")||"",on:ct({},{click:this.clearValues,keypress:function(t){return Tc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Kn,{class:Ec(this.$props.innerClass,"button")||"",key:t,on:ct({},{click:n,keypress:function(e){return Tc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,a=o.value,s=Array.isArray(a);if(i&&(s&&a.length||!s&&a)){var u=e.renderValue(a,s);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+Rr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ac=gr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:kc,setValue:_c,resetValuesToDefault:Pc})(Ic);Ic.install=function(e){e.component(Ic.name,Ac)};var Rc=ot.updateQuery,xc=ot.setQueryOptions,Lc=ot.setCustomQuery,jc=at.isEqual,Mc=at.checkValueChange,Qc=at.getClassName,Vc=at.getOptionsFromQuery,Dc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){jc(e,t)||this.setValue(e)},selectedValue:function(e){jc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Qc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Qc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Vu,{class:Qc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Qc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?Dc.parseValue(e,t):e;Mc(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Dc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Vc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},Fc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Rc,setQueryOptions:xc,setCustomQuery:Lc})(Dc),{componentType:x.singleRange});Dc.install=function(e){e.component(Dc.name,Fc)},Dc.componentType=x.singleRange;var Nc=ot.updateQuery,Uc=ot.setQueryOptions,qc=ot.setCustomQuery,Bc=at.isEqual,zc=at.checkValueChange,Hc=at.getClassName,Gc=at.getOptionsFromQuery,Wc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=yr(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Wc.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:ct({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],ht(u,[e].map(yt)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,p),a=ct({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};zc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Gc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){Bc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Bc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Hc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Hc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Du,{class:Hc(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:ct({},{checked:e.selectedValues[n.label]}),on:ct({},{click:e.handleClick})}),t("label",{class:Hc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},Zc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Nc,setQueryOptions:Uc,setCustomQuery:qc})(Wc),{componentType:x.multiRange});Wc.install=function(e){e.component(Wc.name,Zc)},Wc.componentType=x.multiRange;var Kc,Yc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(Yc.name,Yc)}},Xc=["src"],Jc={name:"ResultCardImage",props:{src:jt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ht(t,Xc);return e($o,oo([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Jc.name,Jc)}},ep={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(ep.name,ep)}},tp=["href","target"],np={name:"ResultCard",components:{ResultCardTitle:Yc,ResultCardImage:Jc,ResultCardDescription:ep},props:{target:jt.string.def("_blank"),href:Jn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ht(n,tp);return e(_o,oo([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(np.name,np),e.component(Yc.name,Yc),e.component(Jc.name,Jc),e.component(ep.name,ep)}},rp={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(rp.name,rp)}},op={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",oo([{},n]),[r])},install:function(e){e.component(op.name,op)}},ip=["src","small"],ap={name:"ResultListImage",props:{src:jt.string.isRequired,small:jt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ht(t,ip);return e(uo,oo([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(ap.name,ap)}},sp={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(sp.name,sp)}},up=["href","target"],lp={name:"ResultList",props:{href:Jn.string,target:jt.string.def("_blank")},components:{ResultListContent:rp,ResultListDescription:op,ResultListImage:ap,ResultListTitle:sp},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===ap.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ht(t,up),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(lo,oo([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(lp.name,lp),e.component(rp.name,rp),e.component(op.name,op),e.component(ap.name,ap),e.component(sp.name,sp)}},cp={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},pp=on("div")(Kc||(Kc=ft(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),dp=function(){var e={NoSSR:cp};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=Mt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},hp=ot.updateQuery,fp=ot.setQueryOptions,gp=ot.setCustomQuery,mp=at.checkValueChange,yp=at.getClassName,vp=at.getOptionsFromQuery,bp=at.isEqual,Op={name:"RangeSlider",components:dp(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Jn.func,className:jt.string.def(""),range:jt.shape({start:jt.integer.def(0),end:jt.integer.def(10)}),rangeLabels:Jn.rangeLabels,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.range,value:Jn.range,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);mp(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Op.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=vp(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],p=l===s&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!p,URLParams:t.URLParams,componentType:x.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(Op.parseValue(e,this.$props))},value:function(e,t){bp(e,t)||this.handleChange(Op.parseValue(e,this.$props))},selectedValue:function(e){bp(this.$data.currentValue,e)||(this.handleChange(Op.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(Op.parseValue(r,this.$props)):t?this.handleChange(Op.parseValue(t,this.$props)):n&&this.handleChange(Op.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:yp(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(cp,[e(pp,{class:yp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:yp(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:yp(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},Cp=Br(gr((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:hp,setQueryOptions:fp,setCustomQuery:gp})(Op),{componentType:x.rangeSlider});Op.install=function(e){e.component(Op.name,Cp)},Op.componentType=x.rangeSlider;var wp=ot.addComponent,Sp=ot.removeComponent,$p=ot.watchComponent,_p=ot.updateQuery,kp=ot.setQueryListener,Pp=ot.setQueryOptions,Ep=ot.setComponentProps,Tp=ot.setCustomQuery,Ip=ot.updateComponentProps,Ap=at.checkValueChange,Rp=at.getClassName,xp=at.isEqual,Lp=at.checkSomePropChange,jp=at.extractQueryFromCustomQuery,Mp=at.getOptionsForCustomQuery,Qp={name:"DynamicRangeSlider",components:dp(),props:{beforeValueChange:Jn.func,className:jt.string.def(""),rangeLabels:Jn.func,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),destroyOnUnmount:jt.bool,showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,value:Jn.range,endpoint:Jn.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,x.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,x.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Qp.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Qp.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Qp.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];Ap(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Qp.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=jp(n);r&&(t=r);var o=Mp(n);Sr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},a=i.start,s=i.end,u=e[0],l=e[1],c=u===a&&l===s;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:x.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=Or(e);Lp(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,x.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,x.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!xp(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Qp.parseValue(t,this.$props))}},range:function(e,t){if(!xp(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){xp(e,t)||this.handleChange(Qp.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Rp(this.$props.innerClass,"title")},[this.$props.title]),e(cp,[e(pp,{class:Rp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},Vp=gr((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:wp,removeComponent:Sp,updateQuery:_p,watchComponent:$p,setQueryListener:kp,setQueryOptions:Pp,setComponentProps:Ep,setCustomQuery:Tp,updateComponentProps:Ip})(Qp);Qp.install=function(e){e.component(Qp.name,Vp)},Qp.componentType=x.dynamicRangeSlider;var Dp=at.getSearchState,Fp=function(e){return void 0===e&&(e={}),ct({},e,{props:e.componentProps})},Np=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Up=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return ct({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},qp={name:"StateProvider",props:{onChange:jt.func,componentIds:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]),includeKeys:jt.arrayOf(jt.string).def(["hits","value","aggregations","error"]),strict:jt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog,dependencyTree:this.dependencyTree,componentProps:this.componentProps,hits:this.hits,aggregations:this.aggregations,isLoading:this.isLoading,error:this.error,promotedResults:this.promotedResults,rawData:this.rawData}}},watch:{searchState:function(e,t){this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Bp=gr((function(e,t){return{selectedValues:Np(e.selectedValues,t),queryLog:Np(e.queryLog,t),dependencyTree:Np(e.dependencyTree,t),componentProps:Np(e.props,t),hits:Np(e.hits,t),aggregations:Np(e.aggregations,t),isLoading:Np(e.isLoading,t),error:Np(e.error,t),promotedResults:Np(e.promotedResults,t),customData:Np(e.customData,t),settings:Np(e.settings,t),rawData:Np(e.rawData,t),components:Np(e.components,t)}}),{setValues:Ue})(qp);function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Wp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function Kp(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yp(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Xp(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}function Jp(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document?document.getElementsByClassName("pac-item-selected").length>0:null;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}function ed(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}function td(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}function nd(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set".concat(Kp(r)),l="get".concat(Kp(r)),c="".concat(r.toLowerCase(),"_changed"),p=e[r];if(void 0===t[u])throw new Error("".concat(u," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));a===Object&&s?td(e,s.map((function(e){return"".concat(r,".").concat(e)})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}qp.install=function(e){e.component(qp.name,Bp)};var rd={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},od={circleOptions:{type:Object,twoWay:!1,noBind:!0},markerOptions:{type:Object,twoWay:!1,noBind:!0},polygonOptions:{type:Object,twoWay:!1,noBind:!0},polylineOptions:{type:Object,twoWay:!1,noBind:!0},rectangleOptions:{type:Object,twoWay:!1,noBind:!0}},id={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},ad={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},sd={clickable:{type:Boolean,twoWay:!0,noBind:!0},map:{type:Object,twoWay:!0},preserveViewport:{type:Boolean,twoWay:!0,noBind:!0},screenOverlays:{type:Boolean,twoWay:!0,noBind:!0},suppressInfoWindows:{type:Boolean,twoWay:!0,noBind:!0},url:{type:String,twoWay:!1},zIndex:{type:Number,twoWay:!0},options:{type:Object,default:function(){return{}}}},ud={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},ld={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},cd={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},pd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},dd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},hd={bounds:{type:Object,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},fd={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},gd={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},md={algorithm:{type:Object},onClusterClick:{type:Function},renderer:{type:Object},options:{type:Object}};function yd(e,t,n,r,o,i,a,s,u,l){"boolean"!=typeof a&&(u=s,s=a,a=!1);var c,p="function"==typeof n?n.options:n;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),r&&(p._scopeId=r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(p.functional){var d=p.render;p.render=function(e,t){return c.call(t),d(e,t)}}else{var h=p.beforeCreate;p.beforeCreate=h?[].concat(h,c):[c]}return n}var vd=yd({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",(function(){return[n("input",e._g(e._b({ref:"input"},"input",e.$attrs,!1),e.$listeners))]}),{attrs:e.$attrs,listeners:e.$listeners})],2)},staticRenderFns:[]},void 0,{name:"AutocompleteInput",props:{bounds:{type:Object,default:void 0},componentRestrictions:{type:Object,default:void 0},types:{type:Array,default:void 0},selectFirstOnEnter:{required:!1,type:Boolean,default:!1},slotRefName:{required:!1,type:String,default:"input"},childRefName:{required:!1,type:String,default:"input"},options:{type:Object,default:void 0},setFieldsTo:{required:!1,type:Array,default:null}},watch:{componentRestrictions:function(e){void 0!==e&&this.$autocomplete.setComponentRestrictions(e)}},mounted:function(){var e=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ut(i,r,o,a,s,"next",e)}function s(e){ut(i,r,o,a,s,"throw",e)}a(void 0)}))}}(st().mark((function t(){var n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$gmapApiPromiseLazy();case 2:if(n=null,!e.$scopedSlots.default){t.next=9;break}if(Object.keys(e.$scopedSlots.default()[0].context.$refs).length){t.next=6;break}throw new Error("If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.");case 6:(n=e.$scopedSlots.default()[0].context.$refs[e.slotRefName])&&n.$refs&&(n=n.$refs[e.childRefName]),n&&(e.$refs.input=n);case 9:if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"==typeof google.maps.places.Autocomplete){t.next=12;break}throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");case 12:r=ct({},Yp(e,rd),e.options),e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,r),nd(e,e.$autocomplete,rd),e.setFieldsTo&&e.$autocomplete.setFields(e.setFieldsTo),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}));case 17:case"end":return t.stop()}}),t)})))()},destroyed:function(){this.$$autocomplete&&this.$$autocomplete.setMap&&this.$$autocomplete.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),bd={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},Od=["options"],Cd=yd({},void 0,{name:"CircleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,fd)),o=(r.options,ht(r,Od));return e.$circleObject=new google.maps.Circle(o),nd(e,e.$circleObject,fd),Zp(e,e.$circleObject,t),e.$circleObject})).catch((function(e){throw e}));return this.$circlePromise=n,{$circlePromise:n}},props:{center:{type:Object,required:!0},radius:{type:Number,default:10},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$circleObject&&this.$circleObject.setMap&&this.$circleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);function wd(e,t,n,r,o,i){if(!(o-r<=n)){var a=r+o>>1;!function e(t,n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,u=r-o+1,l=Math.log(s),c=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1),d=Math.max(o,Math.floor(r-u*c/s+p)),h=Math.min(i,Math.floor(r+(s-u)*c/s+p));e(t,n,r,d,h,a)}var f=n[2*r+a],g=o,m=i;for(Sd(t,n,o,r),n[2*i+a]>f&&Sd(t,n,o,i);g<m;){for(Sd(t,n,g,m),g++,m--;n[2*g+a]<f;)g++;for(;n[2*m+a]>f;)m--}n[2*o+a]===f?Sd(t,n,o,m):(m++,Sd(t,n,m,i)),m<=r&&(o=m+1),r<=m&&(i=m-1)}}(e,t,a,r,o,i%2),wd(e,t,n,r,a-1,i+1),wd(e,t,n,a+1,o,i+1)}}function Sd(e,t,n,r){$d(e,n,r),$d(t,2*n,2*r),$d(t,2*n+1,2*r+1)}function $d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _d(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var kd,Pd=function(e){return e[0]},Ed=function(e){return e[1]},Td=function(){function e(e,t,n,r,o){void 0===t&&(t=Pd),void 0===n&&(n=Ed),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=e;for(var i=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(e.length),s=this.coords=new o(2*e.length),u=0;u<e.length;u++)a[u]=u,s[2*u]=t(e[u]),s[2*u+1]=n(e[u]);wd(a,s,r,0,a.length-1,0)}var t=e.prototype;return t.range=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var s,u,l=[0,e.length-1,0],c=[];l.length;){var p=l.pop(),d=l.pop(),h=l.pop();if(d-h<=a)for(var f=h;f<=d;f++)s=t[2*f],u=t[2*f+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[f]);else{var g=Math.floor((h+d)/2);s=t[2*g],u=t[2*g+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[g]);var m=(p+1)%2;(0===p?n<=s:r<=u)&&(l.push(h),l.push(g-1),l.push(m)),(0===p?o>=s:i>=u)&&(l.push(g+1),l.push(d),l.push(m))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},t.within=function(e,t,n){return function(e,t,n,r,o,i){for(var a=[0,e.length-1,0],s=[],u=o*o;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i)for(var d=p;d<=c;d++)_d(t[2*d],t[2*d+1],n,r)<=u&&s.push(e[d]);else{var h=Math.floor((p+c)/2),f=t[2*h],g=t[2*h+1];_d(f,g,n,r)<=u&&s.push(e[h]);var m=(l+1)%2;(0===l?n-o<=f:r-o<=g)&&(a.push(p),a.push(h-1),a.push(m)),(0===l?n+o>=f:r+o>=g)&&(a.push(h+1),a.push(c),a.push(m))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)},e}(),Id={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},Ad=Math.fround||(kd=new Float32Array(1),function(e){return kd[0]=+e,kd[0]}),Rd=function(){function e(e){this.options=Vd(Object.create(Id),e),this.trees=new Array(this.options.maxZoom+1)}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s,u,l,c,p,d=[],h=0;h<e.length;h++)e[h].geometry&&d.push((s=e[h],u=h,l=void 0,c=void 0,p=void 0,l=s.geometry.coordinates,c=l[0],p=l[1],{x:Ad(Md(c)),y:Ad(Qd(p)),zoom:1/0,index:u,parentId:-1}));this.trees[o+1]=new Td(d,Dd,Fd,i,Float32Array),n&&console.timeEnd(a);for(var f=o;f>=r;f--){var g=+Date.now();d=this._cluster(d,f),this.trees[f]=new Td(d,Dd,Fd,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",f,d.length,+Date.now()-g)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,o,i],t);return a.concat(s)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=mt(l.range(Md(n),Qd(i),Md(o),Qd(r)));!(u=p()).done;){var d=u.value,h=l.points[d];c.push(h.numPoints?Ld(h):this.points[h.index])}return c},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);for(var a,s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=mt(o.within(i.x,i.y,s));!(a=l()).done;){var c=a.value,p=o.points[c];p.parentId===e&&u.push(p.numPoints?Ld(p):this.points[p.index])}if(0===u.length)throw new Error(r);return u},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,s=i.radius/a,u=(n-s)/o,l=(n+1+s)/o,c={features:[]};return this._addTileFeatures(r.range((t-s)/o,u,(t+1+s)/o,l),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-s/o,u,1,l),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,u,s/o,l),r.points,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var i,a=mt(this.getChildren(t));!(i=a()).done;){var s=i.value,u=s.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(e,u.cluster_id,n,r,o):o<r?o++:e.push(s),e.length===n)break}return o},t._addTileFeatures=function(e,t,n,r,o,i){for(var a,s=mt(e);!(a=s()).done;){var u=t[a.value],l=u.numPoints,c=void 0,p=void 0,d=void 0;if(l)c=jd(u),p=u.x,d=u.y;else{var h=this.points[u.index];c=h.properties,p=Md(h.geometry.coordinates[0]),d=Qd(h.geometry.coordinates[1])}var f={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},g=void 0;l?g=u.id:this.options.generateId?g=u.index:this.points[u.index].id&&(g=this.points[u.index].id),void 0!==g&&(f.id=g),i.features.push(f)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=r.minPoints,u=o/(i*Math.pow(2,t)),l=0;l<e.length;l++){var c=e[l];if(!(c.zoom<=t)){c.zoom=t;for(var p,d=this.trees[t+1],h=d.within(c.x,c.y,u),f=c.numPoints||1,g=f,m=mt(h);!(p=m()).done;){var y=p.value,v=d.points[y];v.zoom>t&&(g+=v.numPoints||1)}if(g>f&&g>=s){for(var b,O=c.x*f,C=c.y*f,w=a&&f>1?this._map(c,!0):null,S=(l<<5)+(t+1)+this.points.length,$=mt(h);!(b=$()).done;){var _=b.value,k=d.points[_];if(!(k.zoom<=t)){k.zoom=t;var P=k.numPoints||1;O+=k.x*P,C+=k.y*P,k.parentId=S,a&&(w||(w=this._map(c,!0)),a(w,this._map(k)))}}c.parentId=S,n.push(xd(O/g,C/g,S,g,w))}else if(n.push(c),g>1)for(var E,T=mt(h);!(E=T()).done;){var I=E.value,A=d.points[I];A.zoom<=t||(A.zoom=t,n.push(A))}}}return n},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t){if(e.numPoints)return t?Vd({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?Vd({},r):r},e}();function xd(e,t,n,r,o){return{x:Ad(e),y:Ad(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function Ld(e){return{type:"Feature",id:e.id,properties:jd(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function jd(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return Vd(Vd({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function Md(e){return e/360+.5}function Qd(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Vd(e,t){for(var n in t)e[n]=t[n];return e}function Dd(e){return e.x}function Fd(e){return e.y}var Nd=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};
|
|
38
|
+
*/function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ys,vs,bs={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,O=r.searchWords,C=r.textToHighlight,w=r.unhighlightClassName,S=void 0===w?"":w,$=r.unhighlightStyle,_=t.data,k=gs({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:O,textToHighlight:C}),P=v,E=-1,T="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ms(e,t,n[t])}))}return e}({},_),k.map((function(t,r){var o=C.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+s;T="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:T,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),_.scopedSlots?e(P,l,[_.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:S,key:r,style:$},o)})))}},Os={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Cs=on("span")(ys||(ys=ft(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ws={name:"SuggestionItem",props:{currentValue:Jn.string,suggestion:Jn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!s&&!u?e(bs,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:Os}}):e(Cs,{domProps:{innerHTML:n}})]):n:o||a||i?e(Lo,{attrs:{alignItems:"center",css:{width:"100%"}}},[a&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Lo,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:Os},class:Jt({fontSize:"1rem"})})]),i&&e("div",{class:Kt("trim",Jt({marginTop:3}))},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:Os}})])])]):r}},Ss={name:"SearchSvg",props:["styles"],render:function(){var e=arguments[0];return e("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:ct({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[e("title",["Search"]),e("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}},$s={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};Xt(vs||(vs=ft(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var _s,ks={name:"MicSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}};Xt(_s||(_s=ft(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var Ps,Es={name:"MuteSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className}},[e("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_gMpyalCphp"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};Xt(Ps||(Ps=ft(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var Ts,Is,As,Rs={name:"ListenSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("defs",[e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),e("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_UYYCfubTRf"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),e("g",{attrs:{id:"el_6SDP2LAgKC"}},[e("mask",{attrs:{id:"mask-2",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-1"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),e("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),e("g",{attrs:{id:"el_6WKby7wXqV"}},[e("mask",{attrs:{id:"mask-4",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-3"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),e("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),e("g",{attrs:{id:"el_Wi-my975tM"}},[e("mask",{attrs:{id:"mask-6",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-5"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),e("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),e("g",{attrs:{id:"el_DkfFFTaFxy8"}},[e("mask",{attrs:{id:"mask-8",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-7"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),e("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),e("g",{attrs:{id:"el_34IgwiMB5rf"}},[e("mask",{attrs:{id:"mask-10",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-9"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),e("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),e("g",{attrs:{id:"el_DeebuCsPTGA"}},[e("mask",{attrs:{id:"mask-12",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-11"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),e("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),e("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[e("mask",{attrs:{id:"mask-14",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-13"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),e("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),e("g",{attrs:{id:"el_2FATegVmf0K"}},[e("mask",{attrs:{id:"mask-16",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-15"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),e("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}},xs="INACTIVE",Ls="STOPPED",js="ACTIVE",Ms="DENIED",Qs={name:"Mic",props:{children:Jn.title,lang:jt.string.def("en-US"),iconPosition:jt.string.def("left"),handleResult:Jn.func,onNoMatch:Jn.func,onError:Jn.func,getInstance:Jn.func,render:Jn.func,className:Jn.string,applyClearStyle:jt.bool,showIcon:jt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return vr(t,this)},stopMic:function(){this.instance&&(this.status=xs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===js&&(this.status=xs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==Ms)return this.status=xs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=js},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=xs:"not-allowed"===t.error&&(e.status=Ms),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=xs},this.instance.onaudioend=function(){e.status=xs}}}},computed:{hasCustomRenderer:function(){return br(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case js:return e(Rs,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ls:case Ms:return e(Es,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(ks,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:xs}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=arguments[0];return this.hasCustomRenderer?this.getComponent():e(rs,[this.Icon])}},Vs={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):"promoted-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24"},class:this.$props.className,style:{fill:"#707070"}},[e("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"}})]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})]):e(Ss,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},Ds=on("div")(Ts||(Ts=ft(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Fs=on("span")(Is||(Is=ft(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),Ns=ot.updateQuery,Us=ot.setQueryOptions,qs=ot.setCustomQuery,Bs=ot.setDefaultQuery,zs=ot.setCustomHighlightOptions,Hs=ot.recordSuggestionClick,Gs=ot.loadPopularSuggestions,Ws=ot.getRecentSearches,Zs=ot.resetStoreForComponent,Ks=at.debounce,Ys=at.checkValueChange,Xs=at.getClassName,Js=at.extractQueryFromCustomQuery,eu=at.getOptionsForCustomQuery,tu=at.isEqual,nu=at.getCompositeAggsQuery,ru=at.withClickIds,ou=at.getResultStats,iu=at.handleOnSuggestions,au=at.getTopSuggestions,su=at.normalizeDataField,uu={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ks(this.handleText,this.$props.debounce),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),ru(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return au(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return ct({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return ct({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return au(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return br(this)},stats:function(){return ou(this)}},props:{options:Jn.options,autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSearches:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderQuerySuggestions:Jn.func,renderPopularSuggestions:Jn.func,parseSuggestion:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,enableDefaultSuggestions:jt.bool.def(!0),mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,endpoint:Jn.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){tu(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){tu(e,t)||(this.$options.isTagsMode?tu(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=uu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},updateQueryOptions:function(){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):vr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=nu({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return iu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ys(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!tu(e,i.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);if(i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e)i.selectedTags.push(e);else if(Array.isArray(e)&&!tu(i.selectedTags,e)){var a=Array.from(new Set([].concat(i.selectedTags,e)));i.selectedTags=a}}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=e;var s=e;i.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(s=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof e&&i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.updateQueryHandler(n.componentId,s,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,s,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=uu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Js(o);i&&(r=i),n=eu(o),wr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,ct({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:x.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=uu.defaultQuery(t,n);if(o){var l=o(t,n),c=Js(l);c&&(u=c),r=eu(l),Sr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,ct({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:Xs(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:Xs(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Xs(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,s=this.$scopedSlots,u=s.recentSearchesIcon,l=s.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Xs(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,s=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Ja(e.themePreset,r)+" "+Xs(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),_r(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:Xs(e.$props.innerClass,"input"),on:ct({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},s({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:Xs(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=su(t.dataField,t.fieldWeights);n={bool:{should:uu.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:ct({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},lu=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Us,updateQuery:Ns,setCustomQuery:qs,setDefaultQuery:Bs,setCustomHighlightOptions:zs,recordSuggestionClick:Hs,loadPopularSuggestions:Gs,getRecentSearches:Ws,resetStoreForComponent:Zs})(uu),{componentType:x.dataSearch,internalComponent:uu.hasInternalComponent()});uu.install=function(e){e.component(uu.name,lu)},uu.componentType=x.dataSearch;var cu,pu,du,hu,fu,gu,mu=on("button")(As||(As=ft(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),yu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(mu,{on:{click:this.$listeners.click}},[e("svg",{attrs:{viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"}})])])},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},vu=ot.updateQuery,bu=ot.setCustomQuery,Ou=ot.setDefaultQuery,Cu=ot.recordSuggestionClick,wu=at.debounce,Su=at.checkValueChange,$u=at.getClassName,_u=at.isEqual,ku=at.getCompositeAggsQuery,Pu=at.withClickIds,Eu=at.getResultStats,Tu=at.normalizeDataField,Iu={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=Rr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=wu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return br(this)},stats:function(){return Eu(this)}},props:{autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSuggestions:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,popularSuggestionsConfig:jt.object,recentSuggestionsConfig:jt.object,applyStopwords:jt.bool,customStopwords:Jn.stringArray,onData:Jn.func,renderItem:Jn.func,enterButton:jt.bool.def(!1),renderEnterButton:jt.any,mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,searchboxId:jt.string,endpoint:Jn.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){_u(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){_u(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(Pu(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(Pu(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!_u(e,t)&&(this.$options.isTagsMode?!_u(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){_u(e,t)||(this.handleTextChange=wu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=Iu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return vr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=ku({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);Su(n.componentId,e,n.beforeValueChange,(function(){if(!a.$options.isTagsMode||!_u(e,a.selectedTags)){if(a.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);if(a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e)a.selectedTags.push(e);else if(Array.isArray(e)&&!_u(a.selectedTags,e)){var s=Array.from(new Set([].concat(a.selectedTags,e)));a.selectedTags=s}}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=Rr(e);var u=e;a.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof a.currentValue&&a.triggerDefaultQuery(a.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i):a.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i)):a.handleTextChange(e,r),a.$emit("valueChange",e),a.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=Iu.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),wr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:x.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,a=n.URLParams,s="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(s=e);var u=Iu.defaultQuery(s+(t?" in "+t:""),this.$props);if(r){var l=r(s,this.$props).query;l&&(u=l),Sr(this.$props.componentId,this.setCustomQuery,this.$props,s)}this.updateQuery({componentId:this.$props.componentId,query:u,value:s,label:o,showFilter:i,URLParams:a,componentType:x.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,a=void 0===i||i,s=e.value,u=void 0===s?void 0:s,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),a&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?it.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(ct({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Kn,{class:"enter-btn "+$u(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:$u(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Rr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(yu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:$u(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:$u(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:$u(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case Ce.Recent:return a;case Ce.Popular:return s;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Ja(e.themePreset,r)+" "+$u(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:ct({},p({item:r})),on:ct({},d({item:r})),key:o+1+"-"+r.value,style:{backgroundColor:e.getBackgroundColor(f,o),justifyContent:"flex-start",alignItems:"center"}},l?[l(r)]:[t("div",{style:{padding:"0 10px 0 0",display:"flex"}},[t(Vs,{attrs:{className:$u(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:$u(e.$props.innerClass,"input"),on:ct({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:$u(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:this.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=Tu(t.dataField,t.fieldWeights);return(n={bool:{should:Iu.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},Au=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:vu,setCustomQuery:bu,setDefaultQuery:Ou,recordSuggestionClick:Cu})(Iu),{componentType:x.searchBox,internalComponent:!0});Iu.install=function(e){e.component(Iu.name,Au)},Iu.componentType=x.searchBox;var Ru="15px",xu="15px",Lu="4px",ju=Jt(cu||(cu=ft(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"]))),Mu=Jt(pu||(pu=ft(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"]))),Qu=function(e){var t=e.theme;return Jt(du||(du=ft(["\n\t",";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ",";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ",";\n\t\t\tmargin-right: calc("," * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ",";\n\t\t\theight: ",";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ",";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 2);\n\t\t\twidth: calc("," - ",");\n\t\t\theight: calc("," - ",");\n\t\t\tmargin-top: calc("," / -2 - "," / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])),ju,qn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||qn(.1,t.colors.textColor),t.colors.primaryColor,Ru,Ru,xu,t.colors.primaryColor,Lu,Ru,Lu,xu,Lu,xu,Lu)},Vu=on("input")(hu||(hu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Du=on("input")(fu||(fu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),Ru,Ru,Ru,xu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Fu=on("ul")(gu||(gu=ft(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),Nu=at.getAggsOrder,Uu=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:ct({field:o,size:i,order:Nu(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),ct({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},qu=ot.updateQuery,Bu=ot.setQueryOptions,zu=ot.setCustomQuery,Hu=ot.setDefaultQuery,Gu=at.getQueryOptions,Wu=at.checkValueChange,Zu=at.getClassName,Ku=at.isEqual,Yu=at.extractQueryFromCustomQuery,Xu=at.getOptionsForCustomQuery,Ju={name:"SingleList",props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,enableStrictSelection:jt.bool.def(!1),endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ku(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:Zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Vu,{class:Zu(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:ct({},{checked:this.$data.currentValue===r})}),t("label",{class:Zu(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Vu,{class:Zu(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:ct({},{checked:e.currentValue===String(n.key)})}),t("label",{class:Zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:Zu(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");Wu(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=Ju.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Yu(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Xu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ju.defaultQuery(e,t);if(n){var o=n(e,t);r=Yu(o);var i=Xu(o);Sr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleList})},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=Ju.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Xu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:Zu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},handleClick:function(e){var t=e;return Cr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Zu(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},defaultQuery:function(e,t){var n,r=null;(t.selectAllLabel&&t.selectAllLabel===e&&(t.showMissing&&(r={match_all:{}}),r={exists:{field:t.dataField}}),e)&&(r={term:(n={},n[t.dataField]=e,n)},t.showMissing&&t.missingLabel===e&&(r={bool:{must_not:{exists:{field:t.dataField}}}}));return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},hasInternalComponent:function(){return!0}},el=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Bu,updateQuery:qu,setCustomQuery:zu,setDefaultQuery:Hu})(Ju),{componentType:x.singleList,internalComponent:Ju.hasInternalComponent()});Ju.install=function(e){e.component(Ju.name,el)},Ju.componentType=x.singleList;var tl=ot.updateQuery,nl=ot.setQueryOptions,rl=ot.setCustomQuery,ol=ot.setDefaultQuery,il=at.isEqual,al=at.getQueryOptions,sl=at.checkValueChange,ul=at.getClassName,ll=at.extractQueryFromCustomQuery,cl=at.getOptionsForCustomQuery,pl={name:"MultiList",props:{defaultValue:Jn.stringArray,value:Jn.stringArray,queryFormat:jt.oneOf(["and","or"]).def("or"),showCheckbox:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||il(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){il(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){il(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),il(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm).toLowerCase()))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:ul(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:ul(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:ul(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:ct({},{checked:!!this.currentValue[r]})}),t("label",{class:ul(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Du,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:ul(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:ct({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:ul(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:ul(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}sl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=pl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ll(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=cl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=pl.defaultQuery(e,t);if(n){var o=n(e,t);r=ll(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=cl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiList})},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=pl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=cl(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:ul(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},handleClick:function(e){var t=e;Cr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=yr(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:ul(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)}},dl={setQueryOptions:nl,updateQuery:tl,setCustomQuery:rl,setDefaultQuery:ol};pl.hasInternalComponent=function(){return!0};var hl,fl,gl,ml,yl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),dl)(pl),{componentType:x.multiList,internalComponent:pl.hasInternalComponent()});pl.install=function(e){e.component(pl.name,yl)},pl.componentType=x.multiList;var vl,bl,Ol=Jt(hl||(hl=ft(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"]))),Cl=function(e){var t=e.theme;return Jt(fl||(fl=ft(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},wl=on("button")(gl||(gl=ft(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?Ol:null}),(function(e){return"dark"===e.themePreset&&Cl})),Sl=on("span")(ml||(ml=ft(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),$l=Jt(vl||(vl=ft(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),_l=on("span")(bl||(bl=ft(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?$l:null})),kl=at.getClassName,Pl={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Jn.style,items:Jn.data,keyField:jt.string.def("key"),labelField:jt.string.def("label"),multi:jt.bool,placeholder:Jn.string,returnsObject:jt.bool,customLabelRenderer:Jn.func,hasCustomRenderer:jt.bool,customRenderer:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,handleChange:Jn.func,transformData:Jn.func,selectedItem:Jn.selectedValue,showCount:jt.bool,single:jt.bool,small:jt.bool.def(!1),themePreset:Jn.themePreset,showSearch:jt.bool,showClear:jt.bool,searchPlaceholder:jt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t[a])).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(cs,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,O=n.getInputEvents;return t("div",{class:es},[t(wl,{on:ct({},ct({},v({onClick:e.toggle}))),class:kl(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):i]),t(_l,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ja(u,e.theme)+" "+(e.$props.small?"small":"")+" "+kl(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:O({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:ct({},r({item:n})),on:ct({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:kl(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Sl,{class:kl(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),p]):null])}}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:kl(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,a=n.themePreset,s=n.innerClass,u=t(Xa,oo([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:kl(s,"input")},e]));return i?t(Ua,[u,this.searchTerm&&t(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(rs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t($s)])])]):u}}},El=ot.updateQuery,Tl=ot.setQueryOptions,Il=ot.setCustomQuery,Al=ot.setDefaultQuery,Rl=at.getQueryOptions,xl=at.checkValueChange,Ll=at.checkPropChange,jl=at.getClassName,Ml=at.isEqual,Ql=at.getCompositeAggsQuery,Vl=at.extractQueryFromCustomQuery,Dl=at.getOptionsForCustomQuery,Fl={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select a value"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&Ll(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ml(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?mr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:jl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&mr(d)?e("div",[d()]):d&&!mr(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);xl(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=Fl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Vl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Dl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Fl.defaultQuery(e,t);if(n){var o=n(e,t);r=Vl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Dl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleDropdownList})},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Fl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Dl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null;if(t.selectAllLabel&&t.selectAllLabel===e)t.showMissing&&(n={match_all:{}}),n={exists:{field:t.dataField}};else if(e){var r;t.showMissing&&t.missingLabel===e&&(n={bool:{must_not:{exists:{field:t.dataField}}}}),n={term:(r={},r[t.dataField]=e,r)}}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},Nl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Tl,updateQuery:El,setCustomQuery:Il,setDefaultQuery:Al})(Fl),{componentType:x.singleDropdownList,internalComponent:Fl.hasInternalComponent()});Fl.install=function(e){e.component(Fl.name,Nl)},Fl.componentType=x.singleDropdownList;var Ul=ot.updateQuery,ql=ot.setQueryOptions,Bl=ot.setCustomQuery,zl=ot.setDefaultQuery,Hl=at.isEqual,Gl=at.getQueryOptions,Wl=at.checkValueChange,Zl=at.checkPropChange,Kl=at.getClassName,Yl=at.getCompositeAggsQuery,Xl=at.extractQueryFromCustomQuery,Jl=at.getOptionsForCustomQuery,ec={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select values"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),Hl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){Hl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?mr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&mr(p)?e("div",[p()]):p&&!mr(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=yr(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}Wl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=ct({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=ec.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Xl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Jl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=ec.defaultQuery(e,t);if(n){var o=n(e,t);r=Xl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Jl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiDropdownList})},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=ec.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Jl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},tc=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:ql,updateQuery:Ul,setCustomQuery:Bl,setDefaultQuery:zl})(ec),{componentType:x.multiDropdownList,internalComponent:ec.hasInternalComponent()});ec.install=function(e){e.component(ec.name,tc)},ec.componentType=x.multiDropdownList;var nc=ot.updateQuery,rc=ot.setQueryOptions,oc=ot.setCustomQuery,ic=at.isEqual,ac=at.checkValueChange,sc=at.getClassName,uc=at.getOptionsFromQuery,lc=at.handleA11yAction,cc={name:"ToggleButton",props:{componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.any,value:Jn.stringOrArray,filterLabel:Jn.string,nestedField:Jn.string,innerClass:Jn.style,multiSelect:jt.bool,react:Jn.react,showFilter:jt.bool,title:Jn.title,URLParams:jt.bool,renderItem:Jn.func,index:jt.string,enableStrictSelection:jt.bool,endpoint:Jn.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=cc.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(cc.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){ic(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ic(this.$data.currentValue,e)||ic(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ic(n,this.selectedValue)||ic(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?cc.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ac(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=cc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,uc(r(e,t)),!1),Sr(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ic(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$createElement,r=this.$scopedSlots.renderItem||this.renderItem,o=this.$data.currentValue.some((function(t){return t.value===e.value}));return r?r({item:e,isSelected:o,handleClick:function(){return t.handleClick(e)}}):n(Kn,{class:sc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return lc(n,(function(){return t.handleClick(e)}))}},key:e.value,attrs:{primary:o,large:!0,tabIndex:o?"-1":"0"}},[e.label])}},render:function(){var e=this,t=arguments[0];return t(ps,{class:Hn},[this.$props.title&&t(io,{class:sc(this.$props.innerClass,"title")},[this.$props.title]),this.$props.data.map((function(t){return e.renderButton(t)}))])},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){var n=null;return e&&e.length&&(n={bool:{boost:1,minimum_should_match:1,should:e.map((function(e){var n;return{term:(n={},n[t.dataField]=e.value,n)}}))}}),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n}},pc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:nc,setQueryOptions:rc,setCustomQuery:oc})(cc),{componentType:x.toggleButton});cc.install=function(e){e.component(cc.name,pc)},cc.componentType=x.toggleButton;var dc=["options"],hc=ot.updateQuery,fc=ot.setQueryOptions,gc=ot.setCustomQuery,mc=ot.setDefaultQuery,yc=at.parseHits,vc=at.isEqual,bc=at.getCompositeAggsQuery,Oc=at.getResultStats,Cc=at.extractQueryFromCustomQuery,wc=at.getOptionsForCustomQuery,Sc={name:"ReactiveComponent",props:{componentId:Jn.stringRequired,aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,defaultQuery:Jn.func,customQuery:Jn.func,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),URLParams:jt.bool.def(!1),distinctField:Jn.string,distinctFieldConfig:Jn.props,index:jt.string,endpoint:Jn.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),p=Cc(c),d=c?wc(c):null;d?this.setQueryOptions(r,ct({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=ht(n,dc),i=o.query;i&&i.query&&(i=i.query);var a=ct({},r,{query:i}),s=a;i&&i.id&&(s=i),e.setCustomQuery(t.componentId,s),r&&e.setQueryOptions(t.componentId,ct({},e.getAggsQuery(),r),!1),e.updateQuery(ct({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=Cc(this.$defaultQuery),f=wc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,ct({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){vc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){vc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){vc(e,t)||this.$emit("data",this.getData())},total:function(e,t){vc(e,t)||this.$emit("data",this.getData())},time:function(e,t){vc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=Cc(this.$defaultQuery),r=wc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,ct({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=Cc(this.$customQuery),o=wc(this.$customQuery);o?this.setQueryOptions(n,ct({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=ct({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:bc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=yc(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return Oc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},$c=Br(gr((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:fc,updateQuery:hc,setCustomQuery:gc,setDefaultQuery:mc})(Sc),{componentType:x.reactiveComponent});Sc.install=function(e){e.component(Sc.name,$c)},Sc.componentType=x.reactiveComponent;var _c=ot.setValue,kc=ot.clearValues,Pc=ot.resetValuesToDefault,Ec=at.getClassName,Tc=at.handleA11yAction,Ic={name:"SelectedFilters",props:{className:jt.string.def(""),clearAllLabel:jt.string.def("Clear All"),innerClass:Jn.style,showClearAll:jt.bool.def(!0),title:Jn.title,resetToDefault:jt.bool.def(!1),clearAllBlacklistComponents:jt.array,resetToValues:jt.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(ps,{class:Bn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(io,{class:Ec(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Kn,{class:Ec(this.$props.innerClass,"button")||"",on:ct({},{click:this.clearValues,keypress:function(t){return Tc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Kn,{class:Ec(this.$props.innerClass,"button")||"",key:t,on:ct({},{click:n,keypress:function(e){return Tc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,a=o.value,s=Array.isArray(a);if(i&&(s&&a.length||!s&&a)){var u=e.renderValue(a,s);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+Rr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ac=gr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:kc,setValue:_c,resetValuesToDefault:Pc})(Ic);Ic.install=function(e){e.component(Ic.name,Ac)};var Rc=ot.updateQuery,xc=ot.setQueryOptions,Lc=ot.setCustomQuery,jc=at.isEqual,Mc=at.checkValueChange,Qc=at.getClassName,Vc=at.getOptionsFromQuery,Dc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){jc(e,t)||this.setValue(e)},selectedValue:function(e){jc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Qc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Qc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Vu,{class:Qc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Qc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?Dc.parseValue(e,t):e;Mc(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Dc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Vc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},Fc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Rc,setQueryOptions:xc,setCustomQuery:Lc})(Dc),{componentType:x.singleRange});Dc.install=function(e){e.component(Dc.name,Fc)},Dc.componentType=x.singleRange;var Nc=ot.updateQuery,Uc=ot.setQueryOptions,qc=ot.setCustomQuery,Bc=at.isEqual,zc=at.checkValueChange,Hc=at.getClassName,Gc=at.getOptionsFromQuery,Wc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=yr(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Wc.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:ct({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],ht(u,[e].map(yt)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,p),a=ct({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};zc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Gc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){Bc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Bc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Hc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Hc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Du,{class:Hc(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:ct({},{checked:e.selectedValues[n.label]}),on:ct({},{click:e.handleClick})}),t("label",{class:Hc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},Zc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Nc,setQueryOptions:Uc,setCustomQuery:qc})(Wc),{componentType:x.multiRange});Wc.install=function(e){e.component(Wc.name,Zc)},Wc.componentType=x.multiRange;var Kc,Yc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(Yc.name,Yc)}},Xc=["src"],Jc={name:"ResultCardImage",props:{src:jt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ht(t,Xc);return e($o,oo([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Jc.name,Jc)}},ep={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(ep.name,ep)}},tp=["href","target"],np={name:"ResultCard",components:{ResultCardTitle:Yc,ResultCardImage:Jc,ResultCardDescription:ep},props:{target:jt.string.def("_blank"),href:Jn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ht(n,tp);return e(_o,oo([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(np.name,np),e.component(Yc.name,Yc),e.component(Jc.name,Jc),e.component(ep.name,ep)}},rp={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(rp.name,rp)}},op={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",oo([{},n]),[r])},install:function(e){e.component(op.name,op)}},ip=["src","small"],ap={name:"ResultListImage",props:{src:jt.string.isRequired,small:jt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ht(t,ip);return e(uo,oo([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(ap.name,ap)}},sp={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(sp.name,sp)}},up=["href","target"],lp={name:"ResultList",props:{href:Jn.string,target:jt.string.def("_blank")},components:{ResultListContent:rp,ResultListDescription:op,ResultListImage:ap,ResultListTitle:sp},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===ap.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ht(t,up),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(lo,oo([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(lp.name,lp),e.component(rp.name,rp),e.component(op.name,op),e.component(ap.name,ap),e.component(sp.name,sp)}},cp={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},pp=on("div")(Kc||(Kc=ft(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),dp=function(){var e={NoSSR:cp};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=Mt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},hp=ot.updateQuery,fp=ot.setQueryOptions,gp=ot.setCustomQuery,mp=at.checkValueChange,yp=at.getClassName,vp=at.getOptionsFromQuery,bp=at.isEqual,Op={name:"RangeSlider",components:dp(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Jn.func,className:jt.string.def(""),range:jt.shape({start:jt.integer.def(0),end:jt.integer.def(10)}),rangeLabels:Jn.rangeLabels,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.range,value:Jn.range,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);mp(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Op.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=vp(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],p=l===s&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!p,URLParams:t.URLParams,componentType:x.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(Op.parseValue(e,this.$props))},value:function(e,t){bp(e,t)||this.handleChange(Op.parseValue(e,this.$props))},selectedValue:function(e){bp(this.$data.currentValue,e)||(this.handleChange(Op.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(Op.parseValue(r,this.$props)):t?this.handleChange(Op.parseValue(t,this.$props)):n&&this.handleChange(Op.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:yp(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(cp,[e(pp,{class:yp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:yp(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:yp(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},Cp=Br(gr((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:hp,setQueryOptions:fp,setCustomQuery:gp})(Op),{componentType:x.rangeSlider});Op.install=function(e){e.component(Op.name,Cp)},Op.componentType=x.rangeSlider;var wp=ot.addComponent,Sp=ot.removeComponent,$p=ot.watchComponent,_p=ot.updateQuery,kp=ot.setQueryListener,Pp=ot.setQueryOptions,Ep=ot.setComponentProps,Tp=ot.setCustomQuery,Ip=ot.updateComponentProps,Ap=at.checkValueChange,Rp=at.getClassName,xp=at.isEqual,Lp=at.checkSomePropChange,jp=at.extractQueryFromCustomQuery,Mp=at.getOptionsForCustomQuery,Qp={name:"DynamicRangeSlider",components:dp(),props:{beforeValueChange:Jn.func,className:jt.string.def(""),rangeLabels:Jn.func,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),destroyOnUnmount:jt.bool,showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,value:Jn.range,endpoint:Jn.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,x.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,x.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Qp.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Qp.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Qp.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];Ap(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Qp.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=jp(n);r&&(t=r);var o=Mp(n);Sr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},a=i.start,s=i.end,u=e[0],l=e[1],c=u===a&&l===s;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:x.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=Or(e);Lp(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,x.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,x.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!xp(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Qp.parseValue(t,this.$props))}},range:function(e,t){if(!xp(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){xp(e,t)||this.handleChange(Qp.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Rp(this.$props.innerClass,"title")},[this.$props.title]),e(cp,[e(pp,{class:Rp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},Vp=gr((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:wp,removeComponent:Sp,updateQuery:_p,watchComponent:$p,setQueryListener:kp,setQueryOptions:Pp,setComponentProps:Ep,setCustomQuery:Tp,updateComponentProps:Ip})(Qp);Qp.install=function(e){e.component(Qp.name,Vp)},Qp.componentType=x.dynamicRangeSlider;var Dp=at.getSearchState,Fp=function(e){return void 0===e&&(e={}),ct({},e,{props:e.componentProps})},Np=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}if(!t.includeInternalComponents){var i={};return Object.keys(e).forEach((function(t){t.endsWith("internal")||t.endsWith("active")||t.endsWith("timestamp")||(i[t]=e[t])})),i}return e},Up=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return ct({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},qp={name:"StateProvider",props:{onChange:jt.func,componentIds:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]),includeKeys:jt.arrayOf(jt.string).def(["hits","value","aggregations","error"]),strict:jt.bool.def(!0),includeInternalComponents:jt.bool.def(!1)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog||{},dependencyTree:this.dependencyTree||{},componentProps:this.componentProps||{},hits:this.hits||{},aggregations:this.aggregations||{},isLoading:this.isLoading||{},error:this.error||{},promotedResults:this.promotedResults||{},rawData:this.rawData||{}}}},watch:{searchState:function(e,t){null!=t&&this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Bp=gr((function(e,t){return{selectedValues:Np(e.selectedValues,t),queryLog:Np(e.queryLog,t),dependencyTree:Np(e.dependencyTree,t),componentProps:Np(e.props,t),hits:Np(e.hits,t),aggregations:Np(e.aggregations,t),isLoading:Np(e.isLoading,t),error:Np(e.error,t),promotedResults:Np(e.promotedResults,t),customData:Np(e.customData,t),settings:Np(e.settings,t),rawData:Np(e.rawData,t),components:Np(e.components,t)}}),{setValues:Ue})(qp);function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Wp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function Kp(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yp(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Xp(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}function Jp(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document?document.getElementsByClassName("pac-item-selected").length>0:null;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}function ed(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}function td(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}function nd(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set".concat(Kp(r)),l="get".concat(Kp(r)),c="".concat(r.toLowerCase(),"_changed"),p=e[r];if(void 0===t[u])throw new Error("".concat(u," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));a===Object&&s?td(e,s.map((function(e){return"".concat(r,".").concat(e)})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}qp.install=function(e){e.component(qp.name,Bp)};var rd={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},od={circleOptions:{type:Object,twoWay:!1,noBind:!0},markerOptions:{type:Object,twoWay:!1,noBind:!0},polygonOptions:{type:Object,twoWay:!1,noBind:!0},polylineOptions:{type:Object,twoWay:!1,noBind:!0},rectangleOptions:{type:Object,twoWay:!1,noBind:!0}},id={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},ad={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},sd={clickable:{type:Boolean,twoWay:!0,noBind:!0},map:{type:Object,twoWay:!0},preserveViewport:{type:Boolean,twoWay:!0,noBind:!0},screenOverlays:{type:Boolean,twoWay:!0,noBind:!0},suppressInfoWindows:{type:Boolean,twoWay:!0,noBind:!0},url:{type:String,twoWay:!1},zIndex:{type:Number,twoWay:!0},options:{type:Object,default:function(){return{}}}},ud={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},ld={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},cd={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},pd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},dd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},hd={bounds:{type:Object,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},fd={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},gd={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},md={algorithm:{type:Object},onClusterClick:{type:Function},renderer:{type:Object},options:{type:Object}};function yd(e,t,n,r,o,i,a,s,u,l){"boolean"!=typeof a&&(u=s,s=a,a=!1);var c,p="function"==typeof n?n.options:n;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),r&&(p._scopeId=r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(p.functional){var d=p.render;p.render=function(e,t){return c.call(t),d(e,t)}}else{var h=p.beforeCreate;p.beforeCreate=h?[].concat(h,c):[c]}return n}var vd=yd({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",(function(){return[n("input",e._g(e._b({ref:"input"},"input",e.$attrs,!1),e.$listeners))]}),{attrs:e.$attrs,listeners:e.$listeners})],2)},staticRenderFns:[]},void 0,{name:"AutocompleteInput",props:{bounds:{type:Object,default:void 0},componentRestrictions:{type:Object,default:void 0},types:{type:Array,default:void 0},selectFirstOnEnter:{required:!1,type:Boolean,default:!1},slotRefName:{required:!1,type:String,default:"input"},childRefName:{required:!1,type:String,default:"input"},options:{type:Object,default:void 0},setFieldsTo:{required:!1,type:Array,default:null}},watch:{componentRestrictions:function(e){void 0!==e&&this.$autocomplete.setComponentRestrictions(e)}},mounted:function(){var e=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ut(i,r,o,a,s,"next",e)}function s(e){ut(i,r,o,a,s,"throw",e)}a(void 0)}))}}(st().mark((function t(){var n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$gmapApiPromiseLazy();case 2:if(n=null,!e.$scopedSlots.default){t.next=9;break}if(Object.keys(e.$scopedSlots.default()[0].context.$refs).length){t.next=6;break}throw new Error("If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.");case 6:(n=e.$scopedSlots.default()[0].context.$refs[e.slotRefName])&&n.$refs&&(n=n.$refs[e.childRefName]),n&&(e.$refs.input=n);case 9:if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"==typeof google.maps.places.Autocomplete){t.next=12;break}throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");case 12:r=ct({},Yp(e,rd),e.options),e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,r),nd(e,e.$autocomplete,rd),e.setFieldsTo&&e.$autocomplete.setFields(e.setFieldsTo),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}));case 17:case"end":return t.stop()}}),t)})))()},destroyed:function(){this.$$autocomplete&&this.$$autocomplete.setMap&&this.$$autocomplete.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),bd={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},Od=["options"],Cd=yd({},void 0,{name:"CircleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,fd)),o=(r.options,ht(r,Od));return e.$circleObject=new google.maps.Circle(o),nd(e,e.$circleObject,fd),Zp(e,e.$circleObject,t),e.$circleObject})).catch((function(e){throw e}));return this.$circlePromise=n,{$circlePromise:n}},props:{center:{type:Object,required:!0},radius:{type:Number,default:10},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$circleObject&&this.$circleObject.setMap&&this.$circleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);function wd(e,t,n,r,o,i){if(!(o-r<=n)){var a=r+o>>1;!function e(t,n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,u=r-o+1,l=Math.log(s),c=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1),d=Math.max(o,Math.floor(r-u*c/s+p)),h=Math.min(i,Math.floor(r+(s-u)*c/s+p));e(t,n,r,d,h,a)}var f=n[2*r+a],g=o,m=i;for(Sd(t,n,o,r),n[2*i+a]>f&&Sd(t,n,o,i);g<m;){for(Sd(t,n,g,m),g++,m--;n[2*g+a]<f;)g++;for(;n[2*m+a]>f;)m--}n[2*o+a]===f?Sd(t,n,o,m):(m++,Sd(t,n,m,i)),m<=r&&(o=m+1),r<=m&&(i=m-1)}}(e,t,a,r,o,i%2),wd(e,t,n,r,a-1,i+1),wd(e,t,n,a+1,o,i+1)}}function Sd(e,t,n,r){$d(e,n,r),$d(t,2*n,2*r),$d(t,2*n+1,2*r+1)}function $d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _d(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var kd,Pd=function(e){return e[0]},Ed=function(e){return e[1]},Td=function(){function e(e,t,n,r,o){void 0===t&&(t=Pd),void 0===n&&(n=Ed),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=e;for(var i=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(e.length),s=this.coords=new o(2*e.length),u=0;u<e.length;u++)a[u]=u,s[2*u]=t(e[u]),s[2*u+1]=n(e[u]);wd(a,s,r,0,a.length-1,0)}var t=e.prototype;return t.range=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var s,u,l=[0,e.length-1,0],c=[];l.length;){var p=l.pop(),d=l.pop(),h=l.pop();if(d-h<=a)for(var f=h;f<=d;f++)s=t[2*f],u=t[2*f+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[f]);else{var g=Math.floor((h+d)/2);s=t[2*g],u=t[2*g+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[g]);var m=(p+1)%2;(0===p?n<=s:r<=u)&&(l.push(h),l.push(g-1),l.push(m)),(0===p?o>=s:i>=u)&&(l.push(g+1),l.push(d),l.push(m))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},t.within=function(e,t,n){return function(e,t,n,r,o,i){for(var a=[0,e.length-1,0],s=[],u=o*o;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i)for(var d=p;d<=c;d++)_d(t[2*d],t[2*d+1],n,r)<=u&&s.push(e[d]);else{var h=Math.floor((p+c)/2),f=t[2*h],g=t[2*h+1];_d(f,g,n,r)<=u&&s.push(e[h]);var m=(l+1)%2;(0===l?n-o<=f:r-o<=g)&&(a.push(p),a.push(h-1),a.push(m)),(0===l?n+o>=f:r+o>=g)&&(a.push(h+1),a.push(c),a.push(m))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)},e}(),Id={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},Ad=Math.fround||(kd=new Float32Array(1),function(e){return kd[0]=+e,kd[0]}),Rd=function(){function e(e){this.options=Vd(Object.create(Id),e),this.trees=new Array(this.options.maxZoom+1)}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s,u,l,c,p,d=[],h=0;h<e.length;h++)e[h].geometry&&d.push((s=e[h],u=h,l=void 0,c=void 0,p=void 0,l=s.geometry.coordinates,c=l[0],p=l[1],{x:Ad(Md(c)),y:Ad(Qd(p)),zoom:1/0,index:u,parentId:-1}));this.trees[o+1]=new Td(d,Dd,Fd,i,Float32Array),n&&console.timeEnd(a);for(var f=o;f>=r;f--){var g=+Date.now();d=this._cluster(d,f),this.trees[f]=new Td(d,Dd,Fd,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",f,d.length,+Date.now()-g)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,o,i],t);return a.concat(s)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=mt(l.range(Md(n),Qd(i),Md(o),Qd(r)));!(u=p()).done;){var d=u.value,h=l.points[d];c.push(h.numPoints?Ld(h):this.points[h.index])}return c},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);for(var a,s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=mt(o.within(i.x,i.y,s));!(a=l()).done;){var c=a.value,p=o.points[c];p.parentId===e&&u.push(p.numPoints?Ld(p):this.points[p.index])}if(0===u.length)throw new Error(r);return u},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,s=i.radius/a,u=(n-s)/o,l=(n+1+s)/o,c={features:[]};return this._addTileFeatures(r.range((t-s)/o,u,(t+1+s)/o,l),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-s/o,u,1,l),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,u,s/o,l),r.points,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var i,a=mt(this.getChildren(t));!(i=a()).done;){var s=i.value,u=s.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(e,u.cluster_id,n,r,o):o<r?o++:e.push(s),e.length===n)break}return o},t._addTileFeatures=function(e,t,n,r,o,i){for(var a,s=mt(e);!(a=s()).done;){var u=t[a.value],l=u.numPoints,c=void 0,p=void 0,d=void 0;if(l)c=jd(u),p=u.x,d=u.y;else{var h=this.points[u.index];c=h.properties,p=Md(h.geometry.coordinates[0]),d=Qd(h.geometry.coordinates[1])}var f={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},g=void 0;l?g=u.id:this.options.generateId?g=u.index:this.points[u.index].id&&(g=this.points[u.index].id),void 0!==g&&(f.id=g),i.features.push(f)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=r.minPoints,u=o/(i*Math.pow(2,t)),l=0;l<e.length;l++){var c=e[l];if(!(c.zoom<=t)){c.zoom=t;for(var p,d=this.trees[t+1],h=d.within(c.x,c.y,u),f=c.numPoints||1,g=f,m=mt(h);!(p=m()).done;){var y=p.value,v=d.points[y];v.zoom>t&&(g+=v.numPoints||1)}if(g>f&&g>=s){for(var b,O=c.x*f,C=c.y*f,w=a&&f>1?this._map(c,!0):null,S=(l<<5)+(t+1)+this.points.length,$=mt(h);!(b=$()).done;){var _=b.value,k=d.points[_];if(!(k.zoom<=t)){k.zoom=t;var P=k.numPoints||1;O+=k.x*P,C+=k.y*P,k.parentId=S,a&&(w||(w=this._map(c,!0)),a(w,this._map(k)))}}c.parentId=S,n.push(xd(O/g,C/g,S,g,w))}else if(n.push(c),g>1)for(var E,T=mt(h);!(E=T()).done;){var I=E.value,A=d.points[I];A.zoom<=t||(A.zoom=t,n.push(A))}}}return n},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t){if(e.numPoints)return t?Vd({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?Vd({},r):r},e}();function xd(e,t,n,r,o){return{x:Ad(e),y:Ad(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function Ld(e){return{type:"Feature",id:e.id,properties:jd(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function jd(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return Vd(Vd({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function Md(e){return e/360+.5}function Qd(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Vd(e,t){for(var n in t)e[n]=t[n];return e}function Dd(e){return e.x}function Fd(e){return e.y}var Nd=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};
|
|
39
39
|
/*! *****************************************************************************
|
|
40
40
|
Copyright (c) Microsoft Corporation.
|
|
41
41
|
|
|
@@ -49,5 +49,5 @@ function vt(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
|
|
|
49
49
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
50
50
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
51
51
|
PERFORMANCE OF THIS SOFTWARE.
|
|
52
|
-
***************************************************************************** */var Ud=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t,n,r,o=e.prototype;return o.push=function(e){this.markers.push(e)},o.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},t=e,(n=[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(e,t){return e.extend(t.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return e.getVisible()})).length}}])&<(t.prototype,n),r&<(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qd=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return Bd(t)},e}(),Bd=function(e){return e.map((function(e){return new Ud({position:e.getPosition(),markers:[e]})}))},zd=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,i=void 0===o?60:o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Rd(Object.assign({maxZoom:n.maxZoom,radius:i},a)),n.state={zoom:null},n}pt(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!Nd(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var n=this.markers.map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}}}));this.superCluster.load(n)}var r={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&r.zoom>this.maxZoom||(t=t||!Nd(this.state,r)),this.state=r,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(this.transformCluster.bind(this))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Ud({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:new google.maps.LatLng({lat:r,lng:n})});var i=o.marker;return new Ud({markers:[i],position:i.getPosition()})},t}(qd),Hd=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},Gd=function(){function e(){}return e.prototype.render=function(e,t){var n=e.count,r=e.position,o=n>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'+o+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>');return new google.maps.Marker({position:r,icon:{url:"data:image/svg+xml;base64,"+i,scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of "+n+" markers",zIndex:Number(google.maps.Marker.MAX_ZINDEX)+n})},e}();var Wd,Zd=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Wd||(Wd={}));var Kd,Yd=function(e,t,n){n.fitBounds(t.bounds)},Xd=function(e){function t(t){var n,r=t.map,o=t.markers,i=void 0===o?[]:o,a=t.algorithm,s=void 0===a?new zd({}):a,u=t.renderer,l=void 0===u?new Gd:u,c=t.onClusterClick,p=void 0===c?Yd:c;return(n=e.call(this)||this).markers=[].concat(i),n.clusters=[],n.algorithm=s,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}pt(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Wd.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;(r||null==r)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,Wd.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return e.setMap(null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new Hd(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,Wd.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(Zd),Jd=["options"],eh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"ClusterIcon",mixins:[bd],provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,md)),o=(r.options,ht(r,Jd));if(void 0===Xd)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");var i=o.map,a=o.markers,s=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new Xd({map:i,markers:a,algorithm:s,onClusterClick:u,renderer:l}),nd(e,e.$clusterObject,{}),Zp(e,e.$clusterObject,t),Object.keys({}).forEach((function(t){({})[t].twoWay&&e.$on(t.toLowerCase()+"_changed",e.reinsertMarkers)})),e.$clusterObject})).catch((function(e){throw e}));return this.$clusterPromise=n,{$clusterPromise:n}},props:{algorithm:{type:Object,default:void 0},onClusterClick:{type:Function,default:void 0},renderer:{type:Object,default:void 0},options:{type:Object,default:void 0}},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()},destroyed:function(){this.$clusterObject&&this.$clusterObject.setMap&&this.$clusterObject.setMap(null)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},methods:{reinsertMarkers:function(){var e=[].concat(this.$clusterObject.markers);this.$clusterObject.clearMarkers(),this.$clusterObject.addMarkers(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),th=["options"],nh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},staticRenderFns:[]},void 0,{name:"DrawingManager",mixins:[bd],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=ct({},e.options,{map:t},Yp(e,od)),r=(n.options,ht(n,th));e.drawingModes=Object.keys(r).reduce((function(e,t){var n=t.split("Options");return n.length>1&&e.push(n[0]),e}),[]);var o=e.position&&google.maps.ControlPosition[e.position]?google.maps.ControlPosition[e.position]:google.maps.ControlPosition.TOP_LEFT;return r.drawingMode=null,r.drawingControl=!e.$scopedSlots.default,r.drawingControlOptions={drawingModes:e.drawingModes,position:o},e.$drawingManagerObject=new google.maps.drawing.DrawingManager(r),nd(e,e.$drawingManagerObject,od),e.$drawingManagerObject.addListener("overlaycomplete",(function(t){return e.addShape(t)})),e.$map.addListener("click",e.clearSelection),e&&e.finalShapes&&e.finalShapes.length&&e.drawAll(),e.$drawingManagerObject})).catch((function(e){throw e}));return this.$drawingManagerPromise=t,{$drawingManagerPromise:t}},props:{circleOptions:{type:Object,default:void 0},markerOptions:{type:Object,default:void 0},polygonOptions:{type:Object,default:void 0},polylineOptions:{type:Object,default:void 0},rectangleOptions:{type:Object,default:void 0},position:{type:String,default:""},shapes:{type:Array,required:!0}},data:function(){return{selectedShape:null,drawingModes:[],options:{drawingMode:null,drawingControl:!0,drawingControlOptions:{}},finalShapes:[]}},watch:{position:function(e){if(this.$drawingManagerObject){var t={position:e&&google.maps.ControlPosition[e]?google.maps.ControlPosition[e]:google.maps.ControlPosition.TOP_LEFT,drawingModes:this.drawingModes};this.$drawingManagerObject.setOptions({drawingControlOptions:t})}},circleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({circleOptions:e})},markerOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({markerOptions:e})},polygonOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polygonOptions:e})},polylineOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polylineOptions:e})},rectangleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({rectangleOptions:e})}},mounted:function(){this.finalShapes=[].concat(this.shapes)},destroyed:function(){this.clearAll(),this.$drawingManagerObject&&this.$drawingManagerObject.setMap&&this.$drawingManagerObject.setMap(null)},methods:{setDrawingMode:function(e){this.$drawingManagerObject.setDrawingMode(e)},drawAll:function(){var e=this,t={circle:google.maps.Circle,marker:google.maps.Marker,polygon:google.maps.Polygon,polyline:google.maps.Polyline,rectangle:google.maps.Rectangle},n=this;this.finalShapes.forEach((function(r){var o=new t[r.type](r.overlay);o.setMap(e.$map),r.overlay=o,google.maps.event.addListener(o,"click",(function(){n.setSelection(r)}))}))},clearAll:function(){this.clearSelection(),this.finalShapes.forEach((function(e){e.overlay.setMap(null)}))},clearSelection:function(){this.selectedShape&&(this.selectedShape.overlay.set("fillColor","#777"),this.selectedShape.overlay.set("strokeColor","#999"),this.selectedShape.overlay.setEditable(!1),this.selectedShape.overlay.setDraggable(!1),this.selectedShape=null)},setSelection:function(e){this.clearSelection(),this.selectedShape=e,e.overlay.setEditable(!0),e.overlay.setDraggable(!0),this.selectedShape.overlay.set("fillColor","#555"),this.selectedShape.overlay.set("strokeColor","#777")},deleteSelection:function(){if(this.selectedShape){this.selectedShape.overlay.setMap(null);var e=this.finalShapes.indexOf(this.selectedShape);e>-1&&this.finalShapes.splice(e,1)}},addShape:function(e){this.setDrawingMode(null),this.finalShapes.push(e),this.$emit("update:shapes",[].concat(this.finalShapes));var t=this;google.maps.event.addListener(e.overlay,"click",(function(){t.setSelection(e)})),google.maps.event.addListener(e.overlay,"rightclick",(function(){t.deleteSelection()})),this.setSelection(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),rh=["options"],oh=yd({},void 0,{name:"HeatmapLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:e.$map},Yp(e,id)),o=(r.options,ht(r,rh));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),nd(e,e.$heatmapLayerObject,id),Zp(e,e.$heatmapLayerObject,t),e.$heatmapLayerObject})).catch((function(e){throw e}));return this.$heatmapLayerPromise=n,{$heatmapLayerPromise:n}},props:{options:{type:Object,default:function(){}},data:{type:Array,default:void 0}},destroyed:function(){this.$heatmapLayerObject&&this.$heatmapLayerObject.setMap&&this.$heatmapLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),ih=["options","position"],ah=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"InfoWindow",mixins:[bd],inject:{$markerPromise:{default:null}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ad)),o=(r.options,r.position,ht(r,ih));return o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(t){return e.$markerObject=t,t})),e.$infoWindowObject=new google.maps.InfoWindow(o),nd(e,e.$infoWindowObject,ad),Zp(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),sh=["options"],uh=yd({},void 0,{name:"KmlLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,sd)),o=(r.options,ht(r,sh));return e.$kmlLayerObject=new google.maps.KmlLayer(o),nd(e,e.$kmlLayerObject,sd),Zp(e,e.$kmlLayerObject,t),e.$kmlLayerObject})).catch((function(e){throw e}));return this.$kmlLayerPromise=n,{$kmlLayerPromise:n}},props:{clickable:{type:Boolean,default:!0},map:{type:Object,default:void 0},preserveViewport:{type:Boolean,default:!1},screenOverlays:{type:Boolean,default:!1},suppressInfoWindows:{type:Boolean,default:void 0},url:{type:String,default:""},zIndex:{type:Number,default:void 0},options:{type:Object,default:void 0}},destroyed:function(){this.$kmlLayerObject&&this.$kmlLayerObject.setMap&&this.$kmlLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),lh={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}},ch=["options"],ph={name:"MapLayer",mixins:[lh],provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},props:{center:{type:Object,required:!0},zoom:{type:Number,required:!1,default:void 0},heading:{type:Number,default:void 0},mapTypeId:{type:String,default:"roadmap"},tilt:{type:Number,default:void 0},options:{type:Object,default:void 0}},data:function(){return{recyclePrefix:"__gmc__"}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},beforeDestroy:function(){var e=this.getRecycleKey();window[e]&&(window[e].div=this.$mapObject.getDiv())},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=ct({},e.options,Yp(e,ud)),r=(n.options,ht(n,ch)),o=e.getRecycleKey();return e&&e.options&&e.options.recycle&&window[o]?(t.appendChild(window[o].div),e.$mapObject=window[o].map,e.$mapObject.setOptions(r)):(e.$mapObject=new google.maps.Map(t,r),window[o]={map:e.$mapObject}),nd(e,e.$mapObject,ud),Zp(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),ed((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:{resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()},panBy:function(){var e;this.$mapObject&&(e=this.$mapObject).panBy.apply(e,arguments)},panTo:function(){var e;this.$mapObject&&(e=this.$mapObject).panTo.apply(e,arguments)},panToBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).panToBounds.apply(e,arguments)},fitBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).fitBounds.apply(e,arguments)},getRecycleKey:function(){return this&&this.options&&this.options.recycle?this.recyclePrefix+this.options.recycle:this.recyclePrefix}},destroyed:function(){this.$mapObject&&this.$mapObject.setMap&&this.$mapObject.setMap(null)}},dh="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function hh(e){return function(e,t){return function(e,t){var n=dh?t.media||"default":e,r=fh[n]||(fh[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var o=t.source;if(t.map&&(o+="\n/*# sourceURL="+t.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===Kd&&(Kd=document.head||document.getElementsByTagName("head")[0]),Kd.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,a=document.createTextNode(o),s=r.element.childNodes;s[i]&&r.element.removeChild(s[i]),s.length?r.element.insertBefore(a,s[i]):r.element.appendChild(a)}}}(e,t)}}var fh={};var gh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-map-container"},[t("div",{ref:"vue-map",staticClass:"vue-map"}),this._v(" "),t("div",{staticClass:"vue-map-hidden"},[this._t("default")],2),this._v(" "),this._t("visible")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-58f81a38_0",{source:".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",map:void 0,media:void 0})}),ph,void 0,!1,void 0,!1,hh,void 0,void 0),mh=["options"],yh=yd({},void 0,{name:"MarkerIcon",mixins:[bd],inject:{$clusterPromise:{default:null}},provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ld)),o=(r.options,ht(r,mh));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),nd(e,e.$markerObject,ld),Zp(e,e.$markerObject,t),e.$markerObject.addListener("dragend",(function(){var t=e.$markerObject.getPosition();e.$emit("update:position",{lat:t.lat(),lng:t.lng()})})),e.$clusterPromise&&e.$clusterPromise.then((function(t){t.addMarker(e.$markerObject),e.$clusterObject=t})),e.$markerObject})).catch((function(e){throw e}));return this.$markerPromise=n,{$markerPromise:n}},props:{animation:{type:Number,default:void 0},attribution:{type:Object,default:void 0},clickable:{type:Boolean,default:!0},cursor:{type:String,default:void 0},draggable:{type:Boolean,default:!1},icon:{type:[String,Object],default:void 0},label:{type:[String,Object],default:void 0},opacity:{type:Number,default:1},options:{type:Object,default:void 0},place:{type:Object,default:void 0},position:{type:Object,default:void 0},shape:{type:Object,default:void 0},title:{type:String,default:void 0},visible:{type:Boolean,default:!0},zIndex:{type:Number,default:void 0}},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject&&this.$markerObject.setMap&&this.$markerObject.setMap(null))},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""}},void 0,void 0,void 0,!1,void 0,void 0,void 0),vh=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],bh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("span",{domProps:{textContent:this._s(this.label)}}),this._v(" "),t("input",{ref:"input",class:this.className,attrs:{type:"text",placeholder:this.placeholder}})])},staticRenderFns:[]},void 0,{name:"PlaceInput",props:{bounds:{type:Object,default:void 0},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:void 0},placeholder:{required:!1,type:String,default:void 0},className:{required:!1,type:String,default:void 0},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},created:function(){window.console.warn("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead, it will be removed in the next major release of this plugin.")},mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",(function(){t.value=e.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var t=Yp(e,gd);if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.$autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=ht(gd,vh);nd(e,e.$autoCompleter,n),e.$autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.$autoCompleter.getPlace())}))}))},destroyed:function(){this.$autoCompleter&&this.$autoCompleter.setMap&&this.$autoCompleter.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),Oh=["options","path","paths"],Ch=yd({},void 0,{name:"PolygonShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,pd)),o=(r.options,r.path,r.paths,ht(r,Oh));e.$polygonObject=new google.maps.Polygon(o),nd(e,e.$polygonObject,pd),Zp(e,e.$polygonObject,t);var i=function(){};return e.$watch("paths",(function(t){if(t){i(),e.$polygonObject.setPaths(t);for(var n=function(){e.$emit("paths_changed",e.$polygonObject.getPaths())},r=[],o=e.$polygonObject.getPaths(),a=0;a<o.getLength();a+=1){var s=o.getAt(a);r.push([s,s.addListener("insert_at",n)]),r.push([s,s.addListener("remove_at",n)]),r.push([s,s.addListener("set_at",n)])}r.push([o,o.addListener("insert_at",n)]),r.push([o,o.addListener("remove_at",n)]),r.push([o,o.addListener("set_at",n)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$watch("path",(function(t){if(t){i(),e.$polygonObject.setPaths(t);var n=e.$polygonObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polygonObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polygonObject})).catch((function(e){throw e}));return this.$polygonPromise=n,{$polygonPromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,noBind:!0,default:void 0},paths:{type:Array,noBind:!0,default:void 0}},destroyed:function(){this.$polygonObject&&this.$polygonObject.setMap&&this.$polygonObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),wh=["options"],Sh=yd({},void 0,{name:"PolylineShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,dd)),o=(r.options,ht(r,wh));e.$polylineObject=new google.maps.Polyline(o),nd(e,e.$polylineObject,dd),Zp(e,e.$polylineObject,t);var i=function(){};return e.$watch("path",(function(t){if(t){i(),e.$polylineObject.setPath(t);var n=e.$polylineObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polylineObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polylineObject})).catch((function(e){throw e}));return this.$polylinePromise=n,{$polylinePromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,default:void 0}},destroyed:function(){this.$polylineObject&&this.$polylineObject.setMap&&this.$polylineObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),$h=["options"],_h=yd({},void 0,{name:"RectangleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,hd)),o=(r.options,ht(r,$h));return e.$rectangleObject=new google.maps.Rectangle(o),nd(e,e.$rectangleObject,hd),Zp(e,e.$rectangleObject,t),e.$rectangleObject})).catch((function(e){throw e}));return this.$rectanglePromise=n,{$rectanglePromise:n}},props:{bounds:{type:Object,default:void 0},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$rectangleObject&&this.$rectangleObject.setMap&&this.$rectangleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),kh=["options"],Ph=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-street-view-pano-container"},[t("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-32786ad9_0",{source:".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",map:void 0,media:void 0})}),{name:"StreetViewPanorama",mixins:[lh],provide:function(){var e=this;return this.$panoPromise=new Promise((function(t,n){e.$panoPromiseDeferred={resolve:t,reject:n}})),{$panoPromise:this.$panoPromise,$mapPromise:this.$panoPromise}},props:{zoom:{type:Number,default:void 0},pov:{type:Object,default:void 0},position:{type:Object,default:void 0},pano:{type:String,default:void 0},motionTracking:{type:Boolean},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},replace:!1,computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$panoObject&&this.$panoObject.setZoom(e)}},mounted:function(){var e=this,t=["closeclick","status_changed"];return this.$gmapApiPromiseLazy().then((function(){var n=e.$refs["vue-street-view-pano"],r=ct({},e.options,Yp(e,cd)),o=(r.options,ht(r,kh));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),nd(e,e.$panoObject,cd),Zp(e,e.$panoObject,t),ed((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$panoObject.setPosition(e.finalLatLng)}))})),e.$panoPromiseDeferred.resolve(e.$panoObject),e.$panoPromise})).catch((function(e){throw e}))},methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},destroyed:function(){this.$panoObject&&this.$panoObject.setMap&&this.$panoObject.setMap(null)}},void 0,!1,void 0,!1,hh,void 0,void 0);function Eh(e,t){var n=!1;window.GoogleMapsCallback=function(){try{e(),n=!0,t&&t()}catch(e){window.console.error("Error executing the GoogleMapsCallback",e)}};var r=setTimeout((function(){var e=setInterval((function(){r&&(clearTimeout(r),r=void 0),null==(window&&window.google&&window.google.maps)||n||(window.GoogleMapsCallback(),n=!0),n&&(clearInterval(e),e=void 0)}),500)}),1e3)}var Th,Ih,Ah=(Th=!1,function(e,t){if("object"!==Gp(e))throw new Error("options should be an object");if("undefined"!=typeof document){var n=Hp({},e),r=n.libraries;if(Th)window.console.info("You already started the loading of google maps");else{Th=!0;var o="boolean"==typeof t&&t?"https://maps.google.cn":"https://maps.googleapis.com",i=document.createElement("SCRIPT");Array.isArray(r)&&(n.libraries=r.join(",")),n.callback="GoogleMapsCallback";var a=Object.keys(n).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(n[e]))})).join("&"),s="".concat(o,"/maps/api/js?").concat(a);i.setAttribute("src",s),i.setAttribute("async",""),i.setAttribute("defer",""),document.head.appendChild(i)}}}),Rh={HeatmapLayer:oh,KmlLayer:uh,Marker:yh,Polyline:Sh,Polygon:Ch,Circle:Cd,Cluster:eh,Rectangle:_h,DrawingManager:nh,InfoWindow:ah,MapLayer:gh,PlaceInput:bh,Autocomplete:vd,StreetViewPanorama:Ph,MapElementMixin:bd,MountableMixin:lh};for(var xh={install:function(e,t){var n=Hp({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);Ih=new e({data:{isReady:!1}});var r=new e,o=function(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return Xp((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{Eh(t,window[n&&n.load&&n.load.customCallback]),n.dynamicLoad||e(n.load,n.loadCn)}catch(e){r(e)}})).then(r)}));var o=new Promise((function(e){"undefined"!=typeof window&&Eh(e,window[n&&n.load&&n.load.customCallback])})).then(r);return Xp((function(){return o}))}}(Ah,Ih)(n);e.mixin({created:function(){this.$gmapDefaultResizeBus=r,this.$gmapApiPromiseLazy=o,this.$gmapOptions=n}}),e.$gmapDefaultResizeBus=r,e.$gmapApiPromiseLazy=o,e.$gmapOptions=n,n.installComponents&&(e.component("GmapMap",gh),e.component("GmapMarker",yh),e.component("GmapInfoWindow",ah),e.component("GmapHeatmapLayer",oh),e.component("GmapKmlLayer",uh),e.component("GmapPolyline",Sh),e.component("GmapPolygon",Ch),e.component("GmapCircle",Cd),e.component("GmapRectangle",_h),e.component("GmapDrawingManager",nh),e.component("GmapAutocomplete",vd),e.component("GmapPlaceInput",bh),e.component("GmapStreetViewPanorama",Ph))}},Lh="0123456789bcdefghjkmnpqrstuvwxyz",jh={},Mh=0;Mh<Lh.length;Mh++)jh[Lh.charAt(Mh)]=Mh;var Qh=[0,5,7,8,11,12,13,15,16,17,18],Vh=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Qh[i]}else void 0===n&&(n=9);for(var a,s=[],u=0,l=0,c=0,p=90,d=-90,h=180,f=-180;s.length<n;)if(l%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(p+d)/2)?(c=1+(c<<1),d=a):(c=0+(c<<1),p=a),l++,5===++u){var g=Lh[c];s.push(g),u=0,c=0}return s.join("")},Dh=function(e,t,n){n=n||52;for(var r,o=0,i=90,a=-90,s=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(s+u)/2)?(l+=1,u=r):s=r:e>(r=(i+a)/2)?(l+=1,a=r):i=r,o++;return l},Fh=function(e){for(var t,n=!0,r=90,o=-90,i=180,a=-180,s=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();s=jh[c];for(var p=4;p>=0;p--){var d=s>>p&1;n?(t=(i+a)/2,1===d?a=t:i=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,i]},Nh=function(e,t){for(var n=90,r=-90,o=180,i=-180,a=0,s=(t=t||52)/2,u=0;u<s;u++)a=Uh(e,2*(s-u)-1),0===Uh(e,2*(s-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Uh(e,t){return e/Math.pow(2,t)&1}var qh=function(e){var t=Fh(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},Bh=function(e,t){var n=Nh(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},zh=function(e,t){var n=qh(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Gh(o),r=Wh(r),Vh(r,o,e.length)},Hh=function(e,t,n){var r=Bh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Gh(i),o=Wh(o),Dh(o,i,n)};function Gh(e){return e>180?e%180-180:e<-180?180+e%180:e}function Wh(e){return e>90?90:e<-90?-90:e}var Zh={ENCODE_AUTO:"auto",encode:Vh,encode_uint64:Dh,encode_int:Dh,decode:qh,decode_int:Bh,decode_uint64:Bh,decode_bbox:Fh,decode_bbox_uint64:Nh,decode_bbox_int:Nh,neighbor:zh,neighbor_int:Hh,neighbors:function(e){var t,n,r=e.length,o=qh(e),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*s,n=Gh(n=a+o*u),t=Wh(t),Vh(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int:function(e,t){var n,r,o=Bh(e,t=t||52),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*s,r=Gh(r=a+o*u),n=Wh(n),Dh(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=Vh(e,t,o=o||9),a=Vh(n,r,o),s=qh(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Fh(i),p=Fh(a),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(zh(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Dh(e,t,o=o||52),a=Dh(n,r,o),s=Bh(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=Nh(i,o),p=Nh(a,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(Hh(i,[g,m],o));return f}},Kh=ot.setStreaming,Yh=ot.setQueryOptions,Xh=ot.updateQuery,Jh=ot.loadMore,ef=ot.setValue,tf=ot.updateComponentProps,nf=ot.setDefaultQuery,rf=ot.recordResultClick,of=ot.setMapData,af=at.isEqual,sf=at.getQueryOptions,uf=at.getClassName,lf=at.parseHits,cf=at.getOptionsFromQuery,pf=at.getResultStats,df={lat:37.7749,lng:122.4194},hf={width:"100%",height:"100vh",position:"relative"};function ff(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return ct({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function gf(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=Zh.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var mf={name:"ReactiveMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,autoCenter:jt.bool,getMapRef:jt.func.isRequired,center:Jn.location,defaultCenter:Jn.location,defaultPin:Jn.string,defaultZoom:jt.number.def(13),defaultQuery:Jn.func,innerClass:Jn.style,loader:Jn.title,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,pages:jt.number.def(5),currentPage:jt.number.def(0),pagination:jt.bool,showMarkers:jt.bool,defaultSearchAsMove:jt.bool,showSearchAsMove:jt.bool,defaultRadius:Jn.number,unit:Jn.string,autoClosePopover:jt.bool,renderMap:jt.func.isRequired,renderPopover:jt.func,calculateMarkers:jt.func,searchAsMoveLabel:jt.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return ct({},pf(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return br(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!$r(e,t,null,this.$props)){var n=sf(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),cf(this.$defaultQuery)&&(n=ct({},n,cf(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){af(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){af(e,t)||this.$emit("data",this.getData())},time:function(e,t){af(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!af(e,t)){var r=this.promotedResults,o=this.hits,i=lf(o)||[],a=lf(r)||[],s=i;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(s=s.filter((function(e){return!u.includes(e._id)}))),s=[].concat(a,s)}s=s.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return ct({},e,((t={})[n.dataField]=gf(e[n.dataField]),t))})),this.filteredResults=this.addNoise(s),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!af(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(df)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=ct({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?ff(i,s):i,r=[].concat(r,[o]),n[a]=s+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,a=0;n.forEach((function(e){if(e){var t,n,r=gf(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var s=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=s,i+=u,a+=l}})),o/=r,i/=r,a/=r;var s=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*s/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=lf(o)||[],a=lf(t)||[],s=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=ct({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return vr(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=sf(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,ct({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var a;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var s={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=s;var u={geo_bounding_box:(a={},a[this.dataField]=s,a)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=sf(this.$props);this.from=e,this.loadMoreAction(this.componentId,ct({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return ct({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?mr(e)?e(this.error):e:null},renderSearchAsMove:function(){var e=this.$createElement;return this.showSearchAsMove?e("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},attrs:{className:uf(this.innerClass,"checkboxContainer")||null}},[e(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:uf(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:uf(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(or,{attrs:{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass}})}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},x.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},x.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=sf(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=ct({},t,cf(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,a=this.center||this.defaultCenter,s=this.getArrPosition(a),u={distance:this.defaultRadius,coordinates:s.lat+", "+s.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:ct({},hf,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&t,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},yf=Br(gr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:Jh,setPageURL:ef,setQueryOptions:Yh,setStreaming:Kh,updateQuery:Xh,updateComponentProps:tf,setDefaultQuery:nf,recordResultClick:rf,setMapData:of})(mf),{componentType:x.reactiveMap,internalComponent:!0});mf.install=function(e){e.component(mf.name,yf)},mf.componentType=x.reactiveMap;var vf={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Of,Cf,wf,Sf=["options","position"],$f={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}(e,vf)),o=(r.options,r.position,ht(r,Sf));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),function(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set"+bf(r),l="get"+bf(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[u])throw new Error(u+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&s?function(e,t,n,r){void 0===r&&(r=!1);var o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}(e,s.map((function(e){return r+"."+e})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}(e,e.$infoWindowObject,vf),function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){var e=arguments[0];return e("div",[e("div",{ref:"flyaway"},[this.$scopedSlots.default()])])}},_f={name:"InfoWindowWrapperClusterManager",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object,marker:jt.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e($f,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},kf=["options"],Pf=at.isEqual,Ef=ot.recordResultClick,Tf={name:"ClusterMarkers",props:{markers:jt.array,getPosition:jt.func,defaultPin:jt.string,renderItem:jt.func,markerProps:jt.object,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){Pf(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,i=this.openMarkers,a=(i[o],ht(i,[o].map(yt))),s=n?{}:a;this.setOpenMarkers(s),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,i=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,s=o?((n={})[a]=e,n):ct({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(s),i(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e.metaData)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],i=[],a={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==a[e._id])a[e._id]=!0;else{var i=ct({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var s=t.renderItem(e);"label"in s&&(i.label=s.label),"icon"in s&&(i.icon=s.icon)}else t.defaultPin&&(i.icon={url:t.defaultPin});i.options;var u=ht(i,kf);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var s=[];o.forEach((function(e){s.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?s.push(e):i.push(e))})),r.removeMarkers(i),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=s}))})).catch((function(e){throw e}))}},render:function(){var e=this,t=arguments[0];return this.renderPopover?t("div",[Object.keys(this.openMarkers).map((function(n){var r=e.openMarkers[n],o=r.metaData;return t(_f,{key:n+"-InfoWindow",attrs:{id:n,renderPopover:function(t){return e.renderPopover({item:o,handleClose:function(){t(),e.closeMarker(o)}})},marker:r,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(r)}}}})}))]):null}},If=gr((function(){return null}),{recordResultClick:Ef})(Tf),Af=Rh.InfoWindow,Rf={name:"InfoWindowWrapper",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e(Af,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},xf=Rh.MapElementMixin,Lf={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:jt.func.isRequired,handleMouseOver:jt.func,handleFocus:jt.func,handleMouseOut:jt.func,handleBlur:jt.func,handleClick:jt.func},data:function(){return{opacity:.01}},mixins:[xf],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}pt(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},jf=on("div")(Of||(Of=ft(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),Mf=on("div")(Cf||(Cf=ft(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),Qf=Jt(wf||(wf=ft(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Vf=Rh.Marker,Df=ot.recordResultClick,Ff={name:"GoogleMapMarker",props:{index:jt.number,marker:jt.object.isRequired,getPosition:jt.func.isRequired,defaultPin:jt.string,renderItem:jt.func,setOpenMarkers:jt.func.isRequired,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,openMarkers:jt.object,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,a=n.autoClosePopover,s=n.handlePreserveCenter,u=i._id;r(a?((e={})[u]=!0,e):ct({},o,((t={})[u]=!0,t))),s(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,a=n._id,s=(i[a],ht(i,[a].map(yt)));t(r?{}:s),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,a=i.getPosition,s=i.renderPopover,u=i.openMarkers;return t&&(o={position:a(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Rf,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.renderPopover,s=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},[t(jf,[c.label]),t(Mf),a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});if(!("icon"in c))return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Vf,{key:u._id,attrs:{zIndex:l.zIndex,position:r(u),options:{metaData:u},icon:this.markerIcon||l.icon},on:{click:function(){return e.openMarker()},mouseover:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex},props:ct({},s)},[a?this.renderPopoverClick(u):null])}},Nf=gr((function(){return null}),{recordResultClick:Df})(Ff),Uf=Rh.Cluster,qf={name:"GoogleMapMarkers",props:{resultsToRender:jt.array,getPosition:jt.func,renderItem:jt.func,renderClusterPopover:jt.func,defaultPin:jt.string,autoClosePopover:jt.bool,handlePreserveCenter:jt.func,renderPopover:jt.func,markerProps:jt.object,clusterProps:jt.object,showMarkerClusters:jt.bool,highlightMarkerOnHover:jt.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=arguments[0],n=this.$props.resultsToRender,r=this.openMarkers,o={openMarkers:r,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?t("div",[t(Uf,{props:ct({},this.clusterProps),on:{click:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[t(If,{attrs:{getPosition:o.getPosition,markers:n,defaultPin:o.defaultPin,renderItem:o.renderItem,markerProps:o.markerProps,handlePreserveCenter:o.handlePreserveCenter,autoClosePopover:o.autoClosePopover,renderPopover:o.renderPopover,highlightMarkerOnHover:o.highlightMarkerOnHover},on:ct({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(Rf,{attrs:{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}}}):null]):t("div",[n.map((function(n,r){return t(Nf,{attrs:{index:r,marker:n},props:ct({},o),on:ct({},e.$listeners)})}))])}},Bf=Rh.MapLayer,zf={name:"ReactiveGoogleMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,defaultQuery:jt.func,loader:Jn.title,defaultZoom:jt.number.def(13),react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,mapProps:jt.object,showMarkers:jt.bool.def(!0),showMarkerClusters:jt.bool.def(!1),searchAsMove:jt.bool.def(!1),searchAsMoveLabel:jt.string,markerProps:jt.object,clusterProps:jt.object,renderItem:jt.func,showSearchAsMove:jt.bool.def(!0),autoClosePopover:jt.bool,pagination:jt.bool,defaultPin:jt.string,autoCenter:jt.bool,defaultCenter:Jn.location,center:Jn.location,defaultRadius:Jn.number,unit:Jn.string,pages:jt.number.def(5),calculateMarkers:jt.func,highlightMarkerOnHover:jt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,a=e.handleOnDragEnd,s=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(Bf,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:ct({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?h(qf,{attrs:{resultsToRender:n,getPosition:c,markerProps:this.markerProps,clusterProps:this.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:this.highlightMarkerOnHover,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:ct({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&"<ConnectClusterMarkers>"===t._name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(yf,oo([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(zf.name,zf),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(xh,{load:{key:t.key,libraries:"places"},installComponents:!1})}};zf.componentType=x.reactiveMap;var Hf=["aggs","size"],Gf=["query"],Wf=["query"],Zf=[x.numberBox,x.ratingsFilter],Kf=[x.reactiveList,x.reactiveMap];function Yf(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var Xf,Jf,eg=function(e){var t=e.theme;return Jt(Xf||(Xf=ft(["\n\tcolor: ",";\n"])),t.colors.alertColor)},tg=on("div")(Jf||(Jf=ft(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&eg})),ng=at.getClassName,rg=at.isEqual,og={name:"RangeInput",components:{RangeSlider:Cp},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Jn.string,default:""},defaultValue:Jn.range,validateRange:Jn.func,value:Jn.range,dataField:Jn.stringRequired,innerClass:Jn.style,range:{types:Jn.range,default:function(){return{start:0,end:10}}},rangeLabels:Jn.rangeLabels,stepValue:Jn.number,componentStyle:Jn.style,componentId:Jn.stringRequired,includeNullValues:jt.bool,beforeValueChange:Jn.func,customQuery:Jn.func,data:Jn.data,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,endpoint:Jn.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!rg(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=ct({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=ct({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){rg(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,O=t.URLParams,C=t.sliderOptions,w=t.nestedField;return e(ps,{style:l,class:n},[e(Cp,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:O,sliderOptions:C,nestedField:w},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Lo,{class:ng(s,"input-container")||""},[e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":a+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:ng(s,"input")||"",domProps:ct({},{value:this.currentValue.start})}),!this.isStartValid&&e(tg,{attrs:{alert:!0}},["Input range is invalid"])]),e(Lo,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":a+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:ng(s,"input")||"",domProps:ct({},{value:this.currentValue.end})}),!this.isEndValid&&e(tg,{attrs:{alert:!0}},["Input range is invalid"])])])])}},ig=Br(gr((function(e){return{themePreset:e.config.themePreset}}),{})(og),{componentType:x.rangeInput});og.install=function(e){e.component(og.name,ig)},og.componentType=x.rangeInput;var ag=[ni,np,lp,Yi,uu,Iu,Ju,pl,Dc,Wc,Op,Qp,Sc,Ic,cc,Fl,ec,qp,og];function sg(e){ag.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&sg(window.Vue);var ug={version:"2.0.0-alpha.2",install:sg};e.DataSearch=uu,e.DynamicRangeSlider=Qp,e.MultiDropdownList=ec,e.MultiList=pl,e.MultiRange=Wc,e.RangeInput=og,e.RangeSlider=Op,e.ReactiveBase=Yi,e.ReactiveComponent=Sc,e.ReactiveGoogleMap=zf,e.ReactiveList=ni,e.ResultCard=np,e.ResultList=lp,e.SearchBox=Iu,e.SelectedFilters=Ic,e.SingleDropdownList=Fl,e.SingleList=Ju,e.SingleRange=Dc,e.StateProvider=qp,e.ToggleButton=cc,e.default=ug,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=ct({},n.enableAppbase&&ct({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers,n.enableAppbase&&n.endpoint&&n.endpoint.headers?n.endpoint.headers:{}),u=n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",l=n.transformRequest||null;n.enableAppbase&&n.endpoint&&(n.endpoint.url&&(u=n.endpoint.url),l=function(e){var t=Oe(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:i,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,endpoint:n.endpoint},p=Vi(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},g={},m={},y={},v=[],b={},O=[],C={},S={},$={},_={},P={},T={},I={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){L.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Kf.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;Zf.includes(n)&&(p=!1),h=q(h,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(P[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(T[e.componentId]=e.defaultQuery(l,r));var g={};e&&e.source.generateQueryOptions&&(g=ct({},g,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),g&&Object.keys(g).length||v&&Object.keys(v).length){var b=g||{},O=b.aggs,C=b.size,w=ht(b,Hf);if(O&&Object.keys(O).length&&(o=!0,g=ct({},g,{aggs:O,size:void 0===C?100:C})),w&&Object.keys(w).length||v&&Object.keys(v).length){w||(w={}),v||(v={});var S=ct({},w,v,{size:C});if(o&&(S=ct({},w,v)),i){var $=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&($=h[e.componentId].value-1||0);var _=e.size||10,R=$*_;r.from=R,S=ct({},S,v,{size:_,from:R})}g=ct({},g,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Ee(x,a)),y=k(y,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!Me(e.componentType)){var j=function(e,t){var n=Yf(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},M=j.query,Q=ht(j,Gf);f=E(f,{type:"SET_QUERY",component:a,query:M}),m=A(m,{type:"SET_QUERY_OPTIONS",component:a,options:ct({},g,Q)})}var V=function(e,t){var n=Yf(t,e);if(e.customQuery){var r=e.customQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ht(V,Wf),N=D;f=E(f,{type:"SET_QUERY",component:e.componentId,query:N}),m=A(m,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:ct({},F)}),r.componentType=n,I[e.componentId]=r})),_={components:d,dependencyTree:y,queryList:f,queryOptions:m,selectedValues:h,internalValues:{},props:I,customQueries:P,defaultQueries:T},e.forEach((function(e){var t=Pe(e.componentId,y,f,m),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),O=[].concat(O,[e.componentId]);var s=ct({query:ct({},r)},o,m[e.componentId]);if(g=ct({},g,((a={})[e.componentId]=s,a)),n.enableAppbase){var u,l=je(e.componentId,Le(_,e.componentId,m&&Object.keys(m[e.componentId]).length?{from:m[e.componentId].from}:null));if(l)b=ct({},b,((u={})[e.componentId]=l,u),xe(_,e.componentId,O))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},s])}}})),_.queryLog=g;var R=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))},x=function(e){var t=O.map((function(t,n){return new Promise((function(r,o){R(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(S=ct({},S,((o={})[t]=e.aggregations,o)),$=ie($,{type:w,aggregations:e.aggregations,append:!1}));C=ct({},C,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){_=ct({},_,{hits:C,aggregations:S}),r(_)}))};if(c.graphQLUrl){(function(e){if(c.transformRequest&&"function"==typeof c.transformRequest){var t=c.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(v).then((function(e){Ge(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){x(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(b).length){v=Object.keys(b).map((function(e){return b[e]}));var j={};c.analyticsConfig&&(j.recordAnalytics=Fe(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,j.userId=Fe(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,j.enableQueryRules=Fe(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,j.customEvents=Fe(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,j).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=O.map((function(r){return new Promise((function(s,u){R(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return ct({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)S=ct({},S,((c={})[r]=u.aggregations,c));a[r]=e._timestamp;var p=u.hits?u.hits:u[r].hits;C=ct({},C,((l={})[r]={hits:p.hits,total:"object"==typeof p.total?p.total.value:p.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){_=ct({},_,{hits:C,timestamp:a,aggregations:S,compositeAggregations:$,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){x(e)})).catch((function(e){return o(e)}))}))},e.install=sg,e.version="2.0.0-alpha.2",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
52
|
+
***************************************************************************** */var Ud=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t,n,r,o=e.prototype;return o.push=function(e){this.markers.push(e)},o.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},t=e,(n=[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(e,t){return e.extend(t.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return e.getVisible()})).length}}])&<(t.prototype,n),r&<(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qd=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return Bd(t)},e}(),Bd=function(e){return e.map((function(e){return new Ud({position:e.getPosition(),markers:[e]})}))},zd=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,i=void 0===o?60:o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Rd(Object.assign({maxZoom:n.maxZoom,radius:i},a)),n.state={zoom:null},n}pt(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!Nd(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var n=this.markers.map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}}}));this.superCluster.load(n)}var r={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&r.zoom>this.maxZoom||(t=t||!Nd(this.state,r)),this.state=r,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(this.transformCluster.bind(this))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Ud({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:new google.maps.LatLng({lat:r,lng:n})});var i=o.marker;return new Ud({markers:[i],position:i.getPosition()})},t}(qd),Hd=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},Gd=function(){function e(){}return e.prototype.render=function(e,t){var n=e.count,r=e.position,o=n>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'+o+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>');return new google.maps.Marker({position:r,icon:{url:"data:image/svg+xml;base64,"+i,scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of "+n+" markers",zIndex:Number(google.maps.Marker.MAX_ZINDEX)+n})},e}();var Wd,Zd=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Wd||(Wd={}));var Kd,Yd=function(e,t,n){n.fitBounds(t.bounds)},Xd=function(e){function t(t){var n,r=t.map,o=t.markers,i=void 0===o?[]:o,a=t.algorithm,s=void 0===a?new zd({}):a,u=t.renderer,l=void 0===u?new Gd:u,c=t.onClusterClick,p=void 0===c?Yd:c;return(n=e.call(this)||this).markers=[].concat(i),n.clusters=[],n.algorithm=s,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}pt(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Wd.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;(r||null==r)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,Wd.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return e.setMap(null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new Hd(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,Wd.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(Zd),Jd=["options"],eh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"ClusterIcon",mixins:[bd],provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,md)),o=(r.options,ht(r,Jd));if(void 0===Xd)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");var i=o.map,a=o.markers,s=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new Xd({map:i,markers:a,algorithm:s,onClusterClick:u,renderer:l}),nd(e,e.$clusterObject,{}),Zp(e,e.$clusterObject,t),Object.keys({}).forEach((function(t){({})[t].twoWay&&e.$on(t.toLowerCase()+"_changed",e.reinsertMarkers)})),e.$clusterObject})).catch((function(e){throw e}));return this.$clusterPromise=n,{$clusterPromise:n}},props:{algorithm:{type:Object,default:void 0},onClusterClick:{type:Function,default:void 0},renderer:{type:Object,default:void 0},options:{type:Object,default:void 0}},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()},destroyed:function(){this.$clusterObject&&this.$clusterObject.setMap&&this.$clusterObject.setMap(null)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},methods:{reinsertMarkers:function(){var e=[].concat(this.$clusterObject.markers);this.$clusterObject.clearMarkers(),this.$clusterObject.addMarkers(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),th=["options"],nh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},staticRenderFns:[]},void 0,{name:"DrawingManager",mixins:[bd],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=ct({},e.options,{map:t},Yp(e,od)),r=(n.options,ht(n,th));e.drawingModes=Object.keys(r).reduce((function(e,t){var n=t.split("Options");return n.length>1&&e.push(n[0]),e}),[]);var o=e.position&&google.maps.ControlPosition[e.position]?google.maps.ControlPosition[e.position]:google.maps.ControlPosition.TOP_LEFT;return r.drawingMode=null,r.drawingControl=!e.$scopedSlots.default,r.drawingControlOptions={drawingModes:e.drawingModes,position:o},e.$drawingManagerObject=new google.maps.drawing.DrawingManager(r),nd(e,e.$drawingManagerObject,od),e.$drawingManagerObject.addListener("overlaycomplete",(function(t){return e.addShape(t)})),e.$map.addListener("click",e.clearSelection),e&&e.finalShapes&&e.finalShapes.length&&e.drawAll(),e.$drawingManagerObject})).catch((function(e){throw e}));return this.$drawingManagerPromise=t,{$drawingManagerPromise:t}},props:{circleOptions:{type:Object,default:void 0},markerOptions:{type:Object,default:void 0},polygonOptions:{type:Object,default:void 0},polylineOptions:{type:Object,default:void 0},rectangleOptions:{type:Object,default:void 0},position:{type:String,default:""},shapes:{type:Array,required:!0}},data:function(){return{selectedShape:null,drawingModes:[],options:{drawingMode:null,drawingControl:!0,drawingControlOptions:{}},finalShapes:[]}},watch:{position:function(e){if(this.$drawingManagerObject){var t={position:e&&google.maps.ControlPosition[e]?google.maps.ControlPosition[e]:google.maps.ControlPosition.TOP_LEFT,drawingModes:this.drawingModes};this.$drawingManagerObject.setOptions({drawingControlOptions:t})}},circleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({circleOptions:e})},markerOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({markerOptions:e})},polygonOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polygonOptions:e})},polylineOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polylineOptions:e})},rectangleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({rectangleOptions:e})}},mounted:function(){this.finalShapes=[].concat(this.shapes)},destroyed:function(){this.clearAll(),this.$drawingManagerObject&&this.$drawingManagerObject.setMap&&this.$drawingManagerObject.setMap(null)},methods:{setDrawingMode:function(e){this.$drawingManagerObject.setDrawingMode(e)},drawAll:function(){var e=this,t={circle:google.maps.Circle,marker:google.maps.Marker,polygon:google.maps.Polygon,polyline:google.maps.Polyline,rectangle:google.maps.Rectangle},n=this;this.finalShapes.forEach((function(r){var o=new t[r.type](r.overlay);o.setMap(e.$map),r.overlay=o,google.maps.event.addListener(o,"click",(function(){n.setSelection(r)}))}))},clearAll:function(){this.clearSelection(),this.finalShapes.forEach((function(e){e.overlay.setMap(null)}))},clearSelection:function(){this.selectedShape&&(this.selectedShape.overlay.set("fillColor","#777"),this.selectedShape.overlay.set("strokeColor","#999"),this.selectedShape.overlay.setEditable(!1),this.selectedShape.overlay.setDraggable(!1),this.selectedShape=null)},setSelection:function(e){this.clearSelection(),this.selectedShape=e,e.overlay.setEditable(!0),e.overlay.setDraggable(!0),this.selectedShape.overlay.set("fillColor","#555"),this.selectedShape.overlay.set("strokeColor","#777")},deleteSelection:function(){if(this.selectedShape){this.selectedShape.overlay.setMap(null);var e=this.finalShapes.indexOf(this.selectedShape);e>-1&&this.finalShapes.splice(e,1)}},addShape:function(e){this.setDrawingMode(null),this.finalShapes.push(e),this.$emit("update:shapes",[].concat(this.finalShapes));var t=this;google.maps.event.addListener(e.overlay,"click",(function(){t.setSelection(e)})),google.maps.event.addListener(e.overlay,"rightclick",(function(){t.deleteSelection()})),this.setSelection(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),rh=["options"],oh=yd({},void 0,{name:"HeatmapLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:e.$map},Yp(e,id)),o=(r.options,ht(r,rh));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),nd(e,e.$heatmapLayerObject,id),Zp(e,e.$heatmapLayerObject,t),e.$heatmapLayerObject})).catch((function(e){throw e}));return this.$heatmapLayerPromise=n,{$heatmapLayerPromise:n}},props:{options:{type:Object,default:function(){}},data:{type:Array,default:void 0}},destroyed:function(){this.$heatmapLayerObject&&this.$heatmapLayerObject.setMap&&this.$heatmapLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),ih=["options","position"],ah=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"InfoWindow",mixins:[bd],inject:{$markerPromise:{default:null}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ad)),o=(r.options,r.position,ht(r,ih));return o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(t){return e.$markerObject=t,t})),e.$infoWindowObject=new google.maps.InfoWindow(o),nd(e,e.$infoWindowObject,ad),Zp(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),sh=["options"],uh=yd({},void 0,{name:"KmlLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,sd)),o=(r.options,ht(r,sh));return e.$kmlLayerObject=new google.maps.KmlLayer(o),nd(e,e.$kmlLayerObject,sd),Zp(e,e.$kmlLayerObject,t),e.$kmlLayerObject})).catch((function(e){throw e}));return this.$kmlLayerPromise=n,{$kmlLayerPromise:n}},props:{clickable:{type:Boolean,default:!0},map:{type:Object,default:void 0},preserveViewport:{type:Boolean,default:!1},screenOverlays:{type:Boolean,default:!1},suppressInfoWindows:{type:Boolean,default:void 0},url:{type:String,default:""},zIndex:{type:Number,default:void 0},options:{type:Object,default:void 0}},destroyed:function(){this.$kmlLayerObject&&this.$kmlLayerObject.setMap&&this.$kmlLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),lh={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}},ch=["options"],ph={name:"MapLayer",mixins:[lh],provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},props:{center:{type:Object,required:!0},zoom:{type:Number,required:!1,default:void 0},heading:{type:Number,default:void 0},mapTypeId:{type:String,default:"roadmap"},tilt:{type:Number,default:void 0},options:{type:Object,default:void 0}},data:function(){return{recyclePrefix:"__gmc__"}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},beforeDestroy:function(){var e=this.getRecycleKey();window[e]&&(window[e].div=this.$mapObject.getDiv())},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=ct({},e.options,Yp(e,ud)),r=(n.options,ht(n,ch)),o=e.getRecycleKey();return e&&e.options&&e.options.recycle&&window[o]?(t.appendChild(window[o].div),e.$mapObject=window[o].map,e.$mapObject.setOptions(r)):(e.$mapObject=new google.maps.Map(t,r),window[o]={map:e.$mapObject}),nd(e,e.$mapObject,ud),Zp(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),ed((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:{resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()},panBy:function(){var e;this.$mapObject&&(e=this.$mapObject).panBy.apply(e,arguments)},panTo:function(){var e;this.$mapObject&&(e=this.$mapObject).panTo.apply(e,arguments)},panToBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).panToBounds.apply(e,arguments)},fitBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).fitBounds.apply(e,arguments)},getRecycleKey:function(){return this&&this.options&&this.options.recycle?this.recyclePrefix+this.options.recycle:this.recyclePrefix}},destroyed:function(){this.$mapObject&&this.$mapObject.setMap&&this.$mapObject.setMap(null)}},dh="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function hh(e){return function(e,t){return function(e,t){var n=dh?t.media||"default":e,r=fh[n]||(fh[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var o=t.source;if(t.map&&(o+="\n/*# sourceURL="+t.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===Kd&&(Kd=document.head||document.getElementsByTagName("head")[0]),Kd.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,a=document.createTextNode(o),s=r.element.childNodes;s[i]&&r.element.removeChild(s[i]),s.length?r.element.insertBefore(a,s[i]):r.element.appendChild(a)}}}(e,t)}}var fh={};var gh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-map-container"},[t("div",{ref:"vue-map",staticClass:"vue-map"}),this._v(" "),t("div",{staticClass:"vue-map-hidden"},[this._t("default")],2),this._v(" "),this._t("visible")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-58f81a38_0",{source:".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",map:void 0,media:void 0})}),ph,void 0,!1,void 0,!1,hh,void 0,void 0),mh=["options"],yh=yd({},void 0,{name:"MarkerIcon",mixins:[bd],inject:{$clusterPromise:{default:null}},provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ld)),o=(r.options,ht(r,mh));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),nd(e,e.$markerObject,ld),Zp(e,e.$markerObject,t),e.$markerObject.addListener("dragend",(function(){var t=e.$markerObject.getPosition();e.$emit("update:position",{lat:t.lat(),lng:t.lng()})})),e.$clusterPromise&&e.$clusterPromise.then((function(t){t.addMarker(e.$markerObject),e.$clusterObject=t})),e.$markerObject})).catch((function(e){throw e}));return this.$markerPromise=n,{$markerPromise:n}},props:{animation:{type:Number,default:void 0},attribution:{type:Object,default:void 0},clickable:{type:Boolean,default:!0},cursor:{type:String,default:void 0},draggable:{type:Boolean,default:!1},icon:{type:[String,Object],default:void 0},label:{type:[String,Object],default:void 0},opacity:{type:Number,default:1},options:{type:Object,default:void 0},place:{type:Object,default:void 0},position:{type:Object,default:void 0},shape:{type:Object,default:void 0},title:{type:String,default:void 0},visible:{type:Boolean,default:!0},zIndex:{type:Number,default:void 0}},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject&&this.$markerObject.setMap&&this.$markerObject.setMap(null))},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""}},void 0,void 0,void 0,!1,void 0,void 0,void 0),vh=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],bh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("span",{domProps:{textContent:this._s(this.label)}}),this._v(" "),t("input",{ref:"input",class:this.className,attrs:{type:"text",placeholder:this.placeholder}})])},staticRenderFns:[]},void 0,{name:"PlaceInput",props:{bounds:{type:Object,default:void 0},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:void 0},placeholder:{required:!1,type:String,default:void 0},className:{required:!1,type:String,default:void 0},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},created:function(){window.console.warn("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead, it will be removed in the next major release of this plugin.")},mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",(function(){t.value=e.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var t=Yp(e,gd);if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.$autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=ht(gd,vh);nd(e,e.$autoCompleter,n),e.$autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.$autoCompleter.getPlace())}))}))},destroyed:function(){this.$autoCompleter&&this.$autoCompleter.setMap&&this.$autoCompleter.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),Oh=["options","path","paths"],Ch=yd({},void 0,{name:"PolygonShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,pd)),o=(r.options,r.path,r.paths,ht(r,Oh));e.$polygonObject=new google.maps.Polygon(o),nd(e,e.$polygonObject,pd),Zp(e,e.$polygonObject,t);var i=function(){};return e.$watch("paths",(function(t){if(t){i(),e.$polygonObject.setPaths(t);for(var n=function(){e.$emit("paths_changed",e.$polygonObject.getPaths())},r=[],o=e.$polygonObject.getPaths(),a=0;a<o.getLength();a+=1){var s=o.getAt(a);r.push([s,s.addListener("insert_at",n)]),r.push([s,s.addListener("remove_at",n)]),r.push([s,s.addListener("set_at",n)])}r.push([o,o.addListener("insert_at",n)]),r.push([o,o.addListener("remove_at",n)]),r.push([o,o.addListener("set_at",n)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$watch("path",(function(t){if(t){i(),e.$polygonObject.setPaths(t);var n=e.$polygonObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polygonObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polygonObject})).catch((function(e){throw e}));return this.$polygonPromise=n,{$polygonPromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,noBind:!0,default:void 0},paths:{type:Array,noBind:!0,default:void 0}},destroyed:function(){this.$polygonObject&&this.$polygonObject.setMap&&this.$polygonObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),wh=["options"],Sh=yd({},void 0,{name:"PolylineShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,dd)),o=(r.options,ht(r,wh));e.$polylineObject=new google.maps.Polyline(o),nd(e,e.$polylineObject,dd),Zp(e,e.$polylineObject,t);var i=function(){};return e.$watch("path",(function(t){if(t){i(),e.$polylineObject.setPath(t);var n=e.$polylineObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polylineObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polylineObject})).catch((function(e){throw e}));return this.$polylinePromise=n,{$polylinePromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,default:void 0}},destroyed:function(){this.$polylineObject&&this.$polylineObject.setMap&&this.$polylineObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),$h=["options"],_h=yd({},void 0,{name:"RectangleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,hd)),o=(r.options,ht(r,$h));return e.$rectangleObject=new google.maps.Rectangle(o),nd(e,e.$rectangleObject,hd),Zp(e,e.$rectangleObject,t),e.$rectangleObject})).catch((function(e){throw e}));return this.$rectanglePromise=n,{$rectanglePromise:n}},props:{bounds:{type:Object,default:void 0},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$rectangleObject&&this.$rectangleObject.setMap&&this.$rectangleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),kh=["options"],Ph=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-street-view-pano-container"},[t("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-32786ad9_0",{source:".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",map:void 0,media:void 0})}),{name:"StreetViewPanorama",mixins:[lh],provide:function(){var e=this;return this.$panoPromise=new Promise((function(t,n){e.$panoPromiseDeferred={resolve:t,reject:n}})),{$panoPromise:this.$panoPromise,$mapPromise:this.$panoPromise}},props:{zoom:{type:Number,default:void 0},pov:{type:Object,default:void 0},position:{type:Object,default:void 0},pano:{type:String,default:void 0},motionTracking:{type:Boolean},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},replace:!1,computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$panoObject&&this.$panoObject.setZoom(e)}},mounted:function(){var e=this,t=["closeclick","status_changed"];return this.$gmapApiPromiseLazy().then((function(){var n=e.$refs["vue-street-view-pano"],r=ct({},e.options,Yp(e,cd)),o=(r.options,ht(r,kh));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),nd(e,e.$panoObject,cd),Zp(e,e.$panoObject,t),ed((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$panoObject.setPosition(e.finalLatLng)}))})),e.$panoPromiseDeferred.resolve(e.$panoObject),e.$panoPromise})).catch((function(e){throw e}))},methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},destroyed:function(){this.$panoObject&&this.$panoObject.setMap&&this.$panoObject.setMap(null)}},void 0,!1,void 0,!1,hh,void 0,void 0);function Eh(e,t){var n=!1;window.GoogleMapsCallback=function(){try{e(),n=!0,t&&t()}catch(e){window.console.error("Error executing the GoogleMapsCallback",e)}};var r=setTimeout((function(){var e=setInterval((function(){r&&(clearTimeout(r),r=void 0),null==(window&&window.google&&window.google.maps)||n||(window.GoogleMapsCallback(),n=!0),n&&(clearInterval(e),e=void 0)}),500)}),1e3)}var Th,Ih,Ah=(Th=!1,function(e,t){if("object"!==Gp(e))throw new Error("options should be an object");if("undefined"!=typeof document){var n=Hp({},e),r=n.libraries;if(Th)window.console.info("You already started the loading of google maps");else{Th=!0;var o="boolean"==typeof t&&t?"https://maps.google.cn":"https://maps.googleapis.com",i=document.createElement("SCRIPT");Array.isArray(r)&&(n.libraries=r.join(",")),n.callback="GoogleMapsCallback";var a=Object.keys(n).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(n[e]))})).join("&"),s="".concat(o,"/maps/api/js?").concat(a);i.setAttribute("src",s),i.setAttribute("async",""),i.setAttribute("defer",""),document.head.appendChild(i)}}}),Rh={HeatmapLayer:oh,KmlLayer:uh,Marker:yh,Polyline:Sh,Polygon:Ch,Circle:Cd,Cluster:eh,Rectangle:_h,DrawingManager:nh,InfoWindow:ah,MapLayer:gh,PlaceInput:bh,Autocomplete:vd,StreetViewPanorama:Ph,MapElementMixin:bd,MountableMixin:lh};for(var xh={install:function(e,t){var n=Hp({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);Ih=new e({data:{isReady:!1}});var r=new e,o=function(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return Xp((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{Eh(t,window[n&&n.load&&n.load.customCallback]),n.dynamicLoad||e(n.load,n.loadCn)}catch(e){r(e)}})).then(r)}));var o=new Promise((function(e){"undefined"!=typeof window&&Eh(e,window[n&&n.load&&n.load.customCallback])})).then(r);return Xp((function(){return o}))}}(Ah,Ih)(n);e.mixin({created:function(){this.$gmapDefaultResizeBus=r,this.$gmapApiPromiseLazy=o,this.$gmapOptions=n}}),e.$gmapDefaultResizeBus=r,e.$gmapApiPromiseLazy=o,e.$gmapOptions=n,n.installComponents&&(e.component("GmapMap",gh),e.component("GmapMarker",yh),e.component("GmapInfoWindow",ah),e.component("GmapHeatmapLayer",oh),e.component("GmapKmlLayer",uh),e.component("GmapPolyline",Sh),e.component("GmapPolygon",Ch),e.component("GmapCircle",Cd),e.component("GmapRectangle",_h),e.component("GmapDrawingManager",nh),e.component("GmapAutocomplete",vd),e.component("GmapPlaceInput",bh),e.component("GmapStreetViewPanorama",Ph))}},Lh="0123456789bcdefghjkmnpqrstuvwxyz",jh={},Mh=0;Mh<Lh.length;Mh++)jh[Lh.charAt(Mh)]=Mh;var Qh=[0,5,7,8,11,12,13,15,16,17,18],Vh=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Qh[i]}else void 0===n&&(n=9);for(var a,s=[],u=0,l=0,c=0,p=90,d=-90,h=180,f=-180;s.length<n;)if(l%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(p+d)/2)?(c=1+(c<<1),d=a):(c=0+(c<<1),p=a),l++,5===++u){var g=Lh[c];s.push(g),u=0,c=0}return s.join("")},Dh=function(e,t,n){n=n||52;for(var r,o=0,i=90,a=-90,s=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(s+u)/2)?(l+=1,u=r):s=r:e>(r=(i+a)/2)?(l+=1,a=r):i=r,o++;return l},Fh=function(e){for(var t,n=!0,r=90,o=-90,i=180,a=-180,s=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();s=jh[c];for(var p=4;p>=0;p--){var d=s>>p&1;n?(t=(i+a)/2,1===d?a=t:i=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,i]},Nh=function(e,t){for(var n=90,r=-90,o=180,i=-180,a=0,s=(t=t||52)/2,u=0;u<s;u++)a=Uh(e,2*(s-u)-1),0===Uh(e,2*(s-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Uh(e,t){return e/Math.pow(2,t)&1}var qh=function(e){var t=Fh(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},Bh=function(e,t){var n=Nh(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},zh=function(e,t){var n=qh(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Gh(o),r=Wh(r),Vh(r,o,e.length)},Hh=function(e,t,n){var r=Bh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Gh(i),o=Wh(o),Dh(o,i,n)};function Gh(e){return e>180?e%180-180:e<-180?180+e%180:e}function Wh(e){return e>90?90:e<-90?-90:e}var Zh={ENCODE_AUTO:"auto",encode:Vh,encode_uint64:Dh,encode_int:Dh,decode:qh,decode_int:Bh,decode_uint64:Bh,decode_bbox:Fh,decode_bbox_uint64:Nh,decode_bbox_int:Nh,neighbor:zh,neighbor_int:Hh,neighbors:function(e){var t,n,r=e.length,o=qh(e),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*s,n=Gh(n=a+o*u),t=Wh(t),Vh(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int:function(e,t){var n,r,o=Bh(e,t=t||52),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*s,r=Gh(r=a+o*u),n=Wh(n),Dh(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=Vh(e,t,o=o||9),a=Vh(n,r,o),s=qh(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Fh(i),p=Fh(a),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(zh(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Dh(e,t,o=o||52),a=Dh(n,r,o),s=Bh(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=Nh(i,o),p=Nh(a,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(Hh(i,[g,m],o));return f}},Kh=ot.setStreaming,Yh=ot.setQueryOptions,Xh=ot.updateQuery,Jh=ot.loadMore,ef=ot.setValue,tf=ot.updateComponentProps,nf=ot.setDefaultQuery,rf=ot.recordResultClick,of=ot.setMapData,af=at.isEqual,sf=at.getQueryOptions,uf=at.getClassName,lf=at.parseHits,cf=at.getOptionsFromQuery,pf=at.getResultStats,df={lat:37.7749,lng:122.4194},hf={width:"100%",height:"100vh",position:"relative"};function ff(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return ct({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function gf(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=Zh.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var mf={name:"ReactiveMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,autoCenter:jt.bool,getMapRef:jt.func.isRequired,center:Jn.location,defaultCenter:Jn.location,defaultPin:Jn.string,defaultZoom:jt.number.def(13),defaultQuery:Jn.func,innerClass:Jn.style,loader:Jn.title,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,pages:jt.number.def(5),currentPage:jt.number.def(0),pagination:jt.bool,showMarkers:jt.bool,defaultSearchAsMove:jt.bool,showSearchAsMove:jt.bool,defaultRadius:Jn.number,unit:Jn.string,autoClosePopover:jt.bool,renderMap:jt.func.isRequired,renderPopover:jt.func,calculateMarkers:jt.func,searchAsMoveLabel:jt.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return ct({},pf(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return br(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!$r(e,t,null,this.$props)){var n=sf(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),cf(this.$defaultQuery)&&(n=ct({},n,cf(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){af(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){af(e,t)||this.$emit("data",this.getData())},time:function(e,t){af(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!af(e,t)){var r=this.promotedResults,o=this.hits,i=lf(o)||[],a=lf(r)||[],s=i;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(s=s.filter((function(e){return!u.includes(e._id)}))),s=[].concat(a,s)}s=s.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return ct({},e,((t={})[n.dataField]=gf(e[n.dataField]),t))})),this.filteredResults=this.addNoise(s),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!af(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(df)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=ct({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?ff(i,s):i,r=[].concat(r,[o]),n[a]=s+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,a=0;n.forEach((function(e){if(e){var t,n,r=gf(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var s=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=s,i+=u,a+=l}})),o/=r,i/=r,a/=r;var s=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*s/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=lf(o)||[],a=lf(t)||[],s=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=ct({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return vr(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=sf(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,ct({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var a;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var s={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=s;var u={geo_bounding_box:(a={},a[this.dataField]=s,a)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=sf(this.$props);this.from=e,this.loadMoreAction(this.componentId,ct({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return ct({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?mr(e)?e(this.error):e:null},renderSearchAsMove:function(){var e=this.$createElement;return this.showSearchAsMove?e("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},attrs:{className:uf(this.innerClass,"checkboxContainer")||null}},[e(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:uf(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:uf(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(or,{attrs:{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass}})}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},x.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},x.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=sf(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=ct({},t,cf(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,a=this.center||this.defaultCenter,s=this.getArrPosition(a),u={distance:this.defaultRadius,coordinates:s.lat+", "+s.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:ct({},hf,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&t,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},yf=Br(gr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:Jh,setPageURL:ef,setQueryOptions:Yh,setStreaming:Kh,updateQuery:Xh,updateComponentProps:tf,setDefaultQuery:nf,recordResultClick:rf,setMapData:of})(mf),{componentType:x.reactiveMap,internalComponent:!0});mf.install=function(e){e.component(mf.name,yf)},mf.componentType=x.reactiveMap;var vf={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Of,Cf,wf,Sf=["options","position"],$f={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}(e,vf)),o=(r.options,r.position,ht(r,Sf));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),function(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set"+bf(r),l="get"+bf(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[u])throw new Error(u+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&s?function(e,t,n,r){void 0===r&&(r=!1);var o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}(e,s.map((function(e){return r+"."+e})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}(e,e.$infoWindowObject,vf),function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){var e=arguments[0];return e("div",[e("div",{ref:"flyaway"},[this.$scopedSlots.default()])])}},_f={name:"InfoWindowWrapperClusterManager",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object,marker:jt.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e($f,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},kf=["options"],Pf=at.isEqual,Ef=ot.recordResultClick,Tf={name:"ClusterMarkers",props:{markers:jt.array,getPosition:jt.func,defaultPin:jt.string,renderItem:jt.func,markerProps:jt.object,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){Pf(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,i=this.openMarkers,a=(i[o],ht(i,[o].map(yt))),s=n?{}:a;this.setOpenMarkers(s),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,i=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,s=o?((n={})[a]=e,n):ct({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(s),i(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e.metaData)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],i=[],a={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==a[e._id])a[e._id]=!0;else{var i=ct({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var s=t.renderItem(e);"label"in s&&(i.label=s.label),"icon"in s&&(i.icon=s.icon)}else t.defaultPin&&(i.icon={url:t.defaultPin});i.options;var u=ht(i,kf);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var s=[];o.forEach((function(e){s.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?s.push(e):i.push(e))})),r.removeMarkers(i),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=s}))})).catch((function(e){throw e}))}},render:function(){var e=this,t=arguments[0];return this.renderPopover?t("div",[Object.keys(this.openMarkers).map((function(n){var r=e.openMarkers[n],o=r.metaData;return t(_f,{key:n+"-InfoWindow",attrs:{id:n,renderPopover:function(t){return e.renderPopover({item:o,handleClose:function(){t(),e.closeMarker(o)}})},marker:r,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(r)}}}})}))]):null}},If=gr((function(){return null}),{recordResultClick:Ef})(Tf),Af=Rh.InfoWindow,Rf={name:"InfoWindowWrapper",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e(Af,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},xf=Rh.MapElementMixin,Lf={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:jt.func.isRequired,handleMouseOver:jt.func,handleFocus:jt.func,handleMouseOut:jt.func,handleBlur:jt.func,handleClick:jt.func},data:function(){return{opacity:.01}},mixins:[xf],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}pt(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},jf=on("div")(Of||(Of=ft(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),Mf=on("div")(Cf||(Cf=ft(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),Qf=Jt(wf||(wf=ft(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Vf=Rh.Marker,Df=ot.recordResultClick,Ff={name:"GoogleMapMarker",props:{index:jt.number,marker:jt.object.isRequired,getPosition:jt.func.isRequired,defaultPin:jt.string,renderItem:jt.func,setOpenMarkers:jt.func.isRequired,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,openMarkers:jt.object,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,a=n.autoClosePopover,s=n.handlePreserveCenter,u=i._id;r(a?((e={})[u]=!0,e):ct({},o,((t={})[u]=!0,t))),s(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,a=n._id,s=(i[a],ht(i,[a].map(yt)));t(r?{}:s),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,a=i.getPosition,s=i.renderPopover,u=i.openMarkers;return t&&(o={position:a(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Rf,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.renderPopover,s=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},[t(jf,[c.label]),t(Mf),a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});if(!("icon"in c))return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Vf,{key:u._id,attrs:{zIndex:l.zIndex,position:r(u),options:{metaData:u},icon:this.markerIcon||l.icon},on:{click:function(){return e.openMarker()},mouseover:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex},props:ct({},s)},[a?this.renderPopoverClick(u):null])}},Nf=gr((function(){return null}),{recordResultClick:Df})(Ff),Uf=Rh.Cluster,qf={name:"GoogleMapMarkers",props:{resultsToRender:jt.array,getPosition:jt.func,renderItem:jt.func,renderClusterPopover:jt.func,defaultPin:jt.string,autoClosePopover:jt.bool,handlePreserveCenter:jt.func,renderPopover:jt.func,markerProps:jt.object,clusterProps:jt.object,showMarkerClusters:jt.bool,highlightMarkerOnHover:jt.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=arguments[0],n=this.$props.resultsToRender,r=this.openMarkers,o={openMarkers:r,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?t("div",[t(Uf,{props:ct({},this.clusterProps),on:{click:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[t(If,{attrs:{getPosition:o.getPosition,markers:n,defaultPin:o.defaultPin,renderItem:o.renderItem,markerProps:o.markerProps,handlePreserveCenter:o.handlePreserveCenter,autoClosePopover:o.autoClosePopover,renderPopover:o.renderPopover,highlightMarkerOnHover:o.highlightMarkerOnHover},on:ct({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(Rf,{attrs:{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}}}):null]):t("div",[n.map((function(n,r){return t(Nf,{attrs:{index:r,marker:n},props:ct({},o),on:ct({},e.$listeners)})}))])}},Bf=Rh.MapLayer,zf={name:"ReactiveGoogleMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,defaultQuery:jt.func,loader:Jn.title,defaultZoom:jt.number.def(13),react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,mapProps:jt.object,showMarkers:jt.bool.def(!0),showMarkerClusters:jt.bool.def(!1),searchAsMove:jt.bool.def(!1),searchAsMoveLabel:jt.string,markerProps:jt.object,clusterProps:jt.object,renderItem:jt.func,showSearchAsMove:jt.bool.def(!0),autoClosePopover:jt.bool,pagination:jt.bool,defaultPin:jt.string,autoCenter:jt.bool,defaultCenter:Jn.location,center:Jn.location,defaultRadius:Jn.number,unit:Jn.string,pages:jt.number.def(5),calculateMarkers:jt.func,highlightMarkerOnHover:jt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,a=e.handleOnDragEnd,s=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(Bf,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:ct({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?h(qf,{attrs:{resultsToRender:n,getPosition:c,markerProps:this.markerProps,clusterProps:this.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:this.highlightMarkerOnHover,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:ct({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&"<ConnectClusterMarkers>"===t._name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(yf,oo([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(zf.name,zf),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(xh,{load:{key:t.key,libraries:"places"},installComponents:!1})}};zf.componentType=x.reactiveMap;var Hf=["aggs","size"],Gf=["query"],Wf=["query"],Zf=[x.numberBox,x.ratingsFilter],Kf=[x.reactiveList,x.reactiveMap];function Yf(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var Xf,Jf,eg=function(e){var t=e.theme;return Jt(Xf||(Xf=ft(["\n\tcolor: ",";\n"])),t.colors.alertColor)},tg=on("div")(Jf||(Jf=ft(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&eg})),ng=at.getClassName,rg=at.isEqual,og={name:"RangeInput",components:{RangeSlider:Cp},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Jn.string,default:""},defaultValue:Jn.range,validateRange:Jn.func,value:Jn.range,dataField:Jn.stringRequired,innerClass:Jn.style,range:{types:Jn.range,default:function(){return{start:0,end:10}}},rangeLabels:Jn.rangeLabels,stepValue:Jn.number,componentStyle:Jn.style,componentId:Jn.stringRequired,includeNullValues:jt.bool,beforeValueChange:Jn.func,customQuery:Jn.func,data:Jn.data,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,endpoint:Jn.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!rg(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=ct({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=ct({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){rg(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,O=t.URLParams,C=t.sliderOptions,w=t.nestedField;return e(ps,{style:l,class:n},[e(Cp,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:O,sliderOptions:C,nestedField:w},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Lo,{class:ng(s,"input-container")||""},[e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":a+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:ng(s,"input")||"",domProps:ct({},{value:this.currentValue.start})}),!this.isStartValid&&e(tg,{attrs:{alert:!0}},["Input range is invalid"])]),e(Lo,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":a+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:ng(s,"input")||"",domProps:ct({},{value:this.currentValue.end})}),!this.isEndValid&&e(tg,{attrs:{alert:!0}},["Input range is invalid"])])])])}},ig=Br(gr((function(e){return{themePreset:e.config.themePreset}}),{})(og),{componentType:x.rangeInput});og.install=function(e){e.component(og.name,ig)},og.componentType=x.rangeInput;var ag=[ni,np,lp,Yi,uu,Iu,Ju,pl,Dc,Wc,Op,Qp,Sc,Ic,cc,Fl,ec,qp,og];function sg(e){ag.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&sg(window.Vue);var ug={version:"2.0.0-alpha.3",install:sg};e.DataSearch=uu,e.DynamicRangeSlider=Qp,e.MultiDropdownList=ec,e.MultiList=pl,e.MultiRange=Wc,e.RangeInput=og,e.RangeSlider=Op,e.ReactiveBase=Yi,e.ReactiveComponent=Sc,e.ReactiveGoogleMap=zf,e.ReactiveList=ni,e.ResultCard=np,e.ResultList=lp,e.SearchBox=Iu,e.SelectedFilters=Ic,e.SingleDropdownList=Fl,e.SingleList=Ju,e.SingleRange=Dc,e.StateProvider=qp,e.ToggleButton=cc,e.default=ug,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=ct({},n.enableAppbase&&ct({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers,n.enableAppbase&&n.endpoint&&n.endpoint.headers?n.endpoint.headers:{}),u=n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",l=n.transformRequest||null;n.enableAppbase&&n.endpoint&&(n.endpoint.url&&(u=n.endpoint.url),l=function(e){var t=Oe(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:i,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,endpoint:n.endpoint},p=Vi(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},g={},m={},y={},v=[],b={},O=[],C={},S={},$={},_={},P={},T={},I={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){L.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Kf.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;Zf.includes(n)&&(p=!1),h=q(h,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(P[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(T[e.componentId]=e.defaultQuery(l,r));var g={};e&&e.source.generateQueryOptions&&(g=ct({},g,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),g&&Object.keys(g).length||v&&Object.keys(v).length){var b=g||{},O=b.aggs,C=b.size,w=ht(b,Hf);if(O&&Object.keys(O).length&&(o=!0,g=ct({},g,{aggs:O,size:void 0===C?100:C})),w&&Object.keys(w).length||v&&Object.keys(v).length){w||(w={}),v||(v={});var S=ct({},w,v,{size:C});if(o&&(S=ct({},w,v)),i){var $=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&($=h[e.componentId].value-1||0);var _=e.size||10,R=$*_;r.from=R,S=ct({},S,v,{size:_,from:R})}g=ct({},g,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Ee(x,a)),y=k(y,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!Me(e.componentType)){var j=function(e,t){var n=Yf(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},M=j.query,Q=ht(j,Gf);f=E(f,{type:"SET_QUERY",component:a,query:M}),m=A(m,{type:"SET_QUERY_OPTIONS",component:a,options:ct({},g,Q)})}var V=function(e,t){var n=Yf(t,e);if(e.customQuery){var r=e.customQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ht(V,Wf),N=D;f=E(f,{type:"SET_QUERY",component:e.componentId,query:N}),m=A(m,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:ct({},F)}),r.componentType=n,I[e.componentId]=r})),_={components:d,dependencyTree:y,queryList:f,queryOptions:m,selectedValues:h,internalValues:{},props:I,customQueries:P,defaultQueries:T},e.forEach((function(e){var t=Pe(e.componentId,y,f,m),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),O=[].concat(O,[e.componentId]);var s=ct({query:ct({},r)},o,m[e.componentId]);if(g=ct({},g,((a={})[e.componentId]=s,a)),n.enableAppbase){var u,l=je(e.componentId,Le(_,e.componentId,m&&Object.keys(m[e.componentId]).length?{from:m[e.componentId].from}:null));if(l)b=ct({},b,((u={})[e.componentId]=l,u),xe(_,e.componentId,O))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},s])}}})),_.queryLog=g;var R=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))},x=function(e){var t=O.map((function(t,n){return new Promise((function(r,o){R(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(S=ct({},S,((o={})[t]=e.aggregations,o)),$=ie($,{type:w,aggregations:e.aggregations,append:!1}));C=ct({},C,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){_=ct({},_,{hits:C,aggregations:S}),r(_)}))};if(c.graphQLUrl){(function(e){if(c.transformRequest&&"function"==typeof c.transformRequest){var t=c.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(v).then((function(e){Ge(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){x(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(b).length){v=Object.keys(b).map((function(e){return b[e]}));var j={};c.analyticsConfig&&(j.recordAnalytics=Fe(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,j.userId=Fe(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,j.enableQueryRules=Fe(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,j.customEvents=Fe(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,j).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=O.map((function(r){return new Promise((function(s,u){R(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return ct({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)S=ct({},S,((c={})[r]=u.aggregations,c));a[r]=e._timestamp;var p=u.hits?u.hits:u[r].hits;C=ct({},C,((l={})[r]={hits:p.hits,total:"object"==typeof p.total?p.total.value:p.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){_=ct({},_,{hits:C,timestamp:a,aggregations:S,compositeAggregations:$,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){x(e)})).catch((function(e){return o(e)}))}))},e.install=sg,e.version="2.0.0-alpha.3",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
53
53
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|