@appbaseio/reactivesearch-vue 2.0.0-alpha.4 → 3.0.0-alpha.0

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 (108) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +17538 -25422
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -15
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-ad042719.js +59 -0
  6. package/dist/cjs/Card-f5ab024a.js +27 -0
  7. package/dist/cjs/{ComponentWrapper-ad3dad02.js → ComponentWrapper-75f88599.js} +42 -56
  8. package/dist/cjs/Container-29f049b2.js +12 -0
  9. package/dist/cjs/DropDown-6cf84c47.js +698 -0
  10. package/dist/cjs/DynamicRangeSlider.js +103 -155
  11. package/dist/cjs/Flex-d5675ea6.js +48 -0
  12. package/dist/cjs/FormControlList-fadd792f.js +42 -0
  13. package/dist/cjs/Input-4b434436.js +74 -0
  14. package/dist/cjs/ListItem-d57d648d.js +42 -0
  15. package/dist/cjs/MultiDropdownList.js +124 -240
  16. package/dist/cjs/MultiList.js +123 -261
  17. package/dist/cjs/MultiRange.js +87 -133
  18. package/dist/cjs/{Pagination-71e85fa9.js → Pagination-b5ddc906.js} +70 -83
  19. package/dist/cjs/PreferencesConsumer-eb265924.js +75 -0
  20. package/dist/cjs/RangeInput.js +163 -171
  21. package/dist/cjs/RangeSlider.js +81 -109
  22. package/dist/cjs/ReactiveBase.js +139 -157
  23. package/dist/cjs/ReactiveComponent-eb8db4c1.js +2189 -0
  24. package/dist/cjs/ReactiveComponent.js +46 -340
  25. package/dist/cjs/ReactiveGoogleMap.js +445 -655
  26. package/dist/cjs/ReactiveList.js +179 -304
  27. package/dist/cjs/ResultCard.js +36 -36
  28. package/dist/cjs/ResultList.js +48 -56
  29. package/dist/cjs/SelectedFilters.js +62 -69
  30. package/dist/cjs/SingleDropdownList.js +117 -177
  31. package/dist/cjs/SingleList.js +121 -205
  32. package/dist/cjs/SingleRange.js +78 -105
  33. package/dist/cjs/StateProvider.js +35 -38
  34. package/dist/cjs/Title-8802a218.js +12 -0
  35. package/dist/cjs/ToggleButton.js +72 -119
  36. package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
  37. package/dist/cjs/{index-6a167fe0.js → index-d8d8f291.js} +38 -108
  38. package/dist/cjs/index.js +44 -41
  39. package/dist/cjs/initReactivesearch.js +63 -150
  40. package/dist/cjs/install.js +47 -43
  41. package/dist/cjs/ssr-6907ada3.js +66 -0
  42. package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-1bf00978.js} +8 -19
  45. package/dist/es/Button-474510e3.js +53 -0
  46. package/dist/es/{Card-450683f1.js → Card-38cbe652.js} +3 -3
  47. package/dist/es/{ComponentWrapper-424e86fd.js → ComponentWrapper-5166c76a.js} +42 -56
  48. package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +2 -2
  49. package/dist/es/DropDown-8764360c.js +688 -0
  50. package/dist/es/DynamicRangeSlider.js +103 -155
  51. package/dist/es/Flex-a08e22d7.js +46 -0
  52. package/dist/es/FormControlList-fe6eaee4.js +38 -0
  53. package/dist/es/Input-4a8ef1f3.js +69 -0
  54. package/dist/es/{ListItem-cad14c5e.js → ListItem-16756c02.js} +7 -8
  55. package/dist/es/MultiDropdownList.js +124 -240
  56. package/dist/es/MultiList.js +123 -261
  57. package/dist/es/MultiRange.js +87 -133
  58. package/dist/es/{Pagination-784bf143.js → Pagination-72bd1d9e.js} +70 -83
  59. package/dist/es/PreferencesConsumer-c276709c.js +73 -0
  60. package/dist/es/RangeInput.js +163 -170
  61. package/dist/es/RangeSlider.js +81 -109
  62. package/dist/es/ReactiveBase.js +138 -155
  63. package/dist/es/ReactiveComponent-f9fa5780.js +2183 -0
  64. package/dist/es/ReactiveComponent.js +42 -337
  65. package/dist/es/ReactiveGoogleMap.js +440 -649
  66. package/dist/es/ReactiveList.js +177 -301
  67. package/dist/es/ResultCard.js +36 -36
  68. package/dist/es/ResultList.js +48 -56
  69. package/dist/es/SelectedFilters.js +62 -69
  70. package/dist/es/SingleDropdownList.js +117 -177
  71. package/dist/es/SingleList.js +121 -205
  72. package/dist/es/SingleRange.js +78 -105
  73. package/dist/es/StateProvider.js +36 -39
  74. package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +2 -2
  75. package/dist/es/ToggleButton.js +72 -119
  76. package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
  77. package/dist/es/{index-7788a843.js → index-4520a598.js} +39 -107
  78. package/dist/es/index.js +30 -32
  79. package/dist/es/initReactivesearch.js +63 -150
  80. package/dist/es/install.js +49 -41
  81. package/dist/es/{ssr-b2c0b401.js → ssr-af398f0c.js} +36 -7
  82. package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-b8146772.js → vueTypes-f1923c72.js} +8 -19
  85. package/package.json +10 -9
  86. package/dist/cjs/Button-446f819e.js +0 -68
  87. package/dist/cjs/CancelSvg-9f258f4f.js +0 -449
  88. package/dist/cjs/Card-642547a8.js +0 -30
  89. package/dist/cjs/Container-daf30918.js +0 -15
  90. package/dist/cjs/DataSearch-aa04dc6e.js +0 -2352
  91. package/dist/cjs/DataSearch.js +0 -30
  92. package/dist/cjs/DropDown-c479bbb0.js +0 -328
  93. package/dist/cjs/Flex-aa517a13.js +0 -52
  94. package/dist/cjs/FormControlList-c195a592.js +0 -47
  95. package/dist/cjs/Input-e6603a7e.js +0 -79
  96. package/dist/cjs/ListItem-8c9e0d68.js +0 -46
  97. package/dist/cjs/Title-1de7d0f4.js +0 -15
  98. package/dist/cjs/install-b97dbac4.js +0 -1409
  99. package/dist/cjs/ssr-3027b848.js +0 -39
  100. package/dist/es/Button-d8bc15ea.js +0 -59
  101. package/dist/es/CancelSvg-4cfae5fd.js +0 -440
  102. package/dist/es/DataSearch-b86a6675.js +0 -2337
  103. package/dist/es/DataSearch.js +0 -22
  104. package/dist/es/DropDown-05a644a5.js +0 -322
  105. package/dist/es/Flex-1f0795c3.js +0 -47
  106. package/dist/es/FormControlList-c22d64f6.js +0 -40
  107. package/dist/es/Input-7a2a9fac.js +0 -71
  108. package/dist/es/install-ac8a1edb.js +0 -1402
@@ -1,2352 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var configureStore = require('@appbaseio/reactivecore');
6
- var configureStore__default = _interopDefault(configureStore);
7
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
8
- var VueTypes = _interopDefault(require('vue-types'));
9
- var constants = require('@appbaseio/reactivecore/lib/utils/constants');
10
- var helper = require('@appbaseio/reactivecore/lib/utils/helper');
11
- var styled = require('@appbaseio/vue-emotion');
12
- var styled__default = _interopDefault(styled);
13
- var vueTypes = require('./vueTypes-727b7c63.js');
14
- var index = require('./index-6a167fe0.js');
15
- var ComponentWrapper = require('./ComponentWrapper-ad3dad02.js');
16
- var Title = require('./Title-1de7d0f4.js');
17
- var Flex = require('./Flex-aa517a13.js');
18
- var hotkeys = _interopDefault(require('hotkeys-js'));
19
- var CancelSvg = require('./CancelSvg-9f258f4f.js');
20
- var Input = require('./Input-e6603a7e.js');
21
- var Container = require('./Container-daf30918.js');
22
- var Highlight = _interopDefault(require('vue-highlight-words'));
23
-
24
- var _templateObject;
25
- var InputGroup = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));
26
- InputGroup.defaultProps = {
27
- className: 'input-group'
28
- };
29
-
30
- var _templateObject$1;
31
- var InputAddon = styled__default('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
32
- InputAddon.defaultProps = {
33
- className: 'input-addon'
34
- };
35
-
36
- var getClassName = configureStore.helper.getClassName;
37
- var SuggestionWrapper = {
38
- name: 'SuggestionWrapper',
39
- props: {
40
- innerClassName: vueTypes.types.string,
41
- themePreset: vueTypes.types.themePreset,
42
- innerClass: vueTypes.types.style
43
- },
44
- render: function render() {
45
- var h = arguments[0];
46
- var _this$$props = this.$props,
47
- themePreset = _this$$props.themePreset,
48
- innerClass = _this$$props.innerClass,
49
- innerClassName = _this$$props.innerClassName;
50
- return h("div", {
51
- "class": Input.noSuggestions(themePreset) + " " + getClassName(innerClass, innerClassName || '')
52
- }, [h("li", [this.$scopedSlots["default"]()])]);
53
- }
54
- };
55
-
56
- var _templateObject$2;
57
- var highlightStyle = {
58
- fontWeight: 600,
59
- padding: 0,
60
- backgroundColor: 'transparent',
61
- color: 'inherit'
62
- };
63
- var PredictiveSuggestion = styled__default('span')(_templateObject$2 || (_templateObject$2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
64
- var SuggestionItem = {
65
- name: 'SuggestionItem',
66
- props: {
67
- currentValue: vueTypes.types.string,
68
- suggestion: vueTypes.types.any
69
- },
70
- render: function render() {
71
- var h = arguments[0];
72
- var _this$suggestion = this.suggestion,
73
- label = _this$suggestion.label,
74
- value = _this$suggestion.value,
75
- title = _this$suggestion.title,
76
- description = _this$suggestion.description,
77
- image = _this$suggestion.image,
78
- isPredictiveSuggestion = _this$suggestion.isPredictiveSuggestion,
79
- _suggestion_type = _this$suggestion._suggestion_type,
80
- _category = _this$suggestion._category;
81
-
82
- if (label) {
83
- // label has highest precedence
84
- return typeof label === 'string' ? h("div", {
85
- "class": "trim"
86
- }, [(_category ? false : isPredictiveSuggestion // eslint-disable-next-line
87
- || !!_suggestion_type) ? h(PredictiveSuggestion, {
88
- "domProps": {
89
- "innerHTML": label
90
- }
91
- }) : h(Highlight, {
92
- "attrs": {
93
- "searchWords": _category ? [_category] : this.currentValue.split(' '),
94
- "textToHighlight": label,
95
- "autoEscape": true,
96
- "highlightStyle": highlightStyle
97
- }
98
- })]) : label;
99
- }
100
-
101
- if (title || image || description) {
102
- return h(Flex.Flex, {
103
- "attrs": {
104
- "alignItems": "center",
105
- "css": {
106
- width: '100%'
107
- }
108
- }
109
- }, [image && h("div", {
110
- "attrs": {
111
- "css": {
112
- margin: 'auto',
113
- marginRight: 10
114
- }
115
- }
116
- }, [h("img", {
117
- "attrs": {
118
- "src": image,
119
- "alt": " ",
120
- "height": "50px",
121
- "width": "50px",
122
- "css": {
123
- objectFit: 'contain'
124
- }
125
- }
126
- })]), h(Flex.Flex, {
127
- "attrs": {
128
- "direction": "column",
129
- "css": {
130
- width: image ? 'calc(100% - 60px)' : '100%'
131
- }
132
- }
133
- }, [title && h("div", {
134
- "class": "trim"
135
- }, [h(Highlight, {
136
- "attrs": {
137
- "searchWords": this.currentValue.split(' '),
138
- "textToHighlight": title,
139
- "highlightStyle": highlightStyle
140
- },
141
- "class": styled.css({
142
- fontSize: '1rem'
143
- })
144
- })]), description && h("div", {
145
- "class": styled.cx('trim', styled.css({
146
- marginTop: 3
147
- }))
148
- }, [h(Highlight, {
149
- "attrs": {
150
- "searchWords": this.currentValue.split(' '),
151
- "textToHighlight": description,
152
- "highlightStyle": highlightStyle
153
- }
154
- })])])]);
155
- }
156
-
157
- return value;
158
- }
159
- };
160
-
161
- var SearchSvg = {
162
- name: 'SearchSvg',
163
- props: ['styles'],
164
- render: function render() {
165
- var h = arguments[0];
166
- return h("svg", {
167
- "attrs": {
168
- "alt": "Search",
169
- "height": "12",
170
- "xmlns": "http://www.w3.org/2000/svg",
171
- "viewBox": "0 0 15 15"
172
- },
173
- "class": "search-icon",
174
- "style": _rollupPluginBabelHelpers._extends({
175
- transform: 'scale(1.35)',
176
- position: 'relative'
177
- }, this.$props.styles ? this.$props.styles : {})
178
- }, [h("title", ["Search"]), h("path", {
179
- "attrs": {
180
- "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'
181
- }
182
- })]);
183
- }
184
- };
185
-
186
- var _templateObject$3;
187
-
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"])));
189
- var MicSvg = {
190
- name: 'MicSvg',
191
- props: ['className'],
192
- render: function render() {
193
- var h = arguments[0];
194
- return h("svg", {
195
- "attrs": {
196
- "viewBox": "0 0 480 480",
197
- "xmlns": "http://www.w3.org/2000/svg",
198
- "id": "el_xS0FRzQjJ",
199
- "width": 28,
200
- "height": 28,
201
- "className": this.$props.className
202
- },
203
- "style": {
204
- transform: 'scale(1.5)'
205
- }
206
- }, [h("g", {
207
- "attrs": {
208
- "id": "el_TvxDfTAtKp",
209
- "fillRule": "evenodd"
210
- }
211
- }, [h("g", {
212
- "attrs": {
213
- "id": "el_D93PK3GbmJ",
214
- "fillRule": "nonzero"
215
- },
216
- "style": {
217
- fill: '#595959'
218
- }
219
- }, [h("path", {
220
- "attrs": {
221
- "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",
222
- "id": "el_uly3EwA2O3"
223
- }
224
- }), h("path", {
225
- "attrs": {
226
- "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",
227
- "id": "el_tnDbR4ytu4"
228
- }
229
- })])])]);
230
- }
231
- };
232
-
233
- var _templateObject$4;
234
-
235
- 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"])));
236
- var MuteSvg = {
237
- name: 'MuteSvg',
238
- props: ['className'],
239
- render: function render() {
240
- var h = arguments[0];
241
- return h("svg", {
242
- "style": {
243
- transform: 'scale(1.5)'
244
- },
245
- "attrs": {
246
- "viewBox": "0 0 480 480",
247
- "xmlns": "http://www.w3.org/2000/svg",
248
- "id": "el_D1rEpH2zj",
249
- "width": 28,
250
- "height": 28,
251
- "className": this.$props.className
252
- }
253
- }, [h("g", {
254
- "attrs": {
255
- "id": "el_X81iT9kZYo",
256
- "fillRule": "evenodd"
257
- }
258
- }, [h("g", {
259
- "attrs": {
260
- "id": "el_gMpyalCphp"
261
- }
262
- }, [h("path", {
263
- "attrs": {
264
- "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",
265
- "id": "el_c7H-3u-D4l",
266
- "fillRule": "nonzero"
267
- },
268
- "style": {
269
- fill: '#595959'
270
- }
271
- }), h("path", {
272
- "attrs": {
273
- "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",
274
- "id": "el_qhFcdAAFwo",
275
- "fillRule": "nonzero"
276
- },
277
- "style": {
278
- fill: '#595959'
279
- }
280
- }), h("path", {
281
- "attrs": {
282
- "d": "M11.5,206.5 L142.5,12.5",
283
- "id": "el_M8X8g37WOI",
284
- "strokeLinecap": "round",
285
- "strokeLinejoin": "round"
286
- }
287
- })])])]);
288
- }
289
- };
290
-
291
- var _templateObject$5;
292
-
293
- 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"])));
294
- var ListenSvg = {
295
- name: 'ListenSvg',
296
- props: ['className'],
297
- render: function render() {
298
- var h = arguments[0];
299
- return h("svg", {
300
- "attrs": {
301
- "viewBox": "0 0 480 480",
302
- "xmlns": "http://www.w3.org/2000/svg",
303
- "xmlnsXlink": "http://www.w3.org/1999/xlink",
304
- "id": "el_hiibMG0x-",
305
- "width": 28,
306
- "height": 29,
307
- "className": this.$props.className
308
- },
309
- "style": {
310
- transform: 'scale(1.5)'
311
- }
312
- }, [h("defs", [h("path", {
313
- "attrs": {
314
- "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",
315
- "id": "path-1"
316
- }
317
- }), h("path", {
318
- "attrs": {
319
- "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",
320
- "id": "path-3"
321
- }
322
- }), h("path", {
323
- "attrs": {
324
- "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",
325
- "id": "path-5"
326
- }
327
- }), h("path", {
328
- "attrs": {
329
- "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",
330
- "id": "path-7"
331
- }
332
- }), h("path", {
333
- "attrs": {
334
- "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",
335
- "id": "path-9"
336
- }
337
- }), h("path", {
338
- "attrs": {
339
- "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",
340
- "id": "path-11"
341
- }
342
- }), h("path", {
343
- "attrs": {
344
- "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",
345
- "id": "path-13"
346
- }
347
- }), h("path", {
348
- "attrs": {
349
- "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",
350
- "id": "path-15"
351
- }
352
- })]), h("g", {
353
- "attrs": {
354
- "id": "el_QJeJ_2CDw5",
355
- "fillRule": "evenodd"
356
- }
357
- }, [h("g", {
358
- "attrs": {
359
- "id": "el_UYYCfubTRf"
360
- }
361
- }, [h("path", {
362
- "attrs": {
363
- "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",
364
- "id": "el_uzZNtK32Zi",
365
- "fillRule": "nonzero"
366
- },
367
- "style": {
368
- fill: '#0B6AFF'
369
- }
370
- }), h("path", {
371
- "attrs": {
372
- "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",
373
- "id": "el_EYKQ2N9Kgy",
374
- "fillRule": "nonzero"
375
- }
376
- }), h("g", {
377
- "attrs": {
378
- "id": "el_6SDP2LAgKC"
379
- }
380
- }, [h("mask", {
381
- "attrs": {
382
- "id": "mask-2",
383
- "fill": "#fff"
384
- }
385
- }, [h("use", {
386
- "attrs": {
387
- "xlink:href": "#path-1"
388
- }
389
- })]), h("path", {
390
- "attrs": {
391
- "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",
392
- "id": "el_-Vm65Ltfy7",
393
- "fillRule": "nonzero",
394
- "mask": "url(#mask-2)"
395
- }
396
- }), h("rect", {
397
- "attrs": {
398
- "id": "el_q04iZcSim4",
399
- "mask": "url(#mask-2)",
400
- "x": "0.279",
401
- "width": "77",
402
- "height": "130"
403
- }
404
- })]), h("g", {
405
- "attrs": {
406
- "id": "el_6WKby7wXqV"
407
- }
408
- }, [h("mask", {
409
- "attrs": {
410
- "id": "mask-4",
411
- "fill": "#fff"
412
- }
413
- }, [h("use", {
414
- "attrs": {
415
- "xlink:href": "#path-3"
416
- }
417
- })]), h("path", {
418
- "attrs": {
419
- "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",
420
- "id": "el_9bggsfQOtU",
421
- "fillRule": "nonzero",
422
- "mask": "url(#mask-4)"
423
- }
424
- }), h("rect", {
425
- "attrs": {
426
- "id": "el_NKxqi9eIym",
427
- "mask": "url(#mask-4)",
428
- "x": "0.279",
429
- "width": "77",
430
- "height": "115"
431
- }
432
- })]), h("g", {
433
- "attrs": {
434
- "id": "el_Wi-my975tM"
435
- }
436
- }, [h("mask", {
437
- "attrs": {
438
- "id": "mask-6",
439
- "fill": "#fff"
440
- }
441
- }, [h("use", {
442
- "attrs": {
443
- "xlink:href": "#path-5"
444
- }
445
- })]), h("path", {
446
- "attrs": {
447
- "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",
448
- "id": "el_zclQ34fvf7",
449
- "fillRule": "nonzero",
450
- "mask": "url(#mask-6)"
451
- }
452
- }), h("rect", {
453
- "attrs": {
454
- "id": "el_1OsvRT8HkeZ",
455
- "mask": "url(#mask-6)",
456
- "x": "0.279",
457
- "width": "77",
458
- "height": "100"
459
- }
460
- })]), h("g", {
461
- "attrs": {
462
- "id": "el_DkfFFTaFxy8"
463
- }
464
- }, [h("mask", {
465
- "attrs": {
466
- "id": "mask-8",
467
- "fill": "#fff"
468
- }
469
- }, [h("use", {
470
- "attrs": {
471
- "xlink:href": "#path-7"
472
- }
473
- })]), h("path", {
474
- "attrs": {
475
- "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",
476
- "id": "el_aa9sjx4H0vA",
477
- "fillRule": "nonzero",
478
- "mask": "url(#mask-8)"
479
- }
480
- }), h("rect", {
481
- "attrs": {
482
- "id": "el_tea114vWg0J",
483
- "mask": "url(#mask-8)",
484
- "x": "0.279",
485
- "width": "77",
486
- "height": "85"
487
- }
488
- })]), h("g", {
489
- "attrs": {
490
- "id": "el_34IgwiMB5rf"
491
- }
492
- }, [h("mask", {
493
- "attrs": {
494
- "id": "mask-10",
495
- "fill": "#fff"
496
- }
497
- }, [h("use", {
498
- "attrs": {
499
- "xlink:href": "#path-9"
500
- }
501
- })]), h("path", {
502
- "attrs": {
503
- "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",
504
- "id": "el_z5u6RAFhx7d",
505
- "fillRule": "nonzero",
506
- "mask": "url(#mask-10)"
507
- }
508
- }), h("rect", {
509
- "attrs": {
510
- "id": "el_7nfuWmA5Uhy",
511
- "mask": "url(#mask-10)",
512
- "x": "0.279",
513
- "width": "77",
514
- "height": "70"
515
- }
516
- })]), h("g", {
517
- "attrs": {
518
- "id": "el_DeebuCsPTGA"
519
- }
520
- }, [h("mask", {
521
- "attrs": {
522
- "id": "mask-12",
523
- "fill": "#fff"
524
- }
525
- }, [h("use", {
526
- "attrs": {
527
- "xlink:href": "#path-11"
528
- }
529
- })]), h("path", {
530
- "attrs": {
531
- "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",
532
- "id": "el__ZcqlS20zcw",
533
- "fillRule": "nonzero",
534
- "mask": "url(#mask-12)"
535
- }
536
- }), h("rect", {
537
- "attrs": {
538
- "id": "el_8DnEQnD7VWV",
539
- "mask": "url(#mask-12)",
540
- "x": "0.279",
541
- "width": "77",
542
- "height": "55"
543
- }
544
- })]), h("g", {
545
- "attrs": {
546
- "id": "el_ZOjjrPTvyrv"
547
- }
548
- }, [h("mask", {
549
- "attrs": {
550
- "id": "mask-14",
551
- "fill": "#fff"
552
- }
553
- }, [h("use", {
554
- "attrs": {
555
- "xlink:href": "#path-13"
556
- }
557
- })]), h("path", {
558
- "attrs": {
559
- "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",
560
- "id": "el_FYYKCI_u24e",
561
- "fillRule": "nonzero",
562
- "mask": "url(#mask-14)"
563
- }
564
- }), h("rect", {
565
- "attrs": {
566
- "id": "el_XZty4MnTp5Y",
567
- "mask": "url(#mask-14)",
568
- "x": "0.279",
569
- "width": "77",
570
- "height": "40"
571
- }
572
- })]), h("g", {
573
- "attrs": {
574
- "id": "el_2FATegVmf0K"
575
- }
576
- }, [h("mask", {
577
- "attrs": {
578
- "id": "mask-16",
579
- "fill": "#fff"
580
- }
581
- }, [h("use", {
582
- "attrs": {
583
- "xlink:href": "#path-15"
584
- }
585
- })]), h("path", {
586
- "attrs": {
587
- "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",
588
- "id": "el_RMT1KUfbdF8",
589
- "fillRule": "nonzero",
590
- "mask": "url(#mask-16)"
591
- }
592
- }), h("rect", {
593
- "attrs": {
594
- "id": "el_RgLcovvFiO1",
595
- "mask": "url(#mask-16)",
596
- "x": "0.279",
597
- "width": "77",
598
- "height": "25"
599
- }
600
- })])])])]);
601
- }
602
- };
603
-
604
- var STATUS = {
605
- inactive: 'INACTIVE',
606
- stopped: 'STOPPED',
607
- active: 'ACTIVE',
608
- denied: 'DENIED'
609
- };
610
- var Mic = {
611
- name: 'Mic',
612
- props: {
613
- children: vueTypes.types.title,
614
- lang: VueTypes.string.def('en-US'),
615
- iconPosition: VueTypes.string.def('left'),
616
- handleResult: vueTypes.types.func,
617
- onNoMatch: vueTypes.types.func,
618
- onError: vueTypes.types.func,
619
- getInstance: vueTypes.types.func,
620
- render: vueTypes.types.func,
621
- className: vueTypes.types.string,
622
- applyClearStyle: VueTypes.bool,
623
- showIcon: VueTypes.bool
624
- },
625
- methods: {
626
- getComponent: function getComponent() {
627
- var status = this.$data.status;
628
- var data = {
629
- handleClick: this.handleClick,
630
- status: status
631
- };
632
- return index.getComponent(data, this);
633
- },
634
- stopMic: function stopMic() {
635
- if (this.instance) {
636
- this.status = STATUS.inactive;
637
- this.instance.stop();
638
- this.instance = null;
639
- }
640
- },
641
- handleClick: function handleClick() {
642
- var _this = this;
643
-
644
- this.results = [];
645
-
646
- if (window && window.SpeechRecognition) {
647
- var status = this.$data.status;
648
-
649
- if (status === STATUS.active) {
650
- this.status = STATUS.inactive;
651
- }
652
-
653
- var _this$$props = this.$props,
654
- handleResult = _this$$props.handleResult,
655
- onNoMatch = _this$$props.onNoMatch,
656
- onError = _this$$props.onError,
657
- lang = _this$$props.lang,
658
- getInstance = _this$$props.getInstance;
659
- var _window = window,
660
- SpeechRecognition = _window.SpeechRecognition;
661
-
662
- if (this.instance && this.status !== STATUS.denied) {
663
- this.status = STATUS.inactive;
664
- this.instance.stop();
665
- this.instance = null;
666
- return;
667
- }
668
-
669
- this.instance = new SpeechRecognition();
670
- this.instance.continuous = true;
671
- this.instance.interimResults = true;
672
- this.instance.lang = lang;
673
-
674
- if (getInstance) {
675
- getInstance(this.instance);
676
- }
677
-
678
- this.instance.start();
679
-
680
- this.instance.onstart = function () {
681
- _this.status = STATUS.active;
682
- };
683
-
684
- this.instance.onresult = function (_ref) {
685
- var results = _ref.results,
686
- timeStamp = _ref.timeStamp;
687
-
688
- _this.stopMic();
689
-
690
- if (handleResult) {
691
- handleResult({
692
- results: results,
693
- timeStamp: timeStamp
694
- });
695
- }
696
-
697
- _this.results.push({
698
- results: results,
699
- timeStamp: timeStamp
700
- });
701
- };
702
-
703
- this.instance.onnomatch = function (e) {
704
- return onNoMatch ? onNoMatch(e) : console.warn(e);
705
- };
706
-
707
- this.instance.onerror = function (e) {
708
- if (e.error === 'no-speech' || e.error === 'audio-capture') {
709
- _this.status = STATUS.inactive;
710
- } else if (e.error === 'not-allowed') {
711
- _this.status = STATUS.denied;
712
- }
713
-
714
- console.error(e);
715
-
716
- if (onError) {
717
- onError(e);
718
- }
719
- };
720
- /* Below Two methods run when Continuous is False */
721
-
722
-
723
- this.instance.onspeechend = function () {
724
- _this.status = STATUS.inactive;
725
- };
726
-
727
- this.instance.onaudioend = function () {
728
- _this.status = STATUS.inactive;
729
- };
730
- }
731
- }
732
- },
733
- computed: {
734
- hasCustomRenderer: function hasCustomRenderer() {
735
- return index.hasCustomRenderer(this);
736
- },
737
- Icon: function Icon() {
738
- var h = this.$createElement;
739
- var status = this.$data.status;
740
- var className = this.$props.className;
741
-
742
- switch (status) {
743
- case STATUS.active:
744
- return h(ListenSvg, {
745
- "attrs": {
746
- "className": className
747
- },
748
- "nativeOn": {
749
- "click": this.handleClick
750
- }
751
- });
752
-
753
- case STATUS.stopped:
754
- case STATUS.denied:
755
- return h(MuteSvg, {
756
- "attrs": {
757
- "className": className
758
- },
759
- "nativeOn": {
760
- "click": this.handleClick
761
- }
762
- });
763
-
764
- default:
765
- return h(MicSvg, {
766
- "attrs": {
767
- "className": className
768
- },
769
- "nativeOn": {
770
- "click": this.handleClick
771
- }
772
- });
773
- }
774
- }
775
- },
776
- data: function data() {
777
- return {
778
- status: STATUS.inactive
779
- };
780
- },
781
- created: function created() {
782
- this.results = [];
783
-
784
- if (typeof window !== 'undefined') {
785
- window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition || null;
786
-
787
- if (!window.SpeechRecognition) {
788
- 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.');
789
- }
790
- }
791
- },
792
- render: function render() {
793
- var h = arguments[0];
794
-
795
- if (this.hasCustomRenderer) {
796
- return this.getComponent();
797
- }
798
-
799
- return h(CancelSvg.IconWrapper, [this.Icon]);
800
- }
801
- };
802
-
803
- var CustomSvg = {
804
- name: 'CustomSvg',
805
- props: {
806
- className: String,
807
- icon: Function,
808
- type: String
809
- },
810
- data: function data() {
811
- return {
812
- customIcon: this.$props.icon && typeof this.$props.icon === 'function' ? this.$props.icon() : null
813
- };
814
- },
815
- render: function render() {
816
- var h = arguments[0];
817
-
818
- if (this.customIcon) {
819
- return h("div", {
820
- "class": this.$props.className
821
- }, [this.customIcon]);
822
- }
823
-
824
- if (this.$props.type === 'recent-search-icon') {
825
- return h("svg", {
826
- "attrs": {
827
- "xmlns": "http://www.w3.org/2000/svg",
828
- "alt": "Recent Search",
829
- "height": "20",
830
- "width": "20",
831
- "viewBox": "0 0 24 24"
832
- },
833
- "style": {
834
- fill: '#707070'
835
- },
836
- "class": this.$props.className
837
- }, [h("path", {
838
- "attrs": {
839
- "d": "M0 0h24v24H0z",
840
- "fill": "none"
841
- }
842
- }), h("path", {
843
- "attrs": {
844
- "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"
845
- }
846
- })]);
847
- }
848
-
849
- if (this.$props.type === 'promoted-search-icon') {
850
- return h("svg", {
851
- "attrs": {
852
- "xmlns": "http://www.w3.org/2000/svg",
853
- "width": "20",
854
- "alt": "promoted search",
855
- "height": "20",
856
- "viewBox": "0 0 24 24"
857
- },
858
- "class": this.$props.className,
859
- "style": {
860
- fill: '#707070'
861
- }
862
- }, [h("path", {
863
- "attrs": {
864
- "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"
865
- }
866
- })]);
867
- }
868
-
869
- if (this.$props.type === 'popular-search-icon') {
870
- return h("svg", {
871
- "attrs": {
872
- "xmlns": "http://www.w3.org/2000/svg",
873
- "alt": "Popular Search",
874
- "height": "20",
875
- "width": "20",
876
- "viewBox": "0 0 24 24"
877
- },
878
- "style": {
879
- fill: '#707070'
880
- },
881
- "class": this.$props.className
882
- }, [h("path", {
883
- "attrs": {
884
- "d": "M0 0h24v24H0z",
885
- "fill": "none"
886
- }
887
- }), h("path", {
888
- "attrs": {
889
- "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"
890
- }
891
- })]);
892
- }
893
-
894
- return h(SearchSvg, {
895
- "attrs": {
896
- "styles": {
897
- position: 'relative',
898
- fill: '#707070',
899
- left: '3px',
900
- marginRight: '8px'
901
- }
902
- }
903
- });
904
- }
905
- };
906
-
907
- var _templateObject$6, _templateObject2;
908
- var TagsContainer = styled__default('div')(_templateObject$6 || (_templateObject$6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"])));
909
- 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"])));
910
-
911
- var updateQuery = configureStore.Actions.updateQuery,
912
- setQueryOptions = configureStore.Actions.setQueryOptions,
913
- setCustomQuery = configureStore.Actions.setCustomQuery,
914
- setDefaultQuery = configureStore.Actions.setDefaultQuery,
915
- setCustomHighlightOptions = configureStore.Actions.setCustomHighlightOptions,
916
- recordSuggestionClick = configureStore.Actions.recordSuggestionClick,
917
- loadPopularSuggestions = configureStore.Actions.loadPopularSuggestions,
918
- getRecentSearches = configureStore.Actions.getRecentSearches,
919
- resetStoreForComponent = configureStore.Actions.resetStoreForComponent;
920
- var debounce = configureStore.helper.debounce,
921
- checkValueChange = configureStore.helper.checkValueChange,
922
- getClassName$1 = configureStore.helper.getClassName,
923
- extractQueryFromCustomQuery = configureStore.helper.extractQueryFromCustomQuery,
924
- getOptionsForCustomQuery = configureStore.helper.getOptionsForCustomQuery,
925
- isEqual = configureStore.helper.isEqual,
926
- getCompositeAggsQuery = configureStore.helper.getCompositeAggsQuery,
927
- withClickIds = configureStore.helper.withClickIds,
928
- getResultStats = configureStore.helper.getResultStats,
929
- handleOnSuggestions = configureStore.helper.handleOnSuggestions,
930
- getTopSuggestions = configureStore.helper.getTopSuggestions,
931
- normalizeDataField = configureStore.helper.normalizeDataField;
932
- var DataSearch = {
933
- name: 'DataSearch',
934
- isTagsMode: false,
935
- data: function data() {
936
- var props = this.$props;
937
- this.__state = {
938
- currentValue: '',
939
- selectedTags: [],
940
- isOpen: false,
941
- normalizedSuggestions: [],
942
- isPending: false
943
- };
944
- this.internalComponent = props.componentId + "__internal";
945
- return this.__state;
946
- },
947
- inject: {
948
- theme: {
949
- from: 'theme_reactivesearch'
950
- }
951
- },
952
- created: function created() {
953
- var _this$$props = this.$props,
954
- enableQuerySuggestions = _this$$props.enableQuerySuggestions,
955
- renderQuerySuggestions = _this$$props.renderQuerySuggestions,
956
- enableRecentSearches = _this$$props.enableRecentSearches,
957
- distinctField = _this$$props.distinctField,
958
- distinctFieldConfig = _this$$props.distinctFieldConfig,
959
- index$1 = _this$$props.index,
960
- mode = _this$$props.mode;
961
-
962
- if (mode === constants.SEARCH_COMPONENTS_MODES.TAG) {
963
- this.$options.isTagsMode = true;
964
- } // TODO: Remove in 2.0
965
-
966
-
967
- if (enableQuerySuggestions) {
968
- console.warn('Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead.');
969
- } // TODO: Remove in 2.0
970
-
971
-
972
- if (renderQuerySuggestions) {
973
- console.warn('Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead.');
974
- }
975
-
976
- if (this.enableAppbase && this.aggregationField && this.aggregationField !== '') {
977
- console.warn('Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead.');
978
- }
979
-
980
- if (!this.enableAppbase && (distinctField || distinctFieldConfig)) {
981
- console.warn('Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
982
- }
983
-
984
- if (!this.enableAppbase && index$1) {
985
- console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
986
- }
987
-
988
- this.currentValue = '';
989
-
990
- if (this.$options.isTagsMode) {
991
- this.currentValue = '';
992
- }
993
-
994
- var shouldFetchInitialSuggestions = this.$props.enableDefaultSuggestions || this.currentValue;
995
-
996
- if (shouldFetchInitialSuggestions) {
997
- this.loadPopularSuggestions(this.$props.componentId);
998
-
999
- if (enableRecentSearches) {
1000
- this.getRecentSearches();
1001
- }
1002
- }
1003
-
1004
- this.handleTextChange = debounce(this.handleText, this.$props.debounce); // Set custom and default queries in store
1005
-
1006
- index.updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
1007
- index.updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
1008
- },
1009
- computed: {
1010
- suggestionsList: function suggestionsList() {
1011
- var suggestionsList = [];
1012
-
1013
- if (!this.$data.currentValue && this.$props.defaultSuggestions && this.$props.defaultSuggestions.length) {
1014
- suggestionsList = this.$props.defaultSuggestions;
1015
- } else if (this.$data.currentValue) {
1016
- suggestionsList = this.normalizedSuggestions;
1017
- }
1018
-
1019
- return withClickIds(suggestionsList);
1020
- },
1021
- topSuggestions: function topSuggestions() {
1022
- if (!this.currentValue) {
1023
- return [];
1024
- }
1025
-
1026
- return this.enableQuerySuggestions || this.enablePopularSuggestions ? this.normalizedPopularSuggestions : [];
1027
- },
1028
- normalizedRecentSearches: function normalizedRecentSearches() {
1029
- return this.recentSearches || [];
1030
- },
1031
- normalizedPopularSuggestions: function normalizedPopularSuggestions() {
1032
- return getTopSuggestions( // use default popular suggestions if value is empty
1033
- this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue, this.showDistinctSuggestions);
1034
- },
1035
- defaultSearchSuggestions: function defaultSearchSuggestions() {
1036
- var isPopularSuggestionsEnabled = this.enableQuerySuggestions || this.enablePopularSuggestions;
1037
-
1038
- if (this.currentValue || !this.enableDefaultSuggestions) {
1039
- return [];
1040
- }
1041
-
1042
- var customDefaultPopularSuggestions = (this.defaultPopularSuggestions || []).map(function (suggestion) {
1043
- return _rollupPluginBabelHelpers._extends({}, suggestion, {
1044
- _popular_suggestion: true
1045
- });
1046
- });
1047
- var customNormalizedRecentSearches = (this.normalizedRecentSearches || []).map(function (search) {
1048
- return _rollupPluginBabelHelpers._extends({}, search, {
1049
- _recent_search: true
1050
- });
1051
- });
1052
- var defaultSuggestions = isPopularSuggestionsEnabled ? [].concat(customNormalizedRecentSearches, customDefaultPopularSuggestions || []) : customNormalizedRecentSearches;
1053
- return getTopSuggestions( // use default popular suggestions if value is empty
1054
- defaultSuggestions, this.currentValue, this.showDistinctSuggestions);
1055
- },
1056
- hasCustomRenderer: function hasCustomRenderer() {
1057
- return index.hasCustomRenderer(this);
1058
- },
1059
- stats: function stats() {
1060
- return getResultStats(this);
1061
- }
1062
- },
1063
- props: {
1064
- options: vueTypes.types.options,
1065
- autoFocus: VueTypes.bool,
1066
- autosuggest: VueTypes.bool.def(true),
1067
- beforeValueChange: vueTypes.types.func,
1068
- className: VueTypes.string.def(''),
1069
- clearIcon: vueTypes.types.children,
1070
- componentId: vueTypes.types.stringRequired,
1071
- customHighlight: vueTypes.types.func,
1072
- customQuery: vueTypes.types.func,
1073
- defaultQuery: vueTypes.types.func,
1074
- dataField: VueTypes.oneOfType([VueTypes.string, VueTypes.shape({
1075
- field: VueTypes.string,
1076
- weight: VueTypes.number
1077
- }), VueTypes.arrayOf(VueTypes.string), VueTypes.arrayOf({
1078
- field: VueTypes.string,
1079
- weight: VueTypes.number
1080
- })]),
1081
- aggregationField: vueTypes.types.string,
1082
- aggregationSize: VueTypes.number,
1083
- size: VueTypes.number,
1084
- debounce: VueTypes.number.def(0),
1085
- defaultValue: vueTypes.types.string,
1086
- excludeFields: vueTypes.types.excludeFields,
1087
- value: VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string), vueTypes.types.value]),
1088
- defaultSuggestions: vueTypes.types.suggestions,
1089
- enableSynonyms: VueTypes.bool.def(true),
1090
- enableQuerySuggestions: VueTypes.bool.def(false),
1091
- enablePopularSuggestions: VueTypes.bool.def(false),
1092
- enableRecentSearches: VueTypes.bool.def(false),
1093
- fieldWeights: vueTypes.types.fieldWeights,
1094
- filterLabel: vueTypes.types.string,
1095
- fuzziness: vueTypes.types.fuzziness,
1096
- highlight: VueTypes.bool,
1097
- highlightField: vueTypes.types.stringOrArray,
1098
- icon: vueTypes.types.children,
1099
- iconPosition: VueTypes.oneOf(['left', 'right']).def('left'),
1100
- includeFields: vueTypes.types.includeFields,
1101
- innerClass: vueTypes.types.style,
1102
- innerRef: VueTypes.string.def('searchInputField'),
1103
- render: vueTypes.types.func,
1104
- renderQuerySuggestions: vueTypes.types.func,
1105
- renderPopularSuggestions: vueTypes.types.func,
1106
- parseSuggestion: vueTypes.types.func,
1107
- renderNoSuggestion: vueTypes.types.title,
1108
- renderError: vueTypes.types.title,
1109
- placeholder: VueTypes.string.def('Search'),
1110
- queryFormat: VueTypes.oneOf(['and', 'or']).def('or'),
1111
- react: vueTypes.types.react,
1112
- showClear: VueTypes.bool.def(true),
1113
- showDistinctSuggestions: VueTypes.bool.def(true),
1114
- showFilter: VueTypes.bool.def(true),
1115
- showIcon: VueTypes.bool.def(true),
1116
- title: vueTypes.types.title,
1117
- theme: vueTypes.types.style,
1118
- URLParams: VueTypes.bool.def(false),
1119
- strictSelection: VueTypes.bool.def(false),
1120
- nestedField: vueTypes.types.string,
1121
- enablePredictiveSuggestions: VueTypes.bool.def(false),
1122
- recentSearchesIcon: VueTypes.any,
1123
- popularSearchesIcon: VueTypes.any,
1124
- // mic props
1125
- showVoiceSearch: VueTypes.bool.def(false),
1126
- getMicInstance: vueTypes.types.func,
1127
- renderMic: vueTypes.types.func,
1128
- distinctField: vueTypes.types.string,
1129
- distinctFieldConfig: vueTypes.types.props,
1130
- //
1131
- focusShortcuts: VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string, VueTypes.number])).def(['/']),
1132
- addonBefore: VueTypes.any,
1133
- addonAfter: VueTypes.any,
1134
- expandSuggestionsContainer: VueTypes.bool.def(true),
1135
- index: VueTypes.string,
1136
- enableDefaultSuggestions: VueTypes.bool.def(true),
1137
- mode: VueTypes.oneOf(['select', 'tag']).def('select'),
1138
- renderSelectedTags: VueTypes.any,
1139
- endpoint: vueTypes.types.endpointConfig
1140
- },
1141
- beforeMount: function beforeMount() {
1142
- if (this.$props.highlight) {
1143
- if (this.customHighlight && typeof this.customHighlight === 'function') {
1144
- this.setCustomHighlightOptions(this.componentId, this.customHighlight(this.$props));
1145
- }
1146
-
1147
- var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1148
- this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1149
- this.setQueryOptions(this.$props.componentId, this.queryOptions);
1150
- } else {
1151
- this.queryOptions = this.getBasicQueryOptions();
1152
- this.setQueryOptions(this.$props.componentId, this.queryOptions);
1153
- }
1154
-
1155
- if (this.selectedValue) {
1156
- this.setValue(this.selectedValue, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1157
- } else if (this.$props.value) {
1158
- this.setValue(this.$props.value, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1159
- } else if (this.$props.defaultValue) {
1160
- this.setValue(this.$props.defaultValue, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1161
- }
1162
- },
1163
- mounted: function mounted() {
1164
- this.listenForFocusShortcuts();
1165
- },
1166
- watch: {
1167
- highlight: function highlight() {
1168
- this.updateQueryOptions();
1169
- },
1170
- dataField: function dataField() {
1171
- this.updateQueryOptions();
1172
- this.updateQueryHandler(this.$props.componentId, this.$options.isTagsMode ? this.$data.selectedTags : this.$data.currentValue, this.$props);
1173
- },
1174
- highlightField: function highlightField() {
1175
- this.updateQueryOptions();
1176
- },
1177
- fieldWeights: function fieldWeights() {
1178
- this.updateQueryHandler(this.$props.componentId, this.$options.isTagsMode ? this.$data.selectedTags : this.$data.currentValue, this.$props);
1179
- },
1180
- fuzziness: function fuzziness() {
1181
- this.updateQueryHandler(this.$props.componentId, this.$options.isTagsMode ? this.$data.selectedTags : this.$data.currentValue, this.$props);
1182
- },
1183
- queryFormat: function queryFormat() {
1184
- this.updateQueryHandler(this.$props.componentId, this.$options.isTagsMode ? this.$data.selectedTags : this.$data.currentValue, this.$props);
1185
- },
1186
- defaultValue: function defaultValue(newVal) {
1187
- this.setValue(newVal, true, this.$props);
1188
- },
1189
- value: function value(newVal, oldVal) {
1190
- if (!isEqual(newVal, oldVal)) {
1191
- if (this.isPending && this.$options.isTagsMode && Array.isArray(newVal)) {
1192
- this.isPending = false;
1193
- }
1194
-
1195
- this.setValue(newVal, true, this.$props, undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
1196
- }
1197
- },
1198
- defaultQuery: function defaultQuery(newVal, oldVal) {
1199
- if (!index.isQueryIdentical(newVal, oldVal, this.$data.currentValue, this.$props)) {
1200
- this.updateDefaultQueryHandler(this.$data.currentValue, this.$props);
1201
- }
1202
- },
1203
- customQuery: function customQuery(newVal, oldVal) {
1204
- if (!index.isQueryIdentical(newVal, oldVal, this.$data.currentValue, this.$props)) {
1205
- this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
1206
- }
1207
- },
1208
- suggestions: function suggestions(newVal) {
1209
- if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
1210
- // shallow check allows us to set suggestions even if the next set
1211
- // of suggestions are same as the current one
1212
- this.$emit('suggestions', newVal);
1213
- this.normalizedSuggestions = this.onSuggestions(newVal);
1214
- }
1215
- },
1216
- selectedValue: function selectedValue(newVal, oldVal) {
1217
- if (!isEqual(newVal, oldVal) && (this.$options.isTagsMode ? !isEqual(this.$data.selectedTags, newVal) : this.$data.currentValue !== newVal)) {
1218
- if (!newVal && this.$data.currentValue) {
1219
- // selected value is cleared, call onValueSelected
1220
- this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1221
- }
1222
-
1223
- if (this.$options.isTagsMode) {
1224
- // handling reset of tags through SelectedFilters or URL
1225
- this.selectedTags = [];
1226
- }
1227
-
1228
- this.setValue(newVal || '', true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
1229
- }
1230
- },
1231
- focusShortcuts: function focusShortcuts() {
1232
- this.listenForFocusShortcuts();
1233
- }
1234
- },
1235
- methods: {
1236
- handleText: function handleText(value) {
1237
- if (this.$props.autosuggest) {
1238
- this.updateDefaultQueryHandler(value, this.$props);
1239
- } else {
1240
- this.updateQueryHandler(this.$props.componentId, value, this.$props);
1241
- }
1242
- },
1243
- validateDataField: function validateDataField() {
1244
- var propName = 'dataField';
1245
- var componentName = DataSearch.name;
1246
- var props = this.$props;
1247
- var requiredError = propName + " supplied to " + componentName + " is required. Validation failed.";
1248
- var propValue = props[propName];
1249
-
1250
- if (!this.enableAppbase) {
1251
- if (!propValue) {
1252
- console.error(requiredError);
1253
- return;
1254
- }
1255
-
1256
- if (typeof propValue !== 'string' && typeof propValue !== 'object' && !Array.isArray(propValue)) {
1257
- console.error("Invalid " + propName + " supplied to " + componentName + ". Validation failed.");
1258
- return;
1259
- }
1260
-
1261
- if (Array.isArray(propValue) && propValue.length === 0) {
1262
- console.error(requiredError);
1263
- }
1264
- }
1265
- },
1266
- updateQueryOptions: function updateQueryOptions() {
1267
- if (this.customHighlight && typeof this.customHighlight === 'function') {
1268
- this.setCustomHighlightOptions(this.componentId, this.customHighlight(this.$props));
1269
- }
1270
-
1271
- var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1272
- this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1273
- this.setQueryOptions(this.$props.componentId, this.queryOptions);
1274
- },
1275
- getComponent: function getComponent(downshiftProps, isQuerySuggestionsRender) {
1276
- if (downshiftProps === void 0) {
1277
- downshiftProps = {};
1278
- }
1279
-
1280
- if (isQuerySuggestionsRender === void 0) {
1281
- isQuerySuggestionsRender = false;
1282
- }
1283
-
1284
- var currentValue = this.$data.currentValue;
1285
- var data = {
1286
- error: this.error,
1287
- loading: this.isLoading,
1288
- downshiftProps: downshiftProps,
1289
- data: this.suggestionsList,
1290
- promotedData: this.promotedResults,
1291
- aggregationData: this.aggregationData,
1292
- rawData: this.rawData,
1293
- customData: this.customData,
1294
- value: currentValue,
1295
- triggerClickAnalytics: this.triggerClickAnalytics,
1296
- resultStats: this.stats,
1297
- querySuggestions: this.normalizedPopularSuggestions,
1298
- popularSuggestions: this.normalizedPopularSuggestions
1299
- };
1300
-
1301
- if (isQuerySuggestionsRender) {
1302
- return index.getQuerySuggestionsComponent({
1303
- downshiftProps: downshiftProps,
1304
- data: this.normalizedPopularSuggestions,
1305
- value: currentValue,
1306
- loading: this.isLoading,
1307
- error: this.error
1308
- }, this);
1309
- }
1310
-
1311
- return index.getComponent(data, this);
1312
- },
1313
- // returns size and aggs property
1314
- getBasicQueryOptions: function getBasicQueryOptions() {
1315
- var aggregationField = this.$props.aggregationField;
1316
- var queryOptions = helper.getQueryOptions(this.$props);
1317
-
1318
- if (aggregationField) {
1319
- queryOptions.aggs = getCompositeAggsQuery({
1320
- props: this.$props,
1321
- showTopHits: true
1322
- }).aggs;
1323
- }
1324
-
1325
- return queryOptions;
1326
- },
1327
- onSuggestions: function onSuggestions(results) {
1328
- return handleOnSuggestions(results, this.$data.currentValue, this);
1329
- },
1330
- handleSearchIconClick: function handleSearchIconClick() {
1331
- var currentValue = this.currentValue;
1332
-
1333
- if (currentValue.trim()) {
1334
- this.isPending = false;
1335
- this.setValue(currentValue, true);
1336
- this.onValueSelectedHandler(currentValue, configureStore.causes.SEARCH_ICON_CLICK);
1337
- }
1338
- },
1339
- setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, isTagsMode) {
1340
- var _this = this;
1341
-
1342
- if (isDefaultValue === void 0) {
1343
- isDefaultValue = false;
1344
- }
1345
-
1346
- if (props === void 0) {
1347
- props = this.$props;
1348
- }
1349
-
1350
- if (toggleIsOpen === void 0) {
1351
- toggleIsOpen = true;
1352
- }
1353
-
1354
- if (isTagsMode === void 0) {
1355
- isTagsMode = this.$options.isTagsMode;
1356
- }
1357
-
1358
- var performUpdate = function performUpdate() {
1359
- if (isTagsMode && isEqual(value, _this.selectedTags)) {
1360
- return;
1361
- } // Refresh recent searches when value becomes empty
1362
-
1363
-
1364
- if (!value && props.enableDefaultSuggestions === false) {
1365
- _this.resetStoreForComponent(props.componentId);
1366
- } else if (!value && _this.currentValue && _this.enableRecentSearches) {
1367
- _this.getRecentSearches();
1368
- }
1369
-
1370
- if (isTagsMode) {
1371
- if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
1372
- // check if value already present in selectedTags
1373
- if (typeof value === 'string' && _this.selectedTags.includes(value)) {
1374
- _this.isOpen = false;
1375
- return;
1376
- }
1377
-
1378
- _this.selectedTags = [].concat(_this.selectedTags);
1379
-
1380
- if (typeof value === 'string' && !!value) {
1381
- _this.selectedTags.push(value);
1382
- } else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
1383
- var mergedArray = Array.from(new Set([].concat(_this.selectedTags, value)));
1384
- _this.selectedTags = mergedArray;
1385
- }
1386
- } else if (value) {
1387
- _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
1388
- }
1389
-
1390
- _this.currentValue = '';
1391
- } else {
1392
- _this.currentValue = value;
1393
- }
1394
-
1395
- var queryHandlerValue = value;
1396
-
1397
- if (isTagsMode) {
1398
- queryHandlerValue = Array.isArray(_this.selectedTags) && _this.selectedTags.length ? _this.selectedTags : undefined;
1399
- }
1400
-
1401
- if (isDefaultValue) {
1402
- if (_this.$props.autosuggest) {
1403
- if (toggleIsOpen) {
1404
- _this.isOpen = false;
1405
- }
1406
-
1407
- if (typeof value === 'string') _this.updateDefaultQueryHandler(value, _this.$props);
1408
- } // in case of strict selection only SUGGESTION_SELECT should be able
1409
- // to set the query otherwise the value should reset
1410
-
1411
-
1412
- if (props.strictSelection) {
1413
- if (cause === configureStore.causes.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
1414
- _this.updateQueryHandler(props.componentId, queryHandlerValue, props);
1415
- } else {
1416
- _this.setValue('', true);
1417
- }
1418
- } else {
1419
- _this.updateQueryHandler(props.componentId, queryHandlerValue, props);
1420
- }
1421
- } else {
1422
- // debounce for handling text while typing
1423
- _this.handleTextChange(value);
1424
- }
1425
-
1426
- _this.$emit('valueChange', value);
1427
-
1428
- _this.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1429
-
1430
-
1431
- if (value === _this.lastUsedQuery) {
1432
- _this.suggestions = _this.onSuggestions(_this.suggestions); // invoke on suggestions
1433
-
1434
- _this.$emit('suggestions', _this.suggestions);
1435
- } else if (!value) {
1436
- // reset suggestions
1437
- _this.suggestions = []; // invoke on suggestions
1438
-
1439
- _this.$emit('suggestions', _this.suggestions);
1440
- }
1441
- };
1442
-
1443
- checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
1444
- },
1445
- updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
1446
- if (!value && props.enableDefaultSuggestions === false) {
1447
- // clear Component data from store
1448
- this.resetStoreForComponent(props.componentId);
1449
- return;
1450
- }
1451
-
1452
- var defaultQueryOptions;
1453
- var query = DataSearch.defaultQuery(value, props);
1454
-
1455
- if (this.defaultQuery) {
1456
- var defaultQueryToBeSet = this.defaultQuery(value, props) || {};
1457
- var defaultQueryObj = extractQueryFromCustomQuery(defaultQueryToBeSet);
1458
-
1459
- if (defaultQueryObj) {
1460
- query = defaultQueryObj;
1461
- }
1462
-
1463
- defaultQueryOptions = getOptionsForCustomQuery(defaultQueryToBeSet); // Update calculated default query in store
1464
-
1465
- index.updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1466
- }
1467
-
1468
- this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends({}, this.queryOptions, defaultQueryOptions), false);
1469
- this.updateQuery({
1470
- componentId: this.internalComponent,
1471
- query: query,
1472
- value: value,
1473
- componentType: constants.componentTypes.dataSearch
1474
- });
1475
- },
1476
- updateQueryHandler: function updateQueryHandler(componentId, value, props) {
1477
- var customQuery = props.customQuery,
1478
- filterLabel = props.filterLabel,
1479
- showFilter = props.showFilter,
1480
- URLParams = props.URLParams;
1481
- var customQueryOptions;
1482
- var defaultQueryTobeSet = DataSearch.defaultQuery(value, props);
1483
- var query = defaultQueryTobeSet;
1484
-
1485
- if (customQuery) {
1486
- var customQueryTobeSet = customQuery(value, props);
1487
- var queryTobeSet = extractQueryFromCustomQuery(customQueryTobeSet);
1488
-
1489
- if (queryTobeSet) {
1490
- query = queryTobeSet;
1491
- }
1492
-
1493
- customQueryOptions = getOptionsForCustomQuery(customQueryTobeSet);
1494
- index.updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1495
- this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends({}, this.queryOptions, customQueryOptions), false);
1496
- }
1497
-
1498
- if (!this.isPending) {
1499
- this.updateQuery({
1500
- componentId: componentId,
1501
- query: query,
1502
- value: value,
1503
- label: filterLabel,
1504
- showFilter: showFilter,
1505
- URLParams: URLParams,
1506
- componentType: 'DATASEARCH'
1507
- });
1508
- }
1509
- },
1510
- // need to review
1511
- handleFocus: function handleFocus(event) {
1512
- this.isOpen = true;
1513
- this.$emit('focus', event);
1514
- },
1515
- handleVoiceResults: function handleVoiceResults(_ref) {
1516
- var results = _ref.results;
1517
-
1518
- if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
1519
- this.isPending = false;
1520
- this.setValue(results[0][0].transcript.trim(), true);
1521
- }
1522
- },
1523
- triggerQuery: function triggerQuery(_temp) {
1524
- var _ref2 = _temp === void 0 ? false : _temp,
1525
- _ref2$isOpen = _ref2.isOpen,
1526
- isOpen = _ref2$isOpen === void 0 ? false : _ref2$isOpen;
1527
-
1528
- var value = this.$props.value;
1529
-
1530
- if (value !== undefined) {
1531
- this.isPending = false;
1532
- this.setValue(this.$props.value, !isOpen);
1533
- }
1534
- },
1535
- triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
1536
- // click analytics would only work client side and after javascript loads
1537
- var docId = documentId;
1538
-
1539
- if (!docId) {
1540
- var hitData = this.suggestionsList.find(function (hit) {
1541
- return hit._click_id === searchPosition;
1542
- });
1543
-
1544
- if (hitData && hitData.source && hitData.source._id) {
1545
- docId = hitData.source._id;
1546
- }
1547
- }
1548
-
1549
- this.recordSuggestionClick(searchPosition, docId);
1550
- },
1551
- clearValue: function clearValue() {
1552
- this.isPending = false;
1553
- this.setValue('', true);
1554
- this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1555
- },
1556
- handleKeyDown: function handleKeyDown(event, highlightedIndex) {
1557
- var value = this.$props.value;
1558
-
1559
- if (value !== undefined) {
1560
- this.isPending = true;
1561
- } // if a suggestion was selected, delegate the handling to suggestion handler
1562
-
1563
-
1564
- if (event.key === 'Enter' && highlightedIndex === null) {
1565
- this.setValue(event.target.value, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined // to handle tags
1566
- );
1567
- this.onValueSelectedHandler(event.target.value, configureStore.causes.ENTER_PRESS);
1568
- } // Need to review
1569
-
1570
-
1571
- this.$emit('keyDown', event, this.triggerQuery);
1572
- this.$emit('key-down', event, this.triggerQuery);
1573
- },
1574
- onInputChange: function onInputChange(e) {
1575
- var _this2 = this;
1576
-
1577
- var inputValue = e.target.value;
1578
-
1579
- if (!this.$data.isOpen) {
1580
- this.isOpen = true;
1581
- }
1582
-
1583
- var _this$$props2 = this.$props,
1584
- value = _this$$props2.value,
1585
- autosuggest = _this$$props2.autosuggest;
1586
-
1587
- if (value === undefined) {
1588
- this.setValue(inputValue, false, this.$props, undefined, true, false);
1589
- } else {
1590
- this.isPending = true;
1591
- this.$emit('change', inputValue, function (_temp2) {
1592
- var _ref3 = _temp2 === void 0 ? {} : _temp2,
1593
- _ref3$isOpen = _ref3.isOpen,
1594
- isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen;
1595
-
1596
- if (_this2.$options.isTagsMode && autosuggest) {
1597
- _this2.currentValue = value;
1598
- _this2.isOpen = isOpen;
1599
-
1600
- _this2.updateDefaultQueryHandler(_this2.currentValue, _this2.$props);
1601
-
1602
- return;
1603
- }
1604
-
1605
- _this2.triggerQuery({
1606
- isOpen: isOpen
1607
- });
1608
- }, e);
1609
- }
1610
- },
1611
- onSuggestionSelected: function onSuggestionSelected(suggestion) {
1612
- var value = this.$props.value; // Record analytics for selected suggestions
1613
-
1614
- this.triggerClickAnalytics(suggestion._click_id);
1615
-
1616
- if (value === undefined) {
1617
- this.setValue(suggestion.value, true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1618
- } else if (this.$options.isTagsMode) {
1619
- var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
1620
-
1621
- if (this.selectedTags.includes(suggestion.value)) {
1622
- // avoid duplicates in tags array
1623
- this.isOpen = false;
1624
- return;
1625
- }
1626
-
1627
- emitValue.push(suggestion.value);
1628
- this.setValue(emitValue, true, this.$props, configureStore.causes.SUGGESTION_SELECT, true);
1629
- this.$emit('change', emitValue, this.triggerQuery);
1630
- } else {
1631
- this.$emit('change', suggestion.value, this.triggerQuery);
1632
- }
1633
-
1634
- this.isPending = false;
1635
- this.onValueSelectedHandler(suggestion.value, configureStore.causes.SUGGESTION_SELECT, suggestion.source);
1636
- },
1637
- onValueSelectedHandler: function onValueSelectedHandler(currentValue) {
1638
- if (currentValue === void 0) {
1639
- currentValue = this.$data.currentValue;
1640
- }
1641
-
1642
- for (var _len = arguments.length, cause = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1643
- cause[_key - 1] = arguments[_key];
1644
- }
1645
-
1646
- this.$emit.apply(this, ['valueSelected', currentValue].concat(cause));
1647
- this.$emit.apply(this, ['value-selected', currentValue].concat(cause));
1648
- },
1649
- handleStateChange: function handleStateChange(changes) {
1650
- var isOpen = changes.isOpen;
1651
- this.isOpen = isOpen;
1652
- },
1653
- getBackgroundColor: function getBackgroundColor(highlightedIndex, index) {
1654
- var isDark = this.themePreset === 'dark';
1655
-
1656
- if (isDark) {
1657
- return highlightedIndex === index ? '#555' : '#424242';
1658
- }
1659
-
1660
- return highlightedIndex === index ? '#eee' : '#fff';
1661
- },
1662
- renderIcon: function renderIcon() {
1663
- var h = this.$createElement;
1664
-
1665
- if (this.$props.showIcon) {
1666
- return this.$props.icon || h(SearchSvg);
1667
- }
1668
-
1669
- return null;
1670
- },
1671
- renderErrorComponent: function renderErrorComponent() {
1672
- var h = this.$createElement;
1673
- var renderError = this.$scopedSlots.renderError || this.$props.renderError;
1674
-
1675
- if (this.error && renderError && this.$data.currentValue && !this.isLoading) {
1676
- return h(SuggestionWrapper, {
1677
- "attrs": {
1678
- "innerClass": this.$props.innerClass,
1679
- "innerClassName": "error",
1680
- "theme": this.theme,
1681
- "themePreset": this.themePreset
1682
- }
1683
- }, [index.isFunction(renderError) ? renderError(this.error) : renderError]);
1684
- }
1685
-
1686
- return null;
1687
- },
1688
- renderCancelIcon: function renderCancelIcon() {
1689
- var h = this.$createElement;
1690
-
1691
- if (this.$props.showClear) {
1692
- return this.$props.clearIcon || h(CancelSvg.CancelSvg);
1693
- }
1694
-
1695
- return null;
1696
- },
1697
- renderNoSuggestions: function renderNoSuggestions(finalSuggestionsList) {
1698
- if (finalSuggestionsList === void 0) {
1699
- finalSuggestionsList = [];
1700
- }
1701
-
1702
- var h = this.$createElement;
1703
- var _this$$props3 = this.$props,
1704
- theme = _this$$props3.theme,
1705
- innerClass = _this$$props3.innerClass;
1706
- var renderNoSuggestion = this.$scopedSlots.renderNoSuggestion || this.$props.renderNoSuggestion;
1707
- var renderError = this.$scopedSlots.renderError || this.$props.renderError;
1708
- var _this$$data = this.$data,
1709
- isOpen = _this$$data.isOpen,
1710
- currentValue = _this$$data.currentValue;
1711
-
1712
- if (renderNoSuggestion && isOpen && !finalSuggestionsList.length && !this.isLoading && currentValue && !(renderError && this.error)) {
1713
- return h(SuggestionWrapper, {
1714
- "attrs": {
1715
- "innerClass": innerClass,
1716
- "themePreset": this.themePreset,
1717
- "theme": theme,
1718
- "innerClassName": "noSuggestion"
1719
- },
1720
- "scopedSlots": {
1721
- "default": function _default() {
1722
- return typeof renderNoSuggestion === 'function' ? renderNoSuggestion(currentValue) : renderNoSuggestion;
1723
- }
1724
- }
1725
- });
1726
- }
1727
-
1728
- return null;
1729
- },
1730
- renderInputAddonBefore: function renderInputAddonBefore() {
1731
- var h = this.$createElement;
1732
- var addonBefore = this.$scopedSlots.addonBefore;
1733
-
1734
- if (addonBefore) {
1735
- return h(InputAddon, [addonBefore()]);
1736
- }
1737
-
1738
- return null;
1739
- },
1740
- renderTag: function renderTag(item) {
1741
- var _this3 = this;
1742
-
1743
- var h = this.$createElement;
1744
- var innerClass = this.$props.innerClass;
1745
- return h(TagItem, {
1746
- "class": getClassName$1(innerClass, 'selected-tag') || ''
1747
- }, [h("span", [item]), h("span", {
1748
- "attrs": {
1749
- "role": "img",
1750
- "aria-label": "delete-tag"
1751
- },
1752
- "class": "close-icon",
1753
- "on": {
1754
- "click": function click() {
1755
- return _this3.clearTag(item);
1756
- }
1757
- }
1758
- }, [h(CancelSvg.CancelSvg)])]);
1759
- },
1760
- clearAllTags: function clearAllTags() {
1761
- this.selectedTags = [];
1762
- this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1763
-
1764
- if (this.$props.value !== undefined) {
1765
- this.$emit('change', this.selectedTags, this.triggerQuery);
1766
- }
1767
- },
1768
- clearTag: function clearTag(tagValue) {
1769
- this.selectedTags = [].concat(this.selectedTags.filter(function (tag) {
1770
- return tag !== tagValue;
1771
- }));
1772
- this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1773
-
1774
- if (this.$props.value !== undefined) {
1775
- this.$emit('change', this.selectedTags, this.triggerQuery);
1776
- }
1777
- },
1778
- renderTags: function renderTags() {
1779
- var _this4 = this;
1780
-
1781
- var h = this.$createElement;
1782
-
1783
- if (!Array.isArray(this.selectedTags)) {
1784
- return null;
1785
- }
1786
-
1787
- var tagsList = [].concat(this.selectedTags);
1788
- var shouldRenderClearAllTag = tagsList.length > 1;
1789
- var renderSelectedTags = this.$scopedSlots.renderSelectedTags || this.$props.renderSelectedTags;
1790
- return renderSelectedTags ? renderSelectedTags({
1791
- values: this.selectedTags,
1792
- handleClear: this.clearTag,
1793
- handleClearAll: this.clearAllTags
1794
- }) : h(TagsContainer, [tagsList.map(function (item) {
1795
- return _this4.renderTag(item);
1796
- }), shouldRenderClearAllTag && h(TagItem, {
1797
- "class": getClassName$1(this.$props.innerClass, 'selected-tag') || ''
1798
- }, [h("span", ["Clear All"]), h("span", {
1799
- "attrs": {
1800
- "role": "img",
1801
- "aria-label": "delete-tag"
1802
- },
1803
- "class": "close-icon",
1804
- "on": {
1805
- "click": this.clearAllTags
1806
- }
1807
- }, [h(CancelSvg.CancelSvg)])])]);
1808
- },
1809
- renderInputAddonAfter: function renderInputAddonAfter() {
1810
- var h = this.$createElement;
1811
- var addonAfter = this.$scopedSlots.addonAfter;
1812
-
1813
- if (addonAfter) {
1814
- return h(InputAddon, [addonAfter()]);
1815
- }
1816
-
1817
- return null;
1818
- },
1819
- renderIcons: function renderIcons() {
1820
- var h = this.$createElement;
1821
- var _this$$props4 = this.$props,
1822
- iconPosition = _this$$props4.iconPosition,
1823
- showClear = _this$$props4.showClear,
1824
- innerClass = _this$$props4.innerClass,
1825
- getMicInstance = _this$$props4.getMicInstance,
1826
- showVoiceSearch = _this$$props4.showVoiceSearch,
1827
- showIcon = _this$$props4.showIcon;
1828
- var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
1829
- var currentValue = this.$data.currentValue;
1830
- return h("div", [h(CancelSvg.IconGroup, {
1831
- "attrs": {
1832
- "groupPosition": "right",
1833
- "positionType": "absolute"
1834
- }
1835
- }, [currentValue && showClear && h(CancelSvg.IconWrapper, {
1836
- "on": {
1837
- "click": this.clearValue
1838
- },
1839
- "attrs": {
1840
- "showIcon": showIcon,
1841
- "isClearIcon": true
1842
- }
1843
- }, [this.renderCancelIcon()]), showVoiceSearch && h(Mic, {
1844
- "attrs": {
1845
- "getInstance": getMicInstance,
1846
- "render": renderMic,
1847
- "handleResult": this.handleVoiceResults,
1848
- "className": getClassName$1(innerClass, 'mic') || null
1849
- }
1850
- }), iconPosition === 'right' && showIcon && h(CancelSvg.IconWrapper, {
1851
- "on": {
1852
- "click": this.handleSearchIconClick
1853
- }
1854
- }, [this.renderIcon()])]), h(CancelSvg.IconGroup, {
1855
- "attrs": {
1856
- "groupPosition": "left",
1857
- "positionType": "absolute"
1858
- }
1859
- }, [iconPosition === 'left' && showIcon && h(CancelSvg.IconWrapper, {
1860
- "on": {
1861
- "click": this.handleSearchIconClick
1862
- }
1863
- }, [this.renderIcon()])])]);
1864
- },
1865
- focusSearchBox: function focusSearchBox(event) {
1866
- var _this$$refs, _this$$refs$this$$pro;
1867
-
1868
- var elt = event.target || event.srcElement;
1869
- var tagName = elt.tagName;
1870
-
1871
- if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
1872
- // already in an input
1873
- return;
1874
- }
1875
-
1876
- (_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
1877
- },
1878
- listenForFocusShortcuts: function listenForFocusShortcuts() {
1879
- var _this5 = this;
1880
-
1881
- var _this$$props$focusSho = this.$props.focusShortcuts,
1882
- focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
1883
-
1884
- if (index.isEmpty(focusShortcuts)) {
1885
- return;
1886
- }
1887
-
1888
- var shortcutsString = index.parseFocusShortcuts(focusShortcuts).join(','); // handler for alphabets and other key combinations
1889
-
1890
- hotkeys(shortcutsString, // eslint-disable-next-line no-unused-vars
1891
-
1892
- /* eslint-disable no-shadow */
1893
- function (event, handler) {
1894
- // Prevent the default refresh event under WINDOWS system
1895
- event.preventDefault();
1896
-
1897
- _this5.focusSearchBox(event);
1898
- }); // if one of modifier keys are used, they are handled below
1899
-
1900
- hotkeys('*', function (event) {
1901
- var modifierKeys = index.extractModifierKeysFromFocusShortcuts(focusShortcuts);
1902
- if (modifierKeys.length === 0) return;
1903
-
1904
- for (var index$1 = 0; index$1 < modifierKeys.length; index$1 += 1) {
1905
- var element = modifierKeys[index$1];
1906
-
1907
- if (hotkeys[element]) {
1908
- _this5.focusSearchBox(event);
1909
-
1910
- break;
1911
- }
1912
- }
1913
- });
1914
- }
1915
- },
1916
- render: function render() {
1917
- var _this6 = this;
1918
-
1919
- var h = arguments[0];
1920
- var _this$$props5 = this.$props,
1921
- theme = _this$$props5.theme,
1922
- size = _this$$props5.size,
1923
- expandSuggestionsContainer = _this$$props5.expandSuggestionsContainer,
1924
- enableDefaultSuggestions = _this$$props5.enableDefaultSuggestions;
1925
- var _this$$scopedSlots = this.$scopedSlots,
1926
- recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
1927
- popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
1928
- var hasSuggestions = this.currentValue ? this.suggestionsList.length || this.topSuggestions.length : this.defaultSearchSuggestions.length;
1929
-
1930
- if (enableDefaultSuggestions === false && !this.currentValue) {
1931
- hasSuggestions = false;
1932
- }
1933
-
1934
- return h(Container.Container, {
1935
- "class": this.$props.className
1936
- }, [this.$props.title && h(Title.Title, {
1937
- "class": getClassName$1(this.$props.innerClass, 'title') || ''
1938
- }, [this.$props.title]), this.$props.defaultSuggestions || this.$props.autosuggest ? h(CancelSvg.Downshift, {
1939
- "attrs": {
1940
- "id": this.$props.componentId + "-downshift",
1941
- "handleChange": this.onSuggestionSelected,
1942
- "handleMouseup": this.handleStateChange,
1943
- "isOpen": this.$data.isOpen
1944
- },
1945
- "scopedSlots": {
1946
- "default": function _default(_ref4) {
1947
- var getInputEvents = _ref4.getInputEvents,
1948
- getInputProps = _ref4.getInputProps,
1949
- getItemProps = _ref4.getItemProps,
1950
- getItemEvents = _ref4.getItemEvents,
1951
- isOpen = _ref4.isOpen,
1952
- highlightedIndex = _ref4.highlightedIndex,
1953
- setHighlightedIndex = _ref4.setHighlightedIndex;
1954
-
1955
- var renderSuggestionsContainer = function renderSuggestionsContainer() {
1956
- return h("div", [_this6.hasCustomRenderer && _this6.getComponent({
1957
- isOpen: isOpen,
1958
- getItemProps: getItemProps,
1959
- getItemEvents: getItemEvents,
1960
- highlightedIndex: highlightedIndex
1961
- }), _this6.renderErrorComponent(), !_this6.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1962
- "class": Input.suggestions(_this6.themePreset, theme) + " " + getClassName$1(_this6.$props.innerClass, 'list')
1963
- }, [_this6.suggestionsList.slice(0, size || 10).map(function (item, index) {
1964
- return h("li", {
1965
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1966
- item: item
1967
- })),
1968
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1969
- item: item
1970
- })),
1971
- "key": index + 1 + "-" + item.value,
1972
- "style": {
1973
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, index)
1974
- }
1975
- }, [h(SuggestionItem, {
1976
- "attrs": {
1977
- "currentValue": _this6.currentValue,
1978
- "suggestion": item
1979
- }
1980
- })]);
1981
- }), _this6.defaultSearchSuggestions.map(function (sugg, index) {
1982
- return h("li", {
1983
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1984
- item: sugg
1985
- })),
1986
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1987
- item: sugg
1988
- })),
1989
- "key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
1990
- "style": {
1991
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
1992
- justifyContent: 'flex-start'
1993
- }
1994
- }, [h("div", {
1995
- "style": {
1996
- padding: '0 10px 0 0'
1997
- }
1998
- }, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
1999
- "attrs": {
2000
- "className": getClassName$1(_this6.$props.innerClass, 'recent-search-icon') || null,
2001
- "icon": recentSearchesIcon,
2002
- "type": "recent-search-icon"
2003
- }
2004
- }), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
2005
- "attrs": {
2006
- "className": getClassName$1(_this6.$props.innerClass, 'popular-search-icon') || null,
2007
- "icon": popularSearchesIcon,
2008
- "type": "popular-search-icon"
2009
- }
2010
- })]), h(SuggestionItem, {
2011
- "attrs": {
2012
- "currentValue": _this6.currentValue,
2013
- "suggestion": sugg
2014
- }
2015
- })]);
2016
- }), index.hasQuerySuggestionsRenderer(_this6) ? _this6.getComponent({
2017
- isOpen: isOpen,
2018
- getItemProps: getItemProps,
2019
- getItemEvents: getItemEvents,
2020
- highlightedIndex: highlightedIndex
2021
- }, true) : _this6.topSuggestions.map(function (sugg, index) {
2022
- return h("li", {
2023
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
2024
- item: sugg
2025
- })),
2026
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
2027
- item: sugg
2028
- })),
2029
- "key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
2030
- "style": {
2031
- backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
2032
- justifyContent: 'flex-start'
2033
- }
2034
- }, [h("div", {
2035
- "style": {
2036
- padding: '0 10px 0 0'
2037
- }
2038
- }, [h(CustomSvg, {
2039
- "attrs": {
2040
- "className": getClassName$1(_this6.$props.innerClass, 'popular-search-icon') || null,
2041
- "icon": popularSearchesIcon,
2042
- "type": "popular-search-icon"
2043
- }
2044
- })]), h(SuggestionItem, {
2045
- "attrs": {
2046
- "currentValue": _this6.currentValue,
2047
- "suggestion": sugg
2048
- }
2049
- })]);
2050
- })]) : _this6.renderNoSuggestions(_this6.suggestionsList)]);
2051
- };
2052
-
2053
- return h("div", {
2054
- "class": Input.suggestionsContainer
2055
- }, [h(InputGroup, [_this6.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
2056
- "attrs": {
2057
- "id": _this6.$props.componentId + "-input",
2058
- "showIcon": _this6.$props.showIcon,
2059
- "showClear": _this6.$props.showClear,
2060
- "iconPosition": _this6.$props.iconPosition,
2061
- "placeholder": _this6.$props.placeholder,
2062
- "autoFocus": _this6.$props.autoFocus,
2063
- "themePreset": _this6.themePreset,
2064
- "autocomplete": "off"
2065
- },
2066
- "ref": _this6.$props.innerRef,
2067
- "class": getClassName$1(_this6.$props.innerClass, 'input'),
2068
- "on": _rollupPluginBabelHelpers._extends({}, getInputEvents({
2069
- onInput: _this6.onInputChange,
2070
- onBlur: function onBlur(e) {
2071
- _this6.$emit('blur', e, _this6.triggerQuery);
2072
- },
2073
- onFocus: _this6.handleFocus,
2074
- onKeyPress: function onKeyPress(e) {
2075
- _this6.$emit('keyPress', e, _this6.triggerQuery);
2076
-
2077
- _this6.$emit('key-press', e, _this6.triggerQuery);
2078
- },
2079
- onKeyDown: function onKeyDown(e) {
2080
- return _this6.handleKeyDown(e, highlightedIndex);
2081
- },
2082
- onKeyUp: function onKeyUp(e) {
2083
- _this6.$emit('keyUp', e, _this6.triggerQuery);
2084
-
2085
- _this6.$emit('key-up', e, _this6.triggerQuery);
2086
- },
2087
- onClick: function onClick() {
2088
- setHighlightedIndex(null);
2089
- }
2090
- })),
2091
- "domProps": _rollupPluginBabelHelpers._extends({}, getInputProps({
2092
- value: _this6.$data.currentValue === null ? '' : _this6.$data.currentValue
2093
- }))
2094
- }), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
2095
- }
2096
- }
2097
- }) : h("div", {
2098
- "class": Input.suggestionsContainer
2099
- }, [h(InputGroup, [this.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
2100
- "class": getClassName$1(this.$props.innerClass, 'input') || '',
2101
- "attrs": {
2102
- "placeholder": this.$props.placeholder,
2103
- "iconPosition": this.$props.iconPosition,
2104
- "showIcon": this.$props.showIcon,
2105
- "showClear": this.$props.showClear,
2106
- "themePreset": this.themePreset
2107
- },
2108
- "on": _rollupPluginBabelHelpers._extends({}, {
2109
- blur: function blur(e) {
2110
- _this6.$emit('blur', e, _this6.triggerQuery);
2111
- },
2112
- keypress: function keypress(e) {
2113
- _this6.$emit('keyPress', e, _this6.triggerQuery);
2114
-
2115
- _this6.$emit('key-press', e, _this6.triggerQuery);
2116
- },
2117
- input: this.onInputChange,
2118
- focus: function focus(e) {
2119
- _this6.$emit('focus', e, _this6.triggerQuery);
2120
- },
2121
- keydown: function keydown(e) {
2122
- _this6.$emit('keyDown', e, _this6.triggerQuery);
2123
-
2124
- _this6.$emit('key-down', e, _this6.triggerQuery);
2125
- },
2126
- keyup: function keyup(e) {
2127
- _this6.$emit('keyUp', e, _this6.triggerQuery);
2128
-
2129
- _this6.$emit('key-up', e, _this6.triggerQuery);
2130
- }
2131
- }),
2132
- "domProps": _rollupPluginBabelHelpers._extends({}, {
2133
- autofocus: this.$props.autoFocus,
2134
- value: this.$data.currentValue ? this.$data.currentValue : ''
2135
- }),
2136
- "ref": this.$props.innerRef
2137
- }), this.renderIcons()]), this.renderInputAddonAfter()])])]);
2138
- },
2139
- destroyed: function destroyed() {
2140
- document.removeEventListener('keydown', this.onKeyDown);
2141
- }
2142
- };
2143
-
2144
- DataSearch.defaultQuery = function (value, props) {
2145
- var finalQuery = null;
2146
-
2147
- if (value) {
2148
- var fields = normalizeDataField(props.dataField, props.fieldWeights);
2149
- finalQuery = {
2150
- bool: {
2151
- should: DataSearch.shouldQuery(value, fields, props),
2152
- minimum_should_match: '1'
2153
- }
2154
- };
2155
- }
2156
-
2157
- if (value === '') {
2158
- finalQuery = null;
2159
- }
2160
-
2161
- if (finalQuery && props.nestedField) {
2162
- return {
2163
- query: {
2164
- nested: {
2165
- path: props.nestedField,
2166
- query: finalQuery
2167
- }
2168
- }
2169
- };
2170
- }
2171
-
2172
- return finalQuery;
2173
- };
2174
-
2175
- DataSearch.shouldQuery = function (value, dataFields, props) {
2176
- var finalQuery = [];
2177
- var phrasePrefixFields = [];
2178
- var fields = dataFields.map(function (dataField) {
2179
- var queryField = "" + dataField.field + (dataField.weight ? "^" + dataField.weight : '');
2180
-
2181
- if (!(dataField.field.endsWith('.keyword') || dataField.field.endsWith('.autosuggest') || dataField.field.endsWith('.search'))) {
2182
- phrasePrefixFields.push(queryField);
2183
- }
2184
-
2185
- return queryField;
2186
- });
2187
-
2188
- if (props.searchOperators || props.queryString) {
2189
- return {
2190
- query: value,
2191
- fields: fields,
2192
- default_operator: props.queryFormat
2193
- };
2194
- }
2195
-
2196
- if (props.queryFormat === 'and') {
2197
- finalQuery.push({
2198
- multi_match: {
2199
- query: value,
2200
- fields: fields,
2201
- type: 'cross_fields',
2202
- operator: 'and'
2203
- }
2204
- });
2205
- finalQuery.push({
2206
- multi_match: {
2207
- query: value,
2208
- fields: fields,
2209
- type: 'phrase',
2210
- operator: 'and'
2211
- }
2212
- });
2213
-
2214
- if (phrasePrefixFields.length > 0) {
2215
- finalQuery.push({
2216
- multi_match: {
2217
- query: value,
2218
- fields: phrasePrefixFields,
2219
- type: 'phrase_prefix',
2220
- operator: 'and'
2221
- }
2222
- });
2223
- }
2224
-
2225
- return finalQuery;
2226
- }
2227
-
2228
- finalQuery.push({
2229
- multi_match: {
2230
- query: value,
2231
- fields: fields,
2232
- type: 'best_fields',
2233
- operator: 'or',
2234
- fuzziness: props.fuzziness ? props.fuzziness : 0
2235
- }
2236
- });
2237
- finalQuery.push({
2238
- multi_match: {
2239
- query: value,
2240
- fields: fields,
2241
- type: 'phrase',
2242
- operator: 'or'
2243
- }
2244
- });
2245
-
2246
- if (phrasePrefixFields.length > 0) {
2247
- finalQuery.push({
2248
- multi_match: {
2249
- query: value,
2250
- fields: phrasePrefixFields,
2251
- type: 'phrase_prefix',
2252
- operator: 'or'
2253
- }
2254
- });
2255
- }
2256
-
2257
- return finalQuery;
2258
- };
2259
-
2260
- DataSearch.highlightQuery = function (props) {
2261
- if (props.customHighlight) {
2262
- return props.customHighlight(props);
2263
- }
2264
-
2265
- if (!props.highlight) {
2266
- return null;
2267
- }
2268
-
2269
- var fields = {};
2270
- var highlightField = props.highlightField ? props.highlightField : props.dataField;
2271
-
2272
- if (typeof highlightField === 'string') {
2273
- fields[highlightField] = {};
2274
- } else if (Array.isArray(highlightField)) {
2275
- highlightField.forEach(function (item) {
2276
- fields[item] = {};
2277
- });
2278
- }
2279
-
2280
- return {
2281
- highlight: _rollupPluginBabelHelpers._extends({
2282
- pre_tags: ['<mark>'],
2283
- post_tags: ['</mark>'],
2284
- fields: fields
2285
- }, props.highlightField && {
2286
- require_field_match: false
2287
- })
2288
- };
2289
- };
2290
-
2291
- DataSearch.hasInternalComponent = function () {
2292
- return true;
2293
- };
2294
-
2295
- var mapStateToProps = function mapStateToProps(state, props) {
2296
- return {
2297
- selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
2298
- suggestions: state.hits[props.componentId] && state.hits[props.componentId].hits,
2299
- rawData: state.rawData[props.componentId],
2300
- aggregationData: state.compositeAggregations[props.componentId] || [],
2301
- isLoading: !!state.isLoading[props.componentId + "_active"],
2302
- themePreset: state.config.themePreset,
2303
- error: state.error[props.componentId],
2304
- analytics: state.analytics,
2305
- enableAppbase: state.config.enableAppbase,
2306
- headers: state.appbaseRef.headers,
2307
- promotedResults: state.promotedResults[props.componentId] || [],
2308
- customData: state.customData[props.componentId],
2309
- time: state.hits[props.componentId] && state.hits[props.componentId].time || 0,
2310
- total: state.hits[props.componentId] && state.hits[props.componentId].total,
2311
- hidden: state.hits[props.componentId] && state.hits[props.componentId].hidden,
2312
- popularSuggestions: state.querySuggestions[props.componentId],
2313
- defaultPopularSuggestions: state.defaultPopularSuggestions[props.componentId],
2314
- componentProps: state.props[props.componentId],
2315
- lastUsedQuery: state.queryToHits[props.componentId],
2316
- recentSearches: state.recentSearches.data
2317
- };
2318
- };
2319
-
2320
- var mapDispatchToProps = {
2321
- setQueryOptions: setQueryOptions,
2322
- updateQuery: updateQuery,
2323
- setCustomQuery: setCustomQuery,
2324
- setDefaultQuery: setDefaultQuery,
2325
- setCustomHighlightOptions: setCustomHighlightOptions,
2326
- recordSuggestionClick: recordSuggestionClick,
2327
- loadPopularSuggestions: loadPopularSuggestions,
2328
- getRecentSearches: getRecentSearches,
2329
- resetStoreForComponent: resetStoreForComponent
2330
- };
2331
- var DSConnected = ComponentWrapper.ComponentWrapper(index.connect(mapStateToProps, mapDispatchToProps)(DataSearch), {
2332
- componentType: constants.componentTypes.dataSearch,
2333
- internalComponent: DataSearch.hasInternalComponent()
2334
- });
2335
-
2336
- DataSearch.install = function (Vue) {
2337
- Vue.component(DataSearch.name, DSConnected);
2338
- }; // Add componentType for SSR
2339
-
2340
-
2341
- DataSearch.componentType = constants.componentTypes.dataSearch;
2342
-
2343
- exports.CustomSvg = CustomSvg;
2344
- exports.DataSearch = DataSearch;
2345
- exports.InputAddon = InputAddon;
2346
- exports.InputGroup = InputGroup;
2347
- exports.Mic = Mic;
2348
- exports.SearchSvg = SearchSvg;
2349
- exports.SuggestionItem = SuggestionItem;
2350
- exports.SuggestionWrapper = SuggestionWrapper;
2351
- exports.TagItem = TagItem;
2352
- exports.TagsContainer = TagsContainer;