@appbaseio/reactivesearch-vue 1.36.2 → 1.36.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 +107 -79
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +2 -2
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +106 -78
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +106 -78
- package/dist/es/version.js +1 -1
- package/package.json +87 -87
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* https://github.com/Astray-git/vue-highlight-words
|
|
29
29
|
*
|
|
30
|
-
*/function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(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){_defineProperty$1(e,t,n[t])}))}return e}var VueHighlightWords={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,s=void 0===o?"":o,a=r.activeIndex,i=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,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,_=r.sanitize,b=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,O=void 0===C?"":C,T=r.unhighlightStyle,S=t.data,w=dist_1({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:_,searchWords:b,textToHighlight:$}),P=v,E=-1,R="";return e("span",_objectSpread({},S),w.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+i;R="".concat(f," ").concat(a?s:""),n=!0===a&&null!=u?Object.assign({},g,u):g;var l={class:R,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),S.scopedSlots?e(P,l,[S.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:O,key:r,style:T},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=index$1("span")(_templateObject$f||(_templateObject$f=_taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),SuggestionItem={name:"SuggestionItem",props:{currentValue:types.string,suggestion:types.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!i&&!u?e(VueHighlightWords,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle}}):e(PredictiveSuggestion,{domProps:{innerHTML:n}})]):n:o||a||s?e(Flex,{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(Flex,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle},class:css({fontSize:"1rem"})})]),s&&e("div",{class:cx("trim",css({marginTop:3}))},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle}})])])]):r}},SearchSvg={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:_extends({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"}})])}},CancelSvg={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"}})])}},_templateObject$g;injectGlobal(_templateObject$g||(_templateObject$g=_taggedTemplateLiteralLoose(["\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 MicSvg={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"}})])])])}},_templateObject$h;injectGlobal(_templateObject$h||(_templateObject$h=_taggedTemplateLiteralLoose(["\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 MuteSvg={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"}})])])])}},_templateObject$i;injectGlobal(_templateObject$i||(_templateObject$i=_taggedTemplateLiteralLoose(["\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 ListenSvg={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"}})])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:VueTypes.string.def("en-US"),iconPosition:VueTypes.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:VueTypes.bool,showIcon:VueTypes.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return getComponent(t,this)},stopMic:function(){this.instance&&(this.status=STATUS.inactive,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===STATUS.active&&(this.status=STATUS.inactive);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,s=t.lang,a=t.getInstance,i=window.SpeechRecognition;if(this.instance&&this.status!==STATUS.denied)return this.status=STATUS.inactive,this.instance.stop(),void(this.instance=null);this.instance=new i,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=s,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=STATUS.active},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=STATUS.inactive:"not-allowed"===t.error&&(e.status=STATUS.denied),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=STATUS.inactive},this.instance.onaudioend=function(){e.status=STATUS.inactive}}}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case STATUS.active:return e(ListenSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});case STATUS.stopped:case STATUS.denied:return e(MuteSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(MicSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:STATUS.inactive}},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(IconWrapper,[this.Icon])}},CustomSvg={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(SearchSvg,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},_templateObject$j,_templateObject2$7,TagsContainer=index$1("div")(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=index$1("span")(_templateObject2$7||(_templateObject2$7=_taggedTemplateLiteralLoose(["\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"]))),updateQuery$1=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,setCustomHighlightOptions=lib_5.setCustomHighlightOptions,recordSuggestionClick=lib_5.recordSuggestionClick,loadPopularSuggestions=lib_5.loadPopularSuggestions,getRecentSearches=lib_5.getRecentSearches,resetStoreForComponent=lib_5.resetStoreForComponent,debounce$1=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,handleOnSuggestions=lib_8.handleOnSuggestions,getTopSuggestions=lib_8.getTopSuggestions,normalizeDataField=lib_8.normalizeDataField,DataSearch={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.enableRecentSearches,n=e.distinctField,r=e.distinctFieldConfig,o=e.index;e.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),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||!n&&!r||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&&o&&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),t&&this.getRecentSearches()),this.handleTextChange=debounce$1(this.handleText,this.$props.debounce),this.updateDefaultQueryHandlerDebounced=debounce$1(this.updateDefaultQueryHandler,this.$props.debounce),this.updateQueryHandlerDebounced=debounce$1(this.updateQueryHandler,this.$props.debounce),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateDefaultQueryHandlerDebounced(this.currentValue,this.$props,!1)},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),withClickIds(e)},topSuggestions:function(){return this.currentValue&&this.enablePopularSuggestions?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return getTopSuggestions(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return _extends({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return _extends({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return getTopSuggestions(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)}},props:{options:types.options,autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSearches:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderPopularSuggestions:types.func,parseSuggestion:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,enableDefaultSuggestions:VueTypes.bool.def(!0),mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,endpoint:types.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.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){(!isEqual$4(e,t)||this.$options.isTagsMode&&!isEqual$4(e,this.selectedTags))&&(this.isPending&&this.$options.isTagsMode&&Array.isArray(e)&&(this.isPending=!1),this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1,"string"!=typeof e&&this.$options.isTagsMode))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandlerDebounced(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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){isEqual$4(e,t)||(this.$options.isTagsMode?isEqual$4(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandlerDebounced(e,this.$props):this.$options.isTagsMode?this.$options.isTagsMode&&(this.$data.currentValue=e):this.updateQueryHandlerDebounced(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=DataSearch.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=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?getQuerySuggestionsComponent({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):getComponent(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$1({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return handleOnSuggestions(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=this.$options.isTagsMode);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!s||!isEqual$4(e,a.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&a.currentValue&&a.enableRecentSearches&&a.getRecentSearches():a.resetStoreForComponent(n.componentId),s){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?a.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(a.selectedTags,e)&&(a.selectedTags=e)}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=e;var i=e;s&&(i=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof e&&a.updateDefaultQueryHandlerDebounced(e,a.$props)),n.strictSelection&&n.autosuggest?r===lib_7.SUGGESTION_SELECT||void 0!==n.value?a.updateQueryHandler(n.componentId,i,n):""!==a.currentValue&&a.setValue("",!0):a.updateQueryHandler(n.componentId,i,n)):a.handleTextChange(e),a.$emit("valueChange",e),a.$emit("value-change",e),e===a.lastUsedQuery?(a.normalizedSuggestions=a.onSuggestions(a.suggestions),a.$emit("suggestions",a.suggestions)):e||(a.normalizedSuggestions=[],a.$emit("suggestions",a.suggestions))}}))},updateDefaultQueryHandler:function(e,t,n){if(void 0===t&&(t=this.$props),e||!1!==t.enableDefaultSuggestions){var r,o=DataSearch.defaultQuery(e,t);if(this.defaultQuery){var s=this.defaultQuery(e,t)||{},a=extractQueryFromCustomQuery$1(s);a&&(o=a),r=getOptionsForCustomQuery$1(s),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,_extends({},this.queryOptions,r),n),this.updateQuery({componentId:this.internalComponent,query:o,value:e,componentType:constants_1$1.dataSearch},n)}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,s=n.filterLabel,a=n.showFilter,i=n.URLParams,u=DataSearch.defaultQuery(t,n);if(o){var l=o(t,n),c=extractQueryFromCustomQuery$1(l);c&&(u=c),r=getOptionsForCustomQuery$1(l),updateCustomQuery(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,_extends({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:s,showFilter:a,URLParams:i,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("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=e.target.value,r=this.$props,o=r.value,s=r.strictSelection,a=r.size,i=r.autosuggest;void 0!==o&&(this.isPending=!0),"Enter"===e.key&&(null===t||t<0||t===[].concat([].concat(this.suggestionsList).slice(0,a||10),this.defaultSearchSuggestions,this.topSuggestions).length)&&(this.isPending=!1,this.setValue(this.$options.isTagsMode&&i&&s?"":n,!0,this.$props,void 0,!1),this.onValueSelectedHandler(n,lib_7.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.isOpen=!0);var r=this.$props,o=r.value,s=r.autosuggest;void 0===o?this.setValue(n,!1,this.$props,void 0,!0,!1):(this.isPending=!0,this.currentValue=n,this.$emit("change",n,(function(e){var n=(void 0===e?{}:e).isOpen,r=void 0!==n&&n;if(t.$options.isTagsMode&&s)return t.isOpen=r,void t.updateDefaultQueryHandlerDebounced(t.currentValue,t.$props);t.triggerQuery({isOpen:r})}),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,lib_7.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,lib_7.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,lib_7.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(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$3(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(CancelSvg)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.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,lib_7.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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$3(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(CancelSvg)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$3(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,s=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,i=this.$scopedSlots,u=i.recentSearchesIcon,l=i.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$3(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,i=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=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:suggestions$1(e.themePreset,r)+" "+getClassName$3(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),hasQuerySuggestionsRenderer(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$3(e.$props.innerClass,"input"),on:_extends({},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(){m(null)}})),domProps:_extends({},i({value:null===e.$data.currentValue||"string"!=typeof e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!s&&g()])," ",e.renderInputAddonAfter()]),s&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$3(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:_extends({},{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.handleKeyDown(t,null)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:_extends({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()]),this.renderTags()])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=normalizeDataField(t.dataField,t.fieldWeights);n={bool:{should:DataSearch.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,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:_extends({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},mapStateToProps$3=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}},mapDispatchToProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,setCustomHighlightOptions:setCustomHighlightOptions,recordSuggestionClick:recordSuggestionClick,loadPopularSuggestions:loadPopularSuggestions,getRecentSearches:getRecentSearches,resetStoreForComponent:resetStoreForComponent},DSConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(DataSearch),{componentType:constants_1$1.dataSearch,internalComponent:DataSearch.hasInternalComponent()})),_templateObject$k;DSConnected.defaultQuery=DataSearch.defaultQuery,DSConnected.shouldQuery=DataSearch.shouldQuery,DSConnected.highlightQuery=DataSearch.highlightQuery,DSConnected.hasInternalComponent=DataSearch.hasInternalComponent,DSConnected.name=DataSearch.name,DSConnected.install=function(e){e.component(DSConnected.name,DSConnected)},DSConnected.componentType=constants_1$1.dataSearch;var AutofillSvgIcon=index$1("button")(_templateObject$k||(_templateObject$k=_taggedTemplateLiteralLoose(["\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"]))),AutoFillSvg={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(AutofillSvgIcon,{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)}}},updateQuery$2=lib_5.updateQuery,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,recordSuggestionClick$1=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,withClickIds$1=lib_8.withClickIds,getResultStats$2=lib_8.getResultStats,normalizeDataField$1=lib_8.normalizeDataField,SearchBox={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isSuggestionSelected:!1},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===constants_5$1.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=decodeHtml(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=_debounce(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$2(this)}},props:{autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enableQuerySuggestions:VueTypes.bool.def(!1),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSuggestions:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,popularSuggestionsConfig:VueTypes.object,recentSuggestionsConfig:VueTypes.object,applyStopwords:VueTypes.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:VueTypes.bool.def(!1),renderEnterButton:VueTypes.any,mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,searchboxId:VueTypes.string,endpoint:types.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){isEqual$5(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){isEqual$5(e,t)||this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(withClickIds$1(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds$1(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!isEqual$5(e,t)&&(this.$options.isTagsMode?!isEqual$5(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:lib_7.CLEAR_VALUE;this.$options.isTagsMode&&(n=lib_7.SUGGESTION_SELECT),this.isSuggestionSelected||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){isEqual$5(e,t)||(this.handleTextChange=_debounce(this.handleText,e))}},methods:{handleText:function(e,t){t===lib_7.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=SearchBox.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 getComponent(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$2({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0);checkValueChange$1(n.componentId,e,n.beforeValueChange,(function(){var i=!1;if(!a.$options.isTagsMode||!isEqual$5(e,a.selectedTags)){if(a.$options.isTagsMode){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags.push(e),i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0):Array.isArray(e)&&!isEqual$5(a.selectedTags,e)&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags=e,i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0))}else e&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0):n.strictSelection||(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0));n.strictSelection&&!i?a.currentValue=e:a.currentValue=""}else a.currentValue=decodeHtml(e);var u=e;a.$options.isTagsMode&&r===lib_7.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.$options.isTagsMode&&n.strictSelection&&i?a.triggerDefaultQuery(a.currentValue):a.$options.isTagsMode||a.triggerDefaultQuery(a.currentValue))),a.$options.isTagsMode&&n.strictSelection&&i?r===lib_7.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:s):n.strictSelection||a.setValue("",!0):a.$options.isTagsMode||void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:s)):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=SearchBox.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),updateDefaultQuery(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:constants_1$1.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,s=n.showFilter,a=n.URLParams,i="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(i=e);var u=SearchBox.defaultQuery(i+(t?" in "+t:""),this.$props);if(r){var l=r(i,this.$props).query;l&&(u=l),updateCustomQuery(this.$props.componentId,this.setCustomQuery,this.$props,i)}this.updateQuery({componentId:this.$props.componentId,query:u,value:i,label:o,showFilter:s,URLParams:a,componentType:constants_1$1.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,s=e.defaultQuery,a=void 0===s||s,i=e.value,u=void 0===i?void 0:i,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,lib_7.CLEAR_VALUE,!1),this.onValueSelectedHandler("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=this;void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.isSuggestionSelected=!0,setTimeout((function(){n.isSuggestionSelected=!1}),50),this.setValue(e.target.value,!0,this.$props,void 0),this.onValueSelectedHandler(e.target.value,lib_7.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?lib_7.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,lib_7.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,lib_7.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(_extends({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,lib_7.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(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,{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,s=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[s?s(e.enterButtonOnClick):t(Button,{class:"enter-btn "+getClassName$4(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,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$4(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=decodeHtml(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(AutoFillSvg,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$4(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(CancelSvg)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.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,lib_7.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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$4(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(CancelSvg)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,s=this.$scopedSlots,a=s.recentSearchesIcon,i=s.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$4(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=function(){var n=function(e){switch(e){case helper_13.Recent:return a;case helper_13.Popular:return i;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:suggestions$1(e.themePreset,r)+" "+getClassName$4(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:_extends({},p({item:r})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$4(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$4(e.$props.innerClass,"input"),on:_extends({},s({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(){m(null)}})),domProps:_extends({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&g()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$4(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:_extends({},{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:_extends({},{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)},hasInternalComponent:function(){return!0},defaultQuery:function(e,t){var n,r=normalizeDataField$1(t.dataField,t.fieldWeights);return(n={bool:{should:SearchBox.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},mapStateToProps$4=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}},mapDispatchToProps$3={updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2,recordSuggestionClick:recordSuggestionClick$1},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0})),_templateObject$l,_templateObject2$8,_templateObject3$6,_templateObject4$5,_templateObject5$3,_templateObject6$3;SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var item={width:"15px",height:"15px",scale:"4px"},vh=css(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\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"]))),hideInputControl=css(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\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"]))),formItem=function(e){var t=e.theme;return css(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\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"])),vh,curriedLighten(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||curriedLighten(.1,t.colors.textColor),t.colors.primaryColor,item.width,item.width,item.height,t.colors.primaryColor,item.scale,item.width,item.scale,item.height,item.scale,item.height,item.scale)},Radio=index$1("input")(_templateObject4$5||(_templateObject4$5=_taggedTemplateLiteralLoose(["\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"])),formItem,(function(e){return e.show?null:hideInputControl}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Checkbox=index$1("input")(_templateObject5$3||(_templateObject5$3=_taggedTemplateLiteralLoose(["\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"])),formItem,(function(e){return e.show?null:hideInputControl}),item.width,item.width,item.width,item.height,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),UL=index$1("ul")(_templateObject6$3||(_templateObject6$3=_taggedTemplateLiteralLoose(["\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"]))),getAggsOrder=lib_8.getAggsOrder,extractQuery=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},getAggsQuery=function(e,t){var n,r=e,o=t.dataField,s=t.size,a=t.sortBy,i=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,isEqual$6=lib_8.isEqual,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,enableStrictSelection:VueTypes.bool.def(!1),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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){isEqual$6(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$5(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$5(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Radio,{class:getClassName$5(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,type:"radio",show:this.$props.showRadio},on:{click:this.handleClick},domProps:_extends({},{checked:this.$data.currentValue===r})}),t("label",{class:getClassName$5(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$5(this.$props.innerClass,"count")||null},[" (",this.totalDocumentCount,")"])])])]):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(Radio,{class:getClassName$5(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:_extends({},{checked:e.currentValue===String(n.key)})}),t("label",{class:getClassName$5(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:getClassName$5(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="");checkValueChange$2(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=SingleList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$2(o);var s=getOptionsForCustomQuery$2(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleList})},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=SingleList.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=getOptionsForCustomQuery$2(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},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(Input,{class:getClassName$5(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},handleClick:function(e){var t=e;return isEvent(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:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(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}},mapStateToProps$5=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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$4=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,isEqual$7=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,getClassName$6=lib_8.getClassName,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:VueTypes.oneOf(["and","or"]).def("or"),showCheckbox:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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||isEqual$7(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){isEqual$7(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$7(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])),isEqual$7(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$6(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$6(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:getClassName$6(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:_extends({},{checked:!!this.currentValue[r]})}),t("label",{class:getClassName$6(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$6(this.$props.innerClass,"count")},[" (",this.totalDocumentCount,")"])])])]):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(Checkbox,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:getClassName$6(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:_extends({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:getClassName$6(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:getClassName$6(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,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$3(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$3(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiList})},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=MultiList.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=getOptionsForCustomQuery$3(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},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(Input,{class:getClassName$6(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;isEvent(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=parseValueArray(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},mapStateToProps$6=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,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$3,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()})),_templateObject$m,_templateObject2$9,_templateObject3$7,_templateObject4$6;ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var small=css(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\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"]))),dark$2=function(e){var t=e.theme;return css(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\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)},Select=index$1("button")(_templateObject3$7||(_templateObject3$7=_taggedTemplateLiteralLoose(["\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?small:null}),(function(e){return"dark"===e.themePreset&&dark$2})),Tick=index$1("span")(_templateObject4$6||(_templateObject4$6=_taggedTemplateLiteralLoose(["\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})),_templateObject$n,_templateObject2$a,open=css(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Chevron=index$1("span")(_templateObject2$a||(_templateObject2$a=_taggedTemplateLiteralLoose(["\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?open:null})),getClassName$7=lib_8.getClassName,Dropdown={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:types.style,items:types.data,keyField:VueTypes.string.def("key"),labelField:VueTypes.string.def("label"),multi:VueTypes.bool,placeholder:types.string,returnsObject:VueTypes.bool,customLabelRenderer:types.func,hasCustomRenderer:VueTypes.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:VueTypes.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:VueTypes.bool,single:VueTypes.bool,small:VueTypes.bool.def(!1),themePreset:types.themePreset,showSearch:VueTypes.bool,showClear:VueTypes.bool,searchPlaceholder:VueTypes.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,s=n.placeholder,a=n.labelField,i=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,m=r;c&&(m=c(m));var g=m.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t[a])).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Downshift,{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,_=n.getItemEvents,b=n.getInputEvents;return t("div",{class:suggestionsContainer},[t(Select,{on:_extends({},_extends({},v({onClick:e.toggle}))),class:getClassName$7(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):s,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):s]),t(Chevron,{attrs:{open:c}})]),h?f(m,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:_}):c&&m.length?t("ul",{class:suggestions$1(u,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$7(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,h||0!==g.length?g.map((function(n,s){var u=e.$props.multi&&(o&&!!o[n[i]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:_extends({},r({item:n})),on:_extends({},_({item:n})),key:n[i],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===s,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:getClassName$7(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Tick,{class:getClassName$7(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:getClassName$7(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,u=t(Input,helper$1([{attrs:{id:r+"-input",showIcon:!1,showClear:s,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:getClassName$7(i,"input")},e]));return s?t(InputWrapper,[u,this.searchTerm&&t(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(IconWrapper,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(CancelSvg)])])]):u}}},updateQuery$5=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,isEqual$8=lib_8.isEqual,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=lib_8.getOptionsForCustomQuery,SingleDropdownList={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:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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&&checkPropChange$1(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=i}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){isEqual$8(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||s,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction$1(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$8(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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&&!i&&e("div",{attrs:{css:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&isFunction$1(d)?e("div",[d()]):d&&!isFunction$1(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$4(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=SingleDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=getOptionsForCustomQuery$4(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},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 getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$7=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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,isEqual$9=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$5=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$9=lib_8.getClassName,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=lib_8.getOptionsForCustomQuery,MultiDropdownList={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:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select values"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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])),isEqual$9(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&checkPropChange$2(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=i}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){isEqual$9(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=t.renderError,a=t.renderLabel,i=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||s,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?isFunction$1(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$9(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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:i,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:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&isFunction$1(p)?e("div",[p()]):p&&!isFunction$1(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=parseValueArray(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,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$5(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$5(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$5(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$5(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$5(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=MultiDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=getOptionsForCustomQuery$5(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},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 getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=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,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$6,setCustomQuery:setCustomQuery$5,setDefaultQuery:setDefaultQuery$6},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$7=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,isEqual$a=lib_8.isEqual,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.any,value:types.stringOrArray,filterLabel:types.string,nestedField:types.string,innerClass:types.style,multiSelect:VueTypes.bool,react:types.react,showFilter:VueTypes.bool,title:types.title,URLParams:VueTypes.bool,renderItem:types.func,index:VueTypes.string,enableStrictSelection:VueTypes.bool,endpoint:types.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ToggleButton.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`."),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ToggleButton.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){isEqual$a(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$a(this.$data.currentValue,e)||isEqual$a(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$a(n,this.selectedValue)||isEqual$a(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){isQueryIdentical(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,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],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);checkValueChange$6(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=ToggleButton.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,getOptionsFromQuery(r(e,t)),!1),updateCustomQuery(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:constants_1$1.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return isEqual$a(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(Button,{class:getClassName$a(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return handleA11yAction$1(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(Container,{class:toggleButtons},[this.$props.title&&t(Title,{class:getClassName$a(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}},mapStateToProps$9=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$6={updateQueryHandler:updateQuery$7,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$6},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded=["options"],updateQuery$8=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$7=lib_5.setCustomQuery,setDefaultQuery$7=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$b=lib_8.isEqual,getCompositeAggsQuery$5=lib_8.getCompositeAggsQuery,getResultStats$3=lib_8.getResultStats,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),URLParams:VueTypes.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.string,endpoint:types.endpointConfig},data:function(){return{currentValue:this.selectedValue}},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,this.currentValue=this.selectedValue,updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,s=t.showFilter,a=t.URLParams,i=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||!i&&!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=extractQueryFromCustomQuery$6(c),d=c?getOptionsForCustomQuery$6(c):null;d?this.setQueryOptions(r,_extends({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},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){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=extractQueryFromCustomQuery$6(this.$defaultQuery),f=getOptionsForCustomQuery$6(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,_extends({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{selectedValue:function(e,t){isEqual$b(e,t)&&isEqual$b(e,this.currentValue)||(this.$emit("data",this.getData()),this.currentValue=e)},hits:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=extractQueryFromCustomQuery$6(this.$defaultQuery),r=getOptionsForCustomQuery$6(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,_extends({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=extractQueryFromCustomQuery$6(this.$customQuery),o=getOptionsForCustomQuery$6(this.$customQuery);o?this.setQueryOptions(n,_extends({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),updateCustomQuery(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=_extends({error:n,loading:r},this.getData(),{setQuery:this.setQuery,value:this.currentValue});return e("div",[t(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$5({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,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$3(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$a=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}},mapDispatchtoProps$7={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$8,setCustomQuery:setCustomQuery$7,setDefaultQuery:setDefaultQuery$7},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(e){return e(ConnectedComponent,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};
|
|
30
|
+
*/function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(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){_defineProperty$1(e,t,n[t])}))}return e}var VueHighlightWords={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,s=void 0===o?"":o,a=r.activeIndex,i=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,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,_=r.sanitize,b=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,O=void 0===C?"":C,T=r.unhighlightStyle,S=t.data,w=dist_1({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:_,searchWords:b,textToHighlight:$}),P=v,E=-1,R="";return e("span",_objectSpread({},S),w.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+i;R="".concat(f," ").concat(a?s:""),n=!0===a&&null!=u?Object.assign({},g,u):g;var l={class:R,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),S.scopedSlots?e(P,l,[S.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:O,key:r,style:T},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=index$1("span")(_templateObject$f||(_templateObject$f=_taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),SuggestionItem={name:"SuggestionItem",props:{currentValue:types.string,suggestion:types.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!i&&!u?e(VueHighlightWords,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle}}):e(PredictiveSuggestion,{domProps:{innerHTML:n}})]):n:o||a||s?e(Flex,{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(Flex,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle},class:css({fontSize:"1rem"})})]),s&&e("div",{class:cx("trim",css({marginTop:3}))},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle}})])])]):r}},SearchSvg={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:_extends({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"}})])}},CancelSvg={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"}})])}},_templateObject$g;injectGlobal(_templateObject$g||(_templateObject$g=_taggedTemplateLiteralLoose(["\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 MicSvg={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"}})])])])}},_templateObject$h;injectGlobal(_templateObject$h||(_templateObject$h=_taggedTemplateLiteralLoose(["\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 MuteSvg={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"}})])])])}},_templateObject$i;injectGlobal(_templateObject$i||(_templateObject$i=_taggedTemplateLiteralLoose(["\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 ListenSvg={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"}})])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:VueTypes.string.def("en-US"),iconPosition:VueTypes.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:VueTypes.bool,showIcon:VueTypes.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return getComponent(t,this)},stopMic:function(){this.instance&&(this.status=STATUS.inactive,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===STATUS.active&&(this.status=STATUS.inactive);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,s=t.lang,a=t.getInstance,i=window.SpeechRecognition;if(this.instance&&this.status!==STATUS.denied)return this.status=STATUS.inactive,this.instance.stop(),void(this.instance=null);this.instance=new i,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=s,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=STATUS.active},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=STATUS.inactive:"not-allowed"===t.error&&(e.status=STATUS.denied),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=STATUS.inactive},this.instance.onaudioend=function(){e.status=STATUS.inactive}}}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case STATUS.active:return e(ListenSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});case STATUS.stopped:case STATUS.denied:return e(MuteSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(MicSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:STATUS.inactive}},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(IconWrapper,[this.Icon])}},CustomSvg={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(SearchSvg,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},_templateObject$j,_templateObject2$7,TagsContainer=index$1("div")(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=index$1("span")(_templateObject2$7||(_templateObject2$7=_taggedTemplateLiteralLoose(["\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"]))),updateQuery$1=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,setCustomHighlightOptions=lib_5.setCustomHighlightOptions,recordSuggestionClick=lib_5.recordSuggestionClick,loadPopularSuggestions=lib_5.loadPopularSuggestions,getRecentSearches=lib_5.getRecentSearches,resetStoreForComponent=lib_5.resetStoreForComponent,debounce$1=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,handleOnSuggestions=lib_8.handleOnSuggestions,getTopSuggestions=lib_8.getTopSuggestions,normalizeDataField=lib_8.normalizeDataField,DataSearch={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1,isSuggestionSelected:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableRecentSearches,n=e.distinctField,r=e.distinctFieldConfig,o=e.index;e.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),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||!n&&!r||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&&o&&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),t&&this.getRecentSearches()),this.handleTextChange=debounce$1(this.handleText,this.$props.debounce),this.updateDefaultQueryHandlerDebounced=debounce$1(this.updateDefaultQueryHandler,this.$props.debounce),this.updateQueryHandlerDebounced=debounce$1(this.updateQueryHandler,this.$props.debounce),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateDefaultQueryHandlerDebounced(this.currentValue,this.$props,!1)},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),withClickIds(e)},topSuggestions:function(){return this.currentValue&&this.enablePopularSuggestions?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return getTopSuggestions(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return _extends({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return _extends({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return getTopSuggestions(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)}},props:{options:types.options,autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSearches:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderPopularSuggestions:types.func,parseSuggestion:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,enableDefaultSuggestions:VueTypes.bool.def(!0),mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,endpoint:types.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.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){(!isEqual$4(e,t)||this.$options.isTagsMode&&!isEqual$4(e,this.selectedTags))&&(this.isPending&&this.$options.isTagsMode&&Array.isArray(e)&&(this.isPending=!1),this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1,"string"!=typeof e&&this.$options.isTagsMode))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandlerDebounced(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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){isEqual$4(e,t)||(this.$options.isTagsMode?isEqual$4(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandlerDebounced(e,this.$props):this.$options.isTagsMode?this.$options.isTagsMode&&(this.$data.currentValue=e):this.updateQueryHandlerDebounced(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=DataSearch.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=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?getQuerySuggestionsComponent({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):getComponent(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$1({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return handleOnSuggestions(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=this.$options.isTagsMode);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!s||!isEqual$4(e,a.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&a.currentValue&&a.enableRecentSearches&&a.getRecentSearches():a.resetStoreForComponent(n.componentId),s){var i=!1;if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags.push(e),i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0):Array.isArray(e)&&!isEqual$4(a.selectedTags,e)&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags=e,i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0))}else e&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0):n.strictSelection||(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0));n.strictSelection&&!i?a.currentValue=e:a.currentValue=""}else a.currentValue=e;var u=e;s&&(u=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof e&&a.updateDefaultQueryHandlerDebounced(e,a.$props)),n.strictSelection&&n.autosuggest?r===lib_7.SUGGESTION_SELECT||void 0!==n.value?a.updateQueryHandler(n.componentId,u,n):""===a.currentValue||n.strictSelection||a.setValue("",!0):a.updateQueryHandler(n.componentId,u,n)):a.handleTextChange(e),a.$emit("valueChange",e),a.$emit("value-change",e),e===a.lastUsedQuery?(a.normalizedSuggestions=a.onSuggestions(a.suggestions),a.$emit("suggestions",a.suggestions)):e||(a.normalizedSuggestions=[],a.$emit("suggestions",a.suggestions))}}))},updateDefaultQueryHandler:function(e,t,n){var r;void 0===t&&(t=this.$props);var o=DataSearch.defaultQuery(e,t);if(this.defaultQuery){var s=this.defaultQuery(e,t)||{},a=extractQueryFromCustomQuery$1(s);a&&(o=a),r=getOptionsForCustomQuery$1(s),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e)}e||!1!==t.enableDefaultSuggestions?(this.setQueryOptions(this.internalComponent,_extends({},this.queryOptions,r),n),this.updateQuery({componentId:this.internalComponent,query:o,value:e,componentType:constants_1$1.dataSearch},n)):this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,s=n.filterLabel,a=n.showFilter,i=n.URLParams,u=DataSearch.defaultQuery(t,n);if(o){var l=o(t,n),c=extractQueryFromCustomQuery$1(l);c&&(u=c),r=getOptionsForCustomQuery$1(l),updateCustomQuery(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,_extends({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:s,showFilter:a,URLParams:i,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("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=e.target.value,r=this.$props,o=r.value,s=r.size;void 0!==o&&(this.isPending=!0),"Enter"===e.key&&(null===t||t<0||t===[].concat([].concat(this.suggestionsList).slice(0,s||10),this.defaultSearchSuggestions,this.topSuggestions).length)&&(this.isPending=!1,this.isSuggestionSelected||(this.setValue(n,!0,this.$props,void 0,!1),this.onValueSelectedHandler(n,lib_7.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.isOpen=!0);var r=this.$props,o=r.value,s=r.autosuggest;void 0===o?this.setValue(n,!1,this.$props,void 0,!0,!1):(this.isPending=!0,this.currentValue=n,this.$emit("change",n,(function(e){var n=(void 0===e?{}:e).isOpen,r=void 0!==n&&n;if(t.$options.isTagsMode&&s)return t.isOpen=r,void t.updateDefaultQueryHandlerDebounced(t.currentValue,t.$props);t.triggerQuery({isOpen:r})}),e))},onSuggestionSelected:function(e){var t=this,n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,lib_7.SUGGESTION_SELECT),this.isSuggestionSelected=!0,setTimeout((function(){t.isSuggestionSelected=!1}),50);else if(this.$options.isTagsMode){var r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value),this.setValue(r,!0,this.$props,lib_7.SUGGESTION_SELECT,!0),this.$emit("change",r,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,lib_7.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(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$3(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(CancelSvg)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.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,lib_7.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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$3(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(CancelSvg)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$3(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,s=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,i=this.$scopedSlots,u=i.recentSearchesIcon,l=i.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$3(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,i=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=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:suggestions$1(e.themePreset,r)+" "+getClassName$3(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),hasQuerySuggestionsRenderer(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$3(e.$props.innerClass,"input"),on:_extends({},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(){m(null)}})),domProps:_extends({},i({value:null===e.$data.currentValue||"string"!=typeof e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!s&&g()])," ",e.renderInputAddonAfter()]),s&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$3(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:_extends({},{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.handleKeyDown(t,null)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:_extends({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()]),this.renderTags()])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=normalizeDataField(t.dataField,t.fieldWeights);n={bool:{should:DataSearch.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,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:_extends({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},mapStateToProps$3=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}},mapDispatchToProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,setCustomHighlightOptions:setCustomHighlightOptions,recordSuggestionClick:recordSuggestionClick,loadPopularSuggestions:loadPopularSuggestions,getRecentSearches:getRecentSearches,resetStoreForComponent:resetStoreForComponent},DSConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(DataSearch),{componentType:constants_1$1.dataSearch,internalComponent:DataSearch.hasInternalComponent()})),_templateObject$k;DSConnected.defaultQuery=DataSearch.defaultQuery,DSConnected.shouldQuery=DataSearch.shouldQuery,DSConnected.highlightQuery=DataSearch.highlightQuery,DSConnected.hasInternalComponent=DataSearch.hasInternalComponent,DSConnected.name=DataSearch.name,DSConnected.install=function(e){e.component(DSConnected.name,DSConnected)},DSConnected.componentType=constants_1$1.dataSearch;var AutofillSvgIcon=index$1("button")(_templateObject$k||(_templateObject$k=_taggedTemplateLiteralLoose(["\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"]))),AutoFillSvg={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(AutofillSvgIcon,{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)}}},updateQuery$2=lib_5.updateQuery,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,recordSuggestionClick$1=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,withClickIds$1=lib_8.withClickIds,getResultStats$2=lib_8.getResultStats,normalizeDataField$1=lib_8.normalizeDataField,SearchBox={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isSuggestionSelected:!1},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===constants_5$1.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=decodeHtml(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=_debounce(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$2(this)}},props:{autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enableQuerySuggestions:VueTypes.bool.def(!1),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSuggestions:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,popularSuggestionsConfig:VueTypes.object,recentSuggestionsConfig:VueTypes.object,applyStopwords:VueTypes.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:VueTypes.bool.def(!1),renderEnterButton:VueTypes.any,mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,searchboxId:VueTypes.string,endpoint:types.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){isEqual$5(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){isEqual$5(e,t)||this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(withClickIds$1(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds$1(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!isEqual$5(e,t)&&(this.$options.isTagsMode?!isEqual$5(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:lib_7.CLEAR_VALUE;this.$options.isTagsMode&&(n=lib_7.SUGGESTION_SELECT),this.isSuggestionSelected||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){isEqual$5(e,t)||(this.handleTextChange=_debounce(this.handleText,e))}},methods:{handleText:function(e,t){t===lib_7.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=SearchBox.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 getComponent(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$2({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0);checkValueChange$1(n.componentId,e,n.beforeValueChange,(function(){var i=!1;if(!a.$options.isTagsMode||!isEqual$5(e,a.selectedTags)){if(a.$options.isTagsMode){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags.push(e),i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0):Array.isArray(e)&&!isEqual$5(a.selectedTags,e)&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags=e,i=!0):n.strictSelection||(a.selectedTags.push(e),i=!0))}else e&&(n.strictSelection&&r===lib_7.SUGGESTION_SELECT?(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0):n.strictSelection||(a.selectedTags="string"!=typeof e?e:[].concat(e),i=!0));n.strictSelection&&!i?a.currentValue=e:a.currentValue=""}else a.currentValue=decodeHtml(e);var u=e;a.$options.isTagsMode&&r===lib_7.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.$options.isTagsMode&&n.strictSelection&&i?a.triggerDefaultQuery(a.currentValue):a.$options.isTagsMode||a.triggerDefaultQuery(a.currentValue))),a.$options.isTagsMode&&n.strictSelection&&i?r===lib_7.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:s):n.strictSelection||a.setValue("",!0):a.$options.isTagsMode||void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:s)):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=SearchBox.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),updateDefaultQuery(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:constants_1$1.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,s=n.showFilter,a=n.URLParams,i="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(i=e);var u=SearchBox.defaultQuery(i+(t?" in "+t:""),this.$props);if(r){var l=r(i,this.$props).query;l&&(u=l),updateCustomQuery(this.$props.componentId,this.setCustomQuery,this.$props,i)}this.updateQuery({componentId:this.$props.componentId,query:u,value:i,label:o,showFilter:s,URLParams:a,componentType:constants_1$1.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,s=e.defaultQuery,a=void 0===s||s,i=e.value,u=void 0===i?void 0:i,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,lib_7.CLEAR_VALUE,!1),this.onValueSelectedHandler("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=this;void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.isSuggestionSelected=!0,setTimeout((function(){n.isSuggestionSelected=!1}),50),this.setValue(e.target.value,!0,this.$props,void 0),this.onValueSelectedHandler(e.target.value,lib_7.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?lib_7.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,lib_7.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,lib_7.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(_extends({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,lib_7.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(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,{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,s=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[s?s(e.enterButtonOnClick):t(Button,{class:"enter-btn "+getClassName$4(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,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$4(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=decodeHtml(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(AutoFillSvg,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$4(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(CancelSvg)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.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,lib_7.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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$4(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(CancelSvg)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,s=this.$scopedSlots,a=s.recentSearchesIcon,i=s.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$4(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=function(){var n=function(e){switch(e){case helper_13.Recent:return a;case helper_13.Popular:return i;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:suggestions$1(e.themePreset,r)+" "+getClassName$4(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:_extends({},p({item:r})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$4(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$4(e.$props.innerClass,"input"),on:_extends({},s({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(){m(null)}})),domProps:_extends({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&g()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$4(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:_extends({},{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:_extends({},{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)},hasInternalComponent:function(){return!0},defaultQuery:function(e,t){var n,r=normalizeDataField$1(t.dataField,t.fieldWeights);return(n={bool:{should:SearchBox.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},mapStateToProps$4=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}},mapDispatchToProps$3={updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2,recordSuggestionClick:recordSuggestionClick$1},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0})),_templateObject$l,_templateObject2$8,_templateObject3$6,_templateObject4$5,_templateObject5$3,_templateObject6$3;SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var item={width:"15px",height:"15px",scale:"4px"},vh=css(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\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"]))),hideInputControl=css(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\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"]))),formItem=function(e){var t=e.theme;return css(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\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"])),vh,curriedLighten(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||curriedLighten(.1,t.colors.textColor),t.colors.primaryColor,item.width,item.width,item.height,t.colors.primaryColor,item.scale,item.width,item.scale,item.height,item.scale,item.height,item.scale)},Radio=index$1("input")(_templateObject4$5||(_templateObject4$5=_taggedTemplateLiteralLoose(["\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"])),formItem,(function(e){return e.show?null:hideInputControl}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Checkbox=index$1("input")(_templateObject5$3||(_templateObject5$3=_taggedTemplateLiteralLoose(["\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"])),formItem,(function(e){return e.show?null:hideInputControl}),item.width,item.width,item.width,item.height,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),UL=index$1("ul")(_templateObject6$3||(_templateObject6$3=_taggedTemplateLiteralLoose(["\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"]))),getAggsOrder=lib_8.getAggsOrder,extractQuery=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},getAggsQuery=function(e,t){var n,r=e,o=t.dataField,s=t.size,a=t.sortBy,i=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,isEqual$6=lib_8.isEqual,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,enableStrictSelection:VueTypes.bool.def(!1),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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){isEqual$6(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$5(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$5(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Radio,{class:getClassName$5(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,type:"radio",show:this.$props.showRadio},on:{click:this.handleClick},domProps:_extends({},{checked:this.$data.currentValue===r})}),t("label",{class:getClassName$5(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$5(this.$props.innerClass,"count")||null},[" (",this.totalDocumentCount,")"])])])]):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(Radio,{class:getClassName$5(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:_extends({},{checked:e.currentValue===String(n.key)})}),t("label",{class:getClassName$5(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:getClassName$5(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="");checkValueChange$2(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=SingleList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$2(o);var s=getOptionsForCustomQuery$2(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleList})},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=SingleList.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=getOptionsForCustomQuery$2(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},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(Input,{class:getClassName$5(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},handleClick:function(e){var t=e;return isEvent(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:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(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}},mapStateToProps$5=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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$4=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,isEqual$7=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,getClassName$6=lib_8.getClassName,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:VueTypes.oneOf(["and","or"]).def("or"),showCheckbox:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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||isEqual$7(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){isEqual$7(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$7(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])),isEqual$7(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$6(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$6(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:getClassName$6(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:_extends({},{checked:!!this.currentValue[r]})}),t("label",{class:getClassName$6(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$6(this.$props.innerClass,"count")},[" (",this.totalDocumentCount,")"])])])]):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(Checkbox,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:getClassName$6(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:_extends({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:getClassName$6(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:getClassName$6(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,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$3(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$3(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiList})},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=MultiList.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=getOptionsForCustomQuery$3(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},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(Input,{class:getClassName$6(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;isEvent(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=parseValueArray(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},mapStateToProps$6=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,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$3,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()})),_templateObject$m,_templateObject2$9,_templateObject3$7,_templateObject4$6;ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var small=css(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\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"]))),dark$2=function(e){var t=e.theme;return css(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\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)},Select=index$1("button")(_templateObject3$7||(_templateObject3$7=_taggedTemplateLiteralLoose(["\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?small:null}),(function(e){return"dark"===e.themePreset&&dark$2})),Tick=index$1("span")(_templateObject4$6||(_templateObject4$6=_taggedTemplateLiteralLoose(["\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})),_templateObject$n,_templateObject2$a,open=css(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Chevron=index$1("span")(_templateObject2$a||(_templateObject2$a=_taggedTemplateLiteralLoose(["\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?open:null})),getClassName$7=lib_8.getClassName,Dropdown={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:types.style,items:types.data,keyField:VueTypes.string.def("key"),labelField:VueTypes.string.def("label"),multi:VueTypes.bool,placeholder:types.string,returnsObject:VueTypes.bool,customLabelRenderer:types.func,hasCustomRenderer:VueTypes.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:VueTypes.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:VueTypes.bool,single:VueTypes.bool,small:VueTypes.bool.def(!1),themePreset:types.themePreset,showSearch:VueTypes.bool,showClear:VueTypes.bool,searchPlaceholder:VueTypes.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,s=n.placeholder,a=n.labelField,i=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,m=r;c&&(m=c(m));var g=m.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t[a])).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Downshift,{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,_=n.getItemEvents,b=n.getInputEvents;return t("div",{class:suggestionsContainer},[t(Select,{on:_extends({},_extends({},v({onClick:e.toggle}))),class:getClassName$7(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):s,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):s]),t(Chevron,{attrs:{open:c}})]),h?f(m,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:_}):c&&m.length?t("ul",{class:suggestions$1(u,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$7(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,h||0!==g.length?g.map((function(n,s){var u=e.$props.multi&&(o&&!!o[n[i]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:_extends({},r({item:n})),on:_extends({},_({item:n})),key:n[i],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===s,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:getClassName$7(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Tick,{class:getClassName$7(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:getClassName$7(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,u=t(Input,helper$1([{attrs:{id:r+"-input",showIcon:!1,showClear:s,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:getClassName$7(i,"input")},e]));return s?t(InputWrapper,[u,this.searchTerm&&t(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(IconWrapper,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(CancelSvg)])])]):u}}},updateQuery$5=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,isEqual$8=lib_8.isEqual,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=lib_8.getOptionsForCustomQuery,SingleDropdownList={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:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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&&checkPropChange$1(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=i}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){isEqual$8(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||s,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction$1(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$8(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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&&!i&&e("div",{attrs:{css:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&isFunction$1(d)?e("div",[d()]):d&&!isFunction$1(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$4(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=SingleDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=getOptionsForCustomQuery$4(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},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 getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$7=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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,isEqual$9=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$5=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$9=lib_8.getClassName,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=lib_8.getOptionsForCustomQuery,MultiDropdownList={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:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select values"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(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])),isEqual$9(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&checkPropChange$2(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=i}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){isEqual$9(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(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,s=t.renderError,a=t.renderLabel,i=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||s,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?isFunction$1(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$9(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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:i,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:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&isFunction$1(p)?e("div",[p()]):p&&!isFunction$1(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=parseValueArray(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,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$5(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$5(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$5(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$5(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$5(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=MultiDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=getOptionsForCustomQuery$5(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},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 getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=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,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$6,setCustomQuery:setCustomQuery$5,setDefaultQuery:setDefaultQuery$6},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$7=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,isEqual$a=lib_8.isEqual,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.any,value:types.stringOrArray,filterLabel:types.string,nestedField:types.string,innerClass:types.style,multiSelect:VueTypes.bool,react:types.react,showFilter:VueTypes.bool,title:types.title,URLParams:VueTypes.bool,renderItem:types.func,index:VueTypes.string,enableStrictSelection:VueTypes.bool,endpoint:types.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ToggleButton.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`."),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ToggleButton.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){isEqual$a(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$a(this.$data.currentValue,e)||isEqual$a(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$a(n,this.selectedValue)||isEqual$a(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){isQueryIdentical(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,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],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);checkValueChange$6(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=ToggleButton.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,getOptionsFromQuery(r(e,t)),!1),updateCustomQuery(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:constants_1$1.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return isEqual$a(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(Button,{class:getClassName$a(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return handleA11yAction$1(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(Container,{class:toggleButtons},[this.$props.title&&t(Title,{class:getClassName$a(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}},mapStateToProps$9=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$6={updateQueryHandler:updateQuery$7,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$6},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded=["options"],updateQuery$8=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$7=lib_5.setCustomQuery,setDefaultQuery$7=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$b=lib_8.isEqual,getCompositeAggsQuery$5=lib_8.getCompositeAggsQuery,getResultStats$3=lib_8.getResultStats,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),URLParams:VueTypes.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.string,endpoint:types.endpointConfig},data:function(){return{currentValue:this.selectedValue}},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,this.currentValue=this.selectedValue,updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,s=t.showFilter,a=t.URLParams,i=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||!i&&!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=extractQueryFromCustomQuery$6(c),d=c?getOptionsForCustomQuery$6(c):null;d?this.setQueryOptions(r,_extends({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},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){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=extractQueryFromCustomQuery$6(this.$defaultQuery),f=getOptionsForCustomQuery$6(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,_extends({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{selectedValue:function(e,t){isEqual$b(e,t)&&isEqual$b(e,this.currentValue)||(this.$emit("data",this.getData()),this.currentValue=e)},hits:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=extractQueryFromCustomQuery$6(this.$defaultQuery),r=getOptionsForCustomQuery$6(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,_extends({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=extractQueryFromCustomQuery$6(this.$customQuery),o=getOptionsForCustomQuery$6(this.$customQuery);o?this.setQueryOptions(n,_extends({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),updateCustomQuery(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=_extends({error:n,loading:r},this.getData(),{setQuery:this.setQuery,value:this.currentValue});return e("div",[t(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$5({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,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$3(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$a=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}},mapDispatchtoProps$7={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$8,setCustomQuery:setCustomQuery$7,setDefaultQuery:setDefaultQuery$7},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(e){return e(ConnectedComponent,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};
|
|
31
31
|
/*!
|
|
32
32
|
* vue-no-ssr v1.1.1
|
|
33
33
|
* (c) 2018-present egoist <0x142857@gmail.com>
|
|
@@ -47,5 +47,5 @@ var index$3={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag
|
|
|
47
47
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
48
48
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
49
49
|
PERFORMANCE OF THIS SOFTWARE.
|
|
50
|
-
***************************************************************************** */function __rest(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}var Cluster=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=e.prototype;return t.push=function(e){this.markers.push(e)},t.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},_createClass(e,[{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}}]),e}(),AbstractAlgorithm=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 _noop(t)},e}(),_noop=function(e){return e.map((function(e){return new Cluster({position:e.getPosition(),markers:[e]})}))},SuperClusterAlgorithm=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),n.state={zoom:null},n}_inheritsLoose(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!fastDeepEqual(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||!fastDeepEqual(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 Cluster({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 s=o.marker;return new Cluster({markers:[s],position:s.getPosition()})},t}(AbstractAlgorithm),ClusterStats=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)}}},DefaultRenderer=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",s=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,"+s,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}();function extend$1(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}var OverlayViewSafe=function e(){extend$1(e,google.maps.OverlayView)},MarkerClustererEvents;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MarkerClustererEvents||(MarkerClustererEvents={}));var defaultOnClusterClickHandler=function(e,t,n){n.fitBounds(t.bounds)},MarkerClusterer=function(e){function t(t){var n,r=t.map,o=t.markers,s=void 0===o?[]:o,a=t.algorithm,i=void 0===a?new SuperClusterAlgorithm({}):a,u=t.renderer,l=void 0===u?new DefaultRenderer:u,c=t.onClusterClick,p=void 0===c?defaultOnClusterClickHandler:c;return(n=e.call(this)||this).markers=[].concat(s),n.clusters=[],n.algorithm=i,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}_inheritsLoose(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,MarkerClustererEvents.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,MarkerClustererEvents.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 ClusterStats(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,MarkerClustererEvents.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(OverlayViewSafe),_excluded$6=["options"],script$2={name:"ClusterIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,clusterIconMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$6));if(void 0===MarkerClusterer)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 s=o.map,a=o.markers,i=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new MarkerClusterer({map:s,markers:a,algorithm:i,onClusterClick:u,renderer:l}),bindProps(e,e.$clusterObject,{}),bindEvents(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)}}},__vue_script__$2=script$2,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),_excluded$7=["options"],script$3={name:"DrawingManager",mixins:[mapElementMixin],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=_extends({},e.options,{map:t},getPropsValues(e,drawingManagerMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$7));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),bindProps(e,e.$drawingManagerObject,drawingManagerMappedProps),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)}}},__vue_script__$3=script$3,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),_excluded$8=["options"],script$4={name:"HeatmapLayer",mixins:[mapElementMixin],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:e.$map},getPropsValues(e,heatMapLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$8));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),bindProps(e,e.$heatmapLayerObject,heatMapLayerMappedProps),bindEvents(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)}},__vue_script__$4=script$4,__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=void 0,__vue_component__$4=normalizeComponent({},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),_excluded$9=["options","position"],script$5={name:"InfoWindow",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$9));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),bindProps(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents(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()}}},__vue_script__$5=script$5,__vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},__vue_staticRenderFns__$3=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),_excluded$a=["options"],script$6={name:"KmlLayer",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,kmlLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$a));return e.$kmlLayerObject=new google.maps.KmlLayer(o),bindProps(e,e.$kmlLayerObject,kmlLayerMappedProps),bindEvents(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)}},__vue_script__$6=script$6,__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=void 0,__vue_component__$6=normalizeComponent({},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,!1,void 0,void 0,void 0),mountableMixin={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)}},_excluded$b=["options"],script$7={name:"MapLayer",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,mapMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$b)),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}),bindProps(e,e.$mapObject,mapMappedProps),bindEvents(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),twoWayBindingWrapper((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));watchPrimitiveProperties(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)}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),HEAD;function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var n=isOldIE?t.media||"default":e,r=styles[n]||(styles[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===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var s=r.ids.size-1,a=document.createTextNode(o),i=r.element.childNodes;i[s]&&r.element.removeChild(i[s]),i.length?r.element.insertBefore(a,i[s]):r.element.appendChild(a)}}}var __vue_script__$7=script$7,__vue_render__$4=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)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$7=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})},__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,__vue_component__$7=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,!1,createInjector,void 0,void 0),_excluded$c=["options"],script$8={name:"MarkerIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,markerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$c));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),bindProps(e,e.$markerObject,markerMappedProps),bindEvents(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):""}},__vue_script__$8=script$8,__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=void 0,__vue_component__$8=normalizeComponent({},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,!1,void 0,void 0,void 0),_excluded$d=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],script$9={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=getPropsValues(e,placeInputMappedProps);if(e.selectFirstOnEnter&&downArrowSimulator(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=_objectWithoutPropertiesLoose(placeInputMappedProps,_excluded$d);bindProps(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)}},__vue_script__$9=script$9,__vue_render__$5=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}})])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,__vue_component__$9=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,!1,void 0,void 0,void 0),_excluded$e=["options","path","paths"],script$a={name:"PolygonShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polygonMappedProps)),o=(r.options,r.path,r.paths,_objectWithoutPropertiesLoose(r,_excluded$e));e.$polygonObject=new google.maps.Polygon(o),bindProps(e,e.$polygonObject,polygonMappedProps),bindEvents(e,e.$polygonObject,t);var s=function(){};return e.$watch("paths",(function(t){if(t){s(),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 i=o.getAt(a);r.push([i,i.addListener("insert_at",n)]),r.push([i,i.addListener("remove_at",n)]),r.push([i,i.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)]),s=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){s(),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)]),s=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)}},__vue_script__$a=script$a,__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=void 0,__vue_component__$a=normalizeComponent({},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,!1,void 0,void 0,void 0),_excluded$f=["options"],script$b={name:"PolylineShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polylineMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$f));e.$polylineObject=new google.maps.Polyline(o),bindProps(e,e.$polylineObject,polylineMappedProps),bindEvents(e,e.$polylineObject,t);var s=function(){};return e.$watch("path",(function(t){if(t){s(),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)]),s=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)}},__vue_script__$b=script$b,__vue_inject_styles__$b=void 0,__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=void 0,__vue_component__$b=normalizeComponent({},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,!1,void 0,void 0,void 0),_excluded$g=["options"],script$c={name:"RectangleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,rectangleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$g));return e.$rectangleObject=new google.maps.Rectangle(o),bindProps(e,e.$rectangleObject,rectangleMappedProps),bindEvents(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)}},__vue_script__$c=script$c,__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=void 0,__vue_component__$c=normalizeComponent({},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,!1,void 0,void 0,void 0),_excluded$h=["options"],script$d={name:"StreetViewPanorama",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,streetViewPanoramaMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$h));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),bindProps(e,e.$panoObject,streetViewPanoramaMappedProps),bindEvents(e,e.$panoObject,t),twoWayBindingWrapper((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));watchPrimitiveProperties(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)}},__vue_script__$d=script$d,__vue_render__$6=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)},__vue_staticRenderFns__$6=[],__vue_inject_styles__$d=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})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,__vue_component__$d=normalizeComponent({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,!1,createInjector,void 0,void 0);function createCallbackAndChecksIfMapIsLoaded(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)}function getPromiseLazyCreatorFn(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return getLazyValue((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{createCallbackAndChecksIfMapIsLoaded(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&&createCallbackAndChecksIfMapIsLoaded(e,window[n&&n.load&&n.load.customCallback])})).then(r);return getLazyValue((function(){return o}))}}function createGoogleMapsAPIInitializer(){var e=!1;return function(t,n){if("object"!==_typeof$3(t))throw new Error("options should be an object");if("undefined"!=typeof document){var r=_objectSpread2$1({},t),o=r.libraries;if(e)window.console.info("You already started the loading of google maps");else{e=!0;var s="boolean"==typeof n&&n?"https://maps.google.cn":"https://maps.googleapis.com",a=document.createElement("SCRIPT");Array.isArray(o)&&(r.libraries=o.join(",")),r.callback="GoogleMapsCallback";var i=Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&"),u="".concat(s,"/maps/api/js?").concat(i);a.setAttribute("src",u),a.setAttribute("async",""),a.setAttribute("defer",""),document.head.appendChild(a)}}}}var googleMapsApiInitializer=createGoogleMapsAPIInitializer(),GoogleMapsApi,components={HeatmapLayer:__vue_component__$4,KmlLayer:__vue_component__$6,Marker:__vue_component__$8,Polyline:__vue_component__$b,Polygon:__vue_component__$a,Circle:__vue_component__$1,Cluster:__vue_component__$2,Rectangle:__vue_component__$c,DrawingManager:__vue_component__$3,InfoWindow:__vue_component__$5,MapLayer:__vue_component__$7,PlaceInput:__vue_component__$9,Autocomplete:__vue_component__,StreetViewPanorama:__vue_component__$d,MapElementMixin:mapElementMixin,MountableMixin:mountableMixin};function gmapVuePluginInstallFn(e,t){var n=_objectSpread2$1({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);GoogleMapsApi=new e({data:{isReady:!1}});var r=new e,o=getPromiseLazyCreatorFn(googleMapsApiInitializer,GoogleMapsApi)(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",__vue_component__$7),e.component("GmapMarker",__vue_component__$8),e.component("GmapInfoWindow",__vue_component__$5),e.component("GmapHeatmapLayer",__vue_component__$4),e.component("GmapKmlLayer",__vue_component__$6),e.component("GmapPolyline",__vue_component__$b),e.component("GmapPolygon",__vue_component__$a),e.component("GmapCircle",__vue_component__$1),e.component("GmapRectangle",__vue_component__$c),e.component("GmapDrawingManager",__vue_component__$3),e.component("GmapAutocomplete",__vue_component__),e.component("GmapPlaceInput",__vue_component__$9),e.component("GmapStreetViewPanorama",__vue_component__$d))}for(var main={install:gmapVuePluginInstallFn},BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$1=0;i$1<BASE32_CODES.length;i$1++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$1)]=i$1;var ENCODE_AUTO="auto",MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180,SIGFIG_HASH_LENGTH=[0,5,7,8,11,12,13,15,16,17,18],encode$1=function(e,t,n){if(n===ENCODE_AUTO){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,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,i=[],u=0,l=0,c=0,p=MAX_LAT,d=MIN_LAT,h=MAX_LON,f=MIN_LON;i.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 m=BASE32_CODES[c];i.push(m),u=0,c=0}return i.join("")},encode_int=function(e,t,n){n=n||52;for(var r,o=0,s=MAX_LAT,a=MIN_LAT,i=MAX_LON,u=MIN_LON,l=0;o<n;)l*=2,o%2==0?t>(r=(i+u)/2)?(l+=1,u=r):i=r:e>(r=(s+a)/2)?(l+=1,a=r):s=r,o++;return l},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=MIN_LON,i=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();i=BASE32_CODES_DICT[c];for(var p=4;p>=0;p--){var d=i>>p&1;n?(t=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,u=0;u<i;u++)a=get_bit(e,2*(i-u)-1),0===get_bit(e,2*(i-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,n,o]};function get_bit(e,t){return e/Math.pow(2,t)&1}var decode$1=function(e){var t=decode_bbox(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}}},decode_int=function(e,t){var n=decode_bbox_int(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}}},neighbor=function(e,t){var n=decode$1(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=ensure_valid_lon(o),r=ensure_valid_lat(r),encode$1(r,o,e.length)},neighbor_int=function(e,t,n){var r=decode_int(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+o*u),t=ensure_valid_lat(t),encode$1(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=decode_int(e,t=t||52),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+o*u),n=ensure_valid_lat(n),encode_int(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 s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor_int(s,[m,g],o));return f};function ensure_valid_lon(e){return e>MAX_LON?MIN_LON+e%MAX_LON:e<MIN_LON?MAX_LON+e%MAX_LON:e}function ensure_valid_lat(e){return e>MAX_LAT?MAX_LAT:e<MIN_LAT?MIN_LAT:e}var geohash={ENCODE_AUTO:ENCODE_AUTO,encode:encode$1,encode_uint64:encode_int,encode_int:encode_int,decode:decode$1,decode_int:decode_int,decode_uint64:decode_int,decode_bbox:decode_bbox,decode_bbox_uint64:decode_bbox_int,decode_bbox_int:decode_bbox_int,neighbor:neighbor,neighbor_int:neighbor_int,neighbors:neighbors,neighbors_int:neighbors_int,bboxes:bboxes,bboxes_int:bboxes_int},main$1=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$d=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$8=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$h=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$h=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$4=lib_8.getResultStats,MAP_CENTER={lat:37.7749,lng:122.4194},style={width:"100%",height:"100vh",position:"relative"};function getPrecision(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function withDistinctLat(e,t){var n=getPrecision(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return _extends({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function getLocationObject(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=main$1.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var ReactiveMap={name:"ReactiveMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,autoCenter:VueTypes.bool,getMapRef:VueTypes.func.isRequired,getMapPromise:VueTypes.func,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:VueTypes.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:VueTypes.number.def(5),currentPage:VueTypes.number.def(0),pagination:VueTypes.bool,showMarkers:VueTypes.bool,defaultSearchAsMove:VueTypes.bool,showSearchAsMove:VueTypes.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:VueTypes.bool,renderMap:VueTypes.func.isRequired,renderPopover:VueTypes.func,calculateMarkers:VueTypes.func,searchAsMoveLabel:VueTypes.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 _extends({},getResultStats$4(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return hasCustomRenderer(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){var n=this;isQueryIdentical(e,t,null,this.$props)||this.getMapPromise().then((function(){var t=getQueryOptions$5(n.$props);if(t.from=0,n.$defaultQuery=e(null,n.$props),n.setDefaultQueryForRSAPI(),n.$defaultQuery){var r=n.$defaultQuery||{},o=r.sort,s=r.query;o&&(t.sort=n.$defaultQuery.sort),getOptionsFromQuery$4(n.$defaultQuery)&&(t=_extends({},t,getOptionsFromQuery$4(n.$defaultQuery))),n.setQueryOptions(n.$props.componentId,t,!1);var a={mapBoxBounds:n.mapBoxBounds};n.setMapData(n.componentId,s,!0,!0,a),n.currentPageState=0,n.from=0}}))},promotedResults:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$h(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(!isEqual$h(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(i=i.filter((function(e){return!u.includes(e._id)}))),i=[].concat(a,i)}i=i.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return _extends({},e,((t={})[n.dataField]=getLocationObject(e[n.dataField]),t))})),this.filteredResults=this.addNoise(i),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!isEqual$h(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(MAP_CENTER)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=_extends({},e),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=i+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,s=0,a=0;n.forEach((function(e){if(e){var t,n,r=getLocationObject(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var i=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=i,s+=u,a+=l}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),u=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*i/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(),this.$defaultQuery)){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,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,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,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:s,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:i,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=_extends({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(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=getQueryOptions$5(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,_extends({},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(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var u={geo_bounding_box:(a={},a[this.dataField]=i,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=getQueryOptions$5(this.$props);this.from=e,this.loadMoreAction(this.componentId,_extends({},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 _extends({},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?isFunction$1(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:getClassName$h(this.innerClass,"checkboxContainer")||null}},[e(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:getClassName$h(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:getClassName$h(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Pagination,{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},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap),this.setDefaultQueryForRSAPI()},mounted:function(){var e=this;this.getMapPromise().then((function(){e.defaultPage<0&&e.currentPage>0&&e.$props.URLParams&&e.setPageURL(e.$props.componentId,e.currentPage,e.$props.componentId,!1,!0);var t,n=getQueryOptions$5(e.$props);(n.from=e.$data.from,e.$props.sortBy)&&(n.sort=[(t={},t[e.$props.dataField]={order:e.$props.sortBy},t)]);if(e.$defaultQuery=null,e.$props.defaultQuery){if(e.$defaultQuery=e.$props.defaultQuery(),e.setDefaultQueryForRSAPI(),e.$defaultQuery){n=_extends({},n,getOptionsFromQuery$4(e.$defaultQuery)),e.$defaultQuery.sort&&(n.sort=e.$defaultQuery.sort);var r={mapBoxBounds:e.mapBoxBounds};e.$defaultQuery&&(e.setMapData(e.componentId,e.$defaultQuery.query,!0,!1,r),e.setQueryOptions(e.componentId,n))}}else{var o=e.getGeoDistanceQuery();if(o){var s=!!e.center,a=e.searchAsMove,i=e.center||e.defaultCenter,u=e.getArrPosition(i),l={distance:e.defaultRadius,coordinates:u.lat+", "+u.lon};e.setMapData(e.componentId,o,s,a,l)}e.setQueryOptions(e.componentId,n)}}))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:_extends({},style,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])}},mapStateToProps$i=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}},mapDispatchToProps$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$d,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$8,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$i,mapDispatchToProps$4)(ReactiveMap),{componentType:constants_1$1.reactiveMap,internalComponent:!0}));ReactiveMap.install=function(e){e.component(ReactiveMap.name,RMConnected)},ReactiveMap.componentType=constants_1$1.reactiveMap;var infoWindowMappedProps$1={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bindEvents$1(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter$1(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues$1(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function watchPrimitiveProperties$1(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set"+capitalizeFirstLetter$1(r),l="get"+capitalizeFirstLetter$1(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&&i?watchPrimitiveProperties$1(e,i.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}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}var _excluded$i=["options","position"],InfoWindowClusterManager={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=_extends({},e.options,{map:n},getPropsValues$1(e,infoWindowMappedProps$1)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$i));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),bindProps$1(e,e.$infoWindowObject,infoWindowMappedProps$1),bindEvents$1(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()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.object,marker:VueTypes.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(InfoWindowClusterManager,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},_excluded$j=["options"],isEqual$i=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:VueTypes.array,getPosition:VueTypes.func,defaultPin:VueTypes.string,renderItem:VueTypes.func,markerProps:VueTypes.object,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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){isEqual$i(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,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey$1))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e)},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=[],s=[],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 s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var u=_objectWithoutPropertiesLoose(s,_excluded$j);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var i=[];o.forEach((function(e){i.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).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(InfoWindowWrapper,{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}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindow=components.InfoWindow,InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.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(InfoWindow,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},MapElementMixin=components.MapElementMixin,MarkerWithLabel={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:VueTypes.func.isRequired,handleMouseOver:VueTypes.func,handleFocus:VueTypes.func,handleMouseOut:VueTypes.func,handleBlur:VueTypes.func,handleClick:VueTypes.func},data:function(){return{opacity:.01}},mixins:[MapElementMixin],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}_inheritsLoose(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.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()])}},_templateObject$q,_templateObject2$c,_templateObject3$8,MapPin=index$1("div")(_templateObject$q||(_templateObject$q=_taggedTemplateLiteralLoose(["\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"]))),MapPinArrow=index$1("div")(_templateObject2$c||(_templateObject2$c=_taggedTemplateLiteralLoose(["\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"]))),mapPinWrapper=css(_templateObject3$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Marker=components.Marker,recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:VueTypes.number,marker:VueTypes.object.isRequired,getPosition:VueTypes.func.isRequired,defaultPin:VueTypes.string,renderItem:VueTypes.func,setOpenMarkers:VueTypes.func.isRequired,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,openMarkers:VueTypes.object,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{setIcon:function(e){this.markerIcon=e},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,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,u=s._id;r(a?((e={})[u]=!0,e):_extends({},o,((t={})[u]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].map(_toPropertyKey$1)));t(r?{}:i),o(!0),n.setIcon=this.setIcon,this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e){var t,n=this,r=this.$createElement,o=this.$props,s=o.getPosition,a=o.renderPopover,i=o.openMarkers;return t={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in i?r(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return a({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:t.position,options:t.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,s=n.defaultPin,a=n.renderPopover,i=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=this.setIcon;var c=o(u);if("label"in c)return t(MarkerWithLabel,{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:mapPinWrapper}},[t(MapPin,[c.label]),t(MapPinArrow),a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});if(!("icon"in c))return t(MarkerWithLabel,{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:mapPinWrapper}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});l.icon=c.icon}else s&&(l.icon={url:s});return t(Marker,{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:_extends({},i)},[a?this.renderPopoverClick(u):null])}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),Cluster$1=components.Cluster,GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:VueTypes.array,getPosition:VueTypes.func,renderItem:VueTypes.func,renderClusterPopover:VueTypes.func,defaultPin:VueTypes.string,autoClosePopover:VueTypes.bool,handlePreserveCenter:VueTypes.func,renderPopover:VueTypes.func,markerProps:VueTypes.object,clusterProps:VueTypes.object,showMarkerClusters:VueTypes.bool,highlightMarkerOnHover:VueTypes.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(Cluster$1,{props:_extends({},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(ClusterManager,{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:_extends({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(InfoWindowWrapper$1,{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(GoogleMapMarker$1,{attrs:{index:r,marker:n},props:_extends({},o),on:_extends({},e.$listeners)})}))])}},Map=components.MapLayer,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:VueTypes.func,loader:types.title,defaultZoom:VueTypes.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,mapProps:VueTypes.object,showMarkers:VueTypes.bool.def(!0),showMarkerClusters:VueTypes.bool.def(!1),searchAsMove:VueTypes.bool.def(!1),searchAsMoveLabel:VueTypes.string,markerProps:VueTypes.object,clusterProps:VueTypes.object,renderItem:VueTypes.func,showSearchAsMove:VueTypes.bool.def(!0),autoClosePopover:VueTypes.bool,pagination:VueTypes.bool,defaultPin:VueTypes.string,autoCenter:VueTypes.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:VueTypes.number.def(5),calculateMarkers:VueTypes.func,highlightMarkerOnHover:VueTypes.bool.def(!0)},created:function(){var e=this;this.mapRefPromiseResolve=null,this.mapRefPromiseRejecter=null,this.mapRefPromise=new Promise((function(t,n){e.mapRefPromiseResolver=t,e.mapRefPromiseRejecter=n}))},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=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(Map,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:_extends({},this.mapProps),on:{zoom_changed:s,dragend:a,idle:i}},[this.showMarkers?h(GoogleMapMarkers,{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:_extends({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},getMapRefPromise:function(){return this.mapRefPromise},removeMarkers:function(){for(var e,t=this;t;)if(t&&t.$options&&"connect-ClusterMarkers"===t.$options.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,e.mapRefPromiseResolver(e.mapRef)})).catch(this.mapRefPromiseRejecter)},render:function(){var e=arguments[0];return e(RMConnected,helper$1([{attrs:{getMapRef:this.getMapRef,getMapPromise:this.getMapRefPromise,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,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(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(main,{load:{key:t.key,libraries:"places"},installComponents:!1})}};ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var _excluded$k=["aggs","size"],_excluded2=["query"],_excluded3=["query"],_componentTypeToDefau,X_SEARCH_CLIENT$1="ReactiveSearch Vue",componentsWithoutFilters=[constants_1$1.numberBox,constants_1$1.ratingsFilter],resultComponents=[constants_1$1.reactiveList,constants_1$1.reactiveMap],componentTypeToDefaultValue=(_componentTypeToDefau={},_componentTypeToDefau[constants_1$1.singleList]="",_componentTypeToDefau[constants_1$1.multiList]=[],_componentTypeToDefau[constants_1$1.singleDataList]="",_componentTypeToDefau[constants_1$1.singleDropdownList]="",_componentTypeToDefau[constants_1$1.multiDataList]=[],_componentTypeToDefau[constants_1$1.multiDropdownList]=[],_componentTypeToDefau[constants_1$1.tagCloud]="",_componentTypeToDefau[constants_1$1.toggleButton]="",_componentTypeToDefau[constants_1$1.singleDropdownRange]="",_componentTypeToDefau[constants_1$1.multiDropdownRange]=[],_componentTypeToDefau[constants_1$1.singleRange]="",_componentTypeToDefau[constants_1$1.multiRange]=[],_componentTypeToDefau);function getValue(e,t,n,r){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n||componentTypeToDefaultValue[r]||null,reference:"DEFAULT"}}function parseValue(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}function getDefaultQuery(e,t){var n=parseValue(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}function getCustomQuery(e,t){var n=parseValue(t,e);if(e.customQuery){var r=e.customQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}function initReactivesearch(e,t,n){return new Promise((function(r,o){var s=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,i=_extends({},n.enableAppbase&&_extends({"X-Search-Client":X_SEARCH_CLIENT$1},!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=helper_1(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:s,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:i,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,endpoint:n.endpoint},p=appbasejs(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},m={},g={},y={},v=[],_={},b=[],$={},C={},O={},T={},S={},w={},P={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){constants_3$1.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var s=resultComponents.includes(n),a=e.componentId+"__internal",i=e.filterLabel||e.componentId,u=getValue(t,e.componentId,e.value||e.defaultValue,n),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;componentsWithoutFilters.includes(n)&&(p=!1),h=valueReducer(h,{type:"SET_VALUE",component:e.componentId,label:i,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(w[e.componentId]=e.defaultQuery(l,r));var m={};e&&e.source.generateQueryOptions&&(m=_extends({},m,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),m&&Object.keys(m).length||v&&Object.keys(v).length){var _=m||{},b=_.aggs,$=_.size,C=_objectWithoutPropertiesLoose(_,_excluded$k);if(b&&Object.keys(b).length&&(o=!0,m=_extends({},m,{aggs:b,size:void 0===$?100:$})),C&&Object.keys(C).length||v&&Object.keys(v).length){C||(C={}),v||(v={});var O=_extends({},C,v,{size:$});if(o&&(O=_extends({},C,v)),s){var T=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&(T=h[e.componentId].value-1||0);var E=e.size||10,R=T*E;r.from=R,O=_extends({},O,v,{size:E,from:R})}m=_extends({},m,O)}}if(e.react||o||s){var k=e.react;(o||s)&&(k=helper_38(k,a)),y=dependencyTreeReducer(y,{type:"WATCH_COMPONENT",component:e.componentId,react:k})}if(o&&!transform_8(e.componentType)){var I=getDefaultQuery(e,l)||{},x=I.query,A=_objectWithoutPropertiesLoose(I,_excluded2);f=queryReducer(f,{type:"SET_QUERY",component:a,query:x}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:a,options:_extends({},m,A)})}var L=getCustomQuery(e,l)||{},j=L.query,V=_objectWithoutPropertiesLoose(L,_excluded3),M=j;f=queryReducer(f,{type:"SET_QUERY",component:e.componentId,query:M}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:_extends({},V)}),r.componentType=n,P[e.componentId]=r})),T={components:d,dependencyTree:y,queryList:f,queryOptions:g,selectedValues:h,internalValues:{},props:P,customQueries:S,defaultQueries:w},e.forEach((function(e){var t=helper_37(e.componentId,y,f,g),r=t.queryObj,o=t.options,s=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return s.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),b=[].concat(b,[e.componentId]);var i=_extends({query:_extends({},r)},o,g[e.componentId]);if(m=_extends({},m,((a={})[e.componentId]=i,a)),n.enableAppbase){var u,l=transform_5(e.componentId,transform_3(T,e.componentId,g&&Object.keys(g[e.componentId]).length?{from:g[e.componentId].from}:null));if(l)_=_extends({},_,((u={})[e.componentId]=l,u),transform_2(T,e.componentId,b))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},i])}}})),T.queryLog=m;var E=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))},R=function(e){var t=b.map((function(t,n){return new Promise((function(r,o){E(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=_extends({},C,((o={})[t]=e.aggregations,o)),O=compositeAggsReducer(O,{type:constants_10,aggregations:e.aggregations,append:!1}));$=_extends({},$,((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(){T=_extends({},T,{hits:$,aggregations:C}),r(T)}))};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){fetchGraphQL(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){R(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(_).length){v=Object.keys(_).map((function(e){return _[e]}));var k={};c.analyticsConfig&&(k.recordAnalytics=utils_2(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,k.userId=utils_2(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,k.enableQueryRules=utils_2(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,k.customEvents=utils_2(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,k).then((function(e){!function(e){var t={},n={},o={},s={},a=b.map((function(r){return new Promise((function(a,i){E(e[r],r).then((function(e){if(e){var i,u;if(e.promoted&&(t[r]=e.promoted.map((function(e){return _extends({},e.doc,{_position:e.position})}))),n[r]=e,e.customData&&(o[r]=e.customData),e.settings&&(s[r]=e.settings),e.aggregations)C=_extends({},C,((u={})[r]=e.aggregations,u));var l=e.hits?e.hits:e[r].hits;$=_extends({},$,((i={})[r]={hits:l.hits,total:"object"==typeof l.total?l.total.value:l.total,time:e.took},i)),a()}})).catch((function(e){return i(e)}))}))}));Promise.all(a).then((function(){T=_extends({},T,{hits:$,aggregations:C,compositeAggregations:O,promotedResults:t,settings:s,customData:o,rawData:n}),r(T)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){R(e)})).catch((function(e){return o(e)}))}))}var version="1.36.2",components$1=[RLConnected,ResultCard,ResultList,ReactiveBase,DSConnected,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4];function install(e){components$1.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install(window.Vue);var index$4={version:version,install:install};exports.DataSearch=DSConnected,exports.DynamicRangeSlider=RangeConnected,exports.MultiDropdownList=ListConnected$3,exports.MultiList=ListConnected$1,exports.MultiRange=RangeConnected$2,exports.RangeInput=RangeConnected$4,exports.RangeSlider=RangeConnected$3,exports.ReactiveBase=ReactiveBase,exports.ReactiveComponent=RcConnected,exports.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,exports.SingleDropdownList=ListConnected$2,exports.SingleList=ListConnected,exports.SingleRange=RangeConnected$1,exports.StateProvider=StateProviderConnected,exports.ToggleButton=TBConnected,exports.componentTypes=constants_1$1,exports.default=index$4,exports.initReactivesearch=initReactivesearch,exports.install=install,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
50
|
+
***************************************************************************** */function __rest(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}var Cluster=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=e.prototype;return t.push=function(e){this.markers.push(e)},t.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},_createClass(e,[{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}}]),e}(),AbstractAlgorithm=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 _noop(t)},e}(),_noop=function(e){return e.map((function(e){return new Cluster({position:e.getPosition(),markers:[e]})}))},SuperClusterAlgorithm=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),n.state={zoom:null},n}_inheritsLoose(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!fastDeepEqual(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||!fastDeepEqual(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 Cluster({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 s=o.marker;return new Cluster({markers:[s],position:s.getPosition()})},t}(AbstractAlgorithm),ClusterStats=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)}}},DefaultRenderer=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",s=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,"+s,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}();function extend$1(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}var OverlayViewSafe=function e(){extend$1(e,google.maps.OverlayView)},MarkerClustererEvents;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MarkerClustererEvents||(MarkerClustererEvents={}));var defaultOnClusterClickHandler=function(e,t,n){n.fitBounds(t.bounds)},MarkerClusterer=function(e){function t(t){var n,r=t.map,o=t.markers,s=void 0===o?[]:o,a=t.algorithm,i=void 0===a?new SuperClusterAlgorithm({}):a,u=t.renderer,l=void 0===u?new DefaultRenderer:u,c=t.onClusterClick,p=void 0===c?defaultOnClusterClickHandler:c;return(n=e.call(this)||this).markers=[].concat(s),n.clusters=[],n.algorithm=i,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}_inheritsLoose(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,MarkerClustererEvents.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,MarkerClustererEvents.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 ClusterStats(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,MarkerClustererEvents.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(OverlayViewSafe),_excluded$6=["options"],script$2={name:"ClusterIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,clusterIconMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$6));if(void 0===MarkerClusterer)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 s=o.map,a=o.markers,i=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new MarkerClusterer({map:s,markers:a,algorithm:i,onClusterClick:u,renderer:l}),bindProps(e,e.$clusterObject,{}),bindEvents(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)}}},__vue_script__$2=script$2,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),_excluded$7=["options"],script$3={name:"DrawingManager",mixins:[mapElementMixin],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=_extends({},e.options,{map:t},getPropsValues(e,drawingManagerMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$7));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),bindProps(e,e.$drawingManagerObject,drawingManagerMappedProps),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)}}},__vue_script__$3=script$3,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),_excluded$8=["options"],script$4={name:"HeatmapLayer",mixins:[mapElementMixin],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:e.$map},getPropsValues(e,heatMapLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$8));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),bindProps(e,e.$heatmapLayerObject,heatMapLayerMappedProps),bindEvents(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)}},__vue_script__$4=script$4,__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=void 0,__vue_component__$4=normalizeComponent({},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),_excluded$9=["options","position"],script$5={name:"InfoWindow",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$9));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),bindProps(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents(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()}}},__vue_script__$5=script$5,__vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},__vue_staticRenderFns__$3=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),_excluded$a=["options"],script$6={name:"KmlLayer",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,kmlLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$a));return e.$kmlLayerObject=new google.maps.KmlLayer(o),bindProps(e,e.$kmlLayerObject,kmlLayerMappedProps),bindEvents(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)}},__vue_script__$6=script$6,__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=void 0,__vue_component__$6=normalizeComponent({},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,!1,void 0,void 0,void 0),mountableMixin={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)}},_excluded$b=["options"],script$7={name:"MapLayer",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,mapMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$b)),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}),bindProps(e,e.$mapObject,mapMappedProps),bindEvents(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),twoWayBindingWrapper((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));watchPrimitiveProperties(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)}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),HEAD;function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var n=isOldIE?t.media||"default":e,r=styles[n]||(styles[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===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var s=r.ids.size-1,a=document.createTextNode(o),i=r.element.childNodes;i[s]&&r.element.removeChild(i[s]),i.length?r.element.insertBefore(a,i[s]):r.element.appendChild(a)}}}var __vue_script__$7=script$7,__vue_render__$4=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)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$7=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})},__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,__vue_component__$7=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,!1,createInjector,void 0,void 0),_excluded$c=["options"],script$8={name:"MarkerIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,markerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$c));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),bindProps(e,e.$markerObject,markerMappedProps),bindEvents(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):""}},__vue_script__$8=script$8,__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=void 0,__vue_component__$8=normalizeComponent({},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,!1,void 0,void 0,void 0),_excluded$d=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],script$9={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=getPropsValues(e,placeInputMappedProps);if(e.selectFirstOnEnter&&downArrowSimulator(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=_objectWithoutPropertiesLoose(placeInputMappedProps,_excluded$d);bindProps(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)}},__vue_script__$9=script$9,__vue_render__$5=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}})])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,__vue_component__$9=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,!1,void 0,void 0,void 0),_excluded$e=["options","path","paths"],script$a={name:"PolygonShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polygonMappedProps)),o=(r.options,r.path,r.paths,_objectWithoutPropertiesLoose(r,_excluded$e));e.$polygonObject=new google.maps.Polygon(o),bindProps(e,e.$polygonObject,polygonMappedProps),bindEvents(e,e.$polygonObject,t);var s=function(){};return e.$watch("paths",(function(t){if(t){s(),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 i=o.getAt(a);r.push([i,i.addListener("insert_at",n)]),r.push([i,i.addListener("remove_at",n)]),r.push([i,i.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)]),s=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){s(),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)]),s=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)}},__vue_script__$a=script$a,__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=void 0,__vue_component__$a=normalizeComponent({},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,!1,void 0,void 0,void 0),_excluded$f=["options"],script$b={name:"PolylineShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polylineMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$f));e.$polylineObject=new google.maps.Polyline(o),bindProps(e,e.$polylineObject,polylineMappedProps),bindEvents(e,e.$polylineObject,t);var s=function(){};return e.$watch("path",(function(t){if(t){s(),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)]),s=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)}},__vue_script__$b=script$b,__vue_inject_styles__$b=void 0,__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=void 0,__vue_component__$b=normalizeComponent({},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,!1,void 0,void 0,void 0),_excluded$g=["options"],script$c={name:"RectangleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,rectangleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$g));return e.$rectangleObject=new google.maps.Rectangle(o),bindProps(e,e.$rectangleObject,rectangleMappedProps),bindEvents(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)}},__vue_script__$c=script$c,__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=void 0,__vue_component__$c=normalizeComponent({},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,!1,void 0,void 0,void 0),_excluded$h=["options"],script$d={name:"StreetViewPanorama",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,streetViewPanoramaMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$h));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),bindProps(e,e.$panoObject,streetViewPanoramaMappedProps),bindEvents(e,e.$panoObject,t),twoWayBindingWrapper((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));watchPrimitiveProperties(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)}},__vue_script__$d=script$d,__vue_render__$6=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)},__vue_staticRenderFns__$6=[],__vue_inject_styles__$d=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})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,__vue_component__$d=normalizeComponent({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,!1,createInjector,void 0,void 0);function createCallbackAndChecksIfMapIsLoaded(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)}function getPromiseLazyCreatorFn(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return getLazyValue((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{createCallbackAndChecksIfMapIsLoaded(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&&createCallbackAndChecksIfMapIsLoaded(e,window[n&&n.load&&n.load.customCallback])})).then(r);return getLazyValue((function(){return o}))}}function createGoogleMapsAPIInitializer(){var e=!1;return function(t,n){if("object"!==_typeof$3(t))throw new Error("options should be an object");if("undefined"!=typeof document){var r=_objectSpread2$1({},t),o=r.libraries;if(e)window.console.info("You already started the loading of google maps");else{e=!0;var s="boolean"==typeof n&&n?"https://maps.google.cn":"https://maps.googleapis.com",a=document.createElement("SCRIPT");Array.isArray(o)&&(r.libraries=o.join(",")),r.callback="GoogleMapsCallback";var i=Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&"),u="".concat(s,"/maps/api/js?").concat(i);a.setAttribute("src",u),a.setAttribute("async",""),a.setAttribute("defer",""),document.head.appendChild(a)}}}}var googleMapsApiInitializer=createGoogleMapsAPIInitializer(),GoogleMapsApi,components={HeatmapLayer:__vue_component__$4,KmlLayer:__vue_component__$6,Marker:__vue_component__$8,Polyline:__vue_component__$b,Polygon:__vue_component__$a,Circle:__vue_component__$1,Cluster:__vue_component__$2,Rectangle:__vue_component__$c,DrawingManager:__vue_component__$3,InfoWindow:__vue_component__$5,MapLayer:__vue_component__$7,PlaceInput:__vue_component__$9,Autocomplete:__vue_component__,StreetViewPanorama:__vue_component__$d,MapElementMixin:mapElementMixin,MountableMixin:mountableMixin};function gmapVuePluginInstallFn(e,t){var n=_objectSpread2$1({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);GoogleMapsApi=new e({data:{isReady:!1}});var r=new e,o=getPromiseLazyCreatorFn(googleMapsApiInitializer,GoogleMapsApi)(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",__vue_component__$7),e.component("GmapMarker",__vue_component__$8),e.component("GmapInfoWindow",__vue_component__$5),e.component("GmapHeatmapLayer",__vue_component__$4),e.component("GmapKmlLayer",__vue_component__$6),e.component("GmapPolyline",__vue_component__$b),e.component("GmapPolygon",__vue_component__$a),e.component("GmapCircle",__vue_component__$1),e.component("GmapRectangle",__vue_component__$c),e.component("GmapDrawingManager",__vue_component__$3),e.component("GmapAutocomplete",__vue_component__),e.component("GmapPlaceInput",__vue_component__$9),e.component("GmapStreetViewPanorama",__vue_component__$d))}for(var main={install:gmapVuePluginInstallFn},BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$1=0;i$1<BASE32_CODES.length;i$1++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$1)]=i$1;var ENCODE_AUTO="auto",MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180,SIGFIG_HASH_LENGTH=[0,5,7,8,11,12,13,15,16,17,18],encode$1=function(e,t,n){if(n===ENCODE_AUTO){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,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,i=[],u=0,l=0,c=0,p=MAX_LAT,d=MIN_LAT,h=MAX_LON,f=MIN_LON;i.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 m=BASE32_CODES[c];i.push(m),u=0,c=0}return i.join("")},encode_int=function(e,t,n){n=n||52;for(var r,o=0,s=MAX_LAT,a=MIN_LAT,i=MAX_LON,u=MIN_LON,l=0;o<n;)l*=2,o%2==0?t>(r=(i+u)/2)?(l+=1,u=r):i=r:e>(r=(s+a)/2)?(l+=1,a=r):s=r,o++;return l},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=MIN_LON,i=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();i=BASE32_CODES_DICT[c];for(var p=4;p>=0;p--){var d=i>>p&1;n?(t=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,u=0;u<i;u++)a=get_bit(e,2*(i-u)-1),0===get_bit(e,2*(i-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,n,o]};function get_bit(e,t){return e/Math.pow(2,t)&1}var decode$1=function(e){var t=decode_bbox(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}}},decode_int=function(e,t){var n=decode_bbox_int(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}}},neighbor=function(e,t){var n=decode$1(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=ensure_valid_lon(o),r=ensure_valid_lat(r),encode$1(r,o,e.length)},neighbor_int=function(e,t,n){var r=decode_int(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+o*u),t=ensure_valid_lat(t),encode$1(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=decode_int(e,t=t||52),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+o*u),n=ensure_valid_lat(n),encode_int(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 s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor_int(s,[m,g],o));return f};function ensure_valid_lon(e){return e>MAX_LON?MIN_LON+e%MAX_LON:e<MIN_LON?MAX_LON+e%MAX_LON:e}function ensure_valid_lat(e){return e>MAX_LAT?MAX_LAT:e<MIN_LAT?MIN_LAT:e}var geohash={ENCODE_AUTO:ENCODE_AUTO,encode:encode$1,encode_uint64:encode_int,encode_int:encode_int,decode:decode$1,decode_int:decode_int,decode_uint64:decode_int,decode_bbox:decode_bbox,decode_bbox_uint64:decode_bbox_int,decode_bbox_int:decode_bbox_int,neighbor:neighbor,neighbor_int:neighbor_int,neighbors:neighbors,neighbors_int:neighbors_int,bboxes:bboxes,bboxes_int:bboxes_int},main$1=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$d=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$8=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$h=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$h=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$4=lib_8.getResultStats,MAP_CENTER={lat:37.7749,lng:122.4194},style={width:"100%",height:"100vh",position:"relative"};function getPrecision(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function withDistinctLat(e,t){var n=getPrecision(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return _extends({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function getLocationObject(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=main$1.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var ReactiveMap={name:"ReactiveMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,autoCenter:VueTypes.bool,getMapRef:VueTypes.func.isRequired,getMapPromise:VueTypes.func,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:VueTypes.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:VueTypes.number.def(5),currentPage:VueTypes.number.def(0),pagination:VueTypes.bool,showMarkers:VueTypes.bool,defaultSearchAsMove:VueTypes.bool,showSearchAsMove:VueTypes.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:VueTypes.bool,renderMap:VueTypes.func.isRequired,renderPopover:VueTypes.func,calculateMarkers:VueTypes.func,searchAsMoveLabel:VueTypes.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 _extends({},getResultStats$4(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return hasCustomRenderer(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){var n=this;isQueryIdentical(e,t,null,this.$props)||this.getMapPromise().then((function(){var t=getQueryOptions$5(n.$props);if(t.from=0,n.$defaultQuery=e(null,n.$props),n.setDefaultQueryForRSAPI(),n.$defaultQuery){var r=n.$defaultQuery||{},o=r.sort,s=r.query;o&&(t.sort=n.$defaultQuery.sort),getOptionsFromQuery$4(n.$defaultQuery)&&(t=_extends({},t,getOptionsFromQuery$4(n.$defaultQuery))),n.setQueryOptions(n.$props.componentId,t,!1);var a={mapBoxBounds:n.mapBoxBounds};n.setMapData(n.componentId,s,!0,!0,a),n.currentPageState=0,n.from=0}}))},promotedResults:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$h(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(!isEqual$h(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(i=i.filter((function(e){return!u.includes(e._id)}))),i=[].concat(a,i)}i=i.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return _extends({},e,((t={})[n.dataField]=getLocationObject(e[n.dataField]),t))})),this.filteredResults=this.addNoise(i),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!isEqual$h(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(MAP_CENTER)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=_extends({},e),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=i+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,s=0,a=0;n.forEach((function(e){if(e){var t,n,r=getLocationObject(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var i=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=i,s+=u,a+=l}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),u=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*i/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(),this.$defaultQuery)){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,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,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,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:s,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:i,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=_extends({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(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=getQueryOptions$5(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,_extends({},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(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var u={geo_bounding_box:(a={},a[this.dataField]=i,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=getQueryOptions$5(this.$props);this.from=e,this.loadMoreAction(this.componentId,_extends({},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 _extends({},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?isFunction$1(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:getClassName$h(this.innerClass,"checkboxContainer")||null}},[e(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:getClassName$h(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:getClassName$h(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Pagination,{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},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap),this.setDefaultQueryForRSAPI()},mounted:function(){var e=this;this.getMapPromise().then((function(){e.defaultPage<0&&e.currentPage>0&&e.$props.URLParams&&e.setPageURL(e.$props.componentId,e.currentPage,e.$props.componentId,!1,!0);var t,n=getQueryOptions$5(e.$props);(n.from=e.$data.from,e.$props.sortBy)&&(n.sort=[(t={},t[e.$props.dataField]={order:e.$props.sortBy},t)]);if(e.$defaultQuery=null,e.$props.defaultQuery){if(e.$defaultQuery=e.$props.defaultQuery(),e.setDefaultQueryForRSAPI(),e.$defaultQuery){n=_extends({},n,getOptionsFromQuery$4(e.$defaultQuery)),e.$defaultQuery.sort&&(n.sort=e.$defaultQuery.sort);var r={mapBoxBounds:e.mapBoxBounds};e.$defaultQuery&&(e.setMapData(e.componentId,e.$defaultQuery.query,!0,!1,r),e.setQueryOptions(e.componentId,n))}}else{var o=e.getGeoDistanceQuery();if(o){var s=!!e.center,a=e.searchAsMove,i=e.center||e.defaultCenter,u=e.getArrPosition(i),l={distance:e.defaultRadius,coordinates:u.lat+", "+u.lon};e.setMapData(e.componentId,o,s,a,l)}e.setQueryOptions(e.componentId,n)}}))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:_extends({},style,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])}},mapStateToProps$i=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}},mapDispatchToProps$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$d,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$8,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$i,mapDispatchToProps$4)(ReactiveMap),{componentType:constants_1$1.reactiveMap,internalComponent:!0}));ReactiveMap.install=function(e){e.component(ReactiveMap.name,RMConnected)},ReactiveMap.componentType=constants_1$1.reactiveMap;var infoWindowMappedProps$1={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bindEvents$1(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter$1(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues$1(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function watchPrimitiveProperties$1(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set"+capitalizeFirstLetter$1(r),l="get"+capitalizeFirstLetter$1(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&&i?watchPrimitiveProperties$1(e,i.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}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}var _excluded$i=["options","position"],InfoWindowClusterManager={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=_extends({},e.options,{map:n},getPropsValues$1(e,infoWindowMappedProps$1)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$i));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),bindProps$1(e,e.$infoWindowObject,infoWindowMappedProps$1),bindEvents$1(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()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.object,marker:VueTypes.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(InfoWindowClusterManager,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},_excluded$j=["options"],isEqual$i=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:VueTypes.array,getPosition:VueTypes.func,defaultPin:VueTypes.string,renderItem:VueTypes.func,markerProps:VueTypes.object,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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){isEqual$i(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,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey$1))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e)},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=[],s=[],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 s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var u=_objectWithoutPropertiesLoose(s,_excluded$j);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var i=[];o.forEach((function(e){i.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).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(InfoWindowWrapper,{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}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindow=components.InfoWindow,InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.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(InfoWindow,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},MapElementMixin=components.MapElementMixin,MarkerWithLabel={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:VueTypes.func.isRequired,handleMouseOver:VueTypes.func,handleFocus:VueTypes.func,handleMouseOut:VueTypes.func,handleBlur:VueTypes.func,handleClick:VueTypes.func},data:function(){return{opacity:.01}},mixins:[MapElementMixin],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}_inheritsLoose(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.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()])}},_templateObject$q,_templateObject2$c,_templateObject3$8,MapPin=index$1("div")(_templateObject$q||(_templateObject$q=_taggedTemplateLiteralLoose(["\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"]))),MapPinArrow=index$1("div")(_templateObject2$c||(_templateObject2$c=_taggedTemplateLiteralLoose(["\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"]))),mapPinWrapper=css(_templateObject3$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Marker=components.Marker,recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:VueTypes.number,marker:VueTypes.object.isRequired,getPosition:VueTypes.func.isRequired,defaultPin:VueTypes.string,renderItem:VueTypes.func,setOpenMarkers:VueTypes.func.isRequired,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,openMarkers:VueTypes.object,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{setIcon:function(e){this.markerIcon=e},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,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,u=s._id;r(a?((e={})[u]=!0,e):_extends({},o,((t={})[u]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].map(_toPropertyKey$1)));t(r?{}:i),o(!0),n.setIcon=this.setIcon,this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e){var t,n=this,r=this.$createElement,o=this.$props,s=o.getPosition,a=o.renderPopover,i=o.openMarkers;return t={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in i?r(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return a({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:t.position,options:t.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,s=n.defaultPin,a=n.renderPopover,i=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=this.setIcon;var c=o(u);if("label"in c)return t(MarkerWithLabel,{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:mapPinWrapper}},[t(MapPin,[c.label]),t(MapPinArrow),a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});if(!("icon"in c))return t(MarkerWithLabel,{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:mapPinWrapper}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});l.icon=c.icon}else s&&(l.icon={url:s});return t(Marker,{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:_extends({},i)},[a?this.renderPopoverClick(u):null])}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),Cluster$1=components.Cluster,GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:VueTypes.array,getPosition:VueTypes.func,renderItem:VueTypes.func,renderClusterPopover:VueTypes.func,defaultPin:VueTypes.string,autoClosePopover:VueTypes.bool,handlePreserveCenter:VueTypes.func,renderPopover:VueTypes.func,markerProps:VueTypes.object,clusterProps:VueTypes.object,showMarkerClusters:VueTypes.bool,highlightMarkerOnHover:VueTypes.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(Cluster$1,{props:_extends({},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(ClusterManager,{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:_extends({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(InfoWindowWrapper$1,{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(GoogleMapMarker$1,{attrs:{index:r,marker:n},props:_extends({},o),on:_extends({},e.$listeners)})}))])}},Map=components.MapLayer,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:VueTypes.func,loader:types.title,defaultZoom:VueTypes.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,mapProps:VueTypes.object,showMarkers:VueTypes.bool.def(!0),showMarkerClusters:VueTypes.bool.def(!1),searchAsMove:VueTypes.bool.def(!1),searchAsMoveLabel:VueTypes.string,markerProps:VueTypes.object,clusterProps:VueTypes.object,renderItem:VueTypes.func,showSearchAsMove:VueTypes.bool.def(!0),autoClosePopover:VueTypes.bool,pagination:VueTypes.bool,defaultPin:VueTypes.string,autoCenter:VueTypes.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:VueTypes.number.def(5),calculateMarkers:VueTypes.func,highlightMarkerOnHover:VueTypes.bool.def(!0)},created:function(){var e=this;this.mapRefPromiseResolve=null,this.mapRefPromiseRejecter=null,this.mapRefPromise=new Promise((function(t,n){e.mapRefPromiseResolver=t,e.mapRefPromiseRejecter=n}))},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=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(Map,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:_extends({},this.mapProps),on:{zoom_changed:s,dragend:a,idle:i}},[this.showMarkers?h(GoogleMapMarkers,{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:_extends({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},getMapRefPromise:function(){return this.mapRefPromise},removeMarkers:function(){for(var e,t=this;t;)if(t&&t.$options&&"connect-ClusterMarkers"===t.$options.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,e.mapRefPromiseResolver(e.mapRef)})).catch(this.mapRefPromiseRejecter)},render:function(){var e=arguments[0];return e(RMConnected,helper$1([{attrs:{getMapRef:this.getMapRef,getMapPromise:this.getMapRefPromise,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,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(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(main,{load:{key:t.key,libraries:"places"},installComponents:!1})}};ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var _excluded$k=["aggs","size"],_excluded2=["query"],_excluded3=["query"],_componentTypeToDefau,X_SEARCH_CLIENT$1="ReactiveSearch Vue",componentsWithoutFilters=[constants_1$1.numberBox,constants_1$1.ratingsFilter],resultComponents=[constants_1$1.reactiveList,constants_1$1.reactiveMap],componentTypeToDefaultValue=(_componentTypeToDefau={},_componentTypeToDefau[constants_1$1.singleList]="",_componentTypeToDefau[constants_1$1.multiList]=[],_componentTypeToDefau[constants_1$1.singleDataList]="",_componentTypeToDefau[constants_1$1.singleDropdownList]="",_componentTypeToDefau[constants_1$1.multiDataList]=[],_componentTypeToDefau[constants_1$1.multiDropdownList]=[],_componentTypeToDefau[constants_1$1.tagCloud]="",_componentTypeToDefau[constants_1$1.toggleButton]="",_componentTypeToDefau[constants_1$1.singleDropdownRange]="",_componentTypeToDefau[constants_1$1.multiDropdownRange]=[],_componentTypeToDefau[constants_1$1.singleRange]="",_componentTypeToDefau[constants_1$1.multiRange]=[],_componentTypeToDefau);function getValue(e,t,n,r){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n||componentTypeToDefaultValue[r]||null,reference:"DEFAULT"}}function parseValue(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}function getDefaultQuery(e,t){var n=parseValue(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}function getCustomQuery(e,t){var n=parseValue(t,e);if(e.customQuery){var r=e.customQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}function initReactivesearch(e,t,n){return new Promise((function(r,o){var s=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,i=_extends({},n.enableAppbase&&_extends({"X-Search-Client":X_SEARCH_CLIENT$1},!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=helper_1(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:s,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:i,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,endpoint:n.endpoint},p=appbasejs(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},m={},g={},y={},v=[],_={},b=[],$={},C={},O={},T={},S={},w={},P={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){constants_3$1.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var s=resultComponents.includes(n),a=e.componentId+"__internal",i=e.filterLabel||e.componentId,u=getValue(t,e.componentId,e.value||e.defaultValue,n),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;componentsWithoutFilters.includes(n)&&(p=!1),h=valueReducer(h,{type:"SET_VALUE",component:e.componentId,label:i,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(w[e.componentId]=e.defaultQuery(l,r));var m={};e&&e.source.generateQueryOptions&&(m=_extends({},m,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),m&&Object.keys(m).length||v&&Object.keys(v).length){var _=m||{},b=_.aggs,$=_.size,C=_objectWithoutPropertiesLoose(_,_excluded$k);if(b&&Object.keys(b).length&&(o=!0,m=_extends({},m,{aggs:b,size:void 0===$?100:$})),C&&Object.keys(C).length||v&&Object.keys(v).length){C||(C={}),v||(v={});var O=_extends({},C,v,{size:$});if(o&&(O=_extends({},C,v)),s){var T=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&(T=h[e.componentId].value-1||0);var E=e.size||10,R=T*E;r.from=R,O=_extends({},O,v,{size:E,from:R})}m=_extends({},m,O)}}if(e.react||o||s){var k=e.react;(o||s)&&(k=helper_38(k,a)),y=dependencyTreeReducer(y,{type:"WATCH_COMPONENT",component:e.componentId,react:k})}if(o&&!transform_8(e.componentType)){var I=getDefaultQuery(e,l)||{},x=I.query,A=_objectWithoutPropertiesLoose(I,_excluded2);f=queryReducer(f,{type:"SET_QUERY",component:a,query:x}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:a,options:_extends({},m,A)})}var L=getCustomQuery(e,l)||{},j=L.query,V=_objectWithoutPropertiesLoose(L,_excluded3),M=j;f=queryReducer(f,{type:"SET_QUERY",component:e.componentId,query:M}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:_extends({},V)}),r.componentType=n,P[e.componentId]=r})),T={components:d,dependencyTree:y,queryList:f,queryOptions:g,selectedValues:h,internalValues:{},props:P,customQueries:S,defaultQueries:w},e.forEach((function(e){var t=helper_37(e.componentId,y,f,g),r=t.queryObj,o=t.options,s=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return s.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),b=[].concat(b,[e.componentId]);var i=_extends({query:_extends({},r)},o,g[e.componentId]);if(m=_extends({},m,((a={})[e.componentId]=i,a)),n.enableAppbase){var u,l=transform_5(e.componentId,transform_3(T,e.componentId,g&&Object.keys(g[e.componentId]).length?{from:g[e.componentId].from}:null));if(l)_=_extends({},_,((u={})[e.componentId]=l,u),transform_2(T,e.componentId,b))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},i])}}})),T.queryLog=m;var E=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))},R=function(e){var t=b.map((function(t,n){return new Promise((function(r,o){E(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=_extends({},C,((o={})[t]=e.aggregations,o)),O=compositeAggsReducer(O,{type:constants_10,aggregations:e.aggregations,append:!1}));$=_extends({},$,((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(){T=_extends({},T,{hits:$,aggregations:C}),r(T)}))};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){fetchGraphQL(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){R(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(_).length){v=Object.keys(_).map((function(e){return _[e]}));var k={};c.analyticsConfig&&(k.recordAnalytics=utils_2(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,k.userId=utils_2(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,k.enableQueryRules=utils_2(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,k.customEvents=utils_2(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,k).then((function(e){!function(e){var t={},n={},o={},s={},a=b.map((function(r){return new Promise((function(a,i){E(e[r],r).then((function(e){if(e){var i,u;if(e.promoted&&(t[r]=e.promoted.map((function(e){return _extends({},e.doc,{_position:e.position})}))),n[r]=e,e.customData&&(o[r]=e.customData),e.settings&&(s[r]=e.settings),e.aggregations)C=_extends({},C,((u={})[r]=e.aggregations,u));var l=e.hits?e.hits:e[r].hits;$=_extends({},$,((i={})[r]={hits:l.hits,total:"object"==typeof l.total?l.total.value:l.total,time:e.took},i)),a()}})).catch((function(e){return i(e)}))}))}));Promise.all(a).then((function(){T=_extends({},T,{hits:$,aggregations:C,compositeAggregations:O,promotedResults:t,settings:s,customData:o,rawData:n}),r(T)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){R(e)})).catch((function(e){return o(e)}))}))}var version="1.36.3",components$1=[RLConnected,ResultCard,ResultList,ReactiveBase,DSConnected,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4];function install(e){components$1.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install(window.Vue);var index$4={version:version,install:install};exports.DataSearch=DSConnected,exports.DynamicRangeSlider=RangeConnected,exports.MultiDropdownList=ListConnected$3,exports.MultiList=ListConnected$1,exports.MultiRange=RangeConnected$2,exports.RangeInput=RangeConnected$4,exports.RangeSlider=RangeConnected$3,exports.ReactiveBase=ReactiveBase,exports.ReactiveComponent=RcConnected,exports.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,exports.SingleDropdownList=ListConnected$2,exports.SingleList=ListConnected,exports.SingleRange=RangeConnected$1,exports.StateProvider=StateProviderConnected,exports.ToggleButton=TBConnected,exports.componentTypes=constants_1$1,exports.default=index$4,exports.initReactivesearch=initReactivesearch,exports.install=install,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
51
51
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|