@appbaseio/reactivesearch-vue 1.16.0-alpha.61 → 1.16.0-alpha.62
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.
|
@@ -33,5 +33,5 @@ function ht(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
|
|
|
33
33
|
*
|
|
34
34
|
* https://github.com/Astray-git/vue-highlight-words
|
|
35
35
|
*
|
|
36
|
-
*/function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pa,ha,fa={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,s=r.activeIndex,a=void 0===s?-1:s,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,d=void 0!==c&&c,p=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,C=r.searchWords,O=r.textToHighlight,_=r.unhighlightClassName,S=void 0===_?"":_,w=r.unhighlightStyle,$=t.data,E=ca({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:C,textToHighlight:O}),T=v,P=-1,I="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){da(e,t,n[t])}))}return e}({},$),E.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var s=++P===+a;I="".concat(f," ").concat(s?i:""),n=!0===s&&null!=u?Object.assign({},m,u):m;var l={class:I,key:r,style:n};return"string"!=typeof T&&(l.props={highlightIndex:P}),$.scopedSlots?e(T,l,[$.scopedSlots.default({children:o,highlightIndex:P})]):e(T,l,o)}return e("span",{class:S,key:r,style:w},o)})))}},ga={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},ma=Jt("span")(pa||(pa=dt(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ya={name:"SuggestionItem",props:{currentValue:Wn.string,suggestion:Wn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,s=t.image,a=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!a&&!u?e(fa,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:ga}}):e(ma,{domProps:{innerHTML:n}})]):n:o||s||i?e(Io,{attrs:{alignItems:"center",css:{width:"100%"}}},[s&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:s,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Io,{attrs:{direction:"column",css:{width:s?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:ga},class:Wt({fontSize:"1rem"})})]),i&&e("div",{class:Bt("trim",Wt({marginTop:3}))},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:ga}})])])]):r}},va={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:at({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"}})])}},ba={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"}})])}};Gt(ha||(ha=dt(["\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 Ca,Oa={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"}})])])])}};Gt(Ca||(Ca=dt(["\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 _a,Sa={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"}})])])])}};Gt(_a||(_a=dt(["\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 wa,$a,Ea,Ta={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"}})])])])])}},Pa="INACTIVE",Ia="STOPPED",ka="ACTIVE",Aa="DENIED",Ra={name:"Mic",props:{children:Wn.title,lang:kt.string.def("en-US"),iconPosition:kt.string.def("left"),handleResult:Wn.func,onNoMatch:Wn.func,onError:Wn.func,getInstance:Wn.func,render:Wn.func,className:Wn.string,applyClearStyle:kt.bool,showIcon:kt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return hr(t,this)},stopMic:function(){this.instance&&(this.status=Pa,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===ka&&(this.status=Pa);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,s=t.getInstance,a=window.SpeechRecognition;if(this.instance&&this.status!==Aa)return this.status=Pa,this.instance.stop(),void(this.instance=null);this.instance=new a,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,s&&s(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=ka},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=Pa:"not-allowed"===t.error&&(e.status=Aa),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=Pa},this.instance.onaudioend=function(){e.status=Pa}}}},computed:{hasCustomRenderer:function(){return fr(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case ka:return e(Ta,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ia:case Aa:return e(Sa,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(Oa,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:Pa}},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(Xs,[this.Icon])}},xa={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(va,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},La=Jt("div")(wa||(wa=dt(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Ma=Jt("span")($a||($a=dt(["\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"]))),ja=ot.updateQuery,Qa=ot.setQueryOptions,Va=ot.setCustomQuery,Da=ot.setDefaultQuery,Fa=ot.setCustomHighlightOptions,Na=ot.recordSuggestionClick,Ua=ot.loadPopularSuggestions,qa=ot.getRecentSearches,za=ot.resetStoreForComponent,Ba=st.debounce,Ha=st.checkValueChange,Ga=st.getClassName,Wa=st.extractQueryFromCustomQuery,Za=st.getOptionsForCustomQuery,Ka=st.isEqual,Ya=st.getCompositeAggsQuery,Xa=st.withClickIds,Ja=st.getResultStats,eu=st.handleOnSuggestions,tu=st.getTopSuggestions,nu=st.normalizeDataField,ru={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,s=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&s&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ba(this.handleText,this.$props.debounce),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),Xa(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return tu(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return at({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return at({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return tu(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return fr(this)},stats:function(){return Ja(this)}},props:{options:Wn.options,autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSearches:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderQuerySuggestions:Wn.func,renderPopularSuggestions:Wn.func,parseSuggestion:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,enableDefaultSuggestions:kt.bool.def(!0),mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Ka(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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){Ka(e,t)||(this.$options.isTagsMode?Ka(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=ru.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=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):hr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ya({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return eu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ha(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!Ka(e,i.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);if(i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e)i.selectedTags.push(e);else if(Array.isArray(e)&&!Ka(i.selectedTags,e)){var s=Array.from(new Set([].concat(i.selectedTags,e)));i.selectedTags=s}}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=e;var a=e;i.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(a=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof e&&i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.updateQueryHandler(n.componentId,a,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,a,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=ru.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Wa(o);i&&(r=i),n=Za(o),yr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,at({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:L.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,s=n.showFilter,a=n.URLParams,u=ru.defaultQuery(t,n);if(o){var l=o(t,n),c=Wa(l);c&&(u=c),r=Za(l),vr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,at({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:s,URLParams:a,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Vs,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:Ga(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(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:Ga(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(ba)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ga(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,s=n.enableDefaultSuggestions,a=this.$scopedSlots,u=a.recentSearchesIcon,l=a.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==s||this.currentValue||(c=!1),t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Ga(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(ia,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,a=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Ws(e.themePreset,r)+" "+Ga(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({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(xa,{attrs:{className:Ga(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),Cr(e)?e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({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(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:Ga(e.$props.innerClass,"input"),on:at({},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(){g(null)}})),domProps:at({},a({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:Ga(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:at({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:at({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=nu(t.dataField,t.fieldWeights);n={bool:{should:ru.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:at({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},ou=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Qa,updateQuery:ja,setCustomQuery:Va,setDefaultQuery:Da,setCustomHighlightOptions:Fa,recordSuggestionClick:Na,loadPopularSuggestions:Ua,getRecentSearches:qa,resetStoreForComponent:za})(ru),{componentType:L.dataSearch,internalComponent:ru.hasInternalComponent()});ru.install=function(e){e.component(ru.name,ou)},ru.componentType=L.dataSearch;var iu,su,au,uu,lu,cu,du=Jt("button")(Ea||(Ea=dt(["\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"]))),pu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(du,{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)}}},hu=ot.updateQuery,fu=ot.setCustomQuery,gu=ot.setDefaultQuery,mu=ot.recordSuggestionClick,yu=st.debounce,vu=st.checkValueChange,bu=st.getClassName,Cu=st.isEqual,Ou=st.getCompositeAggsQuery,_u=st.withClickIds,Su=st.getResultStats,wu=st.normalizeDataField,$u={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=Tr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=yu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return fr(this)},stats:function(){return Su(this)}},props:{autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSuggestions:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,popularSuggestionsConfig:kt.object,recentSuggestionsConfig:kt.object,applyStopwords:kt.bool,customStopwords:Wn.stringArray,onData:Wn.func,renderItem:Wn.func,enterButton:kt.bool.def(!1),renderEnterButton:kt.any,mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any,searchboxId:kt.string},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){Cu(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){Cu(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(_u(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(_u(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!Cu(e,t)&&(this.$options.isTagsMode?!Cu(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){Cu(e,t)||(this.handleTextChange=yu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=$u.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 hr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ou({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var s=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);vu(n.componentId,e,n.beforeValueChange,(function(){if(!s.$options.isTagsMode||!Cu(e,s.selectedTags)){if(s.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(s.selectedTags)&&s.selectedTags.length){if("string"==typeof e&&s.selectedTags.includes(e))return void(s.isOpen=!1);if(s.selectedTags=[].concat(s.selectedTags),"string"==typeof e&&e)s.selectedTags.push(e);else if(Array.isArray(e)&&!Cu(s.selectedTags,e)){var a=Array.from(new Set([].concat(s.selectedTags,e)));s.selectedTags=a}}else e&&(s.selectedTags="string"!=typeof e?e:[].concat(e));s.currentValue=""}else s.currentValue=Tr(e);var u=e;s.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(s.selectedTags)&&s.selectedTags.length?s.selectedTags:void 0),t?(s.$props.autosuggest&&(o&&(s.isOpen=!1),"string"==typeof s.currentValue&&s.triggerDefaultQuery(s.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(s.$options.isTagsMode?0===s.selectedTags.length:""===e)?s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i):s.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i)):s.handleTextChange(e,r),s.$emit("valueChange",e),s.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=$u.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),yr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:L.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,s=n.URLParams,a="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(a=e);var u=$u.defaultQuery(a+(t?" in "+t:""),this.$props);if(r){var l=r(a,this.$props).query;l&&(u=l),vr(this.$props.componentId,this.setCustomQuery,this.$props,a)}this.updateQuery({componentId:this.$props.componentId,query:u,value:a,label:o,showFilter:i,URLParams:s,componentType:L.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,s=void 0===i||i,a=e.value,u=void 0===a?void 0:a,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),s&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?it.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(at({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Vs,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Bn,{class:"enter-btn "+bu(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:bu(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Tr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(pu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:bu(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(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:bu(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(ba)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,s=i.recentSearchesIcon,a=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:bu(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(ia,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case Oe.Recent:return s;case Oe.Popular:return a;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Ws(e.themePreset,r)+" "+bu(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:at({},d({item:r})),on:at({},p({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(xa,{attrs:{className:bu(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:bu(e.$props.innerClass,"input"),on:at({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:at({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:bu(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:at({},{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:at({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=wu(t.dataField,t.fieldWeights);return(n={bool:{should:$u.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},Eu=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:hu,setCustomQuery:fu,setDefaultQuery:gu,recordSuggestionClick:mu})($u),{componentType:L.searchBox,internalComponent:!0});$u.install=function(e){e.component($u.name,Eu)},$u.componentType=L.searchBox;var Tu="15px",Pu="15px",Iu="4px",ku=Wt(iu||(iu=dt(["\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"]))),Au=Wt(su||(su=dt(["\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"]))),Ru=function(e){var t=e.theme;return Wt(au||(au=dt(["\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"])),ku,Vn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Vn(.1,t.colors.textColor),t.colors.primaryColor,Tu,Tu,Pu,t.colors.primaryColor,Iu,Tu,Iu,Pu,Iu,Pu,Iu)},xu=Jt("input")(uu||(uu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Lu=Jt("input")(lu||(lu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),Tu,Tu,Tu,Pu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Mu=Jt("ul")(cu||(cu=dt(["\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"]))),ju=st.getAggsOrder,Qu=function(e,t){var n,r=e,o=t.dataField,i=t.size,s=t.sortBy,a=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:at({field:o,size:i,order:ju(s||"count")},a?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),at({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},Vu=ot.updateQuery,Du=ot.setQueryOptions,Fu=ot.setCustomQuery,Nu=ot.setDefaultQuery,Uu=st.getQueryOptions,qu=st.checkValueChange,zu=st.getClassName,Bu=st.isEqual,Hu=st.extractQueryFromCustomQuery,Gu=st.getOptionsForCustomQuery,Wu={name:"SingleList",props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.string,enableStrictSelection:kt.bool.def(!1)},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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){Bu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(xu,{class:zu(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:at({},{checked:this.$data.currentValue===r})}),t("label",{class:zu(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(xu,{class:zu(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:at({},{checked:e.currentValue===String(n.key)})}),t("label",{class:zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:zu(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");qu(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=Wu.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Hu(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Gu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wu.defaultQuery(e,t);if(n){var o=n(e,t);r=Hu(o);var i=Gu(o);vr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleList})},generateQueryOptions:function(e){var t=Uu(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=Wu.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Gu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:zu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return hr(i,this)},handleClick:function(e){var t=e;return mr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:zu(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(this)}},generateQueryOptions:function(e){var t=Uu(e);return Qu(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}},Zu=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Du,updateQuery:Vu,setCustomQuery:Fu,setDefaultQuery:Nu})(Wu),{componentType:L.singleList,internalComponent:Wu.hasInternalComponent()});Wu.install=function(e){e.component(Wu.name,Zu)},Wu.componentType=L.singleList;var Ku=ot.updateQuery,Yu=ot.setQueryOptions,Xu=ot.setCustomQuery,Ju=ot.setDefaultQuery,el=st.isEqual,tl=st.getQueryOptions,nl=st.checkValueChange,rl=st.getClassName,ol=st.extractQueryFromCustomQuery,il=st.getOptionsForCustomQuery,sl={name:"MultiList",props:{defaultValue:Wn.stringArray,value:Wn.stringArray,queryFormat:kt.oneOf(["and","or"]).def("or"),showCheckbox:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.string},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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||el(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){el(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){el(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])),el(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm).toLowerCase()))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:rl(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:rl(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:rl(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:at({},{checked:!!this.currentValue[r]})}),t("label",{class:rl(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Lu,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:rl(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:at({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:rl(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:rl(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,s=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}nl(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=sl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ol(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=il(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=sl.defaultQuery(e,t);if(n){var o=n(e,t);r=ol(o),vr(t.componentId,this.setCustomQuery,t,e);var i=il(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiList})},generateQueryOptions:function(e){var t=tl(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=sl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=il(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:rl(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;mr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=pr(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return hr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:rl(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=tl(e);return Qu(t,e)}},al={setQueryOptions:Yu,updateQuery:Ku,setCustomQuery:Xu,setDefaultQuery:Ju};sl.hasInternalComponent=function(){return!0};var ul,ll,cl,dl,pl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),al)(sl),{componentType:L.multiList,internalComponent:sl.hasInternalComponent()});sl.install=function(e){e.component(sl.name,pl)},sl.componentType=L.multiList;var hl,fl,gl=Wt(ul||(ul=dt(["\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"]))),ml=function(e){var t=e.theme;return Wt(ll||(ll=dt(["\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)},yl=Jt("button")(cl||(cl=dt(["\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?gl:null}),(function(e){return"dark"===e.themePreset&&ml})),vl=Jt("span")(dl||(dl=dt(["\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})),bl=Wt(hl||(hl=dt(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Cl=Jt("span")(fl||(fl=dt(["\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?bl:null})),Ol=st.getClassName,_l={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Wn.style,items:Wn.data,keyField:kt.string.def("key"),labelField:kt.string.def("label"),multi:kt.bool,placeholder:Wn.string,returnsObject:kt.bool,customLabelRenderer:Wn.func,hasCustomRenderer:kt.bool,customRenderer:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,handleChange:Wn.func,transformData:Wn.func,selectedItem:Wn.selectedValue,showCount:kt.bool,single:kt.bool,small:kt.bool.def(!1),themePreset:Wn.themePreset,showSearch:kt.bool,showClear:kt.bool,searchPlaceholder:kt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,s=n.labelField,a=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,d=n.footer,p=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[s]).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t[s])).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(ia,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,C=n.getInputEvents;return t("div",{class:Zs},[t(yl,{on:at({},at({},v({onClick:e.toggle}))),class:Ol(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[p?p(o):t("div",[o?e.renderToString(o):i]),t(Cl,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ws(u,e.theme)+" "+(e.$props.small?"small":"")+" "+Ol(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:C({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[a]]||Array.isArray(o)&&o.find((function(e){return e[s]===n[s]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:at({},r({item:n})),on:at({},b({item:n})),key:n[a],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[s],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[s]?t("span",{domProps:{innerHTML:n[s]}}):n[s],e.$props.showCount&&n.doc_count&&t("span",{class:Ol(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(vl,{class:Ol(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),d]):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:Ol(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,s=n.themePreset,a=n.innerClass,u=t(Gs,Jr([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:s},style:{border:0,borderBottom:"1px solid #ddd"},class:Ol(a,"input")},e]));return i?t(Qs,[u,this.searchTerm&&t(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(Xs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(ba)])])]):u}}},Sl=ot.updateQuery,wl=ot.setQueryOptions,$l=ot.setCustomQuery,El=ot.setDefaultQuery,Tl=st.getQueryOptions,Pl=st.checkValueChange,Il=st.checkPropChange,kl=st.getClassName,Al=st.isEqual,Rl=st.getCompositeAggsQuery,xl=st.extractQueryFromCustomQuery,Ll=st.getOptionsForCustomQuery,Ml={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select a value"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.string.def("Type here to search...")},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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&&Il(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Al(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,s=t.renderLabel,a=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,d=this.$scopedSlots.renderLabel||s,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?dr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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&&!a&&e("div",{attrs:{css:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):p&&dr(p)?e("div",[p()]):p&&!dr(p)?p:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Pl(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=Ml.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=xl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Ll(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ml.defaultQuery(e,t);if(n){var o=n(e,t);r=xl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Ll(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleDropdownList})},generateQueryOptions:function(e,t){var n=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Ml.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Ll(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(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=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},jl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:wl,updateQuery:Sl,setCustomQuery:$l,setDefaultQuery:El})(Ml),{componentType:L.singleDropdownList,internalComponent:Ml.hasInternalComponent()});Ml.install=function(e){e.component(Ml.name,jl)},Ml.componentType=L.singleDropdownList;var Ql=ot.updateQuery,Vl=ot.setQueryOptions,Dl=ot.setCustomQuery,Fl=ot.setDefaultQuery,Nl=st.isEqual,Ul=st.getQueryOptions,ql=st.checkValueChange,zl=st.checkPropChange,Bl=st.getClassName,Hl=st.getCompositeAggsQuery,Gl=st.extractQueryFromCustomQuery,Wl=st.getOptionsForCustomQuery,Zl={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select values"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.string.def("Type here to search...")},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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])),Nl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Nl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,s=t.renderLabel,a=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||s,c=this.$data.isLastBucket,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,p=[];return u&&this.error?dr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(p=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Bl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(p,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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:a,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:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):d&&dr(d)?e("div",[d()]):d&&!dr(d)?d:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=pr(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,s=null;if(o&&e.includes(o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}ql(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=at({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=Zl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Gl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Wl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Zl.defaultQuery(e,t);if(n){var o=n(e,t);r=Gl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Wl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiDropdownList})},generateQueryOptions:function(e,t){var n=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Zl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Wl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},Kl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Vl,updateQuery:Ql,setCustomQuery:Dl,setDefaultQuery:Fl})(Zl),{componentType:L.multiDropdownList,internalComponent:Zl.hasInternalComponent()});Zl.install=function(e){e.component(Zl.name,Kl)},Zl.componentType=L.multiDropdownList;var Yl=ot.updateQuery,Xl=ot.setQueryOptions,Jl=ot.setCustomQuery,ec=st.isEqual,tc=st.checkValueChange,nc=st.getClassName,rc=st.getOptionsFromQuery,oc=st.handleA11yAction,ic={name:"ToggleButton",props:{componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.any,value:Wn.stringOrArray,filterLabel:Wn.string,nestedField:Wn.string,innerClass:Wn.style,multiSelect:kt.bool,react:Wn.react,showFilter:kt.bool,title:Wn.title,URLParams:kt.bool,renderItem:Wn.func,index:kt.string,enableStrictSelection:kt.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ic.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`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ic.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){ec(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ec(this.$data.currentValue,e)||ec(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ec(n,this.selectedValue)||ec(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,s=[];s=t?ic.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(s,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);tc(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=ic.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,rc(r(e,t)),!1),vr(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:L.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ec(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(Bn,{class:nc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return oc(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(sa,{class:Nn},[this.$props.title&&t(eo,{class:nc(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}},sc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:Yl,setQueryOptions:Xl,setCustomQuery:Jl})(ic),{componentType:L.toggleButton});ic.install=function(e){e.component(ic.name,sc)},ic.componentType=L.toggleButton;var ac=["options"],uc=ot.updateQuery,lc=ot.setQueryOptions,cc=ot.setCustomQuery,dc=ot.setDefaultQuery,pc=st.parseHits,hc=st.isEqual,fc=st.getCompositeAggsQuery,gc=st.getResultStats,mc=st.extractQueryFromCustomQuery,yc=st.getOptionsForCustomQuery,vc={name:"ReactiveComponent",props:{componentId:Wn.stringRequired,aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,defaultQuery:Wn.func,customQuery:Wn.func,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),URLParams:kt.bool.def(!1),distinctField:Wn.string,distinctFieldConfig:Wn.props,index:kt.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,vr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,s=t.URLParams,a=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||!a&&!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),d=mc(c),p=c?yc(c):null;p?this.setQueryOptions(r,at({},p,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:d,value:this.selectedValue||null,label:o,showFilter:i,URLParams:s})}if(this.setQuery=function(n){var r=n.options,o=ct(n,ac),i=o.query;i&&i.query&&(i=i.query);var s=at({},r,{query:i}),a=s;i&&i.id&&(a=i),e.setCustomQuery(t.componentId,a),r&&e.setQueryOptions(t.componentId,at({},e.getAggsQuery(),r),!1),e.updateQuery(at({},o,{query:s.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){yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=mc(this.$defaultQuery),f=yc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,at({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){hc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){hc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){hc(e,t)||this.$emit("data",this.getData())},total:function(e,t){hc(e,t)||this.$emit("data",this.getData())},time:function(e,t){hc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=mc(this.$defaultQuery),r=yc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,at({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=mc(this.$customQuery),o=yc(this.$customQuery);o?this.setQueryOptions(n,at({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),vr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=at({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:fc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=pc(e);if(r.length){var s=r.map((function(e){return e._id})).filter(Boolean);s&&(i=i.filter((function(e){return!s.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return gc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},bc=Dr(cr((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:lc,updateQuery:uc,setCustomQuery:cc,setDefaultQuery:dc})(vc),{componentType:L.reactiveComponent});vc.install=function(e){e.component(vc.name,bc)},vc.componentType=L.reactiveComponent;var Cc=ot.setValue,Oc=ot.clearValues,_c=ot.resetValuesToDefault,Sc=st.getClassName,wc=st.handleA11yAction,$c={name:"SelectedFilters",props:{className:kt.string.def(""),clearAllLabel:kt.string.def("Clear All"),innerClass:Wn.style,showClearAll:kt.bool.def(!0),title:Wn.title,resetToDefault:kt.bool.def(!1),clearAllBlacklistComponents:kt.array,resetToValues:kt.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(sa,{class:Dn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(eo,{class:Sc(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Bn,{class:Sc(this.$props.innerClass,"button")||"",on:at({},{click:this.clearValues,keypress:function(t){return wc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Bn,{class:Sc(this.$props.innerClass,"button")||"",key:t,on:at({},{click:n,keypress:function(e){return wc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,s=o.value,a=Array.isArray(s);if(i&&(a&&s.length||!a&&s)){var u=e.renderValue(s,a);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,s)}),t[n].label+": "+Tr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ec=cr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:Oc,setValue:Cc,resetValuesToDefault:_c})($c);$c.install=function(e){e.component($c.name,Ec)};var Tc=ot.updateQuery,Pc=ot.setQueryOptions,Ic=ot.setCustomQuery,kc=st.isEqual,Ac=st.checkValueChange,Rc=st.getClassName,xc=st.getOptionsFromQuery,Lc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.string},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`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){kc(e,t)||this.setValue(e)},selectedValue:function(e){kc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Rc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Rc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(xu,{class:Rc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Rc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?Lc.parseValue(e,t):e;Ac(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Lc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=xc(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},Mc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Tc,setQueryOptions:Pc,setCustomQuery:Ic})(Lc),{componentType:L.singleRange});Lc.install=function(e){e.component(Lc.name,Mc)},Lc.componentType=L.singleRange;var jc=ot.updateQuery,Qc=ot.setQueryOptions,Vc=ot.setCustomQuery,Dc=st.isEqual,Fc=st.checkValueChange,Nc=st.getClassName,Uc=st.getOptionsFromQuery,qc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=pr(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,s=this.selectedValues;if(e)if(t){i=qc.parseValue(e,n);var a={};i.forEach((function(e){a[[e.label]]=!0})),s=r?a:at({},s,a)}else if(s[e]){i=i.filter((function(t){return t.label!==e}));var u=s,l=(u[e],ct(u,[e].map(pt)));s=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),s=at({},s,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],s={};Fc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=s,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(s)),o.$emit("value-change",Object.keys(s))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=qc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Uc(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){Dc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Dc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Nc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Nc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Lu,{class:Nc(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:at({},{checked:e.selectedValues[n.label]}),on:at({},{click:e.handleClick})}),t("label",{class:Nc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},zc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:jc,setQueryOptions:Qc,setCustomQuery:Vc})(qc),{componentType:L.multiRange});qc.install=function(e){e.component(qc.name,zc)},qc.componentType=L.multiRange;var Bc,Hc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(Hc.name,Hc)}},Gc=["src"],Wc={name:"ResultCardImage",props:{src:kt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ct(t,Gc);return e(bo,Jr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Wc.name,Wc)}},Zc={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Zc.name,Zc)}},Kc=["href","target"],Yc={name:"ResultCard",components:{ResultCardTitle:Hc,ResultCardImage:Wc,ResultCardDescription:Zc},props:{target:kt.string.def("_blank"),href:Wn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ct(n,Kc);return e(Co,Jr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Yc.name,Yc),e.component(Hc.name,Hc),e.component(Wc.name,Wc),e.component(Zc.name,Zc)}},Xc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Xc.name,Xc)}},Jc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Jr([{},n]),[r])},install:function(e){e.component(Jc.name,Jc)}},ed=["src","small"],td={name:"ResultListImage",props:{src:kt.string.isRequired,small:kt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ct(t,ed);return e(ro,Jr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(td.name,td)}},nd={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(nd.name,nd)}},rd=["href","target"],od={name:"ResultList",props:{href:Wn.string,target:kt.string.def("_blank")},components:{ResultListContent:Xc,ResultListDescription:Jc,ResultListImage:td,ResultListTitle:nd},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===td.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ct(t,rd),i=this.hasImage,s=this.isSmall,a=this.$slots.default;return e(oo,Jr([{attrs:{href:n,image:i,small:s,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[a])},install:function(e){e.component(od.name,od),e.component(Xc.name,Xc),e.component(Jc.name,Jc),e.component(td.name,td),e.component(nd.name,nd)}},id={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),s=i.default;void 0===s&&(s=[]);var a=i.placeholder;return n._isMounted?s:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||a)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||a):s.length>0?s.map((function(){return e(!1)})):e(!1))}},sd=Jt("div")(Bc||(Bc=dt(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),ad=function(){var e={NoSSR:id};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=At["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},ud=ot.updateQuery,ld=ot.setQueryOptions,cd=ot.setCustomQuery,dd=st.checkValueChange,pd=st.getClassName,hd=st.getOptionsFromQuery,fd=st.isEqual,gd={name:"RangeSlider",components:ad(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Wn.func,className:kt.string.def(""),range:kt.shape({start:kt.integer.def(0),end:kt.integer.def(10)}),rangeLabels:Wn.rangeLabels,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.range,value:Wn.range,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);dd(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=gd.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=hd(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,s=t.range,a=s.start,u=s.end,l=e[0],c=e[1],d=l===a&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:L.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(gd.parseValue(e,this.$props))},value:function(e,t){fd(e,t)||this.handleChange(gd.parseValue(e,this.$props))},selectedValue:function(e){fd(this.$data.currentValue,e)||(this.handleChange(gd.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(gd.parseValue(r,this.$props)):t?this.handleChange(gd.parseValue(t,this.$props)):n&&this.handleChange(gd.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:pd(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(id,[e(sd,{class:pd(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:at({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:pd(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:pd(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},md=Dr(cr((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:ud,setQueryOptions:ld,setCustomQuery:cd})(gd),{componentType:L.rangeSlider});gd.install=function(e){e.component(gd.name,md)},gd.componentType=L.rangeSlider;var yd=ot.addComponent,vd=ot.removeComponent,bd=ot.watchComponent,Cd=ot.updateQuery,Od=ot.setQueryListener,_d=ot.setQueryOptions,Sd=ot.setComponentProps,wd=ot.setCustomQuery,$d=ot.updateComponentProps,Ed=st.checkValueChange,Td=st.getClassName,Pd=st.isEqual,Id=st.checkSomePropChange,kd=st.extractQueryFromCustomQuery,Ad=st.getOptionsForCustomQuery,Rd={name:"DynamicRangeSlider",components:ad(),props:{beforeValueChange:Wn.func,className:kt.string.def(""),rangeLabels:Wn.func,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),destroyOnUnmount:kt.bool,showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.string,value:Wn.range},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,L.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,L.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Rd.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Rd.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Rd.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];Ed(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Rd.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=kd(n);r&&(t=r);var o=Ad(n);vr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},s=i.start,a=i.end,u=e[0],l=e[1],c=u===s&&l===a;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:L.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=gr(e);Id(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,L.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,L.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!Pd(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Rd.parseValue(t,this.$props))}},range:function(e,t){if(!Pd(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},s=i.start,a=i.end,u=r===s?e.start:r,l=o===a?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){Pd(e,t)||this.handleChange(Rd.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Td(this.$props.innerClass,"title")},[this.$props.title]),e(id,[e(sd,{class:Td(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:at({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Td(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Td(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},xd=cr((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:yd,removeComponent:vd,updateQuery:Cd,watchComponent:bd,setQueryListener:Od,setQueryOptions:_d,setComponentProps:Sd,setCustomQuery:wd,updateComponentProps:$d})(Rd);Rd.install=function(e){e.component(Rd.name,xd)},Rd.componentType=L.dynamicRangeSlider;var Ld=st.getSearchState,Md=function(e){return void 0===e&&(e={}),at({},e,{props:e.componentProps})},jd=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Qd=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return at({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},Vd={name:"StateProvider",props:{onChange:kt.func,componentIds:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]),includeKeys:kt.arrayOf(kt.string).def(["hits","value","aggregations","error"]),strict:kt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Qd(Ld(Md(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog,dependencyTree:this.dependencyTree,componentProps:this.componentProps,hits:this.hits,aggregations:this.aggregations,isLoading:this.isLoading,error:this.error,promotedResults:this.promotedResults,rawData:this.rawData}}},watch:{searchState:function(e,t){this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Qd(Ld(Md(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Dd=cr((function(e,t){return{selectedValues:jd(e.selectedValues,t),queryLog:jd(e.queryLog,t),dependencyTree:jd(e.dependencyTree,t),componentProps:jd(e.props,t),hits:jd(e.hits,t),aggregations:jd(e.aggregations,t),isLoading:jd(e.isLoading,t),error:jd(e.error,t),promotedResults:jd(e.promotedResults,t),customData:jd(e.customData,t),settings:jd(e.settings,t),rawData:jd(e.rawData,t),components:jd(e.components,t)}}),{setValues:Ue})(Vd);Vd.install=function(e){e.component(Vd.name,Dd)};var Fd=o((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=!1,function(e,t){if("undefined"!=typeof document){if(r)throw new Error("You already started the loading of google maps");r=!0;var o=document.createElement("SCRIPT");if("object"!==n(e))throw new Error("options should be an object");Object.prototype.isPrototypeOf.call(Array.prototype,e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var i="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(i="https://maps.google.cn/");var s=Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&"),a="".concat(i,"maps/api/js?").concat(s);o.setAttribute("src",a),o.setAttribute("async",""),o.setAttribute("defer",""),document.head.appendChild(o)}});t.default=o}));r(Fd);var Nd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}}));r(Nd);var Ud=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){function o(){return t.gmapApi={},window.google}if(n.load)return(0,r.default)((function(){return"undefined"==typeof window?new Promise((function(){})).then(o):new Promise((function(t,r){try{window.vueGoogleMapsInit=t,e(n.load,n.loadCn)}catch(e){r(e)}})).then(o)}));var i=new Promise((function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)})).then(o);return(0,r.default)((function(){return i}))}};var n,r=(n=Nd)&&n.__esModule?n:{default:n}}));r(Ud);var qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}}));r(qd);var zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}}));r(zd);var Bd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getPropsValues=function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.bindProps=function(e,t,n){Object.keys(n).forEach((function(i){var s=n[i],a=s.twoWay,u=s.type,l=s.trackProperties;if(!s.noBind){var c="set".concat(o(i)),d="get".concat(o(i)),p="".concat(i.toLowerCase(),"_changed"),h=e[i];if(void 0===t[c])throw new Error("".concat(c," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));u===Object&&l?(0,r.default)(e,l.map((function(e){return"".concat(i,".").concat(e)})),(function(){t[c](e[i])}),void 0!==e[i]):e.$watch(i,(function(){var n=e[i];t[c](n)}),{immediate:void 0!==h,deep:u===Object}),a&&(e.$gmapOptions.autobindAllEvents||e.$listeners[p])&&t.addListener(p,(function(){e.$emit(p,t[d]())}))}}))};var n,r=(n=zd)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(Bd);Bd.getPropsValues,Bd.bindProps;var Hd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}}})),Gd=r(Hd),Wd=o((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.entries(e).map((function(e){var t=n(e,2),r=t[0],o=t[1],i={};return"type"in o&&(i.type=o.type),"default"in o&&(i.default=o.default),"required"in o&&(i.required=o.required),[r,i]})).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return e[o]=i,e}),{})}}));r(Wd);var Zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.mappedProps,i=e.name,a=e.ctr,d=e.ctrArgs,p=e.events,h=e.beforeCreate,f=e.afterCreate,g=e.props,m=c(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),y="$".concat(i,"Promise"),v="$".concat(i,"Object");return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),u({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[r.default],props:u({},g,{},(0,o.default)(t)),render:function(){return""},provide:function(){var e=this,r=this.$mapPromise.then((function(n){e.$map=n;var r=u({},e.options,{map:n},(0,Bd.getPropsValues)(e,t)),o=(r.options,c(r,["options"]));if(h){var i=h.bind(e)(o);if(i instanceof Promise)return i.then((function(){return{options:o}}))}return{options:o}})).then((function(r){var o,i,u=r.options,l=a();return e[v]=d?new((o=Function.prototype.bind).call.apply(o,[l,null].concat(function(e){if(Array.isArray(e))return s(e)}(i=d(u,(0,Bd.getPropsValues)(e,g||{})))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):new l(u),(0,Bd.bindProps)(e,e[v],t),(0,n.default)(e,e[v],p),f&&f.bind(e)(e[v]),e[v]}));return this[y]=r,l({},y,r)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)};var n=i(qd),r=i(Hd),o=i(Wd);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}}));r(Zd);var Kd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={url:{twoWay:!1,type:String},map:{twoWay:!0,type:Object}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],name:"kmlLayer",ctr:function(){return google.maps.KmlLayer}});t.default=i}));r(Kd);var Yd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},i=(0,r.default)({mappedProps:o,events:[],name:"heatmapLayer",ctr:function(){return google.maps.visualization.HeatmapLayer}});t.default=i}));r(Yd);var Xd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default: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):""},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n}))}});t.default=i})),Jd=r(Xd),ep=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},a=(0,r.default)({mappedProps:s,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),i=[],s=function(){e.$emit("path_changed",e.$polylineObject.getPath())};i.push([r,r.addListener("insert_at",s)]),i.push([r,r.addListener("remove_at",s)]),i.push([r,r.addListener("set_at",s)]),t=function(){i.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=a}));r(ep);var tp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},u=(0,r.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:a,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){if(!e.path){var t=e;t.path;e=s(t,["path"])}if(!e.paths){var n=e;n.paths;e=s(n,["paths"])}},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var i=function(){t.$emit("paths_changed",e.getPaths())},s=[],a=e.getPaths(),u=0;u<a.getLength();u+=1){var l=a.getAt(u);s.push([l,l.addListener("insert_at",i)]),s.push([l,l.addListener("remove_at",i)]),s.push([l,l.addListener("set_at",i)])}s.push([a,a.addListener("insert_at",i)]),s.push([a,a.addListener("remove_at",i)]),s.push([a,a.addListener("set_at",i)]),n=function(){s.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var i=e.getPath(),s=[],a=function(){t.$emit("path_changed",e.getPath())};s.push([i,i.addListener("insert_at",a)]),s.push([i,i.addListener("remove_at",a)]),s.push([i,i.addListener("set_at",a)]),n=function(){s.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=u}));r(tp);var np=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(np);var rp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(rp);var op,ip=(op=require("../components-implementation/drawing-manager")).default||op;ip.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},ip.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var sp=Object.freeze({__proto__:null,default:ip}),ap=function(e){return e.default||e}(require("../components-implementation/info-window")),up={ref:"flyaway"};ap.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",up,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},ap.__file="node_modules/gmap-vue/dist/components/info-window.vue";var lp=Object.freeze({__proto__:null,default:ap}),cp=function(e){return e.default||e}(require("../components-implementation/map")),dp={class:"vue-map-container"},pp={ref:"vue-map",class:"vue-map"},hp={class:"vue-map-hidden"};function fp(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}fp("\n.vue-map-container {\n position: relative;\n}\n.vue-map-container .vue-map {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n.vue-map-hidden {\n display: none;\n}\n"),cp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",dp,[t.createElementVNode("div",pp,null,512),t.createElementVNode("div",hp,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},cp.__file="node_modules/gmap-vue/dist/components/map.vue";var gp=Object.freeze({__proto__:null,default:cp}),mp=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),yp={class:"vue-street-view-pano-container"},vp={ref:"vue-street-view-pano",class:"vue-street-view-pano"};fp("\n.vue-street-view-pano-container {\n position: relative;\n}\n.vue-street-view-pano-container .vue-street-view-pano {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n"),mp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",yp,[t.createElementVNode("div",vp,null,512),t.renderSlot(e.$slots,"default")])},mp.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var bp=Object.freeze({__proto__:null,default:mp}),Cp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}}));r(Cp);var Op=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Cp)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},s={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=(0,Bd.getPropsValues)(e,i);if(e.selectFirstOnEnter&&(0,r.default)(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=o(i,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,Bd.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.autoCompleter.getPlace())}))}))},created:function(){throw new Error("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:i};t.default=s})),_p=r(Op),Sp=["textContent"],wp=["placeholder"];_p.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("label",null,[t.createElementVNode("span",{textContent:t.toDisplayString(e.label)},null,8,Sp),t.createElementVNode("input",{type:"text",placeholder:e.placeholder,class:t.normalizeClass(e.className),ref:"input"},null,10,wp)])},_p.__file="node_modules/gmap-vue/dist/components/place-input.vue";var $p=Object.freeze({__proto__:null,default:_p,__moduleExports:Op}),Ep=function(e){return e.default||e}(require("../components-implementation/autocomplete")),Tp={key:0};Ep.render=function(e,n,r,o,i,s){return e.$scopedSlots.input?(t.openBlock(),t.createElementBlock("span",Tp,[t.renderSlot(e.$slots,"input",{attrs:e.$attrs,listeners:e.$listeners,ref:e.input})])):e.$scopedSlots.input?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("input",t.mergeProps({key:1,ref:"input"},e.$attrs,t.toHandlers(e.$listeners,!0)),null,16))},Ep.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var Pp=Object.freeze({__proto__:null,default:Ep}),Ip=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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)}}}));r(Ip);var kp=i(sp),Ap=i(lp),Rp=i(gp),xp=i(bp),Lp=i($p),Mp=i(Pp),jp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e,t){t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({installComponents:!0,autobindAllEvents:!1},t),S=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,S)(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=y,this.$gmapOptions=t,this.$gmapApiPromiseLazy=v}}),e.$gmapDefaultResizeBus=y,e.$gmapApiPromiseLazy=v,t.installComponents&&(e.component("GmapMap",h.default),e.component("GmapMarker",s.default),e.component("GmapInfoWindow",p.default),e.component("GmapHeatmapLayer",i.default),e.component("GmapKmlLayer",o.default),e.component("GmapPolyline",a.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",l.default),e.component("GmapRectangle",c.default),e.component("GmapDrawingManager",d.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",g.default),e.component("GmapStreetViewPanorama",f.default))},t.gmapApi=function(){return S.gmapApi&&window.google},Object.defineProperty(t,"loadGmapApi",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"KmlLayer",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HeatmapLayer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"DrawingManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"InfoWindow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"StreetViewPanorama",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PlaceInput",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Autocomplete",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"MapElementMixin",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"MapElementFactory",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"MountableMixin",{enumerable:!0,get:function(){return b.default}}),t.Cluster=void 0;var n=C(Fd),r=C(Ud),o=C(Kd),i=C(Yd),s=C(Xd),a=C(ep),u=C(tp),l=C(np),c=C(rp),d=C(kp),p=C(Ap),h=C(Rp),f=C(xp),g=C(Lp),m=C(Mp),y=C(Hd),v=C(Zd),b=C(Ip);function C(e){return e&&e.__esModule?e:{default:e}}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Cluster=void 0;var S=null})),Qp=r(jp),Vp=jp.install,Dp=jp.gmapApi,Fp=jp.Cluster,Np=Object.freeze({__proto__:null,default:Qp,__moduleExports:jp,install:Vp,gmapApi:Dp,Cluster:Fp}),Up=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}}));r(Up);for(var qp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(qd),r=a(Ip),o=a(Up),i=a(zd),s=a(Wd);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},h=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],f=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){var e;this.$mapObject&&(e=this.$mapObject)[t].apply(e,arguments)},e}),{}),g={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()}},m={mixins:[r.default],props:(0,s.default)(p),provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},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"],r=c({},e.options,{},(0,Bd.getPropsValues)(e,p)),s=(r.options,u(r,["options"])),a=e.getRecycleKey();return e.options.recycle&&window[a]?(t.appendChild(window[a].div),e.$mapObject=window[a].map,e.$mapObject.setOptions(s)):(e.$mapObject=new google.maps.Map(t,s),window[a]={map:e.$mapObject}),(0,Bd.bindProps)(e,e.$mapObject,p),(0,n.default)(e,e.$mapObject,h),(0,o.default)((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()})),(0,i.default)(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:c({},g,{},f,{getRecycleKey:function(){return this.options.recycle?"__gmc__"+this.options.recycle:"__gmc__"}})};t.default=m}))),zp="0123456789bcdefghjkmnpqrstuvwxyz",Bp={},Hp=0;Hp<zp.length;Hp++)Bp[zp.charAt(Hp)]=Hp;var Gp=[0,5,7,8,11,12,13,15,16,17,18],Wp=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Gp[i]}else void 0===n&&(n=9);for(var s,a=[],u=0,l=0,c=0,d=90,p=-90,h=180,f=-180;a.length<n;)if(l%2==0?t>(s=(h+f)/2)?(c=1+(c<<1),f=s):(c=0+(c<<1),h=s):e>(s=(d+p)/2)?(c=1+(c<<1),p=s):(c=0+(c<<1),d=s),l++,5===++u){var g=zp[c];a.push(g),u=0,c=0}return a.join("")},Zp=function(e,t,n){n=n||52;for(var r,o=0,i=90,s=-90,a=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(a+u)/2)?(l+=1,u=r):a=r:e>(r=(i+s)/2)?(l+=1,s=r):i=r,o++;return l},Kp=function(e){for(var t,n=!0,r=90,o=-90,i=180,s=-180,a=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();a=Bp[c];for(var d=4;d>=0;d--){var p=a>>d&1;n?(t=(i+s)/2,1===p?s=t:i=t):(t=(r+o)/2,1===p?o=t:r=t),n=!n}}return[o,s,r,i]},Yp=function(e,t){for(var n=90,r=-90,o=180,i=-180,s=0,a=(t=t||52)/2,u=0;u<a;u++)s=Xp(e,2*(a-u)-1),0===Xp(e,2*(a-u)-2)?n=(n+r)/2:r=(n+r)/2,0===s?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Xp(e,t){return e/Math.pow(2,t)&1}var Jp=function(e){var t=Kp(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}}},eh=function(e,t){var n=Yp(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}}},th=function(e,t){var n=Jp(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=rh(o),r=oh(r),Wp(r,o,e.length)},nh=function(e,t,n){var r=eh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=rh(i),o=oh(o),Zp(o,i,n)};function rh(e){return e>180?e%180-180:e<-180?180+e%180:e}function oh(e){return e>90?90:e<-90?-90:e}var ih={ENCODE_AUTO:"auto",encode:Wp,encode_uint64:Zp,encode_int:Zp,decode:Jp,decode_int:eh,decode_uint64:eh,decode_bbox:Kp,decode_bbox_uint64:Yp,decode_bbox_int:Yp,neighbor:th,neighbor_int:nh,neighbors:function(e){var t,n,r=e.length,o=Jp(e),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*a,n=rh(n=s+o*u),t=oh(t),Wp(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=eh(e,t=t||52),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*a,r=rh(r=s+o*u),n=oh(n),Zp(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=Wp(e,t,o=o||9),s=Wp(n,r,o),a=Jp(i),u=2*a.error.latitude,l=2*a.error.longitude,c=Kp(i),d=Kp(s),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(th(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Zp(e,t,o=o||52),s=Zp(n,r,o),a=eh(i,o),u=2*a.error.latitude,l=2*a.error.longitude,c=Yp(i,o),d=Yp(s,o),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(nh(i,[g,m],o));return f}},sh=ot.setStreaming,ah=ot.setQueryOptions,uh=ot.updateQuery,lh=ot.loadMore,ch=ot.setValue,dh=ot.updateComponentProps,ph=ot.setDefaultQuery,hh=ot.recordResultClick,fh=ot.setMapData,gh=st.isEqual,mh=st.getQueryOptions,yh=st.getClassName,vh=st.parseHits,bh=st.getOptionsFromQuery,Ch=st.getResultStats,Oh={lat:37.7749,lng:122.4194},_h={width:"100%",height:"100vh",position:"relative"};function Sh(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return at({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function wh(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=ih.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var $h={name:"ReactiveMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,autoCenter:kt.bool,getMapRef:kt.func.isRequired,center:Wn.location,defaultCenter:Wn.location,defaultPin:Wn.string,defaultZoom:kt.number.def(13),defaultQuery:Wn.func,innerClass:Wn.style,loader:Wn.title,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,pages:kt.number.def(5),currentPage:kt.number.def(0),pagination:kt.bool,showMarkers:kt.bool,defaultSearchAsMove:kt.bool,showSearchAsMove:kt.bool,defaultRadius:Wn.number,unit:Wn.string,autoClosePopover:kt.bool,renderMap:kt.func.isRequired,renderPopover:kt.func,calculateMarkers:kt.func,searchAsMoveLabel:kt.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 at({},Ch(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return fr(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!br(e,t,null,this.$props)){var n=mh(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),bh(this.$defaultQuery)&&(n=at({},n,bh(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var s={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,s),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){gh(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){gh(e,t)||this.$emit("data",this.getData())},time:function(e,t){gh(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(!gh(e,t)){var r=this.promotedResults,o=this.hits,i=vh(o)||[],s=vh(r)||[],a=i;if(s.length){var u=s.map((function(e){return e._id})).filter(Boolean);u&&(a=a.filter((function(e){return!u.includes(e._id)}))),a=[].concat(s,a)}a=a.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return at({},e,((t={})[n.dataField]=wh(e[n.dataField]),t))})),this.filteredResults=this.addNoise(a),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!gh(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(Oh)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=at({},e),i=t.parseLocation(e[t.dataField]),s=JSON.stringify(i),a=n[s]||0;o[t.dataField]=a?Sh(i,a):i,r=[].concat(r,[o]),n[s]=a+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,s=0;n.forEach((function(e){if(e){var t,n,r=wh(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var a=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=a,i+=u,s+=l}})),o/=r,i/=r,s/=r;var a=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(s,u)/Math.PI,lng:180*a/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=vh(o)||[],s=vh(t)||[],a=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:s,loadMore:this.loadMore,base:a,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=at({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return hr(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=mh(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,at({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var s;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var a={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=a;var u={geo_bounding_box:(s={},s[this.dataField]=a,s)};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=mh(this.$props);this.from=e,this.loadMoreAction(this.componentId,at({},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 at({},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?dr(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:yh(this.innerClass,"checkboxContainer")||null}},[e(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:yh(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:yh(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Jn,{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},L.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},L.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=mh(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=at({},t,bh(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,s=this.center||this.defaultCenter,a=this.getArrPosition(s),u={distance:this.defaultRadius,coordinates:a.lat+", "+a.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:at({},_h,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])}},Eh=Dr(cr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:lh,setPageURL:ch,setQueryOptions:ah,setStreaming:sh,updateQuery:uh,updateComponentProps:dh,setDefaultQuery:ph,recordResultClick:hh,setMapData:fh})($h),{componentType:L.reactiveMap,internalComponent:!0});$h.install=function(e){e.component($h.name,Eh)},$h.componentType=L.reactiveMap;var Th=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function Ph(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function Ih(e){return e?e+"px":void 0}var kh=function(e){function t(t,n){var r;return(r=e.call(this)||this).cluster_=t,r.styles_=n,r.center_=null,r.div_=null,r.sums_=null,r.visible_=!1,r.style=null,r.setMap(t.getMap()),r}ut(t,e);var n=t.prototype;return n.onAdd=function(){var e,t,n=this,r=this.cluster_.getMarkerClusterer(),o=google.maps.version.split("."),i=o[0],s=o[1],a=100*parseInt(i,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){t=e})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){e=!0,t=!1})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(e){e.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(o){if(e=!1,!t){if(google.maps.event.trigger(r,"click",n.cluster_),google.maps.event.trigger(r,"clusterclick",n.cluster_),r.getZoomOnClick()){var i=r.getMaxZoom(),s=n.cluster_.getBounds();r.getMap().fitBounds(s),setTimeout((function(){r.getMap().fitBounds(s),null!==i&&r.getMap().getZoom()>i&&r.getMap().setZoom(i+1)}),100)}o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(r,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(r,"mouseout",n.cluster_)}))},n.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.draw=function(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}},n.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},n.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+Ph({position:"absolute",top:Ih(this.anchorText_[0]),left:Ih(this.anchorText_[1]),color:this.style.textColor,"font-size":Ih(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:Ih(this.style.width),"line-height":Ih(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},n.getImageElementHtml=function(){var e=(this.style.backgroundPosition||"0 0").split(" "),t=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),r={};this.cluster_.getMarkerClusterer().getEnableRetinaIcons()?r={width:Ih(this.style.width),height:Ih(this.style.height)}:r={clip:"rect("+-1*n+"px, "+(-1*t+this.style.width)+"px, "+(-1*n+this.style.height)+"px, "+-1*t+"px)"};var o=Ph(Object.assign({position:"absolute",top:Ih(n),left:Ih(t)},r));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+o+'"/>'},n.useStyle=function(e){this.sums_=e;var t=Math.max(0,e.index-1);t=Math.min(this.styles_.length-1,t),this.style=this.styles_[t],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+t)},n.setCenter=function(e){this.center_=e},n.createCss_=function(e){return Ph({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:Ih(e.y),left:Ih(e.x),width:Ih(this.style.width),height:Ih(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},n.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x=Math.floor(t.x-this.anchorIcon_[1]),t.y=Math.floor(t.y-this.anchorIcon_[0]),t},t}(Th),Ah=function(){function e(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new kh(this,this.markerClusterer_.getStyles())}var t=e.prototype;return t.getSize=function(){return this.markers_.length},t.getMarkers=function(){return this.markers_},t.getCenter=function(){return this.center_},t.getMap=function(){return this.map_},t.getMarkerClusterer=function(){return this.markerClusterer_},t.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},t.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,n=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,r=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(n,r),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();e.isAdded=!0,this.markers_.push(e);var o=this.markers_.length,i=this.markerClusterer_.getMaxZoom();if(null!==i&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o===this.minClusterSize_)for(var s=0;s<o;s++)this.markers_[s].setMap(null);else e.setMap(null);return!0},t.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},t.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},t.updateIcon=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(null!==t&&this.map_.getZoom()>t)this.clusterIcon_.hide();else if(e<this.minClusterSize_)this.clusterIcon_.hide();else{var n=this.markerClusterer_.getStyles().length,r=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(r),this.clusterIcon_.show()}},t.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(var t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},e}(),Rh=function(e,t,n){return void 0!==e[t]?e[t]:n},xh=function(e){function t(n,r,o){var i;return void 0===r&&(r=[]),void 0===o&&(o={}),(i=e.call(this)||this).options=o,i.markers_=[],i.clusters_=[],i.listeners_=[],i.activeMap_=null,i.ready_=!1,i.ariaLabelFn=i.options.ariaLabelFn||function(){return""},i.zIndex_=i.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,i.gridSize_=i.options.gridSize||60,i.minClusterSize_=i.options.minimumClusterSize||2,i.maxZoom_=i.options.maxZoom||null,i.styles_=i.options.styles||[],i.title_=i.options.title||"",i.zoomOnClick_=Rh(i.options,"zoomOnClick",!0),i.averageCenter_=Rh(i.options,"averageCenter",!1),i.ignoreHidden_=Rh(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=Rh(i.options,"enableRetinaIcons",!1),i.imagePath_=i.options.imagePath||t.IMAGE_PATH,i.imageExtension_=i.options.imageExtension||t.IMAGE_EXTENSION,i.imageSizes_=i.options.imageSizes||t.IMAGE_SIZES,i.calculator_=i.options.calculator||t.CALCULATOR,i.batchSize_=i.options.batchSize||t.BATCH_SIZE,i.batchSizeIE_=i.options.batchSizeIE||t.BATCH_SIZE_IE,i.clusterClass_=i.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(i.batchSize_=i.batchSizeIE_),i.setupStyles_(),i.addMarkers(r,!0),i.setMap(n),i}ut(t,e);var n=t.prototype;return n.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var t=e.getMap(),n=t.minZoom||0,r=Math.min(t.maxZoom||100,t.mapTypes[t.getMapTypeId()].maxZoom),o=Math.min(Math.max(e.getMap().getZoom(),n),r);e.prevZoom_!=o&&(e.prevZoom_=o,e.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw_()}))]},n.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},n.draw=function(){},n.setupStyles_=function(){if(!(this.styles_.length>0))for(var e=0;e<this.imageSizes_.length;e++){var n=this.imageSizes_[e];this.styles_.push(t.withDefaultStyle({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:n,width:n}))}},n.fitMapToMarkers=function(e){for(var t=this.getMarkers(),n=new google.maps.LatLngBounds,r=0;r<t.length;r++)!t[r].getVisible()&&this.getIgnoreHidden()||n.extend(t[r].getPosition());this.getMap().fitBounds(n,e)},n.getGridSize=function(){return this.gridSize_},n.setGridSize=function(e){this.gridSize_=e},n.getMinimumClusterSize=function(){return this.minClusterSize_},n.setMinimumClusterSize=function(e){this.minClusterSize_=e},n.getMaxZoom=function(){return this.maxZoom_},n.setMaxZoom=function(e){this.maxZoom_=e},n.getZIndex=function(){return this.zIndex_},n.setZIndex=function(e){this.zIndex_=e},n.getStyles=function(){return this.styles_},n.setStyles=function(e){this.styles_=e},n.getTitle=function(){return this.title_},n.setTitle=function(e){this.title_=e},n.getZoomOnClick=function(){return this.zoomOnClick_},n.setZoomOnClick=function(e){this.zoomOnClick_=e},n.getAverageCenter=function(){return this.averageCenter_},n.setAverageCenter=function(e){this.averageCenter_=e},n.getIgnoreHidden=function(){return this.ignoreHidden_},n.setIgnoreHidden=function(e){this.ignoreHidden_=e},n.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},n.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},n.getImageExtension=function(){return this.imageExtension_},n.setImageExtension=function(e){this.imageExtension_=e},n.getImagePath=function(){return this.imagePath_},n.setImagePath=function(e){this.imagePath_=e},n.getImageSizes=function(){return this.imageSizes_},n.setImageSizes=function(e){this.imageSizes_=e},n.getCalculator=function(){return this.calculator_},n.setCalculator=function(e){this.calculator_=e},n.getBatchSizeIE=function(){return this.batchSizeIE_},n.setBatchSizeIE=function(e){this.batchSizeIE_=e},n.getClusterClass=function(){return this.clusterClass_},n.setClusterClass=function(e){this.clusterClass_=e},n.getMarkers=function(){return this.markers_},n.getTotalMarkers=function(){return this.markers_.length},n.getClusters=function(){return this.clusters_},n.getTotalClusters=function(){return this.clusters_.length},n.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},n.addMarkers=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},n.pushMarkerTo_=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready_&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},n.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},n.removeMarkers=function(e,t){for(var n=!1,r=0;r<e.length;r++){var o=this.removeMarker_(e[r]);n=n||o}return!t&&n&&this.repaint(),n},n.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n=0;n<this.markers_.length;n++)if(e===this.markers_[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},n.repaint=function(){var e=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},n.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),r=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),o=t.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var i=t.fromLatLngToDivPixel(r);i.x-=this.gridSize_,i.y+=this.gridSize_;var s=t.fromDivPixelToLatLng(o),a=t.fromDivPixelToLatLng(i);return e.extend(s),e.extend(a),e},n.redraw_=function(){this.createClusters_(0)},n.resetViewport_=function(e){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.markers_.length;n++){var r=this.markers_[n];r.isAdded=!1,e&&r.setMap(null)}},n.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},n.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.addToClosestCluster_=function(e){for(var t=4e4,n=null,r=0;r<this.clusters_.length;r++){var o=this.clusters_[r],i=o.getCenter();if(i){var s=this.distanceBetweenPoints_(i,e.getPosition());s<t&&(t=s,n=o)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var a=new Ah(this);a.addMarker(e),this.clusters_.push(a)}},n.createClusters_=function(e){var t=this;if(this.ready_){var n;0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var r=this.getExtendedBounds(n),o=Math.min(e+this.batchSize_,this.markers_.length),i=e;i<o;i++){var s=this.markers_[i];!s.isAdded&&this.isMarkerInBounds_(s,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(o<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters_(o)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var a=0;a<this.clusters_.length;a++)this.clusters_[a].updateIcon()}}},t.CALCULATOR=function(e,t){for(var n=0,r=e.length,o=r;0!==o;)o=Math.floor(o/10),n++;return n=Math.min(n,t),{text:r.toString(),index:n,title:""}},t.withDefaultStyle=function(e){return Object.assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:e.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},e)},t}(Th);xh.BATCH_SIZE=2e3,xh.BATCH_SIZE_IE=500,xh.IMAGE_PATH="../images/m",xh.IMAGE_EXTENSION="png",xh.IMAGE_SIZES=[53,56,66,78,90];var Lh,Mh,jh,Qh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(xh),r=o(Zd);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},averageCenter:{type:Boolean,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},clusterClass:{type:String,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},a=(0,r.default)({mappedProps:s,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===n.default)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");return n.default},ctrArgs:function(e){return[e.map,[],i(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=this,n=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};Object.keys(s).forEach((function(e){s[e].twoWay&&t.$on("".concat(e.toLowerCase(),"_changed"),n)}))},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});t.default=a}))),Vh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},s=(0,r.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise){var n=e;n.position;return e=o(n,["position"]),this.$markerPromise.then((function(e){return t.$markerObject=e,e}))}},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}});t.default=s}))),Dh={name:"InfoWindowWrapper",props:{id:kt.string,renderPopover:kt.func,infoWindowProps:kt.object,events:kt.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(Vh,{ref:this.id+"-Info-Window",props:at({},this.infoWindowProps),on:at({},n)},[e("div",[t(this.handleClose)])])}},Fh={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:kt.func.isRequired,handleMouseOver:kt.func,handleFocus:kt.func,handleMouseOut:kt.func,handleBlur:kt.func,handleClick:kt.func},data:function(){return{opacity:.01}},mixins:[Gd],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}ut(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},Nh=Jt("div")(Lh||(Lh=dt(["\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"]))),Uh=Jt("div")(Mh||(Mh=dt(["\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"]))),qh=Wt(jh||(jh=dt(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),zh=ot.recordResultClick,Bh={name:"GoogleMapMarker",props:{index:kt.number,marker:kt.object.isRequired,getPosition:kt.func.isRequired,defaultPin:kt.string,renderItem:kt.func,setOpenMarkers:kt.func.isRequired,handlePreserveCenter:kt.func.isRequired,autoClosePopover:kt.bool,openMarkers:kt.object,renderPopover:kt.func,highlightMarkerOnHover:kt.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,s=n.autoClosePopover,a=n.handlePreserveCenter,u=i._id;r(s?((e={})[u]=!0,e):at({},o,((t={})[u]=!0,t))),a(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,s=n._id,a=(i[s],ct(i,[s].map(pt)));t(r?{}:a),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,s=i.getPosition,a=i.renderPopover,u=i.openMarkers;return t&&(o={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Dh,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return a({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,s=n.renderPopover,a=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Fh,{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:qh}},[t(Nh,[c.label]),t(Uh),s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});if(!("icon"in c))return t(Fh,{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:qh}},["function"==typeof c.custom?c.custom(u):c.custom,s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Jd,{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:at({},a)},[s?this.renderPopoverClick(u):null])}},Hh=cr((function(){return null}),{recordResultClick:zh})(Bh),Gh={name:"GoogleMapMarkers",props:{resultsToRender:kt.array,getPosition:kt.func,renderItem:kt.func,renderClusterPopover:kt.func,defaultPin:kt.string,autoClosePopover:kt.bool,handlePreserveCenter:kt.func,renderPopover:kt.func,markerProps:kt.object,clusterProps:kt.object,showMarkerClusters:kt.bool,highlightMarkerOnHover:kt.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(Qh,{props:at({},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"},[n.map((function(n,r){return t(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))]),this.clickedCluster&&this.renderClusterPopover?t(Dh,{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(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))])}},Wh={name:"ReactiveGoogleMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,defaultQuery:kt.func,loader:Wn.title,defaultZoom:kt.number.def(13),react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,mapProps:kt.object,showMarkers:kt.bool.def(!0),showMarkerClusters:kt.bool.def(!1),searchAsMove:kt.bool.def(!1),searchAsMoveLabel:kt.string,markerProps:kt.object,clusterProps:kt.object,renderItem:kt.func,showSearchAsMove:kt.bool.def(!0),autoClosePopover:kt.bool,pagination:kt.bool,defaultPin:kt.string,autoCenter:kt.bool,defaultCenter:Wn.location,center:Wn.location,defaultRadius:Wn.number,unit:Wn.string,pages:kt.number.def(5),calculateMarkers:kt.func,highlightMarkerOnHover:kt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,s=e.handleOnDragEnd,a=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,d=e.autoClosePopover,p=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(qp,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:at({},this.mapProps),on:{zoom_changed:i,dragend:s,idle:a}},[this.showMarkers?h(Gh,{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:p,autoClosePopover:d,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:at({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(Eh,Jr([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(Wh.name,Wh),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Np,{load:{key:t.key,libraries:"places"},installComponents:!1})}};Wh.componentType=L.reactiveMap;var Zh=["aggs","size"],Kh=["query"],Yh=["query"],Xh=[L.numberBox,L.ratingsFilter],Jh=[L.reactiveList,L.reactiveMap];function ef(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var tf,nf,rf=function(e){var t=e.theme;return Wt(tf||(tf=dt(["\n\tcolor: ",";\n"])),t.colors.alertColor)},of=Jt("div")(nf||(nf=dt(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&rf})),sf=st.getClassName,af=st.isEqual,uf={name:"RangeInput",components:{RangeSlider:md},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Wn.string,default:""},defaultValue:Wn.range,validateRange:Wn.func,value:Wn.range,dataField:Wn.stringRequired,innerClass:Wn.style,range:{types:Wn.range,default:function(){return{start:0,end:10}}},rangeLabels:Wn.rangeLabels,stepValue:Wn.number,componentStyle:Wn.style,componentId:Wn.stringRequired,includeNullValues:kt.bool,beforeValueChange:Wn.func,customQuery:Wn.func,data:Wn.data,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!af(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=at({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=at({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){af(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,s=t.componentId,a=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,d=t.includeNullValues,p=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,C=t.URLParams,O=t.sliderOptions,_=t.nestedField;return e(sa,{style:l,class:n},[e(md,{attrs:{componentId:s,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:d,beforeValueChange:p,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:C,sliderOptions:O,nestedField:_},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Io,{class:sf(a,"input-container")||""},[e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":s+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.start})}),!this.isStartValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])]),e(Io,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":s+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.end})}),!this.isEndValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])])])])}},lf=Dr(cr((function(e){return{themePreset:e.config.themePreset}}),{})(uf),{componentType:L.rangeInput});uf.install=function(e){e.component(uf.name,lf)},uf.componentType=L.rangeInput;var cf=[Yo,Yc,od,Hi,ru,$u,Wu,sl,Lc,qc,gd,Rd,vc,$c,ic,Ml,Zl,Vd,uf];function df(e){cf.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&df(window.Vue);var pf={version:"1.16.0-alpha.61",install:df};e.DataSearch=ru,e.DynamicRangeSlider=Rd,e.MultiDropdownList=Zl,e.MultiList=sl,e.MultiRange=qc,e.RangeInput=uf,e.RangeSlider=gd,e.ReactiveBase=Hi,e.ReactiveComponent=vc,e.ReactiveGoogleMap=Wh,e.ReactiveList=Yo,e.ResultCard=Yc,e.ResultList=od,e.SearchBox=$u,e.SelectedFilters=$c,e.SingleDropdownList=Ml,e.SingleList=Wu,e.SingleRange=Lc,e.StateProvider=Vd,e.ToggleButton=ic,e.default=pf,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,s=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,a=at({},n.enableAppbase&&at({"X-Search-Client":"ReactiveSearch Vue"},!1===s&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:a,analyticsConfig:n.appbaseConfig||null},l=xi(u),c=[],d={},p={},h={},f={},g={},m=[],y={},v=[],b={},C={},O={},_={},w={},$={},E={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){M.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Jh.includes(n),s=e.componentId+"__internal",a=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;Xh.includes(n)&&(m=!1),d=z(d,{type:"SET_VALUE",component:e.componentId,label:a,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(w[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&($[e.componentId]=e.defaultQuery(l,r));var y={};e&&e.source.generateQueryOptions&&(y=at({},y,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},C=b.aggs,O=b.size,_=ct(b,Zh);if(C&&Object.keys(C).length&&(o=!0,y=at({},y,{aggs:C,size:void 0===O?100:O})),_&&Object.keys(_).length||v&&Object.keys(v).length){_||(_={}),v||(v={});var S=at({},_,v,{size:O});if(o&&(S=at({},_,v)),i){var P=e.currentPage?e.currentPage-1:0;d[e.componentId]&&d[e.componentId].value&&(P=d[e.componentId].value-1||0);var k=e.size||10,A=P*k;r.from=A,S=at({},S,v,{size:k,from:A})}y=at({},y,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Pe(x,s)),g=T(g,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!je(e.componentType)){var L=function(e,t){var n=ef(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},j=L.query,Q=ct(L,Kh);p=I(p,{type:"SET_QUERY",component:s,query:j}),f=R(f,{type:"SET_QUERY_OPTIONS",component:s,options:at({},y,Q)})}var V=function(e,t){var n=ef(t,e);if(e.customQuery){var r=e.customQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ct(V,Yh),N=D;p=I(p,{type:"SET_QUERY",component:e.componentId,query:N}),f=R(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:at({},F)}),r.componentType=n,E[e.componentId]=r})),_={components:c,dependencyTree:g,queryList:p,queryOptions:f,selectedValues:d,internalValues:{},props:E,customQueries:w,defaultQueries:$},e.forEach((function(e){var t=Te(e.componentId,g,p,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var s;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var a=at({query:at({},r)},o,f[e.componentId]);if(h=at({},h,((s={})[e.componentId]=a,s)),n.enableAppbase){var l,c=Me(e.componentId,Le(_,e.componentId,f&&Object.keys(f[e.componentId]).length?{from:f[e.componentId].from}:null));if(c)y=at({},y,((l={})[e.componentId]=c,l),xe(_,e.componentId,v))}else{var d=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:d},a])}}})),_.queryLog=h;var P=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},k=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){P(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=at({},C,((o={})[t]=e.aggregations,o)),O=se(O,{type:S,aggregations:e.aggregations,append:!1}));b=at({},b,((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(){_=at({},_,{hits:b,aggregations:C}),r(_)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Ge(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){k(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var A={};u.analyticsConfig&&(A.recordAnalytics=Fe(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,A.userId=Fe(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,A.enableQueryRules=Fe(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,A.customEvents=Fe(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,A).then((function(e){!function(e){var t={},n={},o={},i={},s={},a=v.map((function(r){return new Promise((function(a,u){P(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return at({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=at({},C,((c={})[r]=u.aggregations,c));s[r]=e._timestamp,b=at({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),a()}})).catch((function(e){return u(e)}))}))}));Promise.all(a).then((function(){_=at({},_,{hits:b,timestamp:s,aggregations:C,compositeAggregations:O,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){k(e)})).catch((function(e){return o(e)}))}))},e.install=df,e.version="1.16.0-alpha.61",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
36
|
+
*/function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pa,ha,fa={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,s=r.activeIndex,a=void 0===s?-1:s,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,d=void 0!==c&&c,p=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,C=r.searchWords,O=r.textToHighlight,_=r.unhighlightClassName,S=void 0===_?"":_,w=r.unhighlightStyle,$=t.data,E=ca({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:C,textToHighlight:O}),T=v,P=-1,I="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){da(e,t,n[t])}))}return e}({},$),E.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var s=++P===+a;I="".concat(f," ").concat(s?i:""),n=!0===s&&null!=u?Object.assign({},m,u):m;var l={class:I,key:r,style:n};return"string"!=typeof T&&(l.props={highlightIndex:P}),$.scopedSlots?e(T,l,[$.scopedSlots.default({children:o,highlightIndex:P})]):e(T,l,o)}return e("span",{class:S,key:r,style:w},o)})))}},ga={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},ma=Jt("span")(pa||(pa=dt(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ya={name:"SuggestionItem",props:{currentValue:Wn.string,suggestion:Wn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,s=t.image,a=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!a&&!u?e(fa,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:ga}}):e(ma,{domProps:{innerHTML:n}})]):n:o||s||i?e(Io,{attrs:{alignItems:"center",css:{width:"100%"}}},[s&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:s,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Io,{attrs:{direction:"column",css:{width:s?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:ga},class:Wt({fontSize:"1rem"})})]),i&&e("div",{class:Bt("trim",Wt({marginTop:3}))},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:ga}})])])]):r}},va={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:at({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"}})])}},ba={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"}})])}};Gt(ha||(ha=dt(["\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 Ca,Oa={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"}})])])])}};Gt(Ca||(Ca=dt(["\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 _a,Sa={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"}})])])])}};Gt(_a||(_a=dt(["\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 wa,$a,Ea,Ta={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"}})])])])])}},Pa="INACTIVE",Ia="STOPPED",ka="ACTIVE",Aa="DENIED",Ra={name:"Mic",props:{children:Wn.title,lang:kt.string.def("en-US"),iconPosition:kt.string.def("left"),handleResult:Wn.func,onNoMatch:Wn.func,onError:Wn.func,getInstance:Wn.func,render:Wn.func,className:Wn.string,applyClearStyle:kt.bool,showIcon:kt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return hr(t,this)},stopMic:function(){this.instance&&(this.status=Pa,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===ka&&(this.status=Pa);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,s=t.getInstance,a=window.SpeechRecognition;if(this.instance&&this.status!==Aa)return this.status=Pa,this.instance.stop(),void(this.instance=null);this.instance=new a,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,s&&s(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=ka},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=Pa:"not-allowed"===t.error&&(e.status=Aa),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=Pa},this.instance.onaudioend=function(){e.status=Pa}}}},computed:{hasCustomRenderer:function(){return fr(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case ka:return e(Ta,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ia:case Aa:return e(Sa,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(Oa,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:Pa}},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(Xs,[this.Icon])}},xa={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(va,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},La=Jt("div")(wa||(wa=dt(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Ma=Jt("span")($a||($a=dt(["\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"]))),ja=ot.updateQuery,Qa=ot.setQueryOptions,Va=ot.setCustomQuery,Da=ot.setDefaultQuery,Fa=ot.setCustomHighlightOptions,Na=ot.recordSuggestionClick,Ua=ot.loadPopularSuggestions,qa=ot.getRecentSearches,za=ot.resetStoreForComponent,Ba=st.debounce,Ha=st.checkValueChange,Ga=st.getClassName,Wa=st.extractQueryFromCustomQuery,Za=st.getOptionsForCustomQuery,Ka=st.isEqual,Ya=st.getCompositeAggsQuery,Xa=st.withClickIds,Ja=st.getResultStats,eu=st.handleOnSuggestions,tu=st.getTopSuggestions,nu=st.normalizeDataField,ru={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,s=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&s&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ba(this.handleText,this.$props.debounce),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),Xa(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return tu(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return at({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return at({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return tu(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return fr(this)},stats:function(){return Ja(this)}},props:{options:Wn.options,autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSearches:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderQuerySuggestions:Wn.func,renderPopularSuggestions:Wn.func,parseSuggestion:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,enableDefaultSuggestions:kt.bool.def(!0),mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Ka(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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){Ka(e,t)||(this.$options.isTagsMode?Ka(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=ru.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=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):hr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ya({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return eu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ha(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!Ka(e,i.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);if(i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e)i.selectedTags.push(e);else if(Array.isArray(e)&&!Ka(i.selectedTags,e)){var s=Array.from(new Set([].concat(i.selectedTags,e)));i.selectedTags=s}}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=e;var a=e;i.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(a=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof e&&i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.updateQueryHandler(n.componentId,a,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,a,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=ru.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Wa(o);i&&(r=i),n=Za(o),yr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,at({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:L.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,s=n.showFilter,a=n.URLParams,u=ru.defaultQuery(t,n);if(o){var l=o(t,n),c=Wa(l);c&&(u=c),r=Za(l),vr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,at({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:s,URLParams:a,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Vs,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:Ga(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(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:Ga(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(ba)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ga(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,s=n.enableDefaultSuggestions,a=this.$scopedSlots,u=a.recentSearchesIcon,l=a.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==s||this.currentValue||(c=!1),t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Ga(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(ia,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,a=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Ws(e.themePreset,r)+" "+Ga(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({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(xa,{attrs:{className:Ga(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),Cr(e)?e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({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(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:Ga(e.$props.innerClass,"input"),on:at({},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(){g(null)}})),domProps:at({},a({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:Ga(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:at({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:at({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=nu(t.dataField,t.fieldWeights);n={bool:{should:ru.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:at({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},ou=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Qa,updateQuery:ja,setCustomQuery:Va,setDefaultQuery:Da,setCustomHighlightOptions:Fa,recordSuggestionClick:Na,loadPopularSuggestions:Ua,getRecentSearches:qa,resetStoreForComponent:za})(ru),{componentType:L.dataSearch,internalComponent:ru.hasInternalComponent()});ru.install=function(e){e.component(ru.name,ou)},ru.componentType=L.dataSearch;var iu,su,au,uu,lu,cu,du=Jt("button")(Ea||(Ea=dt(["\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"]))),pu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(du,{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)}}},hu=ot.updateQuery,fu=ot.setCustomQuery,gu=ot.setDefaultQuery,mu=ot.recordSuggestionClick,yu=st.debounce,vu=st.checkValueChange,bu=st.getClassName,Cu=st.isEqual,Ou=st.getCompositeAggsQuery,_u=st.withClickIds,Su=st.getResultStats,wu=st.normalizeDataField,$u={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=Tr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=yu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return fr(this)},stats:function(){return Su(this)}},props:{autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSuggestions:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,popularSuggestionsConfig:kt.object,recentSuggestionsConfig:kt.object,applyStopwords:kt.bool,customStopwords:Wn.stringArray,onData:Wn.func,renderItem:Wn.func,enterButton:kt.bool.def(!1),renderEnterButton:kt.any,mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any,searchboxId:kt.string},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){Cu(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){Cu(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(_u(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(_u(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!Cu(e,t)&&(this.$options.isTagsMode?!Cu(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){Cu(e,t)||(this.handleTextChange=yu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=$u.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 hr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ou({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var s=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);vu(n.componentId,e,n.beforeValueChange,(function(){if(!s.$options.isTagsMode||!Cu(e,s.selectedTags)){if(s.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(s.selectedTags)&&s.selectedTags.length){if("string"==typeof e&&s.selectedTags.includes(e))return void(s.isOpen=!1);if(s.selectedTags=[].concat(s.selectedTags),"string"==typeof e&&e)s.selectedTags.push(e);else if(Array.isArray(e)&&!Cu(s.selectedTags,e)){var a=Array.from(new Set([].concat(s.selectedTags,e)));s.selectedTags=a}}else e&&(s.selectedTags="string"!=typeof e?e:[].concat(e));s.currentValue=""}else s.currentValue=Tr(e);var u=e;s.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(s.selectedTags)&&s.selectedTags.length?s.selectedTags:void 0),t?(s.$props.autosuggest&&(o&&(s.isOpen=!1),"string"==typeof s.currentValue&&s.triggerDefaultQuery(s.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(s.$options.isTagsMode?0===s.selectedTags.length:""===e)?s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i):s.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i)):s.handleTextChange(e,r),s.$emit("valueChange",e),s.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=$u.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),yr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:L.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,s=n.URLParams,a="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(a=e);var u=$u.defaultQuery(a+(t?" in "+t:""),this.$props);if(r){var l=r(a,this.$props).query;l&&(u=l),vr(this.$props.componentId,this.setCustomQuery,this.$props,a)}this.updateQuery({componentId:this.$props.componentId,query:u,value:a,label:o,showFilter:i,URLParams:s,componentType:L.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,s=void 0===i||i,a=e.value,u=void 0===a?void 0:a,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),s&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?it.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(at({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Vs,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Bn,{class:"enter-btn "+bu(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:bu(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Tr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(pu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:bu(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(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:bu(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(ba)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,s=i.recentSearchesIcon,a=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:bu(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(ia,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case Oe.Recent:return s;case Oe.Popular:return a;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Ws(e.themePreset,r)+" "+bu(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:at({},d({item:r})),on:at({},p({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(xa,{attrs:{className:bu(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:bu(e.$props.innerClass,"input"),on:at({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:at({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:bu(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:at({},{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:at({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=wu(t.dataField,t.fieldWeights);return(n={bool:{should:$u.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},Eu=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:hu,setCustomQuery:fu,setDefaultQuery:gu,recordSuggestionClick:mu})($u),{componentType:L.searchBox,internalComponent:!0});$u.install=function(e){e.component($u.name,Eu)},$u.componentType=L.searchBox;var Tu="15px",Pu="15px",Iu="4px",ku=Wt(iu||(iu=dt(["\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"]))),Au=Wt(su||(su=dt(["\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"]))),Ru=function(e){var t=e.theme;return Wt(au||(au=dt(["\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"])),ku,Vn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Vn(.1,t.colors.textColor),t.colors.primaryColor,Tu,Tu,Pu,t.colors.primaryColor,Iu,Tu,Iu,Pu,Iu,Pu,Iu)},xu=Jt("input")(uu||(uu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Lu=Jt("input")(lu||(lu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),Tu,Tu,Tu,Pu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Mu=Jt("ul")(cu||(cu=dt(["\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"]))),ju=st.getAggsOrder,Qu=function(e,t){var n,r=e,o=t.dataField,i=t.size,s=t.sortBy,a=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:at({field:o,size:i,order:ju(s||"count")},a?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),at({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},Vu=ot.updateQuery,Du=ot.setQueryOptions,Fu=ot.setCustomQuery,Nu=ot.setDefaultQuery,Uu=st.getQueryOptions,qu=st.checkValueChange,zu=st.getClassName,Bu=st.isEqual,Hu=st.extractQueryFromCustomQuery,Gu=st.getOptionsForCustomQuery,Wu={name:"SingleList",props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.string,enableStrictSelection:kt.bool.def(!1)},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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){Bu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(xu,{class:zu(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:at({},{checked:this.$data.currentValue===r})}),t("label",{class:zu(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(xu,{class:zu(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:at({},{checked:e.currentValue===String(n.key)})}),t("label",{class:zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:zu(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");qu(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=Wu.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Hu(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Gu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wu.defaultQuery(e,t);if(n){var o=n(e,t);r=Hu(o);var i=Gu(o);vr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleList})},generateQueryOptions:function(e){var t=Uu(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=Wu.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Gu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:zu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return hr(i,this)},handleClick:function(e){var t=e;return mr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:zu(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(this)}},generateQueryOptions:function(e){var t=Uu(e);return Qu(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}},Zu=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Du,updateQuery:Vu,setCustomQuery:Fu,setDefaultQuery:Nu})(Wu),{componentType:L.singleList,internalComponent:Wu.hasInternalComponent()});Wu.install=function(e){e.component(Wu.name,Zu)},Wu.componentType=L.singleList;var Ku=ot.updateQuery,Yu=ot.setQueryOptions,Xu=ot.setCustomQuery,Ju=ot.setDefaultQuery,el=st.isEqual,tl=st.getQueryOptions,nl=st.checkValueChange,rl=st.getClassName,ol=st.extractQueryFromCustomQuery,il=st.getOptionsForCustomQuery,sl={name:"MultiList",props:{defaultValue:Wn.stringArray,value:Wn.stringArray,queryFormat:kt.oneOf(["and","or"]).def("or"),showCheckbox:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.string},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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||el(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){el(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){el(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])),el(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm).toLowerCase()))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:rl(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:rl(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:rl(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:at({},{checked:!!this.currentValue[r]})}),t("label",{class:rl(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Lu,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:rl(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:at({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:rl(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:rl(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,s=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}nl(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=sl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ol(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=il(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=sl.defaultQuery(e,t);if(n){var o=n(e,t);r=ol(o),vr(t.componentId,this.setCustomQuery,t,e);var i=il(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiList})},generateQueryOptions:function(e){var t=tl(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=sl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=il(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:rl(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;mr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=pr(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return hr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:rl(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=tl(e);return Qu(t,e)}},al={setQueryOptions:Yu,updateQuery:Ku,setCustomQuery:Xu,setDefaultQuery:Ju};sl.hasInternalComponent=function(){return!0};var ul,ll,cl,dl,pl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),al)(sl),{componentType:L.multiList,internalComponent:sl.hasInternalComponent()});sl.install=function(e){e.component(sl.name,pl)},sl.componentType=L.multiList;var hl,fl,gl=Wt(ul||(ul=dt(["\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"]))),ml=function(e){var t=e.theme;return Wt(ll||(ll=dt(["\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)},yl=Jt("button")(cl||(cl=dt(["\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?gl:null}),(function(e){return"dark"===e.themePreset&&ml})),vl=Jt("span")(dl||(dl=dt(["\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})),bl=Wt(hl||(hl=dt(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Cl=Jt("span")(fl||(fl=dt(["\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?bl:null})),Ol=st.getClassName,_l={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Wn.style,items:Wn.data,keyField:kt.string.def("key"),labelField:kt.string.def("label"),multi:kt.bool,placeholder:Wn.string,returnsObject:kt.bool,customLabelRenderer:Wn.func,hasCustomRenderer:kt.bool,customRenderer:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,handleChange:Wn.func,transformData:Wn.func,selectedItem:Wn.selectedValue,showCount:kt.bool,single:kt.bool,small:kt.bool.def(!1),themePreset:Wn.themePreset,showSearch:kt.bool,showClear:kt.bool,searchPlaceholder:kt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,s=n.labelField,a=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,d=n.footer,p=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[s]).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t[s])).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(ia,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,C=n.getInputEvents;return t("div",{class:Zs},[t(yl,{on:at({},at({},v({onClick:e.toggle}))),class:Ol(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[p?p(o):t("div",[o?e.renderToString(o):i]),t(Cl,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ws(u,e.theme)+" "+(e.$props.small?"small":"")+" "+Ol(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:C({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[a]]||Array.isArray(o)&&o.find((function(e){return e[s]===n[s]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:at({},r({item:n})),on:at({},b({item:n})),key:n[a],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[s],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[s]?t("span",{domProps:{innerHTML:n[s]}}):n[s],e.$props.showCount&&n.doc_count&&t("span",{class:Ol(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(vl,{class:Ol(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),d]):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:Ol(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,s=n.themePreset,a=n.innerClass,u=t(Gs,Jr([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:s},style:{border:0,borderBottom:"1px solid #ddd"},class:Ol(a,"input")},e]));return i?t(Qs,[u,this.searchTerm&&t(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(Xs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(ba)])])]):u}}},Sl=ot.updateQuery,wl=ot.setQueryOptions,$l=ot.setCustomQuery,El=ot.setDefaultQuery,Tl=st.getQueryOptions,Pl=st.checkValueChange,Il=st.checkPropChange,kl=st.getClassName,Al=st.isEqual,Rl=st.getCompositeAggsQuery,xl=st.extractQueryFromCustomQuery,Ll=st.getOptionsForCustomQuery,Ml={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select a value"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.string.def("Type here to search...")},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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&&Il(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Al(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,s=t.renderLabel,a=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,d=this.$scopedSlots.renderLabel||s,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?dr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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&&!a&&e("div",{attrs:{css:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):p&&dr(p)?e("div",[p()]):p&&!dr(p)?p:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Pl(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=Ml.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=xl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Ll(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ml.defaultQuery(e,t);if(n){var o=n(e,t);r=xl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Ll(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleDropdownList})},generateQueryOptions:function(e,t){var n=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Ml.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Ll(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(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=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},jl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:wl,updateQuery:Sl,setCustomQuery:$l,setDefaultQuery:El})(Ml),{componentType:L.singleDropdownList,internalComponent:Ml.hasInternalComponent()});Ml.install=function(e){e.component(Ml.name,jl)},Ml.componentType=L.singleDropdownList;var Ql=ot.updateQuery,Vl=ot.setQueryOptions,Dl=ot.setCustomQuery,Fl=ot.setDefaultQuery,Nl=st.isEqual,Ul=st.getQueryOptions,ql=st.checkValueChange,zl=st.checkPropChange,Bl=st.getClassName,Hl=st.getCompositeAggsQuery,Gl=st.extractQueryFromCustomQuery,Wl=st.getOptionsForCustomQuery,Zl={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select values"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.string.def("Type here to search...")},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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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])),Nl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Nl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,s=t.renderLabel,a=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||s,c=this.$data.isLastBucket,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,p=[];return u&&this.error?dr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(p=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Bl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(p,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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:a,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:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):d&&dr(d)?e("div",[d()]):d&&!dr(d)?d:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=pr(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,s=null;if(o&&e.includes(o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}ql(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=at({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=Zl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Gl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Wl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Zl.defaultQuery(e,t);if(n){var o=n(e,t);r=Gl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Wl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiDropdownList})},generateQueryOptions:function(e,t){var n=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Zl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Wl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},Kl=Dr(cr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Vl,updateQuery:Ql,setCustomQuery:Dl,setDefaultQuery:Fl})(Zl),{componentType:L.multiDropdownList,internalComponent:Zl.hasInternalComponent()});Zl.install=function(e){e.component(Zl.name,Kl)},Zl.componentType=L.multiDropdownList;var Yl=ot.updateQuery,Xl=ot.setQueryOptions,Jl=ot.setCustomQuery,ec=st.isEqual,tc=st.checkValueChange,nc=st.getClassName,rc=st.getOptionsFromQuery,oc=st.handleA11yAction,ic={name:"ToggleButton",props:{componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.any,value:Wn.stringOrArray,filterLabel:Wn.string,nestedField:Wn.string,innerClass:Wn.style,multiSelect:kt.bool,react:Wn.react,showFilter:kt.bool,title:Wn.title,URLParams:kt.bool,renderItem:Wn.func,index:kt.string,enableStrictSelection:kt.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ic.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`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ic.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){ec(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ec(this.$data.currentValue,e)||ec(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ec(n,this.selectedValue)||ec(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,s=[];s=t?ic.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(s,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);tc(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=ic.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,rc(r(e,t)),!1),vr(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:L.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ec(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(Bn,{class:nc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return oc(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(sa,{class:Nn},[this.$props.title&&t(eo,{class:nc(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}},sc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:Yl,setQueryOptions:Xl,setCustomQuery:Jl})(ic),{componentType:L.toggleButton});ic.install=function(e){e.component(ic.name,sc)},ic.componentType=L.toggleButton;var ac=["options"],uc=ot.updateQuery,lc=ot.setQueryOptions,cc=ot.setCustomQuery,dc=ot.setDefaultQuery,pc=st.parseHits,hc=st.isEqual,fc=st.getCompositeAggsQuery,gc=st.getResultStats,mc=st.extractQueryFromCustomQuery,yc=st.getOptionsForCustomQuery,vc={name:"ReactiveComponent",props:{componentId:Wn.stringRequired,aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,defaultQuery:Wn.func,customQuery:Wn.func,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),URLParams:kt.bool.def(!1),distinctField:Wn.string,distinctFieldConfig:Wn.props,index:kt.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,vr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,s=t.URLParams,a=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||!a&&!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),d=mc(c),p=c?yc(c):null;p?this.setQueryOptions(r,at({},p,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:d,value:this.selectedValue||null,label:o,showFilter:i,URLParams:s})}if(this.setQuery=function(n){var r=n.options,o=ct(n,ac),i=o.query;i&&i.query&&(i=i.query);var s=at({},r,{query:i}),a=s;i&&i.id&&(a=i),e.setCustomQuery(t.componentId,a),r&&e.setQueryOptions(t.componentId,at({},e.getAggsQuery(),r),!1),e.updateQuery(at({},o,{query:s.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){yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=mc(this.$defaultQuery),f=yc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,at({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){hc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){hc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){hc(e,t)||this.$emit("data",this.getData())},total:function(e,t){hc(e,t)||this.$emit("data",this.getData())},time:function(e,t){hc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=mc(this.$defaultQuery),r=yc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,at({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=mc(this.$customQuery),o=yc(this.$customQuery);o?this.setQueryOptions(n,at({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),vr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=at({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:fc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=pc(e);if(r.length){var s=r.map((function(e){return e._id})).filter(Boolean);s&&(i=i.filter((function(e){return!s.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return gc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},bc=Dr(cr((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:lc,updateQuery:uc,setCustomQuery:cc,setDefaultQuery:dc})(vc),{componentType:L.reactiveComponent});vc.install=function(e){e.component(vc.name,bc)},vc.componentType=L.reactiveComponent;var Cc=ot.setValue,Oc=ot.clearValues,_c=ot.resetValuesToDefault,Sc=st.getClassName,wc=st.handleA11yAction,$c={name:"SelectedFilters",props:{className:kt.string.def(""),clearAllLabel:kt.string.def("Clear All"),innerClass:Wn.style,showClearAll:kt.bool.def(!0),title:Wn.title,resetToDefault:kt.bool.def(!1),clearAllBlacklistComponents:kt.array,resetToValues:kt.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(sa,{class:Dn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(eo,{class:Sc(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Bn,{class:Sc(this.$props.innerClass,"button")||"",on:at({},{click:this.clearValues,keypress:function(t){return wc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Bn,{class:Sc(this.$props.innerClass,"button")||"",key:t,on:at({},{click:n,keypress:function(e){return wc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,s=o.value,a=Array.isArray(s);if(i&&(a&&s.length||!a&&s)){var u=e.renderValue(s,a);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,s)}),t[n].label+": "+Tr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ec=cr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:Oc,setValue:Cc,resetValuesToDefault:_c})($c);$c.install=function(e){e.component($c.name,Ec)};var Tc=ot.updateQuery,Pc=ot.setQueryOptions,Ic=ot.setCustomQuery,kc=st.isEqual,Ac=st.checkValueChange,Rc=st.getClassName,xc=st.getOptionsFromQuery,Lc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.string},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`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){kc(e,t)||this.setValue(e)},selectedValue:function(e){kc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Rc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Rc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(xu,{class:Rc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Rc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?Lc.parseValue(e,t):e;Ac(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Lc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=xc(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},Mc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Tc,setQueryOptions:Pc,setCustomQuery:Ic})(Lc),{componentType:L.singleRange});Lc.install=function(e){e.component(Lc.name,Mc)},Lc.componentType=L.singleRange;var jc=ot.updateQuery,Qc=ot.setQueryOptions,Vc=ot.setCustomQuery,Dc=st.isEqual,Fc=st.checkValueChange,Nc=st.getClassName,Uc=st.getOptionsFromQuery,qc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=pr(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,s=this.selectedValues;if(e)if(t){i=qc.parseValue(e,n);var a={};i.forEach((function(e){a[[e.label]]=!0})),s=r?a:at({},s,a)}else if(s[e]){i=i.filter((function(t){return t.label!==e}));var u=s,l=(u[e],ct(u,[e].map(pt)));s=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),s=at({},s,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],s={};Fc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=s,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(s)),o.$emit("value-change",Object.keys(s))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=qc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Uc(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:L.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){Dc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Dc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Nc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Nc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Lu,{class:Nc(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:at({},{checked:e.selectedValues[n.label]}),on:at({},{click:e.handleClick})}),t("label",{class:Nc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},zc=Dr(cr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:jc,setQueryOptions:Qc,setCustomQuery:Vc})(qc),{componentType:L.multiRange});qc.install=function(e){e.component(qc.name,zc)},qc.componentType=L.multiRange;var Bc,Hc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(Hc.name,Hc)}},Gc=["src"],Wc={name:"ResultCardImage",props:{src:kt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ct(t,Gc);return e(bo,Jr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Wc.name,Wc)}},Zc={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Zc.name,Zc)}},Kc=["href","target"],Yc={name:"ResultCard",components:{ResultCardTitle:Hc,ResultCardImage:Wc,ResultCardDescription:Zc},props:{target:kt.string.def("_blank"),href:Wn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ct(n,Kc);return e(Co,Jr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Yc.name,Yc),e.component(Hc.name,Hc),e.component(Wc.name,Wc),e.component(Zc.name,Zc)}},Xc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Xc.name,Xc)}},Jc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Jr([{},n]),[r])},install:function(e){e.component(Jc.name,Jc)}},ed=["src","small"],td={name:"ResultListImage",props:{src:kt.string.isRequired,small:kt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ct(t,ed);return e(ro,Jr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(td.name,td)}},nd={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(nd.name,nd)}},rd=["href","target"],od={name:"ResultList",props:{href:Wn.string,target:kt.string.def("_blank")},components:{ResultListContent:Xc,ResultListDescription:Jc,ResultListImage:td,ResultListTitle:nd},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===td.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ct(t,rd),i=this.hasImage,s=this.isSmall,a=this.$slots.default;return e(oo,Jr([{attrs:{href:n,image:i,small:s,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[a])},install:function(e){e.component(od.name,od),e.component(Xc.name,Xc),e.component(Jc.name,Jc),e.component(td.name,td),e.component(nd.name,nd)}},id={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),s=i.default;void 0===s&&(s=[]);var a=i.placeholder;return n._isMounted?s:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||a)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||a):s.length>0?s.map((function(){return e(!1)})):e(!1))}},sd=Jt("div")(Bc||(Bc=dt(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),ad=function(){var e={NoSSR:id};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=At["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},ud=ot.updateQuery,ld=ot.setQueryOptions,cd=ot.setCustomQuery,dd=st.checkValueChange,pd=st.getClassName,hd=st.getOptionsFromQuery,fd=st.isEqual,gd={name:"RangeSlider",components:ad(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Wn.func,className:kt.string.def(""),range:kt.shape({start:kt.integer.def(0),end:kt.integer.def(10)}),rangeLabels:Wn.rangeLabels,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.range,value:Wn.range,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);dd(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=gd.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=hd(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,s=t.range,a=s.start,u=s.end,l=e[0],c=e[1],d=l===a&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:L.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(gd.parseValue(e,this.$props))},value:function(e,t){fd(e,t)||this.handleChange(gd.parseValue(e,this.$props))},selectedValue:function(e){fd(this.$data.currentValue,e)||(this.handleChange(gd.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(gd.parseValue(r,this.$props)):t?this.handleChange(gd.parseValue(t,this.$props)):n&&this.handleChange(gd.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:pd(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(id,[e(sd,{class:pd(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:at({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:pd(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:pd(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},md=Dr(cr((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:ud,setQueryOptions:ld,setCustomQuery:cd})(gd),{componentType:L.rangeSlider});gd.install=function(e){e.component(gd.name,md)},gd.componentType=L.rangeSlider;var yd=ot.addComponent,vd=ot.removeComponent,bd=ot.watchComponent,Cd=ot.updateQuery,Od=ot.setQueryListener,_d=ot.setQueryOptions,Sd=ot.setComponentProps,wd=ot.setCustomQuery,$d=ot.updateComponentProps,Ed=st.checkValueChange,Td=st.getClassName,Pd=st.isEqual,Id=st.checkSomePropChange,kd=st.extractQueryFromCustomQuery,Ad=st.getOptionsForCustomQuery,Rd={name:"DynamicRangeSlider",components:ad(),props:{beforeValueChange:Wn.func,className:kt.string.def(""),rangeLabels:Wn.func,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),destroyOnUnmount:kt.bool,showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.string,value:Wn.range},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,L.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,L.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Rd.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Rd.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Rd.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];Ed(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Rd.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=kd(n);r&&(t=r);var o=Ad(n);vr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},s=i.start,a=i.end,u=e[0],l=e[1],c=u===s&&l===a;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:L.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=gr(e);Id(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,L.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,L.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!Pd(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Rd.parseValue(t,this.$props))}},range:function(e,t){if(!Pd(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},s=i.start,a=i.end,u=r===s?e.start:r,l=o===a?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){Pd(e,t)||this.handleChange(Rd.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Td(this.$props.innerClass,"title")},[this.$props.title]),e(id,[e(sd,{class:Td(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:at({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Td(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Td(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},xd=cr((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:yd,removeComponent:vd,updateQuery:Cd,watchComponent:bd,setQueryListener:Od,setQueryOptions:_d,setComponentProps:Sd,setCustomQuery:wd,updateComponentProps:$d})(Rd);Rd.install=function(e){e.component(Rd.name,xd)},Rd.componentType=L.dynamicRangeSlider;var Ld=st.getSearchState,Md=function(e){return void 0===e&&(e={}),at({},e,{props:e.componentProps})},jd=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Qd=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return at({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},Vd={name:"StateProvider",props:{onChange:kt.func,componentIds:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]),includeKeys:kt.arrayOf(kt.string).def(["hits","value","aggregations","error"]),strict:kt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Qd(Ld(Md(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog,dependencyTree:this.dependencyTree,componentProps:this.componentProps,hits:this.hits,aggregations:this.aggregations,isLoading:this.isLoading,error:this.error,promotedResults:this.promotedResults,rawData:this.rawData}}},watch:{searchState:function(e,t){this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Qd(Ld(Md(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Dd=cr((function(e,t){return{selectedValues:jd(e.selectedValues,t),queryLog:jd(e.queryLog,t),dependencyTree:jd(e.dependencyTree,t),componentProps:jd(e.props,t),hits:jd(e.hits,t),aggregations:jd(e.aggregations,t),isLoading:jd(e.isLoading,t),error:jd(e.error,t),promotedResults:jd(e.promotedResults,t),customData:jd(e.customData,t),settings:jd(e.settings,t),rawData:jd(e.rawData,t),components:jd(e.components,t)}}),{setValues:Ue})(Vd);Vd.install=function(e){e.component(Vd.name,Dd)};var Fd=o((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=!1,function(e,t){if("undefined"!=typeof document){if(r)throw new Error("You already started the loading of google maps");r=!0;var o=document.createElement("SCRIPT");if("object"!==n(e))throw new Error("options should be an object");Object.prototype.isPrototypeOf.call(Array.prototype,e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var i="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(i="https://maps.google.cn/");var s=Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&"),a="".concat(i,"maps/api/js?").concat(s);o.setAttribute("src",a),o.setAttribute("async",""),o.setAttribute("defer",""),document.head.appendChild(o)}});t.default=o}));r(Fd);var Nd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}}));r(Nd);var Ud=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){function o(){return t.gmapApi={},window.google}if(n.load)return(0,r.default)((function(){return"undefined"==typeof window?new Promise((function(){})).then(o):new Promise((function(t,r){try{window.vueGoogleMapsInit=t,e(n.load,n.loadCn)}catch(e){r(e)}})).then(o)}));var i=new Promise((function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)})).then(o);return(0,r.default)((function(){return i}))}};var n,r=(n=Nd)&&n.__esModule?n:{default:n}}));r(Ud);var qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}}));r(qd);var zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}}));r(zd);var Bd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getPropsValues=function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.bindProps=function(e,t,n){Object.keys(n).forEach((function(i){var s=n[i],a=s.twoWay,u=s.type,l=s.trackProperties;if(!s.noBind){var c="set".concat(o(i)),d="get".concat(o(i)),p="".concat(i.toLowerCase(),"_changed"),h=e[i];if(void 0===t[c])throw new Error("".concat(c," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));u===Object&&l?(0,r.default)(e,l.map((function(e){return"".concat(i,".").concat(e)})),(function(){t[c](e[i])}),void 0!==e[i]):e.$watch(i,(function(){var n=e[i];t[c](n)}),{immediate:void 0!==h,deep:u===Object}),a&&(e.$gmapOptions.autobindAllEvents||e.$listeners[p])&&t.addListener(p,(function(){e.$emit(p,t[d]())}))}}))};var n,r=(n=zd)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(Bd);Bd.getPropsValues,Bd.bindProps;var Hd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}}})),Gd=r(Hd),Wd=o((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.entries(e).map((function(e){var t=n(e,2),r=t[0],o=t[1],i={};return"type"in o&&(i.type=o.type),"default"in o&&(i.default=o.default),"required"in o&&(i.required=o.required),[r,i]})).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return e[o]=i,e}),{})}}));r(Wd);var Zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.mappedProps,i=e.name,a=e.ctr,d=e.ctrArgs,p=e.events,h=e.beforeCreate,f=e.afterCreate,g=e.props,m=c(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),y="$".concat(i,"Promise"),v="$".concat(i,"Object");return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),u({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[r.default],props:u({},g,{},(0,o.default)(t)),render:function(){return""},provide:function(){var e=this,r=this.$mapPromise.then((function(n){e.$map=n;var r=u({},e.options,{map:n},(0,Bd.getPropsValues)(e,t)),o=(r.options,c(r,["options"]));if(h){var i=h.bind(e)(o);if(i instanceof Promise)return i.then((function(){return{options:o}}))}return{options:o}})).then((function(r){var o,i,u=r.options,l=a();return e[v]=d?new((o=Function.prototype.bind).call.apply(o,[l,null].concat(function(e){if(Array.isArray(e))return s(e)}(i=d(u,(0,Bd.getPropsValues)(e,g||{})))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):new l(u),(0,Bd.bindProps)(e,e[v],t),(0,n.default)(e,e[v],p),f&&f.bind(e)(e[v]),e[v]}));return this[y]=r,l({},y,r)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)};var n=i(qd),r=i(Hd),o=i(Wd);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}}));r(Zd);var Kd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={url:{twoWay:!1,type:String},map:{twoWay:!0,type:Object}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],name:"kmlLayer",ctr:function(){return google.maps.KmlLayer}});t.default=i}));r(Kd);var Yd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},i=(0,r.default)({mappedProps:o,events:[],name:"heatmapLayer",ctr:function(){return google.maps.visualization.HeatmapLayer}});t.default=i}));r(Yd);var Xd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default: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):""},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n}))}});t.default=i})),Jd=r(Xd),ep=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},a=(0,r.default)({mappedProps:s,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),i=[],s=function(){e.$emit("path_changed",e.$polylineObject.getPath())};i.push([r,r.addListener("insert_at",s)]),i.push([r,r.addListener("remove_at",s)]),i.push([r,r.addListener("set_at",s)]),t=function(){i.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=a}));r(ep);var tp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},u=(0,r.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:a,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){if(!e.path){var t=e;t.path;e=s(t,["path"])}if(!e.paths){var n=e;n.paths;e=s(n,["paths"])}},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var i=function(){t.$emit("paths_changed",e.getPaths())},s=[],a=e.getPaths(),u=0;u<a.getLength();u+=1){var l=a.getAt(u);s.push([l,l.addListener("insert_at",i)]),s.push([l,l.addListener("remove_at",i)]),s.push([l,l.addListener("set_at",i)])}s.push([a,a.addListener("insert_at",i)]),s.push([a,a.addListener("remove_at",i)]),s.push([a,a.addListener("set_at",i)]),n=function(){s.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var i=e.getPath(),s=[],a=function(){t.$emit("path_changed",e.getPath())};s.push([i,i.addListener("insert_at",a)]),s.push([i,i.addListener("remove_at",a)]),s.push([i,i.addListener("set_at",a)]),n=function(){s.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=u}));r(tp);var np=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(np);var rp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};var o={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(rp);var op,ip=(op=require("../components-implementation/drawing-manager")).default||op;ip.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},ip.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var sp=Object.freeze({__proto__:null,default:ip}),ap=function(e){return e.default||e}(require("../components-implementation/info-window")),up={ref:"flyaway"};ap.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",up,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},ap.__file="node_modules/gmap-vue/dist/components/info-window.vue";var lp=Object.freeze({__proto__:null,default:ap}),cp=function(e){return e.default||e}(require("../components-implementation/map")),dp={class:"vue-map-container"},pp={ref:"vue-map",class:"vue-map"},hp={class:"vue-map-hidden"};function fp(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}fp("\n.vue-map-container {\n position: relative;\n}\n.vue-map-container .vue-map {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n.vue-map-hidden {\n display: none;\n}\n"),cp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",dp,[t.createElementVNode("div",pp,null,512),t.createElementVNode("div",hp,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},cp.__file="node_modules/gmap-vue/dist/components/map.vue";var gp=Object.freeze({__proto__:null,default:cp}),mp=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),yp={class:"vue-street-view-pano-container"},vp={ref:"vue-street-view-pano",class:"vue-street-view-pano"};fp("\n.vue-street-view-pano-container {\n position: relative;\n}\n.vue-street-view-pano-container .vue-street-view-pano {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n"),mp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",yp,[t.createElementVNode("div",vp,null,512),t.renderSlot(e.$slots,"default")])},mp.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var bp=Object.freeze({__proto__:null,default:mp}),Cp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}}));r(Cp);var Op=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Cp)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},s={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=(0,Bd.getPropsValues)(e,i);if(e.selectFirstOnEnter&&(0,r.default)(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=o(i,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,Bd.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.autoCompleter.getPlace())}))}))},created:function(){throw new Error("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:i};t.default=s})),_p=r(Op),Sp=["textContent"],wp=["placeholder"];_p.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("label",null,[t.createElementVNode("span",{textContent:t.toDisplayString(e.label)},null,8,Sp),t.createElementVNode("input",{type:"text",placeholder:e.placeholder,class:t.normalizeClass(e.className),ref:"input"},null,10,wp)])},_p.__file="node_modules/gmap-vue/dist/components/place-input.vue";var $p=Object.freeze({__proto__:null,default:_p,__moduleExports:Op}),Ep=function(e){return e.default||e}(require("../components-implementation/autocomplete")),Tp={key:0};Ep.render=function(e,n,r,o,i,s){return e.$scopedSlots.input?(t.openBlock(),t.createElementBlock("span",Tp,[t.renderSlot(e.$slots,"input",{attrs:e.$attrs,listeners:e.$listeners,ref:e.input})])):e.$scopedSlots.input?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("input",t.mergeProps({key:1,ref:"input"},e.$attrs,t.toHandlers(e.$listeners,!0)),null,16))},Ep.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var Pp=Object.freeze({__proto__:null,default:Ep}),Ip=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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)}}}));r(Ip);var kp=i(sp),Ap=i(lp),Rp=i(gp),xp=i(bp),Lp=i($p),Mp=i(Pp),jp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e,t){t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({installComponents:!0,autobindAllEvents:!1},t),S=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,S)(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=y,this.$gmapOptions=t,this.$gmapApiPromiseLazy=v}}),e.$gmapDefaultResizeBus=y,e.$gmapApiPromiseLazy=v,t.installComponents&&(e.component("GmapMap",h.default),e.component("GmapMarker",s.default),e.component("GmapInfoWindow",p.default),e.component("GmapHeatmapLayer",i.default),e.component("GmapKmlLayer",o.default),e.component("GmapPolyline",a.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",l.default),e.component("GmapRectangle",c.default),e.component("GmapDrawingManager",d.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",g.default),e.component("GmapStreetViewPanorama",f.default))},t.gmapApi=function(){return S.gmapApi&&window.google},Object.defineProperty(t,"loadGmapApi",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"KmlLayer",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HeatmapLayer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"DrawingManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"InfoWindow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"StreetViewPanorama",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PlaceInput",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Autocomplete",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"MapElementMixin",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"MapElementFactory",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"MountableMixin",{enumerable:!0,get:function(){return b.default}}),t.Cluster=void 0;var n=C(Fd),r=C(Ud),o=C(Kd),i=C(Yd),s=C(Xd),a=C(ep),u=C(tp),l=C(np),c=C(rp),d=C(kp),p=C(Ap),h=C(Rp),f=C(xp),g=C(Lp),m=C(Mp),y=C(Hd),v=C(Zd),b=C(Ip);function C(e){return e&&e.__esModule?e:{default:e}}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Cluster=void 0;var S=null})),Qp=r(jp),Vp=jp.install,Dp=jp.gmapApi,Fp=jp.Cluster,Np=Object.freeze({__proto__:null,default:Qp,__moduleExports:jp,install:Vp,gmapApi:Dp,Cluster:Fp}),Up=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}}));r(Up);for(var qp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(qd),r=a(Ip),o=a(Up),i=a(zd),s=a(Wd);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},h=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],f=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){var e;this.$mapObject&&(e=this.$mapObject)[t].apply(e,arguments)},e}),{}),g={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()}},m={mixins:[r.default],props:(0,s.default)(p),provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},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"],r=c({},e.options,{},(0,Bd.getPropsValues)(e,p)),s=(r.options,u(r,["options"])),a=e.getRecycleKey();return e.options.recycle&&window[a]?(t.appendChild(window[a].div),e.$mapObject=window[a].map,e.$mapObject.setOptions(s)):(e.$mapObject=new google.maps.Map(t,s),window[a]={map:e.$mapObject}),(0,Bd.bindProps)(e,e.$mapObject,p),(0,n.default)(e,e.$mapObject,h),(0,o.default)((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()})),(0,i.default)(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:c({},g,{},f,{getRecycleKey:function(){return this.options.recycle?"__gmc__"+this.options.recycle:"__gmc__"}})};t.default=m}))),zp="0123456789bcdefghjkmnpqrstuvwxyz",Bp={},Hp=0;Hp<zp.length;Hp++)Bp[zp.charAt(Hp)]=Hp;var Gp=[0,5,7,8,11,12,13,15,16,17,18],Wp=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Gp[i]}else void 0===n&&(n=9);for(var s,a=[],u=0,l=0,c=0,d=90,p=-90,h=180,f=-180;a.length<n;)if(l%2==0?t>(s=(h+f)/2)?(c=1+(c<<1),f=s):(c=0+(c<<1),h=s):e>(s=(d+p)/2)?(c=1+(c<<1),p=s):(c=0+(c<<1),d=s),l++,5===++u){var g=zp[c];a.push(g),u=0,c=0}return a.join("")},Zp=function(e,t,n){n=n||52;for(var r,o=0,i=90,s=-90,a=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(a+u)/2)?(l+=1,u=r):a=r:e>(r=(i+s)/2)?(l+=1,s=r):i=r,o++;return l},Kp=function(e){for(var t,n=!0,r=90,o=-90,i=180,s=-180,a=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();a=Bp[c];for(var d=4;d>=0;d--){var p=a>>d&1;n?(t=(i+s)/2,1===p?s=t:i=t):(t=(r+o)/2,1===p?o=t:r=t),n=!n}}return[o,s,r,i]},Yp=function(e,t){for(var n=90,r=-90,o=180,i=-180,s=0,a=(t=t||52)/2,u=0;u<a;u++)s=Xp(e,2*(a-u)-1),0===Xp(e,2*(a-u)-2)?n=(n+r)/2:r=(n+r)/2,0===s?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Xp(e,t){return e/Math.pow(2,t)&1}var Jp=function(e){var t=Kp(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}}},eh=function(e,t){var n=Yp(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}}},th=function(e,t){var n=Jp(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=rh(o),r=oh(r),Wp(r,o,e.length)},nh=function(e,t,n){var r=eh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=rh(i),o=oh(o),Zp(o,i,n)};function rh(e){return e>180?e%180-180:e<-180?180+e%180:e}function oh(e){return e>90?90:e<-90?-90:e}var ih={ENCODE_AUTO:"auto",encode:Wp,encode_uint64:Zp,encode_int:Zp,decode:Jp,decode_int:eh,decode_uint64:eh,decode_bbox:Kp,decode_bbox_uint64:Yp,decode_bbox_int:Yp,neighbor:th,neighbor_int:nh,neighbors:function(e){var t,n,r=e.length,o=Jp(e),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*a,n=rh(n=s+o*u),t=oh(t),Wp(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=eh(e,t=t||52),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*a,r=rh(r=s+o*u),n=oh(n),Zp(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=Wp(e,t,o=o||9),s=Wp(n,r,o),a=Jp(i),u=2*a.error.latitude,l=2*a.error.longitude,c=Kp(i),d=Kp(s),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(th(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Zp(e,t,o=o||52),s=Zp(n,r,o),a=eh(i,o),u=2*a.error.latitude,l=2*a.error.longitude,c=Yp(i,o),d=Yp(s,o),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(nh(i,[g,m],o));return f}},sh=ot.setStreaming,ah=ot.setQueryOptions,uh=ot.updateQuery,lh=ot.loadMore,ch=ot.setValue,dh=ot.updateComponentProps,ph=ot.setDefaultQuery,hh=ot.recordResultClick,fh=ot.setMapData,gh=st.isEqual,mh=st.getQueryOptions,yh=st.getClassName,vh=st.parseHits,bh=st.getOptionsFromQuery,Ch=st.getResultStats,Oh={lat:37.7749,lng:122.4194},_h={width:"100%",height:"100vh",position:"relative"};function Sh(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return at({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function wh(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=ih.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var $h={name:"ReactiveMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,autoCenter:kt.bool,getMapRef:kt.func.isRequired,center:Wn.location,defaultCenter:Wn.location,defaultPin:Wn.string,defaultZoom:kt.number.def(13),defaultQuery:Wn.func,innerClass:Wn.style,loader:Wn.title,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,pages:kt.number.def(5),currentPage:kt.number.def(0),pagination:kt.bool,showMarkers:kt.bool,defaultSearchAsMove:kt.bool,showSearchAsMove:kt.bool,defaultRadius:Wn.number,unit:Wn.string,autoClosePopover:kt.bool,renderMap:kt.func.isRequired,renderPopover:kt.func,calculateMarkers:kt.func,searchAsMoveLabel:kt.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 at({},Ch(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return fr(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!br(e,t,null,this.$props)){var n=mh(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),bh(this.$defaultQuery)&&(n=at({},n,bh(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var s={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,s),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){gh(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){gh(e,t)||this.$emit("data",this.getData())},time:function(e,t){gh(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(!gh(e,t)){var r=this.promotedResults,o=this.hits,i=vh(o)||[],s=vh(r)||[],a=i;if(s.length){var u=s.map((function(e){return e._id})).filter(Boolean);u&&(a=a.filter((function(e){return!u.includes(e._id)}))),a=[].concat(s,a)}a=a.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return at({},e,((t={})[n.dataField]=wh(e[n.dataField]),t))})),this.filteredResults=this.addNoise(a),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!gh(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(Oh)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=at({},e),i=t.parseLocation(e[t.dataField]),s=JSON.stringify(i),a=n[s]||0;o[t.dataField]=a?Sh(i,a):i,r=[].concat(r,[o]),n[s]=a+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,s=0;n.forEach((function(e){if(e){var t,n,r=wh(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var a=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=a,i+=u,s+=l}})),o/=r,i/=r,s/=r;var a=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(s,u)/Math.PI,lng:180*a/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=vh(o)||[],s=vh(t)||[],a=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:s,loadMore:this.loadMore,base:a,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=at({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return hr(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=mh(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,at({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var s;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var a={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=a;var u={geo_bounding_box:(s={},s[this.dataField]=a,s)};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=mh(this.$props);this.from=e,this.loadMoreAction(this.componentId,at({},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 at({},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?dr(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:yh(this.innerClass,"checkboxContainer")||null}},[e(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:yh(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:yh(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Jn,{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},L.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},L.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=mh(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=at({},t,bh(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,s=this.center||this.defaultCenter,a=this.getArrPosition(s),u={distance:this.defaultRadius,coordinates:a.lat+", "+a.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:at({},_h,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])}},Eh=Dr(cr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:lh,setPageURL:ch,setQueryOptions:ah,setStreaming:sh,updateQuery:uh,updateComponentProps:dh,setDefaultQuery:ph,recordResultClick:hh,setMapData:fh})($h),{componentType:L.reactiveMap,internalComponent:!0});$h.install=function(e){e.component($h.name,Eh)},$h.componentType=L.reactiveMap;var Th=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function Ph(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function Ih(e){return e?e+"px":void 0}var kh=function(e){function t(t,n){var r;return(r=e.call(this)||this).cluster_=t,r.styles_=n,r.center_=null,r.div_=null,r.sums_=null,r.visible_=!1,r.style=null,r.setMap(t.getMap()),r}ut(t,e);var n=t.prototype;return n.onAdd=function(){var e,t,n=this,r=this.cluster_.getMarkerClusterer(),o=google.maps.version.split("."),i=o[0],s=o[1],a=100*parseInt(i,10)+parseInt(s,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){t=e})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){e=!0,t=!1})),a>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(e){e.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(o){if(e=!1,!t){if(google.maps.event.trigger(r,"click",n.cluster_),google.maps.event.trigger(r,"clusterclick",n.cluster_),r.getZoomOnClick()){var i=r.getMaxZoom(),s=n.cluster_.getBounds();r.getMap().fitBounds(s),setTimeout((function(){r.getMap().fitBounds(s),null!==i&&r.getMap().getZoom()>i&&r.getMap().setZoom(i+1)}),100)}o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(r,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(r,"mouseout",n.cluster_)}))},n.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.draw=function(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}},n.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},n.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+Ph({position:"absolute",top:Ih(this.anchorText_[0]),left:Ih(this.anchorText_[1]),color:this.style.textColor,"font-size":Ih(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:Ih(this.style.width),"line-height":Ih(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},n.getImageElementHtml=function(){var e=(this.style.backgroundPosition||"0 0").split(" "),t=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),r={};this.cluster_.getMarkerClusterer().getEnableRetinaIcons()?r={width:Ih(this.style.width),height:Ih(this.style.height)}:r={clip:"rect("+-1*n+"px, "+(-1*t+this.style.width)+"px, "+(-1*n+this.style.height)+"px, "+-1*t+"px)"};var o=Ph(Object.assign({position:"absolute",top:Ih(n),left:Ih(t)},r));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+o+'"/>'},n.useStyle=function(e){this.sums_=e;var t=Math.max(0,e.index-1);t=Math.min(this.styles_.length-1,t),this.style=this.styles_[t],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+t)},n.setCenter=function(e){this.center_=e},n.createCss_=function(e){return Ph({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:Ih(e.y),left:Ih(e.x),width:Ih(this.style.width),height:Ih(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},n.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x=Math.floor(t.x-this.anchorIcon_[1]),t.y=Math.floor(t.y-this.anchorIcon_[0]),t},t}(Th),Ah=function(){function e(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new kh(this,this.markerClusterer_.getStyles())}var t=e.prototype;return t.getSize=function(){return this.markers_.length},t.getMarkers=function(){return this.markers_},t.getCenter=function(){return this.center_},t.getMap=function(){return this.map_},t.getMarkerClusterer=function(){return this.markerClusterer_},t.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},t.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,n=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,r=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(n,r),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();e.isAdded=!0,this.markers_.push(e);var o=this.markers_.length,i=this.markerClusterer_.getMaxZoom();if(null!==i&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o===this.minClusterSize_)for(var s=0;s<o;s++)this.markers_[s].setMap(null);else e.setMap(null);return!0},t.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},t.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},t.updateIcon=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(null!==t&&this.map_.getZoom()>t)this.clusterIcon_.hide();else if(e<this.minClusterSize_)this.clusterIcon_.hide();else{var n=this.markerClusterer_.getStyles().length,r=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(r),this.clusterIcon_.show()}},t.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(var t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},e}(),Rh=function(e,t,n){return void 0!==e[t]?e[t]:n},xh=function(e){function t(n,r,o){var i;return void 0===r&&(r=[]),void 0===o&&(o={}),(i=e.call(this)||this).options=o,i.markers_=[],i.clusters_=[],i.listeners_=[],i.activeMap_=null,i.ready_=!1,i.ariaLabelFn=i.options.ariaLabelFn||function(){return""},i.zIndex_=i.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,i.gridSize_=i.options.gridSize||60,i.minClusterSize_=i.options.minimumClusterSize||2,i.maxZoom_=i.options.maxZoom||null,i.styles_=i.options.styles||[],i.title_=i.options.title||"",i.zoomOnClick_=Rh(i.options,"zoomOnClick",!0),i.averageCenter_=Rh(i.options,"averageCenter",!1),i.ignoreHidden_=Rh(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=Rh(i.options,"enableRetinaIcons",!1),i.imagePath_=i.options.imagePath||t.IMAGE_PATH,i.imageExtension_=i.options.imageExtension||t.IMAGE_EXTENSION,i.imageSizes_=i.options.imageSizes||t.IMAGE_SIZES,i.calculator_=i.options.calculator||t.CALCULATOR,i.batchSize_=i.options.batchSize||t.BATCH_SIZE,i.batchSizeIE_=i.options.batchSizeIE||t.BATCH_SIZE_IE,i.clusterClass_=i.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(i.batchSize_=i.batchSizeIE_),i.setupStyles_(),i.addMarkers(r,!0),i.setMap(n),i}ut(t,e);var n=t.prototype;return n.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var t=e.getMap(),n=t.minZoom||0,r=Math.min(t.maxZoom||100,t.mapTypes[t.getMapTypeId()].maxZoom),o=Math.min(Math.max(e.getMap().getZoom(),n),r);e.prevZoom_!=o&&(e.prevZoom_=o,e.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw_()}))]},n.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},n.draw=function(){},n.setupStyles_=function(){if(!(this.styles_.length>0))for(var e=0;e<this.imageSizes_.length;e++){var n=this.imageSizes_[e];this.styles_.push(t.withDefaultStyle({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:n,width:n}))}},n.fitMapToMarkers=function(e){for(var t=this.getMarkers(),n=new google.maps.LatLngBounds,r=0;r<t.length;r++)!t[r].getVisible()&&this.getIgnoreHidden()||n.extend(t[r].getPosition());this.getMap().fitBounds(n,e)},n.getGridSize=function(){return this.gridSize_},n.setGridSize=function(e){this.gridSize_=e},n.getMinimumClusterSize=function(){return this.minClusterSize_},n.setMinimumClusterSize=function(e){this.minClusterSize_=e},n.getMaxZoom=function(){return this.maxZoom_},n.setMaxZoom=function(e){this.maxZoom_=e},n.getZIndex=function(){return this.zIndex_},n.setZIndex=function(e){this.zIndex_=e},n.getStyles=function(){return this.styles_},n.setStyles=function(e){this.styles_=e},n.getTitle=function(){return this.title_},n.setTitle=function(e){this.title_=e},n.getZoomOnClick=function(){return this.zoomOnClick_},n.setZoomOnClick=function(e){this.zoomOnClick_=e},n.getAverageCenter=function(){return this.averageCenter_},n.setAverageCenter=function(e){this.averageCenter_=e},n.getIgnoreHidden=function(){return this.ignoreHidden_},n.setIgnoreHidden=function(e){this.ignoreHidden_=e},n.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},n.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},n.getImageExtension=function(){return this.imageExtension_},n.setImageExtension=function(e){this.imageExtension_=e},n.getImagePath=function(){return this.imagePath_},n.setImagePath=function(e){this.imagePath_=e},n.getImageSizes=function(){return this.imageSizes_},n.setImageSizes=function(e){this.imageSizes_=e},n.getCalculator=function(){return this.calculator_},n.setCalculator=function(e){this.calculator_=e},n.getBatchSizeIE=function(){return this.batchSizeIE_},n.setBatchSizeIE=function(e){this.batchSizeIE_=e},n.getClusterClass=function(){return this.clusterClass_},n.setClusterClass=function(e){this.clusterClass_=e},n.getMarkers=function(){return this.markers_},n.getTotalMarkers=function(){return this.markers_.length},n.getClusters=function(){return this.clusters_},n.getTotalClusters=function(){return this.clusters_.length},n.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},n.addMarkers=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},n.pushMarkerTo_=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready_&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},n.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},n.removeMarkers=function(e,t){for(var n=!1,r=0;r<e.length;r++){var o=this.removeMarker_(e[r]);n=n||o}return!t&&n&&this.repaint(),n},n.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n=0;n<this.markers_.length;n++)if(e===this.markers_[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},n.repaint=function(){var e=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},n.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),r=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),o=t.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var i=t.fromLatLngToDivPixel(r);i.x-=this.gridSize_,i.y+=this.gridSize_;var s=t.fromDivPixelToLatLng(o),a=t.fromDivPixelToLatLng(i);return e.extend(s),e.extend(a),e},n.redraw_=function(){this.createClusters_(0)},n.resetViewport_=function(e){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.markers_.length;n++){var r=this.markers_[n];r.isAdded=!1,e&&r.setMap(null)}},n.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},n.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.addToClosestCluster_=function(e){for(var t=4e4,n=null,r=0;r<this.clusters_.length;r++){var o=this.clusters_[r],i=o.getCenter();if(i){var s=this.distanceBetweenPoints_(i,e.getPosition());s<t&&(t=s,n=o)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var a=new Ah(this);a.addMarker(e),this.clusters_.push(a)}},n.createClusters_=function(e){var t=this;if(this.ready_){var n;0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var r=this.getExtendedBounds(n),o=Math.min(e+this.batchSize_,this.markers_.length),i=e;i<o;i++){var s=this.markers_[i];!s.isAdded&&this.isMarkerInBounds_(s,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}if(o<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters_(o)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var a=0;a<this.clusters_.length;a++)this.clusters_[a].updateIcon()}}},t.CALCULATOR=function(e,t){for(var n=0,r=e.length,o=r;0!==o;)o=Math.floor(o/10),n++;return n=Math.min(n,t),{text:r.toString(),index:n,title:""}},t.withDefaultStyle=function(e){return Object.assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:e.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},e)},t}(Th);xh.BATCH_SIZE=2e3,xh.BATCH_SIZE_IE=500,xh.IMAGE_PATH="../images/m",xh.IMAGE_EXTENSION="png",xh.IMAGE_SIZES=[53,56,66,78,90];var Lh,Mh,jh,Qh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(xh),r=o(Zd);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},averageCenter:{type:Boolean,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},clusterClass:{type:String,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},a=(0,r.default)({mappedProps:s,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===n.default)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");return n.default},ctrArgs:function(e){return[e.map,[],i(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=this,n=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};Object.keys(s).forEach((function(e){s[e].twoWay&&t.$on("".concat(e.toLowerCase(),"_changed"),n)}))},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});t.default=a}))),Vh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},s=(0,r.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise){var n=e;n.position;return e=o(n,["position"]),this.$markerPromise.then((function(e){return t.$markerObject=e,e}))}},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}});t.default=s}))),Dh={name:"InfoWindowWrapper",props:{id:kt.string,renderPopover:kt.func,infoWindowProps:kt.object,events:kt.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(Vh,{ref:this.id+"-Info-Window",props:at({},this.infoWindowProps),on:at({},n)},[e("div",[t(this.handleClose)])])}},Fh={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:kt.func.isRequired,handleMouseOver:kt.func,handleFocus:kt.func,handleMouseOut:kt.func,handleBlur:kt.func,handleClick:kt.func},data:function(){return{opacity:.01}},mixins:[Gd],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}ut(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},Nh=Jt("div")(Lh||(Lh=dt(["\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"]))),Uh=Jt("div")(Mh||(Mh=dt(["\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"]))),qh=Wt(jh||(jh=dt(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),zh=ot.recordResultClick,Bh={name:"GoogleMapMarker",props:{index:kt.number,marker:kt.object.isRequired,getPosition:kt.func.isRequired,defaultPin:kt.string,renderItem:kt.func,setOpenMarkers:kt.func.isRequired,handlePreserveCenter:kt.func.isRequired,autoClosePopover:kt.bool,openMarkers:kt.object,renderPopover:kt.func,highlightMarkerOnHover:kt.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,s=n.autoClosePopover,a=n.handlePreserveCenter,u=i._id;r(s?((e={})[u]=!0,e):at({},o,((t={})[u]=!0,t))),a(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,s=n._id,a=(i[s],ct(i,[s].map(pt)));t(r?{}:a),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,s=i.getPosition,a=i.renderPopover,u=i.openMarkers;return t&&(o={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Dh,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return a({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,s=n.renderPopover,a=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Fh,{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:qh}},[t(Nh,[c.label]),t(Uh),s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});if(!("icon"in c))return t(Fh,{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:qh}},["function"==typeof c.custom?c.custom(u):c.custom,s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Jd,{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:at({},a)},[s?this.renderPopoverClick(u):null])}},Hh=cr((function(){return null}),{recordResultClick:zh})(Bh),Gh={name:"GoogleMapMarkers",props:{resultsToRender:kt.array,getPosition:kt.func,renderItem:kt.func,renderClusterPopover:kt.func,defaultPin:kt.string,autoClosePopover:kt.bool,handlePreserveCenter:kt.func,renderPopover:kt.func,markerProps:kt.object,clusterProps:kt.object,showMarkerClusters:kt.bool,highlightMarkerOnHover:kt.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(Qh,{props:at({},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"},[n.map((function(n,r){return t(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))]),this.clickedCluster&&this.renderClusterPopover?t(Dh,{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(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))])}},Wh={name:"ReactiveGoogleMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,defaultQuery:kt.func,loader:Wn.title,defaultZoom:kt.number.def(13),react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,mapProps:kt.object,showMarkers:kt.bool.def(!0),showMarkerClusters:kt.bool.def(!1),searchAsMove:kt.bool.def(!1),searchAsMoveLabel:kt.string,markerProps:kt.object,clusterProps:kt.object,renderItem:kt.func,showSearchAsMove:kt.bool.def(!0),autoClosePopover:kt.bool,pagination:kt.bool,defaultPin:kt.string,autoCenter:kt.bool,defaultCenter:Wn.location,center:Wn.location,defaultRadius:Wn.number,unit:Wn.string,pages:kt.number.def(5),calculateMarkers:kt.func,highlightMarkerOnHover:kt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,s=e.handleOnDragEnd,a=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,d=e.autoClosePopover,p=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(qp,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:at({},this.mapProps),on:{zoom_changed:i,dragend:s,idle:a}},[this.showMarkers?h(Gh,{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:p,autoClosePopover:d,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:at({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(Eh,Jr([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(Wh.name,Wh),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Np,{load:{key:t.key,libraries:"places"},installComponents:!1})}};Wh.componentType=L.reactiveMap;var Zh=["aggs","size"],Kh=["query"],Yh=["query"],Xh=[L.numberBox,L.ratingsFilter],Jh=[L.reactiveList,L.reactiveMap];function ef(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var tf,nf,rf=function(e){var t=e.theme;return Wt(tf||(tf=dt(["\n\tcolor: ",";\n"])),t.colors.alertColor)},of=Jt("div")(nf||(nf=dt(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&rf})),sf=st.getClassName,af=st.isEqual,uf={name:"RangeInput",components:{RangeSlider:md},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Wn.string,default:""},defaultValue:Wn.range,validateRange:Wn.func,value:Wn.range,dataField:Wn.stringRequired,innerClass:Wn.style,range:{types:Wn.range,default:function(){return{start:0,end:10}}},rangeLabels:Wn.rangeLabels,stepValue:Wn.number,componentStyle:Wn.style,componentId:Wn.stringRequired,includeNullValues:kt.bool,beforeValueChange:Wn.func,customQuery:Wn.func,data:Wn.data,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!af(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=at({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=at({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){af(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,s=t.componentId,a=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,d=t.includeNullValues,p=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,C=t.URLParams,O=t.sliderOptions,_=t.nestedField;return e(sa,{style:l,class:n},[e(md,{attrs:{componentId:s,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:d,beforeValueChange:p,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:C,sliderOptions:O,nestedField:_},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Io,{class:sf(a,"input-container")||""},[e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":s+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.start})}),!this.isStartValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])]),e(Io,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":s+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.end})}),!this.isEndValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])])])])}},lf=Dr(cr((function(e){return{themePreset:e.config.themePreset}}),{})(uf),{componentType:L.rangeInput});uf.install=function(e){e.component(uf.name,lf)},uf.componentType=L.rangeInput;var cf=[Yo,Yc,od,Hi,ru,$u,Wu,sl,Lc,qc,gd,Rd,vc,$c,ic,Ml,Zl,Vd,uf];function df(e){cf.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&df(window.Vue);var pf={version:"1.16.0-alpha.62",install:df};e.DataSearch=ru,e.DynamicRangeSlider=Rd,e.MultiDropdownList=Zl,e.MultiList=sl,e.MultiRange=qc,e.RangeInput=uf,e.RangeSlider=gd,e.ReactiveBase=Hi,e.ReactiveComponent=vc,e.ReactiveGoogleMap=Wh,e.ReactiveList=Yo,e.ResultCard=Yc,e.ResultList=od,e.SearchBox=$u,e.SelectedFilters=$c,e.SingleDropdownList=Ml,e.SingleList=Wu,e.SingleRange=Lc,e.StateProvider=Vd,e.ToggleButton=ic,e.default=pf,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,s=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,a=at({},n.enableAppbase&&at({"X-Search-Client":"ReactiveSearch Vue"},!1===s&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:a,analyticsConfig:n.appbaseConfig||null},l=xi(u),c=[],d={},p={},h={},f={},g={},m=[],y={},v=[],b={},C={},O={},_={},w={},$={},E={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){M.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Jh.includes(n),s=e.componentId+"__internal",a=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;Xh.includes(n)&&(m=!1),d=z(d,{type:"SET_VALUE",component:e.componentId,label:a,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(w[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&($[e.componentId]=e.defaultQuery(l,r));var y={};e&&e.source.generateQueryOptions&&(y=at({},y,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},C=b.aggs,O=b.size,_=ct(b,Zh);if(C&&Object.keys(C).length&&(o=!0,y=at({},y,{aggs:C,size:void 0===O?100:O})),_&&Object.keys(_).length||v&&Object.keys(v).length){_||(_={}),v||(v={});var S=at({},_,v,{size:O});if(o&&(S=at({},_,v)),i){var P=e.currentPage?e.currentPage-1:0;d[e.componentId]&&d[e.componentId].value&&(P=d[e.componentId].value-1||0);var k=e.size||10,A=P*k;r.from=A,S=at({},S,v,{size:k,from:A})}y=at({},y,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Pe(x,s)),g=T(g,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!je(e.componentType)){var L=function(e,t){var n=ef(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},j=L.query,Q=ct(L,Kh);p=I(p,{type:"SET_QUERY",component:s,query:j}),f=R(f,{type:"SET_QUERY_OPTIONS",component:s,options:at({},y,Q)})}var V=function(e,t){var n=ef(t,e);if(e.customQuery){var r=e.customQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ct(V,Yh),N=D;p=I(p,{type:"SET_QUERY",component:e.componentId,query:N}),f=R(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:at({},F)}),r.componentType=n,E[e.componentId]=r})),_={components:c,dependencyTree:g,queryList:p,queryOptions:f,selectedValues:d,internalValues:{},props:E,customQueries:w,defaultQueries:$},e.forEach((function(e){var t=Te(e.componentId,g,p,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var s;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var a=at({query:at({},r)},o,f[e.componentId]);if(h=at({},h,((s={})[e.componentId]=a,s)),n.enableAppbase){var l,c=Me(e.componentId,Le(_,e.componentId,f&&Object.keys(f[e.componentId]).length?{from:f[e.componentId].from}:null));if(c)y=at({},y,((l={})[e.componentId]=c,l),xe(_,e.componentId,v))}else{var d=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:d},a])}}})),_.queryLog=h;var P=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},k=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){P(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=at({},C,((o={})[t]=e.aggregations,o)),O=se(O,{type:S,aggregations:e.aggregations,append:!1}));b=at({},b,((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(){_=at({},_,{hits:b,aggregations:C}),r(_)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Ge(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){k(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var A={};u.analyticsConfig&&(A.recordAnalytics=Fe(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,A.userId=Fe(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,A.enableQueryRules=Fe(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,A.customEvents=Fe(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,A).then((function(e){!function(e){var t={},n={},o={},i={},s={},a=v.map((function(r){return new Promise((function(a,u){P(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return at({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=at({},C,((c={})[r]=u.aggregations,c));s[r]=e._timestamp,b=at({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),a()}})).catch((function(e){return u(e)}))}))}));Promise.all(a).then((function(){_=at({},_,{hits:b,timestamp:s,aggregations:C,compositeAggregations:O,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){k(e)})).catch((function(e){return o(e)}))}))},e.install=df,e.version="1.16.0-alpha.62",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
37
37
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|