@appbaseio/reactivesearch-vue 1.33.0 → 1.33.2

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.
Files changed (91) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +1916 -6072
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +3 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{Button-0673191e.js → Button-841fd06d.js} +1 -7
  6. package/dist/cjs/{CancelSvg-9f258f4f.js → CancelSvg-220a7cc3.js} +24 -58
  7. package/dist/cjs/{Card-642547a8.js → Card-240f283d.js} +2 -2
  8. package/dist/cjs/{ComponentWrapper-981ab977.js → ComponentWrapper-9318cece.js} +21 -41
  9. package/dist/cjs/{Container-daf30918.js → Container-e699ea95.js} +1 -1
  10. package/dist/cjs/{DataSearch-708b183d.js → DataSearch-99a6a2e8.js} +121 -293
  11. package/dist/cjs/DataSearch.js +11 -11
  12. package/dist/cjs/{DropDown-c479bbb0.js → DropDown-8984b544.js} +27 -48
  13. package/dist/cjs/DynamicRangeSlider.js +44 -93
  14. package/dist/cjs/{Flex-aa517a13.js → Flex-ddd7cb6b.js} +1 -3
  15. package/dist/cjs/{FormControlList-c195a592.js → FormControlList-bbb5cd24.js} +1 -3
  16. package/dist/cjs/{Input-e6603a7e.js → Input-ead4cd84.js} +14 -16
  17. package/dist/cjs/{ListItem-8c9e0d68.js → ListItem-5088bd6a.js} +2 -3
  18. package/dist/cjs/MultiDropdownList.js +41 -102
  19. package/dist/cjs/MultiList.js +35 -98
  20. package/dist/cjs/MultiRange.js +20 -52
  21. package/dist/cjs/{Pagination-3d73e1b3.js → Pagination-07f4dbad.js} +10 -30
  22. package/dist/cjs/{PreferencesConsumer-7be03476.js → PreferencesConsumer-5d67b486.js} +13 -16
  23. package/dist/cjs/RangeInput.js +36 -52
  24. package/dist/cjs/RangeSlider.js +24 -48
  25. package/dist/cjs/ReactiveBase.js +34 -79
  26. package/dist/cjs/{ReactiveComponent-5ff98cce.js → ReactiveComponent-805201c6.js} +118 -301
  27. package/dist/cjs/ReactiveComponent.js +20 -20
  28. package/dist/cjs/ReactiveGoogleMap.js +167 -353
  29. package/dist/cjs/ReactiveList.js +88 -176
  30. package/dist/cjs/ResultCard.js +10 -18
  31. package/dist/cjs/ResultList.js +13 -24
  32. package/dist/cjs/SelectedFilters.js +16 -34
  33. package/dist/cjs/SingleDropdownList.js +35 -75
  34. package/dist/cjs/SingleList.js +29 -75
  35. package/dist/cjs/SingleRange.js +17 -40
  36. package/dist/cjs/StateProvider.js +6 -26
  37. package/dist/cjs/{Title-1de7d0f4.js → Title-16042ea0.js} +1 -1
  38. package/dist/cjs/ToggleButton.js +20 -58
  39. package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
  40. package/dist/cjs/{index-08f8dfa3.js → index-30126fd0.js} +39 -75
  41. package/dist/cjs/index.js +20 -21
  42. package/dist/cjs/initReactivesearch.js +49 -120
  43. package/dist/cjs/install.js +20 -20
  44. package/dist/cjs/{ssr-3027b848.js → ssr-f2fc1bf6.js} +1 -4
  45. package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
  46. package/dist/cjs/version.js +1 -1
  47. package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-7cfc2f98.js} +6 -11
  48. package/dist/es/{Button-35aa984e.js → Button-153cd885.js} +1 -7
  49. package/dist/es/{CancelSvg-4cfae5fd.js → CancelSvg-e40552a5.js} +24 -58
  50. package/dist/es/{Card-450683f1.js → Card-19ad6d90.js} +2 -2
  51. package/dist/es/{ComponentWrapper-d5e814a4.js → ComponentWrapper-240450cc.js} +21 -41
  52. package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +1 -1
  53. package/dist/es/{DataSearch-5376d39a.js → DataSearch-20f0d8f1.js} +121 -293
  54. package/dist/es/DataSearch.js +11 -11
  55. package/dist/es/{DropDown-05a644a5.js → DropDown-28ddce07.js} +27 -48
  56. package/dist/es/DynamicRangeSlider.js +44 -93
  57. package/dist/es/{Flex-1f0795c3.js → Flex-7c177a10.js} +1 -3
  58. package/dist/es/{FormControlList-c22d64f6.js → FormControlList-99797d0a.js} +1 -3
  59. package/dist/es/{Input-7a2a9fac.js → Input-c09c0b56.js} +14 -16
  60. package/dist/es/{ListItem-cad14c5e.js → ListItem-07888a65.js} +2 -3
  61. package/dist/es/MultiDropdownList.js +41 -102
  62. package/dist/es/MultiList.js +35 -98
  63. package/dist/es/MultiRange.js +20 -52
  64. package/dist/es/{Pagination-af9de08f.js → Pagination-28e56c5c.js} +10 -30
  65. package/dist/es/{PreferencesConsumer-c30605fe.js → PreferencesConsumer-bc097ebb.js} +13 -16
  66. package/dist/es/RangeInput.js +36 -52
  67. package/dist/es/RangeSlider.js +24 -48
  68. package/dist/es/ReactiveBase.js +34 -79
  69. package/dist/es/{ReactiveComponent-ee01562d.js → ReactiveComponent-dd85aa9c.js} +118 -301
  70. package/dist/es/ReactiveComponent.js +20 -20
  71. package/dist/es/ReactiveGoogleMap.js +167 -353
  72. package/dist/es/ReactiveList.js +88 -176
  73. package/dist/es/ResultCard.js +10 -18
  74. package/dist/es/ResultList.js +13 -24
  75. package/dist/es/SelectedFilters.js +16 -34
  76. package/dist/es/SingleDropdownList.js +35 -75
  77. package/dist/es/SingleList.js +29 -75
  78. package/dist/es/SingleRange.js +17 -40
  79. package/dist/es/StateProvider.js +6 -26
  80. package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +1 -1
  81. package/dist/es/ToggleButton.js +20 -58
  82. package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
  83. package/dist/es/{index-99c5f9c9.js → index-0444a498.js} +39 -75
  84. package/dist/es/index.js +20 -21
  85. package/dist/es/initReactivesearch.js +49 -120
  86. package/dist/es/install.js +20 -20
  87. package/dist/es/{ssr-b2c0b401.js → ssr-03607d84.js} +1 -4
  88. package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
  89. package/dist/es/version.js +1 -1
  90. package/dist/es/{vueTypes-b8146772.js → vueTypes-8986b709.js} +6 -11
  91. package/package.json +1 -1
@@ -5,21 +5,21 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
5
5
  var configureStore = require('@appbaseio/reactivecore');
6
6
  var configureStore__default = _interopDefault(configureStore);
7
7
  var constants = require('@appbaseio/reactivecore/lib/utils/constants');
8
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
8
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
9
9
  var VueTypes = _interopDefault(require('vue-types'));
10
10
  var helper = require('@appbaseio/reactivecore/lib/utils/helper');
11
11
  var styled = require('@appbaseio/vue-emotion');
12
12
  var styled__default = _interopDefault(styled);
13
- var vueTypes = require('./vueTypes-727b7c63.js');
14
- var index = require('./index-08f8dfa3.js');
15
- var ComponentWrapper = require('./ComponentWrapper-981ab977.js');
16
- var PreferencesConsumer = require('./PreferencesConsumer-7be03476.js');
17
- var Title = require('./Title-1de7d0f4.js');
18
- var Flex = require('./Flex-aa517a13.js');
13
+ var vueTypes = require('./vueTypes-7cfc2f98.js');
14
+ var index = require('./index-30126fd0.js');
15
+ var ComponentWrapper = require('./ComponentWrapper-9318cece.js');
16
+ var PreferencesConsumer = require('./PreferencesConsumer-5d67b486.js');
17
+ var Title = require('./Title-16042ea0.js');
18
+ var Flex = require('./Flex-ddd7cb6b.js');
19
19
  var hotkeys = _interopDefault(require('hotkeys-js'));
20
- var CancelSvg = require('./CancelSvg-9f258f4f.js');
21
- var Input = require('./Input-e6603a7e.js');
22
- var Container = require('./Container-daf30918.js');
20
+ var CancelSvg = require('./CancelSvg-220a7cc3.js');
21
+ var Input = require('./Input-ead4cd84.js');
22
+ var Container = require('./Container-e699ea95.js');
23
23
  var Highlight = _interopDefault(require('vue-highlight-words'));
24
24
 
25
25
  var _templateObject;
@@ -45,9 +45,9 @@ var SuggestionWrapper = {
45
45
  render: function render() {
46
46
  var h = arguments[0];
47
47
  var _this$$props = this.$props,
48
- themePreset = _this$$props.themePreset,
49
- innerClass = _this$$props.innerClass,
50
- innerClassName = _this$$props.innerClassName;
48
+ themePreset = _this$$props.themePreset,
49
+ innerClass = _this$$props.innerClass,
50
+ innerClassName = _this$$props.innerClassName;
51
51
  return h("div", {
52
52
  "class": Input.noSuggestions(themePreset) + " " + getClassName(innerClass, innerClassName || '')
53
53
  }, [h("li", [this.$scopedSlots["default"]()])]);
@@ -71,20 +71,20 @@ var SuggestionItem = {
71
71
  render: function render() {
72
72
  var h = arguments[0];
73
73
  var _this$suggestion = this.suggestion,
74
- label = _this$suggestion.label,
75
- value = _this$suggestion.value,
76
- title = _this$suggestion.title,
77
- description = _this$suggestion.description,
78
- image = _this$suggestion.image,
79
- isPredictiveSuggestion = _this$suggestion.isPredictiveSuggestion,
80
- _suggestion_type = _this$suggestion._suggestion_type,
81
- _category = _this$suggestion._category;
82
-
74
+ label = _this$suggestion.label,
75
+ value = _this$suggestion.value,
76
+ title = _this$suggestion.title,
77
+ description = _this$suggestion.description,
78
+ image = _this$suggestion.image,
79
+ isPredictiveSuggestion = _this$suggestion.isPredictiveSuggestion,
80
+ _suggestion_type = _this$suggestion._suggestion_type,
81
+ _category = _this$suggestion._category;
83
82
  if (label) {
84
83
  // label has highest precedence
85
84
  return typeof label === 'string' ? h("div", {
86
85
  "class": "trim"
87
- }, [(_category ? false : isPredictiveSuggestion // eslint-disable-next-line
86
+ }, [(_category ? false : isPredictiveSuggestion
87
+ // eslint-disable-next-line
88
88
  || !!_suggestion_type) ? h(PredictiveSuggestion, {
89
89
  "domProps": {
90
90
  "innerHTML": label
@@ -98,7 +98,6 @@ var SuggestionItem = {
98
98
  }
99
99
  })]) : label;
100
100
  }
101
-
102
101
  if (title || image || description) {
103
102
  return h(Flex.Flex, {
104
103
  "attrs": {
@@ -154,7 +153,6 @@ var SuggestionItem = {
154
153
  }
155
154
  })])])]);
156
155
  }
157
-
158
156
  return value;
159
157
  }
160
158
  };
@@ -186,6 +184,7 @@ var SearchSvg = {
186
184
 
187
185
  var _templateObject$3;
188
186
 
187
+ // eslint-disable-next-line
189
188
  styled.injectGlobal(_templateObject$3 || (_templateObject$3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
190
189
  var MicSvg = {
191
190
  name: 'MicSvg',
@@ -233,6 +232,7 @@ var MicSvg = {
233
232
 
234
233
  var _templateObject$4;
235
234
 
235
+ // eslint-disable-next-line
236
236
  styled.injectGlobal(_templateObject$4 || (_templateObject$4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
237
237
  var MuteSvg = {
238
238
  name: 'MuteSvg',
@@ -291,6 +291,7 @@ var MuteSvg = {
291
291
 
292
292
  var _templateObject$5;
293
293
 
294
+ // eslint-disable-next-line
294
295
  styled.injectGlobal(_templateObject$5 || (_templateObject$5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
295
296
  var ListenSvg = {
296
297
  name: 'ListenSvg',
@@ -641,90 +642,71 @@ var Mic = {
641
642
  },
642
643
  handleClick: function handleClick() {
643
644
  var _this = this;
644
-
645
645
  this.results = [];
646
-
647
646
  if (window && window.SpeechRecognition) {
648
647
  var status = this.$data.status;
649
-
650
648
  if (status === STATUS.active) {
651
649
  this.status = STATUS.inactive;
652
650
  }
653
-
654
651
  var _this$$props = this.$props,
655
- handleResult = _this$$props.handleResult,
656
- onNoMatch = _this$$props.onNoMatch,
657
- onError = _this$$props.onError,
658
- lang = _this$$props.lang,
659
- getInstance = _this$$props.getInstance;
652
+ handleResult = _this$$props.handleResult,
653
+ onNoMatch = _this$$props.onNoMatch,
654
+ onError = _this$$props.onError,
655
+ lang = _this$$props.lang,
656
+ getInstance = _this$$props.getInstance;
660
657
  var _window = window,
661
- SpeechRecognition = _window.SpeechRecognition;
662
-
658
+ SpeechRecognition = _window.SpeechRecognition;
663
659
  if (this.instance && this.status !== STATUS.denied) {
664
660
  this.status = STATUS.inactive;
665
661
  this.instance.stop();
666
662
  this.instance = null;
667
663
  return;
668
664
  }
669
-
670
665
  this.instance = new SpeechRecognition();
671
666
  this.instance.continuous = true;
672
667
  this.instance.interimResults = true;
673
668
  this.instance.lang = lang;
674
-
675
669
  if (getInstance) {
676
670
  getInstance(this.instance);
677
671
  }
678
-
679
672
  this.instance.start();
680
-
681
673
  this.instance.onstart = function () {
682
674
  _this.status = STATUS.active;
683
675
  };
684
-
685
676
  this.instance.onresult = function (_ref) {
686
677
  var results = _ref.results,
687
- timeStamp = _ref.timeStamp;
688
-
678
+ timeStamp = _ref.timeStamp;
689
679
  _this.stopMic();
690
-
691
680
  if (handleResult) {
692
681
  handleResult({
693
682
  results: results,
694
683
  timeStamp: timeStamp
695
684
  });
696
685
  }
697
-
698
686
  _this.results.push({
699
687
  results: results,
700
688
  timeStamp: timeStamp
701
689
  });
702
690
  };
703
-
704
691
  this.instance.onnomatch = function (e) {
705
692
  return onNoMatch ? onNoMatch(e) : console.warn(e);
706
693
  };
707
-
708
694
  this.instance.onerror = function (e) {
709
695
  if (e.error === 'no-speech' || e.error === 'audio-capture') {
710
696
  _this.status = STATUS.inactive;
711
697
  } else if (e.error === 'not-allowed') {
712
698
  _this.status = STATUS.denied;
713
699
  }
714
-
715
700
  console.error(e);
716
-
717
701
  if (onError) {
718
702
  onError(e);
719
703
  }
720
704
  };
721
- /* Below Two methods run when Continuous is False */
722
-
723
705
 
706
+ /* Below Two methods run when Continuous is False */
724
707
  this.instance.onspeechend = function () {
725
708
  _this.status = STATUS.inactive;
726
709
  };
727
-
728
710
  this.instance.onaudioend = function () {
729
711
  _this.status = STATUS.inactive;
730
712
  };
@@ -739,7 +721,6 @@ var Mic = {
739
721
  var h = this.$createElement;
740
722
  var status = this.$data.status;
741
723
  var className = this.$props.className;
742
-
743
724
  switch (status) {
744
725
  case STATUS.active:
745
726
  return h(ListenSvg, {
@@ -750,7 +731,6 @@ var Mic = {
750
731
  "click": this.handleClick
751
732
  }
752
733
  });
753
-
754
734
  case STATUS.stopped:
755
735
  case STATUS.denied:
756
736
  return h(MuteSvg, {
@@ -761,7 +741,6 @@ var Mic = {
761
741
  "click": this.handleClick
762
742
  }
763
743
  });
764
-
765
744
  default:
766
745
  return h(MicSvg, {
767
746
  "attrs": {
@@ -781,10 +760,8 @@ var Mic = {
781
760
  },
782
761
  created: function created() {
783
762
  this.results = [];
784
-
785
763
  if (typeof window !== 'undefined') {
786
764
  window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition || null;
787
-
788
765
  if (!window.SpeechRecognition) {
789
766
  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.');
790
767
  }
@@ -792,11 +769,9 @@ var Mic = {
792
769
  },
793
770
  render: function render() {
794
771
  var h = arguments[0];
795
-
796
772
  if (this.hasCustomRenderer) {
797
773
  return this.getComponent();
798
774
  }
799
-
800
775
  return h(CancelSvg.IconWrapper, [this.Icon]);
801
776
  }
802
777
  };
@@ -815,13 +790,11 @@ var CustomSvg = {
815
790
  },
816
791
  render: function render() {
817
792
  var h = arguments[0];
818
-
819
793
  if (this.customIcon) {
820
794
  return h("div", {
821
795
  "class": this.$props.className
822
796
  }, [this.customIcon]);
823
797
  }
824
-
825
798
  if (this.$props.type === 'recent-search-icon') {
826
799
  return h("svg", {
827
800
  "attrs": {
@@ -846,7 +819,6 @@ var CustomSvg = {
846
819
  }
847
820
  })]);
848
821
  }
849
-
850
822
  if (this.$props.type === 'promoted-search-icon') {
851
823
  return h("svg", {
852
824
  "attrs": {
@@ -866,7 +838,6 @@ var CustomSvg = {
866
838
  }
867
839
  })]);
868
840
  }
869
-
870
841
  if (this.$props.type === 'popular-search-icon') {
871
842
  return h("svg", {
872
843
  "attrs": {
@@ -891,7 +862,6 @@ var CustomSvg = {
891
862
  }
892
863
  })]);
893
864
  }
894
-
895
865
  return h(SearchSvg, {
896
866
  "attrs": {
897
867
  "styles": {
@@ -910,26 +880,26 @@ var TagsContainer = styled__default('div')(_templateObject$6 || (_templateObject
910
880
  var TagItem = styled__default('span')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"])));
911
881
 
912
882
  var updateQuery = configureStore.Actions.updateQuery,
913
- setQueryOptions = configureStore.Actions.setQueryOptions,
914
- setCustomQuery = configureStore.Actions.setCustomQuery,
915
- setDefaultQuery = configureStore.Actions.setDefaultQuery,
916
- setCustomHighlightOptions = configureStore.Actions.setCustomHighlightOptions,
917
- recordSuggestionClick = configureStore.Actions.recordSuggestionClick,
918
- loadPopularSuggestions = configureStore.Actions.loadPopularSuggestions,
919
- getRecentSearches = configureStore.Actions.getRecentSearches,
920
- resetStoreForComponent = configureStore.Actions.resetStoreForComponent;
883
+ setQueryOptions = configureStore.Actions.setQueryOptions,
884
+ setCustomQuery = configureStore.Actions.setCustomQuery,
885
+ setDefaultQuery = configureStore.Actions.setDefaultQuery,
886
+ setCustomHighlightOptions = configureStore.Actions.setCustomHighlightOptions,
887
+ recordSuggestionClick = configureStore.Actions.recordSuggestionClick,
888
+ loadPopularSuggestions = configureStore.Actions.loadPopularSuggestions,
889
+ getRecentSearches = configureStore.Actions.getRecentSearches,
890
+ resetStoreForComponent = configureStore.Actions.resetStoreForComponent;
921
891
  var debounce = configureStore.helper.debounce,
922
- checkValueChange = configureStore.helper.checkValueChange,
923
- getClassName$1 = configureStore.helper.getClassName,
924
- extractQueryFromCustomQuery = configureStore.helper.extractQueryFromCustomQuery,
925
- getOptionsForCustomQuery = configureStore.helper.getOptionsForCustomQuery,
926
- isEqual = configureStore.helper.isEqual,
927
- getCompositeAggsQuery = configureStore.helper.getCompositeAggsQuery,
928
- withClickIds = configureStore.helper.withClickIds,
929
- getResultStats = configureStore.helper.getResultStats,
930
- handleOnSuggestions = configureStore.helper.handleOnSuggestions,
931
- getTopSuggestions = configureStore.helper.getTopSuggestions,
932
- normalizeDataField = configureStore.helper.normalizeDataField;
892
+ checkValueChange = configureStore.helper.checkValueChange,
893
+ getClassName$1 = configureStore.helper.getClassName,
894
+ extractQueryFromCustomQuery = configureStore.helper.extractQueryFromCustomQuery,
895
+ getOptionsForCustomQuery = configureStore.helper.getOptionsForCustomQuery,
896
+ isEqual = configureStore.helper.isEqual,
897
+ getCompositeAggsQuery = configureStore.helper.getCompositeAggsQuery,
898
+ withClickIds = configureStore.helper.withClickIds,
899
+ getResultStats = configureStore.helper.getResultStats,
900
+ handleOnSuggestions = configureStore.helper.handleOnSuggestions,
901
+ getTopSuggestions = configureStore.helper.getTopSuggestions,
902
+ normalizeDataField = configureStore.helper.normalizeDataField;
933
903
  var DataSearch = {
934
904
  name: 'DataSearch',
935
905
  isTagsMode: false,
@@ -952,46 +922,36 @@ var DataSearch = {
952
922
  },
953
923
  created: function created() {
954
924
  var _this$$props = this.$props,
955
- enableRecentSearches = _this$$props.enableRecentSearches,
956
- distinctField = _this$$props.distinctField,
957
- distinctFieldConfig = _this$$props.distinctFieldConfig,
958
- index$1 = _this$$props.index,
959
- mode = _this$$props.mode;
960
-
925
+ enableRecentSearches = _this$$props.enableRecentSearches,
926
+ distinctField = _this$$props.distinctField,
927
+ distinctFieldConfig = _this$$props.distinctFieldConfig,
928
+ index$1 = _this$$props.index,
929
+ mode = _this$$props.mode;
961
930
  if (mode === constants.SEARCH_COMPONENTS_MODES.TAG) {
962
931
  this.$options.isTagsMode = true;
963
932
  }
964
-
965
933
  if (this.enableAppbase && this.aggregationField && this.aggregationField !== '') {
966
934
  console.warn('Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead.');
967
935
  }
968
-
969
936
  if (!this.enableAppbase && (distinctField || distinctFieldConfig)) {
970
937
  console.warn('Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
971
938
  }
972
-
973
939
  if (!this.enableAppbase && index$1) {
974
940
  console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
975
941
  }
976
-
977
942
  this.currentValue = '';
978
-
979
943
  if (this.$options.isTagsMode) {
980
944
  this.currentValue = '';
981
945
  }
982
-
983
946
  var shouldFetchInitialSuggestions = this.$props.enableDefaultSuggestions || this.currentValue;
984
-
985
947
  if (shouldFetchInitialSuggestions) {
986
948
  this.loadPopularSuggestions(this.$props.componentId);
987
-
988
949
  if (enableRecentSearches) {
989
950
  this.getRecentSearches();
990
951
  }
991
952
  }
992
-
993
- this.handleTextChange = debounce(this.handleText, this.$props.debounce); // Set custom and default queries in store
994
-
953
+ this.handleTextChange = debounce(this.handleText, this.$props.debounce);
954
+ // Set custom and default queries in store
995
955
  index.updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
996
956
  index.updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
997
957
  this.updateDefaultQueryHandler(this.currentValue, this.$props, false);
@@ -999,36 +959,32 @@ var DataSearch = {
999
959
  computed: {
1000
960
  suggestionsList: function suggestionsList() {
1001
961
  var suggestionsList = [];
1002
-
1003
962
  if (!this.$data.currentValue && this.$props.defaultSuggestions && this.$props.defaultSuggestions.length) {
1004
963
  suggestionsList = this.$props.defaultSuggestions;
1005
964
  } else if (this.$data.currentValue) {
1006
965
  suggestionsList = this.normalizedSuggestions;
1007
966
  }
1008
-
1009
967
  return withClickIds(suggestionsList);
1010
968
  },
1011
969
  topSuggestions: function topSuggestions() {
1012
970
  if (!this.currentValue) {
1013
971
  return [];
1014
972
  }
1015
-
1016
973
  return this.enablePopularSuggestions ? this.normalizedPopularSuggestions : [];
1017
974
  },
1018
975
  normalizedRecentSearches: function normalizedRecentSearches() {
1019
976
  return this.recentSearches || [];
1020
977
  },
1021
978
  normalizedPopularSuggestions: function normalizedPopularSuggestions() {
1022
- return getTopSuggestions( // use default popular suggestions if value is empty
979
+ return getTopSuggestions(
980
+ // use default popular suggestions if value is empty
1023
981
  this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue, this.showDistinctSuggestions);
1024
982
  },
1025
983
  defaultSearchSuggestions: function defaultSearchSuggestions() {
1026
984
  var isPopularSuggestionsEnabled = this.enablePopularSuggestions;
1027
-
1028
985
  if (this.currentValue || !this.enableDefaultSuggestions) {
1029
986
  return [];
1030
987
  }
1031
-
1032
988
  var customDefaultPopularSuggestions = (this.defaultPopularSuggestions || []).map(function (suggestion) {
1033
989
  return _rollupPluginBabelHelpers._extends({}, suggestion, {
1034
990
  _popular_suggestion: true
@@ -1040,7 +996,8 @@ var DataSearch = {
1040
996
  });
1041
997
  });
1042
998
  var defaultSuggestions = isPopularSuggestionsEnabled ? [].concat(customNormalizedRecentSearches, customDefaultPopularSuggestions || []) : customNormalizedRecentSearches;
1043
- return getTopSuggestions( // use default popular suggestions if value is empty
999
+ return getTopSuggestions(
1000
+ // use default popular suggestions if value is empty
1044
1001
  defaultSuggestions, this.currentValue, this.showDistinctSuggestions);
1045
1002
  },
1046
1003
  hasCustomRenderer: function hasCustomRenderer() {
@@ -1131,7 +1088,6 @@ var DataSearch = {
1131
1088
  if (this.customHighlight && typeof this.customHighlight === 'function') {
1132
1089
  this.setCustomHighlightOptions(this.componentId, this.customHighlight(this.$props));
1133
1090
  }
1134
-
1135
1091
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1136
1092
  this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1137
1093
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
@@ -1139,7 +1095,6 @@ var DataSearch = {
1139
1095
  this.queryOptions = this.getBasicQueryOptions();
1140
1096
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
1141
1097
  }
1142
-
1143
1098
  if (this.selectedValue) {
1144
1099
  this.setValue(this.selectedValue, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1145
1100
  } else if (this.$props.value) {
@@ -1179,7 +1134,6 @@ var DataSearch = {
1179
1134
  if (this.isPending && this.$options.isTagsMode && Array.isArray(newVal)) {
1180
1135
  this.isPending = false;
1181
1136
  }
1182
-
1183
1137
  this.setValue(newVal, true, this.$props, undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
1184
1138
  }
1185
1139
  },
@@ -1207,12 +1161,10 @@ var DataSearch = {
1207
1161
  // selected value is cleared, call onValueSelected
1208
1162
  this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1209
1163
  }
1210
-
1211
1164
  if (this.$options.isTagsMode) {
1212
1165
  // handling reset of tags through SelectedFilters or URL
1213
1166
  this.selectedTags = [];
1214
1167
  }
1215
-
1216
1168
  this.setValue(newVal || '', true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1217
1169
  }
1218
1170
  },
@@ -1234,18 +1186,15 @@ var DataSearch = {
1234
1186
  var props = this.$props;
1235
1187
  var requiredError = propName + " supplied to " + componentName + " is required. Validation failed.";
1236
1188
  var propValue = props[propName];
1237
-
1238
1189
  if (!this.enableAppbase) {
1239
1190
  if (!propValue) {
1240
1191
  console.error(requiredError);
1241
1192
  return;
1242
1193
  }
1243
-
1244
1194
  if (typeof propValue !== 'string' && typeof propValue !== 'object' && !Array.isArray(propValue)) {
1245
1195
  console.error("Invalid " + propName + " supplied to " + componentName + ". Validation failed.");
1246
1196
  return;
1247
1197
  }
1248
-
1249
1198
  if (Array.isArray(propValue) && propValue.length === 0) {
1250
1199
  console.error(requiredError);
1251
1200
  }
@@ -1255,7 +1204,6 @@ var DataSearch = {
1255
1204
  if (this.customHighlight && typeof this.customHighlight === 'function') {
1256
1205
  this.setCustomHighlightOptions(this.componentId, this.customHighlight(this.$props));
1257
1206
  }
1258
-
1259
1207
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1260
1208
  this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1261
1209
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
@@ -1264,11 +1212,9 @@ var DataSearch = {
1264
1212
  if (downshiftProps === void 0) {
1265
1213
  downshiftProps = {};
1266
1214
  }
1267
-
1268
1215
  if (isQuerySuggestionsRender === void 0) {
1269
1216
  isQuerySuggestionsRender = false;
1270
1217
  }
1271
-
1272
1218
  var currentValue = this.$data.currentValue;
1273
1219
  var data = {
1274
1220
  error: this.error,
@@ -1285,7 +1231,6 @@ var DataSearch = {
1285
1231
  querySuggestions: this.normalizedPopularSuggestions,
1286
1232
  popularSuggestions: this.normalizedPopularSuggestions
1287
1233
  };
1288
-
1289
1234
  if (isQuerySuggestionsRender) {
1290
1235
  return index.getQuerySuggestionsComponent({
1291
1236
  downshiftProps: downshiftProps,
@@ -1295,21 +1240,18 @@ var DataSearch = {
1295
1240
  error: this.error
1296
1241
  }, this);
1297
1242
  }
1298
-
1299
1243
  return index.getComponent(data, this);
1300
1244
  },
1301
1245
  // returns size and aggs property
1302
1246
  getBasicQueryOptions: function getBasicQueryOptions() {
1303
1247
  var aggregationField = this.$props.aggregationField;
1304
1248
  var queryOptions = helper.getQueryOptions(this.$props);
1305
-
1306
1249
  if (aggregationField) {
1307
1250
  queryOptions.aggs = getCompositeAggsQuery({
1308
1251
  props: this.$props,
1309
1252
  showTopHits: true
1310
1253
  }).aggs;
1311
1254
  }
1312
-
1313
1255
  return queryOptions;
1314
1256
  },
1315
1257
  onSuggestions: function onSuggestions(results) {
@@ -1317,7 +1259,6 @@ var DataSearch = {
1317
1259
  },
1318
1260
  handleSearchIconClick: function handleSearchIconClick() {
1319
1261
  var currentValue = this.currentValue;
1320
-
1321
1262
  if (currentValue.trim()) {
1322
1263
  this.isPending = false;
1323
1264
  this.setValue(currentValue, true);
@@ -1326,35 +1267,28 @@ var DataSearch = {
1326
1267
  },
1327
1268
  setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, isTagsMode) {
1328
1269
  var _this = this;
1329
-
1330
1270
  if (isDefaultValue === void 0) {
1331
1271
  isDefaultValue = false;
1332
1272
  }
1333
-
1334
1273
  if (props === void 0) {
1335
1274
  props = this.$props;
1336
1275
  }
1337
-
1338
1276
  if (toggleIsOpen === void 0) {
1339
1277
  toggleIsOpen = true;
1340
1278
  }
1341
-
1342
1279
  if (isTagsMode === void 0) {
1343
1280
  isTagsMode = this.$options.isTagsMode;
1344
1281
  }
1345
-
1346
1282
  var performUpdate = function performUpdate() {
1347
1283
  if (isTagsMode && isEqual(value, _this.selectedTags)) {
1348
1284
  return;
1349
- } // Refresh recent searches when value becomes empty
1350
-
1351
-
1285
+ }
1286
+ // Refresh recent searches when value becomes empty
1352
1287
  if (!value && props.enableDefaultSuggestions === false) {
1353
1288
  _this.resetStoreForComponent(props.componentId);
1354
1289
  } else if (!value && _this.currentValue && _this.enableRecentSearches) {
1355
1290
  _this.getRecentSearches();
1356
1291
  }
1357
-
1358
1292
  if (isTagsMode) {
1359
1293
  if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
1360
1294
  // check if value already present in selectedTags
@@ -1362,9 +1296,7 @@ var DataSearch = {
1362
1296
  _this.isOpen = false;
1363
1297
  return;
1364
1298
  }
1365
-
1366
1299
  _this.selectedTags = [].concat(_this.selectedTags);
1367
-
1368
1300
  if (typeof value === 'string' && !!value) {
1369
1301
  _this.selectedTags.push(value);
1370
1302
  } else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
@@ -1373,29 +1305,23 @@ var DataSearch = {
1373
1305
  } else if (value) {
1374
1306
  _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
1375
1307
  }
1376
-
1377
1308
  _this.currentValue = '';
1378
1309
  } else {
1379
1310
  _this.currentValue = value;
1380
1311
  }
1381
-
1382
1312
  var queryHandlerValue = value;
1383
-
1384
1313
  if (isTagsMode) {
1385
1314
  queryHandlerValue = Array.isArray(_this.selectedTags) && _this.selectedTags.length ? _this.selectedTags : undefined;
1386
1315
  }
1387
-
1388
1316
  if (isDefaultValue) {
1389
1317
  if (_this.$props.autosuggest) {
1390
1318
  if (toggleIsOpen) {
1391
1319
  _this.isOpen = false;
1392
1320
  }
1393
-
1394
1321
  if (typeof value === 'string') _this.updateDefaultQueryHandler(value, _this.$props);
1395
1322
  } // in case of strict selection only SUGGESTION_SELECT should be able
1396
1323
  // to set the query otherwise the value should reset
1397
1324
 
1398
-
1399
1325
  if (props.strictSelection) {
1400
1326
  if (cause === configureStore.causes.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
1401
1327
  _this.updateQueryHandler(props.componentId, queryHandlerValue, props);
@@ -1409,24 +1335,20 @@ var DataSearch = {
1409
1335
  // debounce for handling text while typing
1410
1336
  _this.handleTextChange(value);
1411
1337
  }
1412
-
1413
1338
  _this.$emit('valueChange', value);
1414
-
1415
- _this.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1416
-
1417
-
1339
+ _this.$emit('value-change', value);
1340
+ // Set the already fetched suggestions if query is same as used last to fetch the hits
1418
1341
  if (value === _this.lastUsedQuery) {
1419
- _this.suggestions = _this.onSuggestions(_this.suggestions); // invoke on suggestions
1420
-
1342
+ _this.suggestions = _this.onSuggestions(_this.suggestions);
1343
+ // invoke on suggestions
1421
1344
  _this.$emit('suggestions', _this.suggestions);
1422
1345
  } else if (!value) {
1423
1346
  // reset suggestions
1424
- _this.suggestions = []; // invoke on suggestions
1425
-
1347
+ _this.suggestions = [];
1348
+ // invoke on suggestions
1426
1349
  _this.$emit('suggestions', _this.suggestions);
1427
1350
  }
1428
1351
  };
1429
-
1430
1352
  checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
1431
1353
  },
1432
1354
  updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props, execute) {
@@ -1435,23 +1357,18 @@ var DataSearch = {
1435
1357
  this.resetStoreForComponent(props.componentId);
1436
1358
  return;
1437
1359
  }
1438
-
1439
1360
  var defaultQueryOptions;
1440
1361
  var query = DataSearch.defaultQuery(value, props);
1441
-
1442
1362
  if (this.defaultQuery) {
1443
1363
  var defaultQueryToBeSet = this.defaultQuery(value, props) || {};
1444
1364
  var defaultQueryObj = extractQueryFromCustomQuery(defaultQueryToBeSet);
1445
-
1446
1365
  if (defaultQueryObj) {
1447
1366
  query = defaultQueryObj;
1448
1367
  }
1449
-
1450
- defaultQueryOptions = getOptionsForCustomQuery(defaultQueryToBeSet); // Update calculated default query in store
1451
-
1368
+ defaultQueryOptions = getOptionsForCustomQuery(defaultQueryToBeSet);
1369
+ // Update calculated default query in store
1452
1370
  index.updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1453
1371
  }
1454
-
1455
1372
  this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends({}, this.queryOptions, defaultQueryOptions), execute);
1456
1373
  this.updateQuery({
1457
1374
  componentId: this.internalComponent,
@@ -1462,26 +1379,22 @@ var DataSearch = {
1462
1379
  },
1463
1380
  updateQueryHandler: function updateQueryHandler(componentId, value, props) {
1464
1381
  var customQuery = props.customQuery,
1465
- filterLabel = props.filterLabel,
1466
- showFilter = props.showFilter,
1467
- URLParams = props.URLParams;
1382
+ filterLabel = props.filterLabel,
1383
+ showFilter = props.showFilter,
1384
+ URLParams = props.URLParams;
1468
1385
  var customQueryOptions;
1469
1386
  var defaultQueryTobeSet = DataSearch.defaultQuery(value, props);
1470
1387
  var query = defaultQueryTobeSet;
1471
-
1472
1388
  if (customQuery) {
1473
1389
  var customQueryTobeSet = customQuery(value, props);
1474
1390
  var queryTobeSet = extractQueryFromCustomQuery(customQueryTobeSet);
1475
-
1476
1391
  if (queryTobeSet) {
1477
1392
  query = queryTobeSet;
1478
1393
  }
1479
-
1480
1394
  customQueryOptions = getOptionsForCustomQuery(customQueryTobeSet);
1481
1395
  index.updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1482
1396
  this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends({}, this.queryOptions, customQueryOptions), false);
1483
1397
  }
1484
-
1485
1398
  if (!this.isPending) {
1486
1399
  this.updateQuery({
1487
1400
  componentId: componentId,
@@ -1501,7 +1414,6 @@ var DataSearch = {
1501
1414
  },
1502
1415
  handleVoiceResults: function handleVoiceResults(_ref) {
1503
1416
  var results = _ref.results;
1504
-
1505
1417
  if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
1506
1418
  this.isPending = false;
1507
1419
  this.setValue(results[0][0].transcript.trim(), true);
@@ -1509,11 +1421,9 @@ var DataSearch = {
1509
1421
  },
1510
1422
  triggerQuery: function triggerQuery(_temp) {
1511
1423
  var _ref2 = _temp === void 0 ? false : _temp,
1512
- _ref2$isOpen = _ref2.isOpen,
1513
- isOpen = _ref2$isOpen === void 0 ? false : _ref2$isOpen;
1514
-
1424
+ _ref2$isOpen = _ref2.isOpen,
1425
+ isOpen = _ref2$isOpen === void 0 ? false : _ref2$isOpen;
1515
1426
  var value = this.$props.value;
1516
-
1517
1427
  if (value !== undefined) {
1518
1428
  this.isPending = false;
1519
1429
  this.setValue(this.$props.value, !isOpen);
@@ -1522,17 +1432,14 @@ var DataSearch = {
1522
1432
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
1523
1433
  // click analytics would only work client side and after javascript loads
1524
1434
  var docId = documentId;
1525
-
1526
1435
  if (!docId) {
1527
1436
  var hitData = this.suggestionsList.find(function (hit) {
1528
1437
  return hit._click_id === searchPosition;
1529
1438
  });
1530
-
1531
1439
  if (hitData && hitData.source && hitData.source._id) {
1532
1440
  docId = hitData.source._id;
1533
1441
  }
1534
1442
  }
1535
-
1536
1443
  this.recordSuggestionClick(searchPosition, docId);
1537
1444
  },
1538
1445
  clearValue: function clearValue() {
@@ -1542,53 +1449,44 @@ var DataSearch = {
1542
1449
  },
1543
1450
  handleKeyDown: function handleKeyDown(event, highlightedIndex) {
1544
1451
  var value = this.$props.value;
1545
-
1546
1452
  if (value !== undefined) {
1547
1453
  this.isPending = true;
1548
- } // if a suggestion was selected, delegate the handling to suggestion handler
1549
-
1454
+ }
1550
1455
 
1456
+ // if a suggestion was selected, delegate the handling to suggestion handler
1551
1457
  if (event.key === 'Enter' && highlightedIndex === null) {
1552
1458
  this.setValue(event.target.value, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined // to handle tags
1553
1459
  );
1554
- this.onValueSelectedHandler(event.target.value, configureStore.causes.ENTER_PRESS);
1555
- } // Need to review
1556
-
1557
1460
 
1461
+ this.onValueSelectedHandler(event.target.value, configureStore.causes.ENTER_PRESS);
1462
+ }
1463
+ // Need to review
1558
1464
  this.$emit('keyDown', event, this.triggerQuery);
1559
1465
  this.$emit('key-down', event, this.triggerQuery);
1560
1466
  },
1561
1467
  onInputChange: function onInputChange(e) {
1562
1468
  var _this2 = this;
1563
-
1564
1469
  var inputValue = e.target.value;
1565
-
1566
1470
  if (!this.$data.isOpen) {
1567
1471
  this.isOpen = true;
1568
1472
  }
1569
-
1570
1473
  var _this$$props2 = this.$props,
1571
- value = _this$$props2.value,
1572
- autosuggest = _this$$props2.autosuggest;
1573
-
1474
+ value = _this$$props2.value,
1475
+ autosuggest = _this$$props2.autosuggest;
1574
1476
  if (value === undefined) {
1575
1477
  this.setValue(inputValue, false, this.$props, undefined, true, false);
1576
1478
  } else {
1577
1479
  this.isPending = true;
1578
1480
  this.$emit('change', inputValue, function (_temp2) {
1579
1481
  var _ref3 = _temp2 === void 0 ? {} : _temp2,
1580
- _ref3$isOpen = _ref3.isOpen,
1581
- isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen;
1582
-
1482
+ _ref3$isOpen = _ref3.isOpen,
1483
+ isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen;
1583
1484
  if (_this2.$options.isTagsMode && autosuggest) {
1584
1485
  _this2.currentValue = value;
1585
1486
  _this2.isOpen = isOpen;
1586
-
1587
1487
  _this2.updateDefaultQueryHandler(_this2.currentValue, _this2.$props);
1588
-
1589
1488
  return;
1590
1489
  }
1591
-
1592
1490
  _this2.triggerQuery({
1593
1491
  isOpen: isOpen
1594
1492
  });
@@ -1596,28 +1494,24 @@ var DataSearch = {
1596
1494
  }
1597
1495
  },
1598
1496
  onSuggestionSelected: function onSuggestionSelected(suggestion) {
1599
- var value = this.$props.value; // Record analytics for selected suggestions
1600
-
1497
+ var value = this.$props.value;
1498
+ // Record analytics for selected suggestions
1601
1499
  this.triggerClickAnalytics(suggestion._click_id);
1602
-
1603
1500
  if (value === undefined) {
1604
1501
  this.setValue(suggestion.value, true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1605
1502
  } else if (this.$options.isTagsMode) {
1606
1503
  var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
1607
-
1608
1504
  if (this.selectedTags.includes(suggestion.value)) {
1609
1505
  // avoid duplicates in tags array
1610
1506
  this.isOpen = false;
1611
1507
  return;
1612
1508
  }
1613
-
1614
1509
  emitValue.push(suggestion.value);
1615
1510
  this.setValue(emitValue, true, this.$props, configureStore.causes.SUGGESTION_SELECT, true);
1616
1511
  this.$emit('change', emitValue, this.triggerQuery);
1617
1512
  } else {
1618
1513
  this.$emit('change', suggestion.value, this.triggerQuery);
1619
1514
  }
1620
-
1621
1515
  this.isPending = false;
1622
1516
  this.onValueSelectedHandler(suggestion.value, configureStore.causes.SUGGESTION_SELECT, suggestion.source);
1623
1517
  },
@@ -1625,11 +1519,9 @@ var DataSearch = {
1625
1519
  if (currentValue === void 0) {
1626
1520
  currentValue = this.$data.currentValue;
1627
1521
  }
1628
-
1629
1522
  for (var _len = arguments.length, cause = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1630
1523
  cause[_key - 1] = arguments[_key];
1631
1524
  }
1632
-
1633
1525
  this.$emit.apply(this, ['valueSelected', currentValue].concat(cause));
1634
1526
  this.$emit.apply(this, ['value-selected', currentValue].concat(cause));
1635
1527
  },
@@ -1639,26 +1531,21 @@ var DataSearch = {
1639
1531
  },
1640
1532
  getBackgroundColor: function getBackgroundColor(highlightedIndex, index) {
1641
1533
  var isDark = this.themePreset === 'dark';
1642
-
1643
1534
  if (isDark) {
1644
1535
  return highlightedIndex === index ? '#555' : '#424242';
1645
1536
  }
1646
-
1647
1537
  return highlightedIndex === index ? '#eee' : '#fff';
1648
1538
  },
1649
1539
  renderIcon: function renderIcon() {
1650
1540
  var h = this.$createElement;
1651
-
1652
1541
  if (this.$props.showIcon) {
1653
1542
  return this.$props.icon || h(SearchSvg);
1654
1543
  }
1655
-
1656
1544
  return null;
1657
1545
  },
1658
1546
  renderErrorComponent: function renderErrorComponent() {
1659
1547
  var h = this.$createElement;
1660
1548
  var renderError = this.$scopedSlots.renderError || this.$props.renderError;
1661
-
1662
1549
  if (this.error && renderError && this.$data.currentValue && !this.isLoading) {
1663
1550
  return h(SuggestionWrapper, {
1664
1551
  "attrs": {
@@ -1669,33 +1556,28 @@ var DataSearch = {
1669
1556
  }
1670
1557
  }, [index.isFunction(renderError) ? renderError(this.error) : renderError]);
1671
1558
  }
1672
-
1673
1559
  return null;
1674
1560
  },
1675
1561
  renderCancelIcon: function renderCancelIcon() {
1676
1562
  var h = this.$createElement;
1677
-
1678
1563
  if (this.$props.showClear) {
1679
1564
  return this.$props.clearIcon || h(CancelSvg.CancelSvg);
1680
1565
  }
1681
-
1682
1566
  return null;
1683
1567
  },
1684
1568
  renderNoSuggestions: function renderNoSuggestions(finalSuggestionsList) {
1685
1569
  if (finalSuggestionsList === void 0) {
1686
1570
  finalSuggestionsList = [];
1687
1571
  }
1688
-
1689
1572
  var h = this.$createElement;
1690
1573
  var _this$$props3 = this.$props,
1691
- theme = _this$$props3.theme,
1692
- innerClass = _this$$props3.innerClass;
1574
+ theme = _this$$props3.theme,
1575
+ innerClass = _this$$props3.innerClass;
1693
1576
  var renderNoSuggestion = this.$scopedSlots.renderNoSuggestion || this.$props.renderNoSuggestion;
1694
1577
  var renderError = this.$scopedSlots.renderError || this.$props.renderError;
1695
1578
  var _this$$data = this.$data,
1696
- isOpen = _this$$data.isOpen,
1697
- currentValue = _this$$data.currentValue;
1698
-
1579
+ isOpen = _this$$data.isOpen,
1580
+ currentValue = _this$$data.currentValue;
1699
1581
  if (renderNoSuggestion && isOpen && !finalSuggestionsList.length && !this.isLoading && currentValue && !(renderError && this.error)) {
1700
1582
  return h(SuggestionWrapper, {
1701
1583
  "attrs": {
@@ -1711,22 +1593,18 @@ var DataSearch = {
1711
1593
  }
1712
1594
  });
1713
1595
  }
1714
-
1715
1596
  return null;
1716
1597
  },
1717
1598
  renderInputAddonBefore: function renderInputAddonBefore() {
1718
1599
  var h = this.$createElement;
1719
1600
  var addonBefore = this.$scopedSlots.addonBefore;
1720
-
1721
1601
  if (addonBefore) {
1722
1602
  return h(InputAddon, [addonBefore()]);
1723
1603
  }
1724
-
1725
1604
  return null;
1726
1605
  },
1727
1606
  renderTag: function renderTag(item) {
1728
1607
  var _this3 = this;
1729
-
1730
1608
  var h = this.$createElement;
1731
1609
  var innerClass = this.$props.innerClass;
1732
1610
  return h(TagItem, {
@@ -1747,7 +1625,6 @@ var DataSearch = {
1747
1625
  clearAllTags: function clearAllTags() {
1748
1626
  this.selectedTags = [];
1749
1627
  this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1750
-
1751
1628
  if (this.$props.value !== undefined) {
1752
1629
  this.$emit('change', this.selectedTags, this.triggerQuery);
1753
1630
  }
@@ -1757,20 +1634,16 @@ var DataSearch = {
1757
1634
  return tag !== tagValue;
1758
1635
  }));
1759
1636
  this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1760
-
1761
1637
  if (this.$props.value !== undefined) {
1762
1638
  this.$emit('change', this.selectedTags, this.triggerQuery);
1763
1639
  }
1764
1640
  },
1765
1641
  renderTags: function renderTags() {
1766
1642
  var _this4 = this;
1767
-
1768
1643
  var h = this.$createElement;
1769
-
1770
1644
  if (!Array.isArray(this.selectedTags)) {
1771
1645
  return null;
1772
1646
  }
1773
-
1774
1647
  var tagsList = [].concat(this.selectedTags);
1775
1648
  var shouldRenderClearAllTag = tagsList.length > 1;
1776
1649
  var renderSelectedTags = this.$scopedSlots.renderSelectedTags || this.$props.renderSelectedTags;
@@ -1796,22 +1669,20 @@ var DataSearch = {
1796
1669
  renderInputAddonAfter: function renderInputAddonAfter() {
1797
1670
  var h = this.$createElement;
1798
1671
  var addonAfter = this.$scopedSlots.addonAfter;
1799
-
1800
1672
  if (addonAfter) {
1801
1673
  return h(InputAddon, [addonAfter()]);
1802
1674
  }
1803
-
1804
1675
  return null;
1805
1676
  },
1806
1677
  renderIcons: function renderIcons() {
1807
1678
  var h = this.$createElement;
1808
1679
  var _this$$props4 = this.$props,
1809
- iconPosition = _this$$props4.iconPosition,
1810
- showClear = _this$$props4.showClear,
1811
- innerClass = _this$$props4.innerClass,
1812
- getMicInstance = _this$$props4.getMicInstance,
1813
- showVoiceSearch = _this$$props4.showVoiceSearch,
1814
- showIcon = _this$$props4.showIcon;
1680
+ iconPosition = _this$$props4.iconPosition,
1681
+ showClear = _this$$props4.showClear,
1682
+ innerClass = _this$$props4.innerClass,
1683
+ getMicInstance = _this$$props4.getMicInstance,
1684
+ showVoiceSearch = _this$$props4.showVoiceSearch,
1685
+ showIcon = _this$$props4.showIcon;
1815
1686
  var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
1816
1687
  var currentValue = this.$data.currentValue;
1817
1688
  return h("div", [h(CancelSvg.IconGroup, {
@@ -1851,49 +1722,41 @@ var DataSearch = {
1851
1722
  },
1852
1723
  focusSearchBox: function focusSearchBox(event) {
1853
1724
  var _this$$refs, _this$$refs$this$$pro;
1854
-
1855
1725
  var elt = event.target || event.srcElement;
1856
1726
  var tagName = elt.tagName;
1857
-
1858
1727
  if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
1859
1728
  // already in an input
1860
1729
  return;
1861
1730
  }
1862
-
1863
1731
  (_this$$refs = this.$refs) == null ? void 0 : (_this$$refs$this$$pro = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs$this$$pro.focus(); // eslint-disable-line
1864
1732
  },
1865
1733
  listenForFocusShortcuts: function listenForFocusShortcuts() {
1866
1734
  var _this5 = this;
1867
-
1868
1735
  var _this$$props$focusSho = this.$props.focusShortcuts,
1869
- focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
1870
-
1736
+ focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
1871
1737
  if (index.isEmpty(focusShortcuts)) {
1872
1738
  return;
1873
1739
  }
1740
+ var shortcutsString = index.parseFocusShortcuts(focusShortcuts).join(',');
1874
1741
 
1875
- var shortcutsString = index.parseFocusShortcuts(focusShortcuts).join(','); // handler for alphabets and other key combinations
1876
-
1877
- hotkeys(shortcutsString, // eslint-disable-next-line no-unused-vars
1878
-
1742
+ // handler for alphabets and other key combinations
1743
+ hotkeys(shortcutsString,
1744
+ // eslint-disable-next-line no-unused-vars
1879
1745
  /* eslint-disable no-shadow */
1880
1746
  function (event, handler) {
1881
1747
  // Prevent the default refresh event under WINDOWS system
1882
1748
  event.preventDefault();
1883
-
1884
1749
  _this5.focusSearchBox(event);
1885
- }); // if one of modifier keys are used, they are handled below
1750
+ });
1886
1751
 
1752
+ // if one of modifier keys are used, they are handled below
1887
1753
  hotkeys('*', function (event) {
1888
1754
  var modifierKeys = index.extractModifierKeysFromFocusShortcuts(focusShortcuts);
1889
1755
  if (modifierKeys.length === 0) return;
1890
-
1891
1756
  for (var index$1 = 0; index$1 < modifierKeys.length; index$1 += 1) {
1892
1757
  var element = modifierKeys[index$1];
1893
-
1894
1758
  if (hotkeys[element]) {
1895
1759
  _this5.focusSearchBox(event);
1896
-
1897
1760
  break;
1898
1761
  }
1899
1762
  }
@@ -1902,22 +1765,19 @@ var DataSearch = {
1902
1765
  },
1903
1766
  render: function render() {
1904
1767
  var _this6 = this;
1905
-
1906
1768
  var h = arguments[0];
1907
1769
  var _this$$props5 = this.$props,
1908
- theme = _this$$props5.theme,
1909
- size = _this$$props5.size,
1910
- expandSuggestionsContainer = _this$$props5.expandSuggestionsContainer,
1911
- enableDefaultSuggestions = _this$$props5.enableDefaultSuggestions;
1770
+ theme = _this$$props5.theme,
1771
+ size = _this$$props5.size,
1772
+ expandSuggestionsContainer = _this$$props5.expandSuggestionsContainer,
1773
+ enableDefaultSuggestions = _this$$props5.enableDefaultSuggestions;
1912
1774
  var _this$$scopedSlots = this.$scopedSlots,
1913
- recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
1914
- popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
1775
+ recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
1776
+ popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
1915
1777
  var hasSuggestions = this.currentValue ? this.suggestionsList.length || this.topSuggestions.length : this.defaultSearchSuggestions.length;
1916
-
1917
1778
  if (enableDefaultSuggestions === false && !this.currentValue) {
1918
1779
  hasSuggestions = false;
1919
1780
  }
1920
-
1921
1781
  return h(Container.Container, {
1922
1782
  "class": this.$props.className
1923
1783
  }, [this.$props.title && h(Title.Title, {
@@ -1932,13 +1792,12 @@ var DataSearch = {
1932
1792
  "scopedSlots": {
1933
1793
  "default": function _default(_ref4) {
1934
1794
  var getInputEvents = _ref4.getInputEvents,
1935
- getInputProps = _ref4.getInputProps,
1936
- getItemProps = _ref4.getItemProps,
1937
- getItemEvents = _ref4.getItemEvents,
1938
- isOpen = _ref4.isOpen,
1939
- highlightedIndex = _ref4.highlightedIndex,
1940
- setHighlightedIndex = _ref4.setHighlightedIndex;
1941
-
1795
+ getInputProps = _ref4.getInputProps,
1796
+ getItemProps = _ref4.getItemProps,
1797
+ getItemEvents = _ref4.getItemEvents,
1798
+ isOpen = _ref4.isOpen,
1799
+ highlightedIndex = _ref4.highlightedIndex,
1800
+ setHighlightedIndex = _ref4.setHighlightedIndex;
1942
1801
  var renderSuggestionsContainer = function renderSuggestionsContainer() {
1943
1802
  return h("div", [_this6.hasCustomRenderer && _this6.getComponent({
1944
1803
  isOpen: isOpen,
@@ -2036,7 +1895,6 @@ var DataSearch = {
2036
1895
  })]);
2037
1896
  })]) : _this6.renderNoSuggestions(_this6.suggestionsList)]);
2038
1897
  };
2039
-
2040
1898
  return h("div", {
2041
1899
  "class": Input.suggestionsContainer
2042
1900
  }, [h(InputGroup, [_this6.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
@@ -2060,7 +1918,6 @@ var DataSearch = {
2060
1918
  onFocus: _this6.handleFocus,
2061
1919
  onKeyPress: function onKeyPress(e) {
2062
1920
  _this6.$emit('keyPress', e, _this6.triggerQuery);
2063
-
2064
1921
  _this6.$emit('key-press', e, _this6.triggerQuery);
2065
1922
  },
2066
1923
  onKeyDown: function onKeyDown(e) {
@@ -2068,7 +1925,6 @@ var DataSearch = {
2068
1925
  },
2069
1926
  onKeyUp: function onKeyUp(e) {
2070
1927
  _this6.$emit('keyUp', e, _this6.triggerQuery);
2071
-
2072
1928
  _this6.$emit('key-up', e, _this6.triggerQuery);
2073
1929
  },
2074
1930
  onClick: function onClick() {
@@ -2098,7 +1954,6 @@ var DataSearch = {
2098
1954
  },
2099
1955
  keypress: function keypress(e) {
2100
1956
  _this6.$emit('keyPress', e, _this6.triggerQuery);
2101
-
2102
1957
  _this6.$emit('key-press', e, _this6.triggerQuery);
2103
1958
  },
2104
1959
  input: this.onInputChange,
@@ -2107,12 +1962,10 @@ var DataSearch = {
2107
1962
  },
2108
1963
  keydown: function keydown(e) {
2109
1964
  _this6.$emit('keyDown', e, _this6.triggerQuery);
2110
-
2111
1965
  _this6.$emit('key-down', e, _this6.triggerQuery);
2112
1966
  },
2113
1967
  keyup: function keyup(e) {
2114
1968
  _this6.$emit('keyUp', e, _this6.triggerQuery);
2115
-
2116
1969
  _this6.$emit('key-up', e, _this6.triggerQuery);
2117
1970
  }
2118
1971
  }),
@@ -2127,10 +1980,8 @@ var DataSearch = {
2127
1980
  document.removeEventListener('keydown', this.onKeyDown);
2128
1981
  }
2129
1982
  };
2130
-
2131
1983
  DataSearch.defaultQuery = function (value, props) {
2132
1984
  var finalQuery = null;
2133
-
2134
1985
  if (value) {
2135
1986
  var fields = normalizeDataField(props.dataField, props.fieldWeights);
2136
1987
  finalQuery = {
@@ -2140,11 +1991,9 @@ DataSearch.defaultQuery = function (value, props) {
2140
1991
  }
2141
1992
  };
2142
1993
  }
2143
-
2144
1994
  if (value === '') {
2145
1995
  finalQuery = null;
2146
1996
  }
2147
-
2148
1997
  if (finalQuery && props.nestedField) {
2149
1998
  return {
2150
1999
  query: {
@@ -2155,23 +2004,18 @@ DataSearch.defaultQuery = function (value, props) {
2155
2004
  }
2156
2005
  };
2157
2006
  }
2158
-
2159
2007
  return finalQuery;
2160
2008
  };
2161
-
2162
2009
  DataSearch.shouldQuery = function (value, dataFields, props) {
2163
2010
  var finalQuery = [];
2164
2011
  var phrasePrefixFields = [];
2165
2012
  var fields = dataFields.map(function (dataField) {
2166
2013
  var queryField = "" + dataField.field + (dataField.weight ? "^" + dataField.weight : '');
2167
-
2168
2014
  if (!(dataField.field.endsWith('.keyword') || dataField.field.endsWith('.autosuggest') || dataField.field.endsWith('.search'))) {
2169
2015
  phrasePrefixFields.push(queryField);
2170
2016
  }
2171
-
2172
2017
  return queryField;
2173
2018
  });
2174
-
2175
2019
  if (props.searchOperators || props.queryString) {
2176
2020
  return {
2177
2021
  query: value,
@@ -2179,7 +2023,6 @@ DataSearch.shouldQuery = function (value, dataFields, props) {
2179
2023
  default_operator: props.queryFormat
2180
2024
  };
2181
2025
  }
2182
-
2183
2026
  if (props.queryFormat === 'and') {
2184
2027
  finalQuery.push({
2185
2028
  multi_match: {
@@ -2197,7 +2040,6 @@ DataSearch.shouldQuery = function (value, dataFields, props) {
2197
2040
  operator: 'and'
2198
2041
  }
2199
2042
  });
2200
-
2201
2043
  if (phrasePrefixFields.length > 0) {
2202
2044
  finalQuery.push({
2203
2045
  multi_match: {
@@ -2208,10 +2050,8 @@ DataSearch.shouldQuery = function (value, dataFields, props) {
2208
2050
  }
2209
2051
  });
2210
2052
  }
2211
-
2212
2053
  return finalQuery;
2213
2054
  }
2214
-
2215
2055
  finalQuery.push({
2216
2056
  multi_match: {
2217
2057
  query: value,
@@ -2229,7 +2069,6 @@ DataSearch.shouldQuery = function (value, dataFields, props) {
2229
2069
  operator: 'or'
2230
2070
  }
2231
2071
  });
2232
-
2233
2072
  if (phrasePrefixFields.length > 0) {
2234
2073
  finalQuery.push({
2235
2074
  multi_match: {
@@ -2240,22 +2079,17 @@ DataSearch.shouldQuery = function (value, dataFields, props) {
2240
2079
  }
2241
2080
  });
2242
2081
  }
2243
-
2244
2082
  return finalQuery;
2245
2083
  };
2246
-
2247
2084
  DataSearch.highlightQuery = function (props) {
2248
2085
  if (props.customHighlight) {
2249
2086
  return props.customHighlight(props);
2250
2087
  }
2251
-
2252
2088
  if (!props.highlight) {
2253
2089
  return null;
2254
2090
  }
2255
-
2256
2091
  var fields = {};
2257
2092
  var highlightField = props.highlightField ? props.highlightField : props.dataField;
2258
-
2259
2093
  if (typeof highlightField === 'string') {
2260
2094
  fields[highlightField] = {};
2261
2095
  } else if (Array.isArray(highlightField)) {
@@ -2263,7 +2097,6 @@ DataSearch.highlightQuery = function (props) {
2263
2097
  fields[item] = {};
2264
2098
  });
2265
2099
  }
2266
-
2267
2100
  return {
2268
2101
  highlight: _rollupPluginBabelHelpers._extends({
2269
2102
  pre_tags: ['<mark>'],
@@ -2274,11 +2107,9 @@ DataSearch.highlightQuery = function (props) {
2274
2107
  })
2275
2108
  };
2276
2109
  };
2277
-
2278
2110
  DataSearch.hasInternalComponent = function () {
2279
2111
  return true;
2280
2112
  };
2281
-
2282
2113
  var mapStateToProps = function mapStateToProps(state, props) {
2283
2114
  return {
2284
2115
  selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
@@ -2303,7 +2134,6 @@ var mapStateToProps = function mapStateToProps(state, props) {
2303
2134
  recentSearches: state.recentSearches.data
2304
2135
  };
2305
2136
  };
2306
-
2307
2137
  var mapDispatchToProps = {
2308
2138
  setQueryOptions: setQueryOptions,
2309
2139
  updateQuery: updateQuery,
@@ -2319,12 +2149,10 @@ var DSConnected = PreferencesConsumer.PreferencesConsumer(ComponentWrapper.Compo
2319
2149
  componentType: constants.componentTypes.dataSearch,
2320
2150
  internalComponent: DataSearch.hasInternalComponent()
2321
2151
  }));
2322
-
2323
2152
  DataSearch.install = function (Vue) {
2324
2153
  Vue.component(DataSearch.name, DSConnected);
2325
- }; // Add componentType for SSR
2326
-
2327
-
2154
+ };
2155
+ // Add componentType for SSR
2328
2156
  DataSearch.componentType = constants.componentTypes.dataSearch;
2329
2157
 
2330
2158
  exports.CustomSvg = CustomSvg;